Author: Francois Mazen <francois@mzf.fr>
Description: Add path to find petsc in debian file system.
Forwarded: https://github.com/FreeFem/FreeFem-sources/pull/189


--- a/configure.ac
+++ b/configure.ac
@@ -983,12 +983,12 @@
 ff_petsc_ok=no
 ff_slepc_ok=no
 if test "$with_petsc" != no; then
-    for d in "$with_petsc" "${prefix_petsc}/r/lib" /usr/local/ff++/petsc/lib  /usr /usr/local /opt/usr  /opt/local ;do
+    for d in "$with_petsc" "${prefix_petsc}/r/lib" /usr/local/ff++/petsc/lib  /usr /usr/local /opt/usr  /opt/local /usr/lib/petsc ;do
 	for dd in "" "/petsc/conf/petscvariables" "/lib/petsc/conf/petscvariables" ; do
 	    ffconfpetsc="$d$dd"
 		ffconfslepc="$d/slepc/conf/slepcvariables"
 
-		# echo " petsc ... $ffconfpetsc"
+		echo " petsc ... $ffconfpetsc"
 	    if test -f "$ffconfpetsc" ; then
 		if test  "$ff_petsc_ok" = no ; then
 		    PETSC_PREFIXDIR=`awk -F' *= *' '"PREFIXDIR"==$1 {print $2}' "$ffconfpetsc"`
@@ -1086,7 +1086,7 @@
 ff_petsccomplex_ok=no
 ff_slepccomplex_ok=no
 if test "$with_petsc_complex" != no; then
-    for d in "$with_petsc_complex" "${prefix_petsc}/c/lib" /usr/local/ff++/petsc/c/lib ;do
+    for d in "$with_petsc_complex" "${prefix_petsc}/c/lib" /usr/local/ff++/petsc/c/lib /usr/lib/petsc ;do
 	for dd in "" "/petsc/conf/petscvariables" "/lib/petsc/conf/petscvariables" ; do
 	    ffconfpetscc="$d$dd"
 	    if test -f "$ffconfpetscc" -a  "$ff_petsccomplex_ok" = no ; then
