Avahi bindings for TQt
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

aclocal.m4 42KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198
  1. # generated automatically by aclocal 1.11 -*- Autoconf -*-
  2. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  3. # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  4. # This file is free software; the Free Software Foundation
  5. # gives unlimited permission to copy and/or distribute it,
  6. # with or without modifications, as long as this notice is preserved.
  7. # This program is distributed in the hope that it will be useful,
  8. # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  9. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  10. # PARTICULAR PURPOSE.
  11. m4_ifndef([AC_AUTOCONF_VERSION],
  12. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  13. m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
  14. [m4_warning([this file was generated for autoconf 2.63.
  15. You have another version of autoconf. It may work, but is not guaranteed to.
  16. If you have problems, you may need to regenerate the build system entirely.
  17. To do so, use the procedure documented by the package, typically `autoreconf'.])])
  18. # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
  19. # serial 1 (pkg-config-0.24)
  20. #
  21. # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
  22. #
  23. # This program is free software; you can redistribute it and/or modify
  24. # it under the terms of the GNU General Public License as published by
  25. # the Free Software Foundation; either version 2 of the License, or
  26. # (at your option) any later version.
  27. #
  28. # This program is distributed in the hope that it will be useful, but
  29. # WITHOUT ANY WARRANTY; without even the implied warranty of
  30. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  31. # General Public License for more details.
  32. #
  33. # You should have received a copy of the GNU General Public License
  34. # along with this program; if not, write to the Free Software
  35. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  36. #
  37. # As a special exception to the GNU General Public License, if you
  38. # distribute this file as part of a program that contains a
  39. # configuration script generated by Autoconf, you may include it under
  40. # the same distribution terms that you use for the rest of that program.
  41. # PKG_PROG_PKG_CONFIG([MIN-VERSION])
  42. # ----------------------------------
  43. AC_DEFUN([PKG_PROG_PKG_CONFIG],
  44. [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
  45. m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
  46. AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
  47. AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
  48. AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
  49. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  50. AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
  51. fi
  52. if test -n "$PKG_CONFIG"; then
  53. _pkg_min_version=m4_default([$1], [0.9.0])
  54. AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
  55. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  56. AC_MSG_RESULT([yes])
  57. else
  58. AC_MSG_RESULT([no])
  59. PKG_CONFIG=""
  60. fi
  61. fi[]dnl
  62. ])# PKG_PROG_PKG_CONFIG
  63. # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
  64. #
  65. # Check to see whether a particular set of modules exists. Similar
  66. # to PKG_CHECK_MODULES(), but does not set variables or print errors.
  67. #
  68. # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
  69. # only at the first occurence in configure.ac, so if the first place
  70. # it's called might be skipped (such as if it is within an "if", you
  71. # have to call PKG_CHECK_EXISTS manually
  72. # --------------------------------------------------------------
  73. AC_DEFUN([PKG_CHECK_EXISTS],
  74. [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  75. if test -n "$PKG_CONFIG" && \
  76. AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
  77. m4_default([$2], [:])
  78. m4_ifvaln([$3], [else
  79. $3])dnl
  80. fi])
  81. # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
  82. # ---------------------------------------------
  83. m4_define([_PKG_CONFIG],
  84. [if test -n "$$1"; then
  85. pkg_cv_[]$1="$$1"
  86. elif test -n "$PKG_CONFIG"; then
  87. PKG_CHECK_EXISTS([$3],
  88. [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
  89. [pkg_failed=yes])
  90. else
  91. pkg_failed=untried
  92. fi[]dnl
  93. ])# _PKG_CONFIG
  94. # _PKG_SHORT_ERRORS_SUPPORTED
  95. # -----------------------------
  96. AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
  97. [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
  98. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  99. _pkg_short_errors_supported=yes
  100. else
  101. _pkg_short_errors_supported=no
  102. fi[]dnl
  103. ])# _PKG_SHORT_ERRORS_SUPPORTED
  104. # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
  105. # [ACTION-IF-NOT-FOUND])
  106. #
  107. #
  108. # Note that if there is a possibility the first call to
  109. # PKG_CHECK_MODULES might not happen, you should be sure to include an
  110. # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
  111. #
  112. #
  113. # --------------------------------------------------------------
  114. AC_DEFUN([PKG_CHECK_MODULES],
  115. [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  116. AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
  117. AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
  118. pkg_failed=no
  119. AC_MSG_CHECKING([for $1])
  120. _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
  121. _PKG_CONFIG([$1][_LIBS], [libs], [$2])
  122. m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
  123. and $1[]_LIBS to avoid the need to call pkg-config.
  124. See the pkg-config man page for more details.])
  125. if test $pkg_failed = yes; then
  126. AC_MSG_RESULT([no])
  127. _PKG_SHORT_ERRORS_SUPPORTED
  128. if test $_pkg_short_errors_supported = yes; then
  129. $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
  130. else
  131. $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
  132. fi
  133. # Put the nasty error message in config.log where it belongs
  134. echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
  135. m4_default([$4], [AC_MSG_ERROR(
  136. [Package requirements ($2) were not met:
  137. $$1_PKG_ERRORS
  138. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  139. installed software in a non-standard prefix.
  140. _PKG_TEXT])dnl
  141. ])
  142. elif test $pkg_failed = untried; then
  143. AC_MSG_RESULT([no])
  144. m4_default([$4], [AC_MSG_FAILURE(
  145. [The pkg-config script could not be found or is too old. Make sure it
  146. is in your PATH or set the PKG_CONFIG environment variable to the full
  147. path to pkg-config.
  148. _PKG_TEXT
  149. To get pkg-config, see <http://pkg-config.freedesktop.org/>.])dnl
  150. ])
  151. else
  152. $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
  153. $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
  154. AC_MSG_RESULT([yes])
  155. $3
  156. fi[]dnl
  157. ])# PKG_CHECK_MODULES
  158. # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  159. #
  160. # This file is free software; the Free Software Foundation
  161. # gives unlimited permission to copy and/or distribute it,
  162. # with or without modifications, as long as this notice is preserved.
  163. # AM_AUTOMAKE_VERSION(VERSION)
  164. # ----------------------------
  165. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  166. # generated from the m4 files accompanying Automake X.Y.
  167. # (This private macro should not be called outside this file.)
  168. AC_DEFUN([AM_AUTOMAKE_VERSION],
  169. [am__api_version='1.11'
  170. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  171. dnl require some minimum version. Point them to the right macro.
  172. m4_if([$1], [1.11], [],
  173. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  174. ])
  175. # _AM_AUTOCONF_VERSION(VERSION)
  176. # -----------------------------
  177. # aclocal traces this macro to find the Autoconf version.
  178. # This is a private macro too. Using m4_define simplifies
  179. # the logic in aclocal, which can simply ignore this definition.
  180. m4_define([_AM_AUTOCONF_VERSION], [])
  181. # AM_SET_CURRENT_AUTOMAKE_VERSION
  182. # -------------------------------
  183. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  184. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  185. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  186. [AM_AUTOMAKE_VERSION([1.11])dnl
  187. m4_ifndef([AC_AUTOCONF_VERSION],
  188. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  189. _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  190. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  191. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  192. #
  193. # This file is free software; the Free Software Foundation
  194. # gives unlimited permission to copy and/or distribute it,
  195. # with or without modifications, as long as this notice is preserved.
  196. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  197. # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  198. # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
  199. #
  200. # Of course, Automake must honor this variable whenever it calls a
  201. # tool from the auxiliary directory. The problem is that $srcdir (and
  202. # therefore $ac_aux_dir as well) can be either absolute or relative,
  203. # depending on how configure is run. This is pretty annoying, since
  204. # it makes $ac_aux_dir quite unusable in subdirectories: in the top
  205. # source directory, any form will work fine, but in subdirectories a
  206. # relative path needs to be adjusted first.
  207. #
  208. # $ac_aux_dir/missing
  209. # fails when called from a subdirectory if $ac_aux_dir is relative
  210. # $top_srcdir/$ac_aux_dir/missing
  211. # fails if $ac_aux_dir is absolute,
  212. # fails when called from a subdirectory in a VPATH build with
  213. # a relative $ac_aux_dir
  214. #
  215. # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  216. # are both prefixed by $srcdir. In an in-source build this is usually
  217. # harmless because $srcdir is `.', but things will broke when you
  218. # start a VPATH build or use an absolute $srcdir.
  219. #
  220. # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  221. # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  222. # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  223. # and then we would define $MISSING as
  224. # MISSING="\${SHELL} $am_aux_dir/missing"
  225. # This will work as long as MISSING is not called from configure, because
  226. # unfortunately $(top_srcdir) has no meaning in configure.
  227. # However there are other variables, like CC, which are often used in
  228. # configure, and could therefore not use this "fixed" $ac_aux_dir.
  229. #
  230. # Another solution, used here, is to always expand $ac_aux_dir to an
  231. # absolute PATH. The drawback is that using absolute paths prevent a
  232. # configured tree to be moved without reconfiguration.
  233. AC_DEFUN([AM_AUX_DIR_EXPAND],
  234. [dnl Rely on autoconf to set up CDPATH properly.
  235. AC_PREREQ([2.50])dnl
  236. # expand $ac_aux_dir to an absolute path
  237. am_aux_dir=`cd $ac_aux_dir && pwd`
  238. ])
  239. # AM_CONDITIONAL -*- Autoconf -*-
  240. # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  241. # Free Software Foundation, Inc.
  242. #
  243. # This file is free software; the Free Software Foundation
  244. # gives unlimited permission to copy and/or distribute it,
  245. # with or without modifications, as long as this notice is preserved.
  246. # serial 9
  247. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  248. # -------------------------------------
  249. # Define a conditional.
  250. AC_DEFUN([AM_CONDITIONAL],
  251. [AC_PREREQ(2.52)dnl
  252. ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  253. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  254. AC_SUBST([$1_TRUE])dnl
  255. AC_SUBST([$1_FALSE])dnl
  256. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  257. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  258. m4_define([_AM_COND_VALUE_$1], [$2])dnl
  259. if $2; then
  260. $1_TRUE=
  261. $1_FALSE='#'
  262. else
  263. $1_TRUE='#'
  264. $1_FALSE=
  265. fi
  266. AC_CONFIG_COMMANDS_PRE(
  267. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  268. AC_MSG_ERROR([[conditional "$1" was never defined.
  269. Usually this means the macro was only invoked conditionally.]])
  270. fi])])
  271. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
  272. # Free Software Foundation, Inc.
  273. #
  274. # This file is free software; the Free Software Foundation
  275. # gives unlimited permission to copy and/or distribute it,
  276. # with or without modifications, as long as this notice is preserved.
  277. # serial 10
  278. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  279. # written in clear, in which case automake, when reading aclocal.m4,
  280. # will think it sees a *use*, and therefore will trigger all it's
  281. # C support machinery. Also note that it means that autoscan, seeing
  282. # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  283. # _AM_DEPENDENCIES(NAME)
  284. # ----------------------
  285. # See how the compiler implements dependency checking.
  286. # NAME is "CC", "CXX", "GCJ", or "OBJC".
  287. # We try a few techniques and use that to set a single cache variable.
  288. #
  289. # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  290. # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  291. # dependency, and given that the user is not expected to run this macro,
  292. # just rely on AC_PROG_CC.
  293. AC_DEFUN([_AM_DEPENDENCIES],
  294. [AC_REQUIRE([AM_SET_DEPDIR])dnl
  295. AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  296. AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  297. AC_REQUIRE([AM_DEP_TRACK])dnl
  298. ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  299. [$1], CXX, [depcc="$CXX" am_compiler_list=],
  300. [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  301. [$1], UPC, [depcc="$UPC" am_compiler_list=],
  302. [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  303. [depcc="$$1" am_compiler_list=])
  304. AC_CACHE_CHECK([dependency style of $depcc],
  305. [am_cv_$1_dependencies_compiler_type],
  306. [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  307. # We make a subdir and do the tests there. Otherwise we can end up
  308. # making bogus files that we don't know about and never remove. For
  309. # instance it was reported that on HP-UX the gcc test will end up
  310. # making a dummy file named `D' -- because `-MD' means `put the output
  311. # in D'.
  312. mkdir conftest.dir
  313. # Copy depcomp to subdir because otherwise we won't find it if we're
  314. # using a relative directory.
  315. cp "$am_depcomp" conftest.dir
  316. cd conftest.dir
  317. # We will build objects and dependencies in a subdirectory because
  318. # it helps to detect inapplicable dependency modes. For instance
  319. # both Tru64's cc and ICC support -MD to output dependencies as a
  320. # side effect of compilation, but ICC will put the dependencies in
  321. # the current directory while Tru64 will put them in the object
  322. # directory.
  323. mkdir sub
  324. am_cv_$1_dependencies_compiler_type=none
  325. if test "$am_compiler_list" = ""; then
  326. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  327. fi
  328. am__universal=false
  329. m4_case([$1], [CC],
  330. [case " $depcc " in #(
  331. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  332. esac],
  333. [CXX],
  334. [case " $depcc " in #(
  335. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  336. esac])
  337. for depmode in $am_compiler_list; do
  338. # Setup a source with many dependencies, because some compilers
  339. # like to wrap large dependency lists on column 80 (with \), and
  340. # we should not choose a depcomp mode which is confused by this.
  341. #
  342. # We need to recreate these files for each test, as the compiler may
  343. # overwrite some of them when testing with obscure command lines.
  344. # This happens at least with the AIX C compiler.
  345. : > sub/conftest.c
  346. for i in 1 2 3 4 5 6; do
  347. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  348. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  349. # Solaris 8's {/usr,}/bin/sh.
  350. touch sub/conftst$i.h
  351. done
  352. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  353. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  354. # mode. It turns out that the SunPro C++ compiler does not properly
  355. # handle `-M -o', and we need to detect this. Also, some Intel
  356. # versions had trouble with output in subdirs
  357. am__obj=sub/conftest.${OBJEXT-o}
  358. am__minus_obj="-o $am__obj"
  359. case $depmode in
  360. gcc)
  361. # This depmode causes a compiler race in universal mode.
  362. test "$am__universal" = false || continue
  363. ;;
  364. nosideeffect)
  365. # after this tag, mechanisms are not by side-effect, so they'll
  366. # only be used when explicitly requested
  367. if test "x$enable_dependency_tracking" = xyes; then
  368. continue
  369. else
  370. break
  371. fi
  372. ;;
  373. msvisualcpp | msvcmsys)
  374. # This compiler won't grok `-c -o', but also, the minuso test has
  375. # not run yet. These depmodes are late enough in the game, and
  376. # so weak that their functioning should not be impacted.
  377. am__obj=conftest.${OBJEXT-o}
  378. am__minus_obj=
  379. ;;
  380. none) break ;;
  381. esac
  382. if depmode=$depmode \
  383. source=sub/conftest.c object=$am__obj \
  384. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  385. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  386. >/dev/null 2>conftest.err &&
  387. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  388. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  389. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  390. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  391. # icc doesn't choke on unknown options, it will just issue warnings
  392. # or remarks (even with -Werror). So we grep stderr for any message
  393. # that says an option was ignored or not supported.
  394. # When given -MP, icc 7.0 and 7.1 complain thusly:
  395. # icc: Command line warning: ignoring option '-M'; no argument required
  396. # The diagnosis changed in icc 8.0:
  397. # icc: Command line remark: option '-MP' not supported
  398. if (grep 'ignoring option' conftest.err ||
  399. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  400. am_cv_$1_dependencies_compiler_type=$depmode
  401. break
  402. fi
  403. fi
  404. done
  405. cd ..
  406. rm -rf conftest.dir
  407. else
  408. am_cv_$1_dependencies_compiler_type=none
  409. fi
  410. ])
  411. AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  412. AM_CONDITIONAL([am__fastdep$1], [
  413. test "x$enable_dependency_tracking" != xno \
  414. && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  415. ])
  416. # AM_SET_DEPDIR
  417. # -------------
  418. # Choose a directory name for dependency files.
  419. # This macro is AC_REQUIREd in _AM_DEPENDENCIES
  420. AC_DEFUN([AM_SET_DEPDIR],
  421. [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  422. AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  423. ])
  424. # AM_DEP_TRACK
  425. # ------------
  426. AC_DEFUN([AM_DEP_TRACK],
  427. [AC_ARG_ENABLE(dependency-tracking,
  428. [ --disable-dependency-tracking speeds up one-time build
  429. --enable-dependency-tracking do not reject slow dependency extractors])
  430. if test "x$enable_dependency_tracking" != xno; then
  431. am_depcomp="$ac_aux_dir/depcomp"
  432. AMDEPBACKSLASH='\'
  433. fi
  434. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  435. AC_SUBST([AMDEPBACKSLASH])dnl
  436. _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  437. ])
  438. # Generate code to set up dependency tracking. -*- Autoconf -*-
  439. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  440. # Free Software Foundation, Inc.
  441. #
  442. # This file is free software; the Free Software Foundation
  443. # gives unlimited permission to copy and/or distribute it,
  444. # with or without modifications, as long as this notice is preserved.
  445. #serial 5
  446. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  447. # ------------------------------
  448. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  449. [{
  450. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  451. # are listed without --file. Let's play safe and only enable the eval
  452. # if we detect the quoting.
  453. case $CONFIG_FILES in
  454. *\'*) eval set x "$CONFIG_FILES" ;;
  455. *) set x $CONFIG_FILES ;;
  456. esac
  457. shift
  458. for mf
  459. do
  460. # Strip MF so we end up with the name of the file.
  461. mf=`echo "$mf" | sed -e 's/:.*$//'`
  462. # Check whether this is an Automake generated Makefile or not.
  463. # We used to match only the files named `Makefile.in', but
  464. # some people rename them; so instead we look at the file content.
  465. # Grep'ing the first line is not enough: some people post-process
  466. # each Makefile.in and add a new line on top of each file to say so.
  467. # Grep'ing the whole file is not good either: AIX grep has a line
  468. # limit of 2048, but all sed's we know have understand at least 4000.
  469. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  470. dirpart=`AS_DIRNAME("$mf")`
  471. else
  472. continue
  473. fi
  474. # Extract the definition of DEPDIR, am__include, and am__quote
  475. # from the Makefile without running `make'.
  476. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  477. test -z "$DEPDIR" && continue
  478. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  479. test -z "am__include" && continue
  480. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  481. # When using ansi2knr, U may be empty or an underscore; expand it
  482. U=`sed -n 's/^U = //p' < "$mf"`
  483. # Find all dependency output files, they are included files with
  484. # $(DEPDIR) in their names. We invoke sed twice because it is the
  485. # simplest approach to changing $(DEPDIR) to its actual value in the
  486. # expansion.
  487. for file in `sed -n "
  488. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  489. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  490. # Make sure the directory exists.
  491. test -f "$dirpart/$file" && continue
  492. fdir=`AS_DIRNAME(["$file"])`
  493. AS_MKDIR_P([$dirpart/$fdir])
  494. # echo "creating $dirpart/$file"
  495. echo '# dummy' > "$dirpart/$file"
  496. done
  497. done
  498. }
  499. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  500. # AM_OUTPUT_DEPENDENCY_COMMANDS
  501. # -----------------------------
  502. # This macro should only be invoked once -- use via AC_REQUIRE.
  503. #
  504. # This code is only required when automatic dependency tracking
  505. # is enabled. FIXME. This creates each `.P' file that we will
  506. # need in order to bootstrap the dependency handling code.
  507. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  508. [AC_CONFIG_COMMANDS([depfiles],
  509. [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  510. [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  511. ])
  512. # Do all the work for Automake. -*- Autoconf -*-
  513. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  514. # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  515. #
  516. # This file is free software; the Free Software Foundation
  517. # gives unlimited permission to copy and/or distribute it,
  518. # with or without modifications, as long as this notice is preserved.
  519. # serial 16
  520. # This macro actually does too much. Some checks are only needed if
  521. # your package does certain things. But this isn't really a big deal.
  522. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  523. # AM_INIT_AUTOMAKE([OPTIONS])
  524. # -----------------------------------------------
  525. # The call with PACKAGE and VERSION arguments is the old style
  526. # call (pre autoconf-2.50), which is being phased out. PACKAGE
  527. # and VERSION should now be passed to AC_INIT and removed from
  528. # the call to AM_INIT_AUTOMAKE.
  529. # We support both call styles for the transition. After
  530. # the next Automake release, Autoconf can make the AC_INIT
  531. # arguments mandatory, and then we can depend on a new Autoconf
  532. # release and drop the old call support.
  533. AC_DEFUN([AM_INIT_AUTOMAKE],
  534. [AC_PREREQ([2.62])dnl
  535. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  536. dnl the ones we care about.
  537. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  538. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  539. AC_REQUIRE([AC_PROG_INSTALL])dnl
  540. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  541. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  542. # is not polluted with repeated "-I."
  543. AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  544. # test to see if srcdir already configured
  545. if test -f $srcdir/config.status; then
  546. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  547. fi
  548. fi
  549. # test whether we have cygpath
  550. if test -z "$CYGPATH_W"; then
  551. if (cygpath --version) >/dev/null 2>/dev/null; then
  552. CYGPATH_W='cygpath -w'
  553. else
  554. CYGPATH_W=echo
  555. fi
  556. fi
  557. AC_SUBST([CYGPATH_W])
  558. # Define the identity of the package.
  559. dnl Distinguish between old-style and new-style calls.
  560. m4_ifval([$2],
  561. [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  562. AC_SUBST([PACKAGE], [$1])dnl
  563. AC_SUBST([VERSION], [$2])],
  564. [_AM_SET_OPTIONS([$1])dnl
  565. dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  566. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  567. [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  568. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  569. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  570. _AM_IF_OPTION([no-define],,
  571. [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  572. AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  573. # Some tools Automake needs.
  574. AC_REQUIRE([AM_SANITY_CHECK])dnl
  575. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  576. AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  577. AM_MISSING_PROG(AUTOCONF, autoconf)
  578. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  579. AM_MISSING_PROG(AUTOHEADER, autoheader)
  580. AM_MISSING_PROG(MAKEINFO, makeinfo)
  581. AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  582. AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  583. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  584. # We need awk for the "check" target. The system "awk" is bad on
  585. # some platforms.
  586. AC_REQUIRE([AC_PROG_AWK])dnl
  587. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  588. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  589. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  590. [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  591. [_AM_PROG_TAR([v7])])])
  592. _AM_IF_OPTION([no-dependencies],,
  593. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  594. [_AM_DEPENDENCIES(CC)],
  595. [define([AC_PROG_CC],
  596. defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  597. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  598. [_AM_DEPENDENCIES(CXX)],
  599. [define([AC_PROG_CXX],
  600. defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  601. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  602. [_AM_DEPENDENCIES(OBJC)],
  603. [define([AC_PROG_OBJC],
  604. defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  605. ])
  606. _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  607. dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  608. dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  609. dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  610. AC_CONFIG_COMMANDS_PRE(dnl
  611. [m4_provide_if([_AM_COMPILER_EXEEXT],
  612. [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  613. ])
  614. dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  615. dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  616. dnl mangled by Autoconf and run in a shell conditional statement.
  617. m4_define([_AC_COMPILER_EXEEXT],
  618. m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  619. # When config.status generates a header, we must update the stamp-h file.
  620. # This file resides in the same directory as the config header
  621. # that is generated. The stamp files are numbered to have different names.
  622. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  623. # loop where config.status creates the headers, so we can generate
  624. # our stamp files there.
  625. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  626. [# Compute $1's index in $config_headers.
  627. _am_arg=$1
  628. _am_stamp_count=1
  629. for _am_header in $config_headers :; do
  630. case $_am_header in
  631. $_am_arg | $_am_arg:* )
  632. break ;;
  633. * )
  634. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  635. esac
  636. done
  637. echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  638. # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
  639. #
  640. # This file is free software; the Free Software Foundation
  641. # gives unlimited permission to copy and/or distribute it,
  642. # with or without modifications, as long as this notice is preserved.
  643. # AM_PROG_INSTALL_SH
  644. # ------------------
  645. # Define $install_sh.
  646. AC_DEFUN([AM_PROG_INSTALL_SH],
  647. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  648. if test x"${install_sh}" != xset; then
  649. case $am_aux_dir in
  650. *\ * | *\ *)
  651. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  652. *)
  653. install_sh="\${SHELL} $am_aux_dir/install-sh"
  654. esac
  655. fi
  656. AC_SUBST(install_sh)])
  657. # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  658. #
  659. # This file is free software; the Free Software Foundation
  660. # gives unlimited permission to copy and/or distribute it,
  661. # with or without modifications, as long as this notice is preserved.
  662. # serial 2
  663. # Check whether the underlying file-system supports filenames
  664. # with a leading dot. For instance MS-DOS doesn't.
  665. AC_DEFUN([AM_SET_LEADING_DOT],
  666. [rm -rf .tst 2>/dev/null
  667. mkdir .tst 2>/dev/null
  668. if test -d .tst; then
  669. am__leading_dot=.
  670. else
  671. am__leading_dot=_
  672. fi
  673. rmdir .tst 2>/dev/null
  674. AC_SUBST([am__leading_dot])])
  675. # Check to see how 'make' treats includes. -*- Autoconf -*-
  676. # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  677. #
  678. # This file is free software; the Free Software Foundation
  679. # gives unlimited permission to copy and/or distribute it,
  680. # with or without modifications, as long as this notice is preserved.
  681. # serial 4
  682. # AM_MAKE_INCLUDE()
  683. # -----------------
  684. # Check to see how make treats includes.
  685. AC_DEFUN([AM_MAKE_INCLUDE],
  686. [am_make=${MAKE-make}
  687. cat > confinc << 'END'
  688. am__doit:
  689. @echo this is the am__doit target
  690. .PHONY: am__doit
  691. END
  692. # If we don't find an include directive, just comment out the code.
  693. AC_MSG_CHECKING([for style of include used by $am_make])
  694. am__include="#"
  695. am__quote=
  696. _am_result=none
  697. # First try GNU make style include.
  698. echo "include confinc" > confmf
  699. # Ignore all kinds of additional output from `make'.
  700. case `$am_make -s -f confmf 2> /dev/null` in #(
  701. *the\ am__doit\ target*)
  702. am__include=include
  703. am__quote=
  704. _am_result=GNU
  705. ;;
  706. esac
  707. # Now try BSD make style include.
  708. if test "$am__include" = "#"; then
  709. echo '.include "confinc"' > confmf
  710. case `$am_make -s -f confmf 2> /dev/null` in #(
  711. *the\ am__doit\ target*)
  712. am__include=.include
  713. am__quote="\""
  714. _am_result=BSD
  715. ;;
  716. esac
  717. fi
  718. AC_SUBST([am__include])
  719. AC_SUBST([am__quote])
  720. AC_MSG_RESULT([$_am_result])
  721. rm -f confinc confmf
  722. ])
  723. # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
  724. # Free Software Foundation, Inc.
  725. #
  726. # This file is free software; the Free Software Foundation
  727. # gives unlimited permission to copy and/or distribute it,
  728. # with or without modifications, as long as this notice is preserved.
  729. # serial 6
  730. # AM_PROG_CC_C_O
  731. # --------------
  732. # Like AC_PROG_CC_C_O, but changed for automake.
  733. AC_DEFUN([AM_PROG_CC_C_O],
  734. [AC_REQUIRE([AC_PROG_CC_C_O])dnl
  735. AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  736. AC_REQUIRE_AUX_FILE([compile])dnl
  737. # FIXME: we rely on the cache variable name because
  738. # there is no other way.
  739. set dummy $CC
  740. am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
  741. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  742. if test "$am_t" != yes; then
  743. # Losing compiler, so override with the script.
  744. # FIXME: It is wrong to rewrite CC.
  745. # But if we don't then we get into trouble of one sort or another.
  746. # A longer-term fix would be to have automake use am__CC in this case,
  747. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  748. CC="$am_aux_dir/compile $CC"
  749. fi
  750. dnl Make sure AC_PROG_CC is never called again, or it will override our
  751. dnl setting of CC.
  752. m4_define([AC_PROG_CC],
  753. [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
  754. ])
  755. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  756. # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  757. # Free Software Foundation, Inc.
  758. #
  759. # This file is free software; the Free Software Foundation
  760. # gives unlimited permission to copy and/or distribute it,
  761. # with or without modifications, as long as this notice is preserved.
  762. # serial 6
  763. # AM_MISSING_PROG(NAME, PROGRAM)
  764. # ------------------------------
  765. AC_DEFUN([AM_MISSING_PROG],
  766. [AC_REQUIRE([AM_MISSING_HAS_RUN])
  767. $1=${$1-"${am_missing_run}$2"}
  768. AC_SUBST($1)])
  769. # AM_MISSING_HAS_RUN
  770. # ------------------
  771. # Define MISSING if not defined so far and test if it supports --run.
  772. # If it does, set am_missing_run to use it, otherwise, to nothing.
  773. AC_DEFUN([AM_MISSING_HAS_RUN],
  774. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  775. AC_REQUIRE_AUX_FILE([missing])dnl
  776. if test x"${MISSING+set}" != xset; then
  777. case $am_aux_dir in
  778. *\ * | *\ *)
  779. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  780. *)
  781. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  782. esac
  783. fi
  784. # Use eval to expand $SHELL
  785. if eval "$MISSING --run true"; then
  786. am_missing_run="$MISSING --run "
  787. else
  788. am_missing_run=
  789. AC_MSG_WARN([`missing' script is too old or missing])
  790. fi
  791. ])
  792. # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  793. #
  794. # This file is free software; the Free Software Foundation
  795. # gives unlimited permission to copy and/or distribute it,
  796. # with or without modifications, as long as this notice is preserved.
  797. # AM_PROG_MKDIR_P
  798. # ---------------
  799. # Check for `mkdir -p'.
  800. AC_DEFUN([AM_PROG_MKDIR_P],
  801. [AC_PREREQ([2.60])dnl
  802. AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  803. dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  804. dnl while keeping a definition of mkdir_p for backward compatibility.
  805. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  806. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  807. dnl Makefile.ins that do not define MKDIR_P, so we do our own
  808. dnl adjustment using top_builddir (which is defined more often than
  809. dnl MKDIR_P).
  810. AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  811. case $mkdir_p in
  812. [[\\/$]]* | ?:[[\\/]]*) ;;
  813. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  814. esac
  815. ])
  816. # Helper functions for option handling. -*- Autoconf -*-
  817. # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
  818. #
  819. # This file is free software; the Free Software Foundation
  820. # gives unlimited permission to copy and/or distribute it,
  821. # with or without modifications, as long as this notice is preserved.
  822. # serial 4
  823. # _AM_MANGLE_OPTION(NAME)
  824. # -----------------------
  825. AC_DEFUN([_AM_MANGLE_OPTION],
  826. [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  827. # _AM_SET_OPTION(NAME)
  828. # ------------------------------
  829. # Set option NAME. Presently that only means defining a flag for this option.
  830. AC_DEFUN([_AM_SET_OPTION],
  831. [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  832. # _AM_SET_OPTIONS(OPTIONS)
  833. # ----------------------------------
  834. # OPTIONS is a space-separated list of Automake options.
  835. AC_DEFUN([_AM_SET_OPTIONS],
  836. [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  837. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  838. # -------------------------------------------
  839. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  840. AC_DEFUN([_AM_IF_OPTION],
  841. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  842. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  843. #
  844. # This file is free software; the Free Software Foundation
  845. # gives unlimited permission to copy and/or distribute it,
  846. # with or without modifications, as long as this notice is preserved.
  847. # AM_RUN_LOG(COMMAND)
  848. # -------------------
  849. # Run COMMAND, save the exit status in ac_status, and log it.
  850. # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
  851. AC_DEFUN([AM_RUN_LOG],
  852. [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
  853. ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
  854. ac_status=$?
  855. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  856. (exit $ac_status); }])
  857. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  858. # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  859. # 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. # serial 5
  865. # AM_SANITY_CHECK
  866. # ---------------
  867. AC_DEFUN([AM_SANITY_CHECK],
  868. [AC_MSG_CHECKING([whether build environment is sane])
  869. # Just in case
  870. sleep 1
  871. echo timestamp > conftest.file
  872. # Reject unsafe characters in $srcdir or the absolute working directory
  873. # name. Accept space and tab only in the latter.
  874. am_lf='
  875. '
  876. case `pwd` in
  877. *[[\\\"\#\$\&\'\`$am_lf]]*)
  878. AC_MSG_ERROR([unsafe absolute working directory name]);;
  879. esac
  880. case $srcdir in
  881. *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  882. AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  883. esac
  884. # Do `set' in a subshell so we don't clobber the current shell's
  885. # arguments. Must try -L first in case configure is actually a
  886. # symlink; some systems play weird games with the mod time of symlinks
  887. # (eg FreeBSD returns the mod time of the symlink's containing
  888. # directory).
  889. if (
  890. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  891. if test "$[*]" = "X"; then
  892. # -L didn't work.
  893. set X `ls -t "$srcdir/configure" conftest.file`
  894. fi
  895. rm -f conftest.file
  896. if test "$[*]" != "X $srcdir/configure conftest.file" \
  897. && test "$[*]" != "X conftest.file $srcdir/configure"; then
  898. # If neither matched, then we have a broken ls. This can happen
  899. # if, for instance, CONFIG_SHELL is bash and it inherits a
  900. # broken ls alias from the environment. This has actually
  901. # happened. Such a system could not be considered "sane".
  902. AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  903. alias in your environment])
  904. fi
  905. test "$[2]" = conftest.file
  906. )
  907. then
  908. # Ok.
  909. :
  910. else
  911. AC_MSG_ERROR([newly created file is older than distributed files!
  912. Check your system clock])
  913. fi
  914. AC_MSG_RESULT(yes)])
  915. # Copyright (C) 2009 Free Software Foundation, Inc.
  916. #
  917. # This file is free software; the Free Software Foundation
  918. # gives unlimited permission to copy and/or distribute it,
  919. # with or without modifications, as long as this notice is preserved.
  920. # serial 1
  921. # AM_SILENT_RULES([DEFAULT])
  922. # --------------------------
  923. # Enable less verbose build rules; with the default set to DEFAULT
  924. # (`yes' being less verbose, `no' or empty being verbose).
  925. AC_DEFUN([AM_SILENT_RULES],
  926. [AC_ARG_ENABLE([silent-rules],
  927. [ --enable-silent-rules less verbose build output (undo: `make V=1')
  928. --disable-silent-rules verbose build output (undo: `make V=0')])
  929. case $enable_silent_rules in
  930. yes) AM_DEFAULT_VERBOSITY=0;;
  931. no) AM_DEFAULT_VERBOSITY=1;;
  932. *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
  933. esac
  934. AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
  935. AM_BACKSLASH='\'
  936. AC_SUBST([AM_BACKSLASH])dnl
  937. _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
  938. ])
  939. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  940. #
  941. # This file is free software; the Free Software Foundation
  942. # gives unlimited permission to copy and/or distribute it,
  943. # with or without modifications, as long as this notice is preserved.
  944. # AM_PROG_INSTALL_STRIP
  945. # ---------------------
  946. # One issue with vendor `install' (even GNU) is that you can't
  947. # specify the program used to strip binaries. This is especially
  948. # annoying in cross-compiling environments, where the build's strip
  949. # is unlikely to handle the host's binaries.
  950. # Fortunately install-sh will honor a STRIPPROG variable, so we
  951. # always use install-sh in `make install-strip', and initialize
  952. # STRIPPROG with the value of the STRIP variable (set by the user).
  953. AC_DEFUN([AM_PROG_INSTALL_STRIP],
  954. [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  955. # Installed binaries are usually stripped using `strip' when the user
  956. # run `make install-strip'. However `strip' might not be the right
  957. # tool to use in cross-compilation environments, therefore Automake
  958. # will honor the `STRIP' environment variable to overrule this program.
  959. dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  960. if test "$cross_compiling" != no; then
  961. AC_CHECK_TOOL([STRIP], [strip], :)
  962. fi
  963. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  964. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  965. # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  966. #
  967. # This file is free software; the Free Software Foundation
  968. # gives unlimited permission to copy and/or distribute it,
  969. # with or without modifications, as long as this notice is preserved.
  970. # serial 2
  971. # _AM_SUBST_NOTMAKE(VARIABLE)
  972. # ---------------------------
  973. # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  974. # This macro is traced by Automake.
  975. AC_DEFUN([_AM_SUBST_NOTMAKE])
  976. # AM_SUBST_NOTMAKE(VARIABLE)
  977. # ---------------------------
  978. # Public sister of _AM_SUBST_NOTMAKE.
  979. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  980. # Check how to create a tarball. -*- Autoconf -*-
  981. # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  982. #
  983. # This file is free software; the Free Software Foundation
  984. # gives unlimited permission to copy and/or distribute it,
  985. # with or without modifications, as long as this notice is preserved.
  986. # serial 2
  987. # _AM_PROG_TAR(FORMAT)
  988. # --------------------
  989. # Check how to create a tarball in format FORMAT.
  990. # FORMAT should be one of `v7', `ustar', or `pax'.
  991. #
  992. # Substitute a variable $(am__tar) that is a command
  993. # writing to stdout a FORMAT-tarball containing the directory
  994. # $tardir.
  995. # tardir=directory && $(am__tar) > result.tar
  996. #
  997. # Substitute a variable $(am__untar) that extract such
  998. # a tarball read from stdin.
  999. # $(am__untar) < result.tar
  1000. AC_DEFUN([_AM_PROG_TAR],
  1001. [# Always define AMTAR for backward compatibility.
  1002. AM_MISSING_PROG([AMTAR], [tar])
  1003. m4_if([$1], [v7],
  1004. [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
  1005. [m4_case([$1], [ustar],, [pax],,
  1006. [m4_fatal([Unknown tar format])])
  1007. AC_MSG_CHECKING([how to create a $1 tar archive])
  1008. # Loop over all known methods to create a tar archive until one works.
  1009. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  1010. _am_tools=${am_cv_prog_tar_$1-$_am_tools}
  1011. # Do not fold the above two line into one, because Tru64 sh and
  1012. # Solaris sh will not grok spaces in the rhs of `-'.
  1013. for _am_tool in $_am_tools
  1014. do
  1015. case $_am_tool in
  1016. gnutar)
  1017. for _am_tar in tar gnutar gtar;
  1018. do
  1019. AM_RUN_LOG([$_am_tar --version]) && break
  1020. done
  1021. am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  1022. am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  1023. am__untar="$_am_tar -xf -"
  1024. ;;
  1025. plaintar)
  1026. # Must skip GNU tar: if it does not support --format= it doesn't create
  1027. # ustar tarball either.
  1028. (tar --version) >/dev/null 2>&1 && continue
  1029. am__tar='tar chf - "$$tardir"'
  1030. am__tar_='tar chf - "$tardir"'
  1031. am__untar='tar xf -'
  1032. ;;
  1033. pax)
  1034. am__tar='pax -L -x $1 -w "$$tardir"'
  1035. am__tar_='pax -L -x $1 -w "$tardir"'
  1036. am__untar='pax -r'
  1037. ;;
  1038. cpio)
  1039. am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  1040. am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  1041. am__untar='cpio -i -H $1 -d'
  1042. ;;
  1043. none)
  1044. am__tar=false
  1045. am__tar_=false
  1046. am__untar=false
  1047. ;;
  1048. esac
  1049. # If the value was cached, stop now. We just wanted to have am__tar
  1050. # and am__untar set.
  1051. test -n "${am_cv_prog_tar_$1}" && break
  1052. # tar/untar a dummy directory, and stop if the command works
  1053. rm -rf conftest.dir
  1054. mkdir conftest.dir
  1055. echo GrepMe > conftest.dir/file
  1056. AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  1057. rm -rf conftest.dir
  1058. if test -s conftest.tar; then
  1059. AM_RUN_LOG([$am__untar <conftest.tar])
  1060. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  1061. fi
  1062. done
  1063. rm -rf conftest.dir
  1064. AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  1065. AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  1066. AC_SUBST([am__tar])
  1067. AC_SUBST([am__untar])
  1068. ]) # _AM_PROG_TAR
  1069. m4_include([common/acx_pthread.m4])
  1070. m4_include([common/gcc_stack_protect.m4])
  1071. m4_include([common/gcc_visibility.m4])
  1072. m4_include([common/introspection.m4])
  1073. m4_include([common/libtool.m4])
  1074. m4_include([common/ltoptions.m4])
  1075. m4_include([common/ltsugar.m4])
  1076. m4_include([common/ltversion.m4])
  1077. m4_include([common/lt~obsolete.m4])
  1078. m4_include([acinclude.m4])