~stan/ubuntu/natty/evolution-rss/688776

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Josselin Mouette
  • Date: 2009-08-26 16:14:24 UTC
  • mfrom: (1.1.7 upstream)
  • mto: (3.1.12 sid)
  • mto: This revision was merged to the branch mainline in revision 13.
  • Revision ID: james.westby@ubuntu.com-20090826161424-7t1iq1rq3lo7y15d
Tags: 0.1.4-1
* Remove useless .la file.
* New upstream release.
* Update build-dependencies.
* Enable webkit build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.10.2 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.11 -*- Autoconf -*-
2
2
 
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.
739
739
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
740
740
# ---------------------------------------------
741
741
m4_define([_PKG_CONFIG],
742
 
[if test -n "$PKG_CONFIG"; then
743
 
    if test -n "$$1"; then
744
 
        pkg_cv_[]$1="$$1"
745
 
    else
746
 
        PKG_CHECK_EXISTS([$3],
747
 
                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
748
 
                         [pkg_failed=yes])
749
 
    fi
750
 
else
751
 
        pkg_failed=untried
 
742
[if test -n "$$1"; then
 
743
    pkg_cv_[]$1="$$1"
 
744
 elif test -n "$PKG_CONFIG"; then
 
745
    PKG_CHECK_EXISTS([$3],
 
746
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
 
747
                     [pkg_failed=yes])
 
748
 else
 
749
    pkg_failed=untried
752
750
fi[]dnl
753
751
])# _PKG_CONFIG
754
752
 
792
790
if test $pkg_failed = yes; then
793
791
        _PKG_SHORT_ERRORS_SUPPORTED
794
792
        if test $_pkg_short_errors_supported = yes; then
795
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
 
793
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
796
794
        else 
797
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
 
795
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
798
796
        fi
799
797
        # Put the nasty error message in config.log where it belongs
800
798
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
841
839
# generated from the m4 files accompanying Automake X.Y.
842
840
# (This private macro should not be called outside this file.)
843
841
AC_DEFUN([AM_AUTOMAKE_VERSION],
844
 
[am__api_version='1.10'
 
842
[am__api_version='1.11'
845
843
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
846
844
dnl require some minimum version.  Point them to the right macro.
847
 
m4_if([$1], [1.10.2], [],
 
845
m4_if([$1], [1.11], [],
848
846
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
849
847
])
850
848
 
860
858
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
861
859
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
862
860
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
863
 
[AM_AUTOMAKE_VERSION([1.10.2])dnl
 
861
[AM_AUTOMAKE_VERSION([1.11])dnl
864
862
m4_ifndef([AC_AUTOCONF_VERSION],
865
863
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
866
864
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
920
918
 
921
919
# AM_CONDITIONAL                                            -*- Autoconf -*-
922
920
 
923
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
 
921
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
924
922
# Free Software Foundation, Inc.
925
923
#
926
924
# This file is free software; the Free Software Foundation
927
925
# gives unlimited permission to copy and/or distribute it,
928
926
# with or without modifications, as long as this notice is preserved.
929
927
 
930
 
# serial 8
 
928
# serial 9
931
929
 
932
930
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
933
931
# -------------------------------------
940
938
AC_SUBST([$1_FALSE])dnl
941
939
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
942
940
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
941
m4_define([_AM_COND_VALUE_$1], [$2])dnl
943
942
if $2; then
944
943
  $1_TRUE=
945
944
  $1_FALSE='#'
953
952
Usually this means the macro was only invoked conditionally.]])
954
953
fi])])
955
954
 
956
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
 
955
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
957
956
# Free Software Foundation, Inc.
958
957
#
959
958
# This file is free software; the Free Software Foundation
960
959
# gives unlimited permission to copy and/or distribute it,
961
960
# with or without modifications, as long as this notice is preserved.
962
961
 
963
 
# serial 9
 
962
# serial 10
964
963
 
965
964
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
966
965
# written in clear, in which case automake, when reading aclocal.m4,
1017
1016
  if test "$am_compiler_list" = ""; then
1018
1017
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
1019
1018
  fi
 
1019
  am__universal=false
 
1020
  m4_case([$1], [CC],
 
1021
    [case " $depcc " in #(
 
1022
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
1023
     esac],
 
1024
    [CXX],
 
1025
    [case " $depcc " in #(
 
1026
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
1027
     esac])
 
1028
 
1020
1029
  for depmode in $am_compiler_list; do
1021
1030
    # Setup a source with many dependencies, because some compilers
1022
1031
    # like to wrap large dependency lists on column 80 (with \), and
1034
1043
    done
1035
1044
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1036
1045
 
 
1046
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
1047
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
1048
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
1049
    # versions had trouble with output in subdirs
 
1050
    am__obj=sub/conftest.${OBJEXT-o}
 
1051
    am__minus_obj="-o $am__obj"
1037
1052
    case $depmode in
 
1053
    gcc)
 
1054
      # This depmode causes a compiler race in universal mode.
 
1055
      test "$am__universal" = false || continue
 
1056
      ;;
1038
1057
    nosideeffect)
1039
1058
      # after this tag, mechanisms are not by side-effect, so they'll
1040
1059
      # only be used when explicitly requested
1044
1063
        break
1045
1064
      fi
1046
1065
      ;;
 
1066
    msvisualcpp | msvcmsys)
 
1067
      # This compiler won't grok `-c -o', but also, the minuso test has
 
1068
      # not run yet.  These depmodes are late enough in the game, and
 
1069
      # so weak that their functioning should not be impacted.
 
1070
      am__obj=conftest.${OBJEXT-o}
 
1071
      am__minus_obj=
 
1072
      ;;
1047
1073
    none) break ;;
1048
1074
    esac
1049
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
1050
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
1051
 
    # handle `-M -o', and we need to detect this.
1052
1075
    if depmode=$depmode \
1053
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
1076
       source=sub/conftest.c object=$am__obj \
1054
1077
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1055
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
1078
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1056
1079
         >/dev/null 2>conftest.err &&
1057
1080
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1058
1081
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1059
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
1082
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1060
1083
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1061
1084
      # icc doesn't choke on unknown options, it will just issue warnings
1062
1085
      # or remarks (even with -Werror).  So we grep stderr for any message
1120
1143
# gives unlimited permission to copy and/or distribute it,
1121
1144
# with or without modifications, as long as this notice is preserved.
1122
1145
 
1123
 
#serial 4
 
1146
#serial 5
1124
1147
 
1125
1148
# _AM_OUTPUT_DEPENDENCY_COMMANDS
1126
1149
# ------------------------------
1127
1150
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
1128
 
[# Autoconf 2.62 quotes --file arguments for eval, but not when files
1129
 
# are listed without --file.  Let's play safe and only enable the eval
1130
 
# if we detect the quoting.
1131
 
case $CONFIG_FILES in
1132
 
*\'*) eval set x "$CONFIG_FILES" ;;
1133
 
*)   set x $CONFIG_FILES ;;
1134
 
esac
1135
 
shift
1136
 
for mf
1137
 
do
1138
 
  # Strip MF so we end up with the name of the file.
1139
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
1140
 
  # Check whether this is an Automake generated Makefile or not.
1141
 
  # We used to match only the files named `Makefile.in', but
1142
 
  # some people rename them; so instead we look at the file content.
1143
 
  # Grep'ing the first line is not enough: some people post-process
1144
 
  # each Makefile.in and add a new line on top of each file to say so.
1145
 
  # Grep'ing the whole file is not good either: AIX grep has a line
1146
 
  # limit of 2048, but all sed's we know have understand at least 4000.
1147
 
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
1148
 
    dirpart=`AS_DIRNAME("$mf")`
1149
 
  else
1150
 
    continue
1151
 
  fi
1152
 
  # Extract the definition of DEPDIR, am__include, and am__quote
1153
 
  # from the Makefile without running `make'.
1154
 
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1155
 
  test -z "$DEPDIR" && continue
1156
 
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
1157
 
  test -z "am__include" && continue
1158
 
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1159
 
  # When using ansi2knr, U may be empty or an underscore; expand it
1160
 
  U=`sed -n 's/^U = //p' < "$mf"`
1161
 
  # Find all dependency output files, they are included files with
1162
 
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
1163
 
  # simplest approach to changing $(DEPDIR) to its actual value in the
1164
 
  # expansion.
1165
 
  for file in `sed -n "
1166
 
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1167
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1168
 
    # Make sure the directory exists.
1169
 
    test -f "$dirpart/$file" && continue
1170
 
    fdir=`AS_DIRNAME(["$file"])`
1171
 
    AS_MKDIR_P([$dirpart/$fdir])
1172
 
    # echo "creating $dirpart/$file"
1173
 
    echo '# dummy' > "$dirpart/$file"
 
1151
[{
 
1152
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
1153
  # are listed without --file.  Let's play safe and only enable the eval
 
1154
  # if we detect the quoting.
 
1155
  case $CONFIG_FILES in
 
1156
  *\'*) eval set x "$CONFIG_FILES" ;;
 
1157
  *)   set x $CONFIG_FILES ;;
 
1158
  esac
 
1159
  shift
 
1160
  for mf
 
1161
  do
 
1162
    # Strip MF so we end up with the name of the file.
 
1163
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
1164
    # Check whether this is an Automake generated Makefile or not.
 
1165
    # We used to match only the files named `Makefile.in', but
 
1166
    # some people rename them; so instead we look at the file content.
 
1167
    # Grep'ing the first line is not enough: some people post-process
 
1168
    # each Makefile.in and add a new line on top of each file to say so.
 
1169
    # Grep'ing the whole file is not good either: AIX grep has a line
 
1170
    # limit of 2048, but all sed's we know have understand at least 4000.
 
1171
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
1172
      dirpart=`AS_DIRNAME("$mf")`
 
1173
    else
 
1174
      continue
 
1175
    fi
 
1176
    # Extract the definition of DEPDIR, am__include, and am__quote
 
1177
    # from the Makefile without running `make'.
 
1178
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
1179
    test -z "$DEPDIR" && continue
 
1180
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
1181
    test -z "am__include" && continue
 
1182
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
1183
    # When using ansi2knr, U may be empty or an underscore; expand it
 
1184
    U=`sed -n 's/^U = //p' < "$mf"`
 
1185
    # Find all dependency output files, they are included files with
 
1186
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
1187
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
1188
    # expansion.
 
1189
    for file in `sed -n "
 
1190
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
1191
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
1192
      # Make sure the directory exists.
 
1193
      test -f "$dirpart/$file" && continue
 
1194
      fdir=`AS_DIRNAME(["$file"])`
 
1195
      AS_MKDIR_P([$dirpart/$fdir])
 
1196
      # echo "creating $dirpart/$file"
 
1197
      echo '# dummy' > "$dirpart/$file"
 
1198
    done
1174
1199
  done
1175
 
done
 
1200
}
1176
1201
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
1177
1202
 
1178
1203
 
1204
1229
# Do all the work for Automake.                             -*- Autoconf -*-
1205
1230
 
1206
1231
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
1207
 
# 2005, 2006, 2008 Free Software Foundation, Inc.
 
1232
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
1208
1233
#
1209
1234
# This file is free software; the Free Software Foundation
1210
1235
# gives unlimited permission to copy and/or distribute it,
1211
1236
# with or without modifications, as long as this notice is preserved.
1212
1237
 
1213
 
# serial 13
 
1238
# serial 16
1214
1239
 
1215
1240
# This macro actually does too much.  Some checks are only needed if
1216
1241
# your package does certain things.  But this isn't really a big deal.
1227
1252
# arguments mandatory, and then we can depend on a new Autoconf
1228
1253
# release and drop the old call support.
1229
1254
AC_DEFUN([AM_INIT_AUTOMAKE],
1230
 
[AC_PREREQ([2.60])dnl
 
1255
[AC_PREREQ([2.62])dnl
1231
1256
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
1232
1257
dnl the ones we care about.
1233
1258
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
1278
1303
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
1279
1304
AM_MISSING_PROG(AUTOHEADER, autoheader)
1280
1305
AM_MISSING_PROG(MAKEINFO, makeinfo)
1281
 
AM_PROG_INSTALL_SH
1282
 
AM_PROG_INSTALL_STRIP
 
1306
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
1307
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
1283
1308
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
1284
1309
# We need awk for the "check" target.  The system "awk" is bad on
1285
1310
# some platforms.
1287
1312
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
1288
1313
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1289
1314
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
1290
 
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
1291
 
                             [_AM_PROG_TAR([v7])])])
 
1315
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
1316
                             [_AM_PROG_TAR([v7])])])
1292
1317
_AM_IF_OPTION([no-dependencies],,
1293
1318
[AC_PROVIDE_IFELSE([AC_PROG_CC],
1294
 
                  [_AM_DEPENDENCIES(CC)],
1295
 
                  [define([AC_PROG_CC],
1296
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
1319
                  [_AM_DEPENDENCIES(CC)],
 
1320
                  [define([AC_PROG_CC],
 
1321
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
1297
1322
AC_PROVIDE_IFELSE([AC_PROG_CXX],
1298
 
                  [_AM_DEPENDENCIES(CXX)],
1299
 
                  [define([AC_PROG_CXX],
1300
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
1323
                  [_AM_DEPENDENCIES(CXX)],
 
1324
                  [define([AC_PROG_CXX],
 
1325
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
1301
1326
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
1302
 
                  [_AM_DEPENDENCIES(OBJC)],
1303
 
                  [define([AC_PROG_OBJC],
1304
 
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
1305
 
])
1306
 
])
 
1327
                  [_AM_DEPENDENCIES(OBJC)],
 
1328
                  [define([AC_PROG_OBJC],
 
1329
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
1330
])
 
1331
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
 
1332
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
 
1333
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
 
1334
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
1335
AC_CONFIG_COMMANDS_PRE(dnl
 
1336
[m4_provide_if([_AM_COMPILER_EXEEXT],
 
1337
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
 
1338
])
 
1339
 
 
1340
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 
1341
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
 
1342
dnl mangled by Autoconf and run in a shell conditional statement.
 
1343
m4_define([_AC_COMPILER_EXEEXT],
 
1344
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
1307
1345
 
1308
1346
 
1309
1347
# When config.status generates a header, we must update the stamp-h file.
1327
1365
done
1328
1366
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
1329
1367
 
1330
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
1368
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
1331
1369
#
1332
1370
# This file is free software; the Free Software Foundation
1333
1371
# gives unlimited permission to copy and/or distribute it,
1338
1376
# Define $install_sh.
1339
1377
AC_DEFUN([AM_PROG_INSTALL_SH],
1340
1378
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1341
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
1379
if test x"${install_sh}" != xset; then
 
1380
  case $am_aux_dir in
 
1381
  *\ * | *\     *)
 
1382
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
1383
  *)
 
1384
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
1385
  esac
 
1386
fi
1342
1387
AC_SUBST(install_sh)])
1343
1388
 
1344
1389
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
1365
1410
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
1366
1411
# From Jim Meyering
1367
1412
 
1368
 
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
 
1413
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
1369
1414
# Free Software Foundation, Inc.
1370
1415
#
1371
1416
# This file is free software; the Free Software Foundation
1372
1417
# gives unlimited permission to copy and/or distribute it,
1373
1418
# with or without modifications, as long as this notice is preserved.
1374
1419
 
1375
 
# serial 4
 
1420
# serial 5
1376
1421
 
 
1422
# AM_MAINTAINER_MODE([DEFAULT-MODE])
 
1423
# ----------------------------------
 
1424
# Control maintainer-specific portions of Makefiles.
 
1425
# Default is to disable them, unless `enable' is passed literally.
 
1426
# For symmetry, `disable' may be passed as well.  Anyway, the user
 
1427
# can override the default with the --enable/--disable switch.
1377
1428
AC_DEFUN([AM_MAINTAINER_MODE],
1378
 
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
1379
 
  dnl maintainer-mode is disabled by default
1380
 
  AC_ARG_ENABLE(maintainer-mode,
1381
 
[  --enable-maintainer-mode  enable make rules and dependencies not useful
 
1429
[m4_case(m4_default([$1], [disable]),
 
1430
       [enable], [m4_define([am_maintainer_other], [disable])],
 
1431
       [disable], [m4_define([am_maintainer_other], [enable])],
 
1432
       [m4_define([am_maintainer_other], [enable])
 
1433
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
 
1434
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
 
1435
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
 
1436
  AC_ARG_ENABLE([maintainer-mode],
 
1437
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
1382
1438
                          (and sometimes confusing) to the casual installer],
1383
 
      USE_MAINTAINER_MODE=$enableval,
1384
 
      USE_MAINTAINER_MODE=no)
 
1439
      [USE_MAINTAINER_MODE=$enableval],
 
1440
      [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
1385
1441
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
1386
 
  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
 
1442
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
1387
1443
  MAINT=$MAINTAINER_MODE_TRUE
1388
 
  AC_SUBST(MAINT)dnl
 
1444
  AC_SUBST([MAINT])dnl
1389
1445
]
1390
1446
)
1391
1447
 
1393
1449
 
1394
1450
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
1395
1451
 
1396
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
1452
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
1397
1453
#
1398
1454
# This file is free software; the Free Software Foundation
1399
1455
# gives unlimited permission to copy and/or distribute it,
1400
1456
# with or without modifications, as long as this notice is preserved.
1401
1457
 
1402
 
# serial 3
 
1458
# serial 4
1403
1459
 
1404
1460
# AM_MAKE_INCLUDE()
1405
1461
# -----------------
1408
1464
[am_make=${MAKE-make}
1409
1465
cat > confinc << 'END'
1410
1466
am__doit:
1411
 
        @echo done
 
1467
        @echo this is the am__doit target
1412
1468
.PHONY: am__doit
1413
1469
END
1414
1470
# If we don't find an include directive, just comment out the code.
1418
1474
_am_result=none
1419
1475
# First try GNU make style include.
1420
1476
echo "include confinc" > confmf
1421
 
# We grep out `Entering directory' and `Leaving directory'
1422
 
# messages which can occur if `w' ends up in MAKEFLAGS.
1423
 
# In particular we don't look at `^make:' because GNU make might
1424
 
# be invoked under some other name (usually "gmake"), in which
1425
 
# case it prints its new name instead of `make'.
1426
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1427
 
   am__include=include
1428
 
   am__quote=
1429
 
   _am_result=GNU
1430
 
fi
 
1477
# Ignore all kinds of additional output from `make'.
 
1478
case `$am_make -s -f confmf 2> /dev/null` in #(
 
1479
*the\ am__doit\ target*)
 
1480
  am__include=include
 
1481
  am__quote=
 
1482
  _am_result=GNU
 
1483
  ;;
 
1484
esac
1431
1485
# Now try BSD make style include.
1432
1486
if test "$am__include" = "#"; then
1433
1487
   echo '.include "confinc"' > confmf
1434
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1435
 
      am__include=.include
1436
 
      am__quote="\""
1437
 
      _am_result=BSD
1438
 
   fi
 
1488
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
1489
   *the\ am__doit\ target*)
 
1490
     am__include=.include
 
1491
     am__quote="\""
 
1492
     _am_result=BSD
 
1493
     ;;
 
1494
   esac
1439
1495
fi
1440
1496
AC_SUBST([am__include])
1441
1497
AC_SUBST([am__quote])
1480
1536
 
1481
1537
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
1482
1538
 
1483
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
 
1539
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
1484
1540
# Free Software Foundation, Inc.
1485
1541
#
1486
1542
# This file is free software; the Free Software Foundation
1487
1543
# gives unlimited permission to copy and/or distribute it,
1488
1544
# with or without modifications, as long as this notice is preserved.
1489
1545
 
1490
 
# serial 5
 
1546
# serial 6
1491
1547
 
1492
1548
# AM_MISSING_PROG(NAME, PROGRAM)
1493
1549
# ------------------------------
1504
1560
AC_DEFUN([AM_MISSING_HAS_RUN],
1505
1561
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1506
1562
AC_REQUIRE_AUX_FILE([missing])dnl
1507
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1563
if test x"${MISSING+set}" != xset; then
 
1564
  case $am_aux_dir in
 
1565
  *\ * | *\     *)
 
1566
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
1567
  *)
 
1568
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
1569
  esac
 
1570
fi
1508
1571
# Use eval to expand $SHELL
1509
1572
if eval "$MISSING --run true"; then
1510
1573
  am_missing_run="$MISSING --run "
1575
1638
 
1576
1639
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
1577
1640
 
1578
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
1641
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
1579
1642
# Free Software Foundation, Inc.
1580
1643
#
1581
1644
# This file is free software; the Free Software Foundation
1582
1645
# gives unlimited permission to copy and/or distribute it,
1583
1646
# with or without modifications, as long as this notice is preserved.
1584
1647
 
1585
 
# serial 4
 
1648
# serial 5
1586
1649
 
1587
1650
# AM_SANITY_CHECK
1588
1651
# ---------------
1591
1654
# Just in case
1592
1655
sleep 1
1593
1656
echo timestamp > conftest.file
 
1657
# Reject unsafe characters in $srcdir or the absolute working directory
 
1658
# name.  Accept space and tab only in the latter.
 
1659
am_lf='
 
1660
'
 
1661
case `pwd` in
 
1662
  *[[\\\"\#\$\&\'\`$am_lf]]*)
 
1663
    AC_MSG_ERROR([unsafe absolute working directory name]);;
 
1664
esac
 
1665
case $srcdir in
 
1666
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
 
1667
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
 
1668
esac
 
1669
 
1594
1670
# Do `set' in a subshell so we don't clobber the current shell's
1595
1671
# arguments.  Must try -L first in case configure is actually a
1596
1672
# symlink; some systems play weird games with the mod time of symlinks
1597
1673
# (eg FreeBSD returns the mod time of the symlink's containing
1598
1674
# directory).
1599
1675
if (
1600
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1676
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1601
1677
   if test "$[*]" = "X"; then
1602
1678
      # -L didn't work.
1603
 
      set X `ls -t $srcdir/configure conftest.file`
 
1679
      set X `ls -t "$srcdir/configure" conftest.file`
1604
1680
   fi
1605
1681
   rm -f conftest.file
1606
1682
   if test "$[*]" != "X $srcdir/configure conftest.file" \
1653
1729
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1654
1730
AC_SUBST([INSTALL_STRIP_PROGRAM])])
1655
1731
 
1656
 
# Copyright (C) 2006  Free Software Foundation, Inc.
 
1732
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
1657
1733
#
1658
1734
# This file is free software; the Free Software Foundation
1659
1735
# gives unlimited permission to copy and/or distribute it,
1660
1736
# with or without modifications, as long as this notice is preserved.
1661
1737
 
 
1738
# serial 2
 
1739
 
1662
1740
# _AM_SUBST_NOTMAKE(VARIABLE)
1663
1741
# ---------------------------
1664
1742
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1665
1743
# This macro is traced by Automake.
1666
1744
AC_DEFUN([_AM_SUBST_NOTMAKE])
1667
1745
 
 
1746
# AM_SUBST_NOTMAKE(VARIABLE)
 
1747
# ---------------------------
 
1748
# Public sister of _AM_SUBST_NOTMAKE.
 
1749
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
 
1750
 
1668
1751
# Check how to create a tarball.                            -*- Autoconf -*-
1669
1752
 
1670
1753
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.