Lines 101-117
Link Here
|
101 |
-Wpointer-arith -Wredundant-decls -Wno-format-zero-length \ |
101 |
-Wpointer-arith -Wredundant-decls -Wno-format-zero-length \ |
102 |
-Wmissing-format-attribute -Wstrict-prototypes" |
102 |
-Wmissing-format-attribute -Wstrict-prototypes" |
103 |
|
103 |
|
104 |
AC_ARG_ENABLE(debug, |
104 |
AC_ARG_ENABLE([debug], |
105 |
[ --enable-debug enter debugging mode], |
105 |
[ --enable-debug enter debugging mode], |
106 |
[HAVE_DEBUG=yes], |
106 |
[ case "${enableval}" in |
107 |
[HAVE_DEBUG=no]) |
107 |
yes) debug=true ;; |
|
|
108 |
no) debug=false ;; |
109 |
*) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;; |
110 |
esac],[debug=false]) |
108 |
|
111 |
|
109 |
AM_CONDITIONAL([DEBUG], [test x$HAVE_DEBUG = xyes]) |
112 |
AM_CONDITIONAL([DEBUG], [ test "x$debug" = "xtrue" ]) |
110 |
|
113 |
|
111 |
if test "x$HAVE_DEBUG" = "xyes" |
114 |
AM_COND_IF([DEBUG], [ CFLAGS="$CFLAGS -ggdb -O0 -D__DEBUG__" ]) |
112 |
then |
|
|
113 |
CFLAGS="$CFLAGS -ggdb -O0 -D__DEBUG__" |
114 |
fi |
115 |
|
115 |
|
116 |
AC_SUBST(CFLAGS) |
116 |
AC_SUBST(CFLAGS) |
117 |
|
117 |
|