💾 Archived View for gemini.rmf-dev.com › repo › Vaati › Menkar › files › aef382c08cd9379ca7112d1162b… captured on 2023-09-08 at 16:33:30. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-03-20)

🚧 View Differences

-=-=-=-=-=-=-

Go Back

0 # generated automatically by aclocal 1.9.6 -*- Autoconf -*-

1

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

8 # This program is distributed in the hope that it will be useful,

9 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without

10 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A

11 # PARTICULAR PURPOSE.

12

13 # Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.

14 #

15 # This file is free software; the Free Software Foundation

16 # gives unlimited permission to copy and/or distribute it,

17 # with or without modifications, as long as this notice is preserved.

18

19 # AM_AUTOMAKE_VERSION(VERSION)

20 # ----------------------------

21 # Automake X.Y traces this macro to ensure aclocal.m4 has been

22 # generated from the m4 files accompanying Automake X.Y.

23 AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])

24

25 # AM_SET_CURRENT_AUTOMAKE_VERSION

26 # -------------------------------

27 # Call AM_AUTOMAKE_VERSION so it can be traced.

28 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.

29 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],

30 [AM_AUTOMAKE_VERSION([1.9.6])])

31

32 # AM_AUX_DIR_EXPAND -*- Autoconf -*-

33

34 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.

35 #

36 # This file is free software; the Free Software Foundation

37 # gives unlimited permission to copy and/or distribute it,

38 # with or without modifications, as long as this notice is preserved.

39

40 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets

41 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to

42 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.

43 #

44 # Of course, Automake must honor this variable whenever it calls a

45 # tool from the auxiliary directory. The problem is that $srcdir (and

46 # therefore $ac_aux_dir as well) can be either absolute or relative,

47 # depending on how configure is run. This is pretty annoying, since

48 # it makes $ac_aux_dir quite unusable in subdirectories: in the top

49 # source directory, any form will work fine, but in subdirectories a

50 # relative path needs to be adjusted first.

51 #

52 # $ac_aux_dir/missing

53 # fails when called from a subdirectory if $ac_aux_dir is relative

54 # $top_srcdir/$ac_aux_dir/missing

55 # fails if $ac_aux_dir is absolute,

56 # fails when called from a subdirectory in a VPATH build with

57 # a relative $ac_aux_dir

58 #

59 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir

60 # are both prefixed by $srcdir. In an in-source build this is usually

61 # harmless because $srcdir is `.', but things will broke when you

62 # start a VPATH build or use an absolute $srcdir.

63 #

64 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,

65 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:

66 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`

67 # and then we would define $MISSING as

68 # MISSING="\${SHELL} $am_aux_dir/missing"

69 # This will work as long as MISSING is not called from configure, because

70 # unfortunately $(top_srcdir) has no meaning in configure.

71 # However there are other variables, like CC, which are often used in

72 # configure, and could therefore not use this "fixed" $ac_aux_dir.

73 #

74 # Another solution, used here, is to always expand $ac_aux_dir to an

75 # absolute PATH. The drawback is that using absolute paths prevent a

76 # configured tree to be moved without reconfiguration.

77

78 AC_DEFUN([AM_AUX_DIR_EXPAND],

79 [dnl Rely on autoconf to set up CDPATH properly.

80 AC_PREREQ([2.50])dnl

81 # expand $ac_aux_dir to an absolute path

82 am_aux_dir=`cd $ac_aux_dir && pwd`

83 ])

84

85 # AM_CONDITIONAL -*- Autoconf -*-

86

87 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005

88 # Free Software Foundation, Inc.

89 #

90 # This file is free software; the Free Software Foundation

91 # gives unlimited permission to copy and/or distribute it,

92 # with or without modifications, as long as this notice is preserved.

93

94 # serial 7

95

96 # AM_CONDITIONAL(NAME, SHELL-CONDITION)

97 # -------------------------------------

98 # Define a conditional.

99 AC_DEFUN([AM_CONDITIONAL],

100 [AC_PREREQ(2.52)dnl

101 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],

102 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl

103 AC_SUBST([$1_TRUE])

104 AC_SUBST([$1_FALSE])

105 if $2; then

106 $1_TRUE=

107 $1_FALSE='#'

108 else

109 $1_TRUE='#'

110 $1_FALSE=

111 fi

112 AC_CONFIG_COMMANDS_PRE(

113 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then

114 AC_MSG_ERROR([[conditional "$1" was never defined.

115 Usually this means the macro was only invoked conditionally.]])

116 fi])])

117

118

119 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005

120 # Free Software Foundation, Inc.

121 #

122 # This file is free software; the Free Software Foundation

123 # gives unlimited permission to copy and/or distribute it,

124 # with or without modifications, as long as this notice is preserved.

125

126 # serial 8

127

128 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be

129 # written in clear, in which case automake, when reading aclocal.m4,

130 # will think it sees a *use*, and therefore will trigger all it's

131 # C support machinery. Also note that it means that autoscan, seeing

132 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...

133

134

135 # _AM_DEPENDENCIES(NAME)

136 # ----------------------

137 # See how the compiler implements dependency checking.

138 # NAME is "CC", "CXX", "GCJ", or "OBJC".

139 # We try a few techniques and use that to set a single cache variable.

140 #

141 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was

142 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular

143 # dependency, and given that the user is not expected to run this macro,

144 # just rely on AC_PROG_CC.

145 AC_DEFUN([_AM_DEPENDENCIES],

146 [AC_REQUIRE([AM_SET_DEPDIR])dnl

147 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl

148 AC_REQUIRE([AM_MAKE_INCLUDE])dnl

149 AC_REQUIRE([AM_DEP_TRACK])dnl

150

151 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],

152 [$1], CXX, [depcc="$CXX" am_compiler_list=],

153 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],

154 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],

155 [depcc="$1" am_compiler_list=])

156

157 AC_CACHE_CHECK([dependency style of $depcc],

158 [am_cv_$1_dependencies_compiler_type],

159 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then

160 # We make a subdir and do the tests there. Otherwise we can end up

161 # making bogus files that we don't know about and never remove. For

162 # instance it was reported that on HP-UX the gcc test will end up

163 # making a dummy file named `D' -- because `-MD' means `put the output

164 # in D'.

165 mkdir conftest.dir

166 # Copy depcomp to subdir because otherwise we won't find it if we're

167 # using a relative directory.

168 cp "$am_depcomp" conftest.dir

169 cd conftest.dir

170 # We will build objects and dependencies in a subdirectory because

171 # it helps to detect inapplicable dependency modes. For instance

172 # both Tru64's cc and ICC support -MD to output dependencies as a

173 # side effect of compilation, but ICC will put the dependencies in

174 # the current directory while Tru64 will put them in the object

175 # directory.

176 mkdir sub

177

178 am_cv_$1_dependencies_compiler_type=none

179 if test "$am_compiler_list" = ""; then

180 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`

181 fi

182 for depmode in $am_compiler_list; do

183 # Setup a source with many dependencies, because some compilers

184 # like to wrap large dependency lists on column 80 (with \), and

185 # we should not choose a depcomp mode which is confused by this.

186 #

187 # We need to recreate these files for each test, as the compiler may

188 # overwrite some of them when testing with obscure command lines.

189 # This happens at least with the AIX C compiler.

190 : > sub/conftest.c

191 for i in 1 2 3 4 5 6; do

192 echo '#include "conftst'$i'.h"' >> sub/conftest.c

193 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with

194 # Solaris 8's {/usr,}/bin/sh.

195 touch sub/conftst$i.h

196 done

197 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf

198

199 case $depmode in

200 nosideeffect)

201 # after this tag, mechanisms are not by side-effect, so they'll

202 # only be used when explicitly requested

203 if test "x$enable_dependency_tracking" = xyes; then

204 continue

205 else

206 break

207 fi

208 ;;

209 none) break ;;

210 esac

211 # We check with `-c' and `-o' for the sake of the "dashmstdout"

212 # mode. It turns out that the SunPro C++ compiler does not properly

213 # handle `-M -o', and we need to detect this.

214 if depmode=$depmode \

215 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \

216 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \

217 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \

218 >/dev/null 2>conftest.err &&

219 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&

220 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&

221 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then

222 # icc doesn't choke on unknown options, it will just issue warnings

223 # or remarks (even with -Werror). So we grep stderr for any message

224 # that says an option was ignored or not supported.

225 # When given -MP, icc 7.0 and 7.1 complain thusly:

226 # icc: Command line warning: ignoring option '-M'; no argument required

227 # The diagnosis changed in icc 8.0:

228 # icc: Command line remark: option '-MP' not supported

229 if (grep 'ignoring option' conftest.err ||

230 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else

231 am_cv_$1_dependencies_compiler_type=$depmode

232 break

233 fi

234 fi

235 done

236

237 cd ..

238 rm -rf conftest.dir

239 else

240 am_cv_$1_dependencies_compiler_type=none

241 fi

242 ])

243 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])

244 AM_CONDITIONAL([am__fastdep$1], [

245 test "x$enable_dependency_tracking" != xno \

246 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])

247 ])

248

249

250 # AM_SET_DEPDIR

251 # -------------

252 # Choose a directory name for dependency files.

253 # This macro is AC_REQUIREd in _AM_DEPENDENCIES

254 AC_DEFUN([AM_SET_DEPDIR],

255 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl

256 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl

257 ])

258

259

260 # AM_DEP_TRACK

261 # ------------

262 AC_DEFUN([AM_DEP_TRACK],

263 [AC_ARG_ENABLE(dependency-tracking,

264 [ --disable-dependency-tracking speeds up one-time build

265 --enable-dependency-tracking do not reject slow dependency extractors])

266 if test "x$enable_dependency_tracking" != xno; then

267 am_depcomp="$ac_aux_dir/depcomp"

268 AMDEPBACKSLASH='\'

269 fi

270 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])

271 AC_SUBST([AMDEPBACKSLASH])

272 ])

273

274 # Generate code to set up dependency tracking. -*- Autoconf -*-

275

276 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005

277 # Free Software Foundation, Inc.

278 #

279 # This file is free software; the Free Software Foundation

280 # gives unlimited permission to copy and/or distribute it,

281 # with or without modifications, as long as this notice is preserved.

282

283 #serial 3

284

285 # _AM_OUTPUT_DEPENDENCY_COMMANDS

286 # ------------------------------

287 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],

288 [for mf in $CONFIG_FILES; do

289 # Strip MF so we end up with the name of the file.

290 mf=`echo "$mf" | sed -e 's/:.*$//'`

291 # Check whether this is an Automake generated Makefile or not.

292 # We used to match only the files named `Makefile.in', but

293 # some people rename them; so instead we look at the file content.

294 # Grep'ing the first line is not enough: some people post-process

295 # each Makefile.in and add a new line on top of each file to say so.

296 # So let's grep whole file.

297 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then

298 dirpart=`AS_DIRNAME("$mf")`

299 else

300 continue

301 fi

302 # Extract the definition of DEPDIR, am__include, and am__quote

303 # from the Makefile without running `make'.

304 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`

305 test -z "$DEPDIR" && continue

306 am__include=`sed -n 's/^am__include = //p' < "$mf"`

307 test -z "am__include" && continue

308 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`

309 # When using ansi2knr, U may be empty or an underscore; expand it

310 U=`sed -n 's/^U = //p' < "$mf"`

311 # Find all dependency output files, they are included files with

312 # $(DEPDIR) in their names. We invoke sed twice because it is the

313 # simplest approach to changing $(DEPDIR) to its actual value in the

314 # expansion.

315 for file in `sed -n "

316 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \

317 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do

318 # Make sure the directory exists.

319 test -f "$dirpart/$file" && continue

320 fdir=`AS_DIRNAME(["$file"])`

321 AS_MKDIR_P([$dirpart/$fdir])

322 # echo "creating $dirpart/$file"

323 echo '# dummy' > "$dirpart/$file"

324 done

325 done

326 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS

327

328

329 # AM_OUTPUT_DEPENDENCY_COMMANDS

330 # -----------------------------

331 # This macro should only be invoked once -- use via AC_REQUIRE.

332 #

333 # This code is only required when automatic dependency tracking

334 # is enabled. FIXME. This creates each `.P' file that we will

335 # need in order to bootstrap the dependency handling code.

336 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],

337 [AC_CONFIG_COMMANDS([depfiles],

338 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],

339 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])

340 ])

341

342 # Do all the work for Automake. -*- Autoconf -*-

343

344 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005

345 # Free Software Foundation, Inc.

346 #

347 # This file is free software; the Free Software Foundation

348 # gives unlimited permission to copy and/or distribute it,

349 # with or without modifications, as long as this notice is preserved.

350

351 # serial 12

352

353 # This macro actually does too much. Some checks are only needed if

354 # your package does certain things. But this isn't really a big deal.

355

356 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])

357 # AM_INIT_AUTOMAKE([OPTIONS])

358 # -----------------------------------------------

359 # The call with PACKAGE and VERSION arguments is the old style

360 # call (pre autoconf-2.50), which is being phased out. PACKAGE

361 # and VERSION should now be passed to AC_INIT and removed from

362 # the call to AM_INIT_AUTOMAKE.

363 # We support both call styles for the transition. After

364 # the next Automake release, Autoconf can make the AC_INIT

365 # arguments mandatory, and then we can depend on a new Autoconf

366 # release and drop the old call support.

367 AC_DEFUN([AM_INIT_AUTOMAKE],

368 [AC_PREREQ([2.58])dnl

369 dnl Autoconf wants to disallow AM_ names. We explicitly allow

370 dnl the ones we care about.

371 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl

372 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl

373 AC_REQUIRE([AC_PROG_INSTALL])dnl

374 # test to see if srcdir already configured

375 if test "`cd $srcdir && pwd`" != "`pwd`" &&

376 test -f $srcdir/config.status; then

377 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])

378 fi

379

380 # test whether we have cygpath

381 if test -z "$CYGPATH_W"; then

382 if (cygpath --version) >/dev/null 2>/dev/null; then

383 CYGPATH_W='cygpath -w'

384 else

385 CYGPATH_W=echo

386 fi

387 fi

388 AC_SUBST([CYGPATH_W])

389

390 # Define the identity of the package.

391 dnl Distinguish between old-style and new-style calls.

392 m4_ifval([$2],

393 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl

394 AC_SUBST([PACKAGE], [$1])dnl

395 AC_SUBST([VERSION], [$2])],

396 [_AM_SET_OPTIONS([$1])dnl

397 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl

398 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl

399

400 _AM_IF_OPTION([no-define],,

401 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])

402 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl

403

404 # Some tools Automake needs.

405 AC_REQUIRE([AM_SANITY_CHECK])dnl

406 AC_REQUIRE([AC_ARG_PROGRAM])dnl

407 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})

408 AM_MISSING_PROG(AUTOCONF, autoconf)

409 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})

410 AM_MISSING_PROG(AUTOHEADER, autoheader)

411 AM_MISSING_PROG(MAKEINFO, makeinfo)

412 AM_PROG_INSTALL_SH

413 AM_PROG_INSTALL_STRIP

414 AC_REQUIRE([AM_PROG_MKDIR_P])dnl

415 # We need awk for the "check" target. The system "awk" is bad on

416 # some platforms.

417 AC_REQUIRE([AC_PROG_AWK])dnl

418 AC_REQUIRE([AC_PROG_MAKE_SET])dnl

419 AC_REQUIRE([AM_SET_LEADING_DOT])dnl

420 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],

421 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],

422 [_AM_PROG_TAR([v7])])])

423 _AM_IF_OPTION([no-dependencies],,

424 [AC_PROVIDE_IFELSE([AC_PROG_CC],

425 [_AM_DEPENDENCIES(CC)],

426 [define([AC_PROG_CC],

427 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl

428 AC_PROVIDE_IFELSE([AC_PROG_CXX],

429 [_AM_DEPENDENCIES(CXX)],

430 [define([AC_PROG_CXX],

431 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl

432 ])

433 ])

434

435

436 # When config.status generates a header, we must update the stamp-h file.

437 # This file resides in the same directory as the config header

438 # that is generated. The stamp files are numbered to have different names.

439

440 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the

441 # loop where config.status creates the headers, so we can generate

442 # our stamp files there.

443 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],

444 [# Compute $1's index in $config_headers.

445 _am_stamp_count=1

446 for _am_header in $config_headers :; do

447 case $_am_header in

448 $1 | $1:* )

449 break ;;

450 * )

451 _am_stamp_count=`expr $_am_stamp_count + 1` ;;

452 esac

453 done

454 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])

455

456 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.

457 #

458 # This file is free software; the Free Software Foundation

459 # gives unlimited permission to copy and/or distribute it,

460 # with or without modifications, as long as this notice is preserved.

461

462 # AM_PROG_INSTALL_SH

463 # ------------------

464 # Define $install_sh.

465 AC_DEFUN([AM_PROG_INSTALL_SH],

466 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl

467 install_sh=${install_sh-"$am_aux_dir/install-sh"}

468 AC_SUBST(install_sh)])

469

470 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.

471 #

472 # This file is free software; the Free Software Foundation

473 # gives unlimited permission to copy and/or distribute it,

474 # with or without modifications, as long as this notice is preserved.

475

476 # serial 2

477

478 # Check whether the underlying file-system supports filenames

479 # with a leading dot. For instance MS-DOS doesn't.

480 AC_DEFUN([AM_SET_LEADING_DOT],

481 [rm -rf .tst 2>/dev/null

482 mkdir .tst 2>/dev/null

483 if test -d .tst; then

484 am__leading_dot=.

485 else

486 am__leading_dot=_

487 fi

488 rmdir .tst 2>/dev/null

489 AC_SUBST([am__leading_dot])])

490

491 # Check to see how 'make' treats includes. -*- Autoconf -*-

492

493 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.

494 #

495 # This file is free software; the Free Software Foundation

496 # gives unlimited permission to copy and/or distribute it,

497 # with or without modifications, as long as this notice is preserved.

498

499 # serial 3

500

501 # AM_MAKE_INCLUDE()

502 # -----------------

503 # Check to see how make treats includes.

504 AC_DEFUN([AM_MAKE_INCLUDE],

505 [am_make=${MAKE-make}

506 cat > confinc << 'END'

507 am__doit:

508 @echo done

509 .PHONY: am__doit

510 END

511 # If we don't find an include directive, just comment out the code.

512 AC_MSG_CHECKING([for style of include used by $am_make])

513 am__include="#"

514 am__quote=

515 _am_result=none

516 # First try GNU make style include.

517 echo "include confinc" > confmf

518 # We grep out `Entering directory' and `Leaving directory'

519 # messages which can occur if `w' ends up in MAKEFLAGS.

520 # In particular we don't look at `^make:' because GNU make might

521 # be invoked under some other name (usually "gmake"), in which

522 # case it prints its new name instead of `make'.

523 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then

524 am__include=include

525 am__quote=

526 _am_result=GNU

527 fi

528 # Now try BSD make style include.

529 if test "$am__include" = "#"; then

530 echo '.include "confinc"' > confmf

531 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then

532 am__include=.include

533 am__quote="\""

534 _am_result=BSD

535 fi

536 fi

537 AC_SUBST([am__include])

538 AC_SUBST([am__quote])

539 AC_MSG_RESULT([$_am_result])

540 rm -f confinc confmf

541 ])

542

543 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-

544

545 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005

546 # Free Software Foundation, Inc.

547 #

548 # This file is free software; the Free Software Foundation

549 # gives unlimited permission to copy and/or distribute it,

550 # with or without modifications, as long as this notice is preserved.

551

552 # serial 4

553

554 # AM_MISSING_PROG(NAME, PROGRAM)

555 # ------------------------------

556 AC_DEFUN([AM_MISSING_PROG],

557 [AC_REQUIRE([AM_MISSING_HAS_RUN])

558 $1=${$1-"${am_missing_run}$2"}

559 AC_SUBST($1)])

560

561

562 # AM_MISSING_HAS_RUN

563 # ------------------

564 # Define MISSING if not defined so far and test if it supports --run.

565 # If it does, set am_missing_run to use it, otherwise, to nothing.

566 AC_DEFUN([AM_MISSING_HAS_RUN],

567 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl

568 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"

569 # Use eval to expand $SHELL

570 if eval "$MISSING --run true"; then

571 am_missing_run="$MISSING --run "

572 else

573 am_missing_run=

574 AC_MSG_WARN([`missing' script is too old or missing])

575 fi

576 ])

577

578 # Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.

579 #

580 # This file is free software; the Free Software Foundation

581 # gives unlimited permission to copy and/or distribute it,

582 # with or without modifications, as long as this notice is preserved.

583

584 # AM_PROG_MKDIR_P

585 # ---------------

586 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.

587 #

588 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories

589 # created by `make install' are always world readable, even if the

590 # installer happens to have an overly restrictive umask (e.g. 077).

591 # This was a mistake. There are at least two reasons why we must not

592 # use `-m 0755':

593 # - it causes special bits like SGID to be ignored,

594 # - it may be too restrictive (some setups expect 775 directories).

595 #

596 # Do not use -m 0755 and let people choose whatever they expect by

597 # setting umask.

598 #

599 # We cannot accept any implementation of `mkdir' that recognizes `-p'.

600 # Some implementations (such as Solaris 8's) are not thread-safe: if a

601 # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'

602 # concurrently, both version can detect that a/ is missing, but only

603 # one can create it and the other will error out. Consequently we

604 # restrict ourselves to GNU make (using the --version option ensures

605 # this.)

606 AC_DEFUN([AM_PROG_MKDIR_P],

607 [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then

608 # We used to keeping the `.' as first argument, in order to

609 # allow $(mkdir_p) to be used without argument. As in

610 # $(mkdir_p) $(somedir)

611 # where $(somedir) is conditionally defined. However this is wrong

612 # for two reasons:

613 # 1. if the package is installed by a user who cannot write `.'

614 # make install will fail,

615 # 2. the above comment should most certainly read

616 # $(mkdir_p) $(DESTDIR)$(somedir)

617 # so it does not work when $(somedir) is undefined and

618 # $(DESTDIR) is not.

619 # To support the latter case, we have to write

620 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),

621 # so the `.' trick is pointless.

622 mkdir_p='mkdir -p --'

623 else

624 # On NextStep and OpenStep, the `mkdir' command does not

625 # recognize any option. It will interpret all options as

626 # directories to create, and then abort because `.' already

627 # exists.

628 for d in ./-p ./--version;

629 do

630 test -d $d && rmdir $d

631 done

632 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.

633 if test -f "$ac_aux_dir/mkinstalldirs"; then

634 mkdir_p='$(mkinstalldirs)'

635 else

636 mkdir_p='$(SHELL) $(install_sh) -d'

637 fi

638 fi

639 AC_SUBST([mkdir_p])])

640

641 # Helper functions for option handling. -*- Autoconf -*-

642

643 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.

644 #

645 # This file is free software; the Free Software Foundation

646 # gives unlimited permission to copy and/or distribute it,

647 # with or without modifications, as long as this notice is preserved.

648

649 # serial 3

650

651 # _AM_MANGLE_OPTION(NAME)

652 # -----------------------

653 AC_DEFUN([_AM_MANGLE_OPTION],

654 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])

655

656 # _AM_SET_OPTION(NAME)

657 # ------------------------------

658 # Set option NAME. Presently that only means defining a flag for this option.

659 AC_DEFUN([_AM_SET_OPTION],

660 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])

661

662 # _AM_SET_OPTIONS(OPTIONS)

663 # ----------------------------------

664 # OPTIONS is a space-separated list of Automake options.

665 AC_DEFUN([_AM_SET_OPTIONS],

666 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])

667

668 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])

669 # -------------------------------------------

670 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.

671 AC_DEFUN([_AM_IF_OPTION],

672 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])

673

674 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.

675 #

676 # This file is free software; the Free Software Foundation

677 # gives unlimited permission to copy and/or distribute it,

678 # with or without modifications, as long as this notice is preserved.

679

680 # AM_PROG_INSTALL_STRIP

681 # ---------------------

682 # One issue with vendor `install' (even GNU) is that you can't

683 # specify the program used to strip binaries. This is especially

684 # annoying in cross-compiling environments, where the build's strip

685 # is unlikely to handle the host's binaries.

686 # Fortunately install-sh will honor a STRIPPROG variable, so we

687 # always use install-sh in `make install-strip', and initialize

688 # STRIPPROG with the value of the STRIP variable (set by the user).

689 AC_DEFUN([AM_PROG_INSTALL_STRIP],

690 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl

691 # Installed binaries are usually stripped using `strip' when the user

692 # run `make install-strip'. However `strip' might not be the right

693 # tool to use in cross-compilation environments, therefore Automake

694 # will honor the `STRIP' environment variable to overrule this program.

695 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.

696 if test "$cross_compiling" != no; then

697 AC_CHECK_TOOL([STRIP], [strip], :)

698 fi

699 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"

700 AC_SUBST([INSTALL_STRIP_PROGRAM])])

701

702 # Check how to create a tarball. -*- Autoconf -*-

703

704 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.

705 #

706 # This file is free software; the Free Software Foundation

707 # gives unlimited permission to copy and/or distribute it,

708 # with or without modifications, as long as this notice is preserved.

709

710 # serial 2

711

712 # _AM_PROG_TAR(FORMAT)

713 # --------------------

714 # Check how to create a tarball in format FORMAT.

715 # FORMAT should be one of `v7', `ustar', or `pax'.

716 #

717 # Substitute a variable $(am__tar) that is a command

718 # writing to stdout a FORMAT-tarball containing the directory

719 # $tardir.

720 # tardir=directory && $(am__tar) > result.tar

721 #

722 # Substitute a variable $(am__untar) that extract such

723 # a tarball read from stdin.

724 # $(am__untar) < result.tar

725 AC_DEFUN([_AM_PROG_TAR],

726 [# Always define AMTAR for backward compatibility.

727 AM_MISSING_PROG([AMTAR], [tar])

728 m4_if([$1], [v7],

729 [am__tar='${AMTAR} chof - "$tardir"'; am__untar='${AMTAR} xf -'],

730 [m4_case([$1], [ustar],, [pax],,

731 [m4_fatal([Unknown tar format])])

732 AC_MSG_CHECKING([how to create a $1 tar archive])

733 # Loop over all known methods to create a tar archive until one works.

734 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'

735 _am_tools=${am_cv_prog_tar_$1-$_am_tools}

736 # Do not fold the above two line into one, because Tru64 sh and

737 # Solaris sh will not grok spaces in the rhs of `-'.

738 for _am_tool in $_am_tools

739 do

740 case $_am_tool in

741 gnutar)

742 for _am_tar in tar gnutar gtar;

743 do

744 AM_RUN_LOG([$_am_tar --version]) && break

745 done

746 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'

747 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'

748 am__untar="$_am_tar -xf -"

749 ;;

750 plaintar)

751 # Must skip GNU tar: if it does not support --format= it doesn't create

752 # ustar tarball either.

753 (tar --version) >/dev/null 2>&1 && continue

754 am__tar='tar chf - "$tardir"'

755 am__tar_='tar chf - "$tardir"'

756 am__untar='tar xf -'

757 ;;

758 pax)

759 am__tar='pax -L -x $1 -w "$tardir"'

760 am__tar_='pax -L -x $1 -w "$tardir"'

761 am__untar='pax -r'

762 ;;

763 cpio)

764 am__tar='find "$tardir" -print | cpio -o -H $1 -L'

765 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'

766 am__untar='cpio -i -H $1 -d'

767 ;;

768 none)

769 am__tar=false

770 am__tar_=false

771 am__untar=false

772 ;;

773 esac

774

775 # If the value was cached, stop now. We just wanted to have am__tar

776 # and am__untar set.

777 test -n "${am_cv_prog_tar_$1}" && break

778

779 # tar/untar a dummy directory, and stop if the command works

780 rm -rf conftest.dir

781 mkdir conftest.dir

782 echo GrepMe > conftest.dir/file

783 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])

784 rm -rf conftest.dir

785 if test -s conftest.tar; then

786 AM_RUN_LOG([$am__untar <conftest.tar])

787 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break

788 fi

789 done

790 rm -rf conftest.dir

791

792 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])

793 AC_MSG_RESULT([$am_cv_prog_tar_$1])])

794 AC_SUBST([am__tar])

795 AC_SUBST([am__untar])

796 ]) # _AM_PROG_TAR

797

798