~ubuntu-branches/ubuntu/trusty/gq/trusty

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese
  • Date: 2009-10-25 23:34:56 UTC
  • mfrom: (1.1.4 upstream) (3.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20091025233456-i794n3yg2cff930j
Tags: 1.3.4-1
* QA upload.
  + Set maintainer to Debian QA Group <packages@qa.debian.org>.
* New upstream release. (Closes: #534705).
  + Does not segfault on amd64. (Closes: #444312).
  + Remove all existing patches and change patch system to quilt.
  + Replace dpatch build-dep with quilt.
* 01_desktop_file.diff - Remove encoding and bogus categories 
  from desktop file.
* Copy in config.{sub,guess} on configure, rm them on clean.
  + Add build-dep on autotools-dev.
* Make clean not ignore errors.
* Add copyright holders and version path to GPL (GPL-2).
* Update watch file to use SF redirector. (Closes: #449749).
* Bump debhelper build-dep and compat to 5.
* Bump Standards Version to 3.8.3.
  + Menu policy transition.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.10 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005  Free Software Foundation, Inc.
 
4
# 2005, 2006  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.
13
13
 
 
14
m4_if(m4_PACKAGE_VERSION, [2.61],,
 
15
[m4_fatal([this file was generated for autoconf 2.61.
 
16
You have another version of autoconf.  If you want to use that,
 
17
you should regenerate the build system entirely.], [63])])
 
18
 
14
19
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
15
20
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
16
21
#
114
119
#-----------------
115
120
glib_DEFUN([GLIB_WITH_NLS],
116
121
  dnl NLS is obligatory
117
 
  [USE_NLS=yes
 
122
  [AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
123
    USE_NLS=yes
118
124
    AC_SUBST(USE_NLS)
119
125
 
120
126
    gt_cv_have_gettext=no
218
224
          glib_save_LIBS="$LIBS"
219
225
          LIBS="$LIBS $INTLLIBS"
220
226
          AC_CHECK_FUNCS(dcgettext)
 
227
          MSGFMT_OPTS=
 
228
          AC_MSG_CHECKING([if msgfmt accepts -c])
 
229
          GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
 
230
msgid ""
 
231
msgstr ""
 
232
"Content-Type: text/plain; charset=UTF-8\n"
 
233
"Project-Id-Version: test 1.0\n"
 
234
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
 
235
"Last-Translator: test <foo@bar.xx>\n"
 
236
"Language-Team: C <LL@li.org>\n"
 
237
"MIME-Version: 1.0\n"
 
238
"Content-Transfer-Encoding: 8bit\n"
 
239
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
 
240
          AC_SUBST(MSGFMT_OPTS)
221
241
          AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
222
242
          GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
223
243
            [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
389
409
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
390
410
glib_save_prefix="$prefix"
391
411
glib_save_exec_prefix="$exec_prefix"
 
412
glib_save_datarootdir="$datarootdir"
392
413
test "x$prefix" = xNONE && prefix=$ac_default_prefix
393
414
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
 
415
datarootdir=`eval echo "${datarootdir}"`
394
416
if test "x$CATOBJEXT" = "x.mo" ; then
395
417
  localedir=`eval echo "${libdir}/locale"`
396
418
else
398
420
fi
399
421
prefix="$glib_save_prefix"
400
422
exec_prefix="$glib_save_exec_prefix"
 
423
datarootdir="$glib_save_datarootdir"
401
424
AC_DEFINE_UNQUOTED($1, "$localedir",
402
425
  [Define the location where the catalogs will be installed])
403
426
])
410
433
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
411
434
])dnl
412
435
 
 
436
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
 
437
 
438
# Create a temporary file with TEST-FILE as its contents and pass the
 
439
# file name to PROGRAM.  Perform ACTION-IF-PASS if PROGRAM exits with
 
440
# 0 and perform ACTION-IF-FAIL for any other exit status.
 
441
AC_DEFUN([GLIB_RUN_PROG],
 
442
[cat >conftest.foo <<_ACEOF
 
443
$2
 
444
_ACEOF
 
445
if AC_RUN_LOG([$1 conftest.foo]); then
 
446
  m4_ifval([$3], [$3], [:])
 
447
m4_ifvaln([$4], [else $4])dnl
 
448
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
 
449
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
 
450
fi])
 
451
 
 
452
 
 
453
dnl Do not call GNOME_DOC_DEFINES directly.  It is split out from
 
454
dnl GNOME_DOC_INIT to allow gnome-doc-utils to bootstrap off itself.
 
455
AC_DEFUN([GNOME_DOC_DEFINES],
 
456
[
 
457
AC_ARG_WITH([help-dir],
 
458
  AC_HELP_STRING([--with-help-dir=DIR], [path to help docs]),,
 
459
  [with_help_dir='${datadir}/gnome/help'])
 
460
HELP_DIR="$with_help_dir"
 
461
AC_SUBST(HELP_DIR)
 
462
 
 
463
AC_ARG_WITH([omf-dir],
 
464
  AC_HELP_STRING([--with-omf-dir=DIR], [path to OMF files]),,
 
465
  [with_omf_dir='${datadir}/omf'])
 
466
OMF_DIR="$with_omf_dir"
 
467
AC_SUBST(OMF_DIR)
 
468
 
 
469
AC_ARG_WITH([help-formats],
 
470
  AC_HELP_STRING([--with-help-formats=FORMATS], [list of formats]),,
 
471
  [with_help_formats=''])
 
472
DOC_USER_FORMATS="$with_help_formats"
 
473
AC_SUBST(DOC_USER_FORMATS)
 
474
 
 
475
AC_ARG_ENABLE([scrollkeeper],
 
476
        [AC_HELP_STRING([--disable-scrollkeeper],
 
477
                        [do not make updates to the scrollkeeper database])],,
 
478
        enable_scrollkeeper=yes)
 
479
AM_CONDITIONAL([ENABLE_SK],[test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"])
 
480
 
 
481
AM_CONDITIONAL([HAVE_GNOME_DOC_UTILS],[test "$gdu_cv_have_gdu" = "yes"])
 
482
])
 
483
 
 
484
# GNOME_DOC_INIT ([MINIMUM-VERSION],[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
 
485
#
 
486
AC_DEFUN([GNOME_DOC_INIT],
 
487
[
 
488
ifelse([$1],,[gdu_cv_version_required=0.3.2],[gdu_cv_version_required=$1])
 
489
 
 
490
PKG_CHECK_EXISTS([gnome-doc-utils >= $gdu_cv_version_required],
 
491
        [gdu_cv_have_gdu=yes],[gdu_cv_have_gdu=no])
 
492
 
 
493
if test "$gdu_cv_have_gdu" = "yes"; then
 
494
        ifelse([$2],,[:],[$2])
 
495
else
 
496
        ifelse([$3],,[AC_MSG_ERROR([gnome-doc-utils >= $gdu_cv_version_required not found])],[$3])
 
497
fi
 
498
 
 
499
GNOME_DOC_DEFINES
 
500
])
 
501
 
413
502
 
414
503
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
415
 
# serial 35 IT_PROG_INTLTOOL
 
504
# serial 36 IT_PROG_INTLTOOL
416
505
AC_DEFUN([IT_PROG_INTLTOOL],
417
506
[AC_PREREQ([2.50])dnl
418
507
 
425
514
esac
426
515
 
427
516
if test -n "$1"; then
428
 
    AC_MSG_CHECKING(for intltool >= $1)
 
517
    AC_MSG_CHECKING([for intltool >= $1])
429
518
 
430
519
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
431
520
    INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
454
543
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
455
544
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
456
545
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
 
546
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
457
547
 
458
548
AC_SUBST(INTLTOOL_DESKTOP_RULE)
459
549
AC_SUBST(INTLTOOL_DIRECTORY_RULE)
473
563
AC_SUBST(INTLTOOL_SCHEMAS_RULE)
474
564
AC_SUBST(INTLTOOL_THEME_RULE)
475
565
AC_SUBST(INTLTOOL_SERVICE_RULE)
 
566
AC_SUBST(INTLTOOL_POLICY_RULE)
476
567
 
477
568
# Use the tools built into the package, not the ones that are installed.
478
569
AC_SUBST(INTLTOOL_EXTRACT, '$(top_builddir)/intltool-extract')
495
586
   fi
496
587
fi
497
588
 
498
 
AC_PATH_PROG(INTLTOOL_ICONV, iconv, iconv)
499
 
AC_PATH_PROG(INTLTOOL_MSGFMT, msgfmt, msgfmt)
500
 
AC_PATH_PROG(INTLTOOL_MSGMERGE, msgmerge, msgmerge)
501
 
AC_PATH_PROG(INTLTOOL_XGETTEXT, xgettext, xgettext)
502
 
 
503
589
# Substitute ALL_LINGUAS so we can use it in po/Makefile
504
590
AC_SUBST(ALL_LINGUAS)
505
 
    
 
591
 
 
592
# Set DATADIRNAME correctly if it is not set yet
 
593
# (copied from glib-gettext.m4)
 
594
if test -z "$DATADIRNAME"; then
 
595
  AC_LINK_IFELSE(
 
596
    [AC_LANG_PROGRAM([[]],
 
597
                     [[extern int _nl_msg_cat_cntr;
 
598
                       return _nl_msg_cat_cntr]])],
 
599
    [DATADIRNAME=share],
 
600
    [case $host in
 
601
    *-*-solaris*)
 
602
    dnl On Solaris, if bind_textdomain_codeset is in libc,
 
603
    dnl GNU format message catalog is always supported,
 
604
    dnl since both are added to the libc all together.
 
605
    dnl Hence, we'd like to go with DATADIRNAME=share
 
606
    dnl in this case.
 
607
    AC_CHECK_FUNC(bind_textdomain_codeset,
 
608
      [DATADIRNAME=share], [DATADIRNAME=lib])
 
609
    ;;
 
610
    *)
 
611
    [DATADIRNAME=lib]
 
612
    ;;
 
613
    esac])
 
614
fi
 
615
AC_SUBST(DATADIRNAME)
 
616
 
506
617
IT_PO_SUBDIR([po])
507
618
 
508
619
dnl The following is very similar to
525
636
for file in intltool-extract intltool-merge intltool-update; do
526
637
  sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
527
638
      -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
528
 
      -e "s|@INTLTOOL_ICONV@|${INTLTOOL_ICONV}|g" \
529
 
      -e "s|@INTLTOOL_MSGFMT@|${INTLTOOL_MSGFMT}|g" \
530
 
      -e "s|@INTLTOOL_MSGMERGE@|${INTLTOOL_MSGMERGE}|g" \
531
 
      -e "s|@INTLTOOL_XGETTEXT@|${INTLTOOL_XGETTEXT}|g" \
532
639
      -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
533
640
        < ${ac_aux_dir}/${file}.in > ${file}.out
534
641
  if cmp -s ${file} ${file}.out 2>/dev/null; then
543
650
],
544
651
[INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'
545
652
prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir" 
546
 
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' INTLTOOL_ICONV='${INTLTOOL_ICONV}'
547
 
INTLTOOL_MSGFMT='${INTLTOOL_MSGFMT}' INTLTOOL_MSGMERGE='${INTLTOOL_MSGMERGE}'
548
 
INTLTOOL_XGETTEXT='${INTLTOOL_XGETTEXT}'])
 
653
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}'])
549
654
 
550
655
])
551
656
 
839
944
 
840
945
_PKG_TEXT
841
946
])],
842
 
                [$4])
 
947
                [AC_MSG_RESULT([no])
 
948
                $4])
843
949
elif test $pkg_failed = untried; then
844
950
        ifelse([$4], , [AC_MSG_FAILURE(dnl
845
951
[The pkg-config script could not be found or is too old.  Make sure it
848
954
 
849
955
_PKG_TEXT
850
956
 
851
 
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
 
957
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
852
958
                [$4])
853
959
else
854
960
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
858
964
fi[]dnl
859
965
])# PKG_CHECK_MODULES
860
966
 
861
 
# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
 
967
# Copyright (C) 2002, 2003, 2005, 2006  Free Software Foundation, Inc.
862
968
#
863
969
# This file is free software; the Free Software Foundation
864
970
# gives unlimited permission to copy and/or distribute it,
868
974
# ----------------------------
869
975
# Automake X.Y traces this macro to ensure aclocal.m4 has been
870
976
# generated from the m4 files accompanying Automake X.Y.
871
 
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
 
977
# (This private macro should not be called outside this file.)
 
978
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
979
[am__api_version='1.10'
 
980
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
981
dnl require some minimum version.  Point them to the right macro.
 
982
m4_if([$1], [1.10], [],
 
983
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
984
])
 
985
 
 
986
# _AM_AUTOCONF_VERSION(VERSION)
 
987
# -----------------------------
 
988
# aclocal traces this macro to find the Autoconf version.
 
989
# This is a private macro too.  Using m4_define simplifies
 
990
# the logic in aclocal, which can simply ignore this definition.
 
991
m4_define([_AM_AUTOCONF_VERSION], [])
872
992
 
873
993
# AM_SET_CURRENT_AUTOMAKE_VERSION
874
994
# -------------------------------
875
 
# Call AM_AUTOMAKE_VERSION so it can be traced.
 
995
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
876
996
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
877
997
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
878
 
         [AM_AUTOMAKE_VERSION([1.9.6])])
 
998
[AM_AUTOMAKE_VERSION([1.10])dnl
 
999
_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
879
1000
 
880
1001
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
881
1002
 
932
1053
 
933
1054
# AM_CONDITIONAL                                            -*- Autoconf -*-
934
1055
 
935
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
 
1056
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
936
1057
# Free Software Foundation, Inc.
937
1058
#
938
1059
# This file is free software; the Free Software Foundation
939
1060
# gives unlimited permission to copy and/or distribute it,
940
1061
# with or without modifications, as long as this notice is preserved.
941
1062
 
942
 
# serial 7
 
1063
# serial 8
943
1064
 
944
1065
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
945
1066
# -------------------------------------
948
1069
[AC_PREREQ(2.52)dnl
949
1070
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
950
1071
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
951
 
AC_SUBST([$1_TRUE])
952
 
AC_SUBST([$1_FALSE])
 
1072
AC_SUBST([$1_TRUE])dnl
 
1073
AC_SUBST([$1_FALSE])dnl
 
1074
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
1075
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
953
1076
if $2; then
954
1077
  $1_TRUE=
955
1078
  $1_FALSE='#'
963
1086
Usually this means the macro was only invoked conditionally.]])
964
1087
fi])])
965
1088
 
966
 
 
967
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
1089
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
968
1090
# Free Software Foundation, Inc.
969
1091
#
970
1092
# This file is free software; the Free Software Foundation
971
1093
# gives unlimited permission to copy and/or distribute it,
972
1094
# with or without modifications, as long as this notice is preserved.
973
1095
 
974
 
# serial 8
 
1096
# serial 9
975
1097
 
976
1098
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
977
1099
# written in clear, in which case automake, when reading aclocal.m4,
999
1121
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
1000
1122
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
1001
1123
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
1124
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
1002
1125
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
1003
1126
                   [depcc="$$1"   am_compiler_list=])
1004
1127
 
1064
1187
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1065
1188
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1066
1189
         >/dev/null 2>conftest.err &&
 
1190
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1067
1191
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1068
1192
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1069
1193
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1116
1240
  AMDEPBACKSLASH='\'
1117
1241
fi
1118
1242
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
1119
 
AC_SUBST([AMDEPBACKSLASH])
 
1243
AC_SUBST([AMDEPBACKSLASH])dnl
 
1244
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
1120
1245
])
1121
1246
 
1122
1247
# Generate code to set up dependency tracking.              -*- Autoconf -*-
1141
1266
  # some people rename them; so instead we look at the file content.
1142
1267
  # Grep'ing the first line is not enough: some people post-process
1143
1268
  # each Makefile.in and add a new line on top of each file to say so.
1144
 
  # So let's grep whole file.
1145
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
1269
  # Grep'ing the whole file is not good either: AIX grep has a line
 
1270
  # limit of 2048, but all sed's we know have understand at least 4000.
 
1271
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
1146
1272
    dirpart=`AS_DIRNAME("$mf")`
1147
1273
  else
1148
1274
    continue
1201
1327
 
1202
1328
# Do all the work for Automake.                             -*- Autoconf -*-
1203
1329
 
1204
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
1205
 
# Free Software Foundation, Inc.
 
1330
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
1331
# 2005, 2006 Free Software Foundation, Inc.
1206
1332
#
1207
1333
# This file is free software; the Free Software Foundation
1208
1334
# gives unlimited permission to copy and/or distribute it,
1225
1351
# arguments mandatory, and then we can depend on a new Autoconf
1226
1352
# release and drop the old call support.
1227
1353
AC_DEFUN([AM_INIT_AUTOMAKE],
1228
 
[AC_PREREQ([2.58])dnl
 
1354
[AC_PREREQ([2.60])dnl
1229
1355
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
1230
1356
dnl the ones we care about.
1231
1357
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
1232
1358
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
1233
1359
AC_REQUIRE([AC_PROG_INSTALL])dnl
1234
 
# test to see if srcdir already configured
1235
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1236
 
   test -f $srcdir/config.status; then
1237
 
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
1360
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
1361
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
1362
  # is not polluted with repeated "-I."
 
1363
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
1364
  # test to see if srcdir already configured
 
1365
  if test -f $srcdir/config.status; then
 
1366
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
1367
  fi
1238
1368
fi
1239
1369
 
1240
1370
# test whether we have cygpath
1254
1384
 AC_SUBST([PACKAGE], [$1])dnl
1255
1385
 AC_SUBST([VERSION], [$2])],
1256
1386
[_AM_SET_OPTIONS([$1])dnl
 
1387
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
1388
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
1389
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
1257
1390
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
1258
1391
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
1259
1392
 
1289
1422
                  [_AM_DEPENDENCIES(CXX)],
1290
1423
                  [define([AC_PROG_CXX],
1291
1424
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
1425
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
1426
                  [_AM_DEPENDENCIES(OBJC)],
 
1427
                  [define([AC_PROG_OBJC],
 
1428
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
1292
1429
])
1293
1430
])
1294
1431
 
1324
1461
# Define $install_sh.
1325
1462
AC_DEFUN([AM_PROG_INSTALL_SH],
1326
1463
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1327
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1464
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
1328
1465
AC_SUBST(install_sh)])
1329
1466
 
1330
1467
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
1402
1539
 
1403
1540
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
1404
1541
 
1405
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
 
1542
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
1406
1543
# Free Software Foundation, Inc.
1407
1544
#
1408
1545
# This file is free software; the Free Software Foundation
1409
1546
# gives unlimited permission to copy and/or distribute it,
1410
1547
# with or without modifications, as long as this notice is preserved.
1411
1548
 
1412
 
# serial 4
 
1549
# serial 5
1413
1550
 
1414
1551
# AM_MISSING_PROG(NAME, PROGRAM)
1415
1552
# ------------------------------
1425
1562
# If it does, set am_missing_run to use it, otherwise, to nothing.
1426
1563
AC_DEFUN([AM_MISSING_HAS_RUN],
1427
1564
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
1565
AC_REQUIRE_AUX_FILE([missing])dnl
1428
1566
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1429
1567
# Use eval to expand $SHELL
1430
1568
if eval "$MISSING --run true"; then
1435
1573
fi
1436
1574
])
1437
1575
 
1438
 
# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
 
1576
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
1439
1577
#
1440
1578
# This file is free software; the Free Software Foundation
1441
1579
# gives unlimited permission to copy and/or distribute it,
1443
1581
 
1444
1582
# AM_PROG_MKDIR_P
1445
1583
# ---------------
1446
 
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
1447
 
#
1448
 
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
1449
 
# created by `make install' are always world readable, even if the
1450
 
# installer happens to have an overly restrictive umask (e.g. 077).
1451
 
# This was a mistake.  There are at least two reasons why we must not
1452
 
# use `-m 0755':
1453
 
#   - it causes special bits like SGID to be ignored,
1454
 
#   - it may be too restrictive (some setups expect 775 directories).
1455
 
#
1456
 
# Do not use -m 0755 and let people choose whatever they expect by
1457
 
# setting umask.
1458
 
#
1459
 
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
1460
 
# Some implementations (such as Solaris 8's) are not thread-safe: if a
1461
 
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
1462
 
# concurrently, both version can detect that a/ is missing, but only
1463
 
# one can create it and the other will error out.  Consequently we
1464
 
# restrict ourselves to GNU make (using the --version option ensures
1465
 
# this.)
 
1584
# Check for `mkdir -p'.
1466
1585
AC_DEFUN([AM_PROG_MKDIR_P],
1467
 
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1468
 
  # We used to keeping the `.' as first argument, in order to
1469
 
  # allow $(mkdir_p) to be used without argument.  As in
1470
 
  #   $(mkdir_p) $(somedir)
1471
 
  # where $(somedir) is conditionally defined.  However this is wrong
1472
 
  # for two reasons:
1473
 
  #  1. if the package is installed by a user who cannot write `.'
1474
 
  #     make install will fail,
1475
 
  #  2. the above comment should most certainly read
1476
 
  #     $(mkdir_p) $(DESTDIR)$(somedir)
1477
 
  #     so it does not work when $(somedir) is undefined and
1478
 
  #     $(DESTDIR) is not.
1479
 
  #  To support the latter case, we have to write
1480
 
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1481
 
  #  so the `.' trick is pointless.
1482
 
  mkdir_p='mkdir -p --'
1483
 
else
1484
 
  # On NextStep and OpenStep, the `mkdir' command does not
1485
 
  # recognize any option.  It will interpret all options as
1486
 
  # directories to create, and then abort because `.' already
1487
 
  # exists.
1488
 
  for d in ./-p ./--version;
1489
 
  do
1490
 
    test -d $d && rmdir $d
1491
 
  done
1492
 
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1493
 
  if test -f "$ac_aux_dir/mkinstalldirs"; then
1494
 
    mkdir_p='$(mkinstalldirs)'
1495
 
  else
1496
 
    mkdir_p='$(install_sh) -d'
1497
 
  fi
1498
 
fi
1499
 
AC_SUBST([mkdir_p])])
 
1586
[AC_PREREQ([2.60])dnl
 
1587
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
1588
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
1589
dnl while keeping a definition of mkdir_p for backward compatibility.
 
1590
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
1591
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
1592
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
1593
dnl adjustment using top_builddir (which is defined more often than
 
1594
dnl MKDIR_P).
 
1595
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
1596
case $mkdir_p in
 
1597
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
1598
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
1599
esac
 
1600
])
1500
1601
 
1501
1602
# Helper functions for option handling.                     -*- Autoconf -*-
1502
1603
 
1608
1709
if test "$cross_compiling" != no; then
1609
1710
  AC_CHECK_TOOL([STRIP], [strip], :)
1610
1711
fi
1611
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1712
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1612
1713
AC_SUBST([INSTALL_STRIP_PROGRAM])])
1613
1714
 
 
1715
# Copyright (C) 2006  Free Software Foundation, Inc.
 
1716
#
 
1717
# This file is free software; the Free Software Foundation
 
1718
# gives unlimited permission to copy and/or distribute it,
 
1719
# with or without modifications, as long as this notice is preserved.
 
1720
 
 
1721
# _AM_SUBST_NOTMAKE(VARIABLE)
 
1722
# ---------------------------
 
1723
# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
 
1724
# This macro is traced by Automake.
 
1725
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
1726
 
1614
1727
# Check how to create a tarball.                            -*- Autoconf -*-
1615
1728
 
1616
1729
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
1708
1821
]) # _AM_PROG_TAR
1709
1822
 
1710
1823
m4_include([macros/aclocal-include.m4])
 
1824
m4_include([macros/herzi-cflags.m4])
1711
1825
m4_include([macros/herzi-gettext.m4])
1712
1826
m4_include([macros/herzi-prefix.m4])
1713
1827
m4_include([macros/objc.m4])