summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-10-07 13:13:34 +0000
committerYang Tse <yangsita@gmail.com>2008-10-07 13:13:34 +0000
commitd930280af5df9de318229b8fa7d4f1f7d27b748d (patch)
treec79ac6f04669ee46421271c6eabd9f7bbddb000f /configure.ac
parent445e4a9792f5a71ce3c38de2fa0334bf13cff15a (diff)
downloadcurl-d930280af5df9de318229b8fa7d4f1f7d27b748d.tar.gz
Initial attempt to support configure's --(dis|en)able-optimize
option to specify dis(activation) of compiler optimizations. If option is specified, it will be honored independant of the --(dis|en)able-debug option.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac22
1 files changed, 18 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 935ee46cb..bf86bf038 100644
--- a/configure.ac
+++ b/configure.ac
@@ -37,6 +37,7 @@ AM_CONFIG_HEADER(lib/config.h src/config.h include/curl/curlbuild.h)
AM_MAINTAINER_MODE
CURL_CHECK_OPTION_DEBUG
+CURL_CHECK_OPTION_OPTIMIZE
CURL_CHECK_OPTION_WARNINGS
dnl SED is mandatory for configure process and libtool.
@@ -133,7 +134,7 @@ dnl Get system canonical name
AC_DEFINE_UNQUOTED(OS, "${host}", [cpu-machine-OS])
dnl Checks for programs.
-AC_PROG_CC
+CURL_CHECK_PROG_CC
dnl Our curl_off_t internal and external configure settings
CURL_CONFIGURE_CURL_OFF_T
@@ -251,9 +252,10 @@ dnl platform/compiler/architecture specific checks/flags
dnl **********************************************************************
CURL_CHECK_COMPILER
-CURL_PROCESS_CC_BASIC_OPTS
-CURL_PROCESS_CC_DEBUG_OPTS
-CURL_PROCESS_CC_WARNING_OPTS
+CURL_SET_COMPILER_BASIC_OPTS
+CURL_SET_COMPILER_DEBUG_OPTS
+CURL_SET_COMPILER_OPTIMIZE_OPTS
+CURL_SET_COMPILER_WARNING_OPTS
case $host in
#
@@ -2529,6 +2531,18 @@ fi
AC_SUBST(SUPPORT_PROTOCOLS)
+dnl squeeze whitespace out of some variables
+
+CFLAGS=`eval echo $CFLAGS`
+CPPFLAGS=`eval echo $CPPFLAGS`
+DEFS=`eval echo $DEFS`
+LDFLAGS=`eval echo $LDFLAGS`
+LIBS=`eval echo $LIBS`
+
+CURL_LIBS=`eval echo $CURL_LIBS`
+LIBCURL_LIBS=`eval echo $LIBCURL_LIBS`
+TEST_SERVER_LIBS=`eval echo $TEST_SERVER_LIBS`
+
AC_CONFIG_FILES([Makefile \
docs/Makefile \
docs/examples/Makefile \