Branch: Tag:

2005-06-09

2005-06-09 16:35:51 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added some paranoia to the ABI selector.

Rev: src/configure.in:1.889

1: - AC_REVISION("$Id: configure.in,v 1.888 2005/06/09 13:47:14 grubba Exp $") + AC_REVISION("$Id: configure.in,v 1.889 2005/06/09 16:35:51 grubba Exp $")   AC_INIT(interpret.c)   AC_CONFIG_HEADER(machine.h)   
357:    # cc: Warning: illegal option -xdepend    pike_cv_option_$2=no    else :; fi -  ifelse([$6], , ,[ +  if test -f conftezt.out.2; then +  cat conftezt.out.2 >&2 +  fi +  ifelse([$6], , , [    if test "$pike_cv_option_$2" = yes; then    :    $6 -  else :; fi -  ]) dnl +  fi +  ])dnl    CPPFLAGS="[$]OLD_CPPFLAGS"    ac_link="[$]old_ac_link"    rm conftezt.out.2
444:    fi    ;;   esac - AC_MSG_RESULT($with_abi) + AC_MSG_RESULT(attempt $with_abi)      if test "x$with_abi" = "x64"; then    #
452:    #    AC_SYS_COMPILER_FLAG(-q64, q64, CFLAGS)    AC_SYS_COMPILER_FLAG(-m64, m64, CFLAGS) +  if test "$pike_cv_option_q64:$pike_cv_option_m64" = "no:no"; then +  AC_SYS_COMPILER_FLAG(-q32, q32, CFLAGS) +  AC_SYS_COMPILER_FLAG(-m32, m32, CFLAGS) +  if test "$pike_cv_option_q32:$pike_cv_option_m32" = "no:no"; then +  AC_MSG_WARN([Found no option to force 64 bit ABI.])    else -  +  AC_MSG_WARN([$CC does not support 64 bit ABI.]) +  with_abi=32 +  fi +  fi + else    #    # Try to force 32bit mode.    #    AC_SYS_COMPILER_FLAG(-q32, q32, CFLAGS)    AC_SYS_COMPILER_FLAG(-m32, m32, CFLAGS) -  +  if test "$pike_cv_option_q32:$pike_cv_option_m32" = "no:no"; then +  AC_SYS_COMPILER_FLAG(-q64, q64, CFLAGS) +  AC_SYS_COMPILER_FLAG(-m64, m64, CFLAGS) +  if test "$pike_cv_option_q64:$pike_cv_option_m64" = "no:no"; then +  AC_MSG_WARN([Found no option to force 32 bit ABI.]) +  else +  AC_MSG_WARN([$CC does not support 32 bit ABI.]) +  with_abi=64 +  fi +  fi +  if test "x$with_abi" = "x32"; then    #    # Make sure no later tests will add -q64 or -m64.    #    pike_disabled_option_q64=yes    pike_disabled_option_m64=yes    fi -  + fi    -  + echo + echo "Using ABI $with_abi." + echo +    #############################################################################      if test "x$GCC" = "x"; then
2319:    # MinGW system.    cat <<\EOF   #!/bin/sh - # Automatically generated by $Id: configure.in,v 1.888 2005/06/09 13:47:14 grubba Exp $. + # Automatically generated by $Id: configure.in,v 1.889 2005/06/09 16:35:51 grubba Exp $.   # MinGW-version. Do NOT edit.   posix_name="`cat`"   posix_prefix="/"
2357:    # Native POSIX system.    cat <<\EOF   #!/bin/sh - # Automatically generated by $Id: configure.in,v 1.888 2005/06/09 13:47:14 grubba Exp $. + # Automatically generated by $Id: configure.in,v 1.889 2005/06/09 16:35:51 grubba Exp $.   # POSIX-version. Do NOT edit.   cat   EOF
2366:    # rntcl-style    cat <<\EOF   #!/bin/sh - # Automatically generated by $Id: configure.in,v 1.888 2005/06/09 13:47:14 grubba Exp $. + # Automatically generated by $Id: configure.in,v 1.889 2005/06/09 16:35:51 grubba Exp $.   # RNTCL-version. Do NOT edit.   sed -e "$PIKE_PATH_TRANSLATE"   EOF