]> git.pld-linux.org Git - projects/rc-scripts.git/blobdiff - configure.ac
Version 0.4.20
[projects/rc-scripts.git] / configure.ac
index 6d897953fe59ab1a44315296fd3469ea389e001b..777631afb62f341b64cb9e6c6f2a2cc432a79707 100644 (file)
@@ -1,13 +1,14 @@
-dnl $Id$
 
-AC_INIT(["rc-scripts"], [0.4.4.3], [pld-rc-scripts@lists.pld-linux.org], [rc-scripts])
-AM_INIT_AUTOMAKE
+AC_INIT([rc-scripts], [0.4.20], [pld-devel-en@lists.pld-linux.org], [rc-scripts])
+
+dnl Do not require AUTHORS, ChangeLog, NEWS, and README to exist
+AM_INIT_AUTOMAKE([foreign])
 
 ALL_LINGUAS="pl de"
 
 echo -n "Finding shell scripts"
 SHSCRIPTS=""
-for shfile in $(find ${srcdir}/rc.d ${srcdir}/sysconfig ! -path "*/\.*/*" ! -name "*~" -type f); do
+for shfile in $(find ${srcdir}/rc.d ${srcdir}/sysconfig ${srcdir}/lib ! -path "*/\.*/*" ! -name "*~" -type f); do
     echo -n "."
     if (LC_ALL=C file ${shfile} | grep -q 'shell script'); then
        SHSCRIPTS="${SHSCRIPTS} ${shfile}"
@@ -26,16 +27,20 @@ pppdir='${sysconfdir}/ppp'
 sysconfigdir='${sysconfdir}/sysconfig'
 updir='${sysconfigdir}/interfaces/up.d'
 downdir='${sysconfigdir}/interfaces/down.d'
-networkscriptsdir='${sysconfigdir}/network-scripts'
+networkscriptsdir='${exec_prefix}/lib/${PACKAGE}'
 rcdir='${sysconfdir}/rc.d'
 initdir='${sysconfdir}/init'
 firmwaredir='${exec_prefix}/lib/firmware'
-docdir="${prefix}/doc/$PACKAGE-$VERSION"
+docdir="${prefix}/doc/${PACKAGE}-${VERSION}"
 
 dnl i18n support
 AC_PATH_PROGS(MSGMERGE, msgmerge)
 AC_PATH_PROGS(GMSGFMT, gmsgfmt msgfmt)
 
+if test -z "$MSGMERGE" || test -z "$GMSGFMT"; then
+       AC_MSG_ERROR(install gettext-devel to be able to regenerate translations)
+fi
+
 CATALOGS=
 POTFILES=
 for lang in $ALL_LINGUAS; do
@@ -68,6 +73,10 @@ else
 fi
 
 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
+if test "$PKG_CONFIG" = no; then
+       AC_MSG_ERROR(You need to install pkgconfig package)
+fi
+
 GLIBDIR=none
 AC_MSG_CHECKING([glib2])
 GLIB_LIBS="-Wl,-static `$PKG_CONFIG --libs --static glib-2.0` -Wl,-Bdynamic"
@@ -84,7 +93,7 @@ DPKG_C_GCC_ATTRIBUTE([,,],supported,[int x],[,,],ATTRIB,[Define if function attr
   DPKG_C_GCC_ATTRIBUTE(format...,format,[char *y, ...],[format(printf,1,2)],PRINTFFORMAT,[Define if printf-format argument lists a la GCC are available.]))
 
 AC_CHECK_TYPE(ptrdiff_t,int)
-AC_CHECK_HEADERS([stddef.h sys/capability.h])
+AC_CHECK_HEADERS([stddef.h sys/capability.h getopt.h])
 
 dnl Output
 AC_SUBST(BASHSCRIPTS)
@@ -93,7 +102,7 @@ AC_SUBST(POTFILES)
 AC_SUBST(POTSRC)
 AC_SUBST(localedir)
 AC_SUBST(gnulocaledir)
-                       
+
 AC_SUBST(pppdir)
 AC_SUBST(networkscriptsdir)
 AC_SUBST(sysconfigdir)
@@ -184,9 +193,10 @@ AH_BOTTOM([
 #endif
 ])
 
-AM_CONFIG_HEADER(src/config.h)
+AC_CONFIG_HEADERS(src/config.h)
 AC_CONFIG_FILES([Makefile \
        src/Makefile \
+       lib/Makefile \
        doc/Makefile \
        man/Makefile \
        man/de/Makefile \
@@ -200,7 +210,6 @@ AC_CONFIG_FILES([Makefile \
        sysconfig/Makefile \
        sysconfig/cpusets/Makefile \
        sysconfig/hwprofiles/Makefile \
-       sysconfig/network-scripts/Makefile \
        sysconfig/interfaces/Makefile \
        sysconfig/interfaces/data/Makefile \
        sysconfig/interfaces/up.d/Makefile \
@@ -217,6 +226,5 @@ AC_CONFIG_FILES([Makefile \
        sysconfig/interfaces/down.d/tnl/Makefile \
        rc.d/Makefile rc.d/init.d/Makefile \
        po/Makefile \
-       init/Makefile \
        ])
 AC_OUTPUT
This page took 0.051167 seconds and 4 git commands to generate.