Add header checks in autoconf script

This commit is contained in:
Mike Massonnet
2010-05-21 16:00:41 +02:00
parent 6b8162b4e9
commit a0ed1ca721

View File

@@ -53,6 +53,7 @@ dnl **********************************
dnl *** Check for standard headers *** dnl *** Check for standard headers ***
dnl ********************************** dnl **********************************
AC_HEADER_STDC() AC_HEADER_STDC()
AC_CHECK_HEADERS([stdlib.h string.h])
dnl ****************************** dnl ******************************
dnl *** Check for i18n support *** dnl *** Check for i18n support ***
@@ -71,13 +72,19 @@ case "$target_os" in
freebsd*) freebsd*)
ac_os_implementation="freebsd" ac_os_implementation="freebsd"
AC_CHECK_LIB([kvm], [kvm_openfiles]) AC_CHECK_LIB([kvm], [kvm_openfiles])
AC_CHECK_HEADERS([fcntl.h kvm.h paths.h pwd.h sys/param.h sys/proc.h \
sys/sysctl.h sys/types.h sys/user.h unistd.h])
;; ;;
dragonfly*|netbsd*|openbsd*|darwin*) dragonfly*|netbsd*|openbsd*|darwin*)
ac_os_implementation="bsd" ac_os_implementation="bsd"
AC_CHECK_HEADERS([err.h pwd.h stdlib.h string.h sys/param.h sys/sched.h \
sys/swap.h sys/sysctl.h sys/types.h unistd.h])
;; ;;
solaris*) solaris*)
ac_os_implementation="solaris" ac_os_implementation="solaris"
AC_CHECK_LIB([kstat], [kstat_open]) AC_CHECK_LIB([kstat], [kstat_open])
AC_CHECK_HEADERS([fcntl.h kstat.h procfs.h pwd.h stdlib.h string.h \
sys/procfs.h sys/stat.h sys/swap.h sys/types.h])
;; ;;
linux*) linux*)
ac_os_implementation="linux" ac_os_implementation="linux"