Show
Ignore:
Timestamp:
03/27/09 22:25:55 (4 years ago)
Author:
saturday06
Message:

netabare

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/objective-cplusplus/i3/trunk/configure.ac

    r31446 r31615  
    11#                                               -*- Autoconf -*- 
    22# Process this file with autoconf to produce a configure script. 
     3 
     4CFLAGS_before_configure=$CFLAGS 
     5CXXFLAGS_before_configure=$CXXFLAGS 
    36 
    47AC_PREREQ(2.60) 
     
    1114 
    1215# --------------------------------------- 
    13 # this should be set before AC_PROG_CC, AC_USE_SYSTEM_EXTENSIONS 
    14 AC_ARG_ENABLE(debug, 
    15     AS_HELP_STRING([--enable-debug], [build debug binaries]), 
    16         enable_debug="$enableval", enable_debug="no") 
    17 AM_CONDITIONAL(ENABLE_DEBUG, test "$enable_debug" = "yes") 
    18 if test "$enable_debug" = "yes"; then 
    19   if test "$CFLAGS" = ""; then 
    20     CFLAGS="-O0 -g" 
    21   fi 
    22   if test "$CXXFLAGS" = ""; then 
    23     CXXFLAGS="-O0 -g" 
    24   fi 
    25 fi 
    26  
    27 # --------------------------------------- 
    2816# Programs 
    2917AC_USE_SYSTEM_EXTENSIONS 
     
    3523AM_CONDITIONAL(USE_GCH, test "$GXX" = "yes") 
    3624 
     25AC_ARG_ENABLE(debug, 
     26    AS_HELP_STRING([--enable-debug], [build debug binaries]), 
     27        enable_debug="$enableval", enable_debug="no") 
     28AM_CONDITIONAL(ENABLE_DEBUG, test "$enable_debug" = "yes") 
     29if test "$enable_debug" = "yes"; then 
     30  if test "$CFLAGS_before_configure" = ""; then 
     31    CFLAGS="-O0 -g" 
     32  fi 
     33  if test "$CXXFLAGS_before_configure" = ""; then 
     34    CXXFLAGS="-O0 -g" 
     35  fi 
     36fi 
     37 
    3738# --------------------------------------- 
    3839# OS 
     
    4546    cygwin*) 
    4647        with_os=unix 
    47         with_gui_default=windows 
     48        with_gui_default=gnustep 
    4849        with_cygwin=yes 
    4950        ;; 
     
    7172    gnustep) 
    7273        which gnustep-config > /dev/null 
    73         if test $? -ne 0; then 
     74        if test $? -eq 0; then 
     75            if test "$enable_debug" = "yes"; then 
     76                debug_arg="--debug" 
     77            fi 
     78            CXXFLAGS="$CXXFLAGS `perl $srcdir/scripts/gnustep-config-filter.pl $debug_arg gnustep-config --objc-flags`" 
     79            LIBS="$LIBS `perl $srcdir/scripts/gnustep-config-filter.pl $debug_arg gnustep-config --gui-libs`" 
     80        else 
    7481            AC_MSG_WARN([gnustep-config not found]) 
    7582        fi 
    7683 
    77         if test "$enable_debug" = "yes"; then 
    78             debug_arg="--debug" 
    79         fi 
    80  
    81         CXXFLAGS="$CXXFLAGS -x objective-c++ `perl $srcdir/scripts/gnustep-config-filter.pl $debug_arg gnustep-config --objc-flags`" 
     84        CXXFLAGS="$CXXFLAGS -x objective-c++" 
    8285        LDFLAGS="$LDFLAGS -x none" 
    83         LIBS="$LIBS `perl $srcdir/scripts/gnustep-config-filter.pl $debug_arg gnustep-config --gui-libs`" 
    8486        with_gui=cocoa 
    8587    ;; 
     
    139141 
    140142AC_LANG_PUSH([C]) 
    141 AM_GNU_GETTEXT_VERSION([0.16.1]) 
     143AM_GNU_GETTEXT_VERSION([0.17]) 
    142144AM_GNU_GETTEXT 
    143145AC_LANG_POP