wmauda: Fix installation dir
[dockapps.git] / wmweather+-2.12 / aclocal.m4
blobc99f3019857c5e5d0147611edacf8f4b312b465d
1 # generated automatically by aclocal 1.10.3 -*- Autoconf -*-
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4 # 2005, 2006, 2007, 2008, 2009  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
12 # PARTICULAR PURPOSE.
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.67],,
17 [m4_warning([this file was generated for autoconf 2.67.
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'.])])
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
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.
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").
49 # Users may override the detected values by doing something like:
50 # LIBCURL="-lcurl" LIBCURL_CPPFLAGS="-I/usr/myinclude" ./configure
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.
59 AC_DEFUN([LIBCURL_CHECK_CONFIG],
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])
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   AH_TEMPLATE([LIBCURL_PROTOCOL_RTSP],[Defined if libcurl supports RTSP])
80   AH_TEMPLATE([LIBCURL_PROTOCOL_POP3],[Defined if libcurl supports POP3])
81   AH_TEMPLATE([LIBCURL_PROTOCOL_IMAP],[Defined if libcurl supports IMAP])
82   AH_TEMPLATE([LIBCURL_PROTOCOL_SMTP],[Defined if libcurl supports SMTP])
84   AC_ARG_WITH(libcurl,
85      AC_HELP_STRING([--with-libcurl=DIR],[look for the curl library in DIR]),
86      [_libcurl_with=$withval],[_libcurl_with=ifelse([$1],,[yes],[$1])])
88   if test "$_libcurl_with" != "no" ; then
90      AC_PROG_AWK
92      _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[[1]]+256*A[[2]]+A[[3]]; print X;}'"
94      _libcurl_try_link=yes
96      if test -d "$_libcurl_with" ; then
97         LIBCURL_CPPFLAGS="-I$withval/include"
98         _libcurl_ldflags="-L$withval/lib"
99         AC_PATH_PROG([_libcurl_config],[curl-config],["$withval/bin"],
100                      ["$withval/bin"])
101      else
102         AC_PATH_PROG([_libcurl_config],[curl-config])
103      fi
105      if test x$_libcurl_config != "x" ; then
106         AC_CACHE_CHECK([for the version of libcurl],
107            [libcurl_cv_lib_curl_version],
108            [libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $[]2}'`])
110         _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
111         _libcurl_wanted=`echo ifelse([$2],,[0],[$2]) | $_libcurl_version_parse`
113         if test $_libcurl_wanted -gt 0 ; then
114            AC_CACHE_CHECK([for libcurl >= version $2],
115               [libcurl_cv_lib_version_ok],
116               [
117               if test $_libcurl_version -ge $_libcurl_wanted ; then
118                  libcurl_cv_lib_version_ok=yes
119               else
120                  libcurl_cv_lib_version_ok=no
121               fi
122               ])
123         fi
125         if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
126            if test x"$LIBCURL_CPPFLAGS" = "x" ; then
127               LIBCURL_CPPFLAGS=`$_libcurl_config --cflags`
128            fi
129            if test x"$LIBCURL" = "x" ; then
130               LIBCURL=`$_libcurl_config --libs`
132               # This is so silly, but Apple actually has a bug in their
133               # curl-config script.  Fixed in Tiger, but there are still
134               # lots of Panther installs around.
135               case "${host}" in
136                  powerpc-apple-darwin7*)
137                     LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'`
138                  ;;
139               esac
140            fi
142            # All curl-config scripts support --feature
143            _libcurl_features=`$_libcurl_config --feature`
145            # Is it modern enough to have --protocols? (7.12.4)
146            if test $_libcurl_version -ge 461828 ; then
147               _libcurl_protocols=`$_libcurl_config --protocols`
148            fi
149         else
150            _libcurl_try_link=no
151         fi
153         unset _libcurl_wanted
154      fi
156      if test $_libcurl_try_link = yes ; then
158         # we didn't find curl-config, so let's see if the user-supplied
159         # link line (or failing that, "-lcurl") is enough.
160         LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"}
162         AC_CACHE_CHECK([whether libcurl is usable],
163            [libcurl_cv_lib_curl_usable],
164            [
165            _libcurl_save_cppflags=$CPPFLAGS
166            CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS"
167            _libcurl_save_libs=$LIBS
168            LIBS="$LIBCURL $LIBS"
170            AC_LINK_IFELSE(AC_LANG_PROGRAM([#include <curl/curl.h>],[
171 /* Try and use a few common options to force a failure if we are
172    missing symbols or can't link. */
173 int x;
174 curl_easy_setopt(NULL,CURLOPT_URL,NULL);
175 x=CURL_ERROR_SIZE;
176 x=CURLOPT_WRITEFUNCTION;
177 x=CURLOPT_FILE;
178 x=CURLOPT_ERRORBUFFER;
179 x=CURLOPT_STDERR;
180 x=CURLOPT_VERBOSE;
181 ]),libcurl_cv_lib_curl_usable=yes,libcurl_cv_lib_curl_usable=no)
183            CPPFLAGS=$_libcurl_save_cppflags
184            LIBS=$_libcurl_save_libs
185            unset _libcurl_save_cppflags
186            unset _libcurl_save_libs
187            ])
189         if test $libcurl_cv_lib_curl_usable = yes ; then
191            # Does curl_free() exist in this version of libcurl?
192            # If not, fake it with free()
194            _libcurl_save_cppflags=$CPPFLAGS
195            CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
196            _libcurl_save_libs=$LIBS
197            LIBS="$LIBS $LIBCURL"
199            AC_CHECK_FUNC(curl_free,,
200               AC_DEFINE(curl_free,free,
201                 [Define curl_free() as free() if our version of curl lacks curl_free.]))
203            CPPFLAGS=$_libcurl_save_cppflags
204            LIBS=$_libcurl_save_libs
205            unset _libcurl_save_cppflags
206            unset _libcurl_save_libs
208            AC_DEFINE(HAVE_LIBCURL,1,
209              [Define to 1 if you have a functional curl library.])
210            AC_SUBST(LIBCURL_CPPFLAGS)
211            AC_SUBST(LIBCURL)
213            for _libcurl_feature in $_libcurl_features ; do
214               AC_DEFINE_UNQUOTED(AS_TR_CPP(libcurl_feature_$_libcurl_feature),[1])
215               eval AS_TR_SH(libcurl_feature_$_libcurl_feature)=yes
216            done
218            if test "x$_libcurl_protocols" = "x" ; then
220               # We don't have --protocols, so just assume that all
221               # protocols are available
222               _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT TFTP"
224               if test x$libcurl_feature_SSL = xyes ; then
225                  _libcurl_protocols="$_libcurl_protocols HTTPS"
227                  # FTPS wasn't standards-compliant until version
228                  # 7.11.0 (0x070b00 == 461568)
229                  if test $_libcurl_version -ge 461568; then
230                     _libcurl_protocols="$_libcurl_protocols FTPS"
231                  fi
232               fi
234               # RTSP, IMAP, POP3 and SMTP were added in
235               # 7.20.0 (0x071400 == 463872)
236               if test $_libcurl_version -ge 463872; then
237                  _libcurl_protocols="$_libcurl_protocols RTSP IMAP POP3 SMTP"
238               fi
239            fi
241            for _libcurl_protocol in $_libcurl_protocols ; do
242               AC_DEFINE_UNQUOTED(AS_TR_CPP(libcurl_protocol_$_libcurl_protocol),[1])
243               eval AS_TR_SH(libcurl_protocol_$_libcurl_protocol)=yes
244            done
245         else
246            unset LIBCURL
247            unset LIBCURL_CPPFLAGS
248         fi
249      fi
251      unset _libcurl_try_link
252      unset _libcurl_version_parse
253      unset _libcurl_config
254      unset _libcurl_feature
255      unset _libcurl_features
256      unset _libcurl_protocol
257      unset _libcurl_protocols
258      unset _libcurl_version
259      unset _libcurl_ldflags
260   fi
262   if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
263      # This is the IF-NO path
264      ifelse([$4],,:,[$4])
265   else
266      # This is the IF-YES path
267      ifelse([$3],,:,[$3])
268   fi
270   unset _libcurl_with
271 ])dnl
273 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
275 # This file is free software; the Free Software Foundation
276 # gives unlimited permission to copy and/or distribute it,
277 # with or without modifications, as long as this notice is preserved.
279 # AM_AUTOMAKE_VERSION(VERSION)
280 # ----------------------------
281 # Automake X.Y traces this macro to ensure aclocal.m4 has been
282 # generated from the m4 files accompanying Automake X.Y.
283 # (This private macro should not be called outside this file.)
284 AC_DEFUN([AM_AUTOMAKE_VERSION],
285 [am__api_version='1.10'
286 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
287 dnl require some minimum version.  Point them to the right macro.
288 m4_if([$1], [1.10.3], [],
289       [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
292 # _AM_AUTOCONF_VERSION(VERSION)
293 # -----------------------------
294 # aclocal traces this macro to find the Autoconf version.
295 # This is a private macro too.  Using m4_define simplifies
296 # the logic in aclocal, which can simply ignore this definition.
297 m4_define([_AM_AUTOCONF_VERSION], [])
299 # AM_SET_CURRENT_AUTOMAKE_VERSION
300 # -------------------------------
301 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
302 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
303 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
304 [AM_AUTOMAKE_VERSION([1.10.3])dnl
305 m4_ifndef([AC_AUTOCONF_VERSION],
306   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
307 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
309 # AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
311 # Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
313 # This file is free software; the Free Software Foundation
314 # gives unlimited permission to copy and/or distribute it,
315 # with or without modifications, as long as this notice is preserved.
317 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
318 # $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
319 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
321 # Of course, Automake must honor this variable whenever it calls a
322 # tool from the auxiliary directory.  The problem is that $srcdir (and
323 # therefore $ac_aux_dir as well) can be either absolute or relative,
324 # depending on how configure is run.  This is pretty annoying, since
325 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
326 # source directory, any form will work fine, but in subdirectories a
327 # relative path needs to be adjusted first.
329 # $ac_aux_dir/missing
330 #    fails when called from a subdirectory if $ac_aux_dir is relative
331 # $top_srcdir/$ac_aux_dir/missing
332 #    fails if $ac_aux_dir is absolute,
333 #    fails when called from a subdirectory in a VPATH build with
334 #          a relative $ac_aux_dir
336 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
337 # are both prefixed by $srcdir.  In an in-source build this is usually
338 # harmless because $srcdir is `.', but things will broke when you
339 # start a VPATH build or use an absolute $srcdir.
341 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
342 # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
343 #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
344 # and then we would define $MISSING as
345 #   MISSING="\${SHELL} $am_aux_dir/missing"
346 # This will work as long as MISSING is not called from configure, because
347 # unfortunately $(top_srcdir) has no meaning in configure.
348 # However there are other variables, like CC, which are often used in
349 # configure, and could therefore not use this "fixed" $ac_aux_dir.
351 # Another solution, used here, is to always expand $ac_aux_dir to an
352 # absolute PATH.  The drawback is that using absolute paths prevent a
353 # configured tree to be moved without reconfiguration.
355 AC_DEFUN([AM_AUX_DIR_EXPAND],
356 [dnl Rely on autoconf to set up CDPATH properly.
357 AC_PREREQ([2.50])dnl
358 # expand $ac_aux_dir to an absolute path
359 am_aux_dir=`cd $ac_aux_dir && pwd`
362 # AM_CONDITIONAL                                            -*- Autoconf -*-
364 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
365 # Free Software Foundation, Inc.
367 # This file is free software; the Free Software Foundation
368 # gives unlimited permission to copy and/or distribute it,
369 # with or without modifications, as long as this notice is preserved.
371 # serial 8
373 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
374 # -------------------------------------
375 # Define a conditional.
376 AC_DEFUN([AM_CONDITIONAL],
377 [AC_PREREQ(2.52)dnl
378  ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
379         [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
380 AC_SUBST([$1_TRUE])dnl
381 AC_SUBST([$1_FALSE])dnl
382 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
383 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
384 if $2; then
385   $1_TRUE=
386   $1_FALSE='#'
387 else
388   $1_TRUE='#'
389   $1_FALSE=
391 AC_CONFIG_COMMANDS_PRE(
392 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
393   AC_MSG_ERROR([[conditional "$1" was never defined.
394 Usually this means the macro was only invoked conditionally.]])
395 fi])])
397 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
398 # Free Software Foundation, Inc.
400 # This file is free software; the Free Software Foundation
401 # gives unlimited permission to copy and/or distribute it,
402 # with or without modifications, as long as this notice is preserved.
404 # serial 10
406 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
407 # written in clear, in which case automake, when reading aclocal.m4,
408 # will think it sees a *use*, and therefore will trigger all it's
409 # C support machinery.  Also note that it means that autoscan, seeing
410 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
413 # _AM_DEPENDENCIES(NAME)
414 # ----------------------
415 # See how the compiler implements dependency checking.
416 # NAME is "CC", "CXX", "GCJ", or "OBJC".
417 # We try a few techniques and use that to set a single cache variable.
419 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
420 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
421 # dependency, and given that the user is not expected to run this macro,
422 # just rely on AC_PROG_CC.
423 AC_DEFUN([_AM_DEPENDENCIES],
424 [AC_REQUIRE([AM_SET_DEPDIR])dnl
425 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
426 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
427 AC_REQUIRE([AM_DEP_TRACK])dnl
429 ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
430        [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
431        [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
432        [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
433        [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
434                    [depcc="$$1"   am_compiler_list=])
436 AC_CACHE_CHECK([dependency style of $depcc],
437                [am_cv_$1_dependencies_compiler_type],
438 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
439   # We make a subdir and do the tests there.  Otherwise we can end up
440   # making bogus files that we don't know about and never remove.  For
441   # instance it was reported that on HP-UX the gcc test will end up
442   # making a dummy file named `D' -- because `-MD' means `put the output
443   # in D'.
444   mkdir conftest.dir
445   # Copy depcomp to subdir because otherwise we won't find it if we're
446   # using a relative directory.
447   cp "$am_depcomp" conftest.dir
448   cd conftest.dir
449   # We will build objects and dependencies in a subdirectory because
450   # it helps to detect inapplicable dependency modes.  For instance
451   # both Tru64's cc and ICC support -MD to output dependencies as a
452   # side effect of compilation, but ICC will put the dependencies in
453   # the current directory while Tru64 will put them in the object
454   # directory.
455   mkdir sub
457   am_cv_$1_dependencies_compiler_type=none
458   if test "$am_compiler_list" = ""; then
459      am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
460   fi
461   am__universal=false
462   m4_case([$1], [CC],
463     [case " $depcc " in #(
464      *\ -arch\ *\ -arch\ *) am__universal=true ;;
465      esac],
466     [CXX],
467     [case " $depcc " in #(
468      *\ -arch\ *\ -arch\ *) am__universal=true ;;
469      esac])
471   for depmode in $am_compiler_list; do
472     # Setup a source with many dependencies, because some compilers
473     # like to wrap large dependency lists on column 80 (with \), and
474     # we should not choose a depcomp mode which is confused by this.
475     #
476     # We need to recreate these files for each test, as the compiler may
477     # overwrite some of them when testing with obscure command lines.
478     # This happens at least with the AIX C compiler.
479     : > sub/conftest.c
480     for i in 1 2 3 4 5 6; do
481       echo '#include "conftst'$i'.h"' >> sub/conftest.c
482       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
483       # Solaris 8's {/usr,}/bin/sh.
484       touch sub/conftst$i.h
485     done
486     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
488     # We check with `-c' and `-o' for the sake of the "dashmstdout"
489     # mode.  It turns out that the SunPro C++ compiler does not properly
490     # handle `-M -o', and we need to detect this.  Also, some Intel
491     # versions had trouble with output in subdirs
492     am__obj=sub/conftest.${OBJEXT-o}
493     am__minus_obj="-o $am__obj"
494     case $depmode in
495     gcc)
496       # This depmode causes a compiler race in universal mode.
497       test "$am__universal" = false || continue
498       ;;
499     nosideeffect)
500       # after this tag, mechanisms are not by side-effect, so they'll
501       # only be used when explicitly requested
502       if test "x$enable_dependency_tracking" = xyes; then
503         continue
504       else
505         break
506       fi
507       ;;
508     msvisualcpp | msvcmsys)
509       # This compiler won't grok `-c -o', but also, the minuso test has
510       # not run yet.  These depmodes are late enough in the game, and
511       # so weak that their functioning should not be impacted.
512       am__obj=conftest.${OBJEXT-o}
513       am__minus_obj=
514       ;;
515     none) break ;;
516     esac
517     if depmode=$depmode \
518        source=sub/conftest.c object=$am__obj \
519        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
520        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
521          >/dev/null 2>conftest.err &&
522        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
523        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
524        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
525        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
526       # icc doesn't choke on unknown options, it will just issue warnings
527       # or remarks (even with -Werror).  So we grep stderr for any message
528       # that says an option was ignored or not supported.
529       # When given -MP, icc 7.0 and 7.1 complain thusly:
530       #   icc: Command line warning: ignoring option '-M'; no argument required
531       # The diagnosis changed in icc 8.0:
532       #   icc: Command line remark: option '-MP' not supported
533       if (grep 'ignoring option' conftest.err ||
534           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
535         am_cv_$1_dependencies_compiler_type=$depmode
536         break
537       fi
538     fi
539   done
541   cd ..
542   rm -rf conftest.dir
543 else
544   am_cv_$1_dependencies_compiler_type=none
547 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
548 AM_CONDITIONAL([am__fastdep$1], [
549   test "x$enable_dependency_tracking" != xno \
550   && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
554 # AM_SET_DEPDIR
555 # -------------
556 # Choose a directory name for dependency files.
557 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
558 AC_DEFUN([AM_SET_DEPDIR],
559 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
560 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
564 # AM_DEP_TRACK
565 # ------------
566 AC_DEFUN([AM_DEP_TRACK],
567 [AC_ARG_ENABLE(dependency-tracking,
568 [  --disable-dependency-tracking  speeds up one-time build
569   --enable-dependency-tracking   do not reject slow dependency extractors])
570 if test "x$enable_dependency_tracking" != xno; then
571   am_depcomp="$ac_aux_dir/depcomp"
572   AMDEPBACKSLASH='\'
574 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
575 AC_SUBST([AMDEPBACKSLASH])dnl
576 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
579 # Generate code to set up dependency tracking.              -*- Autoconf -*-
581 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
582 # Free Software Foundation, Inc.
584 # This file is free software; the Free Software Foundation
585 # gives unlimited permission to copy and/or distribute it,
586 # with or without modifications, as long as this notice is preserved.
588 #serial 5
590 # _AM_OUTPUT_DEPENDENCY_COMMANDS
591 # ------------------------------
592 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
594   # Autoconf 2.62 quotes --file arguments for eval, but not when files
595   # are listed without --file.  Let's play safe and only enable the eval
596   # if we detect the quoting.
597   case $CONFIG_FILES in
598   *\'*) eval set x "$CONFIG_FILES" ;;
599   *)   set x $CONFIG_FILES ;;
600   esac
601   shift
602   for mf
603   do
604     # Strip MF so we end up with the name of the file.
605     mf=`echo "$mf" | sed -e 's/:.*$//'`
606     # Check whether this is an Automake generated Makefile or not.
607     # We used to match only the files named `Makefile.in', but
608     # some people rename them; so instead we look at the file content.
609     # Grep'ing the first line is not enough: some people post-process
610     # each Makefile.in and add a new line on top of each file to say so.
611     # Grep'ing the whole file is not good either: AIX grep has a line
612     # limit of 2048, but all sed's we know have understand at least 4000.
613     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
614       dirpart=`AS_DIRNAME("$mf")`
615     else
616       continue
617     fi
618     # Extract the definition of DEPDIR, am__include, and am__quote
619     # from the Makefile without running `make'.
620     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
621     test -z "$DEPDIR" && continue
622     am__include=`sed -n 's/^am__include = //p' < "$mf"`
623     test -z "am__include" && continue
624     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
625     # When using ansi2knr, U may be empty or an underscore; expand it
626     U=`sed -n 's/^U = //p' < "$mf"`
627     # Find all dependency output files, they are included files with
628     # $(DEPDIR) in their names.  We invoke sed twice because it is the
629     # simplest approach to changing $(DEPDIR) to its actual value in the
630     # expansion.
631     for file in `sed -n "
632       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
633          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
634       # Make sure the directory exists.
635       test -f "$dirpart/$file" && continue
636       fdir=`AS_DIRNAME(["$file"])`
637       AS_MKDIR_P([$dirpart/$fdir])
638       # echo "creating $dirpart/$file"
639       echo '# dummy' > "$dirpart/$file"
640     done
641   done
643 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
646 # AM_OUTPUT_DEPENDENCY_COMMANDS
647 # -----------------------------
648 # This macro should only be invoked once -- use via AC_REQUIRE.
650 # This code is only required when automatic dependency tracking
651 # is enabled.  FIXME.  This creates each `.P' file that we will
652 # need in order to bootstrap the dependency handling code.
653 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
654 [AC_CONFIG_COMMANDS([depfiles],
655      [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
656      [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
659 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
660 # Free Software Foundation, Inc.
662 # This file is free software; the Free Software Foundation
663 # gives unlimited permission to copy and/or distribute it,
664 # with or without modifications, as long as this notice is preserved.
666 # serial 8
668 # AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
669 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
671 # Do all the work for Automake.                             -*- Autoconf -*-
673 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
674 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
676 # This file is free software; the Free Software Foundation
677 # gives unlimited permission to copy and/or distribute it,
678 # with or without modifications, as long as this notice is preserved.
680 # serial 13
682 # This macro actually does too much.  Some checks are only needed if
683 # your package does certain things.  But this isn't really a big deal.
685 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
686 # AM_INIT_AUTOMAKE([OPTIONS])
687 # -----------------------------------------------
688 # The call with PACKAGE and VERSION arguments is the old style
689 # call (pre autoconf-2.50), which is being phased out.  PACKAGE
690 # and VERSION should now be passed to AC_INIT and removed from
691 # the call to AM_INIT_AUTOMAKE.
692 # We support both call styles for the transition.  After
693 # the next Automake release, Autoconf can make the AC_INIT
694 # arguments mandatory, and then we can depend on a new Autoconf
695 # release and drop the old call support.
696 AC_DEFUN([AM_INIT_AUTOMAKE],
697 [AC_PREREQ([2.60])dnl
698 dnl Autoconf wants to disallow AM_ names.  We explicitly allow
699 dnl the ones we care about.
700 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
701 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
702 AC_REQUIRE([AC_PROG_INSTALL])dnl
703 if test "`cd $srcdir && pwd`" != "`pwd`"; then
704   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
705   # is not polluted with repeated "-I."
706   AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
707   # test to see if srcdir already configured
708   if test -f $srcdir/config.status; then
709     AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
710   fi
713 # test whether we have cygpath
714 if test -z "$CYGPATH_W"; then
715   if (cygpath --version) >/dev/null 2>/dev/null; then
716     CYGPATH_W='cygpath -w'
717   else
718     CYGPATH_W=echo
719   fi
721 AC_SUBST([CYGPATH_W])
723 # Define the identity of the package.
724 dnl Distinguish between old-style and new-style calls.
725 m4_ifval([$2],
726 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
727  AC_SUBST([PACKAGE], [$1])dnl
728  AC_SUBST([VERSION], [$2])],
729 [_AM_SET_OPTIONS([$1])dnl
730 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
731 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
732   [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
733  AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
734  AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
736 _AM_IF_OPTION([no-define],,
737 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
738  AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
740 # Some tools Automake needs.
741 AC_REQUIRE([AM_SANITY_CHECK])dnl
742 AC_REQUIRE([AC_ARG_PROGRAM])dnl
743 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
744 AM_MISSING_PROG(AUTOCONF, autoconf)
745 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
746 AM_MISSING_PROG(AUTOHEADER, autoheader)
747 AM_MISSING_PROG(MAKEINFO, makeinfo)
748 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
749 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
750 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
751 # We need awk for the "check" target.  The system "awk" is bad on
752 # some platforms.
753 AC_REQUIRE([AC_PROG_AWK])dnl
754 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
755 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
756 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
757               [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
758                              [_AM_PROG_TAR([v7])])])
759 _AM_IF_OPTION([no-dependencies],,
760 [AC_PROVIDE_IFELSE([AC_PROG_CC],
761                   [_AM_DEPENDENCIES(CC)],
762                   [define([AC_PROG_CC],
763                           defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
764 AC_PROVIDE_IFELSE([AC_PROG_CXX],
765                   [_AM_DEPENDENCIES(CXX)],
766                   [define([AC_PROG_CXX],
767                           defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
768 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
769                   [_AM_DEPENDENCIES(OBJC)],
770                   [define([AC_PROG_OBJC],
771                           defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
776 # When config.status generates a header, we must update the stamp-h file.
777 # This file resides in the same directory as the config header
778 # that is generated.  The stamp files are numbered to have different names.
780 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
781 # loop where config.status creates the headers, so we can generate
782 # our stamp files there.
783 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
784 [# Compute $1's index in $config_headers.
785 _am_arg=$1
786 _am_stamp_count=1
787 for _am_header in $config_headers :; do
788   case $_am_header in
789     $_am_arg | $_am_arg:* )
790       break ;;
791     * )
792       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
793   esac
794 done
795 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
797 # Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
799 # This file is free software; the Free Software Foundation
800 # gives unlimited permission to copy and/or distribute it,
801 # with or without modifications, as long as this notice is preserved.
803 # AM_PROG_INSTALL_SH
804 # ------------------
805 # Define $install_sh.
806 AC_DEFUN([AM_PROG_INSTALL_SH],
807 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
808 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
809 AC_SUBST(install_sh)])
811 # Copyright (C) 2003, 2005  Free Software Foundation, Inc.
813 # This file is free software; the Free Software Foundation
814 # gives unlimited permission to copy and/or distribute it,
815 # with or without modifications, as long as this notice is preserved.
817 # serial 2
819 # Check whether the underlying file-system supports filenames
820 # with a leading dot.  For instance MS-DOS doesn't.
821 AC_DEFUN([AM_SET_LEADING_DOT],
822 [rm -rf .tst 2>/dev/null
823 mkdir .tst 2>/dev/null
824 if test -d .tst; then
825   am__leading_dot=.
826 else
827   am__leading_dot=_
829 rmdir .tst 2>/dev/null
830 AC_SUBST([am__leading_dot])])
832 # Check to see how 'make' treats includes.                  -*- Autoconf -*-
834 # Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
836 # This file is free software; the Free Software Foundation
837 # gives unlimited permission to copy and/or distribute it,
838 # with or without modifications, as long as this notice is preserved.
840 # serial 3
842 # AM_MAKE_INCLUDE()
843 # -----------------
844 # Check to see how make treats includes.
845 AC_DEFUN([AM_MAKE_INCLUDE],
846 [am_make=${MAKE-make}
847 cat > confinc << 'END'
848 am__doit:
849         @echo done
850 .PHONY: am__doit
852 # If we don't find an include directive, just comment out the code.
853 AC_MSG_CHECKING([for style of include used by $am_make])
854 am__include="#"
855 am__quote=
856 _am_result=none
857 # First try GNU make style include.
858 echo "include confinc" > confmf
859 # We grep out `Entering directory' and `Leaving directory'
860 # messages which can occur if `w' ends up in MAKEFLAGS.
861 # In particular we don't look at `^make:' because GNU make might
862 # be invoked under some other name (usually "gmake"), in which
863 # case it prints its new name instead of `make'.
864 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
865    am__include=include
866    am__quote=
867    _am_result=GNU
869 # Now try BSD make style include.
870 if test "$am__include" = "#"; then
871    echo '.include "confinc"' > confmf
872    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
873       am__include=.include
874       am__quote="\""
875       _am_result=BSD
876    fi
878 AC_SUBST([am__include])
879 AC_SUBST([am__quote])
880 AC_MSG_RESULT([$_am_result])
881 rm -f confinc confmf
884 # Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
886 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
887 # Free Software Foundation, Inc.
889 # This file is free software; the Free Software Foundation
890 # gives unlimited permission to copy and/or distribute it,
891 # with or without modifications, as long as this notice is preserved.
893 # serial 5
895 # AM_MISSING_PROG(NAME, PROGRAM)
896 # ------------------------------
897 AC_DEFUN([AM_MISSING_PROG],
898 [AC_REQUIRE([AM_MISSING_HAS_RUN])
899 $1=${$1-"${am_missing_run}$2"}
900 AC_SUBST($1)])
903 # AM_MISSING_HAS_RUN
904 # ------------------
905 # Define MISSING if not defined so far and test if it supports --run.
906 # If it does, set am_missing_run to use it, otherwise, to nothing.
907 AC_DEFUN([AM_MISSING_HAS_RUN],
908 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
909 AC_REQUIRE_AUX_FILE([missing])dnl
910 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
911 # Use eval to expand $SHELL
912 if eval "$MISSING --run true"; then
913   am_missing_run="$MISSING --run "
914 else
915   am_missing_run=
916   AC_MSG_WARN([`missing' script is too old or missing])
920 # Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
922 # This file is free software; the Free Software Foundation
923 # gives unlimited permission to copy and/or distribute it,
924 # with or without modifications, as long as this notice is preserved.
926 # AM_PROG_MKDIR_P
927 # ---------------
928 # Check for `mkdir -p'.
929 AC_DEFUN([AM_PROG_MKDIR_P],
930 [AC_PREREQ([2.60])dnl
931 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
932 dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
933 dnl while keeping a definition of mkdir_p for backward compatibility.
934 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
935 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
936 dnl Makefile.ins that do not define MKDIR_P, so we do our own
937 dnl adjustment using top_builddir (which is defined more often than
938 dnl MKDIR_P).
939 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
940 case $mkdir_p in
941   [[\\/$]]* | ?:[[\\/]]*) ;;
942   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
943 esac
946 # Helper functions for option handling.                     -*- Autoconf -*-
948 # Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
950 # This file is free software; the Free Software Foundation
951 # gives unlimited permission to copy and/or distribute it,
952 # with or without modifications, as long as this notice is preserved.
954 # serial 4
956 # _AM_MANGLE_OPTION(NAME)
957 # -----------------------
958 AC_DEFUN([_AM_MANGLE_OPTION],
959 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
961 # _AM_SET_OPTION(NAME)
962 # ------------------------------
963 # Set option NAME.  Presently that only means defining a flag for this option.
964 AC_DEFUN([_AM_SET_OPTION],
965 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
967 # _AM_SET_OPTIONS(OPTIONS)
968 # ----------------------------------
969 # OPTIONS is a space-separated list of Automake options.
970 AC_DEFUN([_AM_SET_OPTIONS],
971 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
973 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
974 # -------------------------------------------
975 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
976 AC_DEFUN([_AM_IF_OPTION],
977 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
979 # Check to make sure that the build environment is sane.    -*- Autoconf -*-
981 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
982 # Free Software Foundation, Inc.
984 # This file is free software; the Free Software Foundation
985 # gives unlimited permission to copy and/or distribute it,
986 # with or without modifications, as long as this notice is preserved.
988 # serial 4
990 # AM_SANITY_CHECK
991 # ---------------
992 AC_DEFUN([AM_SANITY_CHECK],
993 [AC_MSG_CHECKING([whether build environment is sane])
994 # Just in case
995 sleep 1
996 echo timestamp > conftest.file
997 # Do `set' in a subshell so we don't clobber the current shell's
998 # arguments.  Must try -L first in case configure is actually a
999 # symlink; some systems play weird games with the mod time of symlinks
1000 # (eg FreeBSD returns the mod time of the symlink's containing
1001 # directory).
1002 if (
1003    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1004    if test "$[*]" = "X"; then
1005       # -L didn't work.
1006       set X `ls -t $srcdir/configure conftest.file`
1007    fi
1008    rm -f conftest.file
1009    if test "$[*]" != "X $srcdir/configure conftest.file" \
1010       && test "$[*]" != "X conftest.file $srcdir/configure"; then
1012       # If neither matched, then we have a broken ls.  This can happen
1013       # if, for instance, CONFIG_SHELL is bash and it inherits a
1014       # broken ls alias from the environment.  This has actually
1015       # happened.  Such a system could not be considered "sane".
1016       AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
1017 alias in your environment])
1018    fi
1020    test "$[2]" = conftest.file
1021    )
1022 then
1023    # Ok.
1024    :
1025 else
1026    AC_MSG_ERROR([newly created file is older than distributed files!
1027 Check your system clock])
1029 AC_MSG_RESULT(yes)])
1031 # Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
1033 # This file is free software; the Free Software Foundation
1034 # gives unlimited permission to copy and/or distribute it,
1035 # with or without modifications, as long as this notice is preserved.
1037 # AM_PROG_INSTALL_STRIP
1038 # ---------------------
1039 # One issue with vendor `install' (even GNU) is that you can't
1040 # specify the program used to strip binaries.  This is especially
1041 # annoying in cross-compiling environments, where the build's strip
1042 # is unlikely to handle the host's binaries.
1043 # Fortunately install-sh will honor a STRIPPROG variable, so we
1044 # always use install-sh in `make install-strip', and initialize
1045 # STRIPPROG with the value of the STRIP variable (set by the user).
1046 AC_DEFUN([AM_PROG_INSTALL_STRIP],
1047 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1048 # Installed binaries are usually stripped using `strip' when the user
1049 # run `make install-strip'.  However `strip' might not be the right
1050 # tool to use in cross-compilation environments, therefore Automake
1051 # will honor the `STRIP' environment variable to overrule this program.
1052 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1053 if test "$cross_compiling" != no; then
1054   AC_CHECK_TOOL([STRIP], [strip], :)
1056 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1057 AC_SUBST([INSTALL_STRIP_PROGRAM])])
1059 # Copyright (C) 2006  Free Software Foundation, Inc.
1061 # This file is free software; the Free Software Foundation
1062 # gives unlimited permission to copy and/or distribute it,
1063 # with or without modifications, as long as this notice is preserved.
1065 # _AM_SUBST_NOTMAKE(VARIABLE)
1066 # ---------------------------
1067 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1068 # This macro is traced by Automake.
1069 AC_DEFUN([_AM_SUBST_NOTMAKE])
1071 # Check how to create a tarball.                            -*- Autoconf -*-
1073 # Copyright (C) 2004, 2005  Free Software Foundation, Inc.
1075 # This file is free software; the Free Software Foundation
1076 # gives unlimited permission to copy and/or distribute it,
1077 # with or without modifications, as long as this notice is preserved.
1079 # serial 2
1081 # _AM_PROG_TAR(FORMAT)
1082 # --------------------
1083 # Check how to create a tarball in format FORMAT.
1084 # FORMAT should be one of `v7', `ustar', or `pax'.
1086 # Substitute a variable $(am__tar) that is a command
1087 # writing to stdout a FORMAT-tarball containing the directory
1088 # $tardir.
1089 #     tardir=directory && $(am__tar) > result.tar
1091 # Substitute a variable $(am__untar) that extract such
1092 # a tarball read from stdin.
1093 #     $(am__untar) < result.tar
1094 AC_DEFUN([_AM_PROG_TAR],
1095 [# Always define AMTAR for backward compatibility.
1096 AM_MISSING_PROG([AMTAR], [tar])
1097 m4_if([$1], [v7],
1098      [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
1099      [m4_case([$1], [ustar],, [pax],,
1100               [m4_fatal([Unknown tar format])])
1101 AC_MSG_CHECKING([how to create a $1 tar archive])
1102 # Loop over all known methods to create a tar archive until one works.
1103 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1104 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1105 # Do not fold the above two line into one, because Tru64 sh and
1106 # Solaris sh will not grok spaces in the rhs of `-'.
1107 for _am_tool in $_am_tools
1109   case $_am_tool in
1110   gnutar)
1111     for _am_tar in tar gnutar gtar;
1112     do
1113       AM_RUN_LOG([$_am_tar --version]) && break
1114     done
1115     am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1116     am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1117     am__untar="$_am_tar -xf -"
1118     ;;
1119   plaintar)
1120     # Must skip GNU tar: if it does not support --format= it doesn't create
1121     # ustar tarball either.
1122     (tar --version) >/dev/null 2>&1 && continue
1123     am__tar='tar chf - "$$tardir"'
1124     am__tar_='tar chf - "$tardir"'
1125     am__untar='tar xf -'
1126     ;;
1127   pax)
1128     am__tar='pax -L -x $1 -w "$$tardir"'
1129     am__tar_='pax -L -x $1 -w "$tardir"'
1130     am__untar='pax -r'
1131     ;;
1132   cpio)
1133     am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1134     am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1135     am__untar='cpio -i -H $1 -d'
1136     ;;
1137   none)
1138     am__tar=false
1139     am__tar_=false
1140     am__untar=false
1141     ;;
1142   esac
1144   # If the value was cached, stop now.  We just wanted to have am__tar
1145   # and am__untar set.
1146   test -n "${am_cv_prog_tar_$1}" && break
1148   # tar/untar a dummy directory, and stop if the command works
1149   rm -rf conftest.dir
1150   mkdir conftest.dir
1151   echo GrepMe > conftest.dir/file
1152   AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1153   rm -rf conftest.dir
1154   if test -s conftest.tar; then
1155     AM_RUN_LOG([$am__untar <conftest.tar])
1156     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1157   fi
1158 done
1159 rm -rf conftest.dir
1161 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1162 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1163 AC_SUBST([am__tar])
1164 AC_SUBST([am__untar])
1165 ]) # _AM_PROG_TAR
1167 m4_include([m4/libpcre.m4])
1168 m4_include([m4/libwraster.m4])
1169 m4_include([m4/snprintf.m4])
1170 m4_include([m4/vsnprintf.m4])
1171 m4_include([m4/xpm.m4])