]> granicus.if.org Git - icinga2/commitdiff
Cleaned up configure.ac and made the build scripts more Solaris-friendly.
authorGunnar Beutner <gunnar.beutner@netways.de>
Fri, 25 May 2012 11:51:05 +0000 (13:51 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Fri, 25 May 2012 11:51:05 +0000 (13:51 +0200)
autogen.sh
config/ax_check_compile_flag.m4 [moved from m4/ax_check_compile_flag.m4 with 99% similarity]
config/ax_cxx_gcc_abi_demangle.m4 [moved from m4/ax_cxx_gcc_abi_demangle.m4 with 99% similarity]
config/ax_prog_doxygen.m4 [moved from m4/ax_prog_doxygen.m4 with 100% similarity]
config/ax_pthread.m4 [moved from m4/ax_pthread.m4 with 100% similarity]
configure.ac

index d4437e3d58c73f889e5080246d6118786e50a95a..df3d6718c1c1f63556577b032b3b9de43365b497 100755 (executable)
@@ -1,6 +1,8 @@
 #!/bin/sh
 # Run this to generate all the initial makefiles, etc.
 
+ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I config"
+
 srcdir=`dirname $0`
 test -z "$srcdir" && srcdir=.
 
similarity index 99%
rename from m4/ax_check_compile_flag.m4
rename to config/ax_check_compile_flag.m4
index 9212155449e8153481b34741c8c3fabd57c67834..c3a8d695a1bcda95fd91cb6d8c03a94cdcb5b9c7 100644 (file)
@@ -69,4 +69,4 @@ AS_IF([test x"AS_VAR_GET(CACHEVAR)" = xyes],
   [m4_default([$2], :)],
   [m4_default([$3], :)])
 AS_VAR_POPDEF([CACHEVAR])dnl
-])dnl AX_CHECK_COMPILE_FLAGS
\ No newline at end of file
+])dnl AX_CHECK_COMPILE_FLAGS
similarity index 99%
rename from m4/ax_cxx_gcc_abi_demangle.m4
rename to config/ax_cxx_gcc_abi_demangle.m4
index 746f686696c3b534a6cff8da932fe9885ac1f7de..0c54cc323f0e001fd8f664038d22067d1d59f55c 100644 (file)
@@ -55,4 +55,4 @@ if test "$ax_cv_cxx_gcc_abi_demangle" = yes; then
   AC_DEFINE(HAVE_GCC_ABI_DEMANGLE,1,
             [define if the compiler supports GCC C++ ABI name demangling])
 fi
-])
\ No newline at end of file
+])
similarity index 100%
rename from m4/ax_pthread.m4
rename to config/ax_pthread.m4
index 82acacaef84126117e6eb39fffa6f557853ac117..606c2c6be8bdda4544bde07fcb14b8bdb82f323a 100644 (file)
@@ -1,14 +1,10 @@
 dnl Process this file with autoconf to produce a configure script.
 dnl Created by Anjuta application wizard.
 
-m4_include([m4/ax_cxx_gcc_abi_demangle.m4])
-m4_include([m4/ax_check_compile_flag.m4])
-m4_include([m4/ax_pthread.m4])
-m4_include([m4/ax_prog_doxygen.m4])
-
 AC_INIT([icinga], [2.0])
+AC_LANG(C++)
 
-AC_CONFIG_AUX_DIR([m4])
+AC_CONFIG_AUX_DIR([config])
 AC_CONFIG_HEADERS([config.h])
 
 AM_INIT_AUTOMAKE([1.11])
@@ -24,7 +20,10 @@ DX_PDF_FEATURE(OFF)
 DX_PS_FEATURE(OFF)
 DX_INIT_DOXYGEN([icinga], [Doxyfile], [doc])
 
+AC_PROG_INSTALL
+AC_PROG_CC
 AC_PROG_CXX
+AC_PROG_LIBTOOL
 AX_CXX_GCC_ABI_DEMANGLE
 AX_PTHREAD
 
@@ -43,7 +42,7 @@ if test "$have_cxx11_support" = "yes"; then
 fi
 
 
-AC_COMPILE_IFELSE(AC_LANG_PROGRAM([[#include <openssl/ssl.h>]], []), [], [AC_MSG_ERROR([You need the OpenSSL headers and libraries in order to build this application]) ])
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <openssl/ssl.h>]], [])], [], [AC_MSG_ERROR([You need the OpenSSL headers and libraries in order to build this application]) ])
 
 
 LT_INIT([dlopen, disable-static])