diff options
author | Francis Dupont <fdupont@isc.org> | 2016-10-07 01:57:28 +0200 |
---|---|---|
committer | Francis Dupont <fdupont@isc.org> | 2016-10-07 01:57:28 +0200 |
commit | 6d91a86b23bd004c11e5ab742dbd5153db25dab5 (patch) | |
tree | f5c4ee893a9d3341d02250eb1b0a642cd0da2322 | |
parent | bf6f8fcee913200e4c87bb660824c270e3aa8804 (diff) | |
download | isc-dhcp-6d91a86b23bd004c11e5ab742dbd5153db25dab5.tar.gz |
Finished build stuff (still doc to do)
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | Makefile.in | 2 | ||||
-rwxr-xr-x | config+lt (renamed from re-conf) | 4 | ||||
-rwxr-xr-x | configure | 35 | ||||
-rw-r--r-- | configure.ac | 36 | ||||
-rw-r--r-- | configure.ac+lt | 28 | ||||
-rw-r--r-- | configure.ac-base | 46 | ||||
-rw-r--r-- | configure.ac-lt | 36 | ||||
-rw-r--r-- | minires/OBSOLETE | 1 | ||||
-rw-r--r-- | util/regen-conf.sh | 20 |
10 files changed, 161 insertions, 49 deletions
diff --git a/Makefile.am b/Makefile.am index b15f6f7c..f66f456c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 \ diff --git a/Makefile.in b/Makefile.in index 22f51d36..8735e660 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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 \ @@ -18,5 +18,5 @@ cp configure.ac+lt configure.ac autoreconf -i -echo Reconfiguring with $* -./configure $* +echo Reconfiguring with "$@" +./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 diff --git a/configure.ac b/configure.ac index dea41e50..302271de 100644 --- a/configure.ac +++ b/configure.ac @@ -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/configure.ac+lt b/configure.ac+lt index ad18ec81..7ae86622 100644 --- a/configure.ac+lt +++ b/configure.ac+lt @@ -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 diff --git a/configure.ac-base b/configure.ac-base index 347c8568..85d88c9f 100644 --- a/configure.ac-base +++ b/configure.ac-base @@ -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 diff --git a/configure.ac-lt b/configure.ac-lt index dea41e50..302271de 100644 --- a/configure.ac-lt +++ b/configure.ac-lt @@ -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 index 00000000..3846c6d3 --- /dev/null +++ b/minires/OBSOLETE @@ -0,0 +1 @@ +This library is obsolete diff --git a/util/regen-conf.sh b/util/regen-conf.sh new file mode 100644 index 00000000..5b0c934d --- /dev/null +++ b/util/regen-conf.sh @@ -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 |