[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: none



> however this overrids --with-PACKAGE-config

Yes, that was not intended. Better with the patch below?

Harald.

--- cf/test-package.m4.orig     2002-09-10 17:23:38.000000000 +0200
+++ cf/test-package.m4  2004-02-12 12:33:03.000000000 +0100
@@ -60,8 +60,23 @@
        lib_dirs="$with_$1_lib $lib_dirs"
 fi
 
-if test "$with_$1_config" = ""; then
-       with_$1_config='$7'
+if test -f "$with_$1_config" ; then
+dnl File pointed out by "--with-PACKAGE-config" found - just use it
+       :
+else
+       if test "$with_$1_config" = ""; then
+               with_$1_config='$7'
+       fi
+       case "$with_$1_config" in
+       yes|no|"")
+               ;;
+       *)
+dnl Override with config script found in tree which was pointed
+dnl out by the "--with-PACKAGE" argument
+               if test -f "$with_$1/bin/$with_$1_config" ; then
+                       with_$1_config="$with_$1/bin/$with_$1_config"
+               fi
+       esac
 fi