Branch: Tag:

2001-01-19

2001-01-19 13:49:55 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added support for --with-root.
Attempt to find a native compiler to compile smartlink when crosscompiling.

Rev: src/configure.in:1.454

1: - AC_REVISION("$Id: configure.in,v 1.453 2001/01/19 00:06:58 hubbe Exp $") + AC_REVISION("$Id: configure.in,v 1.454 2001/01/19 13:49:55 grubba Exp $")   AC_INIT(interpret.c)   AC_CONFIG_HEADER(machine.h)   
412:    SMARTBUILDCC="${REALCC-cc}"       if echo foo "$CC" | egrep 'rntc.|rnt.cl' >/dev/null; then -  echo Warning: rntcc/rntcl/rnticl/rntecl detected. +  AC_MSG_WARN([rntcc/rntcl/rnticl/rntecl detected.])    AC_PATH_PROGS(SMARTBUILDCC,gcc cc egcs,gcc, $PATH:$EXTRA_PATH)    echo Using $SMARTBUILDCC to compile smartlink. -  +  else +  if "x$ac_cv_prog_cc_cross" = "xyes"; then +  AC_MSG_WARN([Crosscompiler detected.]) +  AC_PATH_PROGS(SMARTBUILDCC, gcc cc egcs, gcc, /usr/bin:/bin/:/usr/ccs/bin:/usr/local/bin:$PATH:$EXTRA_PATH) +  echo Using $SMARTBUILDCC to compile smartlink.    fi -  +  fi       rm -f "$SMARTLINK"   
604:   #############################################################################       -  + AC_ARG_WITH(root, [ --with-root=path specify a cross-compilation root-directory],[ +  case "$with_root" in +  /) +  with_root="" +  ;; +  /*) +  ;; +  no) +  with_root="" +  ;; +  *) +  AC_MSG_WARN([Root path $with_root is not absolute. Ignored.]) +  with_root="" +  ;; +  esac + ],[with_root=""])   AC_ARG_WITH(dynamic_modules, [ --without-dynamic-modules link modules statically],[],[])   AC_ARG_WITH(static_linking, [ --with-static-linking link statically, if possible],[with_static_linking=yes],[])   AC_ARG_WITH(include-path,[ --with-include-path A list of paths to search for include files.])
1164:   if test $cppflags_is_set = no -a x${C_INCLUDE_PATH-} = x ; then    real_include_dirs=''    for d in `echo ${with_include_path} | sed 's/:/ /g'` \ -  `echo $prefix | sed "s@^NONE@$ac_default_prefix@g"`/include \ -  /usr/local/include /sw/local/include /usr/gnu/include /opt/gnu/include \ -  /sw/gnu/include /sw/include /usr/freeware/include /usr/pkg/include \ -  `echo /usr/X11*/include | sort -r` $srcdir `pwd` +  `echo $prefix | sed "s@^NONE@$with_root$ac_default_prefix@g"`/include \ +  $with_root/usr/local/include $with_root/sw/local/include \ +  $with_root/usr/gnu/include $with_root/opt/gnu/include \ +  $with_root/sw/gnu/include $with_root/sw/include \ +  $with_root/usr/freeware/include $with_root/usr/pkg/include \ +  `echo $with_root/usr/X11*/include | sort -r` $srcdir `pwd`    do    AC_MSG_CHECKING($d)    case x$d in
1211:   echo Searching for library directories...   if test $ldflags_is_set = no ; then    for d in `echo ${with_lib_path} | sed 's/:/ /g'` \ -  `echo $exec_prefix | sed "s@^NONE@$prefix/lib@g" | sed "s@^NONE@$ac_default_prefix/lib@g"` \ -  /usr/local/lib /sw/local/lib /sw/lib \ -  /usr/gnu/lib /opt/gnu/lib /sw/gnu/lib /usr/freeware/lib /usr/pkg/lib \ -  `echo /usr/X11*/lib | sort -r` +  `echo $exec_prefix | sed "s@^NONE@$prefix/lib@g" | sed "s@^NONE@$with_root$ac_default_prefix/lib@g"` \ +  $with_root/usr/local/lib $with_root/sw/local/lib $with_root/sw/lib \ +  $with_root/usr/gnu/lib $with_root/opt/gnu/lib $with_root/sw/gnu/lib \ +  $with_root/usr/freeware/lib $with_root/usr/pkg/lib \ +  `echo $with_root/usr/X11*/lib | sort -r`    do    AC_MSG_CHECKING($d)    if test -d "$d/." ; then
1236:   fi      echo Searching for binary directories... - for d in `echo $exec_prefix | sed "s@^NONE@$prefix@g" | sed "s@^NONE@$ac_default_prefix@g"` \ -  "" /usr /usr/ccs /usr/vac /usr/local /sw/local /usr/gnu /opt/gnu /sw/gnu \ -  /sw /usr/freeware /usr/pkg + for d in `echo $exec_prefix | sed "s@^NONE@$prefix@g" | sed "s@^NONE@$with_root$ac_default_prefix@g"` \ +  "$with_root" $with_root/usr $with_root/usr/ccs $with_root/usr/vac \ +  $with_root/usr/local $with_root/sw/local $with_root/usr/gnu \ +  $with_root/opt/gnu $with_root/sw/gnu $with_root/sw \ +  $with_root/usr/freeware $with_root/usr/pkg   do    AC_MSG_CHECKING($d/bin)    if test -d "$d/bin/." ; then