Branch: Tag:

1997-01-12

1997-01-12 00:35:51 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Now exports LDFLAGS and CPPFLAGS, so that the modules benefit.

Rev: src/configure.in:1.39

1: - AC_REVISION("$Id: configure.in,v 1.38 1997/01/11 23:04:37 grubba Exp $") + AC_REVISION("$Id: configure.in,v 1.39 1997/01/12 00:35:51 grubba Exp $")   AC_INIT(interpret.c)   AC_CONFIG_HEADER(machine.h)   
170:   # This doesn't work since we have to test if the linker accepts   # -R first... :( /Hubbe   # - #if test $cppflags_is_set$ldflags_is_set = nono -a x${C_INCLUDE_PATH-} = x ; then - # for d in /usr/gnu /opt/gnu /usr/local - # do - # if test -d "$d/lib" ; then - # LDFLAGS="${LDFLAGS} -L$d/lib -R$d/lib" - # fi + # Since I just added a test for -R above, maybe it's time to enable + # this code again. /grubba   # - # if test -d "$d/include" ; then - # CPPFLAGS="${CPPFLAGS} -I$d/include" - # fi - # done - #fi + if test -f modules/master_lib_dirs; then +  rm modules/master_lib_dirs + else : ; fi + if test $cppflags_is_set$ldflags_is_set = nono -a x${C_INCLUDE_PATH-} = x ; then +  for d in /usr/gnu /opt/gnu /usr/local /sw/gnu /sw +  do +  if test -d "$d/lib" ; then +  echo Adding $d/lib to the library-path +  LDFLAGS="${LDFLAGS} -L$d/lib" +  echo $d/lib >>modules/master_lib_dirs +  fi    -  +  if test -d "$d/include" ; then +  echo Adding $d/include to the include-path +  CPPFLAGS="${CPPFLAGS} -I$d/include" +  fi +  done +  export LDFLAGS CPPFLAGS + fi +    #############################################################################      AC_MSG_CHECKING(ansi prototype capability)