5 AM_INIT_AUTOMAKE(popt, 1.7)
6 AM_CONFIG_HEADER(config.h)
8 ALL_LINGUAS="cs da de es eu_ES fi fr gl hu id is it ja ko no pl pt pt_BR ro ru sk sl sr sv tr uk wa zh zh_CN.GB2312"
21 if test "X$CC" = Xgcc; then
22 CFLAGS="-Wall $CFLAGS"
31 *-*-solaris*) LIBS="$LIBS -L$l -R $l $*";;
32 *) LIBS="$LIBS -L$l $*";;
37 dnl if CC is gcc, we can rebuild the dependencies (since the depend rule
38 dnl requires gcc). If it's not, don't rebuild dependencies -- use what was
41 if test X"$GCC" = "Xyes" ; then
42 TARGET="depend allprogs"
46 # let the Makefile know that we're done with `depend', since we don't
47 # have gcc we're not going to rebuild our dependencies at all.
53 AC_CHECK_HEADERS(alloca.h float.h libintl.h mcheck.h unistd.h)
54 AC_MSG_CHECKING(for /usr/ucblib in LIBS)
55 if test -d /usr/ucblib ; then
56 if test "$build" = "mips-sni-sysv4" ; then
57 addlib /usr/ccs/lib -lc
69 AC_MSG_CHECKING(for GNU xgettext)
70 xgettext --version 2>&1 | grep 'GNU gettext' >/dev/null 2>&1 || AC_MSG_ERROR([
71 *** GNU gettext is required. The latest version
72 *** is always available from ftp://ftp.gnu.org/gnu/gettext/.])
76 AC_CHECK_FUNCS(strerror mtrace getuid geteuid)
77 AC_CHECK_FUNC(setreuid, [], [
78 AC_CHECK_LIB(ucb, setreuid, [if echo $LIBS | grep -- -lucb >/dev/null ;then :; else LIBS="$LIBS -lc -lucb" USEUCB=y;fi])
83 POPT_SOURCE_PATH="`pwd`"
84 AC_DEFINE_UNQUOTED(POPT_SOURCE_PATH, "$POPT_SOURCE_PATH",
85 [Full path to popt top_sourcedir.])
86 AC_SUBST(POPT_SOURCE_PATH)
88 AC_OUTPUT([Doxyfile Makefile intl/Makefile po/Makefile.in])