From: Harlan Stenn Date: Mon, 12 May 2003 05:30:41 +0000 (-0400) Subject: Under AIX, if we have utmpx.h don't look for utmp.h . From Lars-Owe Ivarsson X-Git-Tag: NTP_4_1_1C_RC3~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e8443cbe74daf0f91db51a8fd67bbdd44a8a978;p=thirdparty%2Fntp.git Under AIX, if we have utmpx.h don't look for utmp.h . From Lars-Owe Ivarsson bk: 3ebf3181JAwssiyBDu85uyXHJoVgfw --- diff --git a/configure.in b/configure.in index 2bf4c52af..99753d05f 100644 --- a/configure.in +++ b/configure.in @@ -239,7 +239,17 @@ AC_CHECK_FUNC(setsockopt, , AC_CHECK_LIB(socket, setsockopt)) AC_HEADER_STDC AC_CHECK_HEADERS(bstring.h errno.h fcntl.h ieeefp.h math.h memory.h netdb.h) AC_CHECK_HEADERS(poll.h resolv.h sched.h sgtty.h stdlib.h string.h termio.h) -AC_CHECK_HEADERS(termios.h timepps.h timex.h unistd.h utmp.h utmpx.h) +AC_CHECK_HEADERS(termios.h timepps.h timex.h unistd.h) +case "$host" in + *-*-aix*) + AC_CHECK_HEADERS(utmpx.h) + case "$ac_cv_header_utmpx_h" in + yes) ;; + *) AC_CHECK_HEADERS(utmp.h) ;; + esac + ;; + *) AC_CHECK_HEADERS(utmp.h utmpx.h) ;; +esac AC_CHECK_HEADERS(arpa/nameser.h net/if.h netinet/in_system.h) AC_CHECK_HEADERS(netinet/in_systm.h netinet/in.h netinet/ip.h) AC_CHECK_HEADERS(netinfo/ni.h, [AC_DEFINE(HAVE_NETINFO, 1, [NetInfo support?])])