]> git.pld-linux.org Git - projects/rc-scripts.git/blame - configure.ac
Updated for 0.4.0.7 release.
[projects/rc-scripts.git] / configure.ac
CommitLineData
9ccfa537 1dnl $Id$
7e04fe0e 2
8ba57722 3AC_INIT(["rc-scripts"], [0.4.0.7], [pld-rc-scripts@pld-linux.org], [rc-scripts])
bea191b3 4AM_INIT_AUTOMAKE
2c883f5e 5
05a11ced 6ALL_LINGUAS="pl de"
763b88c2
AM
7
8echo -n "Finding shell scripts"
9SHSCRIPTS=""
27c70f0e 10for shfile in $(find ${srcdir}/rc.d ${srcdir}/sysconfig -type f); do
763b88c2 11 echo -n "."
bea191b3 12 if (LANG=C file ${shfile} | grep -q 'shell script'); then
763b88c2
AM
13 SHSCRIPTS="${SHSCRIPTS} ${shfile}"
14 fi
15done
16echo "done"
7e04fe0e 17
18dnl Checks for programs.
19AC_PROG_CC
20AC_ISC_POSIX
21AC_PROG_INSTALL
22AC_PROG_LN_S
23AC_PROG_MAKE_SET
24
25pppdir='${sysconfdir}/ppp'
7e04fe0e 26sysconfigdir='${sysconfdir}/sysconfig'
8dbd5412 27updir='${sysconfigdir}/interfaces/up.d'
28downdir='${sysconfigdir}/interfaces/down.d'
16742ce6 29networkscriptsdir='${sysconfigdir}/network-scripts'
7e04fe0e 30rcdir='${sysconfdir}/rc.d'
31docdir="${prefix}/doc/$PACKAGE-$VERSION"
5d3bb684 32
dcd32750 33dnl i18n support
5d3bb684
AF
34AC_PATH_PROGS(MSGMERGE, msgmerge)
35AC_PATH_PROGS(GMSGFMT, gmsgfmt msgfmt)
36
dcd32750
AF
37CATALOGS=
38POTFILES=
39for lang in $ALL_LINGUAS; do
40 CATALOGS="$CATALOGS $lang.gmo"
41 POTFILES="$POTFILES $lang.po"
42done
7e04fe0e 43
dcd32750 44POTSRC=
2c883f5e 45for src in $SHSCRIPTS; do
dcd32750
AF
46 POTSRC="$POTSRC \$(top_srcdir)/$src"
47done
48AC_ARG_WITH(localedir,
49 [ --with-localedir=PATH specify where the locale stuff should go ])
50
51if test "x$LOCALEDIR" = "x"; then
52 if test "x$with_localedir" != "x"; then
53 LOCALEDIR=$with_localedir
54 else
55 LOCALEDIR='$(prefix)/share/locale'
56 fi
57fi
58
59localedir=$LOCALEDIR
60gnulocaledir=$LOCALEDIR
61
62if test "`eval echo $sysconfdir`" = "NONE/etc"; then
63 defaultdir="/usr/local/etc"
64else
65 defaultdir="`eval echo $sysconfdir`"
66fi
67
b8b29800
AM
68AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
69GLIBDIR=none
70AC_MSG_CHECKING([glib dir])
71GLIBDIR="`$PKG_CONFIG --variable=libdir glib`"
72AC_MSG_RESULT([$GLIBDIR])
73
dcd32750
AF
74dnl Output
75AC_SUBST(BASHSCRIPTS)
76AC_SUBST(CATALOGS)
77AC_SUBST(POTFILES)
78AC_SUBST(POTSRC)
79AC_SUBST(localedir)
80AC_SUBST(gnulocaledir)
81
7e04fe0e 82AC_SUBST(pppdir)
83AC_SUBST(networkscriptsdir)
84AC_SUBST(sysconfigdir)
8dbd5412 85AC_SUBST(updir)
86AC_SUBST(downdir)
7e04fe0e 87AC_SUBST(rcdir)
88AC_SUBST(docdir)
b8b29800 89AC_SUBST(GLIBDIR)
7e04fe0e 90
763b88c2 91AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile \
8dbd5412 92 ppp/Makefile \
763b88c2 93 isapnp/Makefile \
7e04fe0e 94 sysconfig/Makefile \
763b88c2 95 sysconfig/hwprofiles/Makefile \
7e04fe0e 96 sysconfig/network-scripts/Makefile \
ca263bb1
AF
97 sysconfig/interfaces/Makefile \
98 sysconfig/interfaces/data/Makefile \
8dbd5412 99 sysconfig/interfaces/up.d/Makefile \
100 sysconfig/interfaces/up.d/all/Makefile \
101 sysconfig/interfaces/up.d/ip/Makefile \
102 sysconfig/interfaces/up.d/ipx/Makefile \
103 sysconfig/interfaces/up.d/ppp/Makefile \
104 sysconfig/interfaces/up.d/tnl/Makefile \
105 sysconfig/interfaces/down.d/Makefile \
106 sysconfig/interfaces/down.d/all/Makefile \
107 sysconfig/interfaces/down.d/ip/Makefile \
108 sysconfig/interfaces/down.d/ipx/Makefile \
109 sysconfig/interfaces/down.d/ppp/Makefile \
110 sysconfig/interfaces/down.d/tnl/Makefile \
36ddc8d8 111 rc.d/Makefile rc.d/init.d/Makefile \
dcd32750 112 po/Makefile \
763b88c2
AM
113 rc-scripts.spec])
114AC_OUTPUT
This page took 0.068527 seconds and 4 git commands to generate.