diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2012-11-06 22:26:05 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2012-11-06 22:26:05 +0200 |
commit | b1f42bdc87249e1869d13df2cacaa3aceea6fc1e (patch) | |
tree | 4bc0e7d66012b854a24686685af991d811f0663a | |
parent | 2f8505ba759663f2c4a3e5b34471851025337df6 (diff) | |
download | egawk-b1f42bdc87249e1869d13df2cacaa3aceea6fc1e.tar.gz egawk-b1f42bdc87249e1869d13df2cacaa3aceea6fc1e.tar.bz2 egawk-b1f42bdc87249e1869d13df2cacaa3aceea6fc1e.zip |
Add extra debug stuff in extension/configure.ac.
-rw-r--r-- | TODO.xgawk | 6 | ||||
-rw-r--r-- | extension/ChangeLog | 5 | ||||
-rwxr-xr-x | extension/configure | 15 | ||||
-rw-r--r-- | extension/configure.ac | 12 |
4 files changed, 34 insertions, 4 deletions
@@ -1,10 +1,8 @@ To-do list for xgawk enhancements: -- In gawkapi.c - review switch statements and use of default. - -- In extensions/configure.ac - add compiler warnings if GCC. +- Review macros (force_string etc.) -- Update to latest bison. +- In gawkapi.c - review switch statements and use of default. Low priority: diff --git a/extension/ChangeLog b/extension/ChangeLog index 199c5035..793cf455 100644 --- a/extension/ChangeLog +++ b/extension/ChangeLog @@ -1,3 +1,8 @@ +2012-11-06 Arnold D. Robbins <arnold@skeeve.com> + + * configure.ac: Add check for $srcdir/.developing as in + the main directory's configure.ac. + 2012-11-04 Arnold D. Robbins <arnold@skeeve.com> * rwarray.3am: Minor edits. diff --git a/extension/configure b/extension/configure index 68d0ebcd..0b26dff1 100755 --- a/extension/configure +++ b/extension/configure @@ -13715,6 +13715,21 @@ then CFLAGS="$CFLAGS -Wall -Wextra" fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for special development options" >&5 +$as_echo_n "checking for special development options... " >&6; } +if test -f $srcdir/.developing +then + if test "$GCC" = yes + then + CFLAGS="$CFLAGS -Wall -fno-builtin -g3 -gdwarf-2" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + for ac_header in dirent.h fnmatch.h time.h sys/time.h sys/select.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` diff --git a/extension/configure.ac b/extension/configure.ac index d0e45c94..92ac10d8 100644 --- a/extension/configure.ac +++ b/extension/configure.ac @@ -49,6 +49,18 @@ then CFLAGS="$CFLAGS -Wall -Wextra" fi +AC_MSG_CHECKING([for special development options]) +if test -f $srcdir/.developing +then + if test "$GCC" = yes + then + CFLAGS="$CFLAGS -Wall -fno-builtin -g3 -gdwarf-2" + fi + AC_MSG_RESULT([yes]) +else + AC_MSG_RESULT([no]) +fi + AC_CHECK_HEADERS(dirent.h fnmatch.h time.h sys/time.h sys/select.h) AC_CHECK_FUNCS(fdopendir fnmatch gettimeofday \ |