OSDN Git Service

* configure.in: Adjust include paths in F2C_INTEGER and F2C_LONGINT
[pf3gnuchains/gcc-fork.git] / libf2c / configure.in
index 232b2d4..3320f48 100644 (file)
@@ -253,7 +253,11 @@ fi
 # is in ../.. and the config files are in $srcdir/../../config.
 AC_MSG_CHECKING(f2c integer type)
 late_ac_cpp=$ac_cpp
-ac_cpp="$late_ac_cpp -I$srcdir/../gcc/f -I../../gcc -I$srcdir/../gcc -I$srcdir/../gcc/config"
+if test "$srcdir" = . ; then
+  ac_cpp="$late_ac_cpp -I../../gcc/f  -I../../gcc -I../../gcc/config"
+else
+  ac_cpp="$late_ac_cpp -I$srcdir/../gcc/f -I$srcdir/../gcc -I$srcdir/../gcc/config"
+fi
 AC_CACHE_VAL(g77_cv_sys_f2cinteger,
 AC_EGREP_CPP(F2C_INTEGER=long int,
 [#include "proj.h"
@@ -295,7 +299,11 @@ AC_SUBST(F2C_INTEGER)
 
 AC_MSG_CHECKING(f2c long int type)
 late_ac_cpp=$ac_cpp
-ac_cpp="$late_ac_cpp -I$srcdir/../gcc/f -I../../gcc -I$srcdir/../gcc -I$srcdir/../gcc/config"
+if test "$srcdir" = . ; then
+  ac_cpp="$late_ac_cpp -I../../gcc/f  -I../../gcc -I../../gcc/config"
+else
+  ac_cpp="$late_ac_cpp -I$srcdir/../gcc/f -I$srcdir/../gcc -I$srcdir/../gcc/config"
+fi
 AC_CACHE_VAL(g77_cv_sys_f2clongint,
 AC_EGREP_CPP(F2C_LONGINT=long int,
 [#include "proj.h"