Some autoconf magic fix
This commit is contained in:
parent
8d7eecf78b
commit
5a5f1b8bfb
36
configure.in
36
configure.in
@ -24,23 +24,20 @@ no)
|
|||||||
AC_MSG_ERROR(bad value ${enable_debug} for --enable-debug)
|
AC_MSG_ERROR(bad value ${enable_debug} for --enable-debug)
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
backtrace=
|
||||||
if test x$enable_debug = xyes ; then
|
if test x$enable_debug = xyes ; then
|
||||||
AC_CHECK_FUNC(backtrace,
|
AC_CHECK_FUNC(backtrace_symbols_fd, [
|
||||||
[
|
AC_DEFINE(HAVE_BACKTRACE, [], [Use Glibcs backtrace function on fatal()])
|
||||||
AC_CHECK_FUNC(backtrace_symbols,
|
LDFLAGS="-rdynamic $LDFLAGS"
|
||||||
[
|
backtrace="(with backtrace)"
|
||||||
AC_DEFINE(HAVE_BACKTRACE, [], [Use Glibcs backtrace function on fatal()])
|
])
|
||||||
LDFLAGS="-rdynamic $LDFLAGS"
|
|
||||||
]
|
|
||||||
)
|
|
||||||
])
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_ARG_ENABLE(oidentd,
|
AC_ARG_ENABLE(oidentd,
|
||||||
[ --enable-oidentd Enable oidentd support (bip overwrites ~/.oidentd.conf with this on!)],
|
[ --enable-oidentd Enable oidentd support (bip overwrites ~/.oidentd.conf with this on!)],
|
||||||
enable_oidentd=yes
|
enable_oidentd=yes
|
||||||
AC_DEFINE([HAVE_OIDENTD], [], [Enable oidentd.conf management support]),
|
AC_DEFINE([HAVE_OIDENTD], [], [Enable oidentd.conf management support]),
|
||||||
[enable_oidentd=no]
|
[enable_oidentd=no]
|
||||||
)
|
)
|
||||||
|
|
||||||
AM_CONDITIONAL(OIDENTD, test x$enable_identd = xyes)
|
AM_CONDITIONAL(OIDENTD, test x$enable_identd = xyes)
|
||||||
@ -51,16 +48,15 @@ AC_ARG_ENABLE(openssl,
|
|||||||
[ enable_openssl=yes ])
|
[ enable_openssl=yes ])
|
||||||
|
|
||||||
if test "x$enable_openssl" = "xyes" ; then
|
if test "x$enable_openssl" = "xyes" ; then
|
||||||
AC_CHECK_LIB(crypto, CRYPTO_new_ex_data, [],
|
AC_CHECK_LIB(crypto, CRYPTO_new_ex_data, [], [
|
||||||
[AC_MSG_ERROR([library 'crypto' is required for OpenSSL support])])
|
AC_MSG_ERROR([library 'crypto' is required for OpenSSL support])
|
||||||
|
], -lcrypto)
|
||||||
AC_CHECK_LIB(ssl, SSL_read, [],
|
AC_CHECK_LIB(ssl, SSL_read, [], [
|
||||||
[AC_MSG_ERROR(
|
AC_MSG_ERROR([library 'ssl' is required for OpenSSL support])
|
||||||
[library 'ssl' is required for OpenSSL support])],
|
])
|
||||||
-lcrypto)
|
|
||||||
fi
|
fi
|
||||||
AC_OUTPUT(Makefile src/Makefile samples/Makefile)
|
AC_OUTPUT(Makefile src/Makefile samples/Makefile)
|
||||||
|
|
||||||
echo OPENSSL: $enable_openssl
|
echo OPENSSL: $enable_openssl
|
||||||
echo DEBUG: $enable_debug
|
echo DEBUG: $enable_debug $backtrace
|
||||||
echo OIDENTD: $enable_oidentd
|
echo OIDENTD: $enable_oidentd
|
||||||
|
Loading…
Reference in New Issue
Block a user