Commit b0c3cff3 authored by Daniel Salzman's avatar Daniel Salzman

configure: remove tabulators

parent 2ca888f5
...@@ -23,8 +23,8 @@ AC_SUBST([KNOT_VERSION_PATCH], knot_VERSION_PATCH) ...@@ -23,8 +23,8 @@ AC_SUBST([KNOT_VERSION_PATCH], knot_VERSION_PATCH)
AC_SUBST([KNOT_VERSION_EXTRA], knot_VERSION_EXTRA) AC_SUBST([KNOT_VERSION_EXTRA], knot_VERSION_EXTRA)
AC_CONFIG_FILES([src/libknot/version.h AC_CONFIG_FILES([src/libknot/version.h
src/zscanner/version.h src/zscanner/version.h
src/dnssec/lib/dnssec/version.h]) src/dnssec/lib/dnssec/version.h])
# Here are a set of rules to help you update your library version # Here are a set of rules to help you update your library version
# information: # information:
...@@ -76,9 +76,9 @@ LT_INIT ...@@ -76,9 +76,9 @@ LT_INIT
PKG_PROG_PKG_CONFIG PKG_PROG_PKG_CONFIG
m4_ifdef([PKG_INSTALLDIR], [PKG_INSTALLDIR], [AC_SUBST([pkgconfigdir], ['${libdir}/pkgconfig'])]) m4_ifdef([PKG_INSTALLDIR], [PKG_INSTALLDIR], [AC_SUBST([pkgconfigdir], ['${libdir}/pkgconfig'])])
AC_CONFIG_FILES([src/libknot.pc AC_CONFIG_FILES([src/libknot.pc
src/dnssec/libdnssec.pc src/dnssec/libdnssec.pc
src/zscanner/libzscanner.pc src/zscanner/libzscanner.pc
]) ])
# Build Knot DNS daemon # Build Knot DNS daemon
AC_ARG_ENABLE([daemon], AC_ARG_ENABLE([daemon],
...@@ -108,9 +108,9 @@ AC_ARG_ENABLE([fastparser], ...@@ -108,9 +108,9 @@ AC_ARG_ENABLE([fastparser],
# Set zone parser type - fastest on release build, slowest on dev build # Set zone parser type - fastest on release build, slowest on dev build
AS_IF([test -d ".git" -o "$PATCH_VERSION" = "dev"],[ AS_IF([test -d ".git" -o "$PATCH_VERSION" = "dev"],[
enable_fastparser=no enable_fastparser=no
],[ ],[
enable_fastparser=yes enable_fastparser=yes
]) ])
]) ])
AS_IF([test "$enable_fastparser" = "yes"],[ AS_IF([test "$enable_fastparser" = "yes"],[
...@@ -147,7 +147,7 @@ AC_ARG_ENABLE([recvmmsg], ...@@ -147,7 +147,7 @@ AC_ARG_ENABLE([recvmmsg],
AS_HELP_STRING([--enable-recvmmsg=yes|no], [enable recvmmsg() network API under Linux (kernel support required) (set to 'no' if you have trouble running server under valgrind) [default=yes]]), AS_HELP_STRING([--enable-recvmmsg=yes|no], [enable recvmmsg() network API under Linux (kernel support required) (set to 'no' if you have trouble running server under valgrind) [default=yes]]),
[case "${enableval}" in [case "${enableval}" in
yes) yes)
AC_CHECK_FUNCS([sendmmsg]) AC_CHECK_FUNCS([sendmmsg])
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <sys/socket.h>]], [[struct mmsghdr v; recvmmsg(0,0,0,0,0);]])], AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <sys/socket.h>]], [[struct mmsghdr v; recvmmsg(0,0,0,0,0);]])],
[AC_DEFINE(HAVE_RECVMMSG, 1, [Define if struct mmsghdr and recvmmsg() exists.])]) [AC_DEFINE(HAVE_RECVMMSG, 1, [Define if struct mmsghdr and recvmmsg() exists.])])
;; ;;
...@@ -241,7 +241,7 @@ AS_IF([test "$enable_systemd" != "no"],[ ...@@ -241,7 +241,7 @@ AS_IF([test "$enable_systemd" != "no"],[
[auto],[PKG_CHECK_MODULES([systemd], [libsystemd], [enable_systemd=yes], [ [auto],[PKG_CHECK_MODULES([systemd], [libsystemd], [enable_systemd=yes], [
PKG_CHECK_MODULES([systemd], [libsystemd-daemon libsystemd-journal], [enable_systemd=yes], [enable_systemd=no])])], PKG_CHECK_MODULES([systemd], [libsystemd-daemon libsystemd-journal], [enable_systemd=yes], [enable_systemd=no])])],
[yes],[PKG_CHECK_MODULES([systemd], [libsystemd], [], [ [yes],[PKG_CHECK_MODULES([systemd], [libsystemd], [], [
PKG_CHECK_MODULES([systemd], [libsystemd-daemon libsystemd-journal])])], PKG_CHECK_MODULES([systemd], [libsystemd-daemon libsystemd-journal])])],
[*],[AC_MSG_ERROR([Invalid value of --enable-systemd.])]) [*],[AC_MSG_ERROR([Invalid value of --enable-systemd.])])
]) ])
...@@ -280,16 +280,16 @@ AS_IF([test "$with_urcu" != "no"], [ ...@@ -280,16 +280,16 @@ AS_IF([test "$with_urcu" != "no"], [
AC_SEARCH_LIBS([rcu_set_pointer_sym], [urcu], [ AC_SEARCH_LIBS([rcu_set_pointer_sym], [urcu], [
with_urcu=yes with_urcu=yes
liburcu_LIBS="$liburcu_LIBS -lurcu" liburcu_LIBS="$liburcu_LIBS -lurcu"
AC_SUBST([liburcu_CFLAGS]) AC_SUBST([liburcu_CFLAGS])
AC_SUBST([liburcu_LIBS]) AC_SUBST([liburcu_LIBS])
break break
],[ ],[
CPPFLAGS="$save_CPPFLAGS" CPPFLAGS="$save_CPPFLAGS"
LIBS="$save_LIBS" LIBS="$save_LIBS"
with_urcu=no with_urcu=no
# do not cache result of AC_SEARCH_LIBS test # do not cache result of AC_SEARCH_LIBS test
unset ac_cv_search_rcu_set_pointer_sym unset ac_cv_search_rcu_set_pointer_sym
]) ])
done done
CPPFLAGS="$save_CPPFLAGS" CPPFLAGS="$save_CPPFLAGS"
...@@ -344,7 +344,7 @@ AS_IF([test "$with_lmdb" != "no"],[ ...@@ -344,7 +344,7 @@ AS_IF([test "$with_lmdb" != "no"],[
],[ ],[
lmdb_CFLAGS="" lmdb_CFLAGS=""
lmdb_LIBS="" lmdb_LIBS=""
]) ])
CPPFLAGS="$save_CPPFLAGS $lmdb_CFLAGS" CPPFLAGS="$save_CPPFLAGS $lmdb_CFLAGS"
LIBS="$save_LIBS $lmdb_LIBS" LIBS="$save_LIBS $lmdb_LIBS"
...@@ -353,15 +353,15 @@ AS_IF([test "$with_lmdb" != "no"],[ ...@@ -353,15 +353,15 @@ AS_IF([test "$with_lmdb" != "no"],[
AC_CHECK_HEADERS([lmdb.h], [], [ AC_CHECK_HEADERS([lmdb.h], [], [
AC_MSG_ERROR([lmdb headers not found in `$try_lmdb', is your installation complete?])]) AC_MSG_ERROR([lmdb headers not found in `$try_lmdb', is your installation complete?])])
AC_COMPUTE_INT(lmdb_VERSION_FULL, MDB_VERSION_FULL, [#include <lmdb.h>], AC_COMPUTE_INT(lmdb_VERSION_FULL, MDB_VERSION_FULL, [#include <lmdb.h>],
AC_MSG_ERROR([Unable to determine lmdb version from MDB_VERSION_FULL])) AC_MSG_ERROR([Unable to determine lmdb version from MDB_VERSION_FULL]))
AS_IF([test "$lmdb_VERSION_FULL" -ge "$lmdb_MIN_VERSION_FULL"],[ AS_IF([test "$lmdb_VERSION_FULL" -ge "$lmdb_MIN_VERSION_FULL"],[
lmdb_LIBS="$lmdb_LIBS -llmdb" lmdb_LIBS="$lmdb_LIBS -llmdb"
have_lmdb=yes],[ have_lmdb=yes],[
unset lmdb_CFLAGS unset lmdb_CFLAGS
unset lmdb_LIBS unset lmdb_LIBS
AC_MSG_WARN([lmdb version 0.9.15 and higher not found, using embedded version]) AC_MSG_WARN([lmdb version 0.9.15 and higher not found, using embedded version])
]) ])
break break
]) ])
unset lmdb_CFLAGS unset lmdb_CFLAGS
...@@ -376,7 +376,7 @@ AS_IF([test "$with_lmdb" != "no"],[ ...@@ -376,7 +376,7 @@ AS_IF([test "$with_lmdb" != "no"],[
# fail the configure if we haven't found lmdb library in the system # fail the configure if we haven't found lmdb library in the system
AS_IF([test "$with_lmdb" != "auto" -a "$have_lmdb" = "no"],[ AS_IF([test "$with_lmdb" != "auto" -a "$have_lmdb" = "no"],[
AC_MSG_ERROR([shared lmdb library not found]) AC_MSG_ERROR([shared lmdb library not found])
]) ])
]) ])
AS_IF([test "$have_lmdb" != "no"],[ AS_IF([test "$have_lmdb" != "no"],[
...@@ -418,7 +418,7 @@ AS_IF([test "$with_libidn" != "no"],[ ...@@ -418,7 +418,7 @@ AS_IF([test "$with_libidn" != "no"],[
],[ ],[
with_libidn=no with_libidn=no
AC_MSG_WARN([libidn not found]) AC_MSG_WARN([libidn not found])
])]) ])])
]) # Knot DNS utilities dependencies ]) # Knot DNS utilities dependencies
...@@ -449,12 +449,6 @@ AC_SEARCH_LIBS([capng_apply], [cap-ng]) ...@@ -449,12 +449,6 @@ AC_SEARCH_LIBS([capng_apply], [cap-ng])
AC_HEADER_RESOLV AC_HEADER_RESOLV
AC_CHECK_HEADERS_ONCE([cap-ng.h netinet/in_systm.h pthread_np.h signal.h sys/time.h sys/wait.h sys/uio.h]) AC_CHECK_HEADERS_ONCE([cap-ng.h netinet/in_systm.h pthread_np.h signal.h sys/time.h sys/wait.h sys/uio.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_INLINE
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
# Checks for library functions. # Checks for library functions.
AC_CHECK_FUNCS([clock_gettime gettimeofday fgetln getline madvise malloc_trim poll posix_memalign pthread_setaffinity_np regcomp setgroups strlcat strlcpy initgroups accept4]) AC_CHECK_FUNCS([clock_gettime gettimeofday fgetln getline madvise malloc_trim poll posix_memalign pthread_setaffinity_np regcomp setgroups strlcat strlcpy initgroups accept4])
...@@ -510,18 +504,18 @@ AM_CONDITIONAL([HAVE_PDFLATEX], test "$PDFLATEX" != "false") ...@@ -510,18 +504,18 @@ AM_CONDITIONAL([HAVE_PDFLATEX], test "$PDFLATEX" != "false")
AM_CONDITIONAL([HAVE_MAKEINFO], test "$MAKEINFO" != "false") AM_CONDITIONAL([HAVE_MAKEINFO], test "$MAKEINFO" != "false")
AC_CONFIG_FILES([Makefile AC_CONFIG_FILES([Makefile
doc/Makefile doc/Makefile
samples/Makefile libtap/Makefile
libtap/Makefile tests/Makefile
src/Makefile tests-fuzz/Makefile
tests/Makefile samples/Makefile
tests-fuzz/Makefile src/Makefile
src/contrib/dnstap/Makefile src/contrib/dnstap/Makefile
src/zscanner/Makefile src/dnssec/Makefile
src/dnssec/Makefile src/dnssec/tests/Makefile
src/dnssec/tests/Makefile src/dnssec/utils/Makefile
src/dnssec/utils/Makefile src/zscanner/Makefile
]) ])
AC_OUTPUT AC_OUTPUT
...@@ -540,10 +534,10 @@ AC_MSG_RESULT([ ...@@ -540,10 +534,10 @@ AC_MSG_RESULT([
Sanitizer: ${sanitize_CFLAGS} Sanitizer: ${sanitize_CFLAGS}
LibFuzzer: ${libfuzzer_LIBS} LibFuzzer: ${libfuzzer_LIBS}
Prefix: ${prefix} Prefix: ${prefix}
Run dir: ${run_dir} Run dir: ${run_dir}
Storage dir: ${storage_dir} Storage dir: ${storage_dir}
Config dir: ${config_dir} Config dir: ${config_dir}
Knot DNS libraries: yes Knot DNS libraries: yes
Knot DNS daemon: ${enable_daemon} Knot DNS daemon: ${enable_daemon}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment