]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Finished build stuff (still doc to do)
authorFrancis Dupont <fdupont@isc.org>
Thu, 6 Oct 2016 23:57:28 +0000 (01:57 +0200)
committerFrancis Dupont <fdupont@isc.org>
Thu, 6 Oct 2016 23:57:28 +0000 (01:57 +0200)
Makefile.am
Makefile.in
config+lt [moved from re-conf with 95% similarity]
configure
configure.ac
configure.ac+lt
configure.ac-base
configure.ac-lt
minires/OBSOLETE [new file with mode: 0644]
util/regen-conf.sh [new file with mode: 0644]

index b15f6f7ce7728176cb0c4de1f4703d9a57e56a02..f66f456c1024eb5bd3df18a2fee6caabdddf4720 100644 (file)
@@ -11,7 +11,7 @@ ACLOCAL_AMFLAGS = -I m4
 #
 # We have a lot of files that we want shipped with the distribution.
 #
-EXTRA_DIST = RELNOTES LICENSE configure.ac+lt re-conf \
+EXTRA_DIST = RELNOTES LICENSE configure.ac+lt config+lt \
             contrib/3.0b1-lease-convert contrib/dhclient-tz-exithook.sh \
             contrib/dhcp.spec contrib/sethostname.sh contrib/solaris.init \
             contrib/ms2isc/Registry.pm contrib/ms2isc/ms2isc.pl \
index 22f51d3643ef76c04e3b86336e639ef659375e49..8735e660341f337eb147cda133ac7085c9085827 100644 (file)
@@ -364,7 +364,7 @@ ACLOCAL_AMFLAGS = -I m4
 #
 # We have a lot of files that we want shipped with the distribution.
 #
-EXTRA_DIST = RELNOTES LICENSE configure.ac+lt re-conf \
+EXTRA_DIST = RELNOTES LICENSE configure.ac+lt config+lt \
        contrib/3.0b1-lease-convert contrib/dhclient-tz-exithook.sh \
        contrib/dhcp.spec contrib/sethostname.sh contrib/solaris.init \
        contrib/ms2isc/Registry.pm contrib/ms2isc/ms2isc.pl \
similarity index 95%
rename from re-conf
rename to config+lt
index e6d8d6cdc8edda3e36a45764849ac2af55094dae..86af4bbfb00b87376d03a38440bccca8f4afebee 100755 (executable)
--- a/re-conf
+++ b/config+lt
@@ -18,5 +18,5 @@
 
 cp configure.ac+lt configure.ac
 autoreconf -i
-echo Reconfiguring with $*
-./configure $*
+echo Reconfiguring with "$@"
+./configure "$@"
index 660468b4d376ebf5a197c696f86d2c77891cd2ac..86ea6b9b61c0ba189de6bd8286f96680001f4dce 100755 (executable)
--- a/configure
+++ b/configure
@@ -1461,9 +1461,8 @@ Optional Features:
   --enable-epoll          use Linux epoll (default is no)
   --enable-devpoll        use /dev/poll (default is no)
   --enable-libtool        use GNU libtool for dynamic shared libraries
-                          (default is $want_libtool).
-  --enable-bind-install   install bind includes and libraries (default is
-                          $want_install_bind).
+                          (default is no).
+  --enable-bind-install   install bind includes and libraries (default is no).
 
 Optional Packages:
   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
@@ -6966,10 +6965,15 @@ no)
        if test ! -d "$use_libbind"; then
                as_fn_error $? "Cannot find bind directory at $use_libbind" "$LINENO" 5
        fi
-       if test ! -d "$use_libbind/include"; then
+       if test ! -d "$use_libbind/include" -o \
+               ! -f "$use_libbind/include/isc/buffer.h"
+       then
                as_fn_error $? "Cannot find bind includes at $use_libbind/include" "$LINENO" 5
        fi
-       if test ! -d "$use_libbind/lib"; then
+       if test ! -d "$use_libbind/lib" -o \
+               \( ! -f "$use_libbind/lib/libisc.a" -a \
+                  ! -f "$use_libbind/lib/libisc.la" \)
+       then
                as_fn_error $? "Cannot find bind libraries at $use_libbind/lib" "$LINENO" 5
        fi
        BINDDIR="$use_libbind"
@@ -7020,18 +7024,27 @@ if test "${enable_libtool+set}" = set; then :
 fi
 
 
+if test "$use_libbind" != "no"; then
+       if test "$want_libtool" = "yes" -a \
+               ! -f "$use_libbind/lib/libisc.la"
+       then
+               as_fn_error $? "Cannot find dynamic libraries at $use_libbind/lib" "$LINENO" 5
+       fi
+       if test "$want_libtool" = "no" -a \
+               ! -f "$use_libbind/lib/libisc.a"
+       then
+               as_fn_error $? "Cannot find static libraries at $use_libbind/lib" "$LINENO" 5
+       fi
+fi
+
 
 if test "$want_libtool" = "yes"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: legacy configure is used but libtool is enabled. Trying to recover..." >&5
 $as_echo "$as_me: WARNING: legacy configure is used but libtool is enabled. Trying to recover..." >&2;}
-       # dequote $ac_configure_args
+       # expand $ac_configure_args
        eval "set my_configure_args $ac_configure_args"
        shift
-       re_configure_args=
-       for a; do
-               re_configure_args="$re_configure_args $a"
-       done
-       cd $srcdir; exec ./re-conf $re_configure_args
+       cd $srcdir; exec ./config+lt "$@"
        as_fn_error $? "Recovering failed" "$LINENO" 5
 fi
 
index dea41e50f99a92c3083007f168b94cdc8843a2bc..302271de42331db2b2b0770bd19575e2bb31e60c 100644 (file)
@@ -775,10 +775,15 @@ no)
        if test ! -d "$use_libbind"; then
                AC_MSG_ERROR([Cannot find bind directory at $use_libbind])
        fi
-       if test ! -d "$use_libbind/include"; then
+       if test ! -d "$use_libbind/include" -o \
+               ! -f "$use_libbind/include/isc/buffer.h"
+       then
                AC_MSG_ERROR([Cannot find bind includes at $use_libbind/include])
        fi
-       if test ! -d "$use_libbind/lib"; then
+       if test ! -d "$use_libbind/lib" -o \
+               \( ! -f "$use_libbind/lib/libisc.a" -a \
+                  ! -f "$use_libbind/lib/libisc.la" \)
+       then
                AC_MSG_ERROR([Cannot find bind libraries at $use_libbind/lib])
        fi
        BINDDIR="$use_libbind"
@@ -817,20 +822,30 @@ want_libtool="no"
 BINDLT=
 DISTCHECK_LIBTOOL_CONFIGURE_FLAG=
 AC_ARG_ENABLE(libtool,
-       AS_HELP_STRING([--enable-libtool],[use GNU libtool for dynamic shared libraries (default is $want_libtool).]),
+       AS_HELP_STRING([--enable-libtool],
+[use GNU libtool for dynamic shared libraries (default is no).]),
        want_libtool="$enableval")
 
+if test "$use_libbind" != "no"; then
+       if test "$want_libtool" = "yes" -a \
+               ! -f "$use_libbind/lib/libisc.la"
+       then
+               AC_MSG_ERROR([Cannot find dynamic libraries at $use_libbind/lib])
+       fi
+       if test "$want_libtool" = "no" -a \
+               ! -f "$use_libbind/lib/libisc.a"
+       then
+               AC_MSG_ERROR([Cannot find static libraries at $use_libbind/lib])
+       fi
+fi
+
 
 if test "$want_libtool" = "yes"; then
        AC_MSG_WARN([legacy configure is used but libtool is enabled. Trying to recover...])
-       # dequote $ac_configure_args
+       # expand $ac_configure_args
        eval "set my_configure_args $ac_configure_args"
        shift
-       re_configure_args=
-       for a; do
-               re_configure_args="$re_configure_args $a"
-       done
-       cd $srcdir; exec ./re-conf $re_configure_args
+       cd $srcdir; exec ./config+lt "$@"
        AC_MSG_ERROR([Recovering failed])
 fi
 
@@ -856,7 +871,8 @@ if test "$use_libbind" != "no"; then
        want_install_bind="no"
 fi
 AC_ARG_ENABLE(bind_install,
-       AS_HELP_STRING([--enable-bind-install],[install bind includes and libraries (default is $want_install_bind).]),
+       AS_HELP_STRING([--enable-bind-install],
+[install bind includes and libraries (default is no).]),
        want_install_bind="$enableval")
 if test "$want_install_bind" = "yes"; then
         if test "$use_libbind" != "no"; then
index ad18ec812256b137dd435941b8558a0b31d0bc82..7ae866223638053311e18c2e7c24bbc1316e7419 100644 (file)
@@ -776,10 +776,15 @@ no)
        if test ! -d "$use_libbind"; then
                AC_MSG_ERROR([Cannot find bind directory at $use_libbind])
        fi
-       if test ! -d "$use_libbind/include"; then
+       if test ! -d "$use_libbind/include" -o \
+               ! -f "$use_libbind/include/isc/buffer.h"
+       then
                AC_MSG_ERROR([Cannot find bind includes at $use_libbind/include])
        fi
-       if test ! -d "$use_libbind/lib"; then
+       if test ! -d "$use_libbind/lib" -o \
+               \( ! -f "$use_libbind/lib/libisc.a" -a \
+                  ! -f "$use_libbind/lib/libisc.la" \)
+       then
                AC_MSG_ERROR([Cannot find bind libraries at $use_libbind/lib])
        fi
        BINDDIR="$use_libbind"
@@ -820,9 +825,23 @@ want_libtool="yes"
 BINDLT=
 DISTCHECK_LIBTOOL_CONFIGURE_FLAG=
 AC_ARG_ENABLE(libtool,
-       AS_HELP_STRING([--enable-libtool],[use GNU libtool for dynamic shared libraries (default is $want_libtool).]),
+       AS_HELP_STRING([--enable-libtool],
+[use GNU libtool for dynamic shared libraries (default is yes).]),
        want_libtool="$enableval")
 
+if test "$use_libbind" != "no"; then
+       if test "$want_libtool" = "yes" -a \
+               ! -f "$use_libbind/lib/libisc.la"
+       then
+               AC_MSG_ERROR([Cannot find dynamic libraries at $use_libbind/lib])
+       fi
+       if test "$want_libtool" = "no" -a \
+               ! -f "$use_libbind/lib/libisc.a"
+       then
+               AC_MSG_ERROR([Cannot find static libraries at $use_libbind/lib])
+       fi
+fi
+
 if test "$want_libtool" = "no"; then
        AC_MSG_ERROR([libtool configure is used but libtool is disabled?])
 fi
@@ -853,7 +872,8 @@ if test "$use_libbind" != "no"; then
        want_install_bind="no"
 fi
 AC_ARG_ENABLE(bind_install,
-       AS_HELP_STRING([--enable-bind-install],[install bind includes and libraries (default is $want_install_bind).]),
+       AS_HELP_STRING([--enable-bind-install],
+[install bind includes and libraries.]),
        want_install_bind="$enableval")
 if test "$want_install_bind" = "yes"; then
         if test "$use_libbind" != "no"; then
index 347c85687b2aa3ca3096e35cd4ed964a07ff8ef5..85d88c9f46c92cc48037e4bfa9f3f5237b84aea9 100644 (file)
@@ -781,10 +781,15 @@ no)
        if test ! -d "$use_libbind"; then
                AC_MSG_ERROR([Cannot find bind directory at $use_libbind])
        fi
-       if test ! -d "$use_libbind/include"; then
+       if test ! -d "$use_libbind/include" -o \
+               ! -f "$use_libbind/include/isc/buffer.h"
+       then
                AC_MSG_ERROR([Cannot find bind includes at $use_libbind/include])
        fi
-       if test ! -d "$use_libbind/lib"; then
+       if test ! -d "$use_libbind/lib" -o \
+               \( ! -f "$use_libbind/lib/libisc.a" -a \
+                  ! -f "$use_libbind/lib/libisc.la" \)
+       then
                AC_MSG_ERROR([Cannot find bind libraries at $use_libbind/lib])
        fi
        BINDDIR="$use_libbind"
@@ -827,9 +832,28 @@ want_libtool="yes"
 BINDLT=
 DISTCHECK_LIBTOOL_CONFIGURE_FLAG=
 AC_ARG_ENABLE(libtool,
-       AS_HELP_STRING([--enable-libtool],[use GNU libtool for dynamic shared libraries (default is $want_libtool).]),
+       AS_HELP_STRING([--enable-libtool],
+@BEGIN WITH LIBTOOL
+[use GNU libtool for dynamic shared libraries (default is yes).]),
+@END WITH LIBTOOL
+@BEGIN WITHOUT LIBTOOL
+[use GNU libtool for dynamic shared libraries (default is no).]),
+@END WITHOUT LIBTOOL
        want_libtool="$enableval")
 
+if test "$use_libbind" != "no"; then
+       if test "$want_libtool" = "yes" -a \
+               ! -f "$use_libbind/lib/libisc.la"
+       then
+               AC_MSG_ERROR([Cannot find dynamic libraries at $use_libbind/lib])
+       fi
+       if test "$want_libtool" = "no" -a \
+               ! -f "$use_libbind/lib/libisc.a"
+       then
+               AC_MSG_ERROR([Cannot find static libraries at $use_libbind/lib])
+       fi
+fi
+
 @BEGIN WITH LIBTOOL
 if test "$want_libtool" = "no"; then
        AC_MSG_ERROR([libtool configure is used but libtool is disabled?])
@@ -844,14 +868,10 @@ DISTCHECK_LIBTOOL_CONFIGURE_FLAG="--enable-libtool"
 @BEGIN WITHOUT LIBTOOL
 if test "$want_libtool" = "yes"; then
        AC_MSG_WARN([legacy configure is used but libtool is enabled. Trying to recover...])
-       # dequote $ac_configure_args
+       # expand $ac_configure_args
        eval "set my_configure_args $ac_configure_args"
        shift
-       re_configure_args=
-       for a; do
-               re_configure_args="$re_configure_args $a"
-       done
-       cd $srcdir; exec ./re-conf $re_configure_args
+       cd $srcdir; exec ./config+lt "$@"
        AC_MSG_ERROR([Recovering failed])
 fi
 
@@ -881,7 +901,13 @@ if test "$use_libbind" != "no"; then
        want_install_bind="no"
 fi
 AC_ARG_ENABLE(bind_install,
-       AS_HELP_STRING([--enable-bind-install],[install bind includes and libraries (default is $want_install_bind).]),
+       AS_HELP_STRING([--enable-bind-install],
+@BEGIN WITH LIBTOOL
+[install bind includes and libraries.]),
+@END WITH LIBTOOL
+@BEGIN WITHOUT LIBTOOL
+[install bind includes and libraries (default is no).]),
+@END WITHOUT LIBTOOL
        want_install_bind="$enableval")
 if test "$want_install_bind" = "yes"; then
         if test "$use_libbind" != "no"; then
index dea41e50f99a92c3083007f168b94cdc8843a2bc..302271de42331db2b2b0770bd19575e2bb31e60c 100644 (file)
@@ -775,10 +775,15 @@ no)
        if test ! -d "$use_libbind"; then
                AC_MSG_ERROR([Cannot find bind directory at $use_libbind])
        fi
-       if test ! -d "$use_libbind/include"; then
+       if test ! -d "$use_libbind/include" -o \
+               ! -f "$use_libbind/include/isc/buffer.h"
+       then
                AC_MSG_ERROR([Cannot find bind includes at $use_libbind/include])
        fi
-       if test ! -d "$use_libbind/lib"; then
+       if test ! -d "$use_libbind/lib" -o \
+               \( ! -f "$use_libbind/lib/libisc.a" -a \
+                  ! -f "$use_libbind/lib/libisc.la" \)
+       then
                AC_MSG_ERROR([Cannot find bind libraries at $use_libbind/lib])
        fi
        BINDDIR="$use_libbind"
@@ -817,20 +822,30 @@ want_libtool="no"
 BINDLT=
 DISTCHECK_LIBTOOL_CONFIGURE_FLAG=
 AC_ARG_ENABLE(libtool,
-       AS_HELP_STRING([--enable-libtool],[use GNU libtool for dynamic shared libraries (default is $want_libtool).]),
+       AS_HELP_STRING([--enable-libtool],
+[use GNU libtool for dynamic shared libraries (default is no).]),
        want_libtool="$enableval")
 
+if test "$use_libbind" != "no"; then
+       if test "$want_libtool" = "yes" -a \
+               ! -f "$use_libbind/lib/libisc.la"
+       then
+               AC_MSG_ERROR([Cannot find dynamic libraries at $use_libbind/lib])
+       fi
+       if test "$want_libtool" = "no" -a \
+               ! -f "$use_libbind/lib/libisc.a"
+       then
+               AC_MSG_ERROR([Cannot find static libraries at $use_libbind/lib])
+       fi
+fi
+
 
 if test "$want_libtool" = "yes"; then
        AC_MSG_WARN([legacy configure is used but libtool is enabled. Trying to recover...])
-       # dequote $ac_configure_args
+       # expand $ac_configure_args
        eval "set my_configure_args $ac_configure_args"
        shift
-       re_configure_args=
-       for a; do
-               re_configure_args="$re_configure_args $a"
-       done
-       cd $srcdir; exec ./re-conf $re_configure_args
+       cd $srcdir; exec ./config+lt "$@"
        AC_MSG_ERROR([Recovering failed])
 fi
 
@@ -856,7 +871,8 @@ if test "$use_libbind" != "no"; then
        want_install_bind="no"
 fi
 AC_ARG_ENABLE(bind_install,
-       AS_HELP_STRING([--enable-bind-install],[install bind includes and libraries (default is $want_install_bind).]),
+       AS_HELP_STRING([--enable-bind-install],
+[install bind includes and libraries (default is no).]),
        want_install_bind="$enableval")
 if test "$want_install_bind" = "yes"; then
         if test "$use_libbind" != "no"; then
diff --git a/minires/OBSOLETE b/minires/OBSOLETE
new file mode 100644 (file)
index 0000000..3846c6d
--- /dev/null
@@ -0,0 +1 @@
+This library is obsolete
diff --git a/util/regen-conf.sh b/util/regen-conf.sh
new file mode 100644 (file)
index 0000000..5b0c934
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/sh
+#
+# Copyright (C) 2016  Internet Systems Consortium, Inc. ("ISC")
+#
+# Permission to use, copy, modify, and/or distribute this software for any
+# purpose with or without fee is hereby granted, provided that the above
+# copyright notice and this permission notice appear in all copies.
+#
+# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
+# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+# AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
+# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+# PERFORMANCE OF THIS SOFTWARE.
+
+perl util/lt.pl with < configure.ac-base > configure.ac+lt
+perl util/lt.pl without < configure.ac-base > configure.ac-lt
+cp -p configure.ac-lt configure.ac
+autoconf