Commit 4c9d6afc authored by salaun's avatar salaun
Browse files

Bug fix: Change configure options to with-xxx so they can be customized at configure time


git-svn-id: https://subversion.renater.fr/sympa/trunk@1145 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
parent 7aad7f81
......@@ -29,7 +29,7 @@ USER = @USER@
GROUP = @GROUP@
## configuration file
CONFDIR = ${sysconfdir}
CONFDIR = @CONFDIR@
## Perl path
PERL = @PERL@
......@@ -48,7 +48,7 @@ SYMPA_VERSION = @VERSION@
## installed (usefull for packagers of Sympa)
DIR = ${prefix}
EXPL_DIR = ${localstatedir}
EXPL_DIR = @EXPLDIR@
## PID location
PIDDIR = @PIDDIR@
......@@ -56,24 +56,24 @@ PIDDIR = @PIDDIR@
## Both queue and bouncequeue are lunched by sendmail. If sendmail
## is configured to used smrsh (check the mailer prog definition), thoses
## files needs to be installed in /etc/smrsh.
MAILERPROGDIR = ${bindir}
MAILERPROGDIR = @BINDIR@
#RPMTOPDIR = `rpm --eval %_topdir`
RPMTOPDIR = /usr/src/redhat
MANDIR = ${mandir}
MANDIR = @MANDIR@
## SYSV init scripts directory
INITDIR = @INITDIR@
## no more used ##
BINDIR = ${bindir}
BINDIR = @BINDIR@
SBINDIR = ${sbindir}
SBINDIR = @SBINDIR@
CGIDIR = $(SBINDIR)
CGIDIR = @CGIDIR@
LIBDIR = ${libdir}
LIBDIR = @LIBDIR@
## Spools directory
SPOOLDIR = $(DIR)/spool
......@@ -134,7 +134,7 @@ CFLAGS = -g
CONFIG = $(CONFDIR)/sympa.conf
WWSCONFIG = $(CONFDIR)/wwsympa.conf
ETCBINDIR = ${datadir}
ETCBINDIR = @DATADIR@
NLSDIR = $(DIR)/nls
#ifeq ($(shell uname), Linux)
......
......@@ -81,6 +81,9 @@ NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
CVS2CL = @CVS2CL@
DATADIR = @DATADIR@
EXPLDIR = @EXPLDIR@
LIBEXECDIR = @LIBEXECDIR@
MAINT = @MAINT@
MAJOR_VERSION = @MAJOR_VERSION@
MAKEINFO = @MAKEINFO@
......@@ -92,7 +95,7 @@ VERSION = @VERSION@
USER = @USER@
GROUP = @GROUP@
CONFDIR = ${sysconfdir}
CONFDIR = @CONFDIR@
PERL = @PERL@
......@@ -104,26 +107,26 @@ SYMPA_VERSION = @VERSION@
DIR = ${prefix}
EXPL_DIR = ${localstatedir}
EXPL_DIR = @EXPLDIR@
PIDDIR = @PIDDIR@
MAILERPROGDIR = ${bindir}
MAILERPROGDIR = @BINDIR@
#RPMTOPDIR = `rpm --eval %_topdir`
RPMTOPDIR = /usr/src/redhat
MANDIR = ${mandir}
MANDIR = @MANDIR@
INITDIR = @INITDIR@
BINDIR = ${bindir}
BINDIR = @BINDIR@
SBINDIR = ${sbindir}
SBINDIR = @SBINDIR@
CGIDIR = $(SBINDIR)
CGIDIR = @CGIDIR@
LIBDIR = ${libdir}
LIBDIR = @LIBDIR@
SPOOLDIR = $(DIR)/spool
......@@ -167,7 +170,7 @@ CFLAGS = -g
CONFIG = $(CONFDIR)/sympa.conf
WWSCONFIG = $(CONFDIR)/wwsympa.conf
ETCBINDIR = ${datadir}
ETCBINDIR = @DATADIR@
NLSDIR = $(DIR)/nls
#ifeq ($(shell uname), Linux)
......
......@@ -12,6 +12,24 @@ ac_help=
ac_default_prefix=/usr/local
# Any additions from configure.in:
ac_default_prefix=/home/sympa
ac_help="$ac_help
--with-confdir=DIR Sympa main configuration files in DIR (default /etc)"
ac_help="$ac_help
--with-cgidir=DIR CGIs in DIR (default ${prefix}/bin)"
ac_help="$ac_help
--with-bindir=DIR user executables in DIR (default ${prefix}/bin). queue and bouncequeue programs will be installed in this directory. If sendmail is configured to use smrsh (check the mailer prog definition in your sendmail.cf), this should point to /etc/smrsh. This is probably the case if you are using Linux"
ac_help="$ac_help
--with-sbindir=DIR system admin executables in DIR (default ${prefix}/bin)"
ac_help="$ac_help
--with-libexecdir=DIR program executables in DIR (default ${prefix}/bin)"
ac_help="$ac_help
--with-libdir=DIR Perl modules in DIR (default ${prefix}/bin)"
ac_help="$ac_help
--with-datadir=DIR default *read-only* data files in DIR (default ${prefix}/bin/etc)"
ac_help="$ac_help
--with-expldir=DIR modifiable data files in DIR (default ${prefix}/expl)"
ac_help="$ac_help
--with-mandir=DIR documentation in DIR (default /usr/local/man)"
ac_help="$ac_help
--with-initdir=DIR install System V init script in DIR (default /etc/rc.d/init.d)"
ac_help="$ac_help
......@@ -584,7 +602,7 @@ ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
echo "configure:588: checking for a BSD compatible install" >&5
echo "configure:606: checking for a BSD compatible install" >&5
if test -z "$INSTALL"; then
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
......@@ -637,7 +655,7 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
echo "configure:641: checking whether build environment is sane" >&5
echo "configure:659: checking whether build environment is sane" >&5
# Just in case
sleep 1
echo timestamp > conftestfile
......@@ -694,7 +712,7 @@ test "$program_suffix" != NONE &&
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
echo "configure:698: checking whether ${MAKE-make} sets \${MAKE}" >&5
echo "configure:716: checking whether ${MAKE-make} sets \${MAKE}" >&5
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
......@@ -733,7 +751,7 @@ fi
missing_dir=`cd $ac_aux_dir && pwd`
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
echo "configure:737: checking for working aclocal" >&5
echo "configure:755: checking for working aclocal" >&5
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf. Sigh.
......@@ -746,7 +764,7 @@ else
fi
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
echo "configure:750: checking for working autoconf" >&5
echo "configure:768: checking for working autoconf" >&5
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf. Sigh.
......@@ -759,7 +777,7 @@ else
fi
echo $ac_n "checking for working automake""... $ac_c" 1>&6
echo "configure:763: checking for working automake" >&5
echo "configure:781: checking for working automake" >&5
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf. Sigh.
......@@ -772,7 +790,7 @@ else
fi
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
echo "configure:776: checking for working autoheader" >&5
echo "configure:794: checking for working autoheader" >&5
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf. Sigh.
......@@ -785,7 +803,7 @@ else
fi
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
echo "configure:789: checking for working makeinfo" >&5
echo "configure:807: checking for working makeinfo" >&5
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf. Sigh.
......@@ -804,25 +822,96 @@ fi
## Directories setup
## for main config files
sysconfdir=/etc
## for executable programs
bindir='${prefix}/bin'
## location of main config files
CONFDIR='/etc'
# Check whether --with-confdir or --without-confdir was given.
if test "${with_confdir+set}" = set; then
withval="$with_confdir"
CONFDIR="$withval"
fi
## location of CGIs
CGIDIR='${prefix}/bin'
# Check whether --with-cgidir or --without-cgidir was given.
if test "${with_cgidir+set}" = set; then
withval="$with_cgidir"
CGIDIR="$withval"
fi
## for executable programs run by sysadmin
sbindir='${prefix}/bin'
## for libraries
libdir='${prefix}/bin'
## location of user executables
BINDIR='${prefix}/bin'
# Check whether --with-bindir or --without-bindir was given.
if test "${with_bindir+set}" = set; then
withval="$with_bindir"
BINDIR="$withval"
fi
## location of system admin executables
SBINDIR='${prefix}/bin'
# Check whether --with-sbindir or --without-sbindir was given.
if test "${with_sbindir+set}" = set; then
withval="$with_sbindir"
SBINDIR="$withval"
fi
## for *read-only* data files
datadir='${prefix}/bin/etc'
## for modifiable data files
localstatedir='${prefix}/expl'
## documentation
mandir='/usr/local/man'
## location of program executables
LIBEXECDIR='${prefix}/bin'
# Check whether --with-libexecdir or --without-libexecdir was given.
if test "${with_libexecdir+set}" = set; then
withval="$with_libexecdir"
LIBEXECDIR="$withval"
fi
## location of Perl modules
LIBDIR='${prefix}/bin'
# Check whether --with-libdir or --without-libdir was given.
if test "${with_libdir+set}" = set; then
withval="$with_libdir"
LIBDIR="$withval"
fi
## location of default *read-only* data files
DATADIR='${prefix}/bin/etc'
# Check whether --with-datadir or --without-datadir was given.
if test "${with_datadir+set}" = set; then
withval="$with_datadir"
DATADIR="$withval"
fi
## location of modifiable data files
EXPLDIR='${prefix}/expl'
# Check whether --with-expldir or --without-expldir was given.
if test "${with_expldir+set}" = set; then
withval="$with_expldir"
EXPLDIR="$withval"
fi
## location of documentation
MANDIR='/usr/local/man'
# Check whether --with-mandir or --without-mandir was given.
if test "${with_mandir+set}" = set; then
withval="$with_mandir"
MANDIR="$withval"
fi
## SYS V init scripts directory
INITDIR=/etc/rc.d/init.d
......@@ -847,7 +936,7 @@ fi
# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:851: checking for $ac_word" >&5
echo "configure:940: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
......@@ -877,7 +966,7 @@ if test -z "$CC"; then
# Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:881: checking for $ac_word" >&5
echo "configure:970: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
......@@ -928,7 +1017,7 @@ fi
# Extract the first word of "cl", so it can be a program name with args.
set dummy cl; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:932: checking for $ac_word" >&5
echo "configure:1021: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
......@@ -960,7 +1049,7 @@ fi
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
echo "configure:964: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
echo "configure:1053: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
......@@ -971,12 +1060,12 @@ cross_compiling=$ac_cv_prog_cc_cross
cat > conftest.$ac_ext << EOF
#line 975 "configure"
#line 1064 "configure"
#include "confdefs.h"
main(){return(0);}
EOF
if { (eval echo configure:980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:1069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_prog_cc_works=yes
# If we can't run a trivial program, we are probably using a cross compiler.
if (./conftest; exit) 2>/dev/null; then
......@@ -1002,12 +1091,12 @@ if test $ac_cv_prog_cc_works = no; then
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
echo "configure:1006: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "configure:1095: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
echo "configure:1011: checking whether we are using GNU C" >&5
echo "configure:1100: checking whether we are using GNU C" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
......@@ -1016,7 +1105,7 @@ else
yes;
#endif
EOF
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gcc=yes
else
ac_cv_prog_gcc=no
......@@ -1035,7 +1124,7 @@ ac_test_CFLAGS="${CFLAGS+set}"
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
echo "configure:1039: checking whether ${CC-cc} accepts -g" >&5
echo "configure:1128: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
......@@ -1067,7 +1156,7 @@ else
fi
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
echo "configure:1071: checking whether ${MAKE-make} sets \${MAKE}" >&5
echo "configure:1160: checking whether ${MAKE-make} sets \${MAKE}" >&5
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
......@@ -1094,7 +1183,7 @@ else
fi
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
echo "configure:1098: checking how to run the C preprocessor" >&5
echo "configure:1187: checking how to run the C preprocessor" >&5
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
CPP=
......@@ -1109,13 +1198,13 @@ else
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp.
cat > conftest.$ac_ext <<EOF
#line 1113 "configure"
#line 1202 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
......@@ -1126,13 +1215,13 @@ else
rm -rf conftest*
CPP="${CC-cc} -E -traditional-cpp"
cat > conftest.$ac_ext <<EOF
#line 1130 "configure"
#line 1219 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
......@@ -1143,13 +1232,13 @@ else
rm -rf conftest*
CPP="${CC-cc} -nologo -E"
cat > conftest.$ac_ext <<EOF
#line 1147 "configure"
#line 1236 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
......@@ -1174,9 +1263,9 @@ fi
echo "$ac_t""$CPP" 1>&6
echo $ac_n "checking for AIX""... $ac_c" 1>&6
echo "configure:1178: checking for AIX" >&5
echo "configure:1267: checking for AIX" >&5
cat > conftest.$ac_ext <<EOF
#line 1180 "configure"
#line 1269 "configure"
#include "confdefs.h"
#ifdef _AIX
yes
......@@ -1201,7 +1290,7 @@ rm -f conftest*
# Extract the first word of "perl", so it can be a program name with args.
set dummy perl; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1205: checking for $ac_word" >&5
echo "configure:1294: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
......@@ -1245,7 +1334,7 @@ fi
# Extract the first word of "openssl", so it can be a program name with args.
set dummy openssl; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1249: checking for $ac_word" >&5
echo "configure:1338: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_OPENSSL'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
......@@ -1289,7 +1378,7 @@ fi
# Extract the first word of "gencat", so it can be a program name with args.
set dummy gencat; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1293: checking for $ac_word" >&5
echo "configure:1382: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
......@@ -1333,7 +1422,7 @@ fi
# Extract the first word of "cvs2cl.pl", so it can be a program name with args.
set dummy cvs2cl.pl; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1337: checking for $ac_word" >&5
echo "configure:1426: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_CVS2CL'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
......@@ -1371,7 +1460,7 @@ fi
# Extract the first word of "sh", so it can be a program name with args.
set dummy sh; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1375: checking for $ac_word" >&5
echo "configure:1464: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_SH'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
......@@ -1451,7 +1540,7 @@ fi
echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
echo "configure:1455: checking whether to enable maintainer-specific portions of Makefiles" >&5
echo "configure:1544: checking whether to enable maintainer-specific portions of Makefiles" >&5
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
if test "${enable_maintainer_mode+set}" = set; then
enableval="$enable_maintainer_mode"
......@@ -1633,6 +1722,15 @@ s%@AUTOMAKE@%$AUTOMAKE%g
s%@AUTOHEADER@%$AUTOHEADER%g
s%@MAKEINFO@%$MAKEINFO%g
s%@SET_MAKE@%$SET_MAKE%g
s%@CONFDIR@%$CONFDIR%g
s%@CGIDIR@%$CGIDIR%g
s%@BINDIR@%$BINDIR%g
s%@SBINDIR@%$SBINDIR%g
s%@LIBEXECDIR@%$LIBEXECDIR%g
s%@LIBDIR@%$LIBDIR%g
s%@DATADIR@%$DATADIR%g
s%@EXPLDIR@%$EXPLDIR%g
s%@MANDIR@%$MANDIR%g
s%@INITDIR@%$INITDIR%g
s%@PIDDIR@%$PIDDIR%g
s%@CC@%$CC%g
......
......@@ -35,25 +35,51 @@ AC_PREFIX_DEFAULT(/home/sympa)
## Directories setup
## for main config files
sysconfdir=/etc
## for executable programs
bindir='${prefix}/bin'
## for executable programs run by sysadmin
sbindir='${prefix}/bin'
## for libraries
libdir='${prefix}/bin'
## for *read-only* data files
datadir='${prefix}/bin/etc'
## for modifiable data files
localstatedir='${prefix}/expl'
## documentation
mandir='/usr/local/man'
## location of main config files
CONFDIR='/etc'
AC_ARG_WITH(confdir, [ --with-confdir=DIR Sympa main configuration files in DIR (default /etc)], [CONFDIR="$withval"])
AC_SUBST(CONFDIR)
## location of CGIs
CGIDIR='${prefix}/bin'
AC_ARG_WITH(cgidir, [ --with-cgidir=DIR CGIs in DIR (default ${prefix}/bin)], [CGIDIR="$withval"])
AC_SUBST(CGIDIR)
## location of user executables
BINDIR='${prefix}/bin'
AC_ARG_WITH(bindir, [ --with-bindir=DIR user executables in DIR (default ${prefix}/bin). queue and bouncequeue programs will be installed in this directory. If sendmail is configured to use smrsh (check the mailer prog definition in your sendmail.cf), this should point to /etc/smrsh. This is probably the case if you are using Linux], [BINDIR="$withval"])
AC_SUBST(BINDIR)
## location of system admin executables
SBINDIR='${prefix}/bin'
AC_ARG_WITH(sbindir, [ --with-sbindir=DIR system admin executables in DIR (default ${prefix}/bin)], [SBINDIR="$withval"])
AC_SUBST(SBINDIR)
## location of program executables
LIBEXECDIR='${prefix}/bin'
AC_ARG_WITH(libexecdir, [ --with-libexecdir=DIR program executables in DIR (default ${prefix}/bin)], [LIBEXECDIR="$withval"])
AC_SUBST(LIBEXECDIR)
## location of Perl modules
LIBDIR='${prefix}/bin'
AC_ARG_WITH(libdir, [ --with-libdir=DIR Perl modules in DIR (default ${prefix}/bin)], [LIBDIR="$withval"])
AC_SUBST(LIBDIR)
## location of default *read-only* data files
DATADIR='${prefix}/bin/etc'
AC_ARG_WITH(datadir, [ --with-datadir=DIR default *read-only* data files in DIR (default ${prefix}/bin/etc)], [DATADIR="$withval"])
AC_SUBST(DATADIR)
## location of modifiable data files
EXPLDIR='${prefix}/expl'
AC_ARG_WITH(expldir, [ --with-expldir=DIR modifiable data files in DIR (default ${prefix}/expl)], [EXPLDIR="$withval"])
AC_SUBST(EXPLDIR)
## location of documentation
MANDIR='/usr/local/man'
AC_ARG_WITH(mandir, [ --with-mandir=DIR documentation in DIR (default /usr/local/man)], [MANDIR="$withval"])
AC_SUBST(MANDIR)
## SYS V init scripts directory
INITDIR=/etc/rc.d/init.d
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment