]> git.meshlink.io Git - meshlink/blobdiff - configure.ac
trying to fix linking issues
[meshlink] / configure.ac
index 4b6d8ab840263e0c4a3ca72acf241c31cb783f76..eac662787e3e8389f705814d508aa3511c2b6ae0 100644 (file)
@@ -1,7 +1,7 @@
 dnl Process this file with autoconf to produce a configure script.
 
 AC_PREREQ(2.61)
-AC_INIT([tinc], [1.1pre9])
+AC_INIT([tinc], [1.1pre10])
 AC_CONFIG_SRCDIR([src/tincd.c])
 AC_GNU_SOURCE
 AM_INIT_AUTOMAKE([check-news std-options subdir-objects -Wall])
@@ -18,7 +18,7 @@ AC_PROG_CC_C99
 AC_PROG_CPP
 AC_PROG_INSTALL
 AC_PROG_LN_S
-AC_PROG_RANLIB
+AC_PROG_LIBTOOL
 
 AM_PROG_CC_C_O
 
@@ -148,6 +148,7 @@ AS_IF([test "x$enable_hardening" != "xno"],
        ;;
      *)
        AX_CHECK_COMPILE_FLAG([-fPIE], [CPPFLAGS="$CPPFLAGS -fPIE"])
+       AX_CHECK_COMPILE_FLAG([-fPIC], [CPPFLAGS="$CPPFLAGS -fPIC"])
        AX_CHECK_LINK_FLAG([-pie], [LDFLAGS="$LDFLAGS -pie"])
        ;;
    esac
@@ -216,7 +217,7 @@ tinc_READLINE
 tinc_ZLIB
 tinc_LZO
 
-if test "x$with_libgcrypt" != "xno"; then
+if test -n "$with_libgcrypt"; then
        gcrypt=true
        tinc_LIBGCRYPT
 else