-# generated automatically by aclocal 1.10.2 -*- Autoconf -*-
+# generated automatically by aclocal 1.11 -*- Autoconf -*-
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
-# 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# Copyright 2009, Wouter Wijngaards, NLnet Labs.
# BSD licensed.
#
-# Version 1
-# 2009-04-23
+# Version 2
+# 2009-07-03
+# Changelog
+# - fixup LDFLAGS for empty ssl dir.
#
# Automates some of the checking constructs. Aims at portability for POSIX.
# Documentation for functions is below.
AC_MSG_RESULT(found in $ssldir)
HAVE_SSL=yes
dnl assume /usr is already in the lib and dynlib paths.
- if test "$ssldir" != "/usr"; then
+ if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
LDFLAGS="$LDFLAGS -L$ssldir/lib"
ACX_RUNTIME_PATH_ADD([$ssldir/lib])
fi
{ $as_echo "$as_me:$LINENO: result: found in $ssldir" >&5
$as_echo "found in $ssldir" >&6; }
HAVE_SSL=yes
- if test "$ssldir" != "/usr"; then
+ if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
LDFLAGS="$LDFLAGS -L$ssldir/lib"
if test "x$enable_rpath" = xyes; then
else
{ $as_echo "$as_me:$LINENO: result: found in $thedir" >&5
$as_echo "found in $thedir" >&6; }
- if test "$thedir" != "/usr"; then
+ if test "$thedir" != "/usr" -a "$thedir" != ""; then
LDFLAGS="$LDFLAGS -L$thedir/lib"
if test "x$enable_rpath" = xyes; then
# Check whether --with-ldns was given.
if test "${with_ldns+set}" = set; then
withval=$with_ldns; specialldnsdir="$withval"
- CPPFLAGS="-I$withval/include $CPPFLAGS"
- LDFLAGS="-L$withval -L$withval/lib $LDFLAGS"
+ if test "$withval" != ""; then
+ CPPFLAGS="-I$withval/include $CPPFLAGS"
+ LDFLAGS="-L$withval -L$withval/lib $LDFLAGS"
if test "x$enable_rpath" = xyes; then
if echo "$withval/lib" | grep "^/" >/dev/null; then
fi
fi
+ fi
ldnsdir="$withval"
fi
else
AC_MSG_RESULT(found in $thedir)
- dnl assume /usr is in default path.
- if test "$thedir" != "/usr"; then
+ dnl assume /usr is in default path, do not add "".
+ if test "$thedir" != "/usr" -a "$thedir" != ""; then
LDFLAGS="$LDFLAGS -L$thedir/lib"
ACX_RUNTIME_PATH_ADD([$thedir/lib])
fi
AC_ARG_WITH(ldns, AC_HELP_STRING([--with-ldns=PATH],
[specify prefix of path of ldns library to use]),
[ specialldnsdir="$withval"
- CPPFLAGS="-I$withval/include $CPPFLAGS"
- LDFLAGS="-L$withval -L$withval/lib $LDFLAGS"
- ACX_RUNTIME_PATH_ADD([$withval/lib])
+ if test "$withval" != ""; then
+ CPPFLAGS="-I$withval/include $CPPFLAGS"
+ LDFLAGS="-L$withval -L$withval/lib $LDFLAGS"
+ ACX_RUNTIME_PATH_ADD([$withval/lib])
+ fi
ldnsdir="$withval"
AC_SUBST(ldnsdir)
])