19239176 NTP configure script fails to detect if_nametoindex library call. s11u2-sru
authorBrian Utterback <brian.utterback@oracle.com>
Mon, 22 Sep 2014 17:59:41 -0700
branchs11u2-sru
changeset 3365 efd5a1fea419
parent 3364 25975ce9e810
child 3374 76667b0a9357
19239176 NTP configure script fails to detect if_nametoindex library call.
components/ntp/patches/82-nametoindex.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/ntp/patches/82-nametoindex.patch	Mon Sep 22 17:59:41 2014 -0700
@@ -0,0 +1,26 @@
+This patch modifies the configure script to correctly detect the 
+if_nametoindex function. This fix is integrated in ntp-dev-4.2.7p394.
+This patch may be removed when upgrading NTP to a later version.
+See NTP bug 2256 for details.
+
+--- configure
++++ configure
[email protected]@ -35243,6 +35670,8 @@
+ fi
+
+ esac
++SAVED_LIBS="$LIBS"
++LIBS="$LDADD_LIBNTP $LIBS"
+ for ac_func in if_nametoindex
+ do :
+   ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
[email protected]@ -35254,6 +35683,8 @@
+ fi
+ done
+
++LIBS="$SAVED_LIBS"
++{ SAVED_LIBS=; unset SAVED_LIBS;}
+ case "$ac_cv_func_if_nametoindex" in
+  yes)
+
+