diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-08-14 16:53:51 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-08-14 16:53:51 +0000 |
commit | b493473bd11d42ca9c57d3c48ed0958f5ea5c784 (patch) | |
tree | 73b81006aaafbeda29684b86ae0d6a8fd053744d /configure.ac | |
parent | 5e1200cd82ff8e247523f0ec5ccb68898d7ea14f (diff) | |
download | libextractor-b493473bd11d42ca9c57d3c48ed0958f5ea5c784.tar.gz libextractor-b493473bd11d42ca9c57d3c48ed0958f5ea5c784.zip |
cleaning up configure.ac
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 51 |
1 files changed, 27 insertions, 24 deletions
diff --git a/configure.ac b/configure.ac index d63e9b9..03d493e 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,11 +1,11 @@ | |||
1 | # Process this file with autoconf to produce a configure script. | 1 | # Process this file with autoconf to produce a configure script. |
2 | AC_PREREQ(2.61) | 2 | AC_PREREQ(2.61) |
3 | AC_INIT([libextractor], [0.6.3], [bug-libextractor@gnu.org]) | 3 | AC_INIT([libextractor], [0.6.3], [bug-libextractor@gnu.org]) |
4 | LT_CONFIG_LTDL_DIR([libltdl]) | ||
5 | AC_CONFIG_AUX_DIR([libltdl/config]) | ||
6 | AM_INIT_AUTOMAKE([silent-rules]) | ||
7 | AC_CONFIG_HEADERS([config.h]) | 4 | AC_CONFIG_HEADERS([config.h]) |
8 | AH_TOP([#define _GNU_SOURCE 1]) | 5 | AH_TOP([#define _GNU_SOURCE 1]) |
6 | AC_CANONICAL_TARGET | ||
7 | AC_CANONICAL_HOST | ||
8 | AC_CANONICAL_SYSTEM | ||
9 | 9 | ||
10 | LIB_VERSION_CURRENT=3 | 10 | LIB_VERSION_CURRENT=3 |
11 | LIB_VERSION_REVISION=2 | 11 | LIB_VERSION_REVISION=2 |
@@ -14,9 +14,11 @@ AC_SUBST(LIB_VERSION_CURRENT) | |||
14 | AC_SUBST(LIB_VERSION_REVISION) | 14 | AC_SUBST(LIB_VERSION_REVISION) |
15 | AC_SUBST(LIB_VERSION_AGE) | 15 | AC_SUBST(LIB_VERSION_AGE) |
16 | 16 | ||
17 | LT_CONFIG_LTDL_DIR([libltdl]) | ||
18 | AC_CONFIG_AUX_DIR([libltdl/config]) | ||
19 | AM_INIT_AUTOMAKE([silent-rules]) | ||
20 | |||
17 | # Checks for programs. | 21 | # Checks for programs. |
18 | AC_CANONICAL_HOST | ||
19 | AC_CANONICAL_TARGET | ||
20 | AC_USE_SYSTEM_EXTENSIONS | 22 | AC_USE_SYSTEM_EXTENSIONS |
21 | AC_PROG_AWK | 23 | AC_PROG_AWK |
22 | AC_PROG_CC | 24 | AC_PROG_CC |
@@ -88,7 +90,8 @@ darwin*) | |||
88 | AM_CONDITIONAL(HAVE_GNU_LD, false) | 90 | AM_CONDITIONAL(HAVE_GNU_LD, false) |
89 | AM_CONDITIONAL(SOMEBSD, false) | 91 | AM_CONDITIONAL(SOMEBSD, false) |
90 | AM_CONDITIONAL(WINDOWS, false) | 92 | AM_CONDITIONAL(WINDOWS, false) |
91 | CFLAGS="-fno-common $CFLAGS" | 93 | CPPFLAGS="-D_APPLE_C_SOURCE $CPPFLAGS" |
94 | CFLAGS="-no-cpp-precomp -fno-common $CFLAGS" | ||
92 | LIBEXT=.so | 95 | LIBEXT=.so |
93 | ;; | 96 | ;; |
94 | cygwin*) | 97 | cygwin*) |
@@ -361,21 +364,6 @@ AC_CHECK_LIB(magic, magic_open, | |||
361 | # restore LIBS | 364 | # restore LIBS |
362 | LIBS=$LIBSOLD | 365 | LIBS=$LIBSOLD |
363 | 366 | ||
364 | # Special check for broken Operating Systems (OS X) | ||
365 | AC_CACHE_CHECK(whether ${CC-cc} accepts -no-cpp-precomp, | ||
366 | cv_prog_cc_darwin_cpp_precomp, | ||
367 | [echo 'void f(){}' > conftest.c | ||
368 | if test -z "`${CC-cc} -no-cpp-precomp -c conftest.c 2>&1`"; then | ||
369 | cv_prog_cc_darwin_cpp_precomp=yes | ||
370 | else | ||
371 | cv_prog_cc_darwin_cpp_precomp=no | ||
372 | fi | ||
373 | rm -f conftest* | ||
374 | ]) | ||
375 | if test $cv_prog_cc_darwin_cpp_precomp = yes; then | ||
376 | CFLAGS="$CFLAGS -no-cpp-precomp" | ||
377 | fi | ||
378 | |||
379 | 367 | ||
380 | # Checks for header files. | 368 | # Checks for header files. |
381 | AC_HEADER_STDC | 369 | AC_HEADER_STDC |
@@ -676,12 +664,27 @@ AC_OUTPUT | |||
676 | 664 | ||
677 | if test "x$HAVE_ZLIB_TRUE" = "x#" | 665 | if test "x$HAVE_ZLIB_TRUE" = "x#" |
678 | then | 666 | then |
679 | AC_MSG_ERROR([FATAL: zlib not found (headers not installed?)]) | 667 | AC_MSG_NOTICE([NOTICE: zlib not found, zlib support disabled]) |
668 | fi | ||
669 | |||
670 | if test "x$HAVE_BZ2_TRUE" = "x#" | ||
671 | then | ||
672 | AC_MSG_NOTICE([NOTICE: libbz2 not found, bz2 support disabled]) | ||
673 | fi | ||
674 | |||
675 | if test "x$HAVE_EXIV2_TRUE" = "x#" | ||
676 | then | ||
677 | AC_MSG_NOTICE([NOTICE: libexiv2 not found, exiv2 disabled]) | ||
678 | fi | ||
679 | |||
680 | if test "x$HAVE_JPEG_TRUE" = "x#" | ||
681 | then | ||
682 | AC_MSG_NOTICE([NOTICE: libjpeg not found, jpeg disabled]) | ||
680 | fi | 683 | fi |
681 | 684 | ||
682 | if test "x$HAVE_EXIV2" = "x#" | 685 | if test "x$HAVE_GIF_TRUE" = "x#" |
683 | then | 686 | then |
684 | AC_MSG_NOTICE([NOTICE: exiv2 disabled]) | 687 | AC_MSG_NOTICE([NOTICE: libgif not found, gif disabled]) |
685 | fi | 688 | fi |
686 | 689 | ||
687 | if test "x$have_gsf" != "xtrue" | 690 | if test "x$have_gsf" != "xtrue" |