aboutsummaryrefslogtreecommitdiff
path: root/libf2c/configure.in
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>1998-04-26 11:09:12 -0700
committerRichard Henderson <rth@gcc.gnu.org>1998-04-26 11:09:12 -0700
commitfcce69a9e93a8e1491d626e90cea99d36b2c4b26 (patch)
tree06029f41b4a40a4c1d4adcf108f7f00b19342a44 /libf2c/configure.in
parent6757edfe655f9b21cdd1dbaddd80b8c5ddc63823 (diff)
downloadgcc-fcce69a9e93a8e1491d626e90cea99d36b2c4b26.zip
gcc-fcce69a9e93a8e1491d626e90cea99d36b2c4b26.tar.gz
gcc-fcce69a9e93a8e1491d626e90cea99d36b2c4b26.tar.bz2
configure.in: Adjust include paths in F2C_INTEGER and F2C_LONGINT tests to work out of the...
* configure.in: Adjust include paths in F2C_INTEGER and F2C_LONGINT tests to work out of the build directory. From-SVN: r19419
Diffstat (limited to 'libf2c/configure.in')
-rw-r--r--libf2c/configure.in12
1 files changed, 10 insertions, 2 deletions
diff --git a/libf2c/configure.in b/libf2c/configure.in
index 232b2d4..3320f48 100644
--- a/libf2c/configure.in
+++ b/libf2c/configure.in
@@ -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"