1
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
1
# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
# 2005 Free Software Foundation, Inc.
4
# 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
m4_if(AC_AUTOCONF_VERSION, [2.61],,
17
[m4_warning([this file was generated for autoconf 2.61.
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'.])])
14
22
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
16
24
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
79
87
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
80
88
# ---------------------------------------------
81
89
m4_define([_PKG_CONFIG],
82
[if test -n "$PKG_CONFIG"; then
83
if test -n "$$1"; then
86
PKG_CHECK_EXISTS([$3],
87
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
90
[if test -n "$$1"; then
92
elif test -n "$PKG_CONFIG"; then
93
PKG_CHECK_EXISTS([$3],
94
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
132
138
if test $pkg_failed = yes; then
133
139
_PKG_SHORT_ERRORS_SUPPORTED
134
140
if test $_pkg_short_errors_supported = yes; then
135
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
141
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
137
$1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
143
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
139
145
# Put the nasty error message in config.log where it belongs
140
146
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
216
222
XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'`
217
223
XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`]
218
224
AC_MSG_CHECKING([if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}])
219
[XORG_MACROS_version=1.1.5
225
[XORG_MACROS_version=1.1.6
220
226
XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'`
221
227
XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`]
222
228
if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then
365
371
XORG_SGML_PATH=$prefix/share/sgml
368
AC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes])
374
if test x"$cross_compiling" = x"yes" ; then
377
AC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes])
370
380
AC_PATH_PROG(LINUXDOC, linuxdoc)
371
381
AC_PATH_PROG(PS2PDF, ps2pdf)
637
647
AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR],
638
648
[`echo $PACKAGE_VERSION | cut -d . -f 1`],
639
649
[Major version of this package])
640
PVM=`echo $PACKAGE_VERSION | cut -d . -f 2`
650
PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
641
651
if test "x$PVM" = "x"; then
644
654
AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MINOR],
646
656
[Minor version of this package])
647
PVP=`echo $PACKAGE_VERSION | cut -d . -f 3`
657
PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
648
658
if test "x$PVP" = "x"; then
653
663
[Patch version of this package])
656
# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
666
# Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc.
658
668
# This file is free software; the Free Software Foundation
659
669
# gives unlimited permission to copy and/or distribute it,
663
673
# ----------------------------
664
674
# Automake X.Y traces this macro to ensure aclocal.m4 has been
665
675
# generated from the m4 files accompanying Automake X.Y.
666
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
676
# (This private macro should not be called outside this file.)
677
AC_DEFUN([AM_AUTOMAKE_VERSION],
678
[am__api_version='1.10'
679
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
680
dnl require some minimum version. Point them to the right macro.
681
m4_if([$1], [1.10.1], [],
682
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
685
# _AM_AUTOCONF_VERSION(VERSION)
686
# -----------------------------
687
# aclocal traces this macro to find the Autoconf version.
688
# This is a private macro too. Using m4_define simplifies
689
# the logic in aclocal, which can simply ignore this definition.
690
m4_define([_AM_AUTOCONF_VERSION], [])
668
692
# AM_SET_CURRENT_AUTOMAKE_VERSION
669
693
# -------------------------------
670
# Call AM_AUTOMAKE_VERSION so it can be traced.
694
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
671
695
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
672
696
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
673
[AM_AUTOMAKE_VERSION([1.9.6])])
697
[AM_AUTOMAKE_VERSION([1.10.1])dnl
698
m4_ifndef([AC_AUTOCONF_VERSION],
699
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
700
_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
675
702
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
728
755
# AM_CONDITIONAL -*- Autoconf -*-
730
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
757
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
731
758
# Free Software Foundation, Inc.
733
760
# This file is free software; the Free Software Foundation
734
761
# gives unlimited permission to copy and/or distribute it,
735
762
# with or without modifications, as long as this notice is preserved.
739
766
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
740
767
# -------------------------------------
758
787
Usually this means the macro was only invoked conditionally.]])
762
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
790
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
763
791
# Free Software Foundation, Inc.
765
793
# This file is free software; the Free Software Foundation
766
794
# gives unlimited permission to copy and/or distribute it,
767
795
# with or without modifications, as long as this notice is preserved.
771
799
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
772
800
# written in clear, in which case automake, when reading aclocal.m4,
794
822
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
795
823
[$1], CXX, [depcc="$CXX" am_compiler_list=],
796
824
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
825
[$1], UPC, [depcc="$UPC" am_compiler_list=],
797
826
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
798
827
[depcc="$$1" am_compiler_list=])
936
967
# some people rename them; so instead we look at the file content.
937
968
# Grep'ing the first line is not enough: some people post-process
938
969
# each Makefile.in and add a new line on top of each file to say so.
939
# So let's grep whole file.
940
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
970
# Grep'ing the whole file is not good either: AIX grep has a line
971
# limit of 2048, but all sed's we know have understand at least 4000.
972
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
941
973
dirpart=`AS_DIRNAME("$mf")`
997
1029
# Do all the work for Automake. -*- Autoconf -*-
999
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
1000
# Free Software Foundation, Inc.
1031
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
1032
# 2005, 2006, 2008 Free Software Foundation, Inc.
1002
1034
# This file is free software; the Free Software Foundation
1003
1035
# gives unlimited permission to copy and/or distribute it,
1004
1036
# with or without modifications, as long as this notice is preserved.
1008
1040
# This macro actually does too much. Some checks are only needed if
1009
1041
# your package does certain things. But this isn't really a big deal.
1020
1052
# arguments mandatory, and then we can depend on a new Autoconf
1021
1053
# release and drop the old call support.
1022
1054
AC_DEFUN([AM_INIT_AUTOMAKE],
1023
[AC_PREREQ([2.58])dnl
1055
[AC_PREREQ([2.60])dnl
1024
1056
dnl Autoconf wants to disallow AM_ names. We explicitly allow
1025
1057
dnl the ones we care about.
1026
1058
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
1027
1059
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
1028
1060
AC_REQUIRE([AC_PROG_INSTALL])dnl
1029
# test to see if srcdir already configured
1030
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1031
test -f $srcdir/config.status; then
1032
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
1061
if test "`cd $srcdir && pwd`" != "`pwd`"; then
1062
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
1063
# is not polluted with repeated "-I."
1064
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
1065
# test to see if srcdir already configured
1066
if test -f $srcdir/config.status; then
1067
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
1035
1071
# test whether we have cygpath
1049
1085
AC_SUBST([PACKAGE], [$1])dnl
1050
1086
AC_SUBST([VERSION], [$2])],
1051
1087
[_AM_SET_OPTIONS([$1])dnl
1088
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
1089
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
1090
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
1052
1091
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
1053
1092
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
1097
1140
# our stamp files there.
1098
1141
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
1099
1142
[# Compute $1's index in $config_headers.
1100
1144
_am_stamp_count=1
1101
1145
for _am_header in $config_headers :; do
1102
1146
case $_am_header in
1147
$_am_arg | $_am_arg:* )
1106
1150
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
1109
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
1153
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
1111
1155
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
1227
1271
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
1229
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
1273
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
1230
1274
# Free Software Foundation, Inc.
1232
1276
# This file is free software; the Free Software Foundation
1233
1277
# gives unlimited permission to copy and/or distribute it,
1234
1278
# with or without modifications, as long as this notice is preserved.
1238
1282
# AM_MISSING_PROG(NAME, PROGRAM)
1239
1283
# ------------------------------
1249
1293
# If it does, set am_missing_run to use it, otherwise, to nothing.
1250
1294
AC_DEFUN([AM_MISSING_HAS_RUN],
1251
1295
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1296
AC_REQUIRE_AUX_FILE([missing])dnl
1252
1297
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1253
1298
# Use eval to expand $SHELL
1254
1299
if eval "$MISSING --run true"; then
1262
# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
1307
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1264
1309
# This file is free software; the Free Software Foundation
1265
1310
# gives unlimited permission to copy and/or distribute it,
1268
1313
# AM_PROG_MKDIR_P
1269
1314
# ---------------
1270
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
1272
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
1273
# created by `make install' are always world readable, even if the
1274
# installer happens to have an overly restrictive umask (e.g. 077).
1275
# This was a mistake. There are at least two reasons why we must not
1277
# - it causes special bits like SGID to be ignored,
1278
# - it may be too restrictive (some setups expect 775 directories).
1280
# Do not use -m 0755 and let people choose whatever they expect by
1283
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
1284
# Some implementations (such as Solaris 8's) are not thread-safe: if a
1285
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
1286
# concurrently, both version can detect that a/ is missing, but only
1287
# one can create it and the other will error out. Consequently we
1288
# restrict ourselves to GNU make (using the --version option ensures
1315
# Check for `mkdir -p'.
1290
1316
AC_DEFUN([AM_PROG_MKDIR_P],
1291
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1292
# We used to keeping the `.' as first argument, in order to
1293
# allow $(mkdir_p) to be used without argument. As in
1294
# $(mkdir_p) $(somedir)
1295
# where $(somedir) is conditionally defined. However this is wrong
1297
# 1. if the package is installed by a user who cannot write `.'
1298
# make install will fail,
1299
# 2. the above comment should most certainly read
1300
# $(mkdir_p) $(DESTDIR)$(somedir)
1301
# so it does not work when $(somedir) is undefined and
1302
# $(DESTDIR) is not.
1303
# To support the latter case, we have to write
1304
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1305
# so the `.' trick is pointless.
1306
mkdir_p='mkdir -p --'
1308
# On NextStep and OpenStep, the `mkdir' command does not
1309
# recognize any option. It will interpret all options as
1310
# directories to create, and then abort because `.' already
1312
for d in ./-p ./--version;
1314
test -d $d && rmdir $d
1316
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1317
if test -f "$ac_aux_dir/mkinstalldirs"; then
1318
mkdir_p='$(mkinstalldirs)'
1320
mkdir_p='$(install_sh) -d'
1323
AC_SUBST([mkdir_p])])
1317
[AC_PREREQ([2.60])dnl
1318
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1319
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
1320
dnl while keeping a definition of mkdir_p for backward compatibility.
1321
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
1322
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
1323
dnl Makefile.ins that do not define MKDIR_P, so we do our own
1324
dnl adjustment using top_builddir (which is defined more often than
1326
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
1328
[[\\/$]]* | ?:[[\\/]]*) ;;
1329
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1325
1333
# Helper functions for option handling. -*- Autoconf -*-
1432
1440
if test "$cross_compiling" != no; then
1433
1441
AC_CHECK_TOOL([STRIP], [strip], :)
1435
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1443
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1436
1444
AC_SUBST([INSTALL_STRIP_PROGRAM])])
1446
# Copyright (C) 2006 Free Software Foundation, Inc.
1448
# This file is free software; the Free Software Foundation
1449
# gives unlimited permission to copy and/or distribute it,
1450
# with or without modifications, as long as this notice is preserved.
1452
# _AM_SUBST_NOTMAKE(VARIABLE)
1453
# ---------------------------
1454
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1455
# This macro is traced by Automake.
1456
AC_DEFUN([_AM_SUBST_NOTMAKE])
1438
1458
# Check how to create a tarball. -*- Autoconf -*-
1440
1460
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.