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.2
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)
620
630
# --------------------
621
631
# Adds --with/without-release-string and changes the PACKAGE and
622
632
# PACKAGE_TARNAME to use "$PACKAGE{_TARNAME}-$RELEASE_VERSION". If
623
# no option is given, PACKAGE and PACKAGE_TARNAME are unchanged.
633
# no option is given, PACKAGE and PACKAGE_TARNAME are unchanged. Also
634
# defines PACKAGE_VERSION_{MAJOR,MINOR,PATCHLEVEL} for modules to use.
625
636
AC_DEFUN([XORG_RELEASE_VERSION],[
626
637
AC_ARG_WITH(release-version,
633
644
PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
634
645
AC_MSG_NOTICE([Building with package name set to $PACKAGE])
647
AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR],
648
[`echo $PACKAGE_VERSION | cut -d . -f 1`],
649
[Major version of this package])
650
PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
651
if test "x$PVM" = "x"; then
654
AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MINOR],
656
[Minor version of this package])
657
PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
658
if test "x$PVP" = "x"; then
661
AC_DEFINE_UNQUOTED([PACKAGE_VERSION_PATCHLEVEL],
663
[Patch version of this package])
638
# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
666
# Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc.
640
668
# This file is free software; the Free Software Foundation
641
669
# gives unlimited permission to copy and/or distribute it,
645
673
# ----------------------------
646
674
# Automake X.Y traces this macro to ensure aclocal.m4 has been
647
675
# generated from the m4 files accompanying Automake X.Y.
648
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], [])
650
692
# AM_SET_CURRENT_AUTOMAKE_VERSION
651
693
# -------------------------------
652
# Call AM_AUTOMAKE_VERSION so it can be traced.
694
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
653
695
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
654
696
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
655
[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)])
657
702
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
710
755
# AM_CONDITIONAL -*- Autoconf -*-
712
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
757
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
713
758
# Free Software Foundation, Inc.
715
760
# This file is free software; the Free Software Foundation
716
761
# gives unlimited permission to copy and/or distribute it,
717
762
# with or without modifications, as long as this notice is preserved.
721
766
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
722
767
# -------------------------------------
740
787
Usually this means the macro was only invoked conditionally.]])
744
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
790
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
745
791
# Free Software Foundation, Inc.
747
793
# This file is free software; the Free Software Foundation
748
794
# gives unlimited permission to copy and/or distribute it,
749
795
# with or without modifications, as long as this notice is preserved.
753
799
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
754
800
# written in clear, in which case automake, when reading aclocal.m4,
776
822
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
777
823
[$1], CXX, [depcc="$CXX" am_compiler_list=],
778
824
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
825
[$1], UPC, [depcc="$UPC" am_compiler_list=],
779
826
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
780
827
[depcc="$$1" am_compiler_list=])
918
967
# some people rename them; so instead we look at the file content.
919
968
# Grep'ing the first line is not enough: some people post-process
920
969
# each Makefile.in and add a new line on top of each file to say so.
921
# So let's grep whole file.
922
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
923
973
dirpart=`AS_DIRNAME("$mf")`
979
1029
# Do all the work for Automake. -*- Autoconf -*-
981
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
982
# Free Software Foundation, Inc.
1031
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
1032
# 2005, 2006, 2008 Free Software Foundation, Inc.
984
1034
# This file is free software; the Free Software Foundation
985
1035
# gives unlimited permission to copy and/or distribute it,
986
1036
# with or without modifications, as long as this notice is preserved.
990
1040
# This macro actually does too much. Some checks are only needed if
991
1041
# your package does certain things. But this isn't really a big deal.
1002
1052
# arguments mandatory, and then we can depend on a new Autoconf
1003
1053
# release and drop the old call support.
1004
1054
AC_DEFUN([AM_INIT_AUTOMAKE],
1005
[AC_PREREQ([2.58])dnl
1055
[AC_PREREQ([2.60])dnl
1006
1056
dnl Autoconf wants to disallow AM_ names. We explicitly allow
1007
1057
dnl the ones we care about.
1008
1058
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
1009
1059
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
1010
1060
AC_REQUIRE([AC_PROG_INSTALL])dnl
1011
# test to see if srcdir already configured
1012
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1013
test -f $srcdir/config.status; then
1014
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])
1017
1071
# test whether we have cygpath
1031
1085
AC_SUBST([PACKAGE], [$1])dnl
1032
1086
AC_SUBST([VERSION], [$2])],
1033
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
1034
1091
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
1035
1092
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
1079
1140
# our stamp files there.
1080
1141
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
1081
1142
[# Compute $1's index in $config_headers.
1082
1144
_am_stamp_count=1
1083
1145
for _am_header in $config_headers :; do
1084
1146
case $_am_header in
1147
$_am_arg | $_am_arg:* )
1088
1150
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
1091
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])
1093
1155
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
1209
1271
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
1211
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
1273
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
1212
1274
# Free Software Foundation, Inc.
1214
1276
# This file is free software; the Free Software Foundation
1215
1277
# gives unlimited permission to copy and/or distribute it,
1216
1278
# with or without modifications, as long as this notice is preserved.
1220
1282
# AM_MISSING_PROG(NAME, PROGRAM)
1221
1283
# ------------------------------
1231
1293
# If it does, set am_missing_run to use it, otherwise, to nothing.
1232
1294
AC_DEFUN([AM_MISSING_HAS_RUN],
1233
1295
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1296
AC_REQUIRE_AUX_FILE([missing])dnl
1234
1297
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1235
1298
# Use eval to expand $SHELL
1236
1299
if eval "$MISSING --run true"; then
1244
# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
1307
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1246
1309
# This file is free software; the Free Software Foundation
1247
1310
# gives unlimited permission to copy and/or distribute it,
1250
1313
# AM_PROG_MKDIR_P
1251
1314
# ---------------
1252
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
1254
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
1255
# created by `make install' are always world readable, even if the
1256
# installer happens to have an overly restrictive umask (e.g. 077).
1257
# This was a mistake. There are at least two reasons why we must not
1259
# - it causes special bits like SGID to be ignored,
1260
# - it may be too restrictive (some setups expect 775 directories).
1262
# Do not use -m 0755 and let people choose whatever they expect by
1265
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
1266
# Some implementations (such as Solaris 8's) are not thread-safe: if a
1267
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
1268
# concurrently, both version can detect that a/ is missing, but only
1269
# one can create it and the other will error out. Consequently we
1270
# restrict ourselves to GNU make (using the --version option ensures
1315
# Check for `mkdir -p'.
1272
1316
AC_DEFUN([AM_PROG_MKDIR_P],
1273
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1274
# We used to keeping the `.' as first argument, in order to
1275
# allow $(mkdir_p) to be used without argument. As in
1276
# $(mkdir_p) $(somedir)
1277
# where $(somedir) is conditionally defined. However this is wrong
1279
# 1. if the package is installed by a user who cannot write `.'
1280
# make install will fail,
1281
# 2. the above comment should most certainly read
1282
# $(mkdir_p) $(DESTDIR)$(somedir)
1283
# so it does not work when $(somedir) is undefined and
1284
# $(DESTDIR) is not.
1285
# To support the latter case, we have to write
1286
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1287
# so the `.' trick is pointless.
1288
mkdir_p='mkdir -p --'
1290
# On NextStep and OpenStep, the `mkdir' command does not
1291
# recognize any option. It will interpret all options as
1292
# directories to create, and then abort because `.' already
1294
for d in ./-p ./--version;
1296
test -d $d && rmdir $d
1298
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1299
if test -f "$ac_aux_dir/mkinstalldirs"; then
1300
mkdir_p='$(mkinstalldirs)'
1302
mkdir_p='$(install_sh) -d'
1305
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" ;;
1307
1333
# Helper functions for option handling. -*- Autoconf -*-
1414
1440
if test "$cross_compiling" != no; then
1415
1441
AC_CHECK_TOOL([STRIP], [strip], :)
1417
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1443
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1418
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])
1420
1458
# Check how to create a tarball. -*- Autoconf -*-
1422
1460
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.