~ubuntu-branches/ubuntu/lucid/quick-lounge-applet/lucid

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Starr-Bochicchio
  • Date: 2008-09-22 18:01:12 UTC
  • mfrom: (1.1.5 upstream) (4.1.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20080922180112-itm81kn3p09gduel
Tags: 2.12.5-5ubuntu1
* Merge from Debian unstable, remaining changes (LP: #273345):
 - Build-depend on xorg-dev, fix FTBFS.
 - Update Maintainer field as per spec. 
* Rebuild needed for libgnome-desktop-2 -> libgnome-desktop-2-7 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
dnl AM_GCONF_SOURCE_2
15
20
dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
16
21
dnl  (i.e. pass to gconftool-2
154
159
#-----------------
155
160
glib_DEFUN([GLIB_WITH_NLS],
156
161
  dnl NLS is obligatory
157
 
  [USE_NLS=yes
 
162
  [AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
163
    USE_NLS=yes
158
164
    AC_SUBST(USE_NLS)
159
165
 
160
166
    gt_cv_have_gettext=no
258
264
          glib_save_LIBS="$LIBS"
259
265
          LIBS="$LIBS $INTLLIBS"
260
266
          AC_CHECK_FUNCS(dcgettext)
 
267
          MSGFMT_OPTS=
 
268
          AC_MSG_CHECKING([if msgfmt accepts -c])
 
269
          GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
 
270
msgid ""
 
271
msgstr ""
 
272
"Content-Type: text/plain; charset=UTF-8\n"
 
273
"Project-Id-Version: test 1.0\n"
 
274
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
 
275
"Last-Translator: test <foo@bar.xx>\n"
 
276
"Language-Team: C <LL@li.org>\n"
 
277
"MIME-Version: 1.0\n"
 
278
"Content-Transfer-Encoding: 8bit\n"
 
279
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
 
280
          AC_SUBST(MSGFMT_OPTS)
261
281
          AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
262
282
          GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
263
283
            [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
429
449
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
430
450
glib_save_prefix="$prefix"
431
451
glib_save_exec_prefix="$exec_prefix"
 
452
glib_save_datarootdir="$datarootdir"
432
453
test "x$prefix" = xNONE && prefix=$ac_default_prefix
433
454
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
 
455
datarootdir=`eval echo "${datarootdir}"`
434
456
if test "x$CATOBJEXT" = "x.mo" ; then
435
457
  localedir=`eval echo "${libdir}/locale"`
436
458
else
438
460
fi
439
461
prefix="$glib_save_prefix"
440
462
exec_prefix="$glib_save_exec_prefix"
 
463
datarootdir="$glib_save_datarootdir"
441
464
AC_DEFINE_UNQUOTED($1, "$localedir",
442
465
  [Define the location where the catalogs will be installed])
443
466
])
450
473
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
451
474
])dnl
452
475
 
 
476
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
 
477
 
478
# Create a temporary file with TEST-FILE as its contents and pass the
 
479
# file name to PROGRAM.  Perform ACTION-IF-PASS if PROGRAM exits with
 
480
# 0 and perform ACTION-IF-FAIL for any other exit status.
 
481
AC_DEFUN([GLIB_RUN_PROG],
 
482
[cat >conftest.foo <<_ACEOF
 
483
$2
 
484
_ACEOF
 
485
if AC_RUN_LOG([$1 conftest.foo]); then
 
486
  m4_ifval([$3], [$3], [:])
 
487
m4_ifvaln([$4], [else $4])dnl
 
488
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
 
489
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
 
490
fi])
 
491
 
 
492
 
453
493
# gnome-common.m4
454
494
455
495
 
491
531
        AC_REQUIRE([AM_MAINTAINER_MODE])
492
532
 
493
533
        if test $USE_MAINTAINER_MODE = yes; then
494
 
                DISABLE_DEPRECATED="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DBONOBO_DISABLE_DEPRECATED"
 
534
                DISABLE_DEPRECATED="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGCONF_DISABLE_DEPRECATED -DBONOBO_DISABLE_DEPRECATED -DBONOBO_UI_DISABLE_DEPRECATED -DGNOME_VFS_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -DLIBGLADE_DISABLE_DEPRECATED"
495
535
        else
496
536
                DISABLE_DEPRECATED=""
497
537
        fi
595
635
 
596
636
  AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
597
637
  warnCXXFLAGS=
598
 
  if test "x$GCC" != xyes; then
599
 
    enable_compile_warnings=no
 
638
  if test "x$GXX" != xyes; then
 
639
    enable_cxx_warnings=no
600
640
  fi
601
641
  if test "x$enable_cxx_warnings" != "xno"; then
602
 
    if test "x$GCC" = "xyes"; then
 
642
    if test "x$GXX" = "xyes"; then
603
643
      case " $CXXFLAGS " in
604
644
      *[\ \     ]-Wall[\ \      ]*) ;;
605
645
      *) warnCXXFLAGS="-Wall -Wno-unused" ;;
622
662
   AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
623
663
   complCXXFLAGS=
624
664
   if test "x$enable_iso_cxx" != "xno"; then
625
 
     if test "x$GCC" = "xyes"; then
 
665
     if test "x$GXX" = "xyes"; then
626
666
      case " $CXXFLAGS " in
627
667
      *[\ \     ]-ansi[\ \      ]*) ;;
628
668
      *) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
642
682
 
643
683
 
644
684
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
645
 
# serial 35 IT_PROG_INTLTOOL
 
685
# serial 36 IT_PROG_INTLTOOL
646
686
AC_DEFUN([IT_PROG_INTLTOOL],
647
687
[AC_PREREQ([2.50])dnl
648
688
 
655
695
esac
656
696
 
657
697
if test -n "$1"; then
658
 
    AC_MSG_CHECKING(for intltool >= $1)
 
698
    AC_MSG_CHECKING([for intltool >= $1])
659
699
 
660
700
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
661
701
    INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
684
724
  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 $< [$]@' 
685
725
    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 $< [$]@' 
686
726
    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 $< [$]@'
 
727
   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 $< [$]@'
687
728
 
688
729
AC_SUBST(INTLTOOL_DESKTOP_RULE)
689
730
AC_SUBST(INTLTOOL_DIRECTORY_RULE)
703
744
AC_SUBST(INTLTOOL_SCHEMAS_RULE)
704
745
AC_SUBST(INTLTOOL_THEME_RULE)
705
746
AC_SUBST(INTLTOOL_SERVICE_RULE)
 
747
AC_SUBST(INTLTOOL_POLICY_RULE)
706
748
 
707
749
# Use the tools built into the package, not the ones that are installed.
708
750
AC_SUBST(INTLTOOL_EXTRACT, '$(top_builddir)/intltool-extract')
725
767
   fi
726
768
fi
727
769
 
728
 
AC_PATH_PROG(INTLTOOL_ICONV, iconv, iconv)
729
 
AC_PATH_PROG(INTLTOOL_MSGFMT, msgfmt, msgfmt)
730
 
AC_PATH_PROG(INTLTOOL_MSGMERGE, msgmerge, msgmerge)
731
 
AC_PATH_PROG(INTLTOOL_XGETTEXT, xgettext, xgettext)
732
 
 
733
770
# Substitute ALL_LINGUAS so we can use it in po/Makefile
734
771
AC_SUBST(ALL_LINGUAS)
735
 
    
 
772
 
 
773
# Set DATADIRNAME correctly if it is not set yet
 
774
# (copied from glib-gettext.m4)
 
775
if test -z "$DATADIRNAME"; then
 
776
  AC_LINK_IFELSE(
 
777
    [AC_LANG_PROGRAM([[]],
 
778
                     [[extern int _nl_msg_cat_cntr;
 
779
                       return _nl_msg_cat_cntr]])],
 
780
    [DATADIRNAME=share],
 
781
    [case $host in
 
782
    *-*-solaris*)
 
783
    dnl On Solaris, if bind_textdomain_codeset is in libc,
 
784
    dnl GNU format message catalog is always supported,
 
785
    dnl since both are added to the libc all together.
 
786
    dnl Hence, we'd like to go with DATADIRNAME=share
 
787
    dnl in this case.
 
788
    AC_CHECK_FUNC(bind_textdomain_codeset,
 
789
      [DATADIRNAME=share], [DATADIRNAME=lib])
 
790
    ;;
 
791
    *)
 
792
    [DATADIRNAME=lib]
 
793
    ;;
 
794
    esac])
 
795
fi
 
796
AC_SUBST(DATADIRNAME)
 
797
 
736
798
IT_PO_SUBDIR([po])
737
799
 
738
800
dnl The following is very similar to
755
817
for file in intltool-extract intltool-merge intltool-update; do
756
818
  sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
757
819
      -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
758
 
      -e "s|@INTLTOOL_ICONV@|${INTLTOOL_ICONV}|g" \
759
 
      -e "s|@INTLTOOL_MSGFMT@|${INTLTOOL_MSGFMT}|g" \
760
 
      -e "s|@INTLTOOL_MSGMERGE@|${INTLTOOL_MSGMERGE}|g" \
761
 
      -e "s|@INTLTOOL_XGETTEXT@|${INTLTOOL_XGETTEXT}|g" \
762
820
      -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
763
821
        < ${ac_aux_dir}/${file}.in > ${file}.out
764
822
  if cmp -s ${file} ${file}.out 2>/dev/null; then
773
831
],
774
832
[INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'
775
833
prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir" 
776
 
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' INTLTOOL_ICONV='${INTLTOOL_ICONV}'
777
 
INTLTOOL_MSGFMT='${INTLTOOL_MSGFMT}' INTLTOOL_MSGMERGE='${INTLTOOL_MSGMERGE}'
778
 
INTLTOOL_XGETTEXT='${INTLTOOL_XGETTEXT}'])
 
834
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}'])
779
835
 
780
836
])
781
837
 
960
1016
 
961
1017
_PKG_TEXT
962
1018
])],
963
 
                [$4])
 
1019
                [AC_MSG_RESULT([no])
 
1020
                $4])
964
1021
elif test $pkg_failed = untried; then
965
1022
        ifelse([$4], , [AC_MSG_FAILURE(dnl
966
1023
[The pkg-config script could not be found or is too old.  Make sure it
969
1026
 
970
1027
_PKG_TEXT
971
1028
 
972
 
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
 
1029
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
973
1030
                [$4])
974
1031
else
975
1032
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
979
1036
fi[]dnl
980
1037
])# PKG_CHECK_MODULES
981
1038
 
982
 
# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
 
1039
# Copyright (C) 2002, 2003, 2005, 2006  Free Software Foundation, Inc.
983
1040
#
984
1041
# This file is free software; the Free Software Foundation
985
1042
# gives unlimited permission to copy and/or distribute it,
989
1046
# ----------------------------
990
1047
# Automake X.Y traces this macro to ensure aclocal.m4 has been
991
1048
# generated from the m4 files accompanying Automake X.Y.
992
 
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
 
1049
# (This private macro should not be called outside this file.)
 
1050
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
1051
[am__api_version='1.10'
 
1052
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
1053
dnl require some minimum version.  Point them to the right macro.
 
1054
m4_if([$1], [1.10], [],
 
1055
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
1056
])
 
1057
 
 
1058
# _AM_AUTOCONF_VERSION(VERSION)
 
1059
# -----------------------------
 
1060
# aclocal traces this macro to find the Autoconf version.
 
1061
# This is a private macro too.  Using m4_define simplifies
 
1062
# the logic in aclocal, which can simply ignore this definition.
 
1063
m4_define([_AM_AUTOCONF_VERSION], [])
993
1064
 
994
1065
# AM_SET_CURRENT_AUTOMAKE_VERSION
995
1066
# -------------------------------
996
 
# Call AM_AUTOMAKE_VERSION so it can be traced.
 
1067
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
997
1068
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
998
1069
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
999
 
         [AM_AUTOMAKE_VERSION([1.9.6])])
 
1070
[AM_AUTOMAKE_VERSION([1.10])dnl
 
1071
_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
1000
1072
 
1001
1073
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
1002
1074
 
1053
1125
 
1054
1126
# AM_CONDITIONAL                                            -*- Autoconf -*-
1055
1127
 
1056
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
 
1128
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
1057
1129
# Free Software Foundation, Inc.
1058
1130
#
1059
1131
# This file is free software; the Free Software Foundation
1060
1132
# gives unlimited permission to copy and/or distribute it,
1061
1133
# with or without modifications, as long as this notice is preserved.
1062
1134
 
1063
 
# serial 7
 
1135
# serial 8
1064
1136
 
1065
1137
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
1066
1138
# -------------------------------------
1069
1141
[AC_PREREQ(2.52)dnl
1070
1142
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
1071
1143
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
1072
 
AC_SUBST([$1_TRUE])
1073
 
AC_SUBST([$1_FALSE])
 
1144
AC_SUBST([$1_TRUE])dnl
 
1145
AC_SUBST([$1_FALSE])dnl
 
1146
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
1147
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
1074
1148
if $2; then
1075
1149
  $1_TRUE=
1076
1150
  $1_FALSE='#'
1084
1158
Usually this means the macro was only invoked conditionally.]])
1085
1159
fi])])
1086
1160
 
1087
 
 
1088
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
1161
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
1089
1162
# Free Software Foundation, Inc.
1090
1163
#
1091
1164
# This file is free software; the Free Software Foundation
1092
1165
# gives unlimited permission to copy and/or distribute it,
1093
1166
# with or without modifications, as long as this notice is preserved.
1094
1167
 
1095
 
# serial 8
 
1168
# serial 9
1096
1169
 
1097
1170
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
1098
1171
# written in clear, in which case automake, when reading aclocal.m4,
1120
1193
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
1121
1194
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
1122
1195
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
1196
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
1123
1197
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
1124
1198
                   [depcc="$$1"   am_compiler_list=])
1125
1199
 
1185
1259
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1186
1260
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1187
1261
         >/dev/null 2>conftest.err &&
 
1262
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1188
1263
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1189
1264
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1190
1265
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1237
1312
  AMDEPBACKSLASH='\'
1238
1313
fi
1239
1314
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
1240
 
AC_SUBST([AMDEPBACKSLASH])
 
1315
AC_SUBST([AMDEPBACKSLASH])dnl
 
1316
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
1241
1317
])
1242
1318
 
1243
1319
# Generate code to set up dependency tracking.              -*- Autoconf -*-
1262
1338
  # some people rename them; so instead we look at the file content.
1263
1339
  # Grep'ing the first line is not enough: some people post-process
1264
1340
  # each Makefile.in and add a new line on top of each file to say so.
1265
 
  # So let's grep whole file.
1266
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
1341
  # Grep'ing the whole file is not good either: AIX grep has a line
 
1342
  # limit of 2048, but all sed's we know have understand at least 4000.
 
1343
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
1267
1344
    dirpart=`AS_DIRNAME("$mf")`
1268
1345
  else
1269
1346
    continue
1310
1387
 
1311
1388
# Do all the work for Automake.                             -*- Autoconf -*-
1312
1389
 
1313
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
1314
 
# Free Software Foundation, Inc.
 
1390
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
1391
# 2005, 2006 Free Software Foundation, Inc.
1315
1392
#
1316
1393
# This file is free software; the Free Software Foundation
1317
1394
# gives unlimited permission to copy and/or distribute it,
1334
1411
# arguments mandatory, and then we can depend on a new Autoconf
1335
1412
# release and drop the old call support.
1336
1413
AC_DEFUN([AM_INIT_AUTOMAKE],
1337
 
[AC_PREREQ([2.58])dnl
 
1414
[AC_PREREQ([2.60])dnl
1338
1415
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
1339
1416
dnl the ones we care about.
1340
1417
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
1341
1418
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
1342
1419
AC_REQUIRE([AC_PROG_INSTALL])dnl
1343
 
# test to see if srcdir already configured
1344
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1345
 
   test -f $srcdir/config.status; then
1346
 
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
1420
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
1421
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
1422
  # is not polluted with repeated "-I."
 
1423
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
1424
  # test to see if srcdir already configured
 
1425
  if test -f $srcdir/config.status; then
 
1426
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
1427
  fi
1347
1428
fi
1348
1429
 
1349
1430
# test whether we have cygpath
1363
1444
 AC_SUBST([PACKAGE], [$1])dnl
1364
1445
 AC_SUBST([VERSION], [$2])],
1365
1446
[_AM_SET_OPTIONS([$1])dnl
 
1447
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
1448
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
1449
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
1366
1450
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
1367
1451
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
1368
1452
 
1398
1482
                  [_AM_DEPENDENCIES(CXX)],
1399
1483
                  [define([AC_PROG_CXX],
1400
1484
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
1485
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
1486
                  [_AM_DEPENDENCIES(OBJC)],
 
1487
                  [define([AC_PROG_OBJC],
 
1488
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
1401
1489
])
1402
1490
])
1403
1491
 
1433
1521
# Define $install_sh.
1434
1522
AC_DEFUN([AM_PROG_INSTALL_SH],
1435
1523
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1436
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1524
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
1437
1525
AC_SUBST(install_sh)])
1438
1526
 
1439
1527
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
1540
1628
 
1541
1629
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
1542
1630
 
1543
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
 
1631
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
1544
1632
# Free Software Foundation, Inc.
1545
1633
#
1546
1634
# This file is free software; the Free Software Foundation
1547
1635
# gives unlimited permission to copy and/or distribute it,
1548
1636
# with or without modifications, as long as this notice is preserved.
1549
1637
 
1550
 
# serial 4
 
1638
# serial 5
1551
1639
 
1552
1640
# AM_MISSING_PROG(NAME, PROGRAM)
1553
1641
# ------------------------------
1563
1651
# If it does, set am_missing_run to use it, otherwise, to nothing.
1564
1652
AC_DEFUN([AM_MISSING_HAS_RUN],
1565
1653
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
1654
AC_REQUIRE_AUX_FILE([missing])dnl
1566
1655
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1567
1656
# Use eval to expand $SHELL
1568
1657
if eval "$MISSING --run true"; then
1573
1662
fi
1574
1663
])
1575
1664
 
1576
 
# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
 
1665
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
1577
1666
#
1578
1667
# This file is free software; the Free Software Foundation
1579
1668
# gives unlimited permission to copy and/or distribute it,
1581
1670
 
1582
1671
# AM_PROG_MKDIR_P
1583
1672
# ---------------
1584
 
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
1585
 
#
1586
 
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
1587
 
# created by `make install' are always world readable, even if the
1588
 
# installer happens to have an overly restrictive umask (e.g. 077).
1589
 
# This was a mistake.  There are at least two reasons why we must not
1590
 
# use `-m 0755':
1591
 
#   - it causes special bits like SGID to be ignored,
1592
 
#   - it may be too restrictive (some setups expect 775 directories).
1593
 
#
1594
 
# Do not use -m 0755 and let people choose whatever they expect by
1595
 
# setting umask.
1596
 
#
1597
 
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
1598
 
# Some implementations (such as Solaris 8's) are not thread-safe: if a
1599
 
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
1600
 
# concurrently, both version can detect that a/ is missing, but only
1601
 
# one can create it and the other will error out.  Consequently we
1602
 
# restrict ourselves to GNU make (using the --version option ensures
1603
 
# this.)
 
1673
# Check for `mkdir -p'.
1604
1674
AC_DEFUN([AM_PROG_MKDIR_P],
1605
 
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1606
 
  # We used to keeping the `.' as first argument, in order to
1607
 
  # allow $(mkdir_p) to be used without argument.  As in
1608
 
  #   $(mkdir_p) $(somedir)
1609
 
  # where $(somedir) is conditionally defined.  However this is wrong
1610
 
  # for two reasons:
1611
 
  #  1. if the package is installed by a user who cannot write `.'
1612
 
  #     make install will fail,
1613
 
  #  2. the above comment should most certainly read
1614
 
  #     $(mkdir_p) $(DESTDIR)$(somedir)
1615
 
  #     so it does not work when $(somedir) is undefined and
1616
 
  #     $(DESTDIR) is not.
1617
 
  #  To support the latter case, we have to write
1618
 
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1619
 
  #  so the `.' trick is pointless.
1620
 
  mkdir_p='mkdir -p --'
1621
 
else
1622
 
  # On NextStep and OpenStep, the `mkdir' command does not
1623
 
  # recognize any option.  It will interpret all options as
1624
 
  # directories to create, and then abort because `.' already
1625
 
  # exists.
1626
 
  for d in ./-p ./--version;
1627
 
  do
1628
 
    test -d $d && rmdir $d
1629
 
  done
1630
 
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1631
 
  if test -f "$ac_aux_dir/mkinstalldirs"; then
1632
 
    mkdir_p='$(mkinstalldirs)'
1633
 
  else
1634
 
    mkdir_p='$(install_sh) -d'
1635
 
  fi
1636
 
fi
1637
 
AC_SUBST([mkdir_p])])
 
1675
[AC_PREREQ([2.60])dnl
 
1676
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
1677
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
1678
dnl while keeping a definition of mkdir_p for backward compatibility.
 
1679
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
1680
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
1681
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
1682
dnl adjustment using top_builddir (which is defined more often than
 
1683
dnl MKDIR_P).
 
1684
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
1685
case $mkdir_p in
 
1686
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
1687
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
1688
esac
 
1689
])
1638
1690
 
1639
1691
# Helper functions for option handling.                     -*- Autoconf -*-
1640
1692
 
1746
1798
if test "$cross_compiling" != no; then
1747
1799
  AC_CHECK_TOOL([STRIP], [strip], :)
1748
1800
fi
1749
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1801
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1750
1802
AC_SUBST([INSTALL_STRIP_PROGRAM])])
1751
1803
 
 
1804
# Copyright (C) 2006  Free Software Foundation, Inc.
 
1805
#
 
1806
# This file is free software; the Free Software Foundation
 
1807
# gives unlimited permission to copy and/or distribute it,
 
1808
# with or without modifications, as long as this notice is preserved.
 
1809
 
 
1810
# _AM_SUBST_NOTMAKE(VARIABLE)
 
1811
# ---------------------------
 
1812
# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
 
1813
# This macro is traced by Automake.
 
1814
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
1815
 
1752
1816
# Check how to create a tarball.                            -*- Autoconf -*-
1753
1817
 
1754
1818
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.