Changeset 13230
- Timestamp:
- 12/04/07 11:58:53 (7 months ago)
- Files:
-
- trunk/gdal/configure (modified) (13 diffs)
- trunk/gdal/configure.in (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/gdal/configure
r13224 r13230 1024 1024 --without-ld-shared Disable shared library support 1025 1025 --with-unix-stdio-64=ARG Utilize 64 stdio api (yes/no) 1026 --enable-debug Build with -g -DDEBUG for debugging, instead of -O 1026 1027 --with-hide-internal-symbols=ARG Try to hide internal symbols (ARG=yes/no) 1027 1028 --with-local=dir Include /usr/local or other local tree for INCLUDE/LIBS … … 4988 4989 lt_cv_nm_interface="BSD nm" 4989 4990 echo "int some_variable = 0;" > conftest.$ac_ext 4990 (eval echo "\"\$as_me:499 0: $ac_compile\"" >&5)4991 (eval echo "\"\$as_me:4991: $ac_compile\"" >&5) 4991 4992 (eval "$ac_compile" 2>conftest.err) 4992 4993 cat conftest.err >&5 4993 (eval echo "\"\$as_me:499 3: $NM \\\"conftest.$ac_objext\\\"\"" >&5)4994 (eval echo "\"\$as_me:4994: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4994 4995 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4995 4996 cat conftest.err >&5 4996 (eval echo "\"\$as_me:499 6: output\"" >&5)4997 (eval echo "\"\$as_me:4997: output\"" >&5) 4997 4998 cat conftest.out >&5 4998 4999 if $GREP 'External.*some_variable' conftest.out > /dev/null; then … … 6043 6044 *-*-irix6*) 6044 6045 # Find out which ABI we are using. 6045 echo '#line 604 5"configure"' > conftest.$ac_ext6046 echo '#line 6046 "configure"' > conftest.$ac_ext 6046 6047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6047 6048 (eval $ac_compile) 2>&5 … … 7726 7727 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7727 7728 -e 's:$: $lt_compiler_flag:'` 7728 (eval echo "\"\$as_me:772 8: $lt_compile\"" >&5)7729 (eval echo "\"\$as_me:7729: $lt_compile\"" >&5) 7729 7730 (eval "$lt_compile" 2>conftest.err) 7730 7731 ac_status=$? 7731 7732 cat conftest.err >&5 7732 echo "$as_me:773 2: \$? = $ac_status" >&57733 echo "$as_me:7733: \$? = $ac_status" >&5 7733 7734 if (exit $ac_status) && test -s "$ac_outfile"; then 7734 7735 # The compiler can only warn and ignore the option if not recognized … … 8048 8049 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8049 8050 -e 's:$: $lt_compiler_flag:'` 8050 (eval echo "\"\$as_me:805 0: $lt_compile\"" >&5)8051 (eval echo "\"\$as_me:8051: $lt_compile\"" >&5) 8051 8052 (eval "$lt_compile" 2>conftest.err) 8052 8053 ac_status=$? 8053 8054 cat conftest.err >&5 8054 echo "$as_me:805 4: \$? = $ac_status" >&58055 echo "$as_me:8055: \$? = $ac_status" >&5 8055 8056 if (exit $ac_status) && test -s "$ac_outfile"; then 8056 8057 # The compiler can only warn and ignore the option if not recognized … … 8153 8154 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8154 8155 -e 's:$: $lt_compiler_flag:'` 8155 (eval echo "\"\$as_me:815 5: $lt_compile\"" >&5)8156 (eval echo "\"\$as_me:8156: $lt_compile\"" >&5) 8156 8157 (eval "$lt_compile" 2>out/conftest.err) 8157 8158 ac_status=$? 8158 8159 cat out/conftest.err >&5 8159 echo "$as_me:81 59: \$? = $ac_status" >&58160 echo "$as_me:8160: \$? = $ac_status" >&5 8160 8161 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8161 8162 then … … 8208 8209 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8209 8210 -e 's:$: $lt_compiler_flag:'` 8210 (eval echo "\"\$as_me:821 0: $lt_compile\"" >&5)8211 (eval echo "\"\$as_me:8211: $lt_compile\"" >&5) 8211 8212 (eval "$lt_compile" 2>out/conftest.err) 8212 8213 ac_status=$? 8213 8214 cat out/conftest.err >&5 8214 echo "$as_me:821 4: \$? = $ac_status" >&58215 echo "$as_me:8215: \$? = $ac_status" >&5 8215 8216 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8216 8217 then … … 10998 10999 lt_status=$lt_dlunknown 10999 11000 cat > conftest.$ac_ext <<_LT_EOF 11000 #line 1100 0"configure"11001 #line 11001 "configure" 11001 11002 #include "confdefs.h" 11002 11003 … … 11098 11099 lt_status=$lt_dlunknown 11099 11100 cat > conftest.$ac_ext <<_LT_EOF 11100 #line 1110 0"configure"11101 #line 11101 "configure" 11101 11102 #include "confdefs.h" 11102 11103 … … 13128 13129 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13129 13130 -e 's:$: $lt_compiler_flag:'` 13130 (eval echo "\"\$as_me:1313 0: $lt_compile\"" >&5)13131 (eval echo "\"\$as_me:13131: $lt_compile\"" >&5) 13131 13132 (eval "$lt_compile" 2>conftest.err) 13132 13133 ac_status=$? 13133 13134 cat conftest.err >&5 13134 echo "$as_me:1313 4: \$? = $ac_status" >&513135 echo "$as_me:13135: \$? = $ac_status" >&5 13135 13136 if (exit $ac_status) && test -s "$ac_outfile"; then 13136 13137 # The compiler can only warn and ignore the option if not recognized … … 13227 13228 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13228 13229 -e 's:$: $lt_compiler_flag:'` 13229 (eval echo "\"\$as_me:132 29: $lt_compile\"" >&5)13230 (eval echo "\"\$as_me:13230: $lt_compile\"" >&5) 13230 13231 (eval "$lt_compile" 2>out/conftest.err) 13231 13232 ac_status=$? 13232 13233 cat out/conftest.err >&5 13233 echo "$as_me:1323 3: \$? = $ac_status" >&513234 echo "$as_me:13234: \$? = $ac_status" >&5 13234 13235 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13235 13236 then … … 13279 13280 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13280 13281 -e 's:$: $lt_compiler_flag:'` 13281 (eval echo "\"\$as_me:1328 1: $lt_compile\"" >&5)13282 (eval echo "\"\$as_me:13282: $lt_compile\"" >&5) 13282 13283 (eval "$lt_compile" 2>out/conftest.err) 13283 13284 ac_status=$? 13284 13285 cat out/conftest.err >&5 13285 echo "$as_me:1328 5: \$? = $ac_status" >&513286 echo "$as_me:13286: \$? = $ac_status" >&5 13286 13287 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13287 13288 then … … 18438 18439 EXTRA_INCLUDES= 18439 18440 18441 18442 echo "$as_me:$LINENO: checking for --enable-debug" >&5 18443 echo $ECHO_N "checking for --enable-debug... $ECHO_C" >&6 18444 18445 18446 # Check whether --with-enable_debug or --without-enable_debug was given. 18447 if test "${with_enable_debug+set}" = set; then 18448 withval="$with_enable_debug" 18449 18450 fi; 18451 18452 if test "x$enable_debug" = "xyes" ; then 18453 18454 18455 CXXFLAGS=`echo "$CXXFLAGS " | sed "s/-O2 //"` 18456 CFLAGS=`echo "$CFLAGS " | sed "s/-O2 //"` 18457 CXXFLAGS=`echo "$CXXFLAGS " | sed "s/-O //"` 18458 CFLAGS=`echo "$CFLAGS " | sed "s/-O //"` 18459 18460 18461 CXXFLAGS=`echo "$CXXFLAGS " | sed "s/-g //"` 18462 CFLAGS=`echo "$CFLAGS " | sed "s/-g //"` 18463 18464 18465 CXXFLAGS="$CXXFLAGS -g -DDEBUG" 18466 CFLAGS="$CFLAGS -g -DDEBUG" 18467 18468 echo "$as_me:$LINENO: result: yes, modified CFLAGS=$CFLAGS" >&5 18469 echo "${ECHO_T}yes, modified CFLAGS=$CFLAGS" >&6 18470 else 18471 echo "$as_me:$LINENO: result: no, CFLAGS=$CFLAGS" >&5 18472 echo "${ECHO_T}no, CFLAGS=$CFLAGS" >&6 18473 fi 18440 18474 18441 18475 trunk/gdal/configure.in
r13224 r13230 146 146 EXTRA_INCLUDES= 147 147 148 dnl --------------------------------------------------------------------------- 149 dnl Check for --enable-debug 150 dnl --------------------------------------------------------------------------- 151 152 AC_MSG_CHECKING([for --enable-debug]) 153 154 AC_ARG_WITH(enable_debug,[ --enable-debug Build with -g -DDEBUG for debugging, instead of -O],,) 155 156 if test "x$enable_debug" = "xyes" ; then 157 158 dnl Try to strip out optimization. 159 160 CXXFLAGS=`echo "$CXXFLAGS " | sed "s/-O2 //"` 161 CFLAGS=`echo "$CFLAGS " | sed "s/-O2 //"` 162 CXXFLAGS=`echo "$CXXFLAGS" | sed "s/-O //"` 163 CFLAGS=`echo "$CFLAGS" | sed "s/-O //"` 164 165 dnl remove existing -g to avoid duplicates. 166 167 CXXFLAGS=`echo "$CXXFLAGS" | sed "s/-g //"` 168 CFLAGS=`echo "$CFLAGS" | sed "s/-g //"` 169 170 dnl add -g and -DDEBUG 171 172 CXXFLAGS="$CXXFLAGS -g -DDEBUG" 173 CFLAGS="$CFLAGS -g -DDEBUG" 174 175 AC_MSG_RESULT([yes, modified CFLAGS=]$CFLAGS) 176 else 177 AC_MSG_RESULT([no, CFLAGS=]$CFLAGS) 178 fi 148 179 149 180 dnl ---------------------------------------------------------------------------
