11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
14
# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
17
[m4_warning([this file was generated for autoconf 2.65.
18
You have another version of autoconf. It may work, but is not guaranteed to.
19
If you have problems, you may need to regenerate the build system entirely.
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
22
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
16
24
# This file is free software; the Free Software Foundation
17
25
# gives unlimited permission to copy and/or distribute it,
21
29
# ----------------------------
22
30
# Automake X.Y traces this macro to ensure aclocal.m4 has been
23
31
# generated from the m4 files accompanying Automake X.Y.
24
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
32
# (This private macro should not be called outside this file.)
33
AC_DEFUN([AM_AUTOMAKE_VERSION],
34
[am__api_version='1.11'
35
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
36
dnl require some minimum version. Point them to the right macro.
37
m4_if([$1], [1.11.1], [],
38
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
41
# _AM_AUTOCONF_VERSION(VERSION)
42
# -----------------------------
43
# aclocal traces this macro to find the Autoconf version.
44
# This is a private macro too. Using m4_define simplifies
45
# the logic in aclocal, which can simply ignore this definition.
46
m4_define([_AM_AUTOCONF_VERSION], [])
26
48
# AM_SET_CURRENT_AUTOMAKE_VERSION
27
49
# -------------------------------
28
# Call AM_AUTOMAKE_VERSION so it can be traced.
29
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
50
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
51
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
30
52
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
31
[AM_AUTOMAKE_VERSION([1.9.6])])
53
[AM_AUTOMAKE_VERSION([1.11.1])dnl
54
m4_ifndef([AC_AUTOCONF_VERSION],
55
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
56
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
33
58
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
116
144
Usually this means the macro was only invoked conditionally.]])
120
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
147
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
121
148
# Free Software Foundation, Inc.
123
150
# This file is free software; the Free Software Foundation
124
151
# gives unlimited permission to copy and/or distribute it,
125
152
# with or without modifications, as long as this notice is preserved.
129
156
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
130
157
# written in clear, in which case automake, when reading aclocal.m4,
258
msvisualcpp | msvcmsys)
259
# This compiler won't grok `-c -o', but also, the minuso test has
260
# not run yet. These depmodes are late enough in the game, and
261
# so weak that their functioning should not be impacted.
262
am__obj=conftest.${OBJEXT-o}
212
# We check with `-c' and `-o' for the sake of the "dashmstdout"
213
# mode. It turns out that the SunPro C++ compiler does not properly
214
# handle `-M -o', and we need to detect this.
215
267
if depmode=$depmode \
216
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
268
source=sub/conftest.c object=$am__obj \
217
269
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
218
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
270
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
219
271
>/dev/null 2>conftest.err &&
272
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
220
273
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
221
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
274
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
222
275
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
223
276
# icc doesn't choke on unknown options, it will just issue warnings
224
277
# or remarks (even with -Werror). So we grep stderr for any message
269
322
AMDEPBACKSLASH='\'
271
324
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
272
AC_SUBST([AMDEPBACKSLASH])
325
AC_SUBST([AMDEPBACKSLASH])dnl
326
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
275
329
# Generate code to set up dependency tracking. -*- Autoconf -*-
277
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
331
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
278
332
# Free Software Foundation, Inc.
280
334
# This file is free software; the Free Software Foundation
281
335
# gives unlimited permission to copy and/or distribute it,
282
336
# with or without modifications, as long as this notice is preserved.
286
340
# _AM_OUTPUT_DEPENDENCY_COMMANDS
287
341
# ------------------------------
288
342
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
289
[for mf in $CONFIG_FILES; do
290
# Strip MF so we end up with the name of the file.
291
mf=`echo "$mf" | sed -e 's/:.*$//'`
292
# Check whether this is an Automake generated Makefile or not.
293
# We used to match only the files named `Makefile.in', but
294
# some people rename them; so instead we look at the file content.
295
# Grep'ing the first line is not enough: some people post-process
296
# each Makefile.in and add a new line on top of each file to say so.
297
# So let's grep whole file.
298
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
299
dirpart=`AS_DIRNAME("$mf")`
303
# Extract the definition of DEPDIR, am__include, and am__quote
304
# from the Makefile without running `make'.
305
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
306
test -z "$DEPDIR" && continue
307
am__include=`sed -n 's/^am__include = //p' < "$mf"`
308
test -z "am__include" && continue
309
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
310
# When using ansi2knr, U may be empty or an underscore; expand it
311
U=`sed -n 's/^U = //p' < "$mf"`
312
# Find all dependency output files, they are included files with
313
# $(DEPDIR) in their names. We invoke sed twice because it is the
314
# simplest approach to changing $(DEPDIR) to its actual value in the
316
for file in `sed -n "
317
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
318
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
319
# Make sure the directory exists.
320
test -f "$dirpart/$file" && continue
321
fdir=`AS_DIRNAME(["$file"])`
322
AS_MKDIR_P([$dirpart/$fdir])
323
# echo "creating $dirpart/$file"
324
echo '# dummy' > "$dirpart/$file"
344
# Autoconf 2.62 quotes --file arguments for eval, but not when files
345
# are listed without --file. Let's play safe and only enable the eval
346
# if we detect the quoting.
347
case $CONFIG_FILES in
348
*\'*) eval set x "$CONFIG_FILES" ;;
349
*) set x $CONFIG_FILES ;;
354
# Strip MF so we end up with the name of the file.
355
mf=`echo "$mf" | sed -e 's/:.*$//'`
356
# Check whether this is an Automake generated Makefile or not.
357
# We used to match only the files named `Makefile.in', but
358
# some people rename them; so instead we look at the file content.
359
# Grep'ing the first line is not enough: some people post-process
360
# each Makefile.in and add a new line on top of each file to say so.
361
# Grep'ing the whole file is not good either: AIX grep has a line
362
# limit of 2048, but all sed's we know have understand at least 4000.
363
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
364
dirpart=`AS_DIRNAME("$mf")`
368
# Extract the definition of DEPDIR, am__include, and am__quote
369
# from the Makefile without running `make'.
370
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
371
test -z "$DEPDIR" && continue
372
am__include=`sed -n 's/^am__include = //p' < "$mf"`
373
test -z "am__include" && continue
374
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
375
# When using ansi2knr, U may be empty or an underscore; expand it
376
U=`sed -n 's/^U = //p' < "$mf"`
377
# Find all dependency output files, they are included files with
378
# $(DEPDIR) in their names. We invoke sed twice because it is the
379
# simplest approach to changing $(DEPDIR) to its actual value in the
381
for file in `sed -n "
382
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
383
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
384
# Make sure the directory exists.
385
test -f "$dirpart/$file" && continue
386
fdir=`AS_DIRNAME(["$file"])`
387
AS_MKDIR_P([$dirpart/$fdir])
388
# echo "creating $dirpart/$file"
389
echo '# dummy' > "$dirpart/$file"
327
393
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
371
437
# Do all the work for Automake. -*- Autoconf -*-
373
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
374
# Free Software Foundation, Inc.
439
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
440
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
376
442
# This file is free software; the Free Software Foundation
377
443
# gives unlimited permission to copy and/or distribute it,
378
444
# with or without modifications, as long as this notice is preserved.
382
448
# This macro actually does too much. Some checks are only needed if
383
449
# your package does certain things. But this isn't really a big deal.
394
460
# arguments mandatory, and then we can depend on a new Autoconf
395
461
# release and drop the old call support.
396
462
AC_DEFUN([AM_INIT_AUTOMAKE],
397
[AC_PREREQ([2.58])dnl
463
[AC_PREREQ([2.62])dnl
398
464
dnl Autoconf wants to disallow AM_ names. We explicitly allow
399
465
dnl the ones we care about.
400
466
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
401
467
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
402
468
AC_REQUIRE([AC_PROG_INSTALL])dnl
403
# test to see if srcdir already configured
404
if test "`cd $srcdir && pwd`" != "`pwd`" &&
405
test -f $srcdir/config.status; then
406
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
469
if test "`cd $srcdir && pwd`" != "`pwd`"; then
470
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
471
# is not polluted with repeated "-I."
472
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
473
# test to see if srcdir already configured
474
if test -f $srcdir/config.status; then
475
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
409
479
# test whether we have cygpath
447
520
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
448
521
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
449
522
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
450
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
451
[_AM_PROG_TAR([v7])])])
523
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
524
[_AM_PROG_TAR([v7])])])
452
525
_AM_IF_OPTION([no-dependencies],,
453
526
[AC_PROVIDE_IFELSE([AC_PROG_CC],
454
[_AM_DEPENDENCIES(CC)],
455
[define([AC_PROG_CC],
456
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
527
[_AM_DEPENDENCIES(CC)],
528
[define([AC_PROG_CC],
529
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
457
530
AC_PROVIDE_IFELSE([AC_PROG_CXX],
458
[_AM_DEPENDENCIES(CXX)],
459
[define([AC_PROG_CXX],
460
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
531
[_AM_DEPENDENCIES(CXX)],
532
[define([AC_PROG_CXX],
533
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
534
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
535
[_AM_DEPENDENCIES(OBJC)],
536
[define([AC_PROG_OBJC],
537
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
539
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
540
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
541
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
542
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
543
AC_CONFIG_COMMANDS_PRE(dnl
544
[m4_provide_if([_AM_COMPILER_EXEEXT],
545
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
548
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
549
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
550
dnl mangled by Autoconf and run in a shell conditional statement.
551
m4_define([_AC_COMPILER_EXEEXT],
552
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
465
555
# When config.status generates a header, we must update the stamp-h file.
520
618
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
521
619
# From Jim Meyering
523
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
621
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
524
622
# Free Software Foundation, Inc.
526
624
# This file is free software; the Free Software Foundation
527
625
# gives unlimited permission to copy and/or distribute it,
528
626
# with or without modifications, as long as this notice is preserved.
630
# AM_MAINTAINER_MODE([DEFAULT-MODE])
631
# ----------------------------------
632
# Control maintainer-specific portions of Makefiles.
633
# Default is to disable them, unless `enable' is passed literally.
634
# For symmetry, `disable' may be passed as well. Anyway, the user
635
# can override the default with the --enable/--disable switch.
532
636
AC_DEFUN([AM_MAINTAINER_MODE],
533
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
534
dnl maintainer-mode is disabled by default
535
AC_ARG_ENABLE(maintainer-mode,
536
[ --enable-maintainer-mode enable make rules and dependencies not useful
637
[m4_case(m4_default([$1], [disable]),
638
[enable], [m4_define([am_maintainer_other], [disable])],
639
[disable], [m4_define([am_maintainer_other], [enable])],
640
[m4_define([am_maintainer_other], [enable])
641
m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
642
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
643
dnl maintainer-mode's default is 'disable' unless 'enable' is passed
644
AC_ARG_ENABLE([maintainer-mode],
645
[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
537
646
(and sometimes confusing) to the casual installer],
538
USE_MAINTAINER_MODE=$enableval,
539
USE_MAINTAINER_MODE=no)
647
[USE_MAINTAINER_MODE=$enableval],
648
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
540
649
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
541
AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
650
AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
542
651
MAINT=$MAINTAINER_MODE_TRUE
624
736
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
625
737
CC="$am_aux_dir/compile $CC"
739
dnl Make sure AC_PROG_CC is never called again, or it will override our
741
m4_define([AC_PROG_CC],
742
[m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
629
745
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
631
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
747
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
632
748
# Free Software Foundation, Inc.
634
750
# This file is free software; the Free Software Foundation
635
751
# gives unlimited permission to copy and/or distribute it,
636
752
# with or without modifications, as long as this notice is preserved.
640
756
# AM_MISSING_PROG(NAME, PROGRAM)
641
757
# ------------------------------
670
794
# AM_PROG_MKDIR_P
671
795
# ---------------
672
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
674
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
675
# created by `make install' are always world readable, even if the
676
# installer happens to have an overly restrictive umask (e.g. 077).
677
# This was a mistake. There are at least two reasons why we must not
679
# - it causes special bits like SGID to be ignored,
680
# - it may be too restrictive (some setups expect 775 directories).
682
# Do not use -m 0755 and let people choose whatever they expect by
685
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
686
# Some implementations (such as Solaris 8's) are not thread-safe: if a
687
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
688
# concurrently, both version can detect that a/ is missing, but only
689
# one can create it and the other will error out. Consequently we
690
# restrict ourselves to GNU make (using the --version option ensures
796
# Check for `mkdir -p'.
692
797
AC_DEFUN([AM_PROG_MKDIR_P],
693
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
694
# We used to keeping the `.' as first argument, in order to
695
# allow $(mkdir_p) to be used without argument. As in
696
# $(mkdir_p) $(somedir)
697
# where $(somedir) is conditionally defined. However this is wrong
699
# 1. if the package is installed by a user who cannot write `.'
700
# make install will fail,
701
# 2. the above comment should most certainly read
702
# $(mkdir_p) $(DESTDIR)$(somedir)
703
# so it does not work when $(somedir) is undefined and
705
# To support the latter case, we have to write
706
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
707
# so the `.' trick is pointless.
708
mkdir_p='mkdir -p --'
710
# On NextStep and OpenStep, the `mkdir' command does not
711
# recognize any option. It will interpret all options as
712
# directories to create, and then abort because `.' already
714
for d in ./-p ./--version;
716
test -d $d && rmdir $d
718
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
719
if test -f "$ac_aux_dir/mkinstalldirs"; then
720
mkdir_p='$(mkinstalldirs)'
722
mkdir_p='$(install_sh) -d'
725
AC_SUBST([mkdir_p])])
798
[AC_PREREQ([2.60])dnl
799
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
800
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
801
dnl while keeping a definition of mkdir_p for backward compatibility.
802
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
803
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
804
dnl Makefile.ins that do not define MKDIR_P, so we do our own
805
dnl adjustment using top_builddir (which is defined more often than
807
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
809
[[\\/$]]* | ?:[[\\/]]*) ;;
810
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
727
814
# Helper functions for option handling. -*- Autoconf -*-
729
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
816
# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
731
818
# This file is free software; the Free Software Foundation
732
819
# gives unlimited permission to copy and/or distribute it,
733
820
# with or without modifications, as long as this notice is preserved.
737
824
# _AM_MANGLE_OPTION(NAME)
738
825
# -----------------------
757
844
AC_DEFUN([_AM_IF_OPTION],
758
845
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
760
# Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2005
847
# Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2005, 2006
761
848
# Free Software Foundation, Inc.
763
850
# This file is free software; the Free Software Foundation
764
851
# gives unlimited permission to copy and/or distribute it,
765
852
# with or without modifications, as long as this notice is preserved.
769
856
AC_DEFUN([AM_C_PROTOTYPES],
770
857
[AC_REQUIRE([AC_C_PROTOTYPES])
776
863
# Ensure some checks needed by ansi2knr itself.
777
864
AC_REQUIRE([AC_HEADER_STDC])
778
AC_CHECK_HEADERS(string.h)
780
AC_SUBST(ANSI2KNR)dnl
865
AC_CHECK_HEADERS([string.h])
867
AC_SUBST([ANSI2KNR])dnl
868
_AM_SUBST_NOTMAKE([ANSI2KNR])dnl
783
871
AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES])
785
873
# Check to make sure that the build environment is sane. -*- Autoconf -*-
787
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
875
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
788
876
# Free Software Foundation, Inc.
790
878
# This file is free software; the Free Software Foundation
791
879
# gives unlimited permission to copy and/or distribute it,
792
880
# with or without modifications, as long as this notice is preserved.
796
884
# AM_SANITY_CHECK
797
885
# ---------------
802
890
echo timestamp > conftest.file
891
# Reject unsafe characters in $srcdir or the absolute working directory
892
# name. Accept space and tab only in the latter.
896
*[[\\\"\#\$\&\'\`$am_lf]]*)
897
AC_MSG_ERROR([unsafe absolute working directory name]);;
900
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
901
AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
803
904
# Do `set' in a subshell so we don't clobber the current shell's
804
905
# arguments. Must try -L first in case configure is actually a
805
906
# symlink; some systems play weird games with the mod time of symlinks
806
907
# (eg FreeBSD returns the mod time of the symlink's containing
809
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
910
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
810
911
if test "$[*]" = "X"; then
811
912
# -L didn't work.
812
set X `ls -t $srcdir/configure conftest.file`
913
set X `ls -t "$srcdir/configure" conftest.file`
814
915
rm -f conftest.file
815
916
if test "$[*]" != "X $srcdir/configure conftest.file" \
859
960
if test "$cross_compiling" != no; then
860
961
AC_CHECK_TOOL([STRIP], [strip], :)
862
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
963
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
863
964
AC_SUBST([INSTALL_STRIP_PROGRAM])])
966
# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
968
# This file is free software; the Free Software Foundation
969
# gives unlimited permission to copy and/or distribute it,
970
# with or without modifications, as long as this notice is preserved.
974
# _AM_SUBST_NOTMAKE(VARIABLE)
975
# ---------------------------
976
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
977
# This macro is traced by Automake.
978
AC_DEFUN([_AM_SUBST_NOTMAKE])
980
# AM_SUBST_NOTMAKE(VARIABLE)
981
# ---------------------------
982
# Public sister of _AM_SUBST_NOTMAKE.
983
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
865
985
# Check how to create a tarball. -*- Autoconf -*-
867
987
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.