"Fossies" - the Fresh Open Source Software Archive

Member "passgen-1.2.0/configure.in" (11 Jun 2011, 1409 Bytes) of package /linux/privat/old/passgen-1.2.0.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 dnl Process this file with autoconf to produce a configure script.
    2 AC_INIT(src/passgen.c)
    3 AM_INIT_AUTOMAKE(passgen,1.2.0)
    4 
    5 dnl Set of available languages.
    6 ALL_LINGUAS="en"
    7 
    8 dnl Checks for programs.
    9 AC_PROG_CC
   10 AC_PROG_INSTALL
   11 
   12 dnl Checks for header files.
   13 AC_HEADER_STDC
   14 
   15 AC_SUBST(PKG_CPPFLAGS)
   16 AC_SUBST(PKG_LIBS)
   17 AC_SUBST(PKG_CFLAGS)
   18 AC_SUBST(PKG_FFLAGS)
   19 
   20 dnl Where to put passgen.conf
   21 if test [ \"NONE\" == \"$prefix\" ]; then
   22 AC_SUBST(CONFDIR, "/etc")
   23 AC_ARG_WITH(conf,
   24 	AC_HELP_STRING([--with-conf=FILE],
   25 		[where config file lives [[/etc]]]),
   26 	CONF="${withval}")
   27 else
   28 	AC_SUBST(CONFDIR, "$prefix/etc")
   29 	AC_ARG_WITH(conf,
   30         AC_HELP_STRING([--with-confdir=DIR],
   31 		[where config file lives [[/etc]]]),
   32 	CONFDIR="${withval}")
   33 fi
   34 AC_MSG_NOTICE([where to store config... $CONFDIR])
   35 AC_DEFINE_UNQUOTED(CONFDIR, "$CONFDIR", [Where to store config.])
   36 AC_DEFINE_UNQUOTED(CONF, "$CONFDIR/passgen.conf", [Where to find passgen.conf.])
   37 
   38 dnl Force autotools to put the exectuables where the user wants them
   39 if test [ \"NONE\" == \"$prefix\" ]; then
   40 	AC_SUBST(BINDIR, "/usr/bin")
   41 else
   42 	AC_SUBST(BINDIR, "$prefix/bin")
   43 fi
   44 
   45 dnl Force autotools to put the man files where the user wants them
   46 if test [ \"NONE\" == \"$prefix\" ]; then
   47 	AC_SUBST(mandir, "/usr/share/man")
   48 else
   49 	AC_SUBST(mandir, "$prefix/share/man")
   50 fi
   51 
   52 dnl Files to process
   53 AC_OUTPUT([Makefile etc/passgen.conf etc/Makefile src/Makefile doc/Makefile])