Branch: Tag:

2002-12-10

2002-12-10 07:33:58 by Mirar (Pontus Hagland) <pike@sort.mirar.org>

added --enable-pedantic to put pedantic in compile flags
add warnings to flags anyway if the origin is /etc/make.conf, but not optimization
more verbose flag display in config.info
fixed flags for the output program for int, svalue etc at the end so it will compile (it missed some -I on my system, maybe because make.conf?)

Rev: src/configure.in:1.655

1: - AC_REVISION("$Id: configure.in,v 1.654 2002/12/07 17:14:28 mirar Exp $") + AC_REVISION("$Id: configure.in,v 1.655 2002/12/10 07:33:58 mirar Exp $")   AC_INIT(interpret.c)   AC_CONFIG_HEADER(machine.h)   
57:    echo Using settings from /etc/make.conf...    source /etc/make.conf    set | diff -u conftest.tmp - | grep '^+C' +  cflags_make_conf=yes + else +  cflags_make_conf=no   fi      
1437:   WARN=""   OPTIMIZE="${OPTFLAGS-}"    - if test "$cflags_is_set" = "no"; then + AC_ARG_ENABLE(pedantic, MY_DESCR([--enable-pedantic], +  [enable -pedantic compilation]), +  [enable_make_conf=yes], []) +  + if test "$cflags_is_set" = "no" -o "$cflags_make_conf" = "yes"; then    if test "x$with_cdebug" = "xno" ; then    CFLAGS=`echo " $CFLAGS " | sed -e 's@ -g @ @g'`    else    :    fi    -  +  if test "x$enable_pedantic" = "xyes"; then +  AC_SYS_COMPILER_FLAG(-pedantic,pedantic,WARN) +  fi    -  +     if test "x${GCC-}" = xyes ; then    # Do not use -Wall, since that produces a lot of warnings that are not    # really interresting (such as the warning for if( ... ) ... if(
1481:    #else    # :    #fi +  fi + fi    -  + if test "$cflags_is_set" = "no"; then +  if test "x${GCC-}" = xyes ; then +    ### Optimize for different SUN machines. If there is no working 'uname'   ### no extra optimization will be done, but nothing should break either.    case "`uname -m 2>/dev/null`" in
6160:   install......... $INSTALL   shared object... .$SO   libs............ $LIBS - optimize........ $OPTIMIZE - CFLAGS.......... $CFLAGS +    cross-compiled.. $cross_compiling -  + CFLAGS (cpp).... -I. -I$srcdir $CPPFLAGS + CFLAGS (opt)....$OPTIMIZE + CFLAGS (warn)...$WARN + CFLAGS (misc)...$CFLAGS $OSFLAGS $PROFIL + LDFLAGS.........$LDFLAGS $LINKFORSHARED $EXTRALDFLAGS      features:   PAD_FEATURE([dynamic loading])$pike_cv_sys_dynamic_loading
6178:      touch confdefs.h 2>/dev/null    + OLD_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="-I. -I$srcdir $CPPFLAGS"   AC_TRY_RUN([   #include "global.h"   #include "svalue.h"
6223:   }   ],[],[],[:])   rm conftypes.txt 2>/dev/null + CPPFLAGS="$OLD_CPPFLAGS"      echo >>config.info