Changeset 395 in openpam for trunk/configure.ac


Ignore:
Timestamp:
Jun 3, 2007, 8:26:18 PM (14 years ago)
Author:
Dag-Erling Smørgrav
Message:

Fix some bugs in the build system, and make 'make dist' work as expected.
Also add some configure options for developer use.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r390 r395  
    11dnl $Id$
    22
    3 AC_PREREQ(2.53)
    4 AC_INIT([OpenPAM],[20050616],[des@freebsd.org],[openpam])
    5 AC_CONFIG_SRCDIR([lib/pam_start.c])
    6 AM_CONFIG_HEADER([config.h])
     3AC_PREREQ(2.59)
     4AC_REVISION([$Id$])
     5AC_INIT([OpenPAM],[trunk],[des@des.no])
     6AC_CONFIG_SRCDIR(lib/pam_start.c)
     7AM_CONFIG_HEADER(config.h)
    78
    89AC_CANONICAL_SYSTEM
     10AC_LANG(C)
    911AC_C_VOLATILE
    1012AC_DISABLE_STATIC
    1113AC_PROG_LIBTOOL
    12 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
     14AM_INIT_AUTOMAKE
    1315
    1416LIB_MAJ=2
     
    9597CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
    9698
    97 if test "$GCC" = yes; then
    98         CFLAGS="$CFLAGS -Werror"
    99 fi
     99# This corresponds to FreeBSD's WARNS level 6
     100DEVELOPER_CFLAGS="-Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wformat"
     101
     102AC_ARG_ENABLE(developer-warnings,
     103        AS_HELP_STRING([--enable-developer-warnings],[enable strict warnings (default is NO)]),
     104        CFLAGS="${CFLAGS} ${DEVELOPER_CFLAGS}")
     105AC_ARG_ENABLE(debugging-symbols,
     106        AS_HELP_STRING([--enable-debugging-symbols],[enable debugging symbols (default is NO)]),
     107        CFLAGS="${CFLAGS} -O0 -g -fno-inline")
     108AC_ARG_ENABLE(werror,
     109        AS_HELP_STRING([--enable-werror],[use -Werror (default is NO)]),
     110        CFLAGS="${CFLAGS} -Werror")
    100111
    101112AC_CONFIG_FILES([
Note: See TracChangeset for help on using the changeset viewer.