1 # aclocal.m4 generated automatically by aclocal 1.6.3 -*- Autoconf -*-
3 # Copyright 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.
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
17 AH_TEMPLATE([HAVE_GETHOSTBYADDR_R_5], [Set to 1 if gethostbyaddr_r takes 5 arguments])
18 AH_TEMPLATE([HAVE_GETHOSTBYADDR_R_7], [Set to 1 if gethostbyaddr_r takes 7 arguments])
19 AH_TEMPLATE([HAVE_GETHOSTBYADDR_R_8], [Set to 1 if gethostbyaddr_r takes 8 arguments])
20 AH_TEMPLATE([HAVE_PCAP_FREECODE_2], [Set to 1 if pcap_freecode takes 2 arguments])
21 AH_TEMPLATE([HAVE_PCAP_FREECODE_1], [Set to 1 if pcap_freecode takes 1 argument])
22 AH_TEMPLATE([HAVE_IP6_S6_ADDR32], [Set to 1 if struct in6_addr contains s6_addr32 member])
23 AH_TEMPLATE([HAVE_IP6__S6_UN__S6_U32], [Set to 1 if struct in6_addr contains _S6_un._S6_u32 member])
24 AH_TEMPLATE([HAVE_IP6___U6_ADDR___U6_ADDR32], [Set to 1 if struct in6_addr contains __u6_addr.__u6_addr32 member])
25 AH_TEMPLATE([NEED_REENTRANT], [Set to 1 if gethostbyaddr_r requires _REENTRANT symbol to be defined])
27 AC_DEFUN(AC_NETTOP_GCC_FLAGS,
29 if test "$GCC" = "yes"; then
30 CFLAGS="$CFLAGS -Wall"
36 # AC_NETTOP_GETHOSTBY_LIB_CHECK
38 # Checks whether we need "-lnsl" to get "gethostby*()", which we use
41 # Copied from EtherReal package ;
42 # Done by Jakub Skopal <j@kubs.cz> on 2002-08-22.
44 # Adapted from stuff in the AC_PATH_XTRA macro in "acspecific.m4" in
45 # GNU Autoconf 2.13; the comment came from there.
46 # Done by Guy Harris <guy@alum.mit.edu> on 2000-01-14.
48 AC_DEFUN(AC_NETTOP_GETHOSTBY_LIB_CHECK,
50 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
51 # to get the SysV transport functions.
52 # chad@anasazi.com says the Pyramid MIS-ES running DC/OSx (SVR4)
54 # The nsl library prevents programs from opening the X display
55 # on Irix 5.2, according to dickey@clark.net.
56 AC_CHECK_FUNC(gethostbyname, ,
57 AC_CHECK_LIB(nsl, gethostbyname, NSL_LIBS="-lnsl"))
63 # AC_NETTOP_SOCKET_LIB_CHECK
65 # Checks whether we need "-lsocket" to get "socket()", which is used
66 # by libpcap on some platforms - and, in effect, "gethostby*()" on
67 # most if not all platforms (so that it can use NIS or DNS or...
68 # to look up host names).
70 # Copied from EtherReal package ;
71 # Done by Jakub Skopal <j@kubs.cz> on 2002-08-22.
73 # Adapted from stuff in the AC_PATH_XTRA macro in "acspecific.m4" in
74 # GNU Autoconf 2.13; the comment came from there.
75 # Done by Guy Harris <guy@alum.mit.edu> on 2000-01-14.
77 # We use "connect" because that's what AC_PATH_XTRA did.
79 AC_DEFUN(AC_NETTOP_SOCKET_LIB_CHECK,
81 # lieder@skyler.mavd.honeywell.com says without -lsocket,
82 # socket/setsockopt and other routines are undefined under SCO ODT
83 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
84 # on later versions), says simon@lia.di.epfl.ch: it contains
85 # gethostby* variants that don't use the nameserver (or something).
86 # -lsocket must be given before -lnsl if both are needed.
87 # We assume that if connect needs -lnsl, so does gethostbyname.
88 AC_CHECK_FUNC(connect, ,
89 AC_CHECK_LIB(socket, connect, SOCKET_LIBS="-lsocket",
90 AC_MSG_ERROR(Function 'socket' not found.), $NSL_LIBS))
95 # AC_NETTOP_PCAP_CHECK
97 AC_DEFUN(AC_NETTOP_PCAP_CHECK,
99 if test -z "$pcap_dir"
102 # The user didn't specify a directory in which libpcap resides;
103 # we assume that the current library search path will work,
104 # but we may have to look for the header in a "pcap"
105 # subdirectory of "/usr/include" or "/usr/local/include",
106 # as some systems apparently put "pcap.h" in a "pcap"
107 # subdirectory, and we also check "$prefix/include".
109 # XXX - should we just add "$prefix/include" to the include
110 # search path and "$prefix/lib" to the library search path?
112 AC_MSG_CHECKING(for extraneous pcap header directories)
114 for pcap_dir in /usr/include/pcap /usr/local/include/pcap $prefix/include
116 if test -d $pcap_dir ; then
117 if test x$pcap_dir != x/usr/include; then
118 CFLAGS="$CFLAGS -I$pcap_dir"
119 CPPFLAGS="$CPPFLAGS -I$pcap_dir"
121 found_pcap_dir=" $found_pcap_dir -I$pcap_dir"
125 if test "$found_pcap_dir" != "" ; then
126 AC_MSG_RESULT(found --$found_pcap_dir added to CFLAGS)
128 AC_MSG_RESULT(not found)
132 # The user specified a directory in which libpcap resides,
133 # so add the "include" subdirectory of that directory to
134 # the include file search path and the "lib" subdirectory
135 # of that directory to the library search path.
137 # XXX - if there's also a libpcap in a directory that's
138 # already in CFLAGS, CPPFLAGS, or LDFLAGS, this won't
139 # make us find the version in the specified directory,
140 # as the compiler and/or linker will search that other
141 # directory before it searches the specified directory.
143 CFLAGS="$CFLAGS -I$pcap_dir/include"
144 CPPFLAGS="$CPPFLAGS -I$pcap_dir/include"
145 LDFLAGS="$LDFLAGS -L$pcap_dir/lib"
149 AC_CHECK_HEADER(pcap.h,, AC_MSG_ERROR(Header file pcap.h not found.))
151 AC_CHECK_LIB(pcap, pcap_open_live,, AC_MSG_ERROR(Library libpcap not found.),
152 $SOCKET_LIBS $NSL_LIBS)
155 dnl ************************************************************
156 dnl check for "localhost", if it doesn't exist, we can't do the
157 dnl gethostbyname_r tests!
159 dnl Copied from cURL package ;
160 dnl Done by Jakub Skopal <j@kubs.cz> on 2002-08-28.
163 AC_DEFUN(AC_NETTOP_CHECK_WORKING_RESOLVER,[
164 AC_MSG_CHECKING([if "localhost" resolves])
167 #include <sys/types.h>
173 h = gethostbyname("localhost");
174 exit (h == NULL ? 1 : 0); }],[
175 AC_MSG_RESULT(yes)],[
177 AC_MSG_ERROR([can't figure out gethostbyname_r() since localhost doesn't resolve])
184 dnl Try to discover struct in6_addr members
186 AC_DEFUN(AC_NETTOP_CHECK_IN6_ADDR,
188 AC_MSG_CHECKING([if struct in6_addr contains s6_addr32 member])
190 #include <sys/types.h>
191 #include <netinet/in.h>],[
196 AC_DEFINE(HAVE_IP6_S6_ADDR32)],[
198 AC_MSG_CHECKING([if struct in6_addr contains _S6_un._S6_u32 member])
200 #include <sys/types.h>
201 #include <netinet/in.h>],[
203 adr._S6_un._S6_u32[0]=0;
206 AC_DEFINE(HAVE_IP6__S6_UN__S6_U32)],[
208 AC_MSG_CHECKING([if struct in6_addr contains __u6_addr.__u6_addr32 member])
210 #include <sys/types.h>
211 #include <netinet/in.h>],[
213 adr.__u6_addr.__u6_addr32[0]=0;
216 AC_DEFINE(HAVE_IP6___U6_ADDR___U6_ADDR32)],[
218 AC_MSG_ERROR([can't figure out members of struct in6_addr])
228 dnl Find number of arguments of pcap_freecode
230 AC_DEFUN(AC_NETTOP_CHECK_PCAP_FREECODE,
232 dnl check for number of arguments to pcap_freecode. it might take
234 AC_MSG_CHECKING(if pcap_freecode takes 2 arguments)
237 struct bpf_program *program;
239 pcap_freecode(pcap, program);],[
241 AC_DEFINE(HAVE_PCAP_FREECODE_2)
242 ac_cv_pcap_freecode_args=2],[
244 AC_MSG_CHECKING(if pcap_freecode takes 1 argument)
247 struct bpf_program *program;
248 pcap_freecode(program);],[
250 AC_DEFINE(HAVE_PCAP_FREECODE_1)
251 ac_cv_pcap_freecode_args=1],[
253 AC_MSG_ERROR([cannot discover number of arguments of pcap_freecode])
261 dnl Copied from cURL package ;
262 dnl Done by Jakub Skopal <j@kubs.cz> on 2002-08-28.
264 AC_DEFUN(AC_NETTOP_CHECK_GETHOSTBYADDR_R,
266 AC_ARG_ENABLE(multithreaded-resolver, AC_HELP_STRING([--disable-multithreaded-resolver],[do not try to use multithreaded resolver !!FreeBSD!!]), disable_multithreaded_resolver=yes)
268 if test "x$disable_multithreaded_resolver" != "xyes"; then
270 if uname -a | grep "FreeBSD" > /dev/null 2>&1; then
271 echo "**********************************************************************"
272 echo "** configure script detected, that you're using FreeBSD. **"
273 echo "** 5.1-RELEASE and maybe others have been found to contain **"
274 echo "** bogus implementation of gethostbyaddr_r function. **"
276 echo "** IN CASE YOU ENCOUNTER ANY Bus Error OR SegFault PROBLEMS WITH **"
277 echo "** jnettop, PLEASE SPECIFY --disable-multithreaded-resolver **"
278 echo "** OPTION TO CONFIGURE SCRIPT!! **"
279 echo "**********************************************************************"
282 dnl check for number of arguments to gethostbyaddr_r. it might take
283 dnl either 5, 7, or 8 arguments.
284 AC_CHECK_FUNCS(gethostbyaddr_r,[
285 AC_MSG_CHECKING(if gethostbyaddr_r takes 5 arguments)
287 #include <sys/types.h>
288 #include <netdb.h>],[
293 struct hostent_data hdata;
295 rc = gethostbyaddr_r(address, length, type, &h, &hdata);],[
297 AC_DEFINE(HAVE_GETHOSTBYADDR_R_5)
298 ac_cv_gethostbyaddr_args=5],[
300 AC_MSG_CHECKING(if gethostbyaddr_r with -D_REENTRANT takes 5 arguments)
303 #include <sys/types.h>
304 #include <netdb.h>],[
309 struct hostent_data hdata;
311 rc = gethostbyaddr_r(address, length, type, &h, &hdata);],[
313 AC_DEFINE(HAVE_GETHOSTBYADDR_R_5)
314 AC_DEFINE(NEED_REENTRANT)
315 ac_cv_gethostbyaddr_args=5],[
317 AC_MSG_CHECKING(if gethostbyaddr_r takes 8 arguments)
319 #include <sys/types.h>
320 #include <netdb.h>],[
330 rc = gethostbyaddr_r(address, length, type, &h,
331 buffer, 8192, &hp, &h_errnop);],[
333 AC_DEFINE(HAVE_GETHOSTBYADDR_R_8)
334 ac_cv_gethostbyaddr_args=8],[
336 have_missing_r_funcs="$have_missing_r_funcs gethostbyaddr_r"])])])])
344 # Do all the work for Automake. -*- Autoconf -*-
346 # This macro actually does too much some checks are only needed if
347 # your package does certain things. But this isn't really a big deal.
349 # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
350 # Free Software Foundation, Inc.
352 # This program is free software; you can redistribute it and/or modify
353 # it under the terms of the GNU General Public License as published by
354 # the Free Software Foundation; either version 2, or (at your option)
357 # This program is distributed in the hope that it will be useful,
358 # but WITHOUT ANY WARRANTY; without even the implied warranty of
359 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
360 # GNU General Public License for more details.
362 # You should have received a copy of the GNU General Public License
363 # along with this program; if not, write to the Free Software
364 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
369 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
370 # written in clear, in which case automake, when reading aclocal.m4,
371 # will think it sees a *use*, and therefore will trigger all it's
372 # C support machinery. Also note that it means that autoscan, seeing
373 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
378 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
379 # the ones we care about.
380 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
382 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
383 # AM_INIT_AUTOMAKE([OPTIONS])
384 # -----------------------------------------------
385 # The call with PACKAGE and VERSION arguments is the old style
386 # call (pre autoconf-2.50), which is being phased out. PACKAGE
387 # and VERSION should now be passed to AC_INIT and removed from
388 # the call to AM_INIT_AUTOMAKE.
389 # We support both call styles for the transition. After
390 # the next Automake release, Autoconf can make the AC_INIT
391 # arguments mandatory, and then we can depend on a new Autoconf
392 # release and drop the old call support.
393 AC_DEFUN([AM_INIT_AUTOMAKE],
394 [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
395 AC_REQUIRE([AC_PROG_INSTALL])dnl
396 # test to see if srcdir already configured
397 if test "`cd $srcdir && pwd`" != "`pwd`" &&
398 test -f $srcdir/config.status; then
399 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
402 # Define the identity of the package.
403 dnl Distinguish between old-style and new-style calls.
405 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
406 AC_SUBST([PACKAGE], [$1])dnl
407 AC_SUBST([VERSION], [$2])],
408 [_AM_SET_OPTIONS([$1])dnl
409 AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])dnl
410 AC_SUBST([VERSION], [AC_PACKAGE_VERSION])])dnl
412 _AM_IF_OPTION([no-define],,
413 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
414 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
416 # Some tools Automake needs.
417 AC_REQUIRE([AM_SANITY_CHECK])dnl
418 AC_REQUIRE([AC_ARG_PROGRAM])dnl
419 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
420 AM_MISSING_PROG(AUTOCONF, autoconf)
421 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
422 AM_MISSING_PROG(AUTOHEADER, autoheader)
423 AM_MISSING_PROG(MAKEINFO, makeinfo)
424 AM_MISSING_PROG(AMTAR, tar)
426 AM_PROG_INSTALL_STRIP
427 # We need awk for the "check" target. The system "awk" is bad on
429 AC_REQUIRE([AC_PROG_AWK])dnl
430 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
432 _AM_IF_OPTION([no-dependencies],,
433 [AC_PROVIDE_IFELSE([AC_PROG_][CC],
434 [_AM_DEPENDENCIES(CC)],
435 [define([AC_PROG_][CC],
436 defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl
437 AC_PROVIDE_IFELSE([AC_PROG_][CXX],
438 [_AM_DEPENDENCIES(CXX)],
439 [define([AC_PROG_][CXX],
440 defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl
444 # Copyright 2002 Free Software Foundation, Inc.
446 # This program is free software; you can redistribute it and/or modify
447 # it under the terms of the GNU General Public License as published by
448 # the Free Software Foundation; either version 2, or (at your option)
451 # This program is distributed in the hope that it will be useful,
452 # but WITHOUT ANY WARRANTY; without even the implied warranty of
453 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
454 # GNU General Public License for more details.
456 # You should have received a copy of the GNU General Public License
457 # along with this program; if not, write to the Free Software
458 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
460 # AM_AUTOMAKE_VERSION(VERSION)
461 # ----------------------------
462 # Automake X.Y traces this macro to ensure aclocal.m4 has been
463 # generated from the m4 files accompanying Automake X.Y.
464 AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.6"])
466 # AM_SET_CURRENT_AUTOMAKE_VERSION
467 # -------------------------------
468 # Call AM_AUTOMAKE_VERSION so it can be traced.
469 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
470 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
471 [AM_AUTOMAKE_VERSION([1.6.3])])
473 # Helper functions for option handling. -*- Autoconf -*-
475 # Copyright 2001, 2002 Free Software Foundation, Inc.
477 # This program is free software; you can redistribute it and/or modify
478 # it under the terms of the GNU General Public License as published by
479 # the Free Software Foundation; either version 2, or (at your option)
482 # This program is distributed in the hope that it will be useful,
483 # but WITHOUT ANY WARRANTY; without even the implied warranty of
484 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
485 # GNU General Public License for more details.
487 # You should have received a copy of the GNU General Public License
488 # along with this program; if not, write to the Free Software
489 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
494 # _AM_MANGLE_OPTION(NAME)
495 # -----------------------
496 AC_DEFUN([_AM_MANGLE_OPTION],
497 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
499 # _AM_SET_OPTION(NAME)
500 # ------------------------------
501 # Set option NAME. Presently that only means defining a flag for this option.
502 AC_DEFUN([_AM_SET_OPTION],
503 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
505 # _AM_SET_OPTIONS(OPTIONS)
506 # ----------------------------------
507 # OPTIONS is a space-separated list of Automake options.
508 AC_DEFUN([_AM_SET_OPTIONS],
509 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
511 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
512 # -------------------------------------------
513 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
514 AC_DEFUN([_AM_IF_OPTION],
515 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
518 # Check to make sure that the build environment is sane.
521 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
523 # This program is free software; you can redistribute it and/or modify
524 # it under the terms of the GNU General Public License as published by
525 # the Free Software Foundation; either version 2, or (at your option)
528 # This program is distributed in the hope that it will be useful,
529 # but WITHOUT ANY WARRANTY; without even the implied warranty of
530 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
531 # GNU General Public License for more details.
533 # You should have received a copy of the GNU General Public License
534 # along with this program; if not, write to the Free Software
535 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
542 AC_DEFUN([AM_SANITY_CHECK],
543 [AC_MSG_CHECKING([whether build environment is sane])
546 echo timestamp > conftest.file
547 # Do `set' in a subshell so we don't clobber the current shell's
548 # arguments. Must try -L first in case configure is actually a
549 # symlink; some systems play weird games with the mod time of symlinks
550 # (eg FreeBSD returns the mod time of the symlink's containing
553 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
554 if test "$[*]" = "X"; then
556 set X `ls -t $srcdir/configure conftest.file`
559 if test "$[*]" != "X $srcdir/configure conftest.file" \
560 && test "$[*]" != "X conftest.file $srcdir/configure"; then
562 # If neither matched, then we have a broken ls. This can happen
563 # if, for instance, CONFIG_SHELL is bash and it inherits a
564 # broken ls alias from the environment. This has actually
565 # happened. Such a system could not be considered "sane".
566 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
567 alias in your environment])
570 test "$[2]" = conftest.file
576 AC_MSG_ERROR([newly created file is older than distributed files!
577 Check your system clock])
584 # Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
586 # This program is free software; you can redistribute it and/or modify
587 # it under the terms of the GNU General Public License as published by
588 # the Free Software Foundation; either version 2, or (at your option)
591 # This program is distributed in the hope that it will be useful,
592 # but WITHOUT ANY WARRANTY; without even the implied warranty of
593 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
594 # GNU General Public License for more details.
596 # You should have received a copy of the GNU General Public License
597 # along with this program; if not, write to the Free Software
598 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
603 # AM_MISSING_PROG(NAME, PROGRAM)
604 # ------------------------------
605 AC_DEFUN([AM_MISSING_PROG],
606 [AC_REQUIRE([AM_MISSING_HAS_RUN])
607 $1=${$1-"${am_missing_run}$2"}
613 # Define MISSING if not defined so far and test if it supports --run.
614 # If it does, set am_missing_run to use it, otherwise, to nothing.
615 AC_DEFUN([AM_MISSING_HAS_RUN],
616 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
617 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
618 # Use eval to expand $SHELL
619 if eval "$MISSING --run true"; then
620 am_missing_run="$MISSING --run "
623 AC_MSG_WARN([`missing' script is too old or missing])
629 # Copyright 2001 Free Software Foundation, Inc.
631 # This program is free software; you can redistribute it and/or modify
632 # it under the terms of the GNU General Public License as published by
633 # the Free Software Foundation; either version 2, or (at your option)
636 # This program is distributed in the hope that it will be useful,
637 # but WITHOUT ANY WARRANTY; without even the implied warranty of
638 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
639 # GNU General Public License for more details.
641 # You should have received a copy of the GNU General Public License
642 # along with this program; if not, write to the Free Software
643 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
646 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
647 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
648 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
650 # Of course, Automake must honor this variable whenever it calls a
651 # tool from the auxiliary directory. The problem is that $srcdir (and
652 # therefore $ac_aux_dir as well) can be either absolute or relative,
653 # depending on how configure is run. This is pretty annoying, since
654 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
655 # source directory, any form will work fine, but in subdirectories a
656 # relative path needs to be adjusted first.
658 # $ac_aux_dir/missing
659 # fails when called from a subdirectory if $ac_aux_dir is relative
660 # $top_srcdir/$ac_aux_dir/missing
661 # fails if $ac_aux_dir is absolute,
662 # fails when called from a subdirectory in a VPATH build with
663 # a relative $ac_aux_dir
665 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
666 # are both prefixed by $srcdir. In an in-source build this is usually
667 # harmless because $srcdir is `.', but things will broke when you
668 # start a VPATH build or use an absolute $srcdir.
670 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
671 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
672 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
673 # and then we would define $MISSING as
674 # MISSING="\${SHELL} $am_aux_dir/missing"
675 # This will work as long as MISSING is not called from configure, because
676 # unfortunately $(top_srcdir) has no meaning in configure.
677 # However there are other variables, like CC, which are often used in
678 # configure, and could therefore not use this "fixed" $ac_aux_dir.
680 # Another solution, used here, is to always expand $ac_aux_dir to an
681 # absolute PATH. The drawback is that using absolute paths prevent a
682 # configured tree to be moved without reconfiguration.
684 # Rely on autoconf to set up CDPATH properly.
687 AC_DEFUN([AM_AUX_DIR_EXPAND], [
688 # expand $ac_aux_dir to an absolute path
689 am_aux_dir=`cd $ac_aux_dir && pwd`
694 # Define $install_sh.
696 # Copyright 2001 Free Software Foundation, Inc.
698 # This program is free software; you can redistribute it and/or modify
699 # it under the terms of the GNU General Public License as published by
700 # the Free Software Foundation; either version 2, or (at your option)
703 # This program is distributed in the hope that it will be useful,
704 # but WITHOUT ANY WARRANTY; without even the implied warranty of
705 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
706 # GNU General Public License for more details.
708 # You should have received a copy of the GNU General Public License
709 # along with this program; if not, write to the Free Software
710 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
713 AC_DEFUN([AM_PROG_INSTALL_SH],
714 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
715 install_sh=${install_sh-"$am_aux_dir/install-sh"}
716 AC_SUBST(install_sh)])
718 # AM_PROG_INSTALL_STRIP
720 # Copyright 2001 Free Software Foundation, Inc.
722 # This program is free software; you can redistribute it and/or modify
723 # it under the terms of the GNU General Public License as published by
724 # the Free Software Foundation; either version 2, or (at your option)
727 # This program is distributed in the hope that it will be useful,
728 # but WITHOUT ANY WARRANTY; without even the implied warranty of
729 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
730 # GNU General Public License for more details.
732 # You should have received a copy of the GNU General Public License
733 # along with this program; if not, write to the Free Software
734 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
737 # One issue with vendor `install' (even GNU) is that you can't
738 # specify the program used to strip binaries. This is especially
739 # annoying in cross-compiling environments, where the build's strip
740 # is unlikely to handle the host's binaries.
741 # Fortunately install-sh will honor a STRIPPROG variable, so we
742 # always use install-sh in `make install-strip', and initialize
743 # STRIPPROG with the value of the STRIP variable (set by the user).
744 AC_DEFUN([AM_PROG_INSTALL_STRIP],
745 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
746 # Installed binaries are usually stripped using `strip' when the user
747 # run `make install-strip'. However `strip' might not be the right
748 # tool to use in cross-compilation environments, therefore Automake
749 # will honor the `STRIP' environment variable to overrule this program.
750 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
751 if test "$cross_compiling" != no; then
752 AC_CHECK_TOOL([STRIP], [strip], :)
754 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
755 AC_SUBST([INSTALL_STRIP_PROGRAM])])
757 # serial 4 -*- Autoconf -*-
759 # Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
761 # This program is free software; you can redistribute it and/or modify
762 # it under the terms of the GNU General Public License as published by
763 # the Free Software Foundation; either version 2, or (at your option)
766 # This program is distributed in the hope that it will be useful,
767 # but WITHOUT ANY WARRANTY; without even the implied warranty of
768 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
769 # GNU General Public License for more details.
771 # You should have received a copy of the GNU General Public License
772 # along with this program; if not, write to the Free Software
773 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
777 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
778 # written in clear, in which case automake, when reading aclocal.m4,
779 # will think it sees a *use*, and therefore will trigger all it's
780 # C support machinery. Also note that it means that autoscan, seeing
781 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
785 # _AM_DEPENDENCIES(NAME)
786 # ----------------------
787 # See how the compiler implements dependency checking.
788 # NAME is "CC", "CXX", "GCJ", or "OBJC".
789 # We try a few techniques and use that to set a single cache variable.
791 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
792 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
793 # dependency, and given that the user is not expected to run this macro,
794 # just rely on AC_PROG_CC.
795 AC_DEFUN([_AM_DEPENDENCIES],
796 [AC_REQUIRE([AM_SET_DEPDIR])dnl
797 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
798 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
799 AC_REQUIRE([AM_DEP_TRACK])dnl
801 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
802 [$1], CXX, [depcc="$CXX" am_compiler_list=],
803 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
804 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
805 [depcc="$$1" am_compiler_list=])
807 AC_CACHE_CHECK([dependency style of $depcc],
808 [am_cv_$1_dependencies_compiler_type],
809 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
810 # We make a subdir and do the tests there. Otherwise we can end up
811 # making bogus files that we don't know about and never remove. For
812 # instance it was reported that on HP-UX the gcc test will end up
813 # making a dummy file named `D' -- because `-MD' means `put the output
816 # Copy depcomp to subdir because otherwise we won't find it if we're
817 # using a relative directory.
818 cp "$am_depcomp" conftest.dir
821 am_cv_$1_dependencies_compiler_type=none
822 if test "$am_compiler_list" = ""; then
823 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
825 for depmode in $am_compiler_list; do
826 # We need to recreate these files for each test, as the compiler may
827 # overwrite some of them when testing with obscure command lines.
828 # This happens at least with the AIX C compiler.
829 echo '#include "conftest.h"' > conftest.c
830 echo 'int i;' > conftest.h
831 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
835 # after this tag, mechanisms are not by side-effect, so they'll
836 # only be used when explicitly requested
837 if test "x$enable_dependency_tracking" = xyes; then
845 # We check with `-c' and `-o' for the sake of the "dashmstdout"
846 # mode. It turns out that the SunPro C++ compiler does not properly
847 # handle `-M -o', and we need to detect this.
848 if depmode=$depmode \
849 source=conftest.c object=conftest.o \
850 depfile=conftest.Po tmpdepfile=conftest.TPo \
851 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
852 grep conftest.h conftest.Po > /dev/null 2>&1 &&
853 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
854 am_cv_$1_dependencies_compiler_type=$depmode
862 am_cv_$1_dependencies_compiler_type=none
865 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
871 # Choose a directory name for dependency files.
872 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
873 AC_DEFUN([AM_SET_DEPDIR],
874 [rm -f .deps 2>/dev/null
875 mkdir .deps 2>/dev/null
876 if test -d .deps; then
879 # MS-DOS does not allow filenames that begin with a dot.
882 rmdir .deps 2>/dev/null
889 AC_DEFUN([AM_DEP_TRACK],
890 [AC_ARG_ENABLE(dependency-tracking,
891 [ --disable-dependency-tracking Speeds up one-time builds
892 --enable-dependency-tracking Do not reject slow dependency extractors])
893 if test "x$enable_dependency_tracking" != xno; then
894 am_depcomp="$ac_aux_dir/depcomp"
897 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
898 AC_SUBST([AMDEPBACKSLASH])
901 # Generate code to set up dependency tracking. -*- Autoconf -*-
903 # Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
905 # This program is free software; you can redistribute it and/or modify
906 # it under the terms of the GNU General Public License as published by
907 # the Free Software Foundation; either version 2, or (at your option)
910 # This program is distributed in the hope that it will be useful,
911 # but WITHOUT ANY WARRANTY; without even the implied warranty of
912 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
913 # GNU General Public License for more details.
915 # You should have received a copy of the GNU General Public License
916 # along with this program; if not, write to the Free Software
917 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
922 # _AM_OUTPUT_DEPENDENCY_COMMANDS
923 # ------------------------------
924 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
925 [for mf in $CONFIG_FILES; do
926 # Strip MF so we end up with the name of the file.
927 mf=`echo "$mf" | sed -e 's/:.*$//'`
928 # Check whether this is an Automake generated Makefile or not.
929 # We used to match only the files named `Makefile.in', but
930 # some people rename them; so instead we look at the file content.
931 # Grep'ing the first line is not enough: some people post-process
932 # each Makefile.in and add a new line on top of each file to say so.
933 # So let's grep whole file.
934 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
935 dirpart=`AS_DIRNAME("$mf")`
939 grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
940 # Extract the definition of DEP_FILES from the Makefile without
942 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
943 test -z "$DEPDIR" && continue
944 # When using ansi2knr, U may be empty or an underscore; expand it
945 U=`sed -n -e '/^U = / s///p' < "$mf"`
946 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
947 # We invoke sed twice because it is the simplest approach to
948 # changing $(DEPDIR) to its actual value in the expansion.
949 for file in `sed -n -e '
950 /^DEP_FILES = .*\\\\$/ {
959 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
960 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
961 # Make sure the directory exists.
962 test -f "$dirpart/$file" && continue
963 fdir=`AS_DIRNAME(["$file"])`
964 AS_MKDIR_P([$dirpart/$fdir])
965 # echo "creating $dirpart/$file"
966 echo '# dummy' > "$dirpart/$file"
969 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
972 # AM_OUTPUT_DEPENDENCY_COMMANDS
973 # -----------------------------
974 # This macro should only be invoked once -- use via AC_REQUIRE.
976 # This code is only required when automatic dependency tracking
977 # is enabled. FIXME. This creates each `.P' file that we will
978 # need in order to bootstrap the dependency handling code.
979 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
980 [AC_CONFIG_COMMANDS([depfiles],
981 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
982 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
985 # Copyright 2001 Free Software Foundation, Inc. -*- Autoconf -*-
987 # This program is free software; you can redistribute it and/or modify
988 # it under the terms of the GNU General Public License as published by
989 # the Free Software Foundation; either version 2, or (at your option)
992 # This program is distributed in the hope that it will be useful,
993 # but WITHOUT ANY WARRANTY; without even the implied warranty of
994 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
995 # GNU General Public License for more details.
997 # You should have received a copy of the GNU General Public License
998 # along with this program; if not, write to the Free Software
999 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1006 # Check to see how make treats includes.
1007 AC_DEFUN([AM_MAKE_INCLUDE],
1008 [am_make=${MAKE-make}
1009 cat > confinc << 'END'
1013 # If we don't find an include directive, just comment out the code.
1014 AC_MSG_CHECKING([for style of include used by $am_make])
1018 # First try GNU make style include.
1019 echo "include confinc" > confmf
1020 # We grep out `Entering directory' and `Leaving directory'
1021 # messages which can occur if `w' ends up in MAKEFLAGS.
1022 # In particular we don't look at `^make:' because GNU make might
1023 # be invoked under some other name (usually "gmake"), in which
1024 # case it prints its new name instead of `make'.
1025 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
1030 # Now try BSD make style include.
1031 if test "$am__include" = "#"; then
1032 echo '.include "confinc"' > confmf
1033 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1034 am__include=.include
1039 AC_SUBST(am__include)
1041 AC_MSG_RESULT($_am_result)
1042 rm -f confinc confmf
1045 # AM_CONDITIONAL -*- Autoconf -*-
1047 # Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
1049 # This program is free software; you can redistribute it and/or modify
1050 # it under the terms of the GNU General Public License as published by
1051 # the Free Software Foundation; either version 2, or (at your option)
1052 # any later version.
1054 # This program is distributed in the hope that it will be useful,
1055 # but WITHOUT ANY WARRANTY; without even the implied warranty of
1056 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1057 # GNU General Public License for more details.
1059 # You should have received a copy of the GNU General Public License
1060 # along with this program; if not, write to the Free Software
1061 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1068 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
1069 # -------------------------------------
1070 # Define a conditional.
1071 AC_DEFUN([AM_CONDITIONAL],
1072 [ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
1073 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
1075 AC_SUBST([$1_FALSE])
1083 AC_CONFIG_COMMANDS_PRE(
1084 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
1085 AC_MSG_ERROR([conditional \"$1\" was never defined.
1086 Usually this means the macro was only invoked conditionally.])
1089 # Configure paths for GLIB
1090 # Owen Taylor 1997-2001
1092 dnl AM_PATH_GLIB_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
1093 dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if gmodule, gobject or
1094 dnl gthread is specified in MODULES, pass to pkg-config
1096 AC_DEFUN([AM_PATH_GLIB_2_0],
1098 dnl Get the cflags and libraries from pkg-config
1100 AC_ARG_ENABLE(glibtest, [ --disable-glibtest do not try to compile and run a test GLIB program],
1101 , enable_glibtest=yes)
1103 pkg_config_args=glib-2.0
1108 pkg_config_args="$pkg_config_args gmodule-2.0"
1111 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
1114 pkg_config_args="$pkg_config_args gobject-2.0"
1117 pkg_config_args="$pkg_config_args gthread-2.0"
1122 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
1126 if test x$PKG_CONFIG != xno ; then
1127 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
1130 echo *** pkg-config too old; version 0.7 or better required.
1138 min_glib_version=ifelse([$1], ,2.0.0,$1)
1139 AC_MSG_CHECKING(for GLIB - version >= $min_glib_version)
1141 if test x$PKG_CONFIG != xno ; then
1142 ## don't try to run the test against uninstalled libtool libs
1143 if $PKG_CONFIG --uninstalled $pkg_config_args; then
1144 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
1148 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
1155 if test x"$no_glib" = x ; then
1156 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
1157 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
1158 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
1160 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
1161 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
1162 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
1163 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
1164 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
1165 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
1166 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
1167 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
1168 if test "x$enable_glibtest" = "xyes" ; then
1169 ac_save_CFLAGS="$CFLAGS"
1170 ac_save_LIBS="$LIBS"
1171 CFLAGS="$CFLAGS $GLIB_CFLAGS"
1172 LIBS="$GLIB_LIBS $LIBS"
1174 dnl Now check if the installed GLIB is sufficiently new. (Also sanity
1175 dnl checks the results of pkg-config to some extent)
1186 int major, minor, micro;
1189 system ("touch conf.glibtest");
1191 /* HP/UX 9 (%@#!) writes to sscanf strings */
1192 tmp_version = g_strdup("$min_glib_version");
1193 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
1194 printf("%s, bad version string\n", "$min_glib_version");
1198 if ((glib_major_version != $glib_config_major_version) ||
1199 (glib_minor_version != $glib_config_minor_version) ||
1200 (glib_micro_version != $glib_config_micro_version))
1202 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
1203 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
1204 glib_major_version, glib_minor_version, glib_micro_version);
1205 printf ("*** was found! If pkg-config was correct, then it is best\n");
1206 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
1207 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
1208 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
1209 printf("*** required on your system.\n");
1210 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
1211 printf("*** to point to the correct configuration files\n");
1213 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
1214 (glib_minor_version != GLIB_MINOR_VERSION) ||
1215 (glib_micro_version != GLIB_MICRO_VERSION))
1217 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
1218 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
1219 printf("*** library (version %d.%d.%d)\n",
1220 glib_major_version, glib_minor_version, glib_micro_version);
1224 if ((glib_major_version > major) ||
1225 ((glib_major_version == major) && (glib_minor_version > minor)) ||
1226 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
1232 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
1233 glib_major_version, glib_minor_version, glib_micro_version);
1234 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
1235 major, minor, micro);
1236 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
1238 printf("*** If you have already installed a sufficiently new version, this error\n");
1239 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
1240 printf("*** being found. The easiest way to fix this is to remove the old version\n");
1241 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
1242 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
1243 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
1244 printf("*** so that the correct libraries are found at run-time))\n");
1249 ],, no_glib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
1250 CFLAGS="$ac_save_CFLAGS"
1251 LIBS="$ac_save_LIBS"
1254 if test "x$no_glib" = x ; then
1255 AC_MSG_RESULT(yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version))
1256 ifelse([$2], , :, [$2])
1259 if test "$PKG_CONFIG" = "no" ; then
1260 echo "*** A new enough version of pkg-config was not found."
1261 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
1263 if test -f conf.glibtest ; then
1266 echo "*** Could not run GLIB test program, checking why..."
1267 ac_save_CFLAGS="$CFLAGS"
1268 ac_save_LIBS="$LIBS"
1269 CFLAGS="$CFLAGS $GLIB_CFLAGS"
1270 LIBS="$LIBS $GLIB_LIBS"
1274 ], [ return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ],
1275 [ echo "*** The test program compiled, but did not run. This usually means"
1276 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
1277 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
1278 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
1279 echo "*** to the installed location Also, make sure you have run ldconfig if that"
1280 echo "*** is required on your system"
1282 echo "*** If you have an old version installed, it is best to remove it, although"
1283 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
1284 [ echo "*** The test program failed to compile or link. See the file config.log for the"
1285 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."])
1286 CFLAGS="$ac_save_CFLAGS"
1287 LIBS="$ac_save_LIBS"
1295 ifelse([$3], , :, [$3])
1297 AC_SUBST(GLIB_CFLAGS)
1299 AC_SUBST(GLIB_GENMARSHAL)
1300 AC_SUBST(GOBJECT_QUERY)
1301 AC_SUBST(GLIB_MKENUMS)
1305 # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
1307 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
1309 # This program is free software; you can redistribute it and/or modify
1310 # it under the terms of the GNU General Public License as published by
1311 # the Free Software Foundation; either version 2, or (at your option)
1312 # any later version.
1314 # This program is distributed in the hope that it will be useful,
1315 # but WITHOUT ANY WARRANTY; without even the implied warranty of
1316 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1317 # GNU General Public License for more details.
1319 # You should have received a copy of the GNU General Public License
1320 # along with this program; if not, write to the Free Software
1321 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1328 # When config.status generates a header, we must update the stamp-h file.
1329 # This file resides in the same directory as the config header
1330 # that is generated. We must strip everything past the first ":",
1331 # and everything past the last "/".
1335 # Like AS_DIRNAME, only do it during macro expansion
1336 AC_DEFUN([_AM_DIRNAME],
1337 [m4_if(regexp([$1], [^.*[^/]//*[^/][^/]*/*$]), -1,
1338 m4_if(regexp([$1], [^//\([^/]\|$\)]), -1,
1339 m4_if(regexp([$1], [^/.*]), -1,
1341 patsubst([$1], [^\(/\).*], [\1])),
1342 patsubst([$1], [^\(//\)\([^/].*\|$\)], [\1])),
1343 patsubst([$1], [^\(.*[^/]\)//*[^/][^/]*/*$], [\1]))[]dnl
1347 # The stamp files are numbered to have different names.
1348 # We could number them on a directory basis, but that's additional
1349 # complications, let's have a unique counter.
1350 m4_define([_AM_STAMP_Count], [0])
1355 # The name of the stamp file for HEADER.
1356 AC_DEFUN([_AM_STAMP],
1357 [m4_define([_AM_STAMP_Count], m4_incr(_AM_STAMP_Count))dnl
1358 AS_ESCAPE(_AM_DIRNAME(patsubst([$1],
1359 [:.*])))/stamp-h[]_AM_STAMP_Count])
1362 # _AM_CONFIG_HEADER(HEADER[:SOURCES], COMMANDS, INIT-COMMANDS)
1363 # ------------------------------------------------------------
1364 # We used to try to get a real timestamp in stamp-h. But the fear is that
1365 # that will cause unnecessary cvs conflicts.
1366 AC_DEFUN([_AM_CONFIG_HEADER],
1367 [# Add the stamp file to the list of files AC keeps track of,
1368 # along with our hook.
1369 AC_CONFIG_HEADERS([$1],
1370 [# update the timestamp
1371 echo 'timestamp for $1' >"_AM_STAMP([$1])"
1374 ])# _AM_CONFIG_HEADER
1377 # AM_CONFIG_HEADER(HEADER[:SOURCES]..., COMMANDS, INIT-COMMANDS)
1378 # --------------------------------------------------------------
1379 AC_DEFUN([AM_CONFIG_HEADER],
1380 [AC_FOREACH([_AM_File], [$1], [_AM_CONFIG_HEADER(_AM_File, [$2], [$3])])
1381 ])# AM_CONFIG_HEADER