diff options
| author | robbeh <robbeh@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-14 23:24:36 +0000 |
|---|---|---|
| committer | robbeh <robbeh@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-14 23:24:36 +0000 |
| commit | bba7d1aaaf7a4cf2c2af0b3e6f92cb115bdd48c1 (patch) | |
| tree | ac3da0905cd70c4eebed1c3df567c6cea030b694 /configure | |
| parent | 6c55e0a529c7f1216ff6f63a4fc77ea06a2a3a38 (diff) | |
Added --with-debugsym and --with-optimization=0|1|2|3 etc... - defaults are now --with-debugsym and no optimisation (we can change this to 2 later once we are not debugging so often :) )
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1682 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 28 |
1 files changed, 27 insertions, 1 deletions
@@ -1260,6 +1260,8 @@ Optional Packages: --with-bindir=bindir Specify the default binary dir for anope --with-makebin=run-cc.pl Specify the default make binary to use --with-datadir=datadir Specify the location of the services data folder + --with-optimisation=1|2|3|4|5 Specify the optimisation level + --with-debugsym Include debugging symbols Some influential environment variables: CC C compiler command @@ -1694,6 +1696,9 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu +# Clear out any CFLAGS (cept -g) the os is using, usually -g -O2 +CFLAGS="-g" + # If no bindir, we tell him to run ./Config. if test "${with_bindir+set}" != set || test "${with_datadir+set}" != set; then echo "You might want to run ./Config or provide some parameters to this script." @@ -4179,7 +4184,6 @@ fi - { echo "$as_me:$LINENO: checking for dlopen" >&5 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } if test "${ac_cv_func_dlopen+set}" = set; then @@ -7734,6 +7738,7 @@ fi + # Check whether --with-permissions was given. if test "${with_permissions+set}" = set; then withval=$with_permissions; @@ -7801,6 +7806,25 @@ fi + +# Check whether --with-optimization was given. +if test "${with_optimization+set}" = set; then + withval=$with_optimization; + CFLAGS="$CFLAGS -O$withval" + +fi + + + +# Check whether --with-debugsym was given. +if test "${with_debugsym+set}" = set; then + withval=$with_debugsym; + CFLAGS="$CFLAGS -g" + +fi + + + ac_config_files="$ac_config_files Makefile src/bin/anoperc" @@ -8914,6 +8938,8 @@ cat <<EOT $DIS_MODULES $DIS_MYSQL + + All done! Now run "make" (or possibly "gmake") to compile Anope. See the INSTALL, README and FAQ files if you have any problems. EOT |
