@@ -115,15 +115,6 @@ dnl Some test cases require Boost
115
115
AX_BOOST_BASE ( ,,,)
116
116
AC_SUBST ( BOOST_CPPFLAGS )
117
117
118
- dnl How to specify include directories that may be system directories.
119
- # -I should not be used on system directories (GCC)
120
- if test "$GCC" = yes; then
121
- ISYSTEM="-isystem "
122
- else
123
- ISYSTEM="-I"
124
- fi
125
- AC_MSG_NOTICE ( ISYSTEM: $ISYSTEM )
126
-
127
118
dnl Info for building shared libraries ... in order to run the examples
128
119
129
120
# SO is the extension of shared libraries (including the dot!)
@@ -484,7 +475,7 @@ AC_ARG_WITH(tcl,
484
475
[ --with-tcl=path Set location of Tcl package] ,[
485
476
TCLPACKAGE="$withval"] , [ TCLPACKAGE="$alllang_default"] )
486
477
AC_ARG_WITH ( tclincl ,[ --with-tclincl=path Set location of Tcl include directory] ,[
487
- TCLINCLUDE="$ISYSTEM $withval"] , [ TCLINCLUDE=] )
478
+ TCLINCLUDE="-I $withval"] , [ TCLINCLUDE=] )
488
479
AC_ARG_WITH ( tcllib ,[ --with-tcllib=path Set location of Tcl library directory] ,[
489
480
TCLLIB="-L$withval"] , [ TCLLIB=] )
490
481
526
517
AC_MSG_RESULT ( found $TCLCONFIG/tclConfig.sh )
527
518
. $TCLCONFIG/tclConfig.sh
528
519
if test -z "$TCLINCLUDE"; then
529
- TCLINCLUDE=`echo $TCL_INCLUDE_SPEC | sed "s/-I/$ISYSTEM/" `
520
+ TCLINCLUDE=`echo $TCL_INCLUDE_SPEC`
530
521
fi
531
522
if test -z "$TCLLIB"; then
532
523
TCLLIB=$TCL_LIB_SPEC
535
526
536
527
if test -z "$TCLINCLUDE"; then
537
528
if test "x$TCLPACKAGE" != xyes; then
538
- TCLINCLUDE="$ISYSTEM $TCLPACKAGE/include"
529
+ TCLINCLUDE="-I $TCLPACKAGE/include"
539
530
fi
540
531
fi
541
532
@@ -553,7 +544,7 @@ if test -z "$TCLINCLUDE"; then
553
544
for i in $dirs ; do
554
545
if test -r $i/tcl.h; then
555
546
AC_MSG_RESULT ( $i )
556
- TCLINCLUDE="$ISYSTEM $i"
547
+ TCLINCLUDE="-I $i"
557
548
break
558
549
fi
559
550
done
@@ -1004,7 +995,7 @@ if test -n "$PERL"; then
1004
995
AC_MSG_RESULT ( $PERL5LIB )
1005
996
fi
1006
997
AC_MSG_CHECKING ( for Perl5 ccflags )
1007
- PERL5CCFLAGS=`($PERL -e 'use Config; print $Config{ccflags}, "\n"' | sed "s/-Wdeclaration-after-statement//" | sed "s/-I/$ISYSTEM/" ) 2>/dev/null`
998
+ PERL5CCFLAGS=`($PERL -e 'use Config; print $Config{ccflags}, "\n"' | sed "s/-Wdeclaration-after-statement//") 2>/dev/null`
1008
999
if test -z "$PERL5CCFLAGS" ; then
1009
1000
AC_MSG_RESULT ( not found )
1010
1001
else
@@ -2326,7 +2317,7 @@ if test "$LUABIN"; then
2326
2317
# look for the header files & set LUAFLAGS accordingly
2327
2318
# will clear LUABIN if not present
2328
2319
if test -n "$LUAINCLUDE"; then
2329
- AC_CHECK_FILE ( $LUAINCLUDE/lua.h ,[ LUAFLAGS="$ISYSTEM $LUAINCLUDE"] ,[ LUABIN=] )
2320
+ AC_CHECK_FILE ( $LUAINCLUDE/lua.h ,[ LUAFLAGS="-I $LUAINCLUDE"] ,[ LUABIN=] )
2330
2321
else
2331
2322
LUA_OK="1"
2332
2323
CFLAGS_SAVED=$CFLAGS
@@ -2350,7 +2341,7 @@ if test "$LUABIN"; then
2350
2341
# echo "$i"
2351
2342
if test -r $i/lua.h; then
2352
2343
AC_MSG_RESULT ( $i/lua.h )
2353
- LUAFLAGS="$ISYSTEM $i"
2344
+ LUAFLAGS="-I $i"
2354
2345
break
2355
2346
fi
2356
2347
done
0 commit comments