mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-22 09:57:20 +00:00
Half fixed recovering (no space handling) (unfinished)
This commit is contained in:
parent
13e5cc6cbe
commit
d113bc2ca6
@ -1,7 +1,7 @@
|
||||
AM_CPPFLAGS = -I$(top_srcdir) -DLOCALSTATEDIR='"@localstatedir@"'
|
||||
AM_CFLAGS = $(LDAP_CFLAGS)
|
||||
|
||||
noinst_LIBRARIES = libdhcp.@A@
|
||||
lib_@DHLIBS@ = libdhcp.@A@
|
||||
libdhcp_@A@_SOURCES = alloc.c bpf.c comapi.c conflex.c ctrace.c dhcp4o6.c \
|
||||
discover.c dispatch.c dlpi.c dns.c ethernet.c execute.c \
|
||||
fddi.c icmp.c inet.c lpf.c memory.c nit.c ns_name.c \
|
||||
|
23
configure
vendored
23
configure
vendored
@ -629,6 +629,7 @@ LDAP_CFLAGS
|
||||
LDAP_LIBS
|
||||
BINDLT
|
||||
A
|
||||
DHLIBS
|
||||
INSTALL_BIND_FALSE
|
||||
INSTALL_BIND_TRUE
|
||||
HAVE_BINDDIR_FALSE
|
||||
@ -7032,23 +7033,29 @@ if test "${enable_libtool+set}" = set; then :
|
||||
enableval=$enable_libtool; want_libtool="$enableval"
|
||||
fi
|
||||
|
||||
if test "$want_libtool" = "yes"; then
|
||||
|
||||
|
||||
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;}
|
||||
{ $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;}
|
||||
cd $srcdir; exec ./re-conf $ac_configure_args
|
||||
cd $srcdir; exec ./re-conf $ac_configure_args
|
||||
as_fn_error $? "Recovering failed" "$LINENO" 5
|
||||
# dequote $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
|
||||
as_fn_error $? "Recovering failed" "$LINENO" 5
|
||||
fi
|
||||
fi
|
||||
A=a
|
||||
|
||||
DHLIBS=LIBRARIES
|
||||
A=a
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# OpenLDAP support.
|
||||
|
||||
# Check whether --with-ldap was given.
|
||||
|
21
configure.ac
21
configure.ac
@ -825,18 +825,25 @@ BINDLT=
|
||||
AC_ARG_ENABLE(libtool,
|
||||
AS_HELP_STRING([--enable-libtool],[use GNU libtool for dynamic shared libraries (default is $default_libtool).]),
|
||||
want_libtool="$enableval")
|
||||
if test "$want_libtool" = "yes"; then
|
||||
|
||||
|
||||
if test "$want_libtool" = "yes"; then
|
||||
AC_MSG_WARN([legacy configure is used but libtool is enabled. Trying to recover...])
|
||||
AC_MSG_WARN([legacy configure is used but libtool is enabled. Trying to recover...])
|
||||
cd $srcdir; exec ./re-conf $ac_configure_args
|
||||
cd $srcdir; exec ./re-conf $ac_configure_args
|
||||
AC_MSG_ERROR([Recovering failed])
|
||||
# dequote $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
|
||||
AC_MSG_ERROR([Recovering failed])
|
||||
fi
|
||||
fi
|
||||
A=a
|
||||
|
||||
DHLIBS=LIBRARIES
|
||||
A=a
|
||||
|
||||
AC_SUBST(DHLIBS)
|
||||
AC_SUBST(A)
|
||||
AC_SUBST(BINDLT)
|
||||
|
||||
|
@ -62,7 +62,6 @@ AC_SUBST(BINDCONFIG)
|
||||
# Use this to define _GNU_SOURCE to pull in the IPv6 Advanced Socket API.
|
||||
AC_USE_SYSTEM_EXTENSIONS
|
||||
|
||||
AC_PROG_RANLIB
|
||||
|
||||
AC_PATH_PROG(AR, ar)
|
||||
AC_SUBST(AR)
|
||||
@ -829,11 +828,17 @@ BINDLT=
|
||||
AC_ARG_ENABLE(libtool,
|
||||
AS_HELP_STRING([--enable-libtool],[use GNU libtool for dynamic shared libraries (default is $default_libtool).]),
|
||||
want_libtool="$enableval")
|
||||
|
||||
if test "$want_libtool" = "no"; then
|
||||
AC_MSG_ERROR([libtool configure is used but libtool is disabled?])
|
||||
fi
|
||||
|
||||
DHLIBS=LTLIBRARIES
|
||||
A=la
|
||||
BINDLT=--with-libtool
|
||||
|
||||
|
||||
AC_SUBST(DHLIBS)
|
||||
AC_SUBST(A)
|
||||
AC_SUBST(BINDLT)
|
||||
|
||||
|
@ -64,7 +64,9 @@ AC_SUBST(BINDCONFIG)
|
||||
# Use this to define _GNU_SOURCE to pull in the IPv6 Advanced Socket API.
|
||||
AC_USE_SYSTEM_EXTENSIONS
|
||||
|
||||
@BEGIN WITHOUT LIBTOOL
|
||||
AC_PROG_RANLIB
|
||||
@END WITHOUT LIBTOOL
|
||||
|
||||
AC_PATH_PROG(AR, ar)
|
||||
AC_SUBST(AR)
|
||||
@ -833,21 +835,36 @@ BINDLT=
|
||||
AC_ARG_ENABLE(libtool,
|
||||
AS_HELP_STRING([--enable-libtool],[use GNU libtool for dynamic shared libraries (default is $default_libtool).]),
|
||||
want_libtool="$enableval")
|
||||
|
||||
@BEGIN WITH LIBTOOL
|
||||
if test "$want_libtool" = "no"; then
|
||||
AC_MSG_ERROR([libtool configure is used but libtool is disabled?])
|
||||
fi
|
||||
|
||||
DHLIBS=LTLIBRARIES
|
||||
A=la
|
||||
BINDLT=--with-libtool
|
||||
@END WITH LIBTOOL
|
||||
|
||||
@BEGIN WITHOUT LIBTOOL
|
||||
if test "$want_libtool" = "yes"; then
|
||||
AC_MSG_WARN([legacy configure is used but libtool is enabled. Trying to recover...])
|
||||
cd $srcdir; exec ./re-conf $ac_configure_args
|
||||
# dequote $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
|
||||
AC_MSG_ERROR([Recovering failed])
|
||||
fi
|
||||
|
||||
DHLIBS=LIBRARIES
|
||||
A=a
|
||||
@END WITHOUT LIBTOOL
|
||||
|
||||
AC_SUBST(DHLIBS)
|
||||
AC_SUBST(A)
|
||||
AC_SUBST(BINDLT)
|
||||
|
||||
|
@ -825,18 +825,25 @@ BINDLT=
|
||||
AC_ARG_ENABLE(libtool,
|
||||
AS_HELP_STRING([--enable-libtool],[use GNU libtool for dynamic shared libraries (default is $default_libtool).]),
|
||||
want_libtool="$enableval")
|
||||
if test "$want_libtool" = "yes"; then
|
||||
|
||||
|
||||
if test "$want_libtool" = "yes"; then
|
||||
AC_MSG_WARN([legacy configure is used but libtool is enabled. Trying to recover...])
|
||||
AC_MSG_WARN([legacy configure is used but libtool is enabled. Trying to recover...])
|
||||
cd $srcdir; exec ./re-conf $ac_configure_args
|
||||
cd $srcdir; exec ./re-conf $ac_configure_args
|
||||
AC_MSG_ERROR([Recovering failed])
|
||||
# dequote $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
|
||||
AC_MSG_ERROR([Recovering failed])
|
||||
fi
|
||||
fi
|
||||
A=a
|
||||
|
||||
DHLIBS=LIBRARIES
|
||||
A=a
|
||||
|
||||
AC_SUBST(DHLIBS)
|
||||
AC_SUBST(A)
|
||||
AC_SUBST(BINDLT)
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
bin_PROGRAMS = omshell
|
||||
lib_LIBRARIES = libdhcpctl.@A@
|
||||
lib_@DHLIBS@ = libdhcpctl.@A@
|
||||
noinst_PROGRAMS = cltest
|
||||
man_MANS = omshell.1 dhcpctl.3
|
||||
EXTRA_DIST = $(man_MANS)
|
||||
@ -11,7 +11,7 @@ omshell_LDADD = libdhcpctl.@A@ ../common/libdhcp.@A@ ../omapip/libomapi.@A@ \
|
||||
@BINDLIBISCCFGDIR@/libisccfg.@A@ \
|
||||
@BINDLIBISCDIR@/libisc.@A@
|
||||
|
||||
libdhcpctl_a_SOURCES = dhcpctl.c callback.c remote.c
|
||||
libdhcpctl_@A@_SOURCES = dhcpctl.c callback.c remote.c
|
||||
|
||||
cltest_SOURCES = cltest.c
|
||||
cltest_LDADD = libdhcpctl.@A@ ../common/libdhcp.@A@ ../omapip/libomapi.@A@ \
|
||||
|
@ -1,4 +1,4 @@
|
||||
lib_LIBRARIES = libomapi.@A@
|
||||
lib_@DHLIBS@ = libomapi.@A@
|
||||
noinst_PROGRAMS = svtest
|
||||
|
||||
libomapi_@A@_SOURCES = protocol.c buffer.c alloc.c result.c connection.c \
|
||||
|
8
re-conf
8
re-conf
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Copyright (C) 2015 Internet Systems Consortium, Inc. ("ISC")
|
||||
# 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
|
||||
@ -14,7 +14,9 @@
|
||||
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
# PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
# called by the configure place-holder
|
||||
# called by the legacy configure when libtool is enabled
|
||||
|
||||
cp configure.ac+lt configure.ac
|
||||
autoreconf -i && ./configure $*
|
||||
autoreconf -i
|
||||
echo Reconfiguring with $*
|
||||
./configure $*
|
||||
|
@ -28,6 +28,6 @@ EXTRA_DIST = failover/dhcp-1.cf failover/dhcp-2.cf failover/new-failover \
|
||||
|
||||
AM_CPPFLAGS = -I..
|
||||
|
||||
check_LIBRARIES = libt_api.@A@
|
||||
check_@DHLIBS@ = libt_api.@A@
|
||||
libt_api_@A@_SOURCES = t_api.c t_api_dhcp.c
|
||||
|
||||
|
@ -118,7 +118,6 @@ foreach $line (<STDIN>) {
|
||||
$escaped += 1;
|
||||
next;
|
||||
} else {
|
||||
print $line. "\n";
|
||||
$included += 1;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user