Nife version Beta
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 

851 Zeilen
30 KiB

  1. # generated automatically by aclocal 1.9.6 -*- Autoconf -*-
  2. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  3. # 2005 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. # Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
  12. #
  13. # This file is free software; the Free Software Foundation
  14. # gives unlimited permission to copy and/or distribute it,
  15. # with or without modifications, as long as this notice is preserved.
  16. # AM_AUTOMAKE_VERSION(VERSION)
  17. # ----------------------------
  18. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  19. # generated from the m4 files accompanying Automake X.Y.
  20. AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
  21. # AM_SET_CURRENT_AUTOMAKE_VERSION
  22. # -------------------------------
  23. # Call AM_AUTOMAKE_VERSION so it can be traced.
  24. # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  25. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  26. [AM_AUTOMAKE_VERSION([1.9.6])])
  27. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  28. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  29. #
  30. # This file is free software; the Free Software Foundation
  31. # gives unlimited permission to copy and/or distribute it,
  32. # with or without modifications, as long as this notice is preserved.
  33. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  34. # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  35. # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
  36. #
  37. # Of course, Automake must honor this variable whenever it calls a
  38. # tool from the auxiliary directory. The problem is that $srcdir (and
  39. # therefore $ac_aux_dir as well) can be either absolute or relative,
  40. # depending on how configure is run. This is pretty annoying, since
  41. # it makes $ac_aux_dir quite unusable in subdirectories: in the top
  42. # source directory, any form will work fine, but in subdirectories a
  43. # relative path needs to be adjusted first.
  44. #
  45. # $ac_aux_dir/missing
  46. # fails when called from a subdirectory if $ac_aux_dir is relative
  47. # $top_srcdir/$ac_aux_dir/missing
  48. # fails if $ac_aux_dir is absolute,
  49. # fails when called from a subdirectory in a VPATH build with
  50. # a relative $ac_aux_dir
  51. #
  52. # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  53. # are both prefixed by $srcdir. In an in-source build this is usually
  54. # harmless because $srcdir is `.', but things will broke when you
  55. # start a VPATH build or use an absolute $srcdir.
  56. #
  57. # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  58. # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  59. # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  60. # and then we would define $MISSING as
  61. # MISSING="\${SHELL} $am_aux_dir/missing"
  62. # This will work as long as MISSING is not called from configure, because
  63. # unfortunately $(top_srcdir) has no meaning in configure.
  64. # However there are other variables, like CC, which are often used in
  65. # configure, and could therefore not use this "fixed" $ac_aux_dir.
  66. #
  67. # Another solution, used here, is to always expand $ac_aux_dir to an
  68. # absolute PATH. The drawback is that using absolute paths prevent a
  69. # configured tree to be moved without reconfiguration.
  70. AC_DEFUN([AM_AUX_DIR_EXPAND],
  71. [dnl Rely on autoconf to set up CDPATH properly.
  72. AC_PREREQ([2.50])dnl
  73. # expand $ac_aux_dir to an absolute path
  74. am_aux_dir=`cd $ac_aux_dir && pwd`
  75. ])
  76. # AM_CONDITIONAL -*- Autoconf -*-
  77. # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
  78. # Free Software Foundation, Inc.
  79. #
  80. # This file is free software; the Free Software Foundation
  81. # gives unlimited permission to copy and/or distribute it,
  82. # with or without modifications, as long as this notice is preserved.
  83. # serial 7
  84. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  85. # -------------------------------------
  86. # Define a conditional.
  87. AC_DEFUN([AM_CONDITIONAL],
  88. [AC_PREREQ(2.52)dnl
  89. ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  90. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  91. AC_SUBST([$1_TRUE])
  92. AC_SUBST([$1_FALSE])
  93. if $2; then
  94. $1_TRUE=
  95. $1_FALSE='#'
  96. else
  97. $1_TRUE='#'
  98. $1_FALSE=
  99. fi
  100. AC_CONFIG_COMMANDS_PRE(
  101. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  102. AC_MSG_ERROR([[conditional "$1" was never defined.
  103. Usually this means the macro was only invoked conditionally.]])
  104. fi])])
  105. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
  106. # Free Software Foundation, Inc.
  107. #
  108. # This file is free software; the Free Software Foundation
  109. # gives unlimited permission to copy and/or distribute it,
  110. # with or without modifications, as long as this notice is preserved.
  111. # serial 8
  112. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  113. # written in clear, in which case automake, when reading aclocal.m4,
  114. # will think it sees a *use*, and therefore will trigger all it's
  115. # C support machinery. Also note that it means that autoscan, seeing
  116. # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  117. # _AM_DEPENDENCIES(NAME)
  118. # ----------------------
  119. # See how the compiler implements dependency checking.
  120. # NAME is "CC", "CXX", "GCJ", or "OBJC".
  121. # We try a few techniques and use that to set a single cache variable.
  122. #
  123. # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  124. # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  125. # dependency, and given that the user is not expected to run this macro,
  126. # just rely on AC_PROG_CC.
  127. AC_DEFUN([_AM_DEPENDENCIES],
  128. [AC_REQUIRE([AM_SET_DEPDIR])dnl
  129. AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  130. AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  131. AC_REQUIRE([AM_DEP_TRACK])dnl
  132. ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  133. [$1], CXX, [depcc="$CXX" am_compiler_list=],
  134. [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  135. [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  136. [depcc="$$1" am_compiler_list=])
  137. AC_CACHE_CHECK([dependency style of $depcc],
  138. [am_cv_$1_dependencies_compiler_type],
  139. [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  140. # We make a subdir and do the tests there. Otherwise we can end up
  141. # making bogus files that we don't know about and never remove. For
  142. # instance it was reported that on HP-UX the gcc test will end up
  143. # making a dummy file named `D' -- because `-MD' means `put the output
  144. # in D'.
  145. mkdir conftest.dir
  146. # Copy depcomp to subdir because otherwise we won't find it if we're
  147. # using a relative directory.
  148. cp "$am_depcomp" conftest.dir
  149. cd conftest.dir
  150. # We will build objects and dependencies in a subdirectory because
  151. # it helps to detect inapplicable dependency modes. For instance
  152. # both Tru64's cc and ICC support -MD to output dependencies as a
  153. # side effect of compilation, but ICC will put the dependencies in
  154. # the current directory while Tru64 will put them in the object
  155. # directory.
  156. mkdir sub
  157. am_cv_$1_dependencies_compiler_type=none
  158. if test "$am_compiler_list" = ""; then
  159. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  160. fi
  161. for depmode in $am_compiler_list; do
  162. # Setup a source with many dependencies, because some compilers
  163. # like to wrap large dependency lists on column 80 (with \), and
  164. # we should not choose a depcomp mode which is confused by this.
  165. #
  166. # We need to recreate these files for each test, as the compiler may
  167. # overwrite some of them when testing with obscure command lines.
  168. # This happens at least with the AIX C compiler.
  169. : > sub/conftest.c
  170. for i in 1 2 3 4 5 6; do
  171. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  172. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  173. # Solaris 8's {/usr,}/bin/sh.
  174. touch sub/conftst$i.h
  175. done
  176. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  177. case $depmode in
  178. nosideeffect)
  179. # after this tag, mechanisms are not by side-effect, so they'll
  180. # only be used when explicitly requested
  181. if test "x$enable_dependency_tracking" = xyes; then
  182. continue
  183. else
  184. break
  185. fi
  186. ;;
  187. none) break ;;
  188. esac
  189. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  190. # mode. It turns out that the SunPro C++ compiler does not properly
  191. # handle `-M -o', and we need to detect this.
  192. if depmode=$depmode \
  193. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  194. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  195. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  196. >/dev/null 2>conftest.err &&
  197. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  198. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  199. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  200. # icc doesn't choke on unknown options, it will just issue warnings
  201. # or remarks (even with -Werror). So we grep stderr for any message
  202. # that says an option was ignored or not supported.
  203. # When given -MP, icc 7.0 and 7.1 complain thusly:
  204. # icc: Command line warning: ignoring option '-M'; no argument required
  205. # The diagnosis changed in icc 8.0:
  206. # icc: Command line remark: option '-MP' not supported
  207. if (grep 'ignoring option' conftest.err ||
  208. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  209. am_cv_$1_dependencies_compiler_type=$depmode
  210. break
  211. fi
  212. fi
  213. done
  214. cd ..
  215. rm -rf conftest.dir
  216. else
  217. am_cv_$1_dependencies_compiler_type=none
  218. fi
  219. ])
  220. AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  221. AM_CONDITIONAL([am__fastdep$1], [
  222. test "x$enable_dependency_tracking" != xno \
  223. && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  224. ])
  225. # AM_SET_DEPDIR
  226. # -------------
  227. # Choose a directory name for dependency files.
  228. # This macro is AC_REQUIREd in _AM_DEPENDENCIES
  229. AC_DEFUN([AM_SET_DEPDIR],
  230. [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  231. AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  232. ])
  233. # AM_DEP_TRACK
  234. # ------------
  235. AC_DEFUN([AM_DEP_TRACK],
  236. [AC_ARG_ENABLE(dependency-tracking,
  237. [ --disable-dependency-tracking speeds up one-time build
  238. --enable-dependency-tracking do not reject slow dependency extractors])
  239. if test "x$enable_dependency_tracking" != xno; then
  240. am_depcomp="$ac_aux_dir/depcomp"
  241. AMDEPBACKSLASH='\'
  242. fi
  243. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  244. AC_SUBST([AMDEPBACKSLASH])
  245. ])
  246. # Generate code to set up dependency tracking. -*- Autoconf -*-
  247. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
  248. # Free Software Foundation, Inc.
  249. #
  250. # This file is free software; the Free Software Foundation
  251. # gives unlimited permission to copy and/or distribute it,
  252. # with or without modifications, as long as this notice is preserved.
  253. #serial 3
  254. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  255. # ------------------------------
  256. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  257. [for mf in $CONFIG_FILES; do
  258. # Strip MF so we end up with the name of the file.
  259. mf=`echo "$mf" | sed -e 's/:.*$//'`
  260. # Check whether this is an Automake generated Makefile or not.
  261. # We used to match only the files named `Makefile.in', but
  262. # some people rename them; so instead we look at the file content.
  263. # Grep'ing the first line is not enough: some people post-process
  264. # each Makefile.in and add a new line on top of each file to say so.
  265. # So let's grep whole file.
  266. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  267. dirpart=`AS_DIRNAME("$mf")`
  268. else
  269. continue
  270. fi
  271. # Extract the definition of DEPDIR, am__include, and am__quote
  272. # from the Makefile without running `make'.
  273. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  274. test -z "$DEPDIR" && continue
  275. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  276. test -z "am__include" && continue
  277. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  278. # When using ansi2knr, U may be empty or an underscore; expand it
  279. U=`sed -n 's/^U = //p' < "$mf"`
  280. # Find all dependency output files, they are included files with
  281. # $(DEPDIR) in their names. We invoke sed twice because it is the
  282. # simplest approach to changing $(DEPDIR) to its actual value in the
  283. # expansion.
  284. for file in `sed -n "
  285. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  286. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  287. # Make sure the directory exists.
  288. test -f "$dirpart/$file" && continue
  289. fdir=`AS_DIRNAME(["$file"])`
  290. AS_MKDIR_P([$dirpart/$fdir])
  291. # echo "creating $dirpart/$file"
  292. echo '# dummy' > "$dirpart/$file"
  293. done
  294. done
  295. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  296. # AM_OUTPUT_DEPENDENCY_COMMANDS
  297. # -----------------------------
  298. # This macro should only be invoked once -- use via AC_REQUIRE.
  299. #
  300. # This code is only required when automatic dependency tracking
  301. # is enabled. FIXME. This creates each `.P' file that we will
  302. # need in order to bootstrap the dependency handling code.
  303. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  304. [AC_CONFIG_COMMANDS([depfiles],
  305. [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  306. [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  307. ])
  308. # Do all the work for Automake. -*- Autoconf -*-
  309. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
  310. # Free Software Foundation, Inc.
  311. #
  312. # This file is free software; the Free Software Foundation
  313. # gives unlimited permission to copy and/or distribute it,
  314. # with or without modifications, as long as this notice is preserved.
  315. # serial 12
  316. # This macro actually does too much. Some checks are only needed if
  317. # your package does certain things. But this isn't really a big deal.
  318. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  319. # AM_INIT_AUTOMAKE([OPTIONS])
  320. # -----------------------------------------------
  321. # The call with PACKAGE and VERSION arguments is the old style
  322. # call (pre autoconf-2.50), which is being phased out. PACKAGE
  323. # and VERSION should now be passed to AC_INIT and removed from
  324. # the call to AM_INIT_AUTOMAKE.
  325. # We support both call styles for the transition. After
  326. # the next Automake release, Autoconf can make the AC_INIT
  327. # arguments mandatory, and then we can depend on a new Autoconf
  328. # release and drop the old call support.
  329. AC_DEFUN([AM_INIT_AUTOMAKE],
  330. [AC_PREREQ([2.58])dnl
  331. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  332. dnl the ones we care about.
  333. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  334. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  335. AC_REQUIRE([AC_PROG_INSTALL])dnl
  336. # test to see if srcdir already configured
  337. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  338. test -f $srcdir/config.status; then
  339. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  340. fi
  341. # test whether we have cygpath
  342. if test -z "$CYGPATH_W"; then
  343. if (cygpath --version) >/dev/null 2>/dev/null; then
  344. CYGPATH_W='cygpath -w'
  345. else
  346. CYGPATH_W=echo
  347. fi
  348. fi
  349. AC_SUBST([CYGPATH_W])
  350. # Define the identity of the package.
  351. dnl Distinguish between old-style and new-style calls.
  352. m4_ifval([$2],
  353. [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  354. AC_SUBST([PACKAGE], [$1])dnl
  355. AC_SUBST([VERSION], [$2])],
  356. [_AM_SET_OPTIONS([$1])dnl
  357. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  358. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  359. _AM_IF_OPTION([no-define],,
  360. [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  361. AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  362. # Some tools Automake needs.
  363. AC_REQUIRE([AM_SANITY_CHECK])dnl
  364. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  365. AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  366. AM_MISSING_PROG(AUTOCONF, autoconf)
  367. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  368. AM_MISSING_PROG(AUTOHEADER, autoheader)
  369. AM_MISSING_PROG(MAKEINFO, makeinfo)
  370. AM_PROG_INSTALL_SH
  371. AM_PROG_INSTALL_STRIP
  372. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  373. # We need awk for the "check" target. The system "awk" is bad on
  374. # some platforms.
  375. AC_REQUIRE([AC_PROG_AWK])dnl
  376. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  377. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  378. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  379. [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  380. [_AM_PROG_TAR([v7])])])
  381. _AM_IF_OPTION([no-dependencies],,
  382. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  383. [_AM_DEPENDENCIES(CC)],
  384. [define([AC_PROG_CC],
  385. defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  386. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  387. [_AM_DEPENDENCIES(CXX)],
  388. [define([AC_PROG_CXX],
  389. defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  390. ])
  391. ])
  392. # When config.status generates a header, we must update the stamp-h file.
  393. # This file resides in the same directory as the config header
  394. # that is generated. The stamp files are numbered to have different names.
  395. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  396. # loop where config.status creates the headers, so we can generate
  397. # our stamp files there.
  398. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  399. [# Compute $1's index in $config_headers.
  400. _am_stamp_count=1
  401. for _am_header in $config_headers :; do
  402. case $_am_header in
  403. $1 | $1:* )
  404. break ;;
  405. * )
  406. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  407. esac
  408. done
  409. echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
  410. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  411. #
  412. # This file is free software; the Free Software Foundation
  413. # gives unlimited permission to copy and/or distribute it,
  414. # with or without modifications, as long as this notice is preserved.
  415. # AM_PROG_INSTALL_SH
  416. # ------------------
  417. # Define $install_sh.
  418. AC_DEFUN([AM_PROG_INSTALL_SH],
  419. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  420. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  421. AC_SUBST(install_sh)])
  422. # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  423. #
  424. # This file is free software; the Free Software Foundation
  425. # gives unlimited permission to copy and/or distribute it,
  426. # with or without modifications, as long as this notice is preserved.
  427. # serial 2
  428. # Check whether the underlying file-system supports filenames
  429. # with a leading dot. For instance MS-DOS doesn't.
  430. AC_DEFUN([AM_SET_LEADING_DOT],
  431. [rm -rf .tst 2>/dev/null
  432. mkdir .tst 2>/dev/null
  433. if test -d .tst; then
  434. am__leading_dot=.
  435. else
  436. am__leading_dot=_
  437. fi
  438. rmdir .tst 2>/dev/null
  439. AC_SUBST([am__leading_dot])])
  440. # Check to see how 'make' treats includes. -*- Autoconf -*-
  441. # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  442. #
  443. # This file is free software; the Free Software Foundation
  444. # gives unlimited permission to copy and/or distribute it,
  445. # with or without modifications, as long as this notice is preserved.
  446. # serial 3
  447. # AM_MAKE_INCLUDE()
  448. # -----------------
  449. # Check to see how make treats includes.
  450. AC_DEFUN([AM_MAKE_INCLUDE],
  451. [am_make=${MAKE-make}
  452. cat > confinc << 'END'
  453. am__doit:
  454. @echo done
  455. .PHONY: am__doit
  456. END
  457. # If we don't find an include directive, just comment out the code.
  458. AC_MSG_CHECKING([for style of include used by $am_make])
  459. am__include="#"
  460. am__quote=
  461. _am_result=none
  462. # First try GNU make style include.
  463. echo "include confinc" > confmf
  464. # We grep out `Entering directory' and `Leaving directory'
  465. # messages which can occur if `w' ends up in MAKEFLAGS.
  466. # In particular we don't look at `^make:' because GNU make might
  467. # be invoked under some other name (usually "gmake"), in which
  468. # case it prints its new name instead of `make'.
  469. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  470. am__include=include
  471. am__quote=
  472. _am_result=GNU
  473. fi
  474. # Now try BSD make style include.
  475. if test "$am__include" = "#"; then
  476. echo '.include "confinc"' > confmf
  477. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  478. am__include=.include
  479. am__quote="\""
  480. _am_result=BSD
  481. fi
  482. fi
  483. AC_SUBST([am__include])
  484. AC_SUBST([am__quote])
  485. AC_MSG_RESULT([$_am_result])
  486. rm -f confinc confmf
  487. ])
  488. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  489. # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
  490. # Free Software Foundation, Inc.
  491. #
  492. # This file is free software; the Free Software Foundation
  493. # gives unlimited permission to copy and/or distribute it,
  494. # with or without modifications, as long as this notice is preserved.
  495. # serial 4
  496. # AM_MISSING_PROG(NAME, PROGRAM)
  497. # ------------------------------
  498. AC_DEFUN([AM_MISSING_PROG],
  499. [AC_REQUIRE([AM_MISSING_HAS_RUN])
  500. $1=${$1-"${am_missing_run}$2"}
  501. AC_SUBST($1)])
  502. # AM_MISSING_HAS_RUN
  503. # ------------------
  504. # Define MISSING if not defined so far and test if it supports --run.
  505. # If it does, set am_missing_run to use it, otherwise, to nothing.
  506. AC_DEFUN([AM_MISSING_HAS_RUN],
  507. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  508. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  509. # Use eval to expand $SHELL
  510. if eval "$MISSING --run true"; then
  511. am_missing_run="$MISSING --run "
  512. else
  513. am_missing_run=
  514. AC_MSG_WARN([`missing' script is too old or missing])
  515. fi
  516. ])
  517. # Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
  518. #
  519. # This file is free software; the Free Software Foundation
  520. # gives unlimited permission to copy and/or distribute it,
  521. # with or without modifications, as long as this notice is preserved.
  522. # AM_PROG_MKDIR_P
  523. # ---------------
  524. # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
  525. #
  526. # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
  527. # created by `make install' are always world readable, even if the
  528. # installer happens to have an overly restrictive umask (e.g. 077).
  529. # This was a mistake. There are at least two reasons why we must not
  530. # use `-m 0755':
  531. # - it causes special bits like SGID to be ignored,
  532. # - it may be too restrictive (some setups expect 775 directories).
  533. #
  534. # Do not use -m 0755 and let people choose whatever they expect by
  535. # setting umask.
  536. #
  537. # We cannot accept any implementation of `mkdir' that recognizes `-p'.
  538. # Some implementations (such as Solaris 8's) are not thread-safe: if a
  539. # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
  540. # concurrently, both version can detect that a/ is missing, but only
  541. # one can create it and the other will error out. Consequently we
  542. # restrict ourselves to GNU make (using the --version option ensures
  543. # this.)
  544. AC_DEFUN([AM_PROG_MKDIR_P],
  545. [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  546. # We used to keeping the `.' as first argument, in order to
  547. # allow $(mkdir_p) to be used without argument. As in
  548. # $(mkdir_p) $(somedir)
  549. # where $(somedir) is conditionally defined. However this is wrong
  550. # for two reasons:
  551. # 1. if the package is installed by a user who cannot write `.'
  552. # make install will fail,
  553. # 2. the above comment should most certainly read
  554. # $(mkdir_p) $(DESTDIR)$(somedir)
  555. # so it does not work when $(somedir) is undefined and
  556. # $(DESTDIR) is not.
  557. # To support the latter case, we have to write
  558. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  559. # so the `.' trick is pointless.
  560. mkdir_p='mkdir -p --'
  561. else
  562. # On NextStep and OpenStep, the `mkdir' command does not
  563. # recognize any option. It will interpret all options as
  564. # directories to create, and then abort because `.' already
  565. # exists.
  566. for d in ./-p ./--version;
  567. do
  568. test -d $d && rmdir $d
  569. done
  570. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  571. if test -f "$ac_aux_dir/mkinstalldirs"; then
  572. mkdir_p='$(mkinstalldirs)'
  573. else
  574. mkdir_p='$(install_sh) -d'
  575. fi
  576. fi
  577. AC_SUBST([mkdir_p])])
  578. # Helper functions for option handling. -*- Autoconf -*-
  579. # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  580. #
  581. # This file is free software; the Free Software Foundation
  582. # gives unlimited permission to copy and/or distribute it,
  583. # with or without modifications, as long as this notice is preserved.
  584. # serial 3
  585. # _AM_MANGLE_OPTION(NAME)
  586. # -----------------------
  587. AC_DEFUN([_AM_MANGLE_OPTION],
  588. [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  589. # _AM_SET_OPTION(NAME)
  590. # ------------------------------
  591. # Set option NAME. Presently that only means defining a flag for this option.
  592. AC_DEFUN([_AM_SET_OPTION],
  593. [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  594. # _AM_SET_OPTIONS(OPTIONS)
  595. # ----------------------------------
  596. # OPTIONS is a space-separated list of Automake options.
  597. AC_DEFUN([_AM_SET_OPTIONS],
  598. [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  599. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  600. # -------------------------------------------
  601. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  602. AC_DEFUN([_AM_IF_OPTION],
  603. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  604. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  605. # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  606. # Free Software Foundation, Inc.
  607. #
  608. # This file is free software; the Free Software Foundation
  609. # gives unlimited permission to copy and/or distribute it,
  610. # with or without modifications, as long as this notice is preserved.
  611. # serial 4
  612. # AM_SANITY_CHECK
  613. # ---------------
  614. AC_DEFUN([AM_SANITY_CHECK],
  615. [AC_MSG_CHECKING([whether build environment is sane])
  616. # Just in case
  617. sleep 1
  618. echo timestamp > conftest.file
  619. # Do `set' in a subshell so we don't clobber the current shell's
  620. # arguments. Must try -L first in case configure is actually a
  621. # symlink; some systems play weird games with the mod time of symlinks
  622. # (eg FreeBSD returns the mod time of the symlink's containing
  623. # directory).
  624. if (
  625. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  626. if test "$[*]" = "X"; then
  627. # -L didn't work.
  628. set X `ls -t $srcdir/configure conftest.file`
  629. fi
  630. rm -f conftest.file
  631. if test "$[*]" != "X $srcdir/configure conftest.file" \
  632. && test "$[*]" != "X conftest.file $srcdir/configure"; then
  633. # If neither matched, then we have a broken ls. This can happen
  634. # if, for instance, CONFIG_SHELL is bash and it inherits a
  635. # broken ls alias from the environment. This has actually
  636. # happened. Such a system could not be considered "sane".
  637. AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  638. alias in your environment])
  639. fi
  640. test "$[2]" = conftest.file
  641. )
  642. then
  643. # Ok.
  644. :
  645. else
  646. AC_MSG_ERROR([newly created file is older than distributed files!
  647. Check your system clock])
  648. fi
  649. AC_MSG_RESULT(yes)])
  650. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  651. #
  652. # This file is free software; the Free Software Foundation
  653. # gives unlimited permission to copy and/or distribute it,
  654. # with or without modifications, as long as this notice is preserved.
  655. # AM_PROG_INSTALL_STRIP
  656. # ---------------------
  657. # One issue with vendor `install' (even GNU) is that you can't
  658. # specify the program used to strip binaries. This is especially
  659. # annoying in cross-compiling environments, where the build's strip
  660. # is unlikely to handle the host's binaries.
  661. # Fortunately install-sh will honor a STRIPPROG variable, so we
  662. # always use install-sh in `make install-strip', and initialize
  663. # STRIPPROG with the value of the STRIP variable (set by the user).
  664. AC_DEFUN([AM_PROG_INSTALL_STRIP],
  665. [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  666. # Installed binaries are usually stripped using `strip' when the user
  667. # run `make install-strip'. However `strip' might not be the right
  668. # tool to use in cross-compilation environments, therefore Automake
  669. # will honor the `STRIP' environment variable to overrule this program.
  670. dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  671. if test "$cross_compiling" != no; then
  672. AC_CHECK_TOOL([STRIP], [strip], :)
  673. fi
  674. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  675. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  676. # Check how to create a tarball. -*- Autoconf -*-
  677. # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  678. #
  679. # This file is free software; the Free Software Foundation
  680. # gives unlimited permission to copy and/or distribute it,
  681. # with or without modifications, as long as this notice is preserved.
  682. # serial 2
  683. # _AM_PROG_TAR(FORMAT)
  684. # --------------------
  685. # Check how to create a tarball in format FORMAT.
  686. # FORMAT should be one of `v7', `ustar', or `pax'.
  687. #
  688. # Substitute a variable $(am__tar) that is a command
  689. # writing to stdout a FORMAT-tarball containing the directory
  690. # $tardir.
  691. # tardir=directory && $(am__tar) > result.tar
  692. #
  693. # Substitute a variable $(am__untar) that extract such
  694. # a tarball read from stdin.
  695. # $(am__untar) < result.tar
  696. AC_DEFUN([_AM_PROG_TAR],
  697. [# Always define AMTAR for backward compatibility.
  698. AM_MISSING_PROG([AMTAR], [tar])
  699. m4_if([$1], [v7],
  700. [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
  701. [m4_case([$1], [ustar],, [pax],,
  702. [m4_fatal([Unknown tar format])])
  703. AC_MSG_CHECKING([how to create a $1 tar archive])
  704. # Loop over all known methods to create a tar archive until one works.
  705. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  706. _am_tools=${am_cv_prog_tar_$1-$_am_tools}
  707. # Do not fold the above two line into one, because Tru64 sh and
  708. # Solaris sh will not grok spaces in the rhs of `-'.
  709. for _am_tool in $_am_tools
  710. do
  711. case $_am_tool in
  712. gnutar)
  713. for _am_tar in tar gnutar gtar;
  714. do
  715. AM_RUN_LOG([$_am_tar --version]) && break
  716. done
  717. am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  718. am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  719. am__untar="$_am_tar -xf -"
  720. ;;
  721. plaintar)
  722. # Must skip GNU tar: if it does not support --format= it doesn't create
  723. # ustar tarball either.
  724. (tar --version) >/dev/null 2>&1 && continue
  725. am__tar='tar chf - "$$tardir"'
  726. am__tar_='tar chf - "$tardir"'
  727. am__untar='tar xf -'
  728. ;;
  729. pax)
  730. am__tar='pax -L -x $1 -w "$$tardir"'
  731. am__tar_='pax -L -x $1 -w "$tardir"'
  732. am__untar='pax -r'
  733. ;;
  734. cpio)
  735. am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  736. am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  737. am__untar='cpio -i -H $1 -d'
  738. ;;
  739. none)
  740. am__tar=false
  741. am__tar_=false
  742. am__untar=false
  743. ;;
  744. esac
  745. # If the value was cached, stop now. We just wanted to have am__tar
  746. # and am__untar set.
  747. test -n "${am_cv_prog_tar_$1}" && break
  748. # tar/untar a dummy directory, and stop if the command works
  749. rm -rf conftest.dir
  750. mkdir conftest.dir
  751. echo GrepMe > conftest.dir/file
  752. AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  753. rm -rf conftest.dir
  754. if test -s conftest.tar; then
  755. AM_RUN_LOG([$am__untar <conftest.tar])
  756. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  757. fi
  758. done
  759. rm -rf conftest.dir
  760. AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  761. AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  762. AC_SUBST([am__tar])
  763. AC_SUBST([am__untar])
  764. ]) # _AM_PROG_TAR