root/trunk/aclocal.m4
| Revision 53, 40.1 KB (checked in by cmccurdy, 15 months ago) |
|---|
| Line | |
|---|---|
| 1 | # generated automatically by aclocal 1.10 -*- Autoconf -*- |
| 2 | |
| 3 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
| 4 | # 2005, 2006 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_if(m4_PACKAGE_VERSION, [2.61],, |
| 15 | [m4_fatal([this file was generated for autoconf 2.61. |
| 16 | You have another version of autoconf. If you want to use that, |
| 17 | you should regenerate the build system entirely.], [63])]) |
| 18 | |
| 19 | # Configure paths for GTK+ |
| 20 | # Owen Taylor 1997-2001 |
| 21 | |
| 22 | dnl AM_PATH_GTK_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]]) |
| 23 | dnl Test for GTK+, and define GTK_CFLAGS and GTK_LIBS, if gthread is specified in MODULES, |
| 24 | dnl pass to pkg-config |
| 25 | dnl |
| 26 | AC_DEFUN([AM_PATH_GTK_2_0], |
| 27 | [dnl |
| 28 | dnl Get the cflags and libraries from pkg-config |
| 29 | dnl |
| 30 | AC_ARG_ENABLE(gtktest, [ --disable-gtktest do not try to compile and run a test GTK+ program], |
| 31 | , enable_gtktest=yes) |
| 32 | |
| 33 | pkg_config_args=gtk+-2.0 |
| 34 | for module in . $4 |
| 35 | do |
| 36 | case "$module" in |
| 37 | gthread) |
| 38 | pkg_config_args="$pkg_config_args gthread-2.0" |
| 39 | ;; |
| 40 | esac |
| 41 | done |
| 42 | |
| 43 | no_gtk="" |
| 44 | |
| 45 | AC_PATH_PROG(PKG_CONFIG, pkg-config, no) |
| 46 | |
| 47 | if test x$PKG_CONFIG != xno ; then |
| 48 | if pkg-config --atleast-pkgconfig-version 0.7 ; then |
| 49 | : |
| 50 | else |
| 51 | echo "*** pkg-config too old; version 0.7 or better required." |
| 52 | no_gtk=yes |
| 53 | PKG_CONFIG=no |
| 54 | fi |
| 55 | else |
| 56 | no_gtk=yes |
| 57 | fi |
| 58 | |
| 59 | min_gtk_version=ifelse([$1], ,2.0.0,$1) |
| 60 | AC_MSG_CHECKING(for GTK+ - version >= $min_gtk_version) |
| 61 | |
| 62 | if test x$PKG_CONFIG != xno ; then |
| 63 | ## don't try to run the test against uninstalled libtool libs |
| 64 | if $PKG_CONFIG --uninstalled $pkg_config_args; then |
| 65 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" |
| 66 | enable_gtktest=no |
| 67 | fi |
| 68 | |
| 69 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
| 70 | : |
| 71 | else |
| 72 | no_gtk=yes |
| 73 | fi |
| 74 | fi |
| 75 | |
| 76 | if test x"$no_gtk" = x ; then |
| 77 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` |
| 78 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` |
| 79 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 80 | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` |
| 81 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 82 | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` |
| 83 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 84 | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` |
| 85 | if test "x$enable_gtktest" = "xyes" ; then |
| 86 | ac_save_CFLAGS="$CFLAGS" |
| 87 | ac_save_LIBS="$LIBS" |
| 88 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 89 | LIBS="$GTK_LIBS $LIBS" |
| 90 | dnl |
| 91 | dnl Now check if the installed GTK+ is sufficiently new. (Also sanity |
| 92 | dnl checks the results of pkg-config to some extent) |
| 93 | dnl |
| 94 | rm -f conf.gtktest |
| 95 | AC_TRY_RUN([ |
| 96 | #include <gtk/gtk.h> |
| 97 | #include <stdio.h> |
| 98 | #include <stdlib.h> |
| 99 | |
| 100 | int |
| 101 | main () |
| 102 | { |
| 103 | int major, minor, micro; |
| 104 | char *tmp_version; |
| 105 | |
| 106 | system ("touch conf.gtktest"); |
| 107 | |
| 108 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
| 109 | tmp_version = g_strdup("$min_gtk_version"); |
| 110 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
| 111 | printf("%s, bad version string\n", "$min_gtk_version"); |
| 112 | exit(1); |
| 113 | } |
| 114 | |
| 115 | if ((gtk_major_version != $gtk_config_major_version) || |
| 116 | (gtk_minor_version != $gtk_config_minor_version) || |
| 117 | (gtk_micro_version != $gtk_config_micro_version)) |
| 118 | { |
| 119 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
| 120 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
| 121 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
| 122 | printf ("*** was found! If pkg-config was correct, then it is best\n"); |
| 123 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); |
| 124 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); |
| 125 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); |
| 126 | printf("*** required on your system.\n"); |
| 127 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); |
| 128 | printf("*** to point to the correct configuration files\n"); |
| 129 | } |
| 130 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
| 131 | (gtk_minor_version != GTK_MINOR_VERSION) || |
| 132 | (gtk_micro_version != GTK_MICRO_VERSION)) |
| 133 | { |
| 134 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", |
| 135 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
| 136 | printf("*** library (version %d.%d.%d)\n", |
| 137 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
| 138 | } |
| 139 | else |
| 140 | { |
| 141 | if ((gtk_major_version > major) || |
| 142 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
| 143 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) |
| 144 | { |
| 145 | return 0; |
| 146 | } |
| 147 | else |
| 148 | { |
| 149 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", |
| 150 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
| 151 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", |
| 152 | major, minor, micro); |
| 153 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
| 154 | printf("***\n"); |
| 155 | printf("*** If you have already installed a sufficiently new version, this error\n"); |
| 156 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); |
| 157 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); |
| 158 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); |
| 159 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); |
| 160 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); |
| 161 | printf("*** so that the correct libraries are found at run-time))\n"); |
| 162 | } |
| 163 | } |
| 164 | return 1; |
| 165 | } |
| 166 | ],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) |
| 167 | CFLAGS="$ac_save_CFLAGS" |
| 168 | LIBS="$ac_save_LIBS" |
| 169 | fi |
| 170 | fi |
| 171 | if test "x$no_gtk" = x ; then |
| 172 | AC_MSG_RESULT(yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)) |
| 173 | ifelse([$2], , :, [$2]) |
| 174 | else |
| 175 | AC_MSG_RESULT(no) |
| 176 | if test "$PKG_CONFIG" = "no" ; then |
| 177 | echo "*** A new enough version of pkg-config was not found." |
| 178 | echo "*** See http://pkgconfig.sourceforge.net" |
| 179 | else |
| 180 | if test -f conf.gtktest ; then |
| 181 | : |
| 182 | else |
| 183 | echo "*** Could not run GTK+ test program, checking why..." |
| 184 | ac_save_CFLAGS="$CFLAGS" |
| 185 | ac_save_LIBS="$LIBS" |
| 186 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 187 | LIBS="$LIBS $GTK_LIBS" |
| 188 | AC_TRY_LINK([ |
| 189 | #include <gtk/gtk.h> |
| 190 | #include <stdio.h> |
| 191 | ], [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ], |
| 192 | [ echo "*** The test program compiled, but did not run. This usually means" |
| 193 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" |
| 194 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" |
| 195 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" |
| 196 | echo "*** to the installed location Also, make sure you have run ldconfig if that" |
| 197 | echo "*** is required on your system" |
| 198 | echo "***" |
| 199 | echo "*** If you have an old version installed, it is best to remove it, although" |
| 200 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ], |
| 201 | [ echo "*** The test program failed to compile or link. See the file config.log for the" |
| 202 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."]) |
| 203 | CFLAGS="$ac_save_CFLAGS" |
| 204 | LIBS="$ac_save_LIBS" |
| 205 | fi |
| 206 | fi |
| 207 | GTK_CFLAGS="" |
| 208 | GTK_LIBS="" |
| 209 | ifelse([$3], , :, [$3]) |
| 210 | fi |
| 211 | AC_SUBST(GTK_CFLAGS) |
| 212 | AC_SUBST(GTK_LIBS) |
| 213 | rm -f conf.gtktest |
| 214 | ]) |
| 215 | |
| 216 | # Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc. |
| 217 | # |
| 218 | # This file is free software; the Free Software Foundation |
| 219 | # gives unlimited permission to copy and/or distribute it, |
| 220 | # with or without modifications, as long as this notice is preserved. |
| 221 | |
| 222 | # AM_AUTOMAKE_VERSION(VERSION) |
| 223 | # ---------------------------- |
| 224 | # Automake X.Y traces this macro to ensure aclocal.m4 has been |
| 225 | # generated from the m4 files accompanying Automake X.Y. |
| 226 | # (This private macro should not be called outside this file.) |
| 227 | AC_DEFUN([AM_AUTOMAKE_VERSION], |
| 228 | [am__api_version='1.10' |
| 229 | dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to |
| 230 | dnl require some minimum version. Point them to the right macro. |
| 231 | m4_if([$1], [1.10], [], |
| 232 | [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl |
| 233 | ]) |
| 234 | |
| 235 | # _AM_AUTOCONF_VERSION(VERSION) |
| 236 | # ----------------------------- |
| 237 | # aclocal traces this macro to find the Autoconf version. |
| 238 | # This is a private macro too. Using m4_define simplifies |
| 239 | # the logic in aclocal, which can simply ignore this definition. |
| 240 | m4_define([_AM_AUTOCONF_VERSION], []) |
| 241 | |
| 242 | # AM_SET_CURRENT_AUTOMAKE_VERSION |
| 243 | # ------------------------------- |
| 244 | # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. |
| 245 | # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. |
| 246 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
| 247 | [AM_AUTOMAKE_VERSION([1.10])dnl |
| 248 | _AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)]) |
| 249 | |
| 250 | # AM_AUX_DIR_EXPAND -*- Autoconf -*- |
| 251 | |
| 252 | # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. |
| 253 | # |
| 254 | # This file is free software; the Free Software Foundation |
| 255 | # gives unlimited permission to copy and/or distribute it, |
| 256 | # with or without modifications, as long as this notice is preserved. |
| 257 | |
| 258 | # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets |
| 259 | # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to |
| 260 | # `$srcdir', `$srcdir/..', or `$srcdir/../..'. |
| 261 | # |
| 262 | # Of course, Automake must honor this variable whenever it calls a |
| 263 | # tool from the auxiliary directory. The problem is that $srcdir (and |
| 264 | # therefore $ac_aux_dir as well) can be either absolute or relative, |
| 265 | # depending on how configure is run. This is pretty annoying, since |
| 266 | # it makes $ac_aux_dir quite unusable in subdirectories: in the top |
| 267 | # source directory, any form will work fine, but in subdirectories a |
| 268 | # relative path needs to be adjusted first. |
| 269 | # |
| 270 | # $ac_aux_dir/missing |
| 271 | # fails when called from a subdirectory if $ac_aux_dir is relative |
| 272 | # $top_srcdir/$ac_aux_dir/missing |
| 273 | # fails if $ac_aux_dir is absolute, |
| 274 | # fails when called from a subdirectory in a VPATH build with |
| 275 | # a relative $ac_aux_dir |
| 276 | # |
| 277 | # The reason of the latter failure is that $top_srcdir and $ac_aux_dir |
| 278 | # are both prefixed by $srcdir. In an in-source build this is usually |
| 279 | # harmless because $srcdir is `.', but things will broke when you |
| 280 | # start a VPATH build or use an absolute $srcdir. |
| 281 | # |
| 282 | # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, |
| 283 | # iff we strip the leading $srcdir from $ac_aux_dir. That would be: |
| 284 | # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` |
| 285 | # and then we would define $MISSING as |
| 286 | # MISSING="\${SHELL} $am_aux_dir/missing" |
| 287 | # This will work as long as MISSING is not called from configure, because |
| 288 | # unfortunately $(top_srcdir) has no meaning in configure. |
| 289 | # However there are other variables, like CC, which are often used in |
| 290 | # configure, and could therefore not use this "fixed" $ac_aux_dir. |
| 291 | # |
| 292 | # Another solution, used here, is to always expand $ac_aux_dir to an |
| 293 | # absolute PATH. The drawback is that using absolute paths prevent a |
| 294 | # configured tree to be moved without reconfiguration. |
| 295 | |
| 296 | AC_DEFUN([AM_AUX_DIR_EXPAND], |
| 297 | [dnl Rely on autoconf to set up CDPATH properly. |
| 298 | AC_PREREQ([2.50])dnl |
| 299 | # expand $ac_aux_dir to an absolute path |
| 300 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 301 | ]) |
| 302 | |
| 303 | # AM_CONDITIONAL -*- Autoconf -*- |
| 304 | |
| 305 | # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 |
| 306 | # Free Software Foundation, Inc. |
| 307 | # |
| 308 | # This file is free software; the Free Software Foundation |
| 309 | # gives unlimited permission to copy and/or distribute it, |
| 310 | # with or without modifications, as long as this notice is preserved. |
| 311 | |
| 312 | # serial 8 |
| 313 | |
| 314 | # AM_CONDITIONAL(NAME, SHELL-CONDITION) |
| 315 | # ------------------------------------- |
| 316 | # Define a conditional. |
| 317 | AC_DEFUN([AM_CONDITIONAL], |
| 318 | [AC_PREREQ(2.52)dnl |
| 319 | ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], |
| 320 | [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl |
| 321 | AC_SUBST([$1_TRUE])dnl |
| 322 | AC_SUBST([$1_FALSE])dnl |
| 323 | _AM_SUBST_NOTMAKE([$1_TRUE])dnl |
| 324 | _AM_SUBST_NOTMAKE([$1_FALSE])dnl |
| 325 | if $2; then |
| 326 | $1_TRUE= |
| 327 | $1_FALSE='#' |
| 328 | else |
| 329 | $1_TRUE='#' |
| 330 | $1_FALSE= |
| 331 | fi |
| 332 | AC_CONFIG_COMMANDS_PRE( |
| 333 | [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then |
| 334 | AC_MSG_ERROR([[conditional "$1" was never defined. |
| 335 | Usually this means the macro was only invoked conditionally.]]) |
| 336 | fi])]) |
| 337 | |
| 338 | # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 |
| 339 | # Free Software Foundation, Inc. |
| 340 | # |
| 341 | # This file is free software; the Free Software Foundation |
| 342 | # gives unlimited permission to copy and/or distribute it, |
| 343 | # with or without modifications, as long as this notice is preserved. |
| 344 | |
| 345 | # serial 9 |
| 346 | |
| 347 | # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be |
| 348 | # written in clear, in which case automake, when reading aclocal.m4, |
| 349 | # will think it sees a *use*, and therefore will trigger all it's |
| 350 | # C support machinery. Also note that it means that autoscan, seeing |
| 351 | # CC etc. in the Makefile, will ask for an AC_PROG_CC use... |
| 352 | |
| 353 | |
| 354 | # _AM_DEPENDENCIES(NAME) |
| 355 | # ---------------------- |
| 356 | # See how the compiler implements dependency checking. |
| 357 | # NAME is "CC", "CXX", "GCJ", or "OBJC". |
| 358 | # We try a few techniques and use that to set a single cache variable. |
| 359 | # |
| 360 | # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was |
| 361 | # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular |
| 362 | # dependency, and given that the user is not expected to run this macro, |
| 363 | # just rely on AC_PROG_CC. |
| 364 | AC_DEFUN([_AM_DEPENDENCIES], |
| 365 | [AC_REQUIRE([AM_SET_DEPDIR])dnl |
| 366 | AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl |
| 367 | AC_REQUIRE([AM_MAKE_INCLUDE])dnl |
| 368 | AC_REQUIRE([AM_DEP_TRACK])dnl |
| 369 | |
| 370 | ifelse([$1], CC, [depcc="$CC" am_compiler_list=], |
| 371 | [$1], CXX, [depcc="$CXX" am_compiler_list=], |
| 372 | [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], |
| 373 | [$1], UPC, [depcc="$UPC" am_compiler_list=], |
| 374 | [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], |
| 375 | [depcc="$$1" am_compiler_list=]) |
| 376 | |
| 377 | AC_CACHE_CHECK([dependency style of $depcc], |
| 378 | [am_cv_$1_dependencies_compiler_type], |
| 379 | [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 380 | # We make a subdir and do the tests there. Otherwise we can end up |
| 381 | # making bogus files that we don't know about and never remove. For |
| 382 | # instance it was reported that on HP-UX the gcc test will end up |
| 383 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 384 | # in D'. |
| 385 | mkdir conftest.dir |
| 386 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 387 | # using a relative directory. |
| 388 | cp "$am_depcomp" conftest.dir |
| 389 | cd conftest.dir |
| 390 | # We will build objects and dependencies in a subdirectory because |
| 391 | # it helps to detect inapplicable dependency modes. For instance |
| 392 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 393 | # side effect of compilation, but ICC will put the dependencies in |
| 394 | # the current directory while Tru64 will put them in the object |
| 395 | # directory. |
| 396 | mkdir sub |
| 397 | |
| 398 | am_cv_$1_dependencies_compiler_type=none |
| 399 | if test "$am_compiler_list" = ""; then |
| 400 | am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` |
| 401 | fi |
| 402 | for depmode in $am_compiler_list; do |
| 403 | # Setup a source with many dependencies, because some compilers |
| 404 | # like to wrap large dependency lists on column 80 (with \), and |
| 405 | # we should not choose a depcomp mode which is confused by this. |
| 406 | # |
| 407 | # We need to recreate these files for each test, as the compiler may |
| 408 | # overwrite some of them when testing with obscure command lines. |
| 409 | # This happens at least with the AIX C compiler. |
| 410 | : > sub/conftest.c |
| 411 | for i in 1 2 3 4 5 6; do |
| 412 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 413 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 414 | # Solaris 8's {/usr,}/bin/sh. |
| 415 | touch sub/conftst$i.h |
| 416 | done |
| 417 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 418 | |
| 419 | case $depmode in |
| 420 | nosideeffect) |
| 421 | # after this tag, mechanisms are not by side-effect, so they'll |
| 422 | # only be used when explicitly requested |
| 423 | if test "x$enable_dependency_tracking" = xyes; then |
| 424 | continue |
| 425 | else |
| 426 | break |
| 427 | fi |
| 428 | ;; |
| 429 | none) break ;; |
| 430 | esac |
| 431 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 432 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 433 | # handle `-M -o', and we need to detect this. |
| 434 | if depmode=$depmode \ |
| 435 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 436 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 437 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 438 | >/dev/null 2>conftest.err && |
| 439 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 440 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 441 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| 442 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 443 | # icc doesn't choke on unknown options, it will just issue warnings |
| 444 | # or remarks (even with -Werror). So we grep stderr for any message |
| 445 | # that says an option was ignored or not supported. |
| 446 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 447 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 448 | # The diagnosis changed in icc 8.0: |
| 449 | # icc: Command line remark: option '-MP' not supported |
| 450 | if (grep 'ignoring option' conftest.err || |
| 451 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 452 | am_cv_$1_dependencies_compiler_type=$depmode |
| 453 | break |
| 454 | fi |
| 455 | fi |
| 456 | done |
| 457 | |
| 458 | cd .. |
| 459 | rm -rf conftest.dir |
| 460 | else |
| 461 | am_cv_$1_dependencies_compiler_type=none |
| 462 | fi |
| 463 | ]) |
| 464 | AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) |
| 465 | AM_CONDITIONAL([am__fastdep$1], [ |
| 466 | test "x$enable_dependency_tracking" != xno \ |
| 467 | && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) |
| 468 | ]) |
| 469 | |
| 470 | |
| 471 | # AM_SET_DEPDIR |
| 472 | # ------------- |
| 473 | # Choose a directory name for dependency files. |
| 474 | # This macro is AC_REQUIREd in _AM_DEPENDENCIES |
| 475 | AC_DEFUN([AM_SET_DEPDIR], |
| 476 | [AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
| 477 | AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl |
| 478 | ]) |
| 479 | |
| 480 | |
| 481 | # AM_DEP_TRACK |
| 482 | # ------------ |
| 483 | AC_DEFUN([AM_DEP_TRACK], |
| 484 | [AC_ARG_ENABLE(dependency-tracking, |
| 485 | [ --disable-dependency-tracking speeds up one-time build |
| 486 | --enable-dependency-tracking do not reject slow dependency extractors]) |
| 487 | if test "x$enable_dependency_tracking" != xno; then |
| 488 | am_depcomp="$ac_aux_dir/depcomp" |
| 489 | AMDEPBACKSLASH='\' |
| 490 | fi |
| 491 | AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) |
| 492 | AC_SUBST([AMDEPBACKSLASH])dnl |
| 493 | _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl |
| 494 | ]) |
| 495 | |
| 496 | # Generate code to set up dependency tracking. -*- Autoconf -*- |
| 497 | |
| 498 | # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
| 499 | # Free Software Foundation, Inc. |
| 500 | # |
| 501 | # This file is free software; the Free Software Foundation |
| 502 | # gives unlimited permission to copy and/or distribute it, |
| 503 | # with or without modifications, as long as this notice is preserved. |
| 504 | |
| 505 | #serial 3 |
| 506 | |
| 507 | # _AM_OUTPUT_DEPENDENCY_COMMANDS |
| 508 | # ------------------------------ |
| 509 | AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], |
| 510 | [for mf in $CONFIG_FILES; do |
| 511 | # Strip MF so we end up with the name of the file. |
| 512 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 513 | # Check whether this is an Automake generated Makefile or not. |
| 514 | # We used to match only the files named `Makefile.in', but |
| 515 | # some people rename them; so instead we look at the file content. |
| 516 | # Grep'ing the first line is not enough: some people post-process |
| 517 | # each Makefile.in and add a new line on top of each file to say so. |
| 518 | # Grep'ing the whole file is not good either: AIX grep has a line |
| 519 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 520 | if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then |
| 521 | dirpart=`AS_DIRNAME("$mf")` |
| 522 | else |
| 523 | continue |
| 524 | fi |
| 525 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 526 | # from the Makefile without running `make'. |
| 527 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 528 | test -z "$DEPDIR" && continue |
| 529 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 530 | test -z "am__include" && continue |
| 531 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 532 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 533 | U=`sed -n 's/^U = //p' < "$mf"` |
| 534 | # Find all dependency output files, they are included files with |
| 535 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 536 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 537 | # expansion. |
| 538 | for file in `sed -n " |
| 539 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 540 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 541 | # Make sure the directory exists. |
| 542 | test -f "$dirpart/$file" && continue |
| 543 | fdir=`AS_DIRNAME(["$file"])` |
| 544 | AS_MKDIR_P([$dirpart/$fdir]) |
| 545 | # echo "creating $dirpart/$file" |
| 546 | echo '# dummy' > "$dirpart/$file" |
| 547 | done |
| 548 | done |
| 549 | ])# _AM_OUTPUT_DEPENDENCY_COMMANDS |
| 550 | |
| 551 | |
| 552 | # AM_OUTPUT_DEPENDENCY_COMMANDS |
| 553 | # ----------------------------- |
| 554 | # This macro should only be invoked once -- use via AC_REQUIRE. |
| 555 | # |
| 556 | # This code is only required when automatic dependency tracking |
| 557 | # is enabled. FIXME. This creates each `.P' file that we will |
| 558 | # need in order to bootstrap the dependency handling code. |
| 559 | AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], |
| 560 | [AC_CONFIG_COMMANDS([depfiles], |
| 561 | [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], |
| 562 | [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) |
| 563 | ]) |
| 564 | |
| 565 | # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 |
| 566 | # Free Software Foundation, Inc. |
| 567 | # |
| 568 | # This file is free software; the Free Software Foundation |
| 569 | # gives unlimited permission to copy and/or distribute it, |
| 570 | # with or without modifications, as long as this notice is preserved. |
| 571 | |
| 572 | # serial 8 |
| 573 | |
| 574 | # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. |
| 575 | AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) |
| 576 | |
| 577 | # Do all the work for Automake. -*- Autoconf -*- |
| 578 | |
| 579 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
| 580 | # 2005, 2006 Free Software Foundation, Inc. |
| 581 | # |
| 582 | # This file is free software; the Free Software Foundation |
| 583 | # gives unlimited permission to copy and/or distribute it, |
| 584 | # with or without modifications, as long as this notice is preserved. |
| 585 | |
| 586 | # serial 12 |
| 587 | |
| 588 | # This macro actually does too much. Some checks are only needed if |
| 589 | # your package does certain things. But this isn't really a big deal. |
| 590 | |
| 591 | # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) |
| 592 | # AM_INIT_AUTOMAKE([OPTIONS]) |
| 593 | # ----------------------------------------------- |
| 594 | # The call with PACKAGE and VERSION arguments is the old style |
| 595 | # call (pre autoconf-2.50), which is being phased out. PACKAGE |
| 596 | # and VERSION should now be passed to AC_INIT and removed from |
| 597 | # the call to AM_INIT_AUTOMAKE. |
| 598 | # We support both call styles for the transition. After |
| 599 | # the next Automake release, Autoconf can make the AC_INIT |
| 600 | # arguments mandatory, and then we can depend on a new Autoconf |
| 601 | # release and drop the old call support. |
| 602 | AC_DEFUN([AM_INIT_AUTOMAKE], |
| 603 | [AC_PREREQ([2.60])dnl |
| 604 | dnl Autoconf wants to disallow AM_ names. We explicitly allow |
| 605 | dnl the ones we care about. |
| 606 | m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl |
| 607 | AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl |
| 608 | AC_REQUIRE([AC_PROG_INSTALL])dnl |
| 609 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 610 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 611 | # is not polluted with repeated "-I." |
| 612 | AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl |
| 613 | # test to see if srcdir already configured |
| 614 | if test -f $srcdir/config.status; then |
| 615 | AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) |
| 616 | fi |
| 617 | fi |
| 618 | |
| 619 | # test whether we have cygpath |
| 620 | if test -z "$CYGPATH_W"; then |
| 621 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 622 | CYGPATH_W='cygpath -w' |
| 623 | else |
| 624 | CYGPATH_W=echo |
| 625 | fi |
| 626 | fi |
| 627 | AC_SUBST([CYGPATH_W]) |
| 628 | |
| 629 | # Define the identity of the package. |
| 630 | dnl Distinguish between old-style and new-style calls. |
| 631 | m4_ifval([$2], |
| 632 | [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl |
| 633 | AC_SUBST([PACKAGE], [$1])dnl |
| 634 | AC_SUBST([VERSION], [$2])], |
| 635 | [_AM_SET_OPTIONS([$1])dnl |
| 636 | dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. |
| 637 | m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, |
| 638 | [m4_fatal([AC_INIT should be called with package and version arguments])])dnl |
| 639 | AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl |
| 640 | AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl |
| 641 | |
| 642 | _AM_IF_OPTION([no-define],, |
| 643 | [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) |
| 644 | AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl |
| 645 | |
| 646 | # Some tools Automake needs. |
| 647 | AC_REQUIRE([AM_SANITY_CHECK])dnl |
| 648 | AC_REQUIRE([AC_ARG_PROGRAM])dnl |
| 649 | AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) |
| 650 | AM_MISSING_PROG(AUTOCONF, autoconf) |
| 651 | AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) |
| 652 | AM_MISSING_PROG(AUTOHEADER, autoheader) |
| 653 | AM_MISSING_PROG(MAKEINFO, makeinfo) |
| 654 | AM_PROG_INSTALL_SH |
| 655 | AM_PROG_INSTALL_STRIP |
| 656 | AC_REQUIRE([AM_PROG_MKDIR_P])dnl |
| 657 | # We need awk for the "check" target. The system "awk" is bad on |
| 658 | # some platforms. |
| 659 | AC_REQUIRE([AC_PROG_AWK])dnl |
| 660 | AC_REQUIRE([AC_PROG_MAKE_SET])dnl |
| 661 | AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
| 662 | _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], |
| 663 | [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], |
| 664 | [_AM_PROG_TAR([v7])])]) |
| 665 | _AM_IF_OPTION([no-dependencies],, |
| 666 | [AC_PROVIDE_IFELSE([AC_PROG_CC], |
| 667 | [_AM_DEPENDENCIES(CC)], |
| 668 | [define([AC_PROG_CC], |
| 669 | defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl |
| 670 | AC_PROVIDE_IFELSE([AC_PROG_CXX], |
| 671 | [_AM_DEPENDENCIES(CXX)], |
| 672 | [define([AC_PROG_CXX], |
| 673 | defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl |
| 674 | AC_PROVIDE_IFELSE([AC_PROG_OBJC], |
| 675 | [_AM_DEPENDENCIES(OBJC)], |
| 676 | [define([AC_PROG_OBJC], |
| 677 | defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl |
| 678 | ]) |
| 679 | ]) |
| 680 | |
| 681 | |
| 682 | # When config.status generates a header, we must update the stamp-h file. |
| 683 | # This file resides in the same directory as the config header |
| 684 | # that is generated. The stamp files are numbered to have different names. |
| 685 | |
| 686 | # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the |
| 687 | # loop where config.status creates the headers, so we can generate |
| 688 | # our stamp files there. |
| 689 | AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], |
| 690 | [# Compute $1's index in $config_headers. |
| 691 | _am_stamp_count=1 |
| 692 | for _am_header in $config_headers :; do |
| 693 | case $_am_header in |
| 694 | $1 | $1:* ) |
| 695 | break ;; |
| 696 | * ) |
| 697 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 698 | esac |
| 699 | done |
| 700 | echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) |
| 701 | |
| 702 | # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. |
| 703 | # |
| 704 | # This file is free software; the Free Software Foundation |
| 705 | # gives unlimited permission to copy and/or distribute it, |
| 706 | # with or without modifications, as long as this notice is preserved. |
| 707 | |
| 708 | # AM_PROG_INSTALL_SH |
| 709 | # ------------------ |
| 710 | # Define $install_sh. |
| 711 | AC_DEFUN([AM_PROG_INSTALL_SH], |
| 712 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
| 713 | install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} |
| 714 | AC_SUBST(install_sh)]) |
| 715 | |
| 716 | # Copyright (C) 2003, 2005 Free Software Foundation, Inc. |
| 717 | # |
| 718 | # This file is free software; the Free Software Foundation |
| 719 | # gives unlimited permission to copy and/or distribute it, |
| 720 | # with or without modifications, as long as this notice is preserved. |
| 721 | |
| 722 | # serial 2 |
| 723 | |
| 724 | # Check whether the underlying file-system supports filenames |
| 725 | # with a leading dot. For instance MS-DOS doesn't. |
| 726 | AC_DEFUN([AM_SET_LEADING_DOT], |
| 727 | [rm -rf .tst 2>/dev/null |
| 728 | mkdir .tst 2>/dev/null |
| 729 | if test -d .tst; then |
| 730 | am__leading_dot=. |
| 731 | else |
| 732 | am__leading_dot=_ |
| 733 | fi |
| 734 | rmdir .tst 2>/dev/null |
| 735 | AC_SUBST([am__leading_dot])]) |
| 736 | |
| 737 | # Check to see how 'make' treats includes. -*- Autoconf -*- |
| 738 | |
| 739 | # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. |
| 740 | # |
| 741 | # This file is free software; the Free Software Foundation |
| 742 | # gives unlimited permission to copy and/or distribute it, |
| 743 | # with or without modifications, as long as this notice is preserved. |
| 744 | |
| 745 | # serial 3 |
| 746 | |
| 747 | # AM_MAKE_INCLUDE() |
| 748 | # ----------------- |
| 749 | # Check to see how make treats includes. |
| 750 | AC_DEFUN([AM_MAKE_INCLUDE], |
| 751 | [am_make=${MAKE-make} |
| 752 | cat > confinc << 'END' |
| 753 | am__doit: |
| 754 | @echo done |
| 755 | .PHONY: am__doit |
| 756 | END |
| 757 | # If we don't find an include directive, just comment out the code. |
| 758 | AC_MSG_CHECKING([for style of include used by $am_make]) |
| 759 | am__include="#" |
| 760 | am__quote= |
| 761 | _am_result=none |
| 762 | # First try GNU make style include. |
| 763 | echo "include confinc" > confmf |
| 764 | # We grep out `Entering directory' and `Leaving directory' |
| 765 | # messages which can occur if `w' ends up in MAKEFLAGS. |
| 766 | # In particular we don't look at `^make:' because GNU make might |
| 767 | # be invoked under some other name (usually "gmake"), in which |
| 768 | # case it prints its new name instead of `make'. |
| 769 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
| 770 | am__include=include |
| 771 | am__quote= |
| 772 | _am_result=GNU |
| 773 | fi |
| 774 | # Now try BSD make style include. |
| 775 | if test "$am__include" = "#"; then |
| 776 | echo '.include "confinc"' > confmf |
| 777 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
| 778 | am__include=.include |
| 779 | am__quote="\"" |
| 780 | _am_result=BSD |
| 781 | fi |
| 782 | fi |
| 783 | AC_SUBST([am__include]) |
| 784 | AC_SUBST([am__quote]) |
| 785 | AC_MSG_RESULT([$_am_result]) |
| 786 | rm -f confinc confmf |
| 787 | ]) |
| 788 | |
| 789 | # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005 |
| 790 | # Free Software Foundation, Inc. |
| 791 | # |
| 792 | # This file is free software; the Free Software Foundation |
| 793 | # gives unlimited permission to copy and/or distribute it, |
| 794 | # with or without modifications, as long as this notice is preserved. |
| 795 | |
| 796 | # serial 5 |
| 797 | |
| 798 | # AM_PROG_CC_C_O |
| 799 | # -------------- |
| 800 | # Like AC_PROG_CC_C_O, but changed for automake. |
| 801 | AC_DEFUN([AM_PROG_CC_C_O], |
| 802 | [AC_REQUIRE([AC_PROG_CC_C_O])dnl |
| 803 | AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
| 804 | AC_REQUIRE_AUX_FILE([compile])dnl |
| 805 | # FIXME: we rely on the cache variable name because |
| 806 | # there is no other way. |
| 807 | set dummy $CC |
| 808 | ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']` |
| 809 | if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then |
| 810 | # Losing compiler, so override with the script. |
| 811 | # FIXME: It is wrong to rewrite CC. |
| 812 | # But if we don't then we get into trouble of one sort or another. |
| 813 | # A longer-term fix would be to have automake use am__CC in this case, |
| 814 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 815 | CC="$am_aux_dir/compile $CC" |
| 816 | fi |
| 817 | dnl Make sure AC_PROG_CC is never called again, or it will override our |
| 818 | dnl setting of CC. |
| 819 | m4_define([AC_PROG_CC], |
| 820 | [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])]) |
| 821 | ]) |
| 822 | |
| 823 | # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- |
| 824 | |
| 825 | # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 |
| 826 | # Free Software Foundation, Inc. |
| 827 | # |
| 828 | # This file is free software; the Free Software Foundation |
| 829 | # gives unlimited permission to copy and/or distribute it, |
| 830 | # with or without modifications, as long as this notice is preserved. |
| 831 | |
| 832 | # serial 5 |
| 833 | |
| 834 | # AM_MISSING_PROG(NAME, PROGRAM) |
| 835 | # ------------------------------ |
| 836 | AC_DEFUN([AM_MISSING_PROG], |
| 837 | [AC_REQUIRE([AM_MISSING_HAS_RUN]) |
| 838 | $1=${$1-"${am_missing_run}$2"} |
| 839 | AC_SUBST($1)]) |
| 840 | |
| 841 | |
| 842 | # AM_MISSING_HAS_RUN |
| 843 | # ------------------ |
| 844 | # Define MISSING if not defined so far and test if it supports --run. |
| 845 | # If it does, set am_missing_run to use it, otherwise, to nothing. |
| 846 | AC_DEFUN([AM_MISSING_HAS_RUN], |
| 847 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
| 848 | AC_REQUIRE_AUX_FILE([missing])dnl |
| 849 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
| 850 | # Use eval to expand $SHELL |
| 851 | if eval "$MISSING --run true"; then |
| 852 | am_missing_run="$MISSING --run " |
| 853 | else |
| 854 | am_missing_run= |
| 855 | AC_MSG_WARN([`missing' script is too old or missing]) |
| 856 | fi |
| 857 | ]) |
| 858 | |
| 859 | # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
| 860 | # |
| 861 | # This file is free software; the Free Software Foundation |
| 862 | # gives unlimited permission to copy and/or distribute it, |
| 863 | # with or without modifications, as long as this notice is preserved. |
| 864 | |
| 865 | # AM_PROG_MKDIR_P |
| 866 | # --------------- |
| 867 | # Check for `mkdir -p'. |
| 868 | AC_DEFUN([AM_PROG_MKDIR_P], |
| 869 | [AC_PREREQ([2.60])dnl |
| 870 | AC_REQUIRE([AC_PROG_MKDIR_P])dnl |
| 871 | dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, |
| 872 | dnl while keeping a definition of mkdir_p for backward compatibility. |
| 873 | dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. |
| 874 | dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of |
| 875 | dnl Makefile.ins that do not define MKDIR_P, so we do our own |
| 876 | dnl adjustment using top_builddir (which is defined more often than |
| 877 | dnl MKDIR_P). |
| 878 | AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl |
| 879 | case $mkdir_p in |
| 880 | [[\\/$]]* | ?:[[\\/]]*) ;; |
| 881 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
| 882 | esac |
| 883 | ]) |
| 884 | |
| 885 | # Helper functions for option handling. -*- Autoconf -*- |
| 886 | |
| 887 | # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. |
| 888 | # |
| 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. |
| 892 | |
| 893 | # serial 3 |
| 894 | |
| 895 | # _AM_MANGLE_OPTION(NAME) |
| 896 | # ----------------------- |
| 897 | AC_DEFUN([_AM_MANGLE_OPTION], |
| 898 | [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) |
| 899 | |
| 900 | # _AM_SET_OPTION(NAME) |
| 901 | # ------------------------------ |
| 902 | # Set option NAME. Presently that only means defining a flag for this option. |
| 903 | AC_DEFUN([_AM_SET_OPTION], |
| 904 | [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) |
| 905 | |
| 906 | # _AM_SET_OPTIONS(OPTIONS) |
| 907 | # ---------------------------------- |
| 908 | # OPTIONS is a space-separated list of Automake options. |
| 909 | AC_DEFUN([_AM_SET_OPTIONS], |
| 910 | [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) |
| 911 | |
| 912 | # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) |
| 913 | # ------------------------------------------- |
| 914 | # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. |
| 915 | AC_DEFUN([_AM_IF_OPTION], |
| 916 | [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) |
| 917 | |
| 918 | # Check to make sure that the build environment is sane. -*- Autoconf -*- |
| 919 | |
| 920 | # Copyright (C) 1996, 1997, 2000, 2001, 2003, |
