summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2017-03-16 20:43:20 +0200
committerArnold D. Robbins <arnold@skeeve.com>2017-03-16 20:43:20 +0200
commit0fb0e8d020571df6f874e1e66f577cff14ba0784 (patch)
treeba6265e155cd11fe1487c8385293f1b17e578bf7
parentb39a138b9e445073f5f70ece80fa8a5393b1ea50 (diff)
downloadgawk-0fb0e8d020571df6f874e1e66f577cff14ba0784.tar.gz
Cleanups in configure.ac.
-rw-r--r--ChangeLog4
-rwxr-xr-xconfigure33
-rw-r--r--configure.ac33
3 files changed, 48 insertions, 22 deletions
diff --git a/ChangeLog b/ChangeLog
index 8b877467..a0f26b26 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2017-03-16 Arnold D. Robbins <arnold@skeeve.com>
+
+ * configure.ac: Some cleanups.
+
2017-02-23 Arnold D. Robbins <arnold@skeeve.com>
* awk.h (boolval): Return bool instead of int.
diff --git a/configure b/configure
index fa071e86..04b21f6a 100755
--- a/configure
+++ b/configure
@@ -1409,8 +1409,9 @@ Optional Features:
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-silent-rules less verbose build output (undo: "make V=1")
--disable-silent-rules verbose build output (undo: "make V=0")
- --disable-lint Disable gawk lint checking
- --enable-severe-portability-problems Enable really nasty portability problems
+ --disable-lint Disable gawk lint checking
+ --enable-severe-portability-problems
+ Enable really nasty portability problems
--enable-dependency-tracking
do not reject slow dependency extractors
--disable-dependency-tracking
@@ -1423,7 +1424,9 @@ Optional Features:
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
- --with-whiny-user-strftime Force use of included version of strftime for deficient systems
+ --with-whiny-user-strftime
+ Force use of included version of strftime for
+ deficient systems
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
--with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
--without-libiconv-prefix don't search for libiconv in includedir and libdir
@@ -8803,8 +8806,10 @@ else
# Systems have either "struct sockaddr *" or
# "void *" as the second argument to getpeername
rsync_cv_socklen_t_equiv=
- for arg2 in "struct sockaddr" void; do
- for t in int size_t unsigned long "unsigned long"; do
+ for arg2 in "struct sockaddr" void
+ do
+ for t in int size_t unsigned long "unsigned long"
+ do
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@@ -8834,7 +8839,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
done
- if test "x$rsync_cv_socklen_t_equiv" = x; then
+ if test "x$rsync_cv_socklen_t_equiv" = x
+ then
rsync_cv_socklen_t_equiv=int
fi
@@ -9966,7 +9972,8 @@ if test "${enable_extensions+set}" = set; then :
enableval=$enable_extensions;
fi
-if test "x$enable_extensions" != "xno"; then
+if test "x$enable_extensions" != "xno"
+then
extensions_supported=no
case $host_os in
@@ -10046,7 +10053,8 @@ fi
$as_echo "#define DYNAMIC 1" >>confdefs.h
# Add -export-dynamic for old extensions. Only works for GCC
- if test "$GCC" = yes; then
+ if test "$GCC" = yes
+ then
case $host_os in
linux*|freebsd*)
LDFLAGS="$LDFLAGS -Wl,-export-dynamic"
@@ -10061,7 +10069,8 @@ fi
;;
esac
- if test "x$enable_extensions$extensions_supported" = "xyesno"; then
+ if test "x$enable_extensions$extensions_supported" = "xyesno"
+ then
as_fn_error $? "extension support requested, but unavailable" "$LINENO" 5
fi
enable_extensions=$extensions_supported
@@ -10150,7 +10159,8 @@ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
-if test "$has_f_format" = yes; then
+if test "$has_f_format" = yes
+then
$as_echo "#define PRINTF_HAS_F_FORMAT 1" >>confdefs.h
@@ -10973,7 +10983,8 @@ esac
ac_config_files="$ac_config_files Makefile support/Makefile awklib/Makefile doc/Makefile extras/Makefile po/Makefile.in test/Makefile"
-if test "x$enable_extensions" = "xyes"; then
+if test "x$enable_extensions" = "xyes"
+then
subdirs="$subdirs extension"
diff --git a/configure.ac b/configure.ac
index 5a57904b..ec5f1abe 100644
--- a/configure.ac
+++ b/configure.ac
@@ -45,20 +45,23 @@ AM_INIT_AUTOMAKE([1.15 dist-xz dist-lzip])
AC_CONFIG_MACRO_DIR([m4])
dnl Additional argument stuff
-AC_ARG_WITH(whiny-user-strftime, [ --with-whiny-user-strftime Force use of included version of strftime for deficient systems],
+AC_ARG_WITH(whiny-user-strftime,
+ [AS_HELP_STRING([--with-whiny-user-strftime], [Force use of included version of strftime for deficient systems])],
if test "$withval" = yes
then
AC_DEFINE(USE_INCLUDED_STRFTIME, 1,
[force use of our version of strftime])
fi
)
-AC_ARG_ENABLE([lint], [ --disable-lint Disable gawk lint checking],
+AC_ARG_ENABLE([lint],
+ [AS_HELP_STRING([--disable-lint],[Disable gawk lint checking])],
if test "$enableval" = no
then
AC_DEFINE(NO_LINT, 1, [disable lint checks])
fi
)
-AC_ARG_ENABLE([severe-portability-problems], [ --enable-severe-portability-problems Enable really nasty portability problems],
+AC_ARG_ENABLE([severe-portability-problems],
+ [AS_HELP_STRING([--enable-severe-portability-problems],[Enable really nasty portability problems])],
if test "$enableval" = yes
then
AC_DEFINE(I_DONT_KNOW_WHAT_IM_DOING, 1, [enable severe portability problems])
@@ -206,8 +209,10 @@ AC_DEFUN([TYPE_SOCKLEN_T],
# Systems have either "struct sockaddr *" or
# "void *" as the second argument to getpeername
rsync_cv_socklen_t_equiv=
- for arg2 in "struct sockaddr" void; do
- for t in int size_t unsigned long "unsigned long"; do
+ for arg2 in "struct sockaddr" void
+ do
+ for t in int size_t unsigned long "unsigned long"
+ do
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#include <sys/types.h>
#include <sys/socket.h>
@@ -223,7 +228,8 @@ AC_DEFUN([TYPE_SOCKLEN_T],
done
done
- if test "x$rsync_cv_socklen_t_equiv" = x; then
+ if test "x$rsync_cv_socklen_t_equiv" = x
+ then
dnl Some systems get this. Default to int. -- ADR
dnl AC_MSG_ERROR([Cannot find a type to use in place of socklen_t])
rsync_cv_socklen_t_equiv=int
@@ -280,7 +286,8 @@ dnl check for dynamic linking
dnl This is known to be very primitive
AC_ARG_ENABLE([extensions],
[AS_HELP_STRING([--disable-extensions], [disable dynamic extensions (default is detect)])])
-if test "x$enable_extensions" != "xno"; then
+if test "x$enable_extensions" != "xno"
+then
extensions_supported=no
dnl On MirBSD (and probably other systems), don't even try.
@@ -301,7 +308,8 @@ if test "x$enable_extensions" != "xno"; then
extensions_supported=yes
AC_DEFINE([DYNAMIC], 1, [dynamic loading is possible])
# Add -export-dynamic for old extensions. Only works for GCC
- if test "$GCC" = yes; then
+ if test "$GCC" = yes
+ then
case $host_os in
linux*|freebsd*)
LDFLAGS="$LDFLAGS -Wl,-export-dynamic"
@@ -313,7 +321,8 @@ if test "x$enable_extensions" != "xno"; then
;;
esac
- if test "x$enable_extensions$extensions_supported" = "xyesno"; then
+ if test "x$enable_extensions$extensions_supported" = "xyesno"
+ then
AC_MSG_ERROR([extension support requested, but unavailable])
fi
enable_extensions=$extensions_supported
@@ -354,7 +363,8 @@ int main()
has_f_format=no,
has_f_format=no dnl Cross-compiling, assuming the worst.
)
-if test "$has_f_format" = yes; then
+if test "$has_f_format" = yes
+then
AC_DEFINE(PRINTF_HAS_F_FORMAT, 1, [Define to 1 if *printf supports %F format])
fi
AC_MSG_RESULT($has_f_format)
@@ -413,7 +423,8 @@ AC_CONFIG_FILES(Makefile
extras/Makefile
po/Makefile.in
test/Makefile)
-if test "x$enable_extensions" = "xyes"; then
+if test "x$enable_extensions" = "xyes"
+then
AC_CONFIG_SUBDIRS(extension)
fi
AC_OUTPUT