diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-10-03 17:41:38 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-10-03 17:41:38 -0700 |
commit | bbb17208a930ab5c7e8239358635f25734877e68 (patch) | |
tree | 7702bdff5d8727eacd0f267822f2c8e92243b2c4 | |
parent | 80f86e5a04f443a0c4cde4176b389e1090727a8b (diff) | |
download | tftp-hpa-bbb17208a930ab5c7e8239358635f25734877e68.tar.gz |
Use autoconf features to deal with feature-test macros.
-rw-r--r-- | configure.in | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/configure.in b/configure.in index 71b746f..97856f9 100644 --- a/configure.in +++ b/configure.in @@ -2,33 +2,14 @@ dnl dnl autoconf input file to generate MCONFIG dnl -AC_PREREQ(2.52) +AC_PREREQ(2.59) AC_INIT(MCONFIG.in) AC_PREFIX_DEFAULT(/usr) +AC_USE_SYSTEM_EXTENSIONS AC_ISC_POSIX -AC_AIX -AC_MINIX AC_PROG_CC -dnl -dnl Feature-test macros. These need to be set in CFLAGS, rather in -dnl aconfig.h, or "configure" will run in a different environment than -dnl we eventually we build in. -dnl - -dnl Needed on Solaris/cc or Solaris/gcc -CFLAGS="$CFLAGS -D_XPG4_2" -CFLAGS="$CFLAGS -D_XOPEN_SOURCE" -CFLAGS="$CFLAGS -D__EXTENSIONS__" - -dnl Needed on some glibc systems -CFLAGS="$CFLAGS -D_GNU_SOURCE" - -dnl Needed on Digital Unix -CFLAGS="$CFLAGS -D_OSF_SOURCE" -CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED" - AC_C_CONST AC_C_INLINE |