]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 603] Cleanup the configure patch for the libelf fix
authorHarlan Stenn <stenn@ntp.org>
Tue, 29 Aug 2006 08:16:22 +0000 (08:16 +0000)
committerHarlan Stenn <stenn@ntp.org>
Tue, 29 Aug 2006 08:16:22 +0000 (08:16 +0000)
bk: 44f3f7d65EhB_bVMdkcgcaV8URpIrw

configure.ac

index a85293aebbb8d33ec7e4ff63aed66059c1d4efb6..e5c018f67f20ccc2c61f89f69a0482068855e02d 100644 (file)
@@ -481,7 +481,9 @@ case "$host" in
     AC_CHECK_FUNCS(__adjtimex __ntp_gettime)
     ;;
 esac
-if test $ac_cv_func___adjtimex != yes; then
+case "$ac_cv_func___adjtimex" in
+ yes) ;;
+ *)
     AC_CHECK_LIB(elf, nlist)   dnl Only needed for tickadj...
     dnl AC_CHECK_LIB(kvm, main, , , -lelf)
     AC_CHECK_LIB(kvm, main)            dnl We already know about -lelf here...
@@ -489,15 +491,16 @@ if test $ac_cv_func___adjtimex != yes; then
     AC_CHECK_LIB(mld, nlist)
     AC_CHECK_HEADER(nlist.h,
     [AC_DEFINE(NLIST_STRUCT, 1, [nlist stuff])
-    AC_CACHE_CHECK([for n_un in struct nlist], ac_cv_struct_nlist_n_un,
-    [AC_TRY_COMPILE([#include <nlist.h>],
-    [struct nlist n; n.n_un.n_name = 0;],
-    ac_cv_struct_nlist_n_un=yes, ac_cv_struct_nlist_n_un=no)])
-    if test $ac_cv_struct_nlist_n_un = yes; then
-      AC_DEFINE(NLIST_NAME_UNION, 1, [does struct nlist use a name union?])
-    fi
+     AC_CACHE_CHECK([for n_un in struct nlist], ac_cv_struct_nlist_n_un,
+      [AC_TRY_COMPILE([#include <nlist.h>],
+       [struct nlist n; n.n_un.n_name = 0;],
+       ac_cv_struct_nlist_n_un=yes, ac_cv_struct_nlist_n_un=no)])
+     if test $ac_cv_struct_nlist_n_un = yes; then
+       AC_DEFINE(NLIST_NAME_UNION, 1, [does struct nlist use a name union?])
+     fi
     ])dnl
-fi
+    ;;
+esac
 
 dnl AC_CHECK_HEADERS(net/if.h, [], [],
 dnl [#if HAVE_SYS_TYPES_H