"Fossies" - the Fresh Open Source Software Archive

Member "mod_sendmail-1.1.0/configure.ac" (6 May 2014, 1851 Bytes) of package /linux/www/apache_httpd_modules/mod_sendmail-1.1.0.tar.bz2:


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 #                                               -*- Autoconf -*-
    2 # Process this file with autoconf to produce a configure script.
    3 
    4 AC_PREREQ(2.62)
    5 AC_INIT(mod_sendmail, 1.1.0, drewyrr@gmail.com)
    6 AM_INIT_AUTOMAKE([dist-bzip2])
    7 AC_CONFIG_FILES([Makefile mod_sendmail.spec])
    8 AC_CONFIG_SRCDIR([mod_sendmail.c])
    9 
   10 # Checks for programs.
   11 AC_PROG_CC
   12 AC_ARG_WITH(apxs,
   13     [  --with-apxs=PATH        path to Apache apxs],
   14     [
   15         if test "$withval" = "yes"; then
   16             AC_CHECK_PROG(APXS, apxs, /usr/sbin/apxs, , /usr/sbin)
   17             AC_CHECK_PROG(APXS, apxs, /usr/bin/apxs, , /usr/bin)
   18             AC_CHECK_PROG(APXS, apxs, , , reject)
   19         else
   20             APXS=$withval
   21             AC_SUBST(APXS)
   22         fi
   23     ],
   24     [
   25         AC_CHECK_PROG(APXS, apxs, /usr/sbin/apxs, , /usr/sbin)
   26         AC_CHECK_PROG(APXS, apxs, /usr/bin/apxs, , /usr/bin)
   27         AC_CHECK_PROG(APXS, apxs, , , reject)
   28     ])
   29 if test "$APXS" = "reject"; then
   30   AC_MSG_ERROR([Could not find apxs on the path.])
   31 fi
   32 
   33 # Make sure the Apache include files are found
   34 CPPFLAGS="$CPPFLAGS -I`$APXS -q INCLUDEDIR`"
   35 CFLAGS="$CFLAGS -I`$APXS -q INCLUDEDIR`"
   36 
   37 AC_ARG_WITH(install,
   38     [  --with-install=PATH     path to install],
   39     [
   40         if test "$withval" = "yes"; then
   41             AC_CHECK_PROGS(INSTALL, install /usr/sbin/install, reject)
   42         else
   43             APXS=$withval
   44             AC_SUBST(INSTALL)
   45         fi
   46     ],
   47     [
   48         AC_CHECK_PROGS(INSTALL, install /usr/sbin/install, reject)
   49     ])
   50 if test "$INSTALL" = "reject"; then
   51   AC_MSG_ERROR([Could not find install on the path.])
   52 fi
   53 
   54 # Checks for libraries.
   55 
   56 # Checks for header files.
   57 AC_CHECK_HEADERS([stdlib.h strings.h])
   58 
   59 # Checks for typedefs, structures, and compiler characteristics.
   60 AC_TYPE_SIZE_T
   61 
   62 # Checks for library functions.
   63 AC_CHECK_FUNCS([strcasecmp])
   64 
   65 AC_SUBST(PACKAGE_VERSION)
   66 AC_OUTPUT