summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure19
1 files changed, 13 insertions, 6 deletions
diff --git a/configure b/configure
index d32bdb7..13da36d 100755
--- a/configure
+++ b/configure
@@ -160,12 +160,12 @@ void main(void)
EOF
$CC \
- $(pkg-config --cflags libnl-3.0) \
- $(pkg-config --cflags libnl-genl-3.0) \
+ $(pkg-config --cflags libnl-3.0 2>>config.log) \
+ $(pkg-config --cflags libnl-genl-3.0 2>>config.log) \
-o $TMPDIR/libnltest \
$TMPDIR/libnltest.c \
- $(pkg-config --libs libnl-3.0) \
- $(pkg-config --libs libnl-genl-3.0) \
+ $(pkg-config --libs libnl-3.0 2>>config.log) \
+ $(pkg-config --libs libnl-genl-3.0 2>>config.log) \
>> $TMPDIR/config.log 2>&1
if [ ! -x $TMPDIR/libnltest ] ; then
echo "[NO]"
@@ -255,9 +255,9 @@ void main(void)
EOF
$CC \
- $(pkg-config --cflags ncurses) \
+ $(pkg-config --cflags ncurses 2>>config.log) \
-o $TMPDIR/ncursestest $TMPDIR/ncursestest.c \
- $(pkg-config --libs ncurses) \
+ $(pkg-config --libs ncurses 2>>config.log) \
>> $TMPDIR/config.log 2>&1
if [ ! -x $TMPDIR/ncursestest ] ; then
echo "[NO]"
@@ -548,6 +548,8 @@ $_have_hwts
EOF
}
+rm -f config.log
+
echo "# This file is autogenerated by the configure script" > Config
check_pkg_config
@@ -597,6 +599,11 @@ else
echo "[*] Looks good! All tools will be built!"
fi
+if [ -s config.log ] ; then
+ echo "[!] There were errors in the configure script. Please see"
+ echo " the file config.log for details."
+fi
+
if [ "$HAVE_LIBGEOIP" == "1" -a "$HAVE_LIBZ" == "1" ] ; then
echo "CONFIG_GEOIP=1" >> Config
else