]>
Commit | Line | Data |
---|---|---|
b23c4fa6 | 1 | dnl $Id: configure.in,v 1.36 2000/11/17 14:47:43 baggins Exp $ |
7e04fe0e | 2 | AC_INIT() |
3 | ||
4 | PACKAGE=rc-scripts | |
b23c4fa6 | 5 | VERSION=0.2.9 |
d1a2cad3 | 6 | ALL_LINGUAS="pl de" |
7e04fe0e | 7 | |
2c883f5e AF |
8 | SHSCRIPTS="rc.d/rc \ |
9 | rc.d/init.d/allowlogin \ | |
10 | rc.d/init.d/functions \ | |
11 | rc.d/init.d/functions.network \ | |
2c883f5e | 12 | rc.d/init.d/killall \ |
2c883f5e | 13 | rc.d/init.d/network \ |
2c883f5e | 14 | rc.d/init.d/random \ |
2c883f5e | 15 | rc.d/init.d/single \ |
f5e07d24 | 16 | rc.d/init.d/timezone \ |
2c883f5e AF |
17 | rc.d/rc \ |
18 | rc.d/rc.init \ | |
19 | rc.d/rc.local \ | |
59814124 | 20 | rc.d/rc.shutdown \ |
2c883f5e AF |
21 | rc.d/rc.sysinit" |
22 | ||
7e04fe0e | 23 | AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define) |
24 | ||
25 | dnl Checks for programs. | |
26 | AC_PROG_CC | |
27 | AC_ISC_POSIX | |
28 | AC_PROG_INSTALL | |
29 | AC_PROG_LN_S | |
30 | AC_PROG_MAKE_SET | |
31 | ||
32 | pppdir='${sysconfdir}/ppp' | |
7e04fe0e | 33 | sysconfigdir='${sysconfdir}/sysconfig' |
8dbd5412 | 34 | updir='${sysconfigdir}/interfaces/up.d' |
35 | downdir='${sysconfigdir}/interfaces/down.d' | |
16742ce6 | 36 | networkscriptsdir='${sysconfigdir}/network-scripts' |
7e04fe0e | 37 | rcdir='${sysconfdir}/rc.d' |
38 | docdir="${prefix}/doc/$PACKAGE-$VERSION" | |
85a71060 | 39 | libdir="${exec_prefix}/lib" |
5d3bb684 | 40 | |
dcd32750 | 41 | dnl i18n support |
5d3bb684 AF |
42 | AC_PATH_PROGS(MSGMERGE, msgmerge) |
43 | AC_PATH_PROGS(GMSGFMT, gmsgfmt msgfmt) | |
44 | ||
dcd32750 AF |
45 | CATALOGS= |
46 | POTFILES= | |
47 | for lang in $ALL_LINGUAS; do | |
48 | CATALOGS="$CATALOGS $lang.gmo" | |
49 | POTFILES="$POTFILES $lang.po" | |
50 | done | |
7e04fe0e | 51 | |
dcd32750 | 52 | POTSRC= |
2c883f5e | 53 | for src in $SHSCRIPTS; do |
dcd32750 AF |
54 | POTSRC="$POTSRC \$(top_srcdir)/$src" |
55 | done | |
56 | AC_ARG_WITH(localedir, | |
57 | [ --with-localedir=PATH specify where the locale stuff should go ]) | |
58 | ||
59 | if test "x$LOCALEDIR" = "x"; then | |
60 | if test "x$with_localedir" != "x"; then | |
61 | LOCALEDIR=$with_localedir | |
62 | else | |
63 | LOCALEDIR='$(prefix)/share/locale' | |
64 | fi | |
65 | fi | |
66 | ||
67 | localedir=$LOCALEDIR | |
68 | gnulocaledir=$LOCALEDIR | |
69 | ||
70 | if test "`eval echo $sysconfdir`" = "NONE/etc"; then | |
71 | defaultdir="/usr/local/etc" | |
72 | else | |
73 | defaultdir="`eval echo $sysconfdir`" | |
74 | fi | |
75 | ||
76 | dnl Output | |
77 | AC_SUBST(BASHSCRIPTS) | |
78 | AC_SUBST(CATALOGS) | |
79 | AC_SUBST(POTFILES) | |
80 | AC_SUBST(POTSRC) | |
81 | AC_SUBST(localedir) | |
82 | AC_SUBST(gnulocaledir) | |
83 | ||
7e04fe0e | 84 | AC_SUBST(pppdir) |
85 | AC_SUBST(networkscriptsdir) | |
86 | AC_SUBST(sysconfigdir) | |
8dbd5412 | 87 | AC_SUBST(updir) |
88 | AC_SUBST(downdir) | |
7e04fe0e | 89 | AC_SUBST(rcdir) |
90 | AC_SUBST(docdir) | |
91 | AC_SUBST(libdir) | |
92 | ||
93 | AC_OUTPUT(Makefile src/Makefile doc/Makefile \ | |
8dbd5412 | 94 | ppp/Makefile \ |
7e04fe0e | 95 | sysconfig/Makefile \ |
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 \ |
7e04fe0e | 113 | rc-scripts.spec) |