OSDN Git Service

Wrote some texts, fixed configure.in and Makefile.am, and fixed islibfunc.hpp, system...
[islib/islib.git] / configure
index 1bb1e19..24b4204 100755 (executable)
--- a/configure
+++ b/configure
@@ -665,6 +665,8 @@ CPPFLAGS
 LDFLAGS
 CXXFLAGS
 CXX
+DEBUG_FALSE
+DEBUG_TRUE
 am__untar
 am__tar
 AMTAR
@@ -728,6 +730,7 @@ SHELL'
 ac_subst_files=''
 ac_user_opts='
 enable_option_checking
+enable_debug
 enable_dependency_tracking
 '
       ac_precious_vars='build_alias
@@ -1368,6 +1371,7 @@ Optional Features:
   --disable-option-checking  ignore unrecognized --enable/--with options
   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
+  --enable-debug          Turn on debugging
   --disable-dependency-tracking  speeds up one-time build
   --enable-dependency-tracking   do not reject slow dependency extractors
 
@@ -1835,6 +1839,14 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
 ac_config_headers="$ac_config_headers config.h"
 
 
+# Check whether --enable-debug was given.
+if test "${enable_debug+set}" = set; then
+  enableval=$enable_debug; enable_debug="$enableval"
+else
+  enable_fcgi="no"
+fi
+
+
 am__api_version='1.10'
 
 ac_aux_dir=
@@ -2325,6 +2337,14 @@ am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
 
 
+ if test "$enable_debug" = "yes"; then
+  DEBUG_TRUE=
+  DEBUG_FALSE='#'
+else
+  DEBUG_TRUE='#'
+  DEBUG_FALSE=
+fi
+
 
 # Checks for programs.
 ac_ext=cpp
@@ -5944,6 +5964,13 @@ LIBOBJS=$ac_libobjs
 LTLIBOBJS=$ac_ltlibobjs
 
 
+if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
+  { { $as_echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"DEBUG\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+   { (exit 1); exit 1; }; }
+fi
 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 Usually this means the macro was only invoked conditionally." >&5