/[debian]/bti/branches/upstream/current/aclocal.m4
ViewVC logotype

Annotation of /bti/branches/upstream/current/aclocal.m4

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1680 - (hide annotations)
Tue Apr 14 16:06:53 2009 UTC (11 years, 10 months ago) by gregoa
File size: 49599 byte(s)
[svn-upgrade] Integrating new upstream version, bti (020)
1 gregoa 1680 # generated automatically by aclocal 1.10.2 -*- Autoconf -*-
2    
3     # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4     # 2005, 2006, 2007, 2008 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    
14     m4_ifndef([AC_AUTOCONF_VERSION],
15     [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16     m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
17     [m4_warning([this file was generated for autoconf 2.63.
18     You have another version of autoconf. It may work, but is not guaranteed to.
19     If you have problems, you may need to regenerate the build system entirely.
20     To do so, use the procedure documented by the package, typically `autoreconf'.])])
21    
22     # LIBCURL_CHECK_CONFIG ([DEFAULT-ACTION], [MINIMUM-VERSION],
23     # [ACTION-IF-YES], [ACTION-IF-NO])
24     # ----------------------------------------------------------
25     # David Shaw <dshaw@jabberwocky.com> May-09-2006
26     #
27     # Checks for libcurl. DEFAULT-ACTION is the string yes or no to
28     # specify whether to default to --with-libcurl or --without-libcurl.
29     # If not supplied, DEFAULT-ACTION is yes. MINIMUM-VERSION is the
30     # minimum version of libcurl to accept. Pass the version as a regular
31     # version number like 7.10.1. If not supplied, any version is
32     # accepted. ACTION-IF-YES is a list of shell commands to run if
33     # libcurl was successfully found and passed the various tests.
34     # ACTION-IF-NO is a list of shell commands that are run otherwise.
35     # Note that using --without-libcurl does run ACTION-IF-NO.
36     #
37     # This macro #defines HAVE_LIBCURL if a working libcurl setup is
38     # found, and sets @LIBCURL@ and @LIBCURL_CPPFLAGS@ to the necessary
39     # values. Other useful defines are LIBCURL_FEATURE_xxx where xxx are
40     # the various features supported by libcurl, and LIBCURL_PROTOCOL_yyy
41     # where yyy are the various protocols supported by libcurl. Both xxx
42     # and yyy are capitalized. See the list of AH_TEMPLATEs at the top of
43     # the macro for the complete list of possible defines. Shell
44     # variables $libcurl_feature_xxx and $libcurl_protocol_yyy are also
45     # defined to 'yes' for those features and protocols that were found.
46     # Note that xxx and yyy keep the same capitalization as in the
47     # curl-config list (e.g. it's "HTTP" and not "http").
48     #
49     # Users may override the detected values by doing something like:
50     # LIBCURL="-lcurl" LIBCURL_CPPFLAGS="-I/usr/myinclude" ./configure
51     #
52     # For the sake of sanity, this macro assumes that any libcurl that is
53     # found is after version 7.7.2, the first version that included the
54     # curl-config script. Note that it is very important for people
55     # packaging binary versions of libcurl to include this script!
56     # Without curl-config, we can only guess what protocols are available,
57     # or use curl_version_info to figure it out at runtime.
58    
59     AC_DEFUN([LIBCURL_CHECK_CONFIG],
60     [
61     AH_TEMPLATE([LIBCURL_FEATURE_SSL],[Defined if libcurl supports SSL])
62     AH_TEMPLATE([LIBCURL_FEATURE_KRB4],[Defined if libcurl supports KRB4])
63     AH_TEMPLATE([LIBCURL_FEATURE_IPV6],[Defined if libcurl supports IPv6])
64     AH_TEMPLATE([LIBCURL_FEATURE_LIBZ],[Defined if libcurl supports libz])
65     AH_TEMPLATE([LIBCURL_FEATURE_ASYNCHDNS],[Defined if libcurl supports AsynchDNS])
66     AH_TEMPLATE([LIBCURL_FEATURE_IDN],[Defined if libcurl supports IDN])
67     AH_TEMPLATE([LIBCURL_FEATURE_SSPI],[Defined if libcurl supports SSPI])
68     AH_TEMPLATE([LIBCURL_FEATURE_NTLM],[Defined if libcurl supports NTLM])
69    
70     AH_TEMPLATE([LIBCURL_PROTOCOL_HTTP],[Defined if libcurl supports HTTP])
71     AH_TEMPLATE([LIBCURL_PROTOCOL_HTTPS],[Defined if libcurl supports HTTPS])
72     AH_TEMPLATE([LIBCURL_PROTOCOL_FTP],[Defined if libcurl supports FTP])
73     AH_TEMPLATE([LIBCURL_PROTOCOL_FTPS],[Defined if libcurl supports FTPS])
74     AH_TEMPLATE([LIBCURL_PROTOCOL_FILE],[Defined if libcurl supports FILE])
75     AH_TEMPLATE([LIBCURL_PROTOCOL_TELNET],[Defined if libcurl supports TELNET])
76     AH_TEMPLATE([LIBCURL_PROTOCOL_LDAP],[Defined if libcurl supports LDAP])
77     AH_TEMPLATE([LIBCURL_PROTOCOL_DICT],[Defined if libcurl supports DICT])
78     AH_TEMPLATE([LIBCURL_PROTOCOL_TFTP],[Defined if libcurl supports TFTP])
79    
80     AC_ARG_WITH(libcurl,
81     AC_HELP_STRING([--with-libcurl=DIR],[look for the curl library in DIR]),
82     [_libcurl_with=$withval],[_libcurl_with=ifelse([$1],,[yes],[$1])])
83    
84     if test "$_libcurl_with" != "no" ; then
85    
86     AC_PROG_AWK
87    
88     _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[[1]]+256*A[[2]]+A[[3]]; print X;}'"
89    
90     _libcurl_try_link=yes
91    
92     if test -d "$_libcurl_with" ; then
93     LIBCURL_CPPFLAGS="-I$withval/include"
94     _libcurl_ldflags="-L$withval/lib"
95     AC_PATH_PROG([_libcurl_config],[curl-config],["$withval/bin"],
96     ["$withval/bin"])
97     else
98     AC_PATH_PROG([_libcurl_config],[curl-config])
99     fi
100    
101     if test x$_libcurl_config != "x" ; then
102     AC_CACHE_CHECK([for the version of libcurl],
103     [libcurl_cv_lib_curl_version],
104     [libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $[]2}'`])
105    
106     _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
107     _libcurl_wanted=`echo ifelse([$2],,[0],[$2]) | $_libcurl_version_parse`
108    
109     if test $_libcurl_wanted -gt 0 ; then
110     AC_CACHE_CHECK([for libcurl >= version $2],
111     [libcurl_cv_lib_version_ok],
112     [
113     if test $_libcurl_version -ge $_libcurl_wanted ; then
114     libcurl_cv_lib_version_ok=yes
115     else
116     libcurl_cv_lib_version_ok=no
117     fi
118     ])
119     fi
120    
121     if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
122     if test x"$LIBCURL_CPPFLAGS" = "x" ; then
123     LIBCURL_CPPFLAGS=`$_libcurl_config --cflags`
124     fi
125     if test x"$LIBCURL" = "x" ; then
126     LIBCURL=`$_libcurl_config --libs`
127    
128     # This is so silly, but Apple actually has a bug in their
129     # curl-config script. Fixed in Tiger, but there are still
130     # lots of Panther installs around.
131     case "${host}" in
132     powerpc-apple-darwin7*)
133     LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'`
134     ;;
135     esac
136     fi
137    
138     # All curl-config scripts support --feature
139     _libcurl_features=`$_libcurl_config --feature`
140    
141     # Is it modern enough to have --protocols? (7.12.4)
142     if test $_libcurl_version -ge 461828 ; then
143     _libcurl_protocols=`$_libcurl_config --protocols`
144     fi
145     else
146     _libcurl_try_link=no
147     fi
148    
149     unset _libcurl_wanted
150     fi
151    
152     if test $_libcurl_try_link = yes ; then
153    
154     # we didn't find curl-config, so let's see if the user-supplied
155     # link line (or failing that, "-lcurl") is enough.
156     LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"}
157    
158     AC_CACHE_CHECK([whether libcurl is usable],
159     [libcurl_cv_lib_curl_usable],
160     [
161     _libcurl_save_cppflags=$CPPFLAGS
162     CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS"
163     _libcurl_save_libs=$LIBS
164     LIBS="$LIBCURL $LIBS"
165    
166     AC_LINK_IFELSE(AC_LANG_PROGRAM([#include <curl/curl.h>],[
167     /* Try and use a few common options to force a failure if we are
168     missing symbols or can't link. */
169     int x;
170     curl_easy_setopt(NULL,CURLOPT_URL,NULL);
171     x=CURL_ERROR_SIZE;
172     x=CURLOPT_WRITEFUNCTION;
173     x=CURLOPT_FILE;
174     x=CURLOPT_ERRORBUFFER;
175     x=CURLOPT_STDERR;
176     x=CURLOPT_VERBOSE;
177     ]),libcurl_cv_lib_curl_usable=yes,libcurl_cv_lib_curl_usable=no)
178    
179     CPPFLAGS=$_libcurl_save_cppflags
180     LIBS=$_libcurl_save_libs
181     unset _libcurl_save_cppflags
182     unset _libcurl_save_libs
183     ])
184    
185     if test $libcurl_cv_lib_curl_usable = yes ; then
186    
187     # Does curl_free() exist in this version of libcurl?
188     # If not, fake it with free()
189    
190     _libcurl_save_cppflags=$CPPFLAGS
191     CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
192     _libcurl_save_libs=$LIBS
193     LIBS="$LIBS $LIBCURL"
194    
195     AC_CHECK_FUNC(curl_free,,
196     AC_DEFINE(curl_free,free,
197     [Define curl_free() as free() if our version of curl lacks curl_free.]))
198    
199     CPPFLAGS=$_libcurl_save_cppflags
200     LIBS=$_libcurl_save_libs
201     unset _libcurl_save_cppflags
202     unset _libcurl_save_libs
203    
204     AC_DEFINE(HAVE_LIBCURL,1,
205     [Define to 1 if you have a functional curl library.])
206     AC_SUBST(LIBCURL_CPPFLAGS)
207     AC_SUBST(LIBCURL)
208    
209     for _libcurl_feature in $_libcurl_features ; do
210     AC_DEFINE_UNQUOTED(AS_TR_CPP(libcurl_feature_$_libcurl_feature),[1])
211     eval AS_TR_SH(libcurl_feature_$_libcurl_feature)=yes
212     done
213    
214     if test "x$_libcurl_protocols" = "x" ; then
215    
216     # We don't have --protocols, so just assume that all
217     # protocols are available
218     _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT"
219    
220     if test x$libcurl_feature_SSL = xyes ; then
221     _libcurl_protocols="$_libcurl_protocols HTTPS"
222    
223     # FTPS wasn't standards-compliant until version
224     # 7.11.0
225     if test $_libcurl_version -ge 461568; then
226     _libcurl_protocols="$_libcurl_protocols FTPS"
227     fi
228     fi
229     fi
230    
231     for _libcurl_protocol in $_libcurl_protocols ; do
232     AC_DEFINE_UNQUOTED(AS_TR_CPP(libcurl_protocol_$_libcurl_protocol),[1])
233     eval AS_TR_SH(libcurl_protocol_$_libcurl_protocol)=yes
234     done
235     else
236     unset LIBCURL
237     unset LIBCURL_CPPFLAGS
238     fi
239     fi
240    
241     unset _libcurl_try_link
242     unset _libcurl_version_parse
243     unset _libcurl_config
244     unset _libcurl_feature
245     unset _libcurl_features
246     unset _libcurl_protocol
247     unset _libcurl_protocols
248     unset _libcurl_version
249     unset _libcurl_ldflags
250     fi
251    
252     if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
253     # This is the IF-NO path
254     ifelse([$4],,:,[$4])
255     else
256     # This is the IF-YES path
257     ifelse([$3],,:,[$3])
258     fi
259    
260     unset _libcurl_with
261     ])dnl
262    
263     # Configure paths for LIBXML2
264     # Mike Hommey 2004-06-19
265     # use CPPFLAGS instead of CFLAGS
266     # Toshio Kuratomi 2001-04-21
267     # Adapted from:
268     # Configure paths for GLIB
269     # Owen Taylor 97-11-3
270    
271     dnl AM_PATH_XML2([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
272     dnl Test for XML, and define XML_CPPFLAGS and XML_LIBS
273     dnl
274     AC_DEFUN([AM_PATH_XML2],[
275     AC_ARG_WITH(xml-prefix,
276     [ --with-xml-prefix=PFX Prefix where libxml is installed (optional)],
277     xml_config_prefix="$withval", xml_config_prefix="")
278     AC_ARG_WITH(xml-exec-prefix,
279     [ --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)],
280     xml_config_exec_prefix="$withval", xml_config_exec_prefix="")
281     AC_ARG_ENABLE(xmltest,
282     [ --disable-xmltest Do not try to compile and run a test LIBXML program],,
283     enable_xmltest=yes)
284    
285     if test x$xml_config_exec_prefix != x ; then
286     xml_config_args="$xml_config_args"
287     if test x${XML2_CONFIG+set} != xset ; then
288     XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
289     fi
290     fi
291     if test x$xml_config_prefix != x ; then
292     xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
293     if test x${XML2_CONFIG+set} != xset ; then
294     XML2_CONFIG=$xml_config_prefix/bin/xml2-config
295     fi
296     fi
297    
298     AC_PATH_PROG(XML2_CONFIG, xml2-config, no)
299     min_xml_version=ifelse([$1], ,2.0.0,[$1])
300     AC_MSG_CHECKING(for libxml - version >= $min_xml_version)
301     no_xml=""
302     if test "$XML2_CONFIG" = "no" ; then
303     no_xml=yes
304     else
305     XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
306     XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
307     xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
308     sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
309     xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
310     sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
311     xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
312     sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
313     if test "x$enable_xmltest" = "xyes" ; then
314     ac_save_CPPFLAGS="$CPPFLAGS"
315     ac_save_LIBS="$LIBS"
316     CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
317     LIBS="$XML_LIBS $LIBS"
318     dnl
319     dnl Now check if the installed libxml is sufficiently new.
320     dnl (Also sanity checks the results of xml2-config to some extent)
321     dnl
322     rm -f conf.xmltest
323     AC_TRY_RUN([
324     #include <stdlib.h>
325     #include <stdio.h>
326     #include <string.h>
327     #include <libxml/xmlversion.h>
328    
329     int
330     main()
331     {
332     int xml_major_version, xml_minor_version, xml_micro_version;
333     int major, minor, micro;
334     char *tmp_version;
335    
336     system("touch conf.xmltest");
337    
338     /* Capture xml2-config output via autoconf/configure variables */
339     /* HP/UX 9 (%@#!) writes to sscanf strings */
340     tmp_version = (char *)strdup("$min_xml_version");
341     if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
342     printf("%s, bad version string from xml2-config\n", "$min_xml_version");
343     exit(1);
344     }
345     free(tmp_version);
346    
347     /* Capture the version information from the header files */
348     tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
349     if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
350     printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
351     exit(1);
352     }
353     free(tmp_version);
354    
355     /* Compare xml2-config output to the libxml headers */
356     if ((xml_major_version != $xml_config_major_version) ||
357     (xml_minor_version != $xml_config_minor_version) ||
358     (xml_micro_version != $xml_config_micro_version))
359     {
360     printf("*** libxml header files (version %d.%d.%d) do not match\n",
361     xml_major_version, xml_minor_version, xml_micro_version);
362     printf("*** xml2-config (version %d.%d.%d)\n",
363     $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
364     return 1;
365     }
366     /* Compare the headers to the library to make sure we match */
367     /* Less than ideal -- doesn't provide us with return value feedback,
368     * only exits if there's a serious mismatch between header and library.
369     */
370     LIBXML_TEST_VERSION;
371    
372     /* Test that the library is greater than our minimum version */
373     if ((xml_major_version > major) ||
374     ((xml_major_version == major) && (xml_minor_version > minor)) ||
375     ((xml_major_version == major) && (xml_minor_version == minor) &&
376     (xml_micro_version >= micro)))
377     {
378     return 0;
379     }
380     else
381     {
382     printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
383     xml_major_version, xml_minor_version, xml_micro_version);
384     printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
385     major, minor, micro);
386     printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
387     printf("***\n");
388     printf("*** If you have already installed a sufficiently new version, this error\n");
389     printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
390     printf("*** being found. The easiest way to fix this is to remove the old version\n");
391     printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
392     printf("*** correct copy of xml2-config. (In this case, you will have to\n");
393     printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
394     printf("*** so that the correct libraries are found at run-time))\n");
395     }
396     return 1;
397     }
398     ],, no_xml=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
399     CPPFLAGS="$ac_save_CPPFLAGS"
400     LIBS="$ac_save_LIBS"
401     fi
402     fi
403    
404     if test "x$no_xml" = x ; then
405     AC_MSG_RESULT(yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version))
406     ifelse([$2], , :, [$2])
407     else
408     AC_MSG_RESULT(no)
409     if test "$XML2_CONFIG" = "no" ; then
410     echo "*** The xml2-config script installed by LIBXML could not be found"
411     echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
412     echo "*** your path, or set the XML2_CONFIG environment variable to the"
413     echo "*** full path to xml2-config."
414     else
415     if test -f conf.xmltest ; then
416     :
417     else
418     echo "*** Could not run libxml test program, checking why..."
419     CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
420     LIBS="$LIBS $XML_LIBS"
421     AC_TRY_LINK([
422     #include <libxml/xmlversion.h>
423     #include <stdio.h>
424     ], [ LIBXML_TEST_VERSION; return 0;],
425     [ echo "*** The test program compiled, but did not run. This usually means"
426     echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
427     echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
428     echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
429     echo "*** to the installed location Also, make sure you have run ldconfig if that"
430     echo "*** is required on your system"
431     echo "***"
432     echo "*** If you have an old version installed, it is best to remove it, although"
433     echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
434     [ echo "*** The test program failed to compile or link. See the file config.log for the"
435     echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
436     echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
437     echo "*** may want to edit the xml2-config script: $XML2_CONFIG" ])
438     CPPFLAGS="$ac_save_CPPFLAGS"
439     LIBS="$ac_save_LIBS"
440     fi
441     fi
442    
443     XML_CPPFLAGS=""
444     XML_LIBS=""
445     ifelse([$3], , :, [$3])
446     fi
447     AC_SUBST(XML_CPPFLAGS)
448     AC_SUBST(XML_LIBS)
449     rm -f conf.xmltest
450     ])
451    
452     # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
453     #
454     # This file is free software; the Free Software Foundation
455     # gives unlimited permission to copy and/or distribute it,
456     # with or without modifications, as long as this notice is preserved.
457    
458     # AM_AUTOMAKE_VERSION(VERSION)
459     # ----------------------------
460     # Automake X.Y traces this macro to ensure aclocal.m4 has been
461     # generated from the m4 files accompanying Automake X.Y.
462     # (This private macro should not be called outside this file.)
463     AC_DEFUN([AM_AUTOMAKE_VERSION],
464     [am__api_version='1.10'
465     dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
466     dnl require some minimum version. Point them to the right macro.
467     m4_if([$1], [1.10.2], [],
468     [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
469     ])
470    
471     # _AM_AUTOCONF_VERSION(VERSION)
472     # -----------------------------
473     # aclocal traces this macro to find the Autoconf version.
474     # This is a private macro too. Using m4_define simplifies
475     # the logic in aclocal, which can simply ignore this definition.
476     m4_define([_AM_AUTOCONF_VERSION], [])
477    
478     # AM_SET_CURRENT_AUTOMAKE_VERSION
479     # -------------------------------
480     # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
481     # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
482     AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
483     [AM_AUTOMAKE_VERSION([1.10.2])dnl
484     m4_ifndef([AC_AUTOCONF_VERSION],
485     [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
486     _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
487    
488     # AM_AUX_DIR_EXPAND -*- Autoconf -*-
489    
490     # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
491     #
492     # This file is free software; the Free Software Foundation
493     # gives unlimited permission to copy and/or distribute it,
494     # with or without modifications, as long as this notice is preserved.
495    
496     # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
497     # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
498     # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
499     #
500     # Of course, Automake must honor this variable whenever it calls a
501     # tool from the auxiliary directory. The problem is that $srcdir (and
502     # therefore $ac_aux_dir as well) can be either absolute or relative,
503     # depending on how configure is run. This is pretty annoying, since
504     # it makes $ac_aux_dir quite unusable in subdirectories: in the top
505     # source directory, any form will work fine, but in subdirectories a
506     # relative path needs to be adjusted first.
507     #
508     # $ac_aux_dir/missing
509     # fails when called from a subdirectory if $ac_aux_dir is relative
510     # $top_srcdir/$ac_aux_dir/missing
511     # fails if $ac_aux_dir is absolute,
512     # fails when called from a subdirectory in a VPATH build with
513     # a relative $ac_aux_dir
514     #
515     # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
516     # are both prefixed by $srcdir. In an in-source build this is usually
517     # harmless because $srcdir is `.', but things will broke when you
518     # start a VPATH build or use an absolute $srcdir.
519     #
520     # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
521     # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
522     # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
523     # and then we would define $MISSING as
524     # MISSING="\${SHELL} $am_aux_dir/missing"
525     # This will work as long as MISSING is not called from configure, because
526     # unfortunately $(top_srcdir) has no meaning in configure.
527     # However there are other variables, like CC, which are often used in
528     # configure, and could therefore not use this "fixed" $ac_aux_dir.
529     #
530     # Another solution, used here, is to always expand $ac_aux_dir to an
531     # absolute PATH. The drawback is that using absolute paths prevent a
532     # configured tree to be moved without reconfiguration.
533    
534     AC_DEFUN([AM_AUX_DIR_EXPAND],
535     [dnl Rely on autoconf to set up CDPATH properly.
536     AC_PREREQ([2.50])dnl
537     # expand $ac_aux_dir to an absolute path
538     am_aux_dir=`cd $ac_aux_dir && pwd`
539     ])
540    
541     # AM_CONDITIONAL -*- Autoconf -*-
542    
543     # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
544     # Free Software Foundation, Inc.
545     #
546     # This file is free software; the Free Software Foundation
547     # gives unlimited permission to copy and/or distribute it,
548     # with or without modifications, as long as this notice is preserved.
549    
550     # serial 8
551    
552     # AM_CONDITIONAL(NAME, SHELL-CONDITION)
553     # -------------------------------------
554     # Define a conditional.
555     AC_DEFUN([AM_CONDITIONAL],
556     [AC_PREREQ(2.52)dnl
557     ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
558     [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
559     AC_SUBST([$1_TRUE])dnl
560     AC_SUBST([$1_FALSE])dnl
561     _AM_SUBST_NOTMAKE([$1_TRUE])dnl
562     _AM_SUBST_NOTMAKE([$1_FALSE])dnl
563     if $2; then
564     $1_TRUE=
565     $1_FALSE='#'
566     else
567     $1_TRUE='#'
568     $1_FALSE=
569     fi
570     AC_CONFIG_COMMANDS_PRE(
571     [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
572     AC_MSG_ERROR([[conditional "$1" was never defined.
573     Usually this means the macro was only invoked conditionally.]])
574     fi])])
575    
576     # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
577     # Free Software Foundation, Inc.
578     #
579     # This file is free software; the Free Software Foundation
580     # gives unlimited permission to copy and/or distribute it,
581     # with or without modifications, as long as this notice is preserved.
582    
583     # serial 9
584    
585     # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
586     # written in clear, in which case automake, when reading aclocal.m4,
587     # will think it sees a *use*, and therefore will trigger all it's
588     # C support machinery. Also note that it means that autoscan, seeing
589     # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
590    
591    
592     # _AM_DEPENDENCIES(NAME)
593     # ----------------------
594     # See how the compiler implements dependency checking.
595     # NAME is "CC", "CXX", "GCJ", or "OBJC".
596     # We try a few techniques and use that to set a single cache variable.
597     #
598     # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
599     # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
600     # dependency, and given that the user is not expected to run this macro,
601     # just rely on AC_PROG_CC.
602     AC_DEFUN([_AM_DEPENDENCIES],
603     [AC_REQUIRE([AM_SET_DEPDIR])dnl
604     AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
605     AC_REQUIRE([AM_MAKE_INCLUDE])dnl
606     AC_REQUIRE([AM_DEP_TRACK])dnl
607    
608     ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
609     [$1], CXX, [depcc="$CXX" am_compiler_list=],
610     [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
611     [$1], UPC, [depcc="$UPC" am_compiler_list=],
612     [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
613     [depcc="$$1" am_compiler_list=])
614    
615     AC_CACHE_CHECK([dependency style of $depcc],
616     [am_cv_$1_dependencies_compiler_type],
617     [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
618     # We make a subdir and do the tests there. Otherwise we can end up
619     # making bogus files that we don't know about and never remove. For
620     # instance it was reported that on HP-UX the gcc test will end up
621     # making a dummy file named `D' -- because `-MD' means `put the output
622     # in D'.
623     mkdir conftest.dir
624     # Copy depcomp to subdir because otherwise we won't find it if we're
625     # using a relative directory.
626     cp "$am_depcomp" conftest.dir
627     cd conftest.dir
628     # We will build objects and dependencies in a subdirectory because
629     # it helps to detect inapplicable dependency modes. For instance
630     # both Tru64's cc and ICC support -MD to output dependencies as a
631     # side effect of compilation, but ICC will put the dependencies in
632     # the current directory while Tru64 will put them in the object
633     # directory.
634     mkdir sub
635    
636     am_cv_$1_dependencies_compiler_type=none
637     if test "$am_compiler_list" = ""; then
638     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
639     fi
640     for depmode in $am_compiler_list; do
641     # Setup a source with many dependencies, because some compilers
642     # like to wrap large dependency lists on column 80 (with \), and
643     # we should not choose a depcomp mode which is confused by this.
644     #
645     # We need to recreate these files for each test, as the compiler may
646     # overwrite some of them when testing with obscure command lines.
647     # This happens at least with the AIX C compiler.
648     : > sub/conftest.c
649     for i in 1 2 3 4 5 6; do
650     echo '#include "conftst'$i'.h"' >> sub/conftest.c
651     # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
652     # Solaris 8's {/usr,}/bin/sh.
653     touch sub/conftst$i.h
654     done
655     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
656    
657     case $depmode in
658     nosideeffect)
659     # after this tag, mechanisms are not by side-effect, so they'll
660     # only be used when explicitly requested
661     if test "x$enable_dependency_tracking" = xyes; then
662     continue
663     else
664     break
665     fi
666     ;;
667     none) break ;;
668     esac
669     # We check with `-c' and `-o' for the sake of the "dashmstdout"
670     # mode. It turns out that the SunPro C++ compiler does not properly
671     # handle `-M -o', and we need to detect this.
672     if depmode=$depmode \
673     source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
674     depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
675     $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
676     >/dev/null 2>conftest.err &&
677     grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
678     grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
679     grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
680     ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
681     # icc doesn't choke on unknown options, it will just issue warnings
682     # or remarks (even with -Werror). So we grep stderr for any message
683     # that says an option was ignored or not supported.
684     # When given -MP, icc 7.0 and 7.1 complain thusly:
685     # icc: Command line warning: ignoring option '-M'; no argument required
686     # The diagnosis changed in icc 8.0:
687     # icc: Command line remark: option '-MP' not supported
688     if (grep 'ignoring option' conftest.err ||
689     grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
690     am_cv_$1_dependencies_compiler_type=$depmode
691     break
692     fi
693     fi
694     done
695    
696     cd ..
697     rm -rf conftest.dir
698     else
699     am_cv_$1_dependencies_compiler_type=none
700     fi
701     ])
702     AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
703     AM_CONDITIONAL([am__fastdep$1], [
704     test "x$enable_dependency_tracking" != xno \
705     && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
706     ])
707    
708    
709     # AM_SET_DEPDIR
710     # -------------
711     # Choose a directory name for dependency files.
712     # This macro is AC_REQUIREd in _AM_DEPENDENCIES
713     AC_DEFUN([AM_SET_DEPDIR],
714     [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
715     AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
716     ])
717    
718    
719     # AM_DEP_TRACK
720     # ------------
721     AC_DEFUN([AM_DEP_TRACK],
722     [AC_ARG_ENABLE(dependency-tracking,
723     [ --disable-dependency-tracking speeds up one-time build
724     --enable-dependency-tracking do not reject slow dependency extractors])
725     if test "x$enable_dependency_tracking" != xno; then
726     am_depcomp="$ac_aux_dir/depcomp"
727     AMDEPBACKSLASH='\'
728     fi
729     AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
730     AC_SUBST([AMDEPBACKSLASH])dnl
731     _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
732     ])
733    
734     # Generate code to set up dependency tracking. -*- Autoconf -*-
735    
736     # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
737     # Free Software Foundation, Inc.
738     #
739     # This file is free software; the Free Software Foundation
740     # gives unlimited permission to copy and/or distribute it,
741     # with or without modifications, as long as this notice is preserved.
742    
743     #serial 4
744    
745     # _AM_OUTPUT_DEPENDENCY_COMMANDS
746     # ------------------------------
747     AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
748     [# Autoconf 2.62 quotes --file arguments for eval, but not when files
749     # are listed without --file. Let's play safe and only enable the eval
750     # if we detect the quoting.
751     case $CONFIG_FILES in
752     *\'*) eval set x "$CONFIG_FILES" ;;
753     *) set x $CONFIG_FILES ;;
754     esac
755     shift
756     for mf
757     do
758     # Strip MF so we end up with the name of the file.
759     mf=`echo "$mf" | sed -e 's/:.*$//'`
760     # Check whether this is an Automake generated Makefile or not.
761     # We used to match only the files named `Makefile.in', but
762     # some people rename them; so instead we look at the file content.
763     # Grep'ing the first line is not enough: some people post-process
764     # each Makefile.in and add a new line on top of each file to say so.
765     # Grep'ing the whole file is not good either: AIX grep has a line
766     # limit of 2048, but all sed's we know have understand at least 4000.
767     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
768     dirpart=`AS_DIRNAME("$mf")`
769     else
770     continue
771     fi
772     # Extract the definition of DEPDIR, am__include, and am__quote
773     # from the Makefile without running `make'.
774     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
775     test -z "$DEPDIR" && continue
776     am__include=`sed -n 's/^am__include = //p' < "$mf"`
777     test -z "am__include" && continue
778     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
779     # When using ansi2knr, U may be empty or an underscore; expand it
780     U=`sed -n 's/^U = //p' < "$mf"`
781     # Find all dependency output files, they are included files with
782     # $(DEPDIR) in their names. We invoke sed twice because it is the
783     # simplest approach to changing $(DEPDIR) to its actual value in the
784     # expansion.
785     for file in `sed -n "
786     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
787     sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
788     # Make sure the directory exists.
789     test -f "$dirpart/$file" && continue
790     fdir=`AS_DIRNAME(["$file"])`
791     AS_MKDIR_P([$dirpart/$fdir])
792     # echo "creating $dirpart/$file"
793     echo '# dummy' > "$dirpart/$file"
794     done
795     done
796     ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
797    
798    
799     # AM_OUTPUT_DEPENDENCY_COMMANDS
800     # -----------------------------
801     # This macro should only be invoked once -- use via AC_REQUIRE.
802     #
803     # This code is only required when automatic dependency tracking
804     # is enabled. FIXME. This creates each `.P' file that we will
805     # need in order to bootstrap the dependency handling code.
806     AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
807     [AC_CONFIG_COMMANDS([depfiles],
808     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
809     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
810     ])
811    
812     # Do all the work for Automake. -*- Autoconf -*-
813    
814     # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
815     # 2005, 2006, 2008 Free Software Foundation, Inc.
816     #
817     # This file is free software; the Free Software Foundation
818     # gives unlimited permission to copy and/or distribute it,
819     # with or without modifications, as long as this notice is preserved.
820    
821     # serial 13
822    
823     # This macro actually does too much. Some checks are only needed if
824     # your package does certain things. But this isn't really a big deal.
825    
826     # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
827     # AM_INIT_AUTOMAKE([OPTIONS])
828     # -----------------------------------------------
829     # The call with PACKAGE and VERSION arguments is the old style
830     # call (pre autoconf-2.50), which is being phased out. PACKAGE
831     # and VERSION should now be passed to AC_INIT and removed from
832     # the call to AM_INIT_AUTOMAKE.
833     # We support both call styles for the transition. After
834     # the next Automake release, Autoconf can make the AC_INIT
835     # arguments mandatory, and then we can depend on a new Autoconf
836     # release and drop the old call support.
837     AC_DEFUN([AM_INIT_AUTOMAKE],
838     [AC_PREREQ([2.60])dnl
839     dnl Autoconf wants to disallow AM_ names. We explicitly allow
840     dnl the ones we care about.
841     m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
842     AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
843     AC_REQUIRE([AC_PROG_INSTALL])dnl
844     if test "`cd $srcdir && pwd`" != "`pwd`"; then
845     # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
846     # is not polluted with repeated "-I."
847     AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
848     # test to see if srcdir already configured
849     if test -f $srcdir/config.status; then
850     AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
851     fi
852     fi
853    
854     # test whether we have cygpath
855     if test -z "$CYGPATH_W"; then
856     if (cygpath --version) >/dev/null 2>/dev/null; then
857     CYGPATH_W='cygpath -w'
858     else
859     CYGPATH_W=echo
860     fi
861     fi
862     AC_SUBST([CYGPATH_W])
863    
864     # Define the identity of the package.
865     dnl Distinguish between old-style and new-style calls.
866     m4_ifval([$2],
867     [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
868     AC_SUBST([PACKAGE], [$1])dnl
869     AC_SUBST([VERSION], [$2])],
870     [_AM_SET_OPTIONS([$1])dnl
871     dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
872     m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
873     [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
874     AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
875     AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
876    
877     _AM_IF_OPTION([no-define],,
878     [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
879     AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
880    
881     # Some tools Automake needs.
882     AC_REQUIRE([AM_SANITY_CHECK])dnl
883     AC_REQUIRE([AC_ARG_PROGRAM])dnl
884     AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
885     AM_MISSING_PROG(AUTOCONF, autoconf)
886     AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
887     AM_MISSING_PROG(AUTOHEADER, autoheader)
888     AM_MISSING_PROG(MAKEINFO, makeinfo)
889     AM_PROG_INSTALL_SH
890     AM_PROG_INSTALL_STRIP
891     AC_REQUIRE([AM_PROG_MKDIR_P])dnl
892     # We need awk for the "check" target. The system "awk" is bad on
893     # some platforms.
894     AC_REQUIRE([AC_PROG_AWK])dnl
895     AC_REQUIRE([AC_PROG_MAKE_SET])dnl
896     AC_REQUIRE([AM_SET_LEADING_DOT])dnl
897     _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
898     [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
899     [_AM_PROG_TAR([v7])])])
900     _AM_IF_OPTION([no-dependencies],,
901     [AC_PROVIDE_IFELSE([AC_PROG_CC],
902     [_AM_DEPENDENCIES(CC)],
903     [define([AC_PROG_CC],
904     defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
905     AC_PROVIDE_IFELSE([AC_PROG_CXX],
906     [_AM_DEPENDENCIES(CXX)],
907     [define([AC_PROG_CXX],
908     defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
909     AC_PROVIDE_IFELSE([AC_PROG_OBJC],
910     [_AM_DEPENDENCIES(OBJC)],
911     [define([AC_PROG_OBJC],
912     defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
913     ])
914     ])
915    
916    
917     # When config.status generates a header, we must update the stamp-h file.
918     # This file resides in the same directory as the config header
919     # that is generated. The stamp files are numbered to have different names.
920    
921     # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
922     # loop where config.status creates the headers, so we can generate
923     # our stamp files there.
924     AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
925     [# Compute $1's index in $config_headers.
926     _am_arg=$1
927     _am_stamp_count=1
928     for _am_header in $config_headers :; do
929     case $_am_header in
930     $_am_arg | $_am_arg:* )
931     break ;;
932     * )
933     _am_stamp_count=`expr $_am_stamp_count + 1` ;;
934     esac
935     done
936     echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
937    
938     # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
939     #
940     # This file is free software; the Free Software Foundation
941     # gives unlimited permission to copy and/or distribute it,
942     # with or without modifications, as long as this notice is preserved.
943    
944     # AM_PROG_INSTALL_SH
945     # ------------------
946     # Define $install_sh.
947     AC_DEFUN([AM_PROG_INSTALL_SH],
948     [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
949     install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
950     AC_SUBST(install_sh)])
951    
952     # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
953     #
954     # This file is free software; the Free Software Foundation
955     # gives unlimited permission to copy and/or distribute it,
956     # with or without modifications, as long as this notice is preserved.
957    
958     # serial 2
959    
960     # Check whether the underlying file-system supports filenames
961     # with a leading dot. For instance MS-DOS doesn't.
962     AC_DEFUN([AM_SET_LEADING_DOT],
963     [rm -rf .tst 2>/dev/null
964     mkdir .tst 2>/dev/null
965     if test -d .tst; then
966     am__leading_dot=.
967     else
968     am__leading_dot=_
969     fi
970     rmdir .tst 2>/dev/null
971     AC_SUBST([am__leading_dot])])
972    
973     # Check to see how 'make' treats includes. -*- Autoconf -*-
974    
975     # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
976     #
977     # This file is free software; the Free Software Foundation
978     # gives unlimited permission to copy and/or distribute it,
979     # with or without modifications, as long as this notice is preserved.
980    
981     # serial 3
982    
983     # AM_MAKE_INCLUDE()
984     # -----------------
985     # Check to see how make treats includes.
986     AC_DEFUN([AM_MAKE_INCLUDE],
987     [am_make=${MAKE-make}
988     cat > confinc << 'END'
989     am__doit:
990     @echo done
991     .PHONY: am__doit
992     END
993     # If we don't find an include directive, just comment out the code.
994     AC_MSG_CHECKING([for style of include used by $am_make])
995     am__include="#"
996     am__quote=
997     _am_result=none
998     # First try GNU make style include.
999     echo "include confinc" > confmf
1000     # We grep out `Entering directory' and `Leaving directory'
1001     # messages which can occur if `w' ends up in MAKEFLAGS.
1002     # In particular we don't look at `^make:' because GNU make might
1003     # be invoked under some other name (usually "gmake"), in which
1004     # case it prints its new name instead of `make'.
1005     if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1006     am__include=include
1007     am__quote=
1008     _am_result=GNU
1009     fi
1010     # Now try BSD make style include.
1011     if test "$am__include" = "#"; then
1012     echo '.include "confinc"' > confmf
1013     if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1014     am__include=.include
1015     am__quote="\""
1016     _am_result=BSD
1017     fi
1018     fi
1019     AC_SUBST([am__include])
1020     AC_SUBST([am__quote])
1021     AC_MSG_RESULT([$_am_result])
1022     rm -f confinc confmf
1023     ])
1024    
1025     # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
1026    
1027     # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
1028     # Free Software Foundation, Inc.
1029     #
1030     # This file is free software; the Free Software Foundation
1031     # gives unlimited permission to copy and/or distribute it,
1032     # with or without modifications, as long as this notice is preserved.
1033    
1034     # serial 5
1035    
1036     # AM_MISSING_PROG(NAME, PROGRAM)
1037     # ------------------------------
1038     AC_DEFUN([AM_MISSING_PROG],
1039     [AC_REQUIRE([AM_MISSING_HAS_RUN])
1040     $1=${$1-"${am_missing_run}$2"}
1041     AC_SUBST($1)])
1042    
1043    
1044     # AM_MISSING_HAS_RUN
1045     # ------------------
1046     # Define MISSING if not defined so far and test if it supports --run.
1047     # If it does, set am_missing_run to use it, otherwise, to nothing.
1048     AC_DEFUN([AM_MISSING_HAS_RUN],
1049     [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1050     AC_REQUIRE_AUX_FILE([missing])dnl
1051     test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1052     # Use eval to expand $SHELL
1053     if eval "$MISSING --run true"; then
1054     am_missing_run="$MISSING --run "
1055     else
1056     am_missing_run=
1057     AC_MSG_WARN([`missing' script is too old or missing])
1058     fi
1059     ])
1060    
1061     # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1062     #
1063     # This file is free software; the Free Software Foundation
1064     # gives unlimited permission to copy and/or distribute it,
1065     # with or without modifications, as long as this notice is preserved.
1066    
1067     # AM_PROG_MKDIR_P
1068     # ---------------
1069     # Check for `mkdir -p'.
1070     AC_DEFUN([AM_PROG_MKDIR_P],
1071     [AC_PREREQ([2.60])dnl
1072     AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1073     dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
1074     dnl while keeping a definition of mkdir_p for backward compatibility.
1075     dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
1076     dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
1077     dnl Makefile.ins that do not define MKDIR_P, so we do our own
1078     dnl adjustment using top_builddir (which is defined more often than
1079     dnl MKDIR_P).
1080     AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
1081     case $mkdir_p in
1082     [[\\/$]]* | ?:[[\\/]]*) ;;
1083     */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1084     esac
1085     ])
1086    
1087     # Helper functions for option handling. -*- Autoconf -*-
1088    
1089     # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
1090     #
1091     # This file is free software; the Free Software Foundation
1092     # gives unlimited permission to copy and/or distribute it,
1093     # with or without modifications, as long as this notice is preserved.
1094    
1095     # serial 4
1096    
1097     # _AM_MANGLE_OPTION(NAME)
1098     # -----------------------
1099     AC_DEFUN([_AM_MANGLE_OPTION],
1100     [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1101    
1102     # _AM_SET_OPTION(NAME)
1103     # ------------------------------
1104     # Set option NAME. Presently that only means defining a flag for this option.
1105     AC_DEFUN([_AM_SET_OPTION],
1106     [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
1107    
1108     # _AM_SET_OPTIONS(OPTIONS)
1109     # ----------------------------------
1110     # OPTIONS is a space-separated list of Automake options.
1111     AC_DEFUN([_AM_SET_OPTIONS],
1112     [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1113    
1114     # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1115     # -------------------------------------------
1116     # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1117     AC_DEFUN([_AM_IF_OPTION],
1118     [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1119    
1120     # Check to make sure that the build environment is sane. -*- Autoconf -*-
1121    
1122     # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
1123     # Free Software Foundation, Inc.
1124     #
1125     # This file is free software; the Free Software Foundation
1126     # gives unlimited permission to copy and/or distribute it,
1127     # with or without modifications, as long as this notice is preserved.
1128    
1129     # serial 4
1130    
1131     # AM_SANITY_CHECK
1132     # ---------------
1133     AC_DEFUN([AM_SANITY_CHECK],
1134     [AC_MSG_CHECKING([whether build environment is sane])
1135     # Just in case
1136     sleep 1
1137     echo timestamp > conftest.file
1138     # Do `set' in a subshell so we don't clobber the current shell's
1139     # arguments. Must try -L first in case configure is actually a
1140     # symlink; some systems play weird games with the mod time of symlinks
1141     # (eg FreeBSD returns the mod time of the symlink's containing
1142     # directory).
1143     if (
1144     set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1145     if test "$[*]" = "X"; then
1146     # -L didn't work.
1147     set X `ls -t $srcdir/configure conftest.file`
1148     fi
1149     rm -f conftest.file
1150     if test "$[*]" != "X $srcdir/configure conftest.file" \
1151     && test "$[*]" != "X conftest.file $srcdir/configure"; then
1152    
1153     # If neither matched, then we have a broken ls. This can happen
1154     # if, for instance, CONFIG_SHELL is bash and it inherits a
1155     # broken ls alias from the environment. This has actually
1156     # happened. Such a system could not be considered "sane".
1157     AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1158     alias in your environment])
1159     fi
1160    
1161     test "$[2]" = conftest.file
1162     )
1163     then
1164     # Ok.
1165     :
1166     else
1167     AC_MSG_ERROR([newly created file is older than distributed files!
1168     Check your system clock])
1169     fi
1170     AC_MSG_RESULT(yes)])
1171    
1172     # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
1173     #
1174     # This file is free software; the Free Software Foundation
1175     # gives unlimited permission to copy and/or distribute it,
1176     # with or without modifications, as long as this notice is preserved.
1177    
1178     # AM_PROG_INSTALL_STRIP
1179     # ---------------------
1180     # One issue with vendor `install' (even GNU) is that you can't
1181     # specify the program used to strip binaries. This is especially
1182     # annoying in cross-compiling environments, where the build's strip
1183     # is unlikely to handle the host's binaries.
1184     # Fortunately install-sh will honor a STRIPPROG variable, so we
1185     # always use install-sh in `make install-strip', and initialize
1186     # STRIPPROG with the value of the STRIP variable (set by the user).
1187     AC_DEFUN([AM_PROG_INSTALL_STRIP],
1188     [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1189     # Installed binaries are usually stripped using `strip' when the user
1190     # run `make install-strip'. However `strip' might not be the right
1191     # tool to use in cross-compilation environments, therefore Automake
1192     # will honor the `STRIP' environment variable to overrule this program.
1193     dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1194     if test "$cross_compiling" != no; then
1195     AC_CHECK_TOOL([STRIP], [strip], :)
1196     fi
1197     INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1198     AC_SUBST([INSTALL_STRIP_PROGRAM])])
1199    
1200     # Copyright (C) 2006 Free Software Foundation, Inc.
1201     #
1202     # This file is free software; the Free Software Foundation
1203     # gives unlimited permission to copy and/or distribute it,
1204     # with or without modifications, as long as this notice is preserved.
1205    
1206     # _AM_SUBST_NOTMAKE(VARIABLE)
1207     # ---------------------------
1208     # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1209     # This macro is traced by Automake.
1210     AC_DEFUN([_AM_SUBST_NOTMAKE])
1211    
1212     # Check how to create a tarball. -*- Autoconf -*-
1213    
1214     # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
1215     #
1216     # This file is free software; the Free Software Foundation
1217     # gives unlimited permission to copy and/or distribute it,
1218     # with or without modifications, as long as this notice is preserved.
1219    
1220     # serial 2
1221    
1222     # _AM_PROG_TAR(FORMAT)
1223     # --------------------
1224     # Check how to create a tarball in format FORMAT.
1225     # FORMAT should be one of `v7', `ustar', or `pax'.
1226     #
1227     # Substitute a variable $(am__tar) that is a command
1228     # writing to stdout a FORMAT-tarball containing the directory
1229     # $tardir.
1230     # tardir=directory && $(am__tar) > result.tar
1231     #
1232     # Substitute a variable $(am__untar) that extract such
1233     # a tarball read from stdin.
1234     # $(am__untar) < result.tar
1235     AC_DEFUN([_AM_PROG_TAR],
1236     [# Always define AMTAR for backward compatibility.
1237     AM_MISSING_PROG([AMTAR], [tar])
1238     m4_if([$1], [v7],
1239     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
1240     [m4_case([$1], [ustar],, [pax],,
1241     [m4_fatal([Unknown tar format])])
1242     AC_MSG_CHECKING([how to create a $1 tar archive])
1243     # Loop over all known methods to create a tar archive until one works.
1244     _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1245     _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1246     # Do not fold the above two line into one, because Tru64 sh and
1247     # Solaris sh will not grok spaces in the rhs of `-'.
1248     for _am_tool in $_am_tools
1249     do
1250     case $_am_tool in
1251     gnutar)
1252     for _am_tar in tar gnutar gtar;
1253     do
1254     AM_RUN_LOG([$_am_tar --version]) && break
1255     done
1256     am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1257     am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1258     am__untar="$_am_tar -xf -"
1259     ;;
1260     plaintar)
1261     # Must skip GNU tar: if it does not support --format= it doesn't create
1262     # ustar tarball either.
1263     (tar --version) >/dev/null 2>&1 && continue
1264     am__tar='tar chf - "$$tardir"'
1265     am__tar_='tar chf - "$tardir"'
1266     am__untar='tar xf -'
1267     ;;
1268     pax)
1269     am__tar='pax -L -x $1 -w "$$tardir"'
1270     am__tar_='pax -L -x $1 -w "$tardir"'
1271     am__untar='pax -r'
1272     ;;
1273     cpio)
1274     am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1275     am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1276     am__untar='cpio -i -H $1 -d'
1277     ;;
1278     none)
1279     am__tar=false
1280     am__tar_=false
1281     am__untar=false
1282     ;;
1283     esac
1284    
1285     # If the value was cached, stop now. We just wanted to have am__tar
1286     # and am__untar set.
1287     test -n "${am_cv_prog_tar_$1}" && break
1288    
1289     # tar/untar a dummy directory, and stop if the command works
1290     rm -rf conftest.dir
1291     mkdir conftest.dir
1292     echo GrepMe > conftest.dir/file
1293     AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1294     rm -rf conftest.dir
1295     if test -s conftest.tar; then
1296     AM_RUN_LOG([$am__untar <conftest.tar])
1297     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1298     fi
1299     done
1300     rm -rf conftest.dir
1301    
1302     AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1303     AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1304     AC_SUBST([am__tar])
1305     AC_SUBST([am__untar])
1306     ]) # _AM_PROG_TAR
1307    

  ViewVC Help
Powered by ViewVC 1.1.26