"Fossies" - the Fresh Open Source Software Archive

Member "ftwin-master/configure.ac" (15 Feb 2015, 1962 Bytes) of package /linux/privat/ftwin-master.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 AC_PREREQ(2.52)
    2 
    3 # Required initializer
    4 AC_INIT([ftwin], m4_normalize(m4_include([VERSION])), [francois.pesce@gmail.com])
    5 
    6 
    7 dnl can autoconf find the source ?
    8 AC_CONFIG_SRCDIR([src/ftwin.c])
    9 AC_CONFIG_HEADER([src/config.h])
   10 
   11 AM_INIT_AUTOMAKE([subdir-objects])
   12 
   13 # Add a test for a compiler.
   14 AC_HEADER_STDC
   15 
   16 AC_PROG_CC
   17 
   18 # APR Checking
   19 APR_CONFIG_CHECK
   20 APR_UTIL_CONFIG_CHECK
   21 
   22 # PCRE Checking
   23 PCRE_CONFIG_CHECK
   24 
   25 # Checking doxygen argument and presence
   26 PATH_DOXYGEN
   27 PATH_DOT
   28 
   29 # Allow running test suites if check was found on system
   30 PKG_CHECK_MODULES(CHECK, check >= 0.9.4,
   31                   AM_CONDITIONAL(HAVE_CHECK, true),
   32                   AM_CONDITIONAL(HAVE_CHECK, false)
   33                   )
   34 
   35 # Check libpuzzle
   36 PUZZLE
   37 
   38 # Check libarchive
   39 AC_ARG_WITH([archive],
   40             [AS_HELP_STRING([--with-archive],[/absolute/path/to/libarchive-base])],
   41             [ARCHIVE_LDFLAGS="-L$with_archive/lib";
   42              ARCHIVE_LDADD="-larchive";
   43              ARCHIVE_CPPFLAGS="-I$with_archive/include/";
   44              AC_SUBST(ARCHIVE_LDFLAGS)
   45              AC_SUBST(ARCHIVE_LDADD)
   46              AC_SUBST(ARCHIVE_CPPFLAGS)
   47              AC_MSG_RESULT([$with_archive])
   48              AC_DEFINE(HAVE_ARCHIVE, 1, [libarchive available in the system])
   49              ],
   50             [AC_MSG_RESULT([no])])
   51 
   52 # Check zlib
   53 ZLIB
   54 
   55 # Check bz2
   56 BZ2
   57 
   58 USER_CFLAGS=$CFLAGS
   59 CFLAGS=""
   60 AC_SUBST(USER_CFLAGS)
   61 
   62 PWD=`pwd`
   63 ABS_TOP_SRCDIR=$PWD$top_srcdir
   64 AC_SUBST(ABS_TOP_SRCDIR)
   65 
   66 case $host in
   67 x86_64-*-*) CFLAGS="-march=nocona -mfpmath=sse,387 -DCPU=64" ;;
   68 i686-*-*)   CFLAGS="-march=i686 -malign-double -DCPU=686" ;;
   69 *)          CFLAGS= ;;
   70 esac
   71 
   72 AC_MSG_RESULT([
   73 ** Configuration summary for $PACKAGE $VERSION:
   74 
   75    Support for puzzle library:       $with_puzzle
   76    Support for archive library:      $with_archive
   77    Support for zlib library:         $with_zlib
   78    Support for bz2 library:          $with_bz2
   79 ])
   80 
   81 # Write config.status and the Makefile
   82 AC_CONFIG_FILES([Doxyfile Makefile])
   83 AC_OUTPUT