1 | dnl Copyright © 2007 Pippijn van Steenhoven / The Ermyth Team |
1 | dnl Copyright © 2007 Pippijn van Steenhoven / The Ermyth Team |
2 | dnl Copyright © 2005 Atheme Development Group |
2 | dnl Copyright © 2005 Atheme Development Group |
3 | dnl Rights to this code are documented in doc/pod/license.pod. |
3 | dnl Rights to this code are documented in doc/pod/license.pod. |
4 | dnl |
4 | dnl |
5 | dnl $Id: configure.ac,v 1.8 2007/08/28 17:08:06 pippijn Exp $ |
5 | dnl $Id: configure.ac,v 1.11 2007/09/16 18:54:41 pippijn Exp $ |
6 | |
6 | |
7 | dnl Process this file with autoconf to produce a configure script. |
7 | dnl Process this file with autoconf to produce a configure script. |
8 | |
8 | |
9 | AC_PREREQ(2.59) |
9 | AC_PREREQ(2.59) |
10 | AC_INIT([ermyth], [2.3], [ermyth@one09.net]) |
10 | AC_INIT([ermyth], [2.3], [ermyth@one09.net]) |
11 | AC_CONFIG_HEADER(include/sysconf.h) |
11 | AC_CONFIG_HEADER(include/sysconf.h) |
12 | AC_CONFIG_AUX_DIR(autoconf) |
12 | AC_CONFIG_AUX_DIR(autoconf) |
13 | |
13 | |
14 | AC_COPYRIGHT([$Id: configure.ac,v 1.8 2007/08/28 17:08:06 pippijn Exp $]) |
14 | AC_COPYRIGHT([$Id: configure.ac,v 1.11 2007/09/16 18:54:41 pippijn Exp $]) |
15 | |
15 | |
16 | AC_PREFIX_DEFAULT(~/PACKAGE) |
16 | AC_PREFIX_DEFAULT(~/PACKAGE) |
17 | |
17 | |
18 | dnl Automake compatibility. |
18 | dnl Automake compatibility. |
19 | AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME]) |
19 | AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME]) |
… | |
… | |
105 | |
105 | |
106 | dnl |
106 | dnl |
107 | dnl Checks for header files. |
107 | dnl Checks for header files. |
108 | dnl |
108 | dnl |
109 | |
109 | |
110 | AC_CHECK_HEADERS(getopt.h link.h valgrind/memcheck.h) |
110 | AC_CHECK_HEADERS(valgrind/memcheck.h) |
111 | AC_CHECK_HEADER(tr1/unordered_map, [], [AC_MSG_ERROR([Your compiler must support the Library Technical Report 1 extensions.])]) |
111 | AC_CHECK_HEADER(tr1/unordered_map, [], [AC_MSG_ERROR([Your compiler must support the Library Technical Report 1 extensions.])]) |
112 | |
112 | |
113 | AC_DEFINE(_REENTRANT, [1], [Define this]) |
113 | AC_DEFINE(_REENTRANT, [1], [Define this]) |
114 | |
114 | |
115 | #-------------------------------------------------- |
115 | #-------------------------------------------------- |
… | |
… | |
311 | srcdir="`cd \"$srcdir\";pwd`" |
311 | srcdir="`cd \"$srcdir\";pwd`" |
312 | ;; |
312 | ;; |
313 | esac |
313 | esac |
314 | fi |
314 | fi |
315 | SRCDIR="$srcdir" |
315 | SRCDIR="$srcdir" |
|
|
316 | BUILDROOT=`pwd` |
316 | |
317 | |
317 | AC_SUBST(ABSPATHS) |
318 | AC_SUBST(ABSPATHS) |
318 | AC_SUBST(SRCDIR) |
319 | AC_SUBST(SRCDIR) |
|
|
320 | AC_SUBST(BUILDROOT) |
319 | |
321 | |
320 | dnl |
322 | dnl |
321 | dnl Filesystem Hierarchy Standard |
323 | dnl Filesystem Hierarchy Standard |
322 | dnl |
324 | dnl |
323 | |
325 | |
… | |
… | |
570 | ERMYTH_C_GCC_TRY_FLAGS([-Wcast-align], ermyth_cv_c_gcc_w_cast_align) |
572 | ERMYTH_C_GCC_TRY_FLAGS([-Wcast-align], ermyth_cv_c_gcc_w_cast_align) |
571 | ERMYTH_C_GCC_TRY_FLAGS([-Wcast-qual], ermyth_cv_c_gcc_w_cast_qual) |
573 | ERMYTH_C_GCC_TRY_FLAGS([-Wcast-qual], ermyth_cv_c_gcc_w_cast_qual) |
572 | ERMYTH_C_GCC_TRY_FLAGS([-Wextra], ermyth_cv_c_gcc_w_extra) |
574 | ERMYTH_C_GCC_TRY_FLAGS([-Wextra], ermyth_cv_c_gcc_w_extra) |
573 | ERMYTH_C_GCC_TRY_FLAGS([-W -Wno-unused-parameter], ermyth_cv_c_gcc_w) |
575 | ERMYTH_C_GCC_TRY_FLAGS([-W -Wno-unused-parameter], ermyth_cv_c_gcc_w) |
574 | ERMYTH_C_GCC_TRY_FLAGS([-Wshadow], ermyth_cv_c_gcc_w_shadow) |
576 | ERMYTH_C_GCC_TRY_FLAGS([-Wshadow], ermyth_cv_c_gcc_w_shadow) |
575 | ERMYTH_C_GCC_TRY_FLAGS([-Wmissing-noreturn], ermyth_cv_c_gcc_w_missing_noreturn) |
577 | dnl ERMYTH_C_GCC_TRY_FLAGS([-Wmissing-noreturn], ermyth_cv_c_gcc_w_missing_noreturn) |
576 | ERMYTH_C_GCC_TRY_FLAGS([-Wundef], ermyth_cv_c_gcc_w_undef) |
578 | ERMYTH_C_GCC_TRY_FLAGS([-Wundef], ermyth_cv_c_gcc_w_undef) |
577 | ERMYTH_C_GCC_TRY_FLAGS([-Wpacked], ermyth_cv_c_gcc_w_packed) |
579 | ERMYTH_C_GCC_TRY_FLAGS([-Wpacked], ermyth_cv_c_gcc_w_packed) |
578 | ERMYTH_C_GCC_TRY_FLAGS([-Wunused-function -Wunused-label -Wunused-value -Wunused-variable], ermyth_cv_c_gcc_w_unused) |
580 | ERMYTH_C_GCC_TRY_FLAGS([-Wunused-function -Wunused-label -Wunused-value -Wunused-variable], ermyth_cv_c_gcc_w_unused) |
579 | ERMYTH_C_GCC_TRY_FLAGS([-Wredundant-decls], ermyth_cv_c_gcc_w_redundant_decls) |
581 | ERMYTH_C_GCC_TRY_FLAGS([-Wredundant-decls], ermyth_cv_c_gcc_w_redundant_decls) |
580 | ERMYTH_C_GCC_TRY_FLAGS([-Wfloat-equal], ermyth_cv_c_gcc_w_float_equal) |
582 | ERMYTH_C_GCC_TRY_FLAGS([-Wfloat-equal], ermyth_cv_c_gcc_w_float_equal) |