1
# generated automatically by aclocal 1.10.2 -*- Autoconf -*-
1
# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
# 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
4
# 2005, 2006, 2007, 2008, 2009 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.
476
478
# Check to see whether a particular set of modules exists. Similar
477
479
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
480
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
481
# this or PKG_CHECK_MODULES is called, or make sure to call
482
# PKG_CHECK_EXISTS manually
481
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
482
# only at the first occurence in configure.ac, so if the first place
483
# it's called might be skipped (such as if it is within an "if", you
484
# have to call PKG_CHECK_EXISTS manually
483
485
# --------------------------------------------------------------
484
486
AC_DEFUN([PKG_CHECK_EXISTS],
485
487
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
486
488
if test -n "$PKG_CONFIG" && \
487
489
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
488
m4_ifval([$2], [$2], [:])
490
m4_default([$2], [:])
489
491
m4_ifvaln([$3], [else
494
495
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
495
496
# ---------------------------------------------
496
497
m4_define([_PKG_CONFIG],
497
[if test -n "$PKG_CONFIG"; then
498
if test -n "$$1"; then
501
PKG_CHECK_EXISTS([$3],
502
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
498
[if test -n "$$1"; then
500
elif test -n "$PKG_CONFIG"; then
501
PKG_CHECK_EXISTS([$3],
502
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
676
675
# AM_CONDITIONAL -*- Autoconf -*-
678
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
677
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
679
678
# Free Software Foundation, Inc.
681
680
# This file is free software; the Free Software Foundation
682
681
# gives unlimited permission to copy and/or distribute it,
683
682
# with or without modifications, as long as this notice is preserved.
687
686
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
688
687
# -------------------------------------
708
708
Usually this means the macro was only invoked conditionally.]])
711
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
711
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
712
712
# Free Software Foundation, Inc.
714
714
# This file is free software; the Free Software Foundation
715
715
# gives unlimited permission to copy and/or distribute it,
716
716
# with or without modifications, as long as this notice is preserved.
720
720
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
721
721
# written in clear, in which case automake, when reading aclocal.m4,
822
msvisualcpp | msvcmsys)
823
# This compiler won't grok `-c -o', but also, the minuso test has
824
# not run yet. These depmodes are late enough in the game, and
825
# so weak that their functioning should not be impacted.
826
am__obj=conftest.${OBJEXT-o}
804
# We check with `-c' and `-o' for the sake of the "dashmstdout"
805
# mode. It turns out that the SunPro C++ compiler does not properly
806
# handle `-M -o', and we need to detect this.
807
831
if depmode=$depmode \
808
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
832
source=sub/conftest.c object=$am__obj \
809
833
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
810
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
834
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
811
835
>/dev/null 2>conftest.err &&
812
836
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
813
837
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
814
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
838
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
815
839
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
816
840
# icc doesn't choke on unknown options, it will just issue warnings
817
841
# or remarks (even with -Werror). So we grep stderr for any message
875
899
# gives unlimited permission to copy and/or distribute it,
876
900
# with or without modifications, as long as this notice is preserved.
880
904
# _AM_OUTPUT_DEPENDENCY_COMMANDS
881
905
# ------------------------------
882
906
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
883
[# Autoconf 2.62 quotes --file arguments for eval, but not when files
884
# are listed without --file. Let's play safe and only enable the eval
885
# if we detect the quoting.
886
case $CONFIG_FILES in
887
*\'*) eval set x "$CONFIG_FILES" ;;
888
*) set x $CONFIG_FILES ;;
893
# Strip MF so we end up with the name of the file.
894
mf=`echo "$mf" | sed -e 's/:.*$//'`
895
# Check whether this is an Automake generated Makefile or not.
896
# We used to match only the files named `Makefile.in', but
897
# some people rename them; so instead we look at the file content.
898
# Grep'ing the first line is not enough: some people post-process
899
# each Makefile.in and add a new line on top of each file to say so.
900
# Grep'ing the whole file is not good either: AIX grep has a line
901
# limit of 2048, but all sed's we know have understand at least 4000.
902
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
903
dirpart=`AS_DIRNAME("$mf")`
907
# Extract the definition of DEPDIR, am__include, and am__quote
908
# from the Makefile without running `make'.
909
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
910
test -z "$DEPDIR" && continue
911
am__include=`sed -n 's/^am__include = //p' < "$mf"`
912
test -z "am__include" && continue
913
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
914
# When using ansi2knr, U may be empty or an underscore; expand it
915
U=`sed -n 's/^U = //p' < "$mf"`
916
# Find all dependency output files, they are included files with
917
# $(DEPDIR) in their names. We invoke sed twice because it is the
918
# simplest approach to changing $(DEPDIR) to its actual value in the
920
for file in `sed -n "
921
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
922
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
923
# Make sure the directory exists.
924
test -f "$dirpart/$file" && continue
925
fdir=`AS_DIRNAME(["$file"])`
926
AS_MKDIR_P([$dirpart/$fdir])
927
# echo "creating $dirpart/$file"
928
echo '# dummy' > "$dirpart/$file"
908
# Autoconf 2.62 quotes --file arguments for eval, but not when files
909
# are listed without --file. Let's play safe and only enable the eval
910
# if we detect the quoting.
911
case $CONFIG_FILES in
912
*\'*) eval set x "$CONFIG_FILES" ;;
913
*) set x $CONFIG_FILES ;;
918
# Strip MF so we end up with the name of the file.
919
mf=`echo "$mf" | sed -e 's/:.*$//'`
920
# Check whether this is an Automake generated Makefile or not.
921
# We used to match only the files named `Makefile.in', but
922
# some people rename them; so instead we look at the file content.
923
# Grep'ing the first line is not enough: some people post-process
924
# each Makefile.in and add a new line on top of each file to say so.
925
# Grep'ing the whole file is not good either: AIX grep has a line
926
# limit of 2048, but all sed's we know have understand at least 4000.
927
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
928
dirpart=`AS_DIRNAME("$mf")`
932
# Extract the definition of DEPDIR, am__include, and am__quote
933
# from the Makefile without running `make'.
934
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
935
test -z "$DEPDIR" && continue
936
am__include=`sed -n 's/^am__include = //p' < "$mf"`
937
test -z "am__include" && continue
938
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
939
# When using ansi2knr, U may be empty or an underscore; expand it
940
U=`sed -n 's/^U = //p' < "$mf"`
941
# Find all dependency output files, they are included files with
942
# $(DEPDIR) in their names. We invoke sed twice because it is the
943
# simplest approach to changing $(DEPDIR) to its actual value in the
945
for file in `sed -n "
946
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
947
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
948
# Make sure the directory exists.
949
test -f "$dirpart/$file" && continue
950
fdir=`AS_DIRNAME(["$file"])`
951
AS_MKDIR_P([$dirpart/$fdir])
952
# echo "creating $dirpart/$file"
953
echo '# dummy' > "$dirpart/$file"
931
957
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
959
985
# Do all the work for Automake. -*- Autoconf -*-
961
987
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
962
# 2005, 2006, 2008 Free Software Foundation, Inc.
988
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
964
990
# This file is free software; the Free Software Foundation
965
991
# gives unlimited permission to copy and/or distribute it,
966
992
# with or without modifications, as long as this notice is preserved.
970
996
# This macro actually does too much. Some checks are only needed if
971
997
# your package does certain things. But this isn't really a big deal.
1042
1068
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
1043
1069
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1044
1070
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
1045
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
1046
[_AM_PROG_TAR([v7])])])
1071
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
1072
[_AM_PROG_TAR([v7])])])
1047
1073
_AM_IF_OPTION([no-dependencies],,
1048
1074
[AC_PROVIDE_IFELSE([AC_PROG_CC],
1049
[_AM_DEPENDENCIES(CC)],
1050
[define([AC_PROG_CC],
1051
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
1075
[_AM_DEPENDENCIES(CC)],
1076
[define([AC_PROG_CC],
1077
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
1052
1078
AC_PROVIDE_IFELSE([AC_PROG_CXX],
1053
[_AM_DEPENDENCIES(CXX)],
1054
[define([AC_PROG_CXX],
1055
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
1079
[_AM_DEPENDENCIES(CXX)],
1080
[define([AC_PROG_CXX],
1081
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
1056
1082
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
1057
[_AM_DEPENDENCIES(OBJC)],
1058
[define([AC_PROG_OBJC],
1059
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
1083
[_AM_DEPENDENCIES(OBJC)],
1084
[define([AC_PROG_OBJC],
1085
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
1087
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
1088
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
1089
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
1090
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
1091
AC_CONFIG_COMMANDS_PRE(dnl
1092
[m4_provide_if([_AM_COMPILER_EXEEXT],
1093
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
1096
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
1097
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
1098
dnl mangled by Autoconf and run in a shell conditional statement.
1099
m4_define([_AC_COMPILER_EXEEXT],
1100
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
1064
1103
# When config.status generates a header, we must update the stamp-h file.
1144
1190
_am_result=none
1145
1191
# First try GNU make style include.
1146
1192
echo "include confinc" > confmf
1147
# We grep out `Entering directory' and `Leaving directory'
1148
# messages which can occur if `w' ends up in MAKEFLAGS.
1149
# In particular we don't look at `^make:' because GNU make might
1150
# be invoked under some other name (usually "gmake"), in which
1151
# case it prints its new name instead of `make'.
1152
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1193
# Ignore all kinds of additional output from `make'.
1194
case `$am_make -s -f confmf 2> /dev/null` in #(
1195
*the\ am__doit\ target*)
1157
1201
# Now try BSD make style include.
1158
1202
if test "$am__include" = "#"; then
1159
1203
echo '.include "confinc"' > confmf
1160
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1161
am__include=.include
1204
case `$am_make -s -f confmf 2> /dev/null` in #(
1205
*the\ am__doit\ target*)
1206
am__include=.include
1166
1212
AC_SUBST([am__include])
1167
1213
AC_SUBST([am__quote])
1172
1218
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
1174
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
1220
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
1175
1221
# Free Software Foundation, Inc.
1177
1223
# This file is free software; the Free Software Foundation
1178
1224
# gives unlimited permission to copy and/or distribute it,
1179
1225
# with or without modifications, as long as this notice is preserved.
1183
1229
# AM_MISSING_PROG(NAME, PROGRAM)
1184
1230
# ------------------------------
1284
1337
echo timestamp > conftest.file
1338
# Reject unsafe characters in $srcdir or the absolute working directory
1339
# name. Accept space and tab only in the latter.
1343
*[[\\\"\#\$\&\'\`$am_lf]]*)
1344
AC_MSG_ERROR([unsafe absolute working directory name]);;
1347
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1348
AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
1285
1351
# Do `set' in a subshell so we don't clobber the current shell's
1286
1352
# arguments. Must try -L first in case configure is actually a
1287
1353
# symlink; some systems play weird games with the mod time of symlinks
1288
1354
# (eg FreeBSD returns the mod time of the symlink's containing
1291
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1357
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1292
1358
if test "$[*]" = "X"; then
1293
1359
# -L didn't work.
1294
set X `ls -t $srcdir/configure conftest.file`
1360
set X `ls -t "$srcdir/configure" conftest.file`
1296
1362
rm -f conftest.file
1297
1363
if test "$[*]" != "X $srcdir/configure conftest.file" \
1344
1410
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1345
1411
AC_SUBST([INSTALL_STRIP_PROGRAM])])
1347
# Copyright (C) 2006 Free Software Foundation, Inc.
1413
# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
1349
1415
# This file is free software; the Free Software Foundation
1350
1416
# gives unlimited permission to copy and/or distribute it,
1351
1417
# with or without modifications, as long as this notice is preserved.
1353
1421
# _AM_SUBST_NOTMAKE(VARIABLE)
1354
1422
# ---------------------------
1355
1423
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1356
1424
# This macro is traced by Automake.
1357
1425
AC_DEFUN([_AM_SUBST_NOTMAKE])
1427
# AM_SUBST_NOTMAKE(VARIABLE)
1428
# ---------------------------
1429
# Public sister of _AM_SUBST_NOTMAKE.
1430
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1359
1432
# Check how to create a tarball. -*- Autoconf -*-
1361
1434
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.