Mercurial > noffle
comparison configure @ 265:1cafe0f3f0ec noffle
[svn] * configure, configure.in: Correct --enable-debug handling. Don't add
-DDEBUG flag to the build line on non-debug builds.
| author | bears |
|---|---|
| date | Mon, 05 Aug 2002 23:05:32 +0100 |
| parents | ebd9c98bbc7f |
| children | f3b44be9e4ab |
comparison
equal
deleted
inserted
replaced
| 264:94b7962a0fbe | 265:1cafe0f3f0ec |
|---|---|
| 2697 else | 2697 else |
| 2698 enable_debug=no | 2698 enable_debug=no |
| 2699 fi | 2699 fi |
| 2700 | 2700 |
| 2701 | 2701 |
| 2702 if test "x$enable_debug" = "xyes" && test "x$GCC" = "xyes"; then | 2702 if test "x$enable_debug" = "xyes"; then |
| 2703 CFLAGS="$CFLAGS \ | 2703 if test "x$GCC" = "xyes"; then |
| 2704 -Wall -O2 -g -pedantic -ansi -W -Wtraditional -Wshadow -Wpointer-arith \ | 2704 CFLAGS="$CFLAGS \ |
| 2705 -Wcast-align -Wwrite-strings \ | 2705 -Wall -pedantic -ansi -W -Wtraditional -Wshadow -Wpointer-arith \ |
| 2706 -Wstrict-prototypes -Wmissing-prototypes \ | 2706 -Wcast-align -Wwrite-strings \ |
| 2707 -Wmissing-declarations -Wnested-externs -Winline \ | 2707 -Wstrict-prototypes -Wmissing-prototypes \ |
| 2708 -D__USE_BSD -D__USE_XOPEN_EXTENDED -D__USE_POSIX -DDEBUG" | 2708 -Wmissing-declarations -Wnested-externs -Winline \ |
| 2709 else | 2709 -D__USE_BSD -D__USE_XOPEN_EXTENDED -D__USE_POSIX -DDEBUG" |
| 2710 CFLAGS="$CFLAGS -D__USE_BSD -D__USE_XOPEN_EXTENDED -D__USE_POSIX -DDEBUG" | 2710 else |
| 2711 CFLAGS="$CFLAGS -DDEBUG" | |
| 2712 fi | |
| 2711 fi | 2713 fi |
| 2712 | 2714 |
| 2713 | 2715 |
| 2714 # [ This is adapted from mutt. ] | 2716 # [ This is adapted from mutt. ] |
| 2715 # Check whether --with-docdir or --without-docdir was given. | 2717 # Check whether --with-docdir or --without-docdir was given. |
| 2716 if test "${with_docdir+set}" = set; then | 2718 if test "${with_docdir+set}" = set; then |
| 2717 withval="$with_docdir" | 2719 withval="$with_docdir" |
| 2718 noffle_cv_docdir=$withval | 2720 noffle_cv_docdir=$withval |
| 2719 else | 2721 else |
| 2720 echo $ac_n "checking other documentation directory""... $ac_c" 1>&6 | 2722 echo $ac_n "checking other documentation directory""... $ac_c" 1>&6 |
| 2721 echo "configure:2722: checking other documentation directory" >&5 | 2723 echo "configure:2724: checking other documentation directory" >&5 |
| 2722 if eval "test \"`echo '$''{'noffle_cv_docdir'+set}'`\" = set"; then | 2724 if eval "test \"`echo '$''{'noffle_cv_docdir'+set}'`\" = set"; then |
| 2723 echo $ac_n "(cached) $ac_c" 1>&6 | 2725 echo $ac_n "(cached) $ac_c" 1>&6 |
| 2724 else | 2726 else |
| 2725 if test x$prefix = xNONE; then | 2727 if test x$prefix = xNONE; then |
| 2726 noffle_cv_prefix=$ac_default_prefix | 2728 noffle_cv_prefix=$ac_default_prefix |
| 2735 | 2737 |
| 2736 fi | 2738 fi |
| 2737 | 2739 |
| 2738 | 2740 |
| 2739 echo $ac_n "checking spooldir""... $ac_c" 1>&6 | 2741 echo $ac_n "checking spooldir""... $ac_c" 1>&6 |
| 2740 echo "configure:2741: checking spooldir" >&5 | 2742 echo "configure:2743: checking spooldir" >&5 |
| 2741 # Check whether --with-spooldir or --without-spooldir was given. | 2743 # Check whether --with-spooldir or --without-spooldir was given. |
| 2742 if test "${with_spooldir+set}" = set; then | 2744 if test "${with_spooldir+set}" = set; then |
| 2743 withval="$with_spooldir" | 2745 withval="$with_spooldir" |
| 2744 if echo "$withval" | egrep >/dev/null -v '^/' ; then | 2746 if echo "$withval" | egrep >/dev/null -v '^/' ; then |
| 2745 { echo "configure: error: you must give an absolute path" 1>&2; exit 1; } | 2747 { echo "configure: error: you must give an absolute path" 1>&2; exit 1; } |
| 2758 EOF | 2760 EOF |
| 2759 | 2761 |
| 2760 | 2762 |
| 2761 | 2763 |
| 2762 echo $ac_n "checking configfile""... $ac_c" 1>&6 | 2764 echo $ac_n "checking configfile""... $ac_c" 1>&6 |
| 2763 echo "configure:2764: checking configfile" >&5 | 2765 echo "configure:2766: checking configfile" >&5 |
| 2764 # Check whether --with-configfile or --without-configfile was given. | 2766 # Check whether --with-configfile or --without-configfile was given. |
| 2765 if test "${with_configfile+set}" = set; then | 2767 if test "${with_configfile+set}" = set; then |
| 2766 withval="$with_configfile" | 2768 withval="$with_configfile" |
| 2767 if echo "$withval" | egrep >/dev/null -v '^/' ; then | 2769 if echo "$withval" | egrep >/dev/null -v '^/' ; then |
| 2768 { echo "configure: error: you must give an absolute path" 1>&2; exit 1; } | 2770 { echo "configure: error: you must give an absolute path" 1>&2; exit 1; } |
