]> git.pld-linux.org Git - projects/rc-scripts.git/blame - configure.in
- helper scripts: extract messages from scripts and make pot file
[projects/rc-scripts.git] / configure.in
CommitLineData
706a60ed 1dnl $Id: configure.in,v 1.13 1999/08/31 23:12:44 wiget Exp $
7e04fe0e 2AC_INIT()
3
4PACKAGE=rc-scripts
706a60ed 5VERSION=0.0.9
dcd32750 6ALL_LINGUAS="pl"
7e04fe0e 7
8AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
9
10dnl Checks for programs.
11AC_PROG_CC
12AC_ISC_POSIX
13AC_PROG_INSTALL
14AC_PROG_LN_S
15AC_PROG_MAKE_SET
16
17pppdir='${sysconfdir}/ppp'
7e04fe0e 18sysconfigdir='${sysconfdir}/sysconfig'
16742ce6 19networkscriptsdir='${sysconfigdir}/network-scripts'
7e04fe0e 20rcdir='${sysconfdir}/rc.d'
21docdir="${prefix}/doc/$PACKAGE-$VERSION"
85a71060 22libdir="${exec_prefix}/lib"
5d3bb684 23
dcd32750 24dnl i18n support
5d3bb684
AF
25AC_PATH_PROGS(MSGMERGE, msgmerge)
26AC_PATH_PROGS(GMSGFMT, gmsgfmt msgfmt)
27
dcd32750
AF
28CATALOGS=
29POTFILES=
30for lang in $ALL_LINGUAS; do
31 CATALOGS="$CATALOGS $lang.gmo"
32 POTFILES="$POTFILES $lang.po"
33done
7e04fe0e 34
dcd32750
AF
35POTSRC=
36for src in $BASHSCRIPTS; do
37 POTSRC="$POTSRC \$(top_srcdir)/$src"
38done
39AC_ARG_WITH(localedir,
40 [ --with-localedir=PATH specify where the locale stuff should go ])
41
42if test "x$LOCALEDIR" = "x"; then
43 if test "x$with_localedir" != "x"; then
44 LOCALEDIR=$with_localedir
45 else
46 LOCALEDIR='$(prefix)/share/locale'
47 fi
48fi
49
50localedir=$LOCALEDIR
51gnulocaledir=$LOCALEDIR
52
53if test "`eval echo $sysconfdir`" = "NONE/etc"; then
54 defaultdir="/usr/local/etc"
55else
56 defaultdir="`eval echo $sysconfdir`"
57fi
58
59dnl Output
60AC_SUBST(BASHSCRIPTS)
61AC_SUBST(CATALOGS)
62AC_SUBST(POTFILES)
63AC_SUBST(POTSRC)
64AC_SUBST(localedir)
65AC_SUBST(gnulocaledir)
66
7e04fe0e 67AC_SUBST(pppdir)
68AC_SUBST(networkscriptsdir)
69AC_SUBST(sysconfigdir)
70AC_SUBST(rcdir)
71AC_SUBST(docdir)
72AC_SUBST(libdir)
73
74AC_OUTPUT(Makefile src/Makefile doc/Makefile \
75 ppp/Makefile ppp/ip-up.d/Makefile ppp/ip-down.d/Makefile \
76 sysconfig/Makefile \
77 sysconfig/network-scripts/Makefile \
ca263bb1
AF
78 sysconfig/interfaces/Makefile \
79 sysconfig/interfaces/data/Makefile \
36ddc8d8 80 rc.d/Makefile rc.d/init.d/Makefile \
dcd32750 81 po/Makefile \
7e04fe0e 82 rc-scripts.spec)
This page took 0.086278 seconds and 4 git commands to generate.