source: projects/synaptic/trunk/aclocal.m4 @ 280

Revision 280, 72.7 KB checked in by yasumichi, 15 years ago (diff)

first import

RevLine 
[280]1# generated automatically by aclocal 1.7.9 -*- Autoconf -*-
2
3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
4# Free Software Foundation, Inc.
5# This file is free software; the Free Software Foundation
6# gives unlimited permission to copy and/or distribute it,
7# with or without modifications, as long as this notice is preserved.
8
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12# PARTICULAR PURPOSE.
13
14dnl aclocal.m4 generated automatically by aclocal 1.2f
15
16dnl Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
17dnl This Makefile.in is free software; the Free Software Foundation
18dnl gives unlimited permission to copy and/or distribute it,
19dnl with or without modifications, as long as this notice is preserved.
20
21dnl This program is distributed in the hope that it will be useful,
22dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
23dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
24dnl PARTICULAR PURPOSE.
25
26
27
28# progtest.m4 from gettext 0.32
29# Search path for a program which passes the given test.
30# Ulrich Drepper <drepper@cygnus.com>, 1996.
31#
32# This file file be copied and used freely without restrictions.  It can
33# be used in projects which are not available under the GNU Public License
34# but which still want to provide support for the GNU gettext functionality.
35# Please note that the actual code is *not* freely available.
36
37# serial 1
38
39dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
40dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
41AC_DEFUN(AM_PATH_PROG_WITH_TEST,
42[# Extract the first word of "$2", so it can be a program name with args.
43set dummy $2; ac_word=[$]2
44AC_MSG_CHECKING([for $ac_word])
45AC_CACHE_VAL(ac_cv_path_$1,
46[case "[$]$1" in
47  /*)
48  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
49  ;;
50  *)
51  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
52  for ac_dir in ifelse([$5], , $PATH, [$5]); do
53    test -z "$ac_dir" && ac_dir=.
54    if test -f $ac_dir/$ac_word; then
55      if [$3]; then
56        ac_cv_path_$1="$ac_dir/$ac_word"
57        break
58      fi
59    fi
60  done
61  IFS="$ac_save_ifs"
62dnl If no 4th arg is given, leave the cache variable unset,
63dnl so AC_PATH_PROGS will keep looking.
64ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
65])dnl
66  ;;
67esac])dnl
68$1="$ac_cv_path_$1"
69if test -n "[$]$1"; then
70  AC_MSG_RESULT([$]$1)
71else
72  AC_MSG_RESULT(no)
73fi
74AC_SUBST($1)dnl
75])
76
77
78# lcmessage.m4 from gettext 0.32
79# Check whether LC_MESSAGES is available in <locale.h>.
80# Ulrich Drepper <drepper@cygnus.com>, 1995.
81#
82# This file file be copied and used freely without restrictions.  It can
83# be used in projects which are not available under the GNU Public License
84# but which still want to provide support for the GNU gettext functionality.
85# Please note that the actual code is *not* freely available.
86
87# serial 1
88
89AC_DEFUN(AM_LC_MESSAGES,
90  [if test $ac_cv_header_locale_h = yes; then
91    AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
92      [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
93       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
94    if test $am_cv_val_LC_MESSAGES = yes; then
95      AC_DEFINE(HAVE_LC_MESSAGES)
96    fi
97  fi])
98
99
100
101# gettext.m4 from gettext 0.32
102# Macro to add for using GNU gettext.
103# Ulrich Drepper <drepper@cygnus.com>, 1995.
104#
105# This file file be copied and used freely without restrictions.  It can
106# be used in projects which are not available under the GNU Public License
107# but which still want to provide support for the GNU gettext functionality.
108# Please note that the actual code is *not* freely available.
109
110# serial 3
111
112AC_DEFUN(AM_WITH_NLS,
113  [AC_MSG_CHECKING([whether NLS is requested])
114    dnl Default is enabled NLS
115    AC_ARG_ENABLE(nls,
116      [  --disable-nls           do not use Native Language Support],
117      USE_NLS=$enableval, USE_NLS=yes)
118    AC_MSG_RESULT($USE_NLS)
119    AC_SUBST(USE_NLS)
120
121    USE_INCLUDED_LIBINTL=no
122
123    dnl If we use NLS figure out what method
124    if test "$USE_NLS" = "yes"; then
125      AC_DEFINE(ENABLE_NLS)
126      AC_MSG_CHECKING([whether included gettext is requested])
127      AC_ARG_WITH(included-gettext,
128        [  --with-included-gettext use the GNU gettext library included here],
129        nls_cv_force_use_gnu_gettext=$withval,
130        nls_cv_force_use_gnu_gettext=no)
131      AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
132
133      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
134      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
135        dnl User does not insist on using GNU NLS library.  Figure out what
136        dnl to use.  If gettext or catgets are available (in this order) we
137        dnl use this.  Else we have to fall back to GNU NLS library.
138        dnl catgets is only used if permitted by option --with-catgets.
139        nls_cv_header_intl=
140        nls_cv_header_libgt=
141        CATOBJEXT=NONE
142
143        AC_CHECK_HEADER(libintl.h,
144          [AC_CACHE_CHECK([for gettext in libc], gt_cv_func_gettext_libc,
145            [AC_TRY_LINK([#include <libintl.h>], [return (int) gettext ("")],
146               gt_cv_func_gettext_libc=yes, gt_cv_func_gettext_libc=no)])
147
148           if test "$gt_cv_func_gettext_libc" != "yes"; then
149             AC_CHECK_LIB(intl, bindtextdomain,
150               [AC_CACHE_CHECK([for gettext in libintl],
151                 gt_cv_func_gettext_libintl,
152                 [AC_TRY_LINK([], [return (int) gettext ("")],
153                 gt_cv_func_gettext_libintl=yes,
154                 gt_cv_func_gettext_libintl=no)])])
155           fi
156
157           if test "$gt_cv_func_gettext_libc" = "yes" \
158              || test "$gt_cv_func_gettext_libintl" = "yes"; then
159              AC_DEFINE(HAVE_GETTEXT)
160              AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
161                [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
162              if test "$MSGFMT" != "no"; then
163                AC_CHECK_FUNCS(dcgettext)
164                AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
165                AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
166                  [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
167                AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
168                               return _nl_msg_cat_cntr],
169                  [CATOBJEXT=.gmo
170                   DATADIRNAME=share],
171                  [CATOBJEXT=.mo
172                   DATADIRNAME=lib])
173                INSTOBJEXT=.mo
174              fi
175            fi
176        ])
177
178        if test "$CATOBJEXT" = "NONE"; then
179          AC_MSG_CHECKING([whether catgets can be used])
180          AC_ARG_WITH(catgets,
181            [  --with-catgets          use catgets functions if available],
182            nls_cv_use_catgets=$withval, nls_cv_use_catgets=no)
183          AC_MSG_RESULT($nls_cv_use_catgets)
184
185          if test "$nls_cv_use_catgets" = "yes"; then
186            dnl No gettext in C library.  Try catgets next.
187            AC_CHECK_LIB(i, main)
188            AC_CHECK_FUNC(catgets,
189              [AC_DEFINE(HAVE_CATGETS)
190               INTLOBJS="\$(CATOBJS)"
191               AC_PATH_PROG(GENCAT, gencat, no)dnl
192               if test "$GENCAT" != "no"; then
193                 AC_PATH_PROG(GMSGFMT, gmsgfmt, no)
194                 if test "$GMSGFMT" = "no"; then
195                   AM_PATH_PROG_WITH_TEST(GMSGFMT, msgfmt,
196                    [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)
197                 fi
198                 AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
199                   [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
200                 USE_INCLUDED_LIBINTL=yes
201                 CATOBJEXT=.cat
202                 INSTOBJEXT=.cat
203                 DATADIRNAME=lib
204                 INTLDEPS='$(top_builddir)/intl/libintl.a'
205                 INTLLIBS=$INTLDEPS
206                 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
207                 nls_cv_header_intl=intl/libintl.h
208                 nls_cv_header_libgt=intl/libgettext.h
209               fi])
210          fi
211        fi
212
213        if test "$CATOBJEXT" = "NONE"; then
214          dnl Neither gettext nor catgets in included in the C library.
215          dnl Fall back on GNU gettext library.
216          nls_cv_use_gnu_gettext=yes
217        fi
218      fi
219
220      if test "$nls_cv_use_gnu_gettext" = "yes"; then
221        dnl Mark actions used to generate GNU NLS library.
222        INTLOBJS="\$(GETTOBJS)"
223        AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
224          [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], msgfmt)
225        AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
226        AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
227          [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
228        AC_SUBST(MSGFMT)
229        USE_INCLUDED_LIBINTL=yes
230        CATOBJEXT=.gmo
231        INSTOBJEXT=.mo
232        DATADIRNAME=share
233        INTLDEPS='$(top_builddir)/intl/libintl.a'
234        INTLLIBS=$INTLDEPS
235        LIBS=`echo $LIBS | sed -e 's/-lintl//'`
236        nls_cv_header_intl=intl/libintl.h
237        nls_cv_header_libgt=intl/libgettext.h
238      fi
239
240      dnl Test whether we really found GNU xgettext.
241      if test "$XGETTEXT" != ":"; then
242        dnl If it is no GNU xgettext we define it as : so that the
243        dnl Makefiles still can work.
244        if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
245          : ;
246        else
247          AC_MSG_RESULT(
248            [found xgettext programs is not GNU xgettext; ignore it])
249          XGETTEXT=":"
250        fi
251      fi
252
253      # We need to process the po/ directory.
254      POSUB=po
255    else
256      DATADIRNAME=share
257      nls_cv_header_intl=intl/libintl.h
258      nls_cv_header_libgt=intl/libgettext.h
259    fi
260
261    # If this is used in GNU gettext we have to set USE_NLS to `yes'
262    # because some of the sources are only built for this goal.
263    if test "$PACKAGE" = gettext; then
264      USE_NLS=yes
265      USE_INCLUDED_LIBINTL=yes
266    fi
267
268    dnl These rules are solely for the distribution goal.  While doing this
269    dnl we only have to keep exactly one list of the available catalogs
270    dnl in configure.in.
271    for lang in $ALL_LINGUAS; do
272      GMOFILES="$GMOFILES $lang.gmo"
273      POFILES="$POFILES $lang.po"
274    done
275
276    dnl Make all variables we use known to autoconf.
277    AC_SUBST(USE_INCLUDED_LIBINTL)
278    AC_SUBST(CATALOGS)
279    AC_SUBST(CATOBJEXT)
280    AC_SUBST(DATADIRNAME)
281    AC_SUBST(GMOFILES)
282    AC_SUBST(INSTOBJEXT)
283    AC_SUBST(INTLDEPS)
284    AC_SUBST(INTLLIBS)
285    AC_SUBST(INTLOBJS)
286    AC_SUBST(POFILES)
287    AC_SUBST(POSUB)
288  ])
289
290AC_DEFUN(AM_GNU_GETTEXT,
291  [AC_REQUIRE([AC_PROG_MAKE_SET])dnl
292   AC_REQUIRE([AC_PROG_CC])dnl
293   AC_REQUIRE([AC_PROG_RANLIB])dnl
294   AC_REQUIRE([AC_ISC_POSIX])dnl
295   AC_REQUIRE([AC_HEADER_STDC])dnl
296   AC_REQUIRE([AC_C_CONST])dnl
297   AC_REQUIRE([AC_C_INLINE])dnl
298   AC_REQUIRE([AC_TYPE_OFF_T])dnl
299   AC_REQUIRE([AC_TYPE_SIZE_T])dnl
300   AC_REQUIRE([AC_FUNC_ALLOCA])dnl
301   AC_REQUIRE([AC_FUNC_MMAP])dnl
302
303   AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h string.h \
304unistd.h values.h sys/param.h])
305   AC_CHECK_FUNCS([getcwd munmap putenv setenv setlocale strchr strcasecmp \
306__argz_count __argz_stringify __argz_next])
307
308   if test "${ac_cv_func_stpcpy+set}" != "set"; then
309     AC_CHECK_FUNCS(stpcpy)
310   fi
311   if test "${ac_cv_func_stpcpy}" = "yes"; then
312     AC_DEFINE(HAVE_STPCPY)
313   fi
314
315   AM_LC_MESSAGES
316   AM_WITH_NLS
317
318   if test "x$CATOBJEXT" != "x"; then
319     if test "x$ALL_LINGUAS" = "x"; then
320       LINGUAS=
321     else
322       AC_MSG_CHECKING(for catalogs to be installed)
323       NEW_LINGUAS=
324       for lang in ${LINGUAS=$ALL_LINGUAS}; do
325         case "$ALL_LINGUAS" in
326          *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
327         esac
328       done
329       LINGUAS=$NEW_LINGUAS
330       AC_MSG_RESULT($LINGUAS)
331     fi
332
333     dnl Construct list of names of catalog files to be constructed.
334     if test -n "$LINGUAS"; then
335       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
336     fi
337   fi
338
339   dnl The reference to <locale.h> in the installed <libintl.h> file
340   dnl must be resolved because we cannot expect the users of this
341   dnl to define HAVE_LOCALE_H.
342   if test $ac_cv_header_locale_h = yes; then
343     INCLUDE_LOCALE_H="#include <locale.h>"
344   else
345     INCLUDE_LOCALE_H="\
346/* The system does not provide the header <locale.h>.  Take care yourself.  */"
347   fi
348   AC_SUBST(INCLUDE_LOCALE_H)
349
350   dnl Determine which catalog format we have (if any is needed)
351   dnl For now we know about two different formats:
352   dnl   Linux libc-5 and the normal X/Open format
353   test -d intl || mkdir intl
354   if test "$CATOBJEXT" = ".cat"; then
355     AC_CHECK_HEADER(linux/version.h, msgformat=linux, msgformat=xopen)
356
357     dnl Transform the SED scripts while copying because some dumb SEDs
358     dnl cannot handle comments.
359     sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
360   fi
361   dnl po2tbl.sed is always needed.
362   sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
363     $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
364
365   dnl In the intl/Makefile.in we have a special dependency which makes
366   dnl only sense for gettext.  We comment this out for non-gettext
367   dnl packages.
368   if test "$PACKAGE" = "gettext"; then
369     GT_NO="#NO#"
370     GT_YES=
371   else
372     GT_NO=
373     GT_YES="#YES#"
374   fi
375   AC_SUBST(GT_NO)
376   AC_SUBST(GT_YES)
377
378   dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
379   dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
380   dnl Try to locate is.
381   MKINSTALLDIRS=
382   if test -z "$MKINSTALLDIRS"; then
383     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
384   fi
385   AC_SUBST(MKINSTALLDIRS)
386
387   dnl *** For now the libtool support in intl/Makefile is not for real.
388   l=
389   AC_SUBST(l)
390
391   dnl Generate list of files to be processed by xgettext which will
392   dnl be included in po/Makefile.
393   test -d po || mkdir po
394   if test "x$srcdir" != "x."; then
395     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
396       posrcprefix="$srcdir/"
397     else
398       posrcprefix="../$srcdir/"
399     fi
400   else
401     posrcprefix="../"
402   fi
403   rm -f po/POTFILES
404   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
405        < $srcdir/po/POTFILES.in > po/POTFILES
406  ])
407
408
409# isc-posix.m4 serial 2 (gettext-0.11.2)
410dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
411dnl This file is free software, distributed under the terms of the GNU
412dnl General Public License.  As a special exception to the GNU General
413dnl Public License, this file may be distributed as part of a program
414dnl that contains a configuration script generated by Autoconf, under
415dnl the same distribution terms as the rest of that program.
416
417# This file is not needed with autoconf-2.53 and newer.  Remove it in 2005.
418
419# This test replaces the one in autoconf.
420# Currently this macro should have the same name as the autoconf macro
421# because gettext's gettext.m4 (distributed in the automake package)
422# still uses it.  Otherwise, the use in gettext.m4 makes autoheader
423# give these diagnostics:
424#   configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
425#   configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
426
427undefine([AC_ISC_POSIX])
428
429AC_DEFUN([AC_ISC_POSIX],
430  [
431    dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
432    AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
433  ]
434)
435
436# Do all the work for Automake.                            -*- Autoconf -*-
437
438# This macro actually does too much some checks are only needed if
439# your package does certain things.  But this isn't really a big deal.
440
441# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
442# Free Software Foundation, Inc.
443
444# This program is free software; you can redistribute it and/or modify
445# it under the terms of the GNU General Public License as published by
446# the Free Software Foundation; either version 2, or (at your option)
447# any later version.
448
449# This program is distributed in the hope that it will be useful,
450# but WITHOUT ANY WARRANTY; without even the implied warranty of
451# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
452# GNU General Public License for more details.
453
454# You should have received a copy of the GNU General Public License
455# along with this program; if not, write to the Free Software
456# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
457# 02111-1307, USA.
458
459# serial 10
460
461AC_PREREQ([2.54])
462
463# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
464# the ones we care about.
465m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
466
467# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
468# AM_INIT_AUTOMAKE([OPTIONS])
469# -----------------------------------------------
470# The call with PACKAGE and VERSION arguments is the old style
471# call (pre autoconf-2.50), which is being phased out.  PACKAGE
472# and VERSION should now be passed to AC_INIT and removed from
473# the call to AM_INIT_AUTOMAKE.
474# We support both call styles for the transition.  After
475# the next Automake release, Autoconf can make the AC_INIT
476# arguments mandatory, and then we can depend on a new Autoconf
477# release and drop the old call support.
478AC_DEFUN([AM_INIT_AUTOMAKE],
479[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
480 AC_REQUIRE([AC_PROG_INSTALL])dnl
481# test to see if srcdir already configured
482if test "`cd $srcdir && pwd`" != "`pwd`" &&
483   test -f $srcdir/config.status; then
484  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
485fi
486
487# test whether we have cygpath
488if test -z "$CYGPATH_W"; then
489  if (cygpath --version) >/dev/null 2>/dev/null; then
490    CYGPATH_W='cygpath -w'
491  else
492    CYGPATH_W=echo
493  fi
494fi
495AC_SUBST([CYGPATH_W])
496
497# Define the identity of the package.
498dnl Distinguish between old-style and new-style calls.
499m4_ifval([$2],
500[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
501 AC_SUBST([PACKAGE], [$1])dnl
502 AC_SUBST([VERSION], [$2])],
503[_AM_SET_OPTIONS([$1])dnl
504 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
505 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
506
507_AM_IF_OPTION([no-define],,
508[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
509 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
510
511# Some tools Automake needs.
512AC_REQUIRE([AM_SANITY_CHECK])dnl
513AC_REQUIRE([AC_ARG_PROGRAM])dnl
514AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
515AM_MISSING_PROG(AUTOCONF, autoconf)
516AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
517AM_MISSING_PROG(AUTOHEADER, autoheader)
518AM_MISSING_PROG(MAKEINFO, makeinfo)
519AM_MISSING_PROG(AMTAR, tar)
520AM_PROG_INSTALL_SH
521AM_PROG_INSTALL_STRIP
522# We need awk for the "check" target.  The system "awk" is bad on
523# some platforms.
524AC_REQUIRE([AC_PROG_AWK])dnl
525AC_REQUIRE([AC_PROG_MAKE_SET])dnl
526AC_REQUIRE([AM_SET_LEADING_DOT])dnl
527
528_AM_IF_OPTION([no-dependencies],,
529[AC_PROVIDE_IFELSE([AC_PROG_CC],
530                  [_AM_DEPENDENCIES(CC)],
531                  [define([AC_PROG_CC],
532                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
533AC_PROVIDE_IFELSE([AC_PROG_CXX],
534                  [_AM_DEPENDENCIES(CXX)],
535                  [define([AC_PROG_CXX],
536                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
537])
538])
539
540
541# When config.status generates a header, we must update the stamp-h file.
542# This file resides in the same directory as the config header
543# that is generated.  The stamp files are numbered to have different names.
544
545# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
546# loop where config.status creates the headers, so we can generate
547# our stamp files there.
548AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
549[# Compute $1's index in $config_headers.
550_am_stamp_count=1
551for _am_header in $config_headers :; do
552  case $_am_header in
553    $1 | $1:* )
554      break ;;
555    * )
556      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
557  esac
558done
559echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
560
561# Copyright 2002  Free Software Foundation, Inc.
562
563# This program is free software; you can redistribute it and/or modify
564# it under the terms of the GNU General Public License as published by
565# the Free Software Foundation; either version 2, or (at your option)
566# any later version.
567
568# This program is distributed in the hope that it will be useful,
569# but WITHOUT ANY WARRANTY; without even the implied warranty of
570# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
571# GNU General Public License for more details.
572
573# You should have received a copy of the GNU General Public License
574# along with this program; if not, write to the Free Software
575# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
576
577# AM_AUTOMAKE_VERSION(VERSION)
578# ----------------------------
579# Automake X.Y traces this macro to ensure aclocal.m4 has been
580# generated from the m4 files accompanying Automake X.Y.
581AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
582
583# AM_SET_CURRENT_AUTOMAKE_VERSION
584# -------------------------------
585# Call AM_AUTOMAKE_VERSION so it can be traced.
586# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
587AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
588         [AM_AUTOMAKE_VERSION([1.7.9])])
589
590# Helper functions for option handling.                    -*- Autoconf -*-
591
592# Copyright 2001, 2002  Free Software Foundation, Inc.
593
594# This program is free software; you can redistribute it and/or modify
595# it under the terms of the GNU General Public License as published by
596# the Free Software Foundation; either version 2, or (at your option)
597# any later version.
598
599# This program is distributed in the hope that it will be useful,
600# but WITHOUT ANY WARRANTY; without even the implied warranty of
601# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
602# GNU General Public License for more details.
603
604# You should have received a copy of the GNU General Public License
605# along with this program; if not, write to the Free Software
606# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
607# 02111-1307, USA.
608
609# serial 2
610
611# _AM_MANGLE_OPTION(NAME)
612# -----------------------
613AC_DEFUN([_AM_MANGLE_OPTION],
614[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
615
616# _AM_SET_OPTION(NAME)
617# ------------------------------
618# Set option NAME.  Presently that only means defining a flag for this option.
619AC_DEFUN([_AM_SET_OPTION],
620[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
621
622# _AM_SET_OPTIONS(OPTIONS)
623# ----------------------------------
624# OPTIONS is a space-separated list of Automake options.
625AC_DEFUN([_AM_SET_OPTIONS],
626[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
627
628# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
629# -------------------------------------------
630# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
631AC_DEFUN([_AM_IF_OPTION],
632[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
633
634#
635# Check to make sure that the build environment is sane.
636#
637
638# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
639
640# This program is free software; you can redistribute it and/or modify
641# it under the terms of the GNU General Public License as published by
642# the Free Software Foundation; either version 2, or (at your option)
643# any later version.
644
645# This program is distributed in the hope that it will be useful,
646# but WITHOUT ANY WARRANTY; without even the implied warranty of
647# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
648# GNU General Public License for more details.
649
650# You should have received a copy of the GNU General Public License
651# along with this program; if not, write to the Free Software
652# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
653# 02111-1307, USA.
654
655# serial 3
656
657# AM_SANITY_CHECK
658# ---------------
659AC_DEFUN([AM_SANITY_CHECK],
660[AC_MSG_CHECKING([whether build environment is sane])
661# Just in case
662sleep 1
663echo timestamp > conftest.file
664# Do `set' in a subshell so we don't clobber the current shell's
665# arguments.  Must try -L first in case configure is actually a
666# symlink; some systems play weird games with the mod time of symlinks
667# (eg FreeBSD returns the mod time of the symlink's containing
668# directory).
669if (
670   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
671   if test "$[*]" = "X"; then
672      # -L didn't work.
673      set X `ls -t $srcdir/configure conftest.file`
674   fi
675   rm -f conftest.file
676   if test "$[*]" != "X $srcdir/configure conftest.file" \
677      && test "$[*]" != "X conftest.file $srcdir/configure"; then
678
679      # If neither matched, then we have a broken ls.  This can happen
680      # if, for instance, CONFIG_SHELL is bash and it inherits a
681      # broken ls alias from the environment.  This has actually
682      # happened.  Such a system could not be considered "sane".
683      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
684alias in your environment])
685   fi
686
687   test "$[2]" = conftest.file
688   )
689then
690   # Ok.
691   :
692else
693   AC_MSG_ERROR([newly created file is older than distributed files!
694Check your system clock])
695fi
696AC_MSG_RESULT(yes)])
697
698#  -*- Autoconf -*-
699
700
701# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
702
703# This program is free software; you can redistribute it and/or modify
704# it under the terms of the GNU General Public License as published by
705# the Free Software Foundation; either version 2, or (at your option)
706# any later version.
707
708# This program is distributed in the hope that it will be useful,
709# but WITHOUT ANY WARRANTY; without even the implied warranty of
710# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
711# GNU General Public License for more details.
712
713# You should have received a copy of the GNU General Public License
714# along with this program; if not, write to the Free Software
715# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
716# 02111-1307, USA.
717
718# serial 3
719
720# AM_MISSING_PROG(NAME, PROGRAM)
721# ------------------------------
722AC_DEFUN([AM_MISSING_PROG],
723[AC_REQUIRE([AM_MISSING_HAS_RUN])
724$1=${$1-"${am_missing_run}$2"}
725AC_SUBST($1)])
726
727
728# AM_MISSING_HAS_RUN
729# ------------------
730# Define MISSING if not defined so far and test if it supports --run.
731# If it does, set am_missing_run to use it, otherwise, to nothing.
732AC_DEFUN([AM_MISSING_HAS_RUN],
733[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
734test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
735# Use eval to expand $SHELL
736if eval "$MISSING --run true"; then
737  am_missing_run="$MISSING --run "
738else
739  am_missing_run=
740  AC_MSG_WARN([`missing' script is too old or missing])
741fi
742])
743
744# AM_AUX_DIR_EXPAND
745
746# Copyright 2001 Free Software Foundation, Inc.
747
748# This program is free software; you can redistribute it and/or modify
749# it under the terms of the GNU General Public License as published by
750# the Free Software Foundation; either version 2, or (at your option)
751# any later version.
752
753# This program is distributed in the hope that it will be useful,
754# but WITHOUT ANY WARRANTY; without even the implied warranty of
755# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
756# GNU General Public License for more details.
757
758# You should have received a copy of the GNU General Public License
759# along with this program; if not, write to the Free Software
760# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
761# 02111-1307, USA.
762
763# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
764# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
765# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
766#
767# Of course, Automake must honor this variable whenever it calls a
768# tool from the auxiliary directory.  The problem is that $srcdir (and
769# therefore $ac_aux_dir as well) can be either absolute or relative,
770# depending on how configure is run.  This is pretty annoying, since
771# it makes $ac_aux_dir quite unusable in subdirectories: in the top
772# source directory, any form will work fine, but in subdirectories a
773# relative path needs to be adjusted first.
774#
775# $ac_aux_dir/missing
776#    fails when called from a subdirectory if $ac_aux_dir is relative
777# $top_srcdir/$ac_aux_dir/missing
778#    fails if $ac_aux_dir is absolute,
779#    fails when called from a subdirectory in a VPATH build with
780#          a relative $ac_aux_dir
781#
782# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
783# are both prefixed by $srcdir.  In an in-source build this is usually
784# harmless because $srcdir is `.', but things will broke when you
785# start a VPATH build or use an absolute $srcdir.
786#
787# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
788# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
789#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
790# and then we would define $MISSING as
791#   MISSING="\${SHELL} $am_aux_dir/missing"
792# This will work as long as MISSING is not called from configure, because
793# unfortunately $(top_srcdir) has no meaning in configure.
794# However there are other variables, like CC, which are often used in
795# configure, and could therefore not use this "fixed" $ac_aux_dir.
796#
797# Another solution, used here, is to always expand $ac_aux_dir to an
798# absolute PATH.  The drawback is that using absolute paths prevent a
799# configured tree to be moved without reconfiguration.
800
801# Rely on autoconf to set up CDPATH properly.
802AC_PREREQ([2.50])
803
804AC_DEFUN([AM_AUX_DIR_EXPAND], [
805# expand $ac_aux_dir to an absolute path
806am_aux_dir=`cd $ac_aux_dir && pwd`
807])
808
809# AM_PROG_INSTALL_SH
810# ------------------
811# Define $install_sh.
812
813# Copyright 2001 Free Software Foundation, Inc.
814
815# This program is free software; you can redistribute it and/or modify
816# it under the terms of the GNU General Public License as published by
817# the Free Software Foundation; either version 2, or (at your option)
818# any later version.
819
820# This program is distributed in the hope that it will be useful,
821# but WITHOUT ANY WARRANTY; without even the implied warranty of
822# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
823# GNU General Public License for more details.
824
825# You should have received a copy of the GNU General Public License
826# along with this program; if not, write to the Free Software
827# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
828# 02111-1307, USA.
829
830AC_DEFUN([AM_PROG_INSTALL_SH],
831[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
832install_sh=${install_sh-"$am_aux_dir/install-sh"}
833AC_SUBST(install_sh)])
834
835# AM_PROG_INSTALL_STRIP
836
837# Copyright 2001 Free Software Foundation, Inc.
838
839# This program is free software; you can redistribute it and/or modify
840# it under the terms of the GNU General Public License as published by
841# the Free Software Foundation; either version 2, or (at your option)
842# any later version.
843
844# This program is distributed in the hope that it will be useful,
845# but WITHOUT ANY WARRANTY; without even the implied warranty of
846# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
847# GNU General Public License for more details.
848
849# You should have received a copy of the GNU General Public License
850# along with this program; if not, write to the Free Software
851# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
852# 02111-1307, USA.
853
854# One issue with vendor `install' (even GNU) is that you can't
855# specify the program used to strip binaries.  This is especially
856# annoying in cross-compiling environments, where the build's strip
857# is unlikely to handle the host's binaries.
858# Fortunately install-sh will honor a STRIPPROG variable, so we
859# always use install-sh in `make install-strip', and initialize
860# STRIPPROG with the value of the STRIP variable (set by the user).
861AC_DEFUN([AM_PROG_INSTALL_STRIP],
862[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
863# Installed binaries are usually stripped using `strip' when the user
864# run `make install-strip'.  However `strip' might not be the right
865# tool to use in cross-compilation environments, therefore Automake
866# will honor the `STRIP' environment variable to overrule this program.
867dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
868if test "$cross_compiling" != no; then
869  AC_CHECK_TOOL([STRIP], [strip], :)
870fi
871INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
872AC_SUBST([INSTALL_STRIP_PROGRAM])])
873
874#                                                          -*- Autoconf -*-
875# Copyright (C) 2003  Free Software Foundation, Inc.
876
877# This program is free software; you can redistribute it and/or modify
878# it under the terms of the GNU General Public License as published by
879# the Free Software Foundation; either version 2, or (at your option)
880# any later version.
881
882# This program is distributed in the hope that it will be useful,
883# but WITHOUT ANY WARRANTY; without even the implied warranty of
884# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
885# GNU General Public License for more details.
886
887# You should have received a copy of the GNU General Public License
888# along with this program; if not, write to the Free Software
889# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
890# 02111-1307, USA.
891
892# serial 1
893
894# Check whether the underlying file-system supports filenames
895# with a leading dot.  For instance MS-DOS doesn't.
896AC_DEFUN([AM_SET_LEADING_DOT],
897[rm -rf .tst 2>/dev/null
898mkdir .tst 2>/dev/null
899if test -d .tst; then
900  am__leading_dot=.
901else
902  am__leading_dot=_
903fi
904rmdir .tst 2>/dev/null
905AC_SUBST([am__leading_dot])])
906
907# serial 5                                              -*- Autoconf -*-
908
909# Copyright (C) 1999, 2000, 2001, 2002, 2003  Free Software Foundation, Inc.
910
911# This program is free software; you can redistribute it and/or modify
912# it under the terms of the GNU General Public License as published by
913# the Free Software Foundation; either version 2, or (at your option)
914# any later version.
915
916# This program is distributed in the hope that it will be useful,
917# but WITHOUT ANY WARRANTY; without even the implied warranty of
918# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
919# GNU General Public License for more details.
920
921# You should have received a copy of the GNU General Public License
922# along with this program; if not, write to the Free Software
923# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
924# 02111-1307, USA.
925
926
927# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
928# written in clear, in which case automake, when reading aclocal.m4,
929# will think it sees a *use*, and therefore will trigger all it's
930# C support machinery.  Also note that it means that autoscan, seeing
931# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
932
933
934
935# _AM_DEPENDENCIES(NAME)
936# ----------------------
937# See how the compiler implements dependency checking.
938# NAME is "CC", "CXX", "GCJ", or "OBJC".
939# We try a few techniques and use that to set a single cache variable.
940#
941# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
942# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
943# dependency, and given that the user is not expected to run this macro,
944# just rely on AC_PROG_CC.
945AC_DEFUN([_AM_DEPENDENCIES],
946[AC_REQUIRE([AM_SET_DEPDIR])dnl
947AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
948AC_REQUIRE([AM_MAKE_INCLUDE])dnl
949AC_REQUIRE([AM_DEP_TRACK])dnl
950
951ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
952       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
953       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
954       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
955                   [depcc="$$1"   am_compiler_list=])
956
957AC_CACHE_CHECK([dependency style of $depcc],
958               [am_cv_$1_dependencies_compiler_type],
959[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
960  # We make a subdir and do the tests there.  Otherwise we can end up
961  # making bogus files that we don't know about and never remove.  For
962  # instance it was reported that on HP-UX the gcc test will end up
963  # making a dummy file named `D' -- because `-MD' means `put the output
964  # in D'.
965  mkdir conftest.dir
966  # Copy depcomp to subdir because otherwise we won't find it if we're
967  # using a relative directory.
968  cp "$am_depcomp" conftest.dir
969  cd conftest.dir
970  # We will build objects and dependencies in a subdirectory because
971  # it helps to detect inapplicable dependency modes.  For instance
972  # both Tru64's cc and ICC support -MD to output dependencies as a
973  # side effect of compilation, but ICC will put the dependencies in
974  # the current directory while Tru64 will put them in the object
975  # directory.
976  mkdir sub
977
978  am_cv_$1_dependencies_compiler_type=none
979  if test "$am_compiler_list" = ""; then
980     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
981  fi
982  for depmode in $am_compiler_list; do
983    # Setup a source with many dependencies, because some compilers
984    # like to wrap large dependency lists on column 80 (with \), and
985    # we should not choose a depcomp mode which is confused by this.
986    #
987    # We need to recreate these files for each test, as the compiler may
988    # overwrite some of them when testing with obscure command lines.
989    # This happens at least with the AIX C compiler.
990    : > sub/conftest.c
991    for i in 1 2 3 4 5 6; do
992      echo '#include "conftst'$i'.h"' >> sub/conftest.c
993      : > sub/conftst$i.h
994    done
995    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
996
997    case $depmode in
998    nosideeffect)
999      # after this tag, mechanisms are not by side-effect, so they'll
1000      # only be used when explicitly requested
1001      if test "x$enable_dependency_tracking" = xyes; then
1002        continue
1003      else
1004        break
1005      fi
1006      ;;
1007    none) break ;;
1008    esac
1009    # We check with `-c' and `-o' for the sake of the "dashmstdout"
1010    # mode.  It turns out that the SunPro C++ compiler does not properly
1011    # handle `-M -o', and we need to detect this.
1012    if depmode=$depmode \
1013       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
1014       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1015       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1016         >/dev/null 2>conftest.err &&
1017       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1018       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1019       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1020      # icc doesn't choke on unknown options, it will just issue warnings
1021      # (even with -Werror).  So we grep stderr for any message
1022      # that says an option was ignored.
1023      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
1024        am_cv_$1_dependencies_compiler_type=$depmode
1025        break
1026      fi
1027    fi
1028  done
1029
1030  cd ..
1031  rm -rf conftest.dir
1032else
1033  am_cv_$1_dependencies_compiler_type=none
1034fi
1035])
1036AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
1037AM_CONDITIONAL([am__fastdep$1], [
1038  test "x$enable_dependency_tracking" != xno \
1039  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
1040])
1041
1042
1043# AM_SET_DEPDIR
1044# -------------
1045# Choose a directory name for dependency files.
1046# This macro is AC_REQUIREd in _AM_DEPENDENCIES
1047AC_DEFUN([AM_SET_DEPDIR],
1048[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1049AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
1050])
1051
1052
1053# AM_DEP_TRACK
1054# ------------
1055AC_DEFUN([AM_DEP_TRACK],
1056[AC_ARG_ENABLE(dependency-tracking,
1057[  --disable-dependency-tracking Speeds up one-time builds
1058  --enable-dependency-tracking  Do not reject slow dependency extractors])
1059if test "x$enable_dependency_tracking" != xno; then
1060  am_depcomp="$ac_aux_dir/depcomp"
1061  AMDEPBACKSLASH='\'
1062fi
1063AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
1064AC_SUBST([AMDEPBACKSLASH])
1065])
1066
1067# Generate code to set up dependency tracking.   -*- Autoconf -*-
1068
1069# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
1070
1071# This program is free software; you can redistribute it and/or modify
1072# it under the terms of the GNU General Public License as published by
1073# the Free Software Foundation; either version 2, or (at your option)
1074# any later version.
1075
1076# This program is distributed in the hope that it will be useful,
1077# but WITHOUT ANY WARRANTY; without even the implied warranty of
1078# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1079# GNU General Public License for more details.
1080
1081# You should have received a copy of the GNU General Public License
1082# along with this program; if not, write to the Free Software
1083# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1084# 02111-1307, USA.
1085
1086#serial 2
1087
1088# _AM_OUTPUT_DEPENDENCY_COMMANDS
1089# ------------------------------
1090AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
1091[for mf in $CONFIG_FILES; do
1092  # Strip MF so we end up with the name of the file.
1093  mf=`echo "$mf" | sed -e 's/:.*$//'`
1094  # Check whether this is an Automake generated Makefile or not.
1095  # We used to match only the files named `Makefile.in', but
1096  # some people rename them; so instead we look at the file content.
1097  # Grep'ing the first line is not enough: some people post-process
1098  # each Makefile.in and add a new line on top of each file to say so.
1099  # So let's grep whole file.
1100  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
1101    dirpart=`AS_DIRNAME("$mf")`
1102  else
1103    continue
1104  fi
1105  grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
1106  # Extract the definition of DEP_FILES from the Makefile without
1107  # running `make'.
1108  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
1109  test -z "$DEPDIR" && continue
1110  # When using ansi2knr, U may be empty or an underscore; expand it
1111  U=`sed -n -e '/^U = / s///p' < "$mf"`
1112  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
1113  # We invoke sed twice because it is the simplest approach to
1114  # changing $(DEPDIR) to its actual value in the expansion.
1115  for file in `sed -n -e '
1116    /^DEP_FILES = .*\\\\$/ {
1117      s/^DEP_FILES = //
1118      :loop
1119        s/\\\\$//
1120        p
1121        n
1122        /\\\\$/ b loop
1123      p
1124    }
1125    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
1126       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1127    # Make sure the directory exists.
1128    test -f "$dirpart/$file" && continue
1129    fdir=`AS_DIRNAME(["$file"])`
1130    AS_MKDIR_P([$dirpart/$fdir])
1131    # echo "creating $dirpart/$file"
1132    echo '# dummy' > "$dirpart/$file"
1133  done
1134done
1135])# _AM_OUTPUT_DEPENDENCY_COMMANDS
1136
1137
1138# AM_OUTPUT_DEPENDENCY_COMMANDS
1139# -----------------------------
1140# This macro should only be invoked once -- use via AC_REQUIRE.
1141#
1142# This code is only required when automatic dependency tracking
1143# is enabled.  FIXME.  This creates each `.P' file that we will
1144# need in order to bootstrap the dependency handling code.
1145AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
1146[AC_CONFIG_COMMANDS([depfiles],
1147     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
1148     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
1149])
1150
1151# Check to see how 'make' treats includes.      -*- Autoconf -*-
1152
1153# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
1154
1155# This program is free software; you can redistribute it and/or modify
1156# it under the terms of the GNU General Public License as published by
1157# the Free Software Foundation; either version 2, or (at your option)
1158# any later version.
1159
1160# This program is distributed in the hope that it will be useful,
1161# but WITHOUT ANY WARRANTY; without even the implied warranty of
1162# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1163# GNU General Public License for more details.
1164
1165# You should have received a copy of the GNU General Public License
1166# along with this program; if not, write to the Free Software
1167# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1168# 02111-1307, USA.
1169
1170# serial 2
1171
1172# AM_MAKE_INCLUDE()
1173# -----------------
1174# Check to see how make treats includes.
1175AC_DEFUN([AM_MAKE_INCLUDE],
1176[am_make=${MAKE-make}
1177cat > confinc << 'END'
1178am__doit:
1179        @echo done
1180.PHONY: am__doit
1181END
1182# If we don't find an include directive, just comment out the code.
1183AC_MSG_CHECKING([for style of include used by $am_make])
1184am__include="#"
1185am__quote=
1186_am_result=none
1187# First try GNU make style include.
1188echo "include confinc" > confmf
1189# We grep out `Entering directory' and `Leaving directory'
1190# messages which can occur if `w' ends up in MAKEFLAGS.
1191# In particular we don't look at `^make:' because GNU make might
1192# be invoked under some other name (usually "gmake"), in which
1193# case it prints its new name instead of `make'.
1194if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1195   am__include=include
1196   am__quote=
1197   _am_result=GNU
1198fi
1199# Now try BSD make style include.
1200if test "$am__include" = "#"; then
1201   echo '.include "confinc"' > confmf
1202   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1203      am__include=.include
1204      am__quote="\""
1205      _am_result=BSD
1206   fi
1207fi
1208AC_SUBST([am__include])
1209AC_SUBST([am__quote])
1210AC_MSG_RESULT([$_am_result])
1211rm -f confinc confmf
1212])
1213
1214# AM_CONDITIONAL                                              -*- Autoconf -*-
1215
1216# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
1217
1218# This program is free software; you can redistribute it and/or modify
1219# it under the terms of the GNU General Public License as published by
1220# the Free Software Foundation; either version 2, or (at your option)
1221# any later version.
1222
1223# This program is distributed in the hope that it will be useful,
1224# but WITHOUT ANY WARRANTY; without even the implied warranty of
1225# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1226# GNU General Public License for more details.
1227
1228# You should have received a copy of the GNU General Public License
1229# along with this program; if not, write to the Free Software
1230# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1231# 02111-1307, USA.
1232
1233# serial 5
1234
1235AC_PREREQ(2.52)
1236
1237# AM_CONDITIONAL(NAME, SHELL-CONDITION)
1238# -------------------------------------
1239# Define a conditional.
1240AC_DEFUN([AM_CONDITIONAL],
1241[ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
1242        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
1243AC_SUBST([$1_TRUE])
1244AC_SUBST([$1_FALSE])
1245if $2; then
1246  $1_TRUE=
1247  $1_FALSE='#'
1248else
1249  $1_TRUE='#'
1250  $1_FALSE=
1251fi
1252AC_CONFIG_COMMANDS_PRE(
1253[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
1254  AC_MSG_ERROR([conditional "$1" was never defined.
1255Usually this means the macro was only invoked conditionally.])
1256fi])])
1257
1258# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
1259
1260# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
1261
1262# This program is free software; you can redistribute it and/or modify
1263# it under the terms of the GNU General Public License as published by
1264# the Free Software Foundation; either version 2, or (at your option)
1265# any later version.
1266
1267# This program is distributed in the hope that it will be useful,
1268# but WITHOUT ANY WARRANTY; without even the implied warranty of
1269# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1270# GNU General Public License for more details.
1271
1272# You should have received a copy of the GNU General Public License
1273# along with this program; if not, write to the Free Software
1274# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1275# 02111-1307, USA.
1276
1277AC_PREREQ([2.52])
1278
1279# serial 6
1280
1281# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
1282AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
1283
1284# Add --enable-maintainer-mode option to configure.
1285# From Jim Meyering
1286
1287# Copyright 1996, 1998, 2000, 2001, 2002  Free Software Foundation, Inc.
1288
1289# This program is free software; you can redistribute it and/or modify
1290# it under the terms of the GNU General Public License as published by
1291# the Free Software Foundation; either version 2, or (at your option)
1292# any later version.
1293
1294# This program is distributed in the hope that it will be useful,
1295# but WITHOUT ANY WARRANTY; without even the implied warranty of
1296# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1297# GNU General Public License for more details.
1298
1299# You should have received a copy of the GNU General Public License
1300# along with this program; if not, write to the Free Software
1301# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1302# 02111-1307, USA.
1303
1304# serial 2
1305
1306AC_DEFUN([AM_MAINTAINER_MODE],
1307[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
1308  dnl maintainer-mode is disabled by default
1309  AC_ARG_ENABLE(maintainer-mode,
1310[  --enable-maintainer-mode enable make rules and dependencies not useful
1311                          (and sometimes confusing) to the casual installer],
1312      USE_MAINTAINER_MODE=$enableval,
1313      USE_MAINTAINER_MODE=no)
1314  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
1315  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
1316  MAINT=$MAINTAINER_MODE_TRUE
1317  AC_SUBST(MAINT)dnl
1318]
1319)
1320
1321AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
1322
1323
1324# Copyright 1996, 1997, 1999, 2000, 2001, 2002  Free Software Foundation, Inc.
1325
1326# This program is free software; you can redistribute it and/or modify
1327# it under the terms of the GNU General Public License as published by
1328# the Free Software Foundation; either version 2, or (at your option)
1329# any later version.
1330
1331# This program is distributed in the hope that it will be useful,
1332# but WITHOUT ANY WARRANTY; without even the implied warranty of
1333# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1334# GNU General Public License for more details.
1335
1336# You should have received a copy of the GNU General Public License
1337# along with this program; if not, write to the Free Software
1338# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1339# 02111-1307, USA.
1340
1341# serial 2
1342
1343# @defmac AC_PROG_CC_STDC
1344# @maindex PROG_CC_STDC
1345# @ovindex CC
1346# If the C compiler in not in ANSI C mode by default, try to add an option
1347# to output variable @code{CC} to make it so.  This macro tries various
1348# options that select ANSI C on some system or another.  It considers the
1349# compiler to be in ANSI C mode if it handles function prototypes correctly.
1350#
1351# If you use this macro, you should check after calling it whether the C
1352# compiler has been set to accept ANSI C; if not, the shell variable
1353# @code{am_cv_prog_cc_stdc} is set to @samp{no}.  If you wrote your source
1354# code in ANSI C, you can make an un-ANSIfied copy of it by using the
1355# program @code{ansi2knr}, which comes with Ghostscript.
1356# @end defmac
1357
1358AC_DEFUN([AM_PROG_CC_STDC],
1359[AC_REQUIRE([AC_PROG_CC])
1360AC_BEFORE([$0], [AC_C_INLINE])
1361AC_BEFORE([$0], [AC_C_CONST])
1362dnl Force this before AC_PROG_CPP.  Some cpp's, eg on HPUX, require
1363dnl a magic option to avoid problems with ANSI preprocessor commands
1364dnl like #elif.
1365dnl FIXME: can't do this because then AC_AIX won't work due to a
1366dnl circular dependency.
1367dnl AC_BEFORE([$0], [AC_PROG_CPP])
1368AC_MSG_CHECKING([for ${CC-cc} option to accept ANSI C])
1369AC_CACHE_VAL(am_cv_prog_cc_stdc,
1370[am_cv_prog_cc_stdc=no
1371ac_save_CC="$CC"
1372# Don't try gcc -ansi; that turns off useful extensions and
1373# breaks some systems' header files.
1374# AIX                   -qlanglvl=ansi
1375# Ultrix and OSF/1      -std1
1376# HP-UX 10.20 and later -Ae
1377# HP-UX older versions  -Aa -D_HPUX_SOURCE
1378# SVR4                  -Xc -D__EXTENSIONS__
1379for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1380do
1381  CC="$ac_save_CC $ac_arg"
1382  AC_TRY_COMPILE(
1383[#include <stdarg.h>
1384#include <stdio.h>
1385#include <sys/types.h>
1386#include <sys/stat.h>
1387/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
1388struct buf { int x; };
1389FILE * (*rcsopen) (struct buf *, struct stat *, int);
1390static char *e (p, i)
1391     char **p;
1392     int i;
1393{
1394  return p[i];
1395}
1396static char *f (char * (*g) (char **, int), char **p, ...)
1397{
1398  char *s;
1399  va_list v;
1400  va_start (v,p);
1401  s = g (p, va_arg (v,int));
1402  va_end (v);
1403  return s;
1404}
1405int test (int i, double x);
1406struct s1 {int (*f) (int a);};
1407struct s2 {int (*f) (double a);};
1408int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1409int argc;
1410char **argv;
1411], [
1412return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
1413],
1414[am_cv_prog_cc_stdc="$ac_arg"; break])
1415done
1416CC="$ac_save_CC"
1417])
1418if test -z "$am_cv_prog_cc_stdc"; then
1419  AC_MSG_RESULT([none needed])
1420else
1421  AC_MSG_RESULT([$am_cv_prog_cc_stdc])
1422fi
1423case "x$am_cv_prog_cc_stdc" in
1424  x|xno) ;;
1425  *) CC="$CC $am_cv_prog_cc_stdc" ;;
1426esac
1427])
1428
1429AU_DEFUN([fp_PROG_CC_STDC], [AM_PROG_CC_STDC])
1430
1431# Copyright (C) 1995-2002 Free Software Foundation, Inc.
1432# Copyright (C) 2001-2003,2004 Red Hat, Inc.
1433#
1434# This file is free software, distributed under the terms of the GNU
1435# General Public License.  As a special exception to the GNU General
1436# Public License, this file may be distributed as part of a program
1437# that contains a configuration script generated by Autoconf, under
1438# the same distribution terms as the rest of that program.
1439#
1440# This file can be copied and used freely without restrictions.  It can
1441# be used in projects which are not available under the GNU Public License
1442# but which still want to provide support for the GNU gettext functionality.
1443#
1444# Macro to add for using GNU gettext.
1445# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
1446#
1447# Modified to never use included libintl.
1448# Owen Taylor <otaylor@redhat.com>, 12/15/1998
1449#
1450# Major rework to remove unused code
1451# Owen Taylor <otaylor@redhat.com>, 12/11/2002
1452#
1453# Added better handling of ALL_LINGUAS from GNU gettext version
1454# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
1455#
1456# Modified to require ngettext
1457# Matthias Clasen <mclasen@redhat.com> 08/06/2004
1458#
1459# We need this here as well, since someone might use autoconf-2.5x
1460# to configure GLib then an older version to configure a package
1461# using AM_GLIB_GNU_GETTEXT
1462AC_PREREQ(2.53)
1463
1464dnl
1465dnl We go to great lengths to make sure that aclocal won't
1466dnl try to pull in the installed version of these macros
1467dnl when running aclocal in the glib directory.
1468dnl
1469m4_copy([AC_DEFUN],[glib_DEFUN])
1470m4_copy([AC_REQUIRE],[glib_REQUIRE])
1471dnl
1472dnl At the end, if we're not within glib, we'll define the public
1473dnl definitions in terms of our private definitions.
1474dnl
1475
1476# GLIB_LC_MESSAGES
1477#--------------------
1478glib_DEFUN([GLIB_LC_MESSAGES],
1479  [AC_CHECK_HEADERS([locale.h])
1480    if test $ac_cv_header_locale_h = yes; then
1481    AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
1482      [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
1483       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
1484    if test $am_cv_val_LC_MESSAGES = yes; then
1485      AC_DEFINE(HAVE_LC_MESSAGES, 1,
1486        [Define if your <locale.h> file defines LC_MESSAGES.])
1487    fi
1488  fi])
1489
1490# GLIB_PATH_PROG_WITH_TEST
1491#----------------------------
1492dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
1493dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
1494glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
1495[# Extract the first word of "$2", so it can be a program name with args.
1496set dummy $2; ac_word=[$]2
1497AC_MSG_CHECKING([for $ac_word])
1498AC_CACHE_VAL(ac_cv_path_$1,
1499[case "[$]$1" in
1500  /*)
1501  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
1502  ;;
1503  *)
1504  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1505  for ac_dir in ifelse([$5], , $PATH, [$5]); do
1506    test -z "$ac_dir" && ac_dir=.
1507    if test -f $ac_dir/$ac_word; then
1508      if [$3]; then
1509        ac_cv_path_$1="$ac_dir/$ac_word"
1510        break
1511      fi
1512    fi
1513  done
1514  IFS="$ac_save_ifs"
1515dnl If no 4th arg is given, leave the cache variable unset,
1516dnl so AC_PATH_PROGS will keep looking.
1517ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
1518])dnl
1519  ;;
1520esac])dnl
1521$1="$ac_cv_path_$1"
1522if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
1523  AC_MSG_RESULT([$]$1)
1524else
1525  AC_MSG_RESULT(no)
1526fi
1527AC_SUBST($1)dnl
1528])
1529
1530# GLIB_WITH_NLS
1531#-----------------
1532glib_DEFUN([GLIB_WITH_NLS],
1533  dnl NLS is obligatory
1534  [USE_NLS=yes
1535    AC_SUBST(USE_NLS)
1536
1537    gt_cv_have_gettext=no
1538
1539    CATOBJEXT=NONE
1540    XGETTEXT=:
1541    INTLLIBS=
1542
1543    AC_CHECK_HEADER(libintl.h,
1544     [gt_cv_func_dgettext_libintl="no"
1545      libintl_extra_libs=""
1546
1547      #
1548      # First check in libc
1549      #
1550      AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
1551        [AC_TRY_LINK([
1552#include <libintl.h>
1553],
1554         [return !ngettext ("","", 1)],
1555          gt_cv_func_ngettext_libc=yes,
1556          gt_cv_func_ngettext_libc=no)
1557        ])
1558 
1559      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
1560              AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
1561                [AC_TRY_LINK([
1562#include <libintl.h>
1563],
1564                  [return !dgettext ("","")],
1565                  gt_cv_func_dgettext_libc=yes,
1566                  gt_cv_func_dgettext_libc=no)
1567                ])
1568      fi
1569 
1570      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
1571        AC_CHECK_FUNCS(bind_textdomain_codeset)
1572      fi
1573
1574      #
1575      # If we don't have everything we want, check in libintl
1576      #
1577      if test "$gt_cv_func_dgettext_libc" != "yes" \
1578         || test "$gt_cv_func_ngettext_libc" != "yes" \
1579         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
1580       
1581        AC_CHECK_LIB(intl, bindtextdomain,
1582            [AC_CHECK_LIB(intl, ngettext,
1583                    [AC_CHECK_LIB(intl, dgettext,
1584                                  gt_cv_func_dgettext_libintl=yes)])])
1585
1586        if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
1587          AC_MSG_CHECKING([if -liconv is needed to use gettext])
1588          AC_MSG_RESULT([])
1589          AC_CHECK_LIB(intl, ngettext,
1590                [AC_CHECK_LIB(intl, dcgettext,
1591                       [gt_cv_func_dgettext_libintl=yes
1592                        libintl_extra_libs=-liconv],
1593                        :,-liconv)],
1594                :,-liconv)
1595        fi
1596
1597        #
1598        # If we found libintl, then check in it for bind_textdomain_codeset();
1599        # we'll prefer libc if neither have bind_textdomain_codeset(),
1600        # and both have dgettext and ngettext
1601        #
1602        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
1603          glib_save_LIBS="$LIBS"
1604          LIBS="$LIBS -lintl $libintl_extra_libs"
1605          unset ac_cv_func_bind_textdomain_codeset
1606          AC_CHECK_FUNCS(bind_textdomain_codeset)
1607          LIBS="$glib_save_LIBS"
1608
1609          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
1610            gt_cv_func_dgettext_libc=no
1611          else
1612            if test "$gt_cv_func_dgettext_libc" = "yes" \
1613                && test "$gt_cv_func_ngettext_libc" = "yes"; then
1614              gt_cv_func_dgettext_libintl=no
1615            fi
1616          fi
1617        fi
1618      fi
1619
1620      if test "$gt_cv_func_dgettext_libc" = "yes" \
1621        || test "$gt_cv_func_dgettext_libintl" = "yes"; then
1622        gt_cv_have_gettext=yes
1623      fi
1624 
1625      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
1626        INTLLIBS="-lintl $libintl_extra_libs"
1627      fi
1628 
1629      if test "$gt_cv_have_gettext" = "yes"; then
1630        AC_DEFINE(HAVE_GETTEXT,1,
1631          [Define if the GNU gettext() function is already present or preinstalled.])
1632        GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
1633          [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
1634        if test "$MSGFMT" != "no"; then
1635          glib_save_LIBS="$LIBS"
1636          LIBS="$LIBS $INTLLIBS"
1637          AC_CHECK_FUNCS(dcgettext)
1638          AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
1639          GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
1640            [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
1641          AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
1642                         return _nl_msg_cat_cntr],
1643            [CATOBJEXT=.gmo
1644             DATADIRNAME=share],
1645            [case $host in
1646            *-*-solaris*)
1647            dnl On Solaris, if bind_textdomain_codeset is in libc,
1648            dnl GNU format message catalog is always supported,
1649            dnl since both are added to the libc all together.
1650            dnl Hence, we'd like to go with DATADIRNAME=share and
1651            dnl and CATOBJEXT=.gmo in this case.
1652            AC_CHECK_FUNC(bind_textdomain_codeset,
1653              [CATOBJEXT=.gmo
1654               DATADIRNAME=share],
1655              [CATOBJEXT=.mo
1656               DATADIRNAME=lib])
1657            ;;
1658            *)
1659            CATOBJEXT=.mo
1660            DATADIRNAME=lib
1661            ;;
1662            esac])
1663          LIBS="$glib_save_LIBS"
1664          INSTOBJEXT=.mo
1665        else
1666          gt_cv_have_gettext=no
1667        fi
1668      fi
1669    ])
1670
1671    if test "$gt_cv_have_gettext" = "yes" ; then
1672      AC_DEFINE(ENABLE_NLS, 1,
1673        [always defined to indicate that i18n is enabled])
1674    fi
1675
1676    dnl Test whether we really found GNU xgettext.
1677    if test "$XGETTEXT" != ":"; then
1678      dnl If it is not GNU xgettext we define it as : so that the
1679      dnl Makefiles still can work.
1680      if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
1681        : ;
1682      else
1683        AC_MSG_RESULT(
1684          [found xgettext program is not GNU xgettext; ignore it])
1685        XGETTEXT=":"
1686      fi
1687    fi
1688
1689    # We need to process the po/ directory.
1690    POSUB=po
1691
1692    AC_OUTPUT_COMMANDS(
1693      [case "$CONFIG_FILES" in *po/Makefile.in*)
1694        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
1695      esac])
1696
1697    dnl These rules are solely for the distribution goal.  While doing this
1698    dnl we only have to keep exactly one list of the available catalogs
1699    dnl in configure.in.
1700    for lang in $ALL_LINGUAS; do
1701      GMOFILES="$GMOFILES $lang.gmo"
1702      POFILES="$POFILES $lang.po"
1703    done
1704
1705    dnl Make all variables we use known to autoconf.
1706    AC_SUBST(CATALOGS)
1707    AC_SUBST(CATOBJEXT)
1708    AC_SUBST(DATADIRNAME)
1709    AC_SUBST(GMOFILES)
1710    AC_SUBST(INSTOBJEXT)
1711    AC_SUBST(INTLLIBS)
1712    AC_SUBST(PO_IN_DATADIR_TRUE)
1713    AC_SUBST(PO_IN_DATADIR_FALSE)
1714    AC_SUBST(POFILES)
1715    AC_SUBST(POSUB)
1716  ])
1717
1718# AM_GLIB_GNU_GETTEXT
1719# -------------------
1720# Do checks necessary for use of gettext. If a suitable implementation
1721# of gettext is found in either in libintl or in the C library,
1722# it will set INTLLIBS to the libraries needed for use of gettext
1723# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
1724# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
1725# on various variables needed by the Makefile.in.in installed by
1726# glib-gettextize.
1727dnl
1728glib_DEFUN([GLIB_GNU_GETTEXT],
1729  [AC_REQUIRE([AC_PROG_CC])dnl
1730   AC_REQUIRE([AC_HEADER_STDC])dnl
1731   
1732   GLIB_LC_MESSAGES
1733   GLIB_WITH_NLS
1734
1735   if test "$gt_cv_have_gettext" = "yes"; then
1736     if test "x$ALL_LINGUAS" = "x"; then
1737       LINGUAS=
1738     else
1739       AC_MSG_CHECKING(for catalogs to be installed)
1740       NEW_LINGUAS=
1741       for presentlang in $ALL_LINGUAS; do
1742         useit=no
1743         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
1744           desiredlanguages="$LINGUAS"
1745         else
1746           desiredlanguages="$ALL_LINGUAS"
1747         fi
1748         for desiredlang in $desiredlanguages; do
1749           # Use the presentlang catalog if desiredlang is
1750           #   a. equal to presentlang, or
1751           #   b. a variant of presentlang (because in this case,
1752           #      presentlang can be used as a fallback for messages
1753           #      which are not translated in the desiredlang catalog).
1754           case "$desiredlang" in
1755             "$presentlang"*) useit=yes;;
1756           esac
1757         done
1758         if test $useit = yes; then
1759           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
1760         fi
1761       done
1762       LINGUAS=$NEW_LINGUAS
1763       AC_MSG_RESULT($LINGUAS)
1764     fi
1765
1766     dnl Construct list of names of catalog files to be constructed.
1767     if test -n "$LINGUAS"; then
1768       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
1769     fi
1770   fi
1771
1772   dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
1773   dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
1774   dnl Try to locate is.
1775   MKINSTALLDIRS=
1776   if test -n "$ac_aux_dir"; then
1777     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
1778   fi
1779   if test -z "$MKINSTALLDIRS"; then
1780     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
1781   fi
1782   AC_SUBST(MKINSTALLDIRS)
1783
1784   dnl Generate list of files to be processed by xgettext which will
1785   dnl be included in po/Makefile.
1786   test -d po || mkdir po
1787   if test "x$srcdir" != "x."; then
1788     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
1789       posrcprefix="$srcdir/"
1790     else
1791       posrcprefix="../$srcdir/"
1792     fi
1793   else
1794     posrcprefix="../"
1795   fi
1796   rm -f po/POTFILES
1797   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
1798        < $srcdir/po/POTFILES.in > po/POTFILES
1799  ])
1800
1801# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
1802# -------------------------------
1803# Define VARIABLE to the location where catalog files will
1804# be installed by po/Makefile.
1805glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
1806[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
1807glib_save_prefix="$prefix"
1808glib_save_exec_prefix="$exec_prefix"
1809test "x$prefix" = xNONE && prefix=$ac_default_prefix
1810test "x$exec_prefix" = xNONE && exec_prefix=$prefix
1811if test "x$CATOBJEXT" = "x.mo" ; then
1812  localedir=`eval echo "${libdir}/locale"`
1813else
1814  localedir=`eval echo "${datadir}/locale"`
1815fi
1816prefix="$glib_save_prefix"
1817exec_prefix="$glib_save_exec_prefix"
1818AC_DEFINE_UNQUOTED($1, "$localedir",
1819  [Define the location where the catalogs will be installed])
1820])
1821
1822dnl
1823dnl Now the definitions that aclocal will find
1824dnl
1825ifdef(glib_configure_in,[],[
1826AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
1827AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
1828])dnl
1829
1830
1831dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
1832# serial 2 IT_PROG_INTLTOOL
1833AC_DEFUN([IT_PROG_INTLTOOL],
1834[
1835
1836if test -n "$1"; then
1837    AC_MSG_CHECKING(for intltool >= $1)
1838
1839    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ printf "%d", $[1] * 100 + $[2]; }'`
1840    INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $[2]; }'  < ${ac_aux_dir}/intltool-update.in`
1841    changequote({{,}})
1842    INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split(${{2}}, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < ${ac_aux_dir}/intltool-update.in`
1843    changequote([,])
1844
1845    if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then
1846        AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
1847    else
1848        AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found. Your intltool is too old.  You need intltool $1 or later.])
1849        exit 1
1850    fi
1851fi
1852
1853  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1854INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1855     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1856     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1857      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
1858     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1859   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1860    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1861INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1862       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1863      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1864      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@'
1865      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1866      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1867    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1868  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1869    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
1870
1871AC_SUBST(INTLTOOL_DESKTOP_RULE)
1872AC_SUBST(INTLTOOL_DIRECTORY_RULE)
1873AC_SUBST(INTLTOOL_KEYS_RULE)
1874AC_SUBST(INTLTOOL_PROP_RULE)
1875AC_SUBST(INTLTOOL_OAF_RULE)
1876AC_SUBST(INTLTOOL_PONG_RULE)
1877AC_SUBST(INTLTOOL_SERVER_RULE)
1878AC_SUBST(INTLTOOL_SHEET_RULE)
1879AC_SUBST(INTLTOOL_SOUNDLIST_RULE)
1880AC_SUBST(INTLTOOL_UI_RULE)
1881AC_SUBST(INTLTOOL_XAM_RULE)
1882AC_SUBST(INTLTOOL_KBD_RULE)
1883AC_SUBST(INTLTOOL_XML_RULE)
1884AC_SUBST(INTLTOOL_XML_NOMERGE_RULE)
1885AC_SUBST(INTLTOOL_CAVES_RULE)
1886AC_SUBST(INTLTOOL_SCHEMAS_RULE)
1887AC_SUBST(INTLTOOL_THEME_RULE)
1888
1889# Use the tools built into the package, not the ones that are installed.
1890
1891INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
1892INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
1893INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
1894
1895AC_SUBST(INTLTOOL_EXTRACT)
1896AC_SUBST(INTLTOOL_MERGE)
1897AC_SUBST(INTLTOOL_UPDATE)
1898
1899AC_PATH_PROG(INTLTOOL_PERL, perl)
1900if test -z "$INTLTOOL_PERL"; then
1901   AC_MSG_ERROR([perl not found; required for intltool])
1902fi
1903if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
1904   AC_MSG_ERROR([perl 5.x required for intltool])
1905fi
1906if test "x$2" != "xno-xml"; then
1907   AC_MSG_CHECKING([for XML::Parser])
1908   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
1909       AC_MSG_RESULT([ok])
1910   else
1911       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
1912   fi
1913fi
1914
1915AC_PATH_PROG(INTLTOOL_ICONV, iconv, iconv)
1916AC_PATH_PROG(INTLTOOL_MSGFMT, msgfmt, msgfmt)
1917AC_PATH_PROG(INTLTOOL_MSGMERGE, msgmerge, msgmerge)
1918AC_PATH_PROG(INTLTOOL_XGETTEXT, xgettext, xgettext)
1919
1920# Remove file type tags (using []) from po/POTFILES.
1921
1922ifdef([AC_DIVERSION_ICMDS],[
1923  AC_DIVERT_PUSH(AC_DIVERSION_ICMDS)
1924      changequote(,)
1925      mv -f po/POTFILES po/POTFILES.tmp
1926      sed -e '/\[encoding.*\]/d' -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
1927      rm -f po/POTFILES.tmp
1928      changequote([,])
1929  AC_DIVERT_POP()
1930],[
1931  ifdef([AC_CONFIG_COMMANDS_PRE],[
1932    AC_CONFIG_COMMANDS_PRE([
1933        changequote(,)
1934        mv -f po/POTFILES po/POTFILES.tmp
1935        sed -e '/\[encoding.*\]/d' -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
1936        rm -f po/POTFILES.tmp
1937        changequote([,])
1938    ])
1939  ])
1940
1941if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1942  # Keeping the `.' argument allows $(mkdir_p) to be used without
1943  # argument.  Indeed, we sometimes output rules like
1944  #   $(mkdir_p) $(somedir)
1945  # where $(somedir) is conditionally defined.
1946  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1947  # expensive solution, as it forces Make to start a sub-shell.)
1948  mkdir_p='mkdir -p -- .'
1949else
1950  # On NextStep and OpenStep, the `mkdir' command does not
1951  # recognize any option.  It will interpret all options as
1952  # directories to create, and then abort because `.' already
1953  # exists.
1954  for d in ./-p ./--version;
1955  do
1956    test -d $d && rmdir $d
1957  done
1958  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1959  if test -f "$ac_aux_dir/mkinstalldirs"; then
1960    mkdir_p='$(mkinstalldirs)'
1961  else
1962    mkdir_p='$(install_sh) -d'
1963  fi
1964fi
1965AC_SUBST([mkdir_p])
1966])
1967
1968# Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.
1969
1970AC_CONFIG_COMMANDS([intltool], [
1971
1972intltool_edit="-e 's#@INTLTOOL_EXTRACT@#`pwd`/intltool-extract#g' \
1973               -e 's#@INTLTOOL_ICONV@#${INTLTOOL_ICONV}#g' \
1974               -e 's#@INTLTOOL_MSGFMT@#${INTLTOOL_MSGFMT}#g' \
1975               -e 's#@INTLTOOL_MSGMERGE@#${INTLTOOL_MSGMERGE}#g' \
1976               -e 's#@INTLTOOL_XGETTEXT@#${INTLTOOL_XGETTEXT}#g' \
1977               -e 's#@INTLTOOL_PERL@#${INTLTOOL_PERL}#g'"
1978
1979eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-extract.in \
1980  > intltool-extract.out
1981if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then
1982  rm -f intltool-extract.out
1983else
1984  mv -f intltool-extract.out intltool-extract
1985fi
1986chmod ugo+x intltool-extract
1987chmod u+w intltool-extract
1988
1989eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-merge.in \
1990  > intltool-merge.out
1991if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then
1992  rm -f intltool-merge.out
1993else
1994  mv -f intltool-merge.out intltool-merge
1995fi
1996chmod ugo+x intltool-merge
1997chmod u+w intltool-merge
1998
1999eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-update.in \
2000  > intltool-update.out
2001if cmp -s intltool-update intltool-update.out 2>/dev/null; then
2002  rm -f intltool-update.out
2003else
2004  mv -f intltool-update.out intltool-update
2005fi
2006chmod ugo+x intltool-update
2007chmod u+w intltool-update
2008
2009], INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir=${ac_aux_dir}
2010INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' ICONV='${INTLTOOL_ICONV}'
2011MSGFMT='${INTLTOOL_MSGFMT}' MSGMERGE='${INTLTOOL_MSGMERGE}'
2012XGETTEXT='${INTLTOOL_XGETTEXT}')
2013
2014])
2015
2016# deprecated macros
2017AC_DEFUN([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL($@)])
2018
2019
2020
2021dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
2022dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
2023dnl also defines GSTUFF_PKG_ERRORS on error
2024AC_DEFUN(PKG_CHECK_MODULES, [
2025  succeeded=no
2026
2027  if test -z "$PKG_CONFIG"; then
2028    AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
2029  fi
2030
2031  if test "$PKG_CONFIG" = "no" ; then
2032     echo "*** The pkg-config script could not be found. Make sure it is"
2033     echo "*** in your path, or set the PKG_CONFIG environment variable"
2034     echo "*** to the full path to pkg-config."
2035     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
2036  else
2037     PKG_CONFIG_MIN_VERSION=0.9.0
2038     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
2039        AC_MSG_CHECKING(for $2)
2040
2041        if $PKG_CONFIG --exists "$2" ; then
2042            AC_MSG_RESULT(yes)
2043            succeeded=yes
2044
2045            AC_MSG_CHECKING($1_CFLAGS)
2046            $1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
2047            AC_MSG_RESULT($$1_CFLAGS)
2048
2049            AC_MSG_CHECKING($1_LIBS)
2050            $1_LIBS=`$PKG_CONFIG --libs "$2"`
2051            AC_MSG_RESULT($$1_LIBS)
2052        else
2053            $1_CFLAGS=""
2054            $1_LIBS=""
2055            ## If we have a custom action on failure, don't print errors, but
2056            ## do set a variable so people can do so.
2057            $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
2058            ifelse([$4], ,echo $$1_PKG_ERRORS,)
2059        fi
2060
2061        AC_SUBST($1_CFLAGS)
2062        AC_SUBST($1_LIBS)
2063     else
2064        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
2065        echo "*** See http://www.freedesktop.org/software/pkgconfig"
2066     fi
2067  fi
2068
2069  if test $succeeded = yes; then
2070     ifelse([$3], , :, [$3])
2071  else
2072     ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])
2073  fi
2074])
2075
2076
2077
Note: See TracBrowser for help on using the repository browser.