mirror of
https://github.com/anope/anope.git
synced 2026-06-12 19:14:47 +02:00
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
This commit is contained in:
@@ -66,7 +66,7 @@ if [ "$MYSQL" != "yes" ] ; then
|
||||
fi
|
||||
|
||||
|
||||
echo "./configure $WITH_BIN $WITH_DATA $WITH_ENC $WITH_RUN $WITH_PERM $WITH_MYSQL"
|
||||
echo "./configure $WITH_BIN $WITH_DATA $WITH_ENC $WITH_RUN $WITH_PERM $WITH_MYSQL --with-debugsym"
|
||||
|
||||
./configure $WITH_BIN $WITH_DATA $WITH_ENC $WITH_RUN $WITH_PERM $WITH_MYSQL
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
+15
-1
@@ -11,6 +11,9 @@ dnl codemastr from UnrealIRCD.
|
||||
|
||||
AC_INIT
|
||||
|
||||
# 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."
|
||||
@@ -140,7 +143,6 @@ AC_SUBST(ANOPELIBS)
|
||||
AC_SUBST(LDFLAGS)
|
||||
|
||||
AC_CHECK_HEADER(sys/types.h,AC_DEFINE(HAS_SYS_TYPES_H,1,"Has sys/types.h"))
|
||||
|
||||
dnl module checking based on Unreal's module checking code
|
||||
AC_DEFUN(AC_ENABLE_DYN,
|
||||
[
|
||||
@@ -241,6 +243,7 @@ AC_ARG_WITH(rungroup, [ --with-rungroup=group Specify the rungroup for anope
|
||||
AC_DEFINE_UNQUOTED(RUNGROUP,"$withval","Run group")
|
||||
RUNGROUP=$withval
|
||||
])
|
||||
|
||||
AC_SUBST(RUNGROUP)
|
||||
|
||||
dnl AC_DEFINE_UNQUOTED(MYOSNAME,"`uname -a`","uname")
|
||||
@@ -271,6 +274,15 @@ AC_ARG_WITH(datadir, [ --with-datadir=datadir Specify the location of the serv
|
||||
AC_SUBST(DATDEST)
|
||||
AC_SUBST(MODULE_PATH)
|
||||
|
||||
AC_ARG_WITH(optimization, [ --with-optimisation=1|2|3|4|5 Specify the optimisation level], [
|
||||
CFLAGS="$CFLAGS -O$withval"
|
||||
])
|
||||
|
||||
AC_ARG_WITH(debugsym, [ --with-debugsym Include debugging symbols], [
|
||||
CFLAGS="$CFLAGS -g"
|
||||
])
|
||||
|
||||
|
||||
AC_CONFIG_FILES( \
|
||||
Makefile \
|
||||
src/bin/anoperc \
|
||||
@@ -283,6 +295,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
|
||||
|
||||
Reference in New Issue
Block a user