[llvm-commits] CVS: llvm-test/configure

Reid Spencer reid at x10sys.com
Wed Jul 13 22:54:07 PDT 2005



Changes in directory llvm-test:

configure updated: 1.22 -> 1.23
---
Log message:

Make the search for the f2c program include a search of the user's path.


---
Diffs of the changes:  (+13 -0)

 configure |   13 +++++++++++++
 1 files changed, 13 insertions(+)


Index: llvm-test/configure
diff -u llvm-test/configure:1.22 llvm-test/configure:1.23
--- llvm-test/configure:1.22	Wed Jul 13 23:49:51 2005
+++ llvm-test/configure	Thu Jul 14 00:53:56 2005
@@ -18755,9 +18755,22 @@
 if test "${with_f2c+set}" = set; then
   withval="$with_f2c"
   f2cdir=$withval
+else
+  f2cdir=notfound
 fi;
 echo "$as_me:$LINENO: checking for installed f2c components" >&5
 echo $ECHO_N "checking for installed f2c components... $ECHO_C" >&6
+if test "$f2cdir" = "notfound" ; then
+ f2cdir=`which f2c`
+ if test "$f2cdir"x  != "x" ; then
+   if test -d "${f2cdir%*f2c}" -a -d "${f2cdir%*f2c}/.." ; then
+     f2cdir=`cd "${f2cdir%*f2c}/.." ; pwd`
+     if test ! -d "$f2cdir" ; then
+       f2cdir="notfound";
+     fi
+   fi
+ fi
+fi
 
 if test -d "$f2cdir" &&
    test -d "$f2cdir/bin" && test -f "$f2cdir/bin/f2c" &&






More information about the llvm-commits mailing list