From: Harlan Stenn Date: Fri, 16 Jul 2004 05:20:38 +0000 (-0400) Subject: [Bug 315] Provide prereq headers for configure.in X-Git-Tag: NTP_4_2_3~159 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=219d5aa7b11ee6486838346ffbb3eb50e82cf26f;p=thirdparty%2Fntp.git [Bug 315] Provide prereq headers for configure.in bk: 40f765a6vYf3bMd5pvVXR_fVtu3fLg --- diff --git a/configure.in b/configure.in index 0152320ace..f23a4e369a 100644 --- a/configure.in +++ b/configure.in @@ -325,13 +325,15 @@ case "$host" in esac AC_CHECK_HEADERS(sys/ipc.h) AC_CHECK_HEADERS(sys/lock.h sys/mman.h sys/modem.h sys/param.h sys/ppsclock.h) -AC_CHECK_HEADERS(sys/ppstime.h sys/proc.h sys/resource.h sys/sched.h) +# HMS: Check sys/proc.h and sys/resource.h after some others +AC_CHECK_HEADERS(sys/ppstime.h sys/sched.h) case "$host" in *-*-sco*) AC_CHECK_HEADERS(sys/sio.h) ;; esac -AC_CHECK_HEADERS(sys/select.h sys/shm.h sys/signal.h sys/sockio.h) +# HMS: Check sys/shm.h after some others +AC_CHECK_HEADERS(sys/select.h sys/signal.h sys/sockio.h) case "$host" in *-*-netbsd*) ;; *) AC_CHECK_HEADERS(machine/soundcard.h sys/soundcard.h) @@ -377,6 +379,30 @@ dnl # include dnl #endif dnl ]) +AC_CHECK_HEADERS(sys/proc.h, [], [], +[#if HAVE_SYS_TYPES_H +# include +#endif +#if HAVE_SYS_TIME_H +# include +#endif +]) + +AC_CHECK_HEADERS(sys/resource.h, [], [], +[#if HAVE_SYS_TIME_H +# include +#endif +]) + +AC_CHECK_HEADERS(sys/shm.h, [], [], +[#if HAVE_SYS_TYPES_H +# include +#endif +#if HAVE_SYS_IPC_H +# include +#endif +]) + AC_CHECK_HEADERS(resolv.h, [], [], [#if HAVE_SYS_TYPES_H #include