aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in13
1 files changed, 8 insertions, 5 deletions
diff --git a/configure.in b/configure.in
index 7a97a17..9705e98 100644
--- a/configure.in
+++ b/configure.in
@@ -7,7 +7,7 @@ AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE(1.11.1)
-AC_CONFIG_HEADERS([config.h])
+AC_CONFIG_HEADERS([include/config.h])
AC_CONFIG_SRCDIR([src/duser.c])
# Checks for programs.
@@ -25,18 +25,21 @@ AC_TYPE_SIZE_T
# Checks for library functions.
AC_FUNC_MALLOC
-AC_CHECK_FUNCS_ONCE([memset strcasecmp strdup strerror strncasecmp strstr])
+AC_CHECK_FUNCS_ONCE([memset strcasecmp strdup strerror strncasecmp strstr strchrnul strcasestr])
# Checks for currently used operating system.
case "$host_os" in
*linux*)
CFLAGS="-O2 -Wall -Wextra -I../include"
+ AC_DEFINE([__NLINUX__], 1, [host operating system is linux])
;;
- *solaris*)
- CFLAGS="-O2 -Wall -D_NLINUX_ -I../include"
+ *solaris*)
+ # The STSCI Build of GNU GCC has a broken -Wextra handler
+ CFLAGS="-O2 -Wall -I../include"
+ AC_DEFINE([__NSOLARIS__], 1, [host operating system is solaris])
;;
*)
- CFLAGS="-O2 -Wall -Wextra -I../include"
+ AC_MSG_ERROR([duser does not currently support your platform])
;;
esac