aclocal.m4 39 KB

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