Changeset 31615 for lang/objective-cplusplus/i3/trunk
- Timestamp:
- 03/27/09 22:25:55 (4 years ago)
- Files:
-
- 1 modified
-
lang/objective-cplusplus/i3/trunk/configure.ac (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/objective-cplusplus/i3/trunk/configure.ac
r31446 r31615 1 1 # -*- Autoconf -*- 2 2 # Process this file with autoconf to produce a configure script. 3 4 CFLAGS_before_configure=$CFLAGS 5 CXXFLAGS_before_configure=$CXXFLAGS 3 6 4 7 AC_PREREQ(2.60) … … 11 14 12 15 # --------------------------------------- 13 # this should be set before AC_PROG_CC, AC_USE_SYSTEM_EXTENSIONS14 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"; then19 if test "$CFLAGS" = ""; then20 CFLAGS="-O0 -g"21 fi22 if test "$CXXFLAGS" = ""; then23 CXXFLAGS="-O0 -g"24 fi25 fi26 27 # ---------------------------------------28 16 # Programs 29 17 AC_USE_SYSTEM_EXTENSIONS … … 35 23 AM_CONDITIONAL(USE_GCH, test "$GXX" = "yes") 36 24 25 AC_ARG_ENABLE(debug, 26 AS_HELP_STRING([--enable-debug], [build debug binaries]), 27 enable_debug="$enableval", enable_debug="no") 28 AM_CONDITIONAL(ENABLE_DEBUG, test "$enable_debug" = "yes") 29 if 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 36 fi 37 37 38 # --------------------------------------- 38 39 # OS … … 45 46 cygwin*) 46 47 with_os=unix 47 with_gui_default= windows48 with_gui_default=gnustep 48 49 with_cygwin=yes 49 50 ;; … … 71 72 gnustep) 72 73 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 74 81 AC_MSG_WARN([gnustep-config not found]) 75 82 fi 76 83 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++" 82 85 LDFLAGS="$LDFLAGS -x none" 83 LIBS="$LIBS `perl $srcdir/scripts/gnustep-config-filter.pl $debug_arg gnustep-config --gui-libs`"84 86 with_gui=cocoa 85 87 ;; … … 139 141 140 142 AC_LANG_PUSH([C]) 141 AM_GNU_GETTEXT_VERSION([0.1 6.1])143 AM_GNU_GETTEXT_VERSION([0.17]) 142 144 AM_GNU_GETTEXT 143 145 AC_LANG_POP
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)