~sir-rainbow/+junk/scribes-on-win

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: meek
  • Date: 2008-01-31 17:56:34 UTC
  • Revision ID: meek@meek-desktop-20080131175634-p4h9rnblnhmqp06v
Thread fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
114
114
#-----------------
115
115
glib_DEFUN([GLIB_WITH_NLS],
116
116
  dnl NLS is obligatory
117
 
  [USE_NLS=yes
 
117
  [AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
118
    USE_NLS=yes
118
119
    AC_SUBST(USE_NLS)
119
120
 
120
121
    gt_cv_have_gettext=no
963
964
    echo '# dummy' > "$dirpart/$file"
964
965
  done
965
966
done
966
 
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
967
 
 
968
 
 
969
 
# AM_OUTPUT_DEPENDENCY_COMMANDS
970
 
# -----------------------------
971
 
# This macro should only be invoked once -- use via AC_REQUIRE.
972
 
#
973
 
# This code is only required when automatic dependency tracking
974
 
# is enabled.  FIXME.  This creates each `.P' file that we will
975
 
# need in order to bootstrap the dependency handling code.
976
 
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
977
 
[AC_CONFIG_COMMANDS([depfiles],
978
 
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
979
 
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
980
 
])
981
 
 
982
 
# Do all the work for Automake.                             -*- Autoconf -*-
983
 
 
984
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
985
 
# Free Software Foundation, Inc.
986
 
#
987
 
# This file is free software; the Free Software Foundation
988
 
# gives unlimited permission to copy and/or distribute it,
989
 
# with or without modifications, as long as this notice is preserved.
990
 
 
991
 
# serial 12
992
 
 
993
 
# This macro actually does too much.  Some checks are only needed if
994
 
# your package does certain things.  But this isn't really a big deal.
995
 
 
996
 
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
997
 
# AM_INIT_AUTOMAKE([OPTIONS])
998
 
# -----------------------------------------------
999
 
# The call with PACKAGE and VERSION arguments is the old style
1000
 
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
1001
 
# and VERSION should now be passed to AC_INIT and removed from
1002
 
# the call to AM_INIT_AUTOMAKE.
1003
 
# We support both call styles for the transition.  After
1004
 
# the next Automake release, Autoconf can make the AC_INIT
1005
 
# arguments mandatory, and then we can depend on a new Autoconf
1006
 
# release and drop the old call support.
1007
 
AC_DEFUN([AM_INIT_AUTOMAKE],
1008
 
[AC_PREREQ([2.58])dnl
1009
 
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
1010
 
dnl the ones we care about.
1011
 
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
1012
 
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
1013
 
AC_REQUIRE([AC_PROG_INSTALL])dnl
1014
 
# test to see if srcdir already configured
1015
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1016
 
   test -f $srcdir/config.status; then
1017
 
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
1018
 
fi
1019
 
 
1020
 
# test whether we have cygpath
1021
 
if test -z "$CYGPATH_W"; then
1022
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
1023
 
    CYGPATH_W='cygpath -w'
1024
 
  else
1025
 
    CYGPATH_W=echo
1026
 
  fi
1027
 
fi
1028
 
AC_SUBST([CYGPATH_W])
1029
 
 
1030
 
# Define the identity of the package.
1031
 
dnl Distinguish between old-style and new-style calls.
1032
 
m4_ifval([$2],
1033
 
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
1034
 
 AC_SUBST([PACKAGE], [$1])dnl
1035
 
 AC_SUBST([VERSION], [$2])],
1036
 
[_AM_SET_OPTIONS([$1])dnl
1037
 
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
1038
 
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
1039
 
 
1040
 
_AM_IF_OPTION([no-define],,
1041
 
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
1042
 
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
1043
 
 
1044
 
# Some tools Automake needs.
1045
 
AC_REQUIRE([AM_SANITY_CHECK])dnl
1046
 
AC_REQUIRE([AC_ARG_PROGRAM])dnl
1047
 
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
1048
 
AM_MISSING_PROG(AUTOCONF, autoconf)
1049
 
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
1050
 
AM_MISSING_PROG(AUTOHEADER, autoheader)
1051
 
AM_MISSING_PROG(MAKEINFO, makeinfo)
1052
 
AM_PROG_INSTALL_SH
1053
 
AM_PROG_INSTALL_STRIP
1054
 
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
1055
 
# We need awk for the "check" target.  The system "awk" is bad on
1056
 
# some platforms.
1057
 
AC_REQUIRE([AC_PROG_AWK])dnl
1058
 
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
1059
 
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1060
 
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
1061
 
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
1062
 
                             [_AM_PROG_TAR([v7])])])
1063
 
_AM_IF_OPTION([no-dependencies],,
1064
 
[AC_PROVIDE_IFELSE([AC_PROG_CC],
1065
 
                  [_AM_DEPENDENCIES(CC)],
1066
 
                  [define([AC_PROG_CC],
1067
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
1068
 
AC_PROVIDE_IFELSE([AC_PROG_CXX],
1069
 
                  [_AM_DEPENDENCIES(CXX)],
1070
 
                  [define([AC_PROG_CXX],
1071
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
1072
 
])
1073
 
])
1074
 
 
1075
 
 
1076
 
# When config.status generates a header, we must update the stamp-h file.
1077
 
# This file resides in the same directory as the config header
1078
 
# that is generated.  The stamp files are numbered to have different names.
1079
 
 
1080
 
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
1081
 
# loop where config.status creates the headers, so we can generate
1082
 
# our stamp files there.
1083
 
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
1084
 
[# Compute $1's index in $config_headers.
1085
 
_am_stamp_count=1
1086
 
for _am_header in $config_headers :; do
1087
 
  case $_am_header in
1088
 
    $1 | $1:* )
1089
 
      break ;;
1090
 
    * )
1091
 
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1092
 
  esac
1093
 
done
1094
 
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
1095
 
 
1096
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
1097
 
#
1098
 
# This file is free software; the Free Software Foundation
1099
 
# gives unlimited permission to copy and/or distribute it,
1100
 
# with or without modifications, as long as this notice is preserved.
1101
 
 
1102
 
# AM_PROG_INSTALL_SH
1103
 
# ------------------
1104
 
# Define $install_sh.
1105
 
AC_DEFUN([AM_PROG_INSTALL_SH],
1106
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1107
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1108
 
AC_SUBST(install_sh)])
1109
 
 
1110
 
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
1111
 
#
1112
 
# This file is free software; the Free Software Foundation
1113
 
# gives unlimited permission to copy and/or distribute it,
1114
 
# with or without modifications, as long as this notice is preserved.
1115
 
 
1116
 
# serial 2
1117
 
 
1118
 
# Check whether the underlying file-system supports filenames
1119
 
# with a leading dot.  For instance MS-DOS doesn't.
1120
 
AC_DEFUN([AM_SET_LEADING_DOT],
1121
 
[rm -rf .tst 2>/dev/null
1122
 
mkdir .tst 2>/dev/null
1123
 
if test -d .tst; then
1124
 
  am__leading_dot=.
1125
 
else
1126
 
  am__leading_dot=_
1127
 
fi
1128
 
rmdir .tst 2>/dev/null
1129
 
AC_SUBST([am__leading_dot])])
1130
 
 
1131
 
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
1132
 
# From Jim Meyering
1133
 
 
1134
 
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
1135
 
# Free Software Foundation, Inc.
1136
 
#
1137
 
# This file is free software; the Free Software Foundation
1138
 
# gives unlimited permission to copy and/or distribute it,
1139
 
# with or without modifications, as long as this notice is preserved.
1140
 
 
1141
 
# serial 4
1142
 
 
1143
 
AC_DEFUN([AM_MAINTAINER_MODE],
1144
 
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
1145
 
  dnl maintainer-mode is disabled by default
1146
 
  AC_ARG_ENABLE(maintainer-mode,
1147
 
[  --enable-maintainer-mode  enable make rules and dependencies not useful
1148
 
                          (and sometimes confusing) to the casual installer],
1149
 
      USE_MAINTAINER_MODE=$enableval,
1150
 
      USE_MAINTAINER_MODE=no)
1151
 
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
1152
 
  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
1153
 
  MAINT=$MAINTAINER_MODE_TRUE
1154
 
  AC_SUBST(MAINT)dnl
1155
 
]
1156
 
)
1157
 
 
1158
 
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
1159
 
 
1160
 
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
1161
 
 
1162
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
1163
 
#
1164
 
# This file is free software; the Free Software Foundation
1165
 
# gives unlimited permission to copy and/or distribute it,
1166
 
# with or without modifications, as long as this notice is preserved.
1167
 
 
1168
 
# serial 3
1169
 
 
1170
 
# AM_MAKE_INCLUDE()
1171
 
# -----------------
1172
 
# Check to see how make treats includes.
1173
 
AC_DEFUN([AM_MAKE_INCLUDE],
1174
 
[am_make=${MAKE-make}
1175
 
cat > confinc << 'END'
1176
 
am__doit:
1177
 
        @echo done
1178
 
.PHONY: am__doit
1179
 
END
1180
 
# If we don't find an include directive, just comment out the code.
1181
 
AC_MSG_CHECKING([for style of include used by $am_make])
1182
 
am__include="#"
1183
 
am__quote=
1184
 
_am_result=none
1185
 
# First try GNU make style include.
1186
 
echo "include confinc" > confmf
1187
 
# We grep out `Entering directory' and `Leaving directory'
1188
 
# messages which can occur if `w' ends up in MAKEFLAGS.
1189
 
# In particular we don't look at `^make:' because GNU make might
1190
 
# be invoked under some other name (usually "gmake"), in which
1191
 
# case it prints its new name instead of `make'.
1192
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1193
 
   am__include=include
1194
 
   am__quote=
1195
 
   _am_result=GNU
1196
 
fi
1197
 
# Now try BSD make style include.
1198
 
if test "$am__include" = "#"; then
1199
 
   echo '.include "confinc"' > confmf
1200
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1201
 
      am__include=.include
1202
 
      am__quote="\""
1203
 
      _am_result=BSD
1204
 
   fi
1205
 
fi
1206
 
AC_SUBST([am__include])
1207
 
AC_SUBST([am__quote])
1208
 
AC_MSG_RESULT([$_am_result])
1209
 
rm -f confinc confmf
1210
 
])
1211
 
 
1212
 
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
1213
 
 
1214
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
1215
 
# Free Software Foundation, Inc.
1216
 
#
1217
 
# This file is free software; the Free Software Foundation
1218
 
# gives unlimited permission to copy and/or distribute it,
1219
 
# with or without modifications, as long as this notice is preserved.
1220
 
 
1221
 
# serial 4
1222
 
 
1223
 
# AM_MISSING_PROG(NAME, PROGRAM)
1224
 
# ------------------------------
1225
 
AC_DEFUN([AM_MISSING_PROG],
1226
 
[AC_REQUIRE([AM_MISSING_HAS_RUN])
1227
 
$1=${$1-"${am_missing_run}$2"}
1228
 
AC_SUBST($1)])
1229
 
 
1230
 
 
1231
 
# AM_MISSING_HAS_RUN
1232
 
# ------------------
1233
 
# Define MISSING if not defined so far and test if it supports --run.
1234
 
# If it does, set am_missing_run to use it, otherwise, to nothing.
1235
 
AC_DEFUN([AM_MISSING_HAS_RUN],
1236
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1237
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1238
 
# Use eval to expand $SHELL
1239
 
if eval "$MISSING --run true"; then
1240
 
  am_missing_run="$MISSING --run "
1241
 
else
1242
 
  am_missing_run=
1243
 
  AC_MSG_WARN([`missing' script is too old or missing])
1244
 
fi
1245
 
])
1246
 
 
1247
 
# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
1248
 
#
1249
 
# This file is free software; the Free Software Foundation
1250
 
# gives unlimited permission to copy and/or distribute it,
1251
 
# with or without modifications, as long as this notice is preserved.
1252
 
 
1253
 
# AM_PROG_MKDIR_P
1254
 
# ---------------
1255
 
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
1256
 
#
1257
 
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
1258
 
# created by `make install' are always world readable, even if the
1259
 
# installer happens to have an overly restrictive umask (e.g. 077).
1260
 
# This was a mistake.  There are at least two reasons why we must not
1261
 
# use `-m 0755':
1262
 
#   - it causes special bits like SGID to be ignored,
1263
 
#   - it may be too restrictive (some setups expect 775 directories).
1264
 
#
1265
 
# Do not use -m 0755 and let people choose whatever they expect by
1266
 
# setting umask.
1267
 
#
1268
 
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
1269
 
# Some implementations (such as Solaris 8's) are not thread-safe: if a
1270
 
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
1271
 
# concurrently, both version can detect that a/ is missing, but only
1272
 
# one can create it and the other will error out.  Consequently we
1273
 
# restrict ourselves to GNU make (using the --version option ensures
1274
 
# this.)
1275
 
AC_DEFUN([AM_PROG_MKDIR_P],
1276
 
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1277
 
  # We used to keeping the `.' as first argument, in order to
1278
 
  # allow $(mkdir_p) to be used without argument.  As in
1279
 
  #   $(mkdir_p) $(somedir)
1280
 
  # where $(somedir) is conditionally defined.  However this is wrong
1281
 
  # for two reasons:
1282
 
  #  1. if the package is installed by a user who cannot write `.'
1283
 
  #     make install will fail,
1284
 
  #  2. the above comment should most certainly read
1285
 
  #     $(mkdir_p) $(DESTDIR)$(somedir)
1286
 
  #     so it does not work when $(somedir) is undefined and
1287
 
  #     $(DESTDIR) is not.
1288
 
  #  To support the latter case, we have to write
1289
 
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1290
 
  #  so the `.' trick is pointless.
1291
 
  mkdir_p='mkdir -p --'
1292
 
else
1293
 
  # On NextStep and OpenStep, the `mkdir' command does not
1294
 
  # recognize any option.  It will interpret all options as
1295
 
  # directories to create, and then abort because `.' already
1296
 
  # exists.
1297
 
  for d in ./-p ./--version;
1298
 
  do
1299
 
    test -d $d && rmdir $d
1300
 
  done
1301
 
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1302
 
  if test -f "$ac_aux_dir/mkinstalldirs"; then
1303
 
    mkdir_p='$(mkinstalldirs)'
1304
 
  else
1305
 
    mkdir_p='$(install_sh) -d'
1306
 
  fi
1307
 
fi
1308
 
AC_SUBST([mkdir_p])])
1309
 
 
1310
 
# Helper functions for option handling.                     -*- Autoconf -*-
1311
 
 
1312
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
1313
 
#
1314
 
# This file is free software; the Free Software Foundation
1315
 
# gives unlimited permission to copy and/or distribute it,
1316
 
# with or without modifications, as long as this notice is preserved.
1317
 
 
1318
 
# serial 3
1319
 
 
1320
 
# _AM_MANGLE_OPTION(NAME)
1321
 
# -----------------------
1322
 
AC_DEFUN([_AM_MANGLE_OPTION],
1323
 
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1324
 
 
1325
 
# _AM_SET_OPTION(NAME)
1326
 
# ------------------------------
1327
 
# Set option NAME.  Presently that only means defining a flag for this option.
1328
 
AC_DEFUN([_AM_SET_OPTION],
1329
 
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
1330
 
 
1331
 
# _AM_SET_OPTIONS(OPTIONS)
1332
 
# ----------------------------------
1333
 
# OPTIONS is a space-separated list of Automake options.
1334
 
AC_DEFUN([_AM_SET_OPTIONS],
1335
 
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1336
 
 
1337
 
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1338
 
# -------------------------------------------
1339
 
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1340
 
AC_DEFUN([_AM_IF_OPTION],
1341
 
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1342
 
 
1343
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
1344
 
# Free Software Foundation, Inc.
1345
 
#
1346
 
# This file is free software; the Free Software Foundation
1347
 
# gives unlimited permission to copy and/or distribute it,
1348
 
# with or without modifications, as long as this notice is preserved.
1349
 
 
1350
 
# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
1351
 
# ---------------------------------------------------------------------------
1352
 
# Adds support for distributing Python modules and packages.  To
1353
 
# install modules, copy them to $(pythondir), using the python_PYTHON
1354
 
# automake variable.  To install a package with the same name as the
1355
 
# automake package, install to $(pkgpythondir), or use the
1356
 
# pkgpython_PYTHON automake variable.
1357
 
#
1358
 
# The variables $(pyexecdir) and $(pkgpyexecdir) are provided as
1359
 
# locations to install python extension modules (shared libraries).
1360
 
# Another macro is required to find the appropriate flags to compile
1361
 
# extension modules.
1362
 
#
1363
 
# If your package is configured with a different prefix to python,
1364
 
# users will have to add the install directory to the PYTHONPATH
1365
 
# environment variable, or create a .pth file (see the python
1366
 
# documentation for details).
1367
 
#
1368
 
# If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
1369
 
# cause an error if the version of python installed on the system
1370
 
# doesn't meet the requirement.  MINIMUM-VERSION should consist of
1371
 
# numbers and dots only.
1372
 
AC_DEFUN([AM_PATH_PYTHON],
1373
 
 [
1374
 
  dnl Find a Python interpreter.  Python versions prior to 1.5 are not
1375
 
  dnl supported because the default installation locations changed from
1376
 
  dnl $prefix/lib/site-python in 1.4 to $prefix/lib/python1.5/site-packages
1377
 
  dnl in 1.5.
1378
 
  m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
1379
 
                    [python python2 python2.5 python2.4 python2.3 python2.2 dnl
1380
 
python2.1 python2.0 python1.6 python1.5])
1381
 
 
1382
 
  m4_if([$1],[],[
1383
 
    dnl No version check is needed.
1384
 
    # Find any Python interpreter.
1385
 
    if test -z "$PYTHON"; then
1386
 
      AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :)
1387
 
    fi
1388
 
    am_display_PYTHON=python
1389
 
  ], [
1390
 
    dnl A version check is needed.
1391
 
    if test -n "$PYTHON"; then
1392
 
      # If the user set $PYTHON, use it and don't search something else.
1393
 
      AC_MSG_CHECKING([whether $PYTHON version >= $1])
1394
 
      AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
1395
 
                              [AC_MSG_RESULT(yes)],
1396
 
                              [AC_MSG_ERROR(too old)])
1397
 
      am_display_PYTHON=$PYTHON
1398
 
    else
1399
 
      # Otherwise, try each interpreter until we find one that satisfies
1400
 
      # VERSION.
1401
 
      AC_CACHE_CHECK([for a Python interpreter with version >= $1],
1402
 
        [am_cv_pathless_PYTHON],[
1403
 
        for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do
1404
 
          test "$am_cv_pathless_PYTHON" = none && break
1405
 
          AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break])
1406
 
        done])
1407
 
      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
1408
 
      if test "$am_cv_pathless_PYTHON" = none; then
1409
 
        PYTHON=:
1410
 
      else
1411
 
        AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
1412
 
      fi
1413
 
      am_display_PYTHON=$am_cv_pathless_PYTHON
1414
 
    fi
1415
 
  ])
1416
 
 
1417
 
  if test "$PYTHON" = :; then
1418
 
  dnl Run any user-specified action, or abort.
1419
 
    m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
1420
 
  else
1421
 
 
1422
 
  dnl Query Python for its version number.  Getting [:3] seems to be
1423
 
  dnl the best way to do this; it's what "site.py" does in the standard
1424
 
  dnl library.
1425
 
 
1426
 
  AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
1427
 
    [am_cv_python_version=`$PYTHON -c "import sys; print sys.version[[:3]]"`])
1428
 
  AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
1429
 
 
1430
 
  dnl Use the values of $prefix and $exec_prefix for the corresponding
1431
 
  dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX.  These are made
1432
 
  dnl distinct variables so they can be overridden if need be.  However,
1433
 
  dnl general consensus is that you shouldn't need this ability.
1434
 
 
1435
 
  AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
1436
 
  AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
1437
 
 
1438
 
  dnl At times (like when building shared libraries) you may want
1439
 
  dnl to know which OS platform Python thinks this is.
1440
 
 
1441
 
  AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
1442
 
    [am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`])
1443
 
  AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
1444
 
 
1445
 
 
1446
 
  dnl Set up 4 directories:
1447
 
 
1448
 
  dnl pythondir -- where to install python scripts.  This is the
1449
 
  dnl   site-packages directory, not the python standard library
1450
 
  dnl   directory like in previous automake betas.  This behavior
1451
 
  dnl   is more consistent with lispdir.m4 for example.
1452
 
  dnl Query distutils for this directory.  distutils does not exist in
1453
 
  dnl Python 1.5, so we fall back to the hardcoded directory if it
1454
 
  dnl doesn't work.
1455
 
  AC_CACHE_CHECK([for $am_display_PYTHON script directory],
1456
 
    [am_cv_python_pythondir],
1457
 
    [am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
1458
 
     echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`])
1459
 
  AC_SUBST([pythondir], [$am_cv_python_pythondir])
1460
 
 
1461
 
  dnl pkgpythondir -- $PACKAGE directory under pythondir.  Was
1462
 
  dnl   PYTHON_SITE_PACKAGE in previous betas, but this naming is
1463
 
  dnl   more consistent with the rest of automake.
1464
 
 
1465
 
  AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE])
1466
 
 
1467
 
  dnl pyexecdir -- directory for installing python extension modules
1468
 
  dnl   (shared libraries)
1469
 
  dnl Query distutils for this directory.  distutils does not exist in
1470
 
  dnl Python 1.5, so we fall back to the hardcoded directory if it
1471
 
  dnl doesn't work.
1472
 
  AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
1473
 
    [am_cv_python_pyexecdir],
1474
 
    [am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
1475
 
     echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`])
1476
 
  AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
1477
 
 
1478
 
  dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
1479
 
 
1480
 
  AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE])
1481
 
 
1482
 
  dnl Run any user-specified action.
1483
 
  $2
1484
 
  fi
1485
 
 
1486
 
])
1487
 
 
1488
 
 
1489
 
# AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
1490
 
# ---------------------------------------------------------------------------
1491
 
# Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
1492
 
# Run ACTION-IF-FALSE otherwise.
1493
 
# This test uses sys.hexversion instead of the string equivalent (first
1494
 
# word of sys.version), in order to cope with versions such as 2.2c1.
1495
 
# hexversion has been introduced in Python 1.5.2; it's probably not
1496
 
# worth to support older versions (1.5.1 was released on October 31, 1998).
1497
 
AC_DEFUN([AM_PYTHON_CHECK_VERSION],
1498
 
 [prog="import sys, string
1499
 
# split strings by '.' and convert to numeric.  Append some zeros
1500
 
# because we need at least 4 digits for the hex conversion.
1501
 
minver = map(int, string.split('$2', '.')) + [[0, 0, 0]]
1502
 
minverhex = 0
1503
 
for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[[i]]
1504
 
sys.exit(sys.hexversion < minverhex)"
1505
 
  AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
1506
 
 
1507
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
1508
 
#
1509
 
# This file is free software; the Free Software Foundation
1510
 
# gives unlimited permission to copy and/or distribute it,
1511
 
# with or without modifications, as long as this notice is preserved.
1512
 
 
1513
 
# AM_RUN_LOG(COMMAND)
1514
 
# -------------------
1515
 
# Run COMMAND, save the exit status in ac_status, and log it.
1516
 
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
1517
 
AC_DEFUN([AM_RUN_LOG],
1518
 
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
1519
 
   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
1520
 
   ac_status=$?
1521
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1522
 
   (exit $ac_status); }])
1523
 
 
1524
 
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
1525
 
 
1526
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
1527
 
# Free Software Foundation, Inc.
1528
 
#
1529
 
# This file is free software; the Free Software Foundation
1530
 
# gives unlimited permission to copy and/or distribute it,
1531
 
# with or without modifications, as long as this notice is preserved.
1532
 
 
1533
 
# serial 4
1534
 
 
1535
 
# AM_SANITY_CHECK
1536
 
# ---------------
1537
 
AC_DEFUN([AM_SANITY_CHECK],
1538
 
[AC_MSG_CHECKING([whether build environment is sane])
1539
 
# Just in case
1540
 
sleep 1
1541
 
echo timestamp > conftest.file
1542
 
# Do `set' in a subshell so we don't clobber the current shell's
1543
 
# arguments.  Must try -L first in case configure is actually a
1544
 
# symlink; some systems play weird games with the mod time of symlinks
1545
 
# (eg FreeBSD returns the mod time of the symlink's containing
1546
 
# directory).
1547
 
if (
1548
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1549
 
   if test "$[*]" = "X"; then
1550
 
      # -L didn't work.
1551
 
      set X `ls -t $srcdir/configure conftest.file`
1552
 
   fi
1553
 
   rm -f conftest.file
1554
 
   if test "$[*]" != "X $srcdir/configure conftest.file" \
1555
 
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
1556
 
 
1557
 
      # If neither matched, then we have a broken ls.  This can happen
1558
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1559
 
      # broken ls alias from the environment.  This has actually
1560
 
      # happened.  Such a system could not be considered "sane".
1561
 
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
1562
 
alias in your environment])
1563
 
   fi
1564
 
 
1565
 
   test "$[2]" = conftest.file
1566
 
   )
1567
 
then
1568
 
   # Ok.
1569
 
   :
1570
 
else
1571
 
   AC_MSG_ERROR([newly created file is older than distributed files!
1572
 
Check your system clock])
1573
 
fi
1574
 
AC_MSG_RESULT(yes)])
1575
 
 
1576
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
1577
 
#
1578
 
# This file is free software; the Free Software Foundation
1579
 
# gives unlimited permission to copy and/or distribute it,
1580
 
# with or without modifications, as long as this notice is preserved.
1581
 
 
1582
 
# AM_PROG_INSTALL_STRIP
1583
 
# ---------------------
1584
 
# One issue with vendor `install' (even GNU) is that you can't
1585
 
# specify the program used to strip binaries.  This is especially
1586
 
# annoying in cross-compiling environments, where the build's strip
1587
 
# is unlikely to handle the host's binaries.
1588
 
# Fortunately install-sh will honor a STRIPPROG variable, so we
1589
 
# always use install-sh in `make install-strip', and initialize
1590
 
# STRIPPROG with the value of the STRIP variable (set by the user).
1591
 
AC_DEFUN([AM_PROG_INSTALL_STRIP],
1592
 
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1593
 
# Installed binaries are usually stripped using `strip' when the user
1594
 
# run `make install-strip'.  However `strip' might not be the right
1595
 
# tool to use in cross-compilation environments, therefore Automake
1596
 
# will honor the `STRIP' environment variable to overrule this program.
1597
 
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1598
 
if test "$cross_compiling" != no; then
1599
 
  AC_CHECK_TOOL([STRIP], [strip], :)
1600
 
fi
1601
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1602
 
AC_SUBST([INSTALL_STRIP_PROGRAM])])
1603
 
 
1604
 
# Check how to create a tarball.                            -*- Autoconf -*-
1605
 
 
1606
 
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
1607
 
#
1608
 
# This file is free software; the Free Software Foundation
1609
 
# gives unlimited permission to copy and/or distribute it,
1610
 
# with or without modifications, as long as this notice is preserved.
1611
 
 
1612
 
# serial 2
1613
 
 
1614
 
# _AM_PROG_TAR(FORMAT)
1615
 
# --------------------
1616
 
# Check how to create a tarball in format FORMAT.
1617
 
# FORMAT should be one of `v7', `ustar', or `pax'.
1618
 
#
1619
 
# Substitute a variable $(am__tar) that is a command
1620
 
# writing to stdout a FORMAT-tarball containing the directory
1621
 
# $tardir.
1622
 
#     tardir=directory && $(am__tar) > result.tar
1623
 
#
1624
 
# Substitute a variable $(am__untar) that extract such
1625
 
# a tarball read from stdin.
1626
 
#     $(am__untar) < result.tar
1627
 
AC_DEFUN([_AM_PROG_TAR],
1628
 
[# Always define AMTAR for backward compatibility.
1629
 
AM_MISSING_PROG([AMTAR], [tar])
1630
 
m4_if([$1], [v7],
1631
 
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
1632
 
     [m4_case([$1], [ustar],, [pax],,
1633
 
              [m4_fatal([Unknown tar format])])
1634
 
AC_MSG_CHECKING([how to create a $1 tar archive])
1635
 
# Loop over all known methods to create a tar archive until one works.
1636
 
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1637
 
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1638
 
# Do not fold the above two line into one, because Tru64 sh and
1639
 
# Solaris sh will not grok spaces in the rhs of `-'.
1640
 
for _am_tool in $_am_tools
1641
 
do
1642
 
  case $_am_tool in
1643
 
  gnutar)
1644
 
    for _am_tar in tar gnutar gtar;
1645
 
    do
1646
 
      AM_RUN_LOG([$_am_tar --version]) && break
1647
 
    done
1648
 
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1649
 
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1650
 
    am__untar="$_am_tar -xf -"
1651
 
    ;;
1652
 
  plaintar)
1653
 
    # Must skip GNU tar: if it does not support --format= it doesn't create
1654
 
    # ustar tarball either.
1655
 
    (tar --version) >/dev/null 2>&1 && continue
1656
 
    am__tar='tar chf - "$$tardir"'
1657
 
    am__tar_='tar chf - "$tardir"'
1658
 
    am__untar='tar xf -'
1659
 
    ;;
1660
 
  pax)
1661
 
    am__tar='pax -L -x $1 -w "$$tardir"'
1662
 
    am__tar_='pax -L -x $1 -w "$tardir"'
1663
 
    am__untar='pax -r'
1664
 
    ;;
1665
 
  cpio)
1666
 
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1667
 
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1668
 
    am__untar='cpio -i -H $1 -d'
1669
 
    ;;
1670
 
  none)
1671
 
    am__tar=false
1672
 
    am__tar_=false
1673
 
    am__untar=false
1674
 
    ;;
1675
 
  esac
1676
 
 
1677
 
  # If the value was cached, stop now.  We just wanted to have am__tar
1678
 
  # and am__untar set.
1679
 
  test -n "${am_cv_prog_tar_$1}" && break
1680
 
 
1681
 
  # tar/untar a dummy directory, and stop if the command works
1682
 
  rm -rf conftest.dir
1683
 
  mkdir conftest.dir
1684
 
  echo GrepMe > conftest.dir/file
1685
 
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1686
 
  rm -rf conftest.dir
1687
 
  if test -s conftest.tar; then
1688
 
    AM_RUN_LOG([$am__untar <conftest.tar])
1689
 
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1690
 
  fi
1691
 
done
1692
 
rm -rf conftest.dir
1693
 
 
1694
 
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1695
 
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1696
 
AC_SUBST([am__tar])
1697
 
AC_SUBST([am__untar])
1698
 
]) # _AM_PROG_TAR
1699
 
 
1700
 
m4_include([m4/gnome-doc-utils.m4])
1701
 
m4_include([m4/intltool.m4])
 
967
])# _
 
 
b'\\ No newline at end of file'