12
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13
12
# PARTICULAR PURPOSE.
14
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
15
15
m4_ifndef([AC_AUTOCONF_VERSION],
16
16
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17
17
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
18
18
[m4_warning([this file was generated for autoconf 2.68.
19
19
You have another version of autoconf. It may work, but is not guaranteed to.
20
20
If you have problems, you may need to regenerate the build system entirely.
21
To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
23
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
23
# Copyright (C) 2002-2013 Free Software Foundation, Inc.
26
25
# This file is free software; the Free Software Foundation
27
26
# gives unlimited permission to copy and/or distribute it,
28
27
# with or without modifications, as long as this notice is preserved.
32
29
# AM_AUTOMAKE_VERSION(VERSION)
33
30
# ----------------------------
34
31
# Automake X.Y traces this macro to ensure aclocal.m4 has been
35
32
# generated from the m4 files accompanying Automake X.Y.
36
33
# (This private macro should not be called outside this file.)
37
34
AC_DEFUN([AM_AUTOMAKE_VERSION],
38
[am__api_version='1.11'
35
[am__api_version='1.14'
39
36
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
40
37
dnl require some minimum version. Point them to the right macro.
41
m4_if([$1], [1.11.2], [],
38
m4_if([$1], [1.14], [],
42
39
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
54
51
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
55
52
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
56
53
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
57
[AM_AUTOMAKE_VERSION([1.11.2])dnl
54
[AM_AUTOMAKE_VERSION([1.14])dnl
58
55
m4_ifndef([AC_AUTOCONF_VERSION],
59
56
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
60
57
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
62
59
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
64
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
61
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
66
63
# This file is free software; the Free Software Foundation
67
64
# gives unlimited permission to copy and/or distribute it,
68
65
# with or without modifications, as long as this notice is preserved.
72
67
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
73
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
74
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
68
# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
69
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
76
71
# Of course, Automake must honor this variable whenever it calls a
77
72
# tool from the auxiliary directory. The problem is that $srcdir (and
117
112
# AM_CONDITIONAL -*- Autoconf -*-
119
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
120
# Free Software Foundation, Inc.
114
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
122
116
# This file is free software; the Free Software Foundation
123
117
# gives unlimited permission to copy and/or distribute it,
124
118
# with or without modifications, as long as this notice is preserved.
128
120
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
129
121
# -------------------------------------
130
122
# Define a conditional.
131
123
AC_DEFUN([AM_CONDITIONAL],
133
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
134
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
124
[AC_PREREQ([2.52])dnl
125
m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
126
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
135
127
AC_SUBST([$1_TRUE])dnl
136
128
AC_SUBST([$1_FALSE])dnl
137
129
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
150
142
Usually this means the macro was only invoked conditionally.]])
153
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
154
# 2010, 2011 Free Software Foundation, Inc.
145
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
156
147
# This file is free software; the Free Software Foundation
157
148
# gives unlimited permission to copy and/or distribute it,
158
149
# with or without modifications, as long as this notice is preserved.
162
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
152
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
163
153
# written in clear, in which case automake, when reading aclocal.m4,
164
154
# will think it sees a *use*, and therefore will trigger all it's
165
155
# C support machinery. Also note that it means that autoscan, seeing
182
172
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
183
173
AC_REQUIRE([AM_DEP_TRACK])dnl
185
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
186
[$1], CXX, [depcc="$CXX" am_compiler_list=],
187
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
188
[$1], UPC, [depcc="$UPC" am_compiler_list=],
189
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
190
[depcc="$$1" am_compiler_list=])
175
m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
176
[$1], [CXX], [depcc="$CXX" am_compiler_list=],
177
[$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
178
[$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
179
[$1], [UPC], [depcc="$UPC" am_compiler_list=],
180
[$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
181
[depcc="$$1" am_compiler_list=])
192
183
AC_CACHE_CHECK([dependency style of $depcc],
193
184
[am_cv_$1_dependencies_compiler_type],
339
334
# Generate code to set up dependency tracking. -*- Autoconf -*-
341
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
342
# Free Software Foundation, Inc.
336
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
344
338
# This file is free software; the Free Software Foundation
345
339
# gives unlimited permission to copy and/or distribute it,
346
340
# with or without modifications, as long as this notice is preserved.
350
343
# _AM_OUTPUT_DEPENDENCY_COMMANDS
351
344
# ------------------------------
352
345
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
354
# Autoconf 2.62 quotes --file arguments for eval, but not when files
347
# Older Autoconf quotes --file arguments for eval, but not when files
355
348
# are listed without --file. Let's play safe and only enable the eval
356
349
# if we detect the quoting.
357
350
case $CONFIG_FILES in
378
371
# Extract the definition of DEPDIR, am__include, and am__quote
379
# from the Makefile without running `make'.
372
# from the Makefile without running 'make'.
380
373
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
381
374
test -z "$DEPDIR" && continue
382
375
am__include=`sed -n 's/^am__include = //p' < "$mf"`
383
test -z "am__include" && continue
376
test -z "$am__include" && continue
384
377
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
385
# When using ansi2knr, U may be empty or an underscore; expand it
386
U=`sed -n 's/^U = //p' < "$mf"`
387
378
# Find all dependency output files, they are included files with
388
379
# $(DEPDIR) in their names. We invoke sed twice because it is the
389
380
# simplest approach to changing $(DEPDIR) to its actual value in the
391
382
for file in `sed -n "
392
383
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
393
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
384
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
394
385
# Make sure the directory exists.
395
386
test -f "$dirpart/$file" && continue
396
387
fdir=`AS_DIRNAME(["$file"])`
419
410
# Do all the work for Automake. -*- Autoconf -*-
421
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
422
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
412
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
424
414
# This file is free software; the Free Software Foundation
425
415
# gives unlimited permission to copy and/or distribute it,
426
416
# with or without modifications, as long as this notice is preserved.
430
418
# This macro actually does too much. Some checks are only needed if
431
419
# your package does certain things. But this isn't really a big deal.
421
dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
422
m4_define([AC_PROG_CC],
423
m4_defn([AC_PROG_CC])
433
427
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
434
428
# AM_INIT_AUTOMAKE([OPTIONS])
435
429
# -----------------------------------------------
471
465
# Define the identity of the package.
472
466
dnl Distinguish between old-style and new-style calls.
474
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
468
[AC_DIAGNOSE([obsolete],
469
[$0: two- and three-arguments forms are deprecated.])
470
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
475
471
AC_SUBST([PACKAGE], [$1])dnl
476
472
AC_SUBST([VERSION], [$2])],
477
473
[_AM_SET_OPTIONS([$1])dnl
478
474
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
479
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
476
m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
480
478
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
481
479
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
482
480
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
484
482
_AM_IF_OPTION([no-define],,
485
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
486
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
483
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
484
AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
488
486
# Some tools Automake needs.
489
487
AC_REQUIRE([AM_SANITY_CHECK])dnl
490
488
AC_REQUIRE([AC_ARG_PROGRAM])dnl
491
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
492
AM_MISSING_PROG(AUTOCONF, autoconf)
493
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
494
AM_MISSING_PROG(AUTOHEADER, autoheader)
495
AM_MISSING_PROG(MAKEINFO, makeinfo)
489
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
490
AM_MISSING_PROG([AUTOCONF], [autoconf])
491
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
492
AM_MISSING_PROG([AUTOHEADER], [autoheader])
493
AM_MISSING_PROG([MAKEINFO], [makeinfo])
496
494
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
497
495
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
498
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
496
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
497
# For better backward compatibility. To be removed once Automake 1.9.x
498
# dies out for good. For more background, see:
499
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
500
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
501
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
499
502
# We need awk for the "check" target. The system "awk" is bad on
500
503
# some platforms.
501
504
AC_REQUIRE([AC_PROG_AWK])dnl
506
509
[_AM_PROG_TAR([v7])])])
507
510
_AM_IF_OPTION([no-dependencies],,
508
511
[AC_PROVIDE_IFELSE([AC_PROG_CC],
509
[_AM_DEPENDENCIES(CC)],
510
[define([AC_PROG_CC],
511
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
512
[_AM_DEPENDENCIES([CC])],
513
[m4_define([AC_PROG_CC],
514
m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
512
515
AC_PROVIDE_IFELSE([AC_PROG_CXX],
513
[_AM_DEPENDENCIES(CXX)],
514
[define([AC_PROG_CXX],
515
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
516
[_AM_DEPENDENCIES([CXX])],
517
[m4_define([AC_PROG_CXX],
518
m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
516
519
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
517
[_AM_DEPENDENCIES(OBJC)],
518
[define([AC_PROG_OBJC],
519
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
520
[_AM_DEPENDENCIES([OBJC])],
521
[m4_define([AC_PROG_OBJC],
522
m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
523
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
524
[_AM_DEPENDENCIES([OBJCXX])],
525
[m4_define([AC_PROG_OBJCXX],
526
m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
521
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
522
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
523
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
524
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
528
AC_REQUIRE([AM_SILENT_RULES])dnl
529
dnl The testsuite driver may need to know about EXEEXT, so add the
530
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
531
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
525
532
AC_CONFIG_COMMANDS_PRE(dnl
526
533
[m4_provide_if([_AM_COMPILER_EXEEXT],
527
534
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
530
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
536
# POSIX will say in a future version that running "rm -f" with no argument
537
# is OK; and we want to be able to make that assumption in our Makefile
538
# recipes. So use an aggressive probe to check that the usage we want is
539
# actually supported "in the wild" to an acceptable degree.
540
# See automake bug#10828.
541
# To make any issue more visible, cause the running configure to be aborted
542
# by default if the 'rm' program in use doesn't match our expectations; the
543
# user can still override this though.
544
if rm -f && rm -fr && rm -rf; then : OK; else
548
Your 'rm' program seems unable to run without file operands specified
549
on the command line, even when the '-f' option is present. This is contrary
550
to the behaviour of most rm programs out there, and not conforming with
551
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
553
Please tell bug-automake@gnu.org about your system, including the value
554
of your $PATH and any error possibly output before this message. This
555
can help us improve future automake versions.
558
if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
559
echo 'Configuration will proceed anyway, since you have set the' >&2
560
echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
564
Aborting the configuration process, to ensure you take notice of the issue.
566
You can download and install GNU coreutils to get an 'rm' implementation
567
that behaves properly: <http://www.gnu.org/software/coreutils/>.
569
If you want to complete the configuration process using your problematic
570
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
571
to "yes", and re-run configure.
574
AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
578
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
531
579
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
532
580
dnl mangled by Autoconf and run in a shell conditional statement.
533
581
m4_define([_AC_COMPILER_EXEEXT],
534
582
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
537
584
# When config.status generates a header, we must update the stamp-h file.
538
585
# This file resides in the same directory as the config header
539
586
# that is generated. The stamp files are numbered to have different names.
600
642
rmdir .tst 2>/dev/null
601
643
AC_SUBST([am__leading_dot])])
603
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
606
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
607
# 2011 Free Software Foundation, Inc.
609
# This file is free software; the Free Software Foundation
610
# gives unlimited permission to copy and/or distribute it,
611
# with or without modifications, as long as this notice is preserved.
615
# AM_MAINTAINER_MODE([DEFAULT-MODE])
616
# ----------------------------------
617
# Control maintainer-specific portions of Makefiles.
618
# Default is to disable them, unless `enable' is passed literally.
619
# For symmetry, `disable' may be passed as well. Anyway, the user
620
# can override the default with the --enable/--disable switch.
621
AC_DEFUN([AM_MAINTAINER_MODE],
622
[m4_case(m4_default([$1], [disable]),
623
[enable], [m4_define([am_maintainer_other], [disable])],
624
[disable], [m4_define([am_maintainer_other], [enable])],
625
[m4_define([am_maintainer_other], [enable])
626
m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
627
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
628
dnl maintainer-mode's default is 'disable' unless 'enable' is passed
629
AC_ARG_ENABLE([maintainer-mode],
630
[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
631
(and sometimes confusing) to the casual installer],
632
[USE_MAINTAINER_MODE=$enableval],
633
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
634
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
635
AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
636
MAINT=$MAINTAINER_MODE_TRUE
641
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
643
645
# Check to see how 'make' treats includes. -*- Autoconf -*-
645
# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
647
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
647
649
# This file is free software; the Free Software Foundation
648
650
# gives unlimited permission to copy and/or distribute it,
649
651
# with or without modifications, as long as this notice is preserved.
653
653
# AM_MAKE_INCLUDE()
654
654
# -----------------
655
655
# Check to see how make treats includes.
729
725
# Use eval to expand $SHELL
730
if eval "$MISSING --run true"; then
731
am_missing_run="$MISSING --run "
726
if eval "$MISSING --is-lightweight"; then
727
am_missing_run="$MISSING "
734
AC_MSG_WARN([`missing' script is too old or missing])
730
AC_MSG_WARN(['missing' script is too old or missing])
738
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
741
# This file is free software; the Free Software Foundation
742
# gives unlimited permission to copy and/or distribute it,
743
# with or without modifications, as long as this notice is preserved.
749
# Check for `mkdir -p'.
750
AC_DEFUN([AM_PROG_MKDIR_P],
751
[AC_PREREQ([2.60])dnl
752
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
753
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
754
dnl while keeping a definition of mkdir_p for backward compatibility.
755
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
756
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
757
dnl Makefile.ins that do not define MKDIR_P, so we do our own
758
dnl adjustment using top_builddir (which is defined more often than
760
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
762
[[\\/$]]* | ?:[[\\/]]*) ;;
763
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
767
734
# Helper functions for option handling. -*- Autoconf -*-
769
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
736
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
772
738
# This file is free software; the Free Software Foundation
773
739
# gives unlimited permission to copy and/or distribute it,
774
740
# with or without modifications, as long as this notice is preserved.
778
742
# _AM_MANGLE_OPTION(NAME)
779
743
# -----------------------
780
744
AC_DEFUN([_AM_MANGLE_OPTION],
798
762
AC_DEFUN([_AM_IF_OPTION],
799
763
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
765
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
767
# This file is free software; the Free Software Foundation
768
# gives unlimited permission to copy and/or distribute it,
769
# with or without modifications, as long as this notice is preserved.
773
# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
774
# to automatically call this.
775
AC_DEFUN([_AM_PROG_CC_C_O],
776
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
777
AC_REQUIRE_AUX_FILE([compile])dnl
780
[whether $CC understands -c and -o together],
782
[AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
783
# Make sure it works both with $CC and with simple cc.
784
# Following AC_PROG_CC_C_O, we do the test twice because some
785
# compilers refuse to overwrite an existing .o file with -o,
786
# though they will create one.
787
am_cv_prog_cc_c_o=yes
789
if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
790
&& test -f conftest2.$ac_objext; then
799
if test "$am_cv_prog_cc_c_o" != yes; then
800
# Losing compiler, so override with the script.
801
# FIXME: It is wrong to rewrite CC.
802
# But if we don't then we get into trouble of one sort or another.
803
# A longer-term fix would be to have automake use am__CC in this case,
804
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
805
CC="$am_aux_dir/compile $CC"
809
# For backward compatibility.
810
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
812
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
814
# This file is free software; the Free Software Foundation
815
# gives unlimited permission to copy and/or distribute it,
816
# with or without modifications, as long as this notice is preserved.
818
# AM_RUN_LOG(COMMAND)
819
# -------------------
820
# Run COMMAND, save the exit status in ac_status, and log it.
821
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
822
AC_DEFUN([AM_RUN_LOG],
823
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
824
($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
826
echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
827
(exit $ac_status); }])
801
829
# Check to make sure that the build environment is sane. -*- Autoconf -*-
803
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
804
# Free Software Foundation, Inc.
831
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
806
833
# This file is free software; the Free Software Foundation
807
834
# gives unlimited permission to copy and/or distribute it,
808
835
# with or without modifications, as long as this notice is preserved.
812
837
# AM_SANITY_CHECK
813
838
# ---------------
814
839
AC_DEFUN([AM_SANITY_CHECK],
815
840
[AC_MSG_CHECKING([whether build environment is sane])
818
echo timestamp > conftest.file
819
841
# Reject unsafe characters in $srcdir or the absolute working directory
820
842
# name. Accept space and tab only in the latter.
828
850
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
829
AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
851
AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
832
# Do `set' in a subshell so we don't clobber the current shell's
854
# Do 'set' in a subshell so we don't clobber the current shell's
833
855
# arguments. Must try -L first in case configure is actually a
834
856
# symlink; some systems play weird games with the mod time of symlinks
835
857
# (eg FreeBSD returns the mod time of the symlink's containing
838
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
839
if test "$[*]" = "X"; then
841
set X `ls -t "$srcdir/configure" conftest.file`
844
if test "$[*]" != "X $srcdir/configure conftest.file" \
845
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
847
# If neither matched, then we have a broken ls. This can happen
848
# if, for instance, CONFIG_SHELL is bash and it inherits a
849
# broken ls alias from the environment. This has actually
850
# happened. Such a system could not be considered "sane".
851
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
852
alias in your environment])
861
for am_try in 1 2; do
862
echo "timestamp, slept: $am_has_slept" > conftest.file
863
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
864
if test "$[*]" = "X"; then
866
set X `ls -t "$srcdir/configure" conftest.file`
868
if test "$[*]" != "X $srcdir/configure conftest.file" \
869
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
871
# If neither matched, then we have a broken ls. This can happen
872
# if, for instance, CONFIG_SHELL is bash and it inherits a
873
# broken ls alias from the environment. This has actually
874
# happened. Such a system could not be considered "sane".
875
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
876
alias in your environment])
878
if test "$[2]" = conftest.file || test $am_try -eq 2; then
855
885
test "$[2]" = conftest.file
861
891
AC_MSG_ERROR([newly created file is older than distributed files!
862
892
Check your system clock])
895
# If we didn't sleep, we still need to ensure time stamps of config.status and
896
# generated files are strictly newer.
898
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
902
AC_CONFIG_COMMANDS_PRE(
903
[AC_MSG_CHECKING([that generated files are newer than configure])
904
if test -n "$am_sleep_pid"; then
905
# Hide warnings about reused PIDs.
906
wait $am_sleep_pid 2>/dev/null
908
AC_MSG_RESULT([done])])
866
# Copyright (C) 2009 Free Software Foundation, Inc.
912
# Copyright (C) 2009-2013 Free Software Foundation, Inc.
868
914
# This file is free software; the Free Software Foundation
869
915
# gives unlimited permission to copy and/or distribute it,
870
916
# with or without modifications, as long as this notice is preserved.
874
918
# AM_SILENT_RULES([DEFAULT])
875
919
# --------------------------
876
920
# Enable less verbose build rules; with the default set to DEFAULT
877
# (`yes' being less verbose, `no' or empty being verbose).
921
# ("yes" being less verbose, "no" or empty being verbose).
878
922
AC_DEFUN([AM_SILENT_RULES],
879
[AC_ARG_ENABLE([silent-rules],
880
[ --enable-silent-rules less verbose build output (undo: `make V=1')
881
--disable-silent-rules verbose build output (undo: `make V=0')])
882
case $enable_silent_rules in
883
yes) AM_DEFAULT_VERBOSITY=0;;
884
no) AM_DEFAULT_VERBOSITY=1;;
885
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
923
[AC_ARG_ENABLE([silent-rules], [dnl
925
[--enable-silent-rules],
926
[less verbose build output (undo: "make V=1")])
928
[--disable-silent-rules],
929
[verbose build output (undo: "make V=0")])dnl
931
case $enable_silent_rules in @%:@ (((
932
yes) AM_DEFAULT_VERBOSITY=0;;
933
no) AM_DEFAULT_VERBOSITY=1;;
934
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
937
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
938
dnl do not support nested variable expansions.
939
dnl See automake bug#9928 and bug#10237.
941
AC_CACHE_CHECK([whether $am_make supports nested variables],
942
[am_cv_make_support_nested_variables],
943
[if AS_ECHO([['TRUE=$(BAR$(V))
949
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
950
am_cv_make_support_nested_variables=yes
952
am_cv_make_support_nested_variables=no
954
if test $am_cv_make_support_nested_variables = yes; then
955
dnl Using '$V' instead of '$(V)' breaks IRIX make.
957
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
959
AM_V=$AM_DEFAULT_VERBOSITY
960
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
963
AM_SUBST_NOTMAKE([AM_V])dnl
964
AC_SUBST([AM_DEFAULT_V])dnl
965
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
887
966
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
889
968
AC_SUBST([AM_BACKSLASH])dnl
890
969
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
893
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
972
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
895
974
# This file is free software; the Free Software Foundation
896
975
# gives unlimited permission to copy and/or distribute it,
897
976
# with or without modifications, as long as this notice is preserved.
901
978
# AM_PROG_INSTALL_STRIP
902
979
# ---------------------
903
# One issue with vendor `install' (even GNU) is that you can't
980
# One issue with vendor 'install' (even GNU) is that you can't
904
981
# specify the program used to strip binaries. This is especially
905
982
# annoying in cross-compiling environments, where the build's strip
906
983
# is unlikely to handle the host's binaries.
907
984
# Fortunately install-sh will honor a STRIPPROG variable, so we
908
# always use install-sh in `make install-strip', and initialize
985
# always use install-sh in "make install-strip", and initialize
909
986
# STRIPPROG with the value of the STRIP variable (set by the user).
910
987
AC_DEFUN([AM_PROG_INSTALL_STRIP],
911
988
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
912
# Installed binaries are usually stripped using `strip' when the user
913
# run `make install-strip'. However `strip' might not be the right
989
# Installed binaries are usually stripped using 'strip' when the user
990
# run "make install-strip". However 'strip' might not be the right
914
991
# tool to use in cross-compilation environments, therefore Automake
915
# will honor the `STRIP' environment variable to overrule this program.
916
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
992
# will honor the 'STRIP' environment variable to overrule this program.
993
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
917
994
if test "$cross_compiling" != no; then
918
995
AC_CHECK_TOOL([STRIP], [strip], :)
920
997
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
921
998
AC_SUBST([INSTALL_STRIP_PROGRAM])])
923
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
1000
# Copyright (C) 2006-2013 Free Software Foundation, Inc.
925
1002
# This file is free software; the Free Software Foundation
926
1003
# gives unlimited permission to copy and/or distribute it,
927
1004
# with or without modifications, as long as this notice is preserved.
931
1006
# _AM_SUBST_NOTMAKE(VARIABLE)
932
1007
# ---------------------------
933
1008
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
962
1035
# Substitute a variable $(am__untar) that extract such
963
1036
# a tarball read from stdin.
964
1037
# $(am__untar) < result.tar
965
1039
AC_DEFUN([_AM_PROG_TAR],
966
[# Always define AMTAR for backward compatibility.
967
AM_MISSING_PROG([AMTAR], [tar])
1040
[# Always define AMTAR for backward compatibility. Yes, it's still used
1041
# in the wild :-( We should find a proper way to deprecate it ...
1042
AC_SUBST([AMTAR], ['$${TAR-tar}'])
1044
# We'll loop over all known methods to create a tar archive until one works.
1045
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
968
1047
m4_if([$1], [v7],
969
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
970
[m4_case([$1], [ustar],, [pax],,
971
[m4_fatal([Unknown tar format])])
972
AC_MSG_CHECKING([how to create a $1 tar archive])
973
# Loop over all known methods to create a tar archive until one works.
974
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
975
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
976
# Do not fold the above two line into one, because Tru64 sh and
977
# Solaris sh will not grok spaces in the rhs of `-'.
978
for _am_tool in $_am_tools
982
for _am_tar in tar gnutar gtar;
984
AM_RUN_LOG([$_am_tar --version]) && break
986
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
987
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
988
am__untar="$_am_tar -xf -"
991
# Must skip GNU tar: if it does not support --format= it doesn't create
992
# ustar tarball either.
993
(tar --version) >/dev/null 2>&1 && continue
994
am__tar='tar chf - "$$tardir"'
995
am__tar_='tar chf - "$tardir"'
999
am__tar='pax -L -x $1 -w "$$tardir"'
1000
am__tar_='pax -L -x $1 -w "$tardir"'
1004
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1005
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1006
am__untar='cpio -i -H $1 -d'
1015
# If the value was cached, stop now. We just wanted to have am__tar
1016
# and am__untar set.
1017
test -n "${am_cv_prog_tar_$1}" && break
1019
# tar/untar a dummy directory, and stop if the command works
1022
echo GrepMe > conftest.dir/file
1023
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1025
if test -s conftest.tar; then
1026
AM_RUN_LOG([$am__untar <conftest.tar])
1027
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1032
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1033
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1048
[am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1052
[# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1053
# There is notably a 21 bits limit for the UID and the GID. In fact,
1054
# the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1056
am_max_uid=2097151 # 2^21 - 1
1057
am_max_gid=$am_max_uid
1058
# The $UID and $GID variables are not portable, so we need to resort
1059
# to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1060
# below are definitely unexpected, so allow the users to see them
1061
# (that is, avoid stderr redirection).
1062
am_uid=`id -u || echo unknown`
1063
am_gid=`id -g || echo unknown`
1064
AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1065
if test $am_uid -le $am_max_uid; then
1066
AC_MSG_RESULT([yes])
1071
AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1072
if test $am_gid -le $am_max_gid; then
1073
AC_MSG_RESULT([yes])
1082
[m4_fatal([Unknown tar format])])
1084
AC_MSG_CHECKING([how to create a $1 tar archive])
1086
# Go ahead even if we have the value already cached. We do so because we
1087
# need to set the values for the 'am__tar' and 'am__untar' variables.
1088
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1090
for _am_tool in $_am_tools; do
1093
for _am_tar in tar gnutar gtar; do
1094
AM_RUN_LOG([$_am_tar --version]) && break
1096
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1097
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1098
am__untar="$_am_tar -xf -"
1101
# Must skip GNU tar: if it does not support --format= it doesn't create
1102
# ustar tarball either.
1103
(tar --version) >/dev/null 2>&1 && continue
1104
am__tar='tar chf - "$$tardir"'
1105
am__tar_='tar chf - "$tardir"'
1106
am__untar='tar xf -'
1109
am__tar='pax -L -x $1 -w "$$tardir"'
1110
am__tar_='pax -L -x $1 -w "$tardir"'
1114
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1115
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1116
am__untar='cpio -i -H $1 -d'
1125
# If the value was cached, stop now. We just wanted to have am__tar
1126
# and am__untar set.
1127
test -n "${am_cv_prog_tar_$1}" && break
1129
# tar/untar a dummy directory, and stop if the command works.
1132
echo GrepMe > conftest.dir/file
1133
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1135
if test -s conftest.tar; then
1136
AM_RUN_LOG([$am__untar <conftest.tar])
1137
AM_RUN_LOG([cat conftest.dir/file])
1138
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1143
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1144
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1034
1146
AC_SUBST([am__tar])
1035
1147
AC_SUBST([am__untar])
1036
1148
]) # _AM_PROG_TAR
10646
10776
AM_CONDITIONAL([HAVE_FOP], [test "$have_fop" = yes])
10647
10777
]) # XORG_WITH_FOP
10779
# XORG_WITH_M4([MIN-VERSION])
10780
# ---------------------------
10781
# Minimum version: 1.19.0
10783
# This macro attempts to locate an m4 macro processor which supports
10784
# -I option and is only useful for modules relying on M4 in order to
10785
# expand macros in source code files.
10787
# Interface to module:
10788
# M4: returns the path of the m4 program found
10789
# returns the path set by the user in the environment
10791
AC_DEFUN([XORG_WITH_M4], [
10792
AC_CACHE_CHECK([for m4 that supports -I option], [ac_cv_path_M4],
10793
[AC_PATH_PROGS_FEATURE_CHECK([M4], [m4 gm4],
10794
[[$ac_path_M4 -I. /dev/null > /dev/null 2>&1 && \
10795
ac_cv_path_M4=$ac_path_M4 ac_path_M4_found=:]],
10796
[AC_MSG_ERROR([could not find m4 that supports -I option])],
10797
[$PATH:/usr/gnu/bin])])
10799
AC_SUBST([M4], [$ac_cv_path_M4])
10649
10802
# XORG_WITH_PS2PDF([DEFAULT])
10650
10803
# ----------------
10651
10804
# Minimum version: 1.6.0
11410
11564
XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wunused])
11411
11565
XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wuninitialized])
11412
11566
XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wshadow])
11413
XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
11414
11567
XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-noreturn])
11415
11568
XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-format-attribute])
11416
11569
XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wredundant-decls])
11570
XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
11418
11572
# These are currently disabled because they are noisy. They will be enabled
11419
11573
# in the future once the codebase is sufficiently modernized to silence
11420
11574
# them. For now, I don't want them to drown out the other warnings.
11421
# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
11422
11575
# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
11423
11576
# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
11577
# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
11425
11579
# Turn some warnings into errors, so we don't accidently get successful builds
11426
11580
# when there are problems that should be fixed.