~ken-vandine/intlclock/intlclock-no-yast

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Ken VanDine
  • Date: 2007-09-09 08:48:37 UTC
  • Revision ID: ken@foobar.rdu.rpath.com-20070909084837-w3xxsizazls8emqf
Some autotools love, use gnome-autogen.sh

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.10 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005, 2006  Free Software Foundation, Inc.
 
4
# 2005  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
 
 
19
14
dnl AM_GCONF_SOURCE_2
20
15
dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
21
16
dnl  (i.e. pass to gconftool-2
621
616
     fi
622
617
   fi
623
618
 
 
619
   dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
 
620
   dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
 
621
   dnl Try to locate is.
 
622
   MKINSTALLDIRS=
 
623
   if test -n "$ac_aux_dir"; then
 
624
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
 
625
   fi
 
626
   if test -z "$MKINSTALLDIRS"; then
 
627
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 
628
   fi
 
629
   AC_SUBST(MKINSTALLDIRS)
 
630
 
624
631
   dnl Generate list of files to be processed by xgettext which will
625
632
   dnl be included in po/Makefile.
626
633
   test -d po || mkdir po
885
892
 
886
893
 
887
894
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
888
 
# serial 35 IT_PROG_INTLTOOL
 
895
# serial 36 IT_PROG_INTLTOOL
889
896
AC_DEFUN([IT_PROG_INTLTOOL],
890
897
[AC_PREREQ([2.50])dnl
891
898
 
898
905
esac
899
906
 
900
907
if test -n "$1"; then
901
 
    AC_MSG_CHECKING(for intltool >= $1)
 
908
    AC_MSG_CHECKING([for intltool >= $1])
902
909
 
903
910
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
904
911
    INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
927
934
  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 $< [$]@' 
928
935
    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 $< [$]@' 
929
936
    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 $< [$]@'
 
937
   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 $< [$]@'
930
938
 
931
939
AC_SUBST(INTLTOOL_DESKTOP_RULE)
932
940
AC_SUBST(INTLTOOL_DIRECTORY_RULE)
946
954
AC_SUBST(INTLTOOL_SCHEMAS_RULE)
947
955
AC_SUBST(INTLTOOL_THEME_RULE)
948
956
AC_SUBST(INTLTOOL_SERVICE_RULE)
 
957
AC_SUBST(INTLTOOL_POLICY_RULE)
949
958
 
950
959
# Use the tools built into the package, not the ones that are installed.
951
960
AC_SUBST(INTLTOOL_EXTRACT, '$(top_builddir)/intltool-extract')
968
977
   fi
969
978
fi
970
979
 
971
 
AC_PATH_PROG(INTLTOOL_ICONV, iconv, iconv)
972
 
AC_PATH_PROG(INTLTOOL_MSGFMT, msgfmt, msgfmt)
973
 
AC_PATH_PROG(INTLTOOL_MSGMERGE, msgmerge, msgmerge)
974
 
AC_PATH_PROG(INTLTOOL_XGETTEXT, xgettext, xgettext)
975
 
 
976
980
# Substitute ALL_LINGUAS so we can use it in po/Makefile
977
981
AC_SUBST(ALL_LINGUAS)
978
982
 
979
983
# Set DATADIRNAME correctly if it is not set yet
980
984
# (copied from glib-gettext.m4)
981
985
if test -z "$DATADIRNAME"; then
982
 
  AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
983
 
                 return _nl_msg_cat_cntr],
 
986
  AC_LINK_IFELSE(
 
987
    [AC_LANG_PROGRAM([[]],
 
988
                     [[extern int _nl_msg_cat_cntr;
 
989
                       return _nl_msg_cat_cntr]])],
984
990
    [DATADIRNAME=share],
985
991
    [case $host in
986
992
    *-*-solaris*)
1021
1027
for file in intltool-extract intltool-merge intltool-update; do
1022
1028
  sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
1023
1029
      -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
1024
 
      -e "s|@INTLTOOL_ICONV@|${INTLTOOL_ICONV}|g" \
1025
 
      -e "s|@INTLTOOL_MSGFMT@|${INTLTOOL_MSGFMT}|g" \
1026
 
      -e "s|@INTLTOOL_MSGMERGE@|${INTLTOOL_MSGMERGE}|g" \
1027
 
      -e "s|@INTLTOOL_XGETTEXT@|${INTLTOOL_XGETTEXT}|g" \
1028
1030
      -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
1029
1031
        < ${ac_aux_dir}/${file}.in > ${file}.out
1030
1032
  if cmp -s ${file} ${file}.out 2>/dev/null; then
1039
1041
],
1040
1042
[INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'
1041
1043
prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir" 
1042
 
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' INTLTOOL_ICONV='${INTLTOOL_ICONV}'
1043
 
INTLTOOL_MSGFMT='${INTLTOOL_MSGFMT}' INTLTOOL_MSGMERGE='${INTLTOOL_MSGMERGE}'
1044
 
INTLTOOL_XGETTEXT='${INTLTOOL_XGETTEXT}'])
 
1044
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}'])
1045
1045
 
1046
1046
])
1047
1047
 
7686
7686
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
7687
7687
fi
7688
7688
if test -n "$PKG_CONFIG"; then
7689
 
        _pkg_min_version=m4_default([$1], [0.9.0])
 
7689
        _pkg_min_version=m4_ifval([$1], [$1], [0.9.0])
7690
7690
        AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
7691
7691
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7692
7692
                AC_MSG_RESULT([yes])
7722
7722
# ---------------------------------------------
7723
7723
m4_define([_PKG_CONFIG],
7724
7724
[if test -n "$PKG_CONFIG"; then
7725
 
    if test -n "$$1"; then
7726
 
        pkg_cv_[]$1="$$1"
7727
 
    else
7728
7725
        PKG_CHECK_EXISTS([$3],
7729
7726
                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
7730
7727
                         [pkg_failed=yes])
7731
 
    fi
7732
7728
else
7733
7729
        pkg_failed=untried
7734
7730
fi[]dnl
7735
7731
])# _PKG_CONFIG
7736
7732
 
7737
 
# _PKG_SHORT_ERRORS_SUPPORTED
7738
 
# -----------------------------
7739
 
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
7740
 
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
7741
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7742
 
        _pkg_short_errors_supported=yes
7743
 
else
7744
 
        _pkg_short_errors_supported=no
7745
 
fi[]dnl
7746
 
])# _PKG_SHORT_ERRORS_SUPPORTED
7747
 
 
7748
 
 
7749
7733
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
7750
7734
# [ACTION-IF-NOT-FOUND])
7751
7735
#
7767
7751
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
7768
7752
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
7769
7753
 
7770
 
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
7771
 
and $1[]_LIBS to avoid the need to call pkg-config.
7772
 
See the pkg-config man page for more details.])
7773
 
 
7774
7754
if test $pkg_failed = yes; then
7775
 
        _PKG_SHORT_ERRORS_SUPPORTED
7776
 
        if test $_pkg_short_errors_supported = yes; then
7777
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
7778
 
        else 
7779
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
7780
 
        fi
 
7755
        $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
7781
7756
        # Put the nasty error message in config.log where it belongs
7782
 
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
 
7757
        echo "$$1[]_PKG_ERRORS" 1>&AS_MESSAGE_LOG_FD
7783
7758
 
7784
7759
        ifelse([$4], , [AC_MSG_ERROR(dnl
7785
 
[Package requirements ($2) were not met:
7786
 
 
7787
 
$$1_PKG_ERRORS
7788
 
 
 
7760
[Package requirements ($2) were not met.
7789
7761
Consider adjusting the PKG_CONFIG_PATH environment variable if you
7790
7762
installed software in a non-standard prefix.
7791
7763
 
7792
 
_PKG_TEXT
7793
 
])],
7794
 
                [AC_MSG_RESULT([no])
7795
 
                $4])
 
7764
Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables
 
7765
to avoid the need to call pkg-config.  See the pkg-config man page for
 
7766
more details.])],
 
7767
                [$4])
7796
7768
elif test $pkg_failed = untried; then
7797
7769
        ifelse([$4], , [AC_MSG_FAILURE(dnl
7798
7770
[The pkg-config script could not be found or is too old.  Make sure it
7799
7771
is in your PATH or set the PKG_CONFIG environment variable to the full
7800
7772
path to pkg-config.
7801
7773
 
7802
 
_PKG_TEXT
 
7774
Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables
 
7775
to avoid the need to call pkg-config.  See the pkg-config man page for
 
7776
more details.
7803
7777
 
7804
7778
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
7805
7779
                [$4])
7811
7785
fi[]dnl
7812
7786
])# PKG_CHECK_MODULES
7813
7787
 
7814
 
# Copyright (C) 2002, 2003, 2005, 2006  Free Software Foundation, Inc.
 
7788
# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
7815
7789
#
7816
7790
# This file is free software; the Free Software Foundation
7817
7791
# gives unlimited permission to copy and/or distribute it,
7821
7795
# ----------------------------
7822
7796
# Automake X.Y traces this macro to ensure aclocal.m4 has been
7823
7797
# generated from the m4 files accompanying Automake X.Y.
7824
 
# (This private macro should not be called outside this file.)
7825
 
AC_DEFUN([AM_AUTOMAKE_VERSION],
7826
 
[am__api_version='1.10'
7827
 
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
7828
 
dnl require some minimum version.  Point them to the right macro.
7829
 
m4_if([$1], [1.10], [],
7830
 
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
7831
 
])
7832
 
 
7833
 
# _AM_AUTOCONF_VERSION(VERSION)
7834
 
# -----------------------------
7835
 
# aclocal traces this macro to find the Autoconf version.
7836
 
# This is a private macro too.  Using m4_define simplifies
7837
 
# the logic in aclocal, which can simply ignore this definition.
7838
 
m4_define([_AM_AUTOCONF_VERSION], [])
 
7798
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
7839
7799
 
7840
7800
# AM_SET_CURRENT_AUTOMAKE_VERSION
7841
7801
# -------------------------------
7842
 
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
 
7802
# Call AM_AUTOMAKE_VERSION so it can be traced.
7843
7803
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
7844
7804
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
7845
 
[AM_AUTOMAKE_VERSION([1.10])dnl
7846
 
_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
 
7805
         [AM_AUTOMAKE_VERSION([1.9.6])])
7847
7806
 
7848
7807
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
7849
7808
 
7900
7859
 
7901
7860
# AM_CONDITIONAL                                            -*- Autoconf -*-
7902
7861
 
7903
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
 
7862
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
7904
7863
# Free Software Foundation, Inc.
7905
7864
#
7906
7865
# This file is free software; the Free Software Foundation
7907
7866
# gives unlimited permission to copy and/or distribute it,
7908
7867
# with or without modifications, as long as this notice is preserved.
7909
7868
 
7910
 
# serial 8
 
7869
# serial 7
7911
7870
 
7912
7871
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
7913
7872
# -------------------------------------
7916
7875
[AC_PREREQ(2.52)dnl
7917
7876
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
7918
7877
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
7919
 
AC_SUBST([$1_TRUE])dnl
7920
 
AC_SUBST([$1_FALSE])dnl
7921
 
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
7922
 
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
7878
AC_SUBST([$1_TRUE])
 
7879
AC_SUBST([$1_FALSE])
7923
7880
if $2; then
7924
7881
  $1_TRUE=
7925
7882
  $1_FALSE='#'
7933
7890
Usually this means the macro was only invoked conditionally.]])
7934
7891
fi])])
7935
7892
 
7936
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
 
7893
 
 
7894
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
7937
7895
# Free Software Foundation, Inc.
7938
7896
#
7939
7897
# This file is free software; the Free Software Foundation
7940
7898
# gives unlimited permission to copy and/or distribute it,
7941
7899
# with or without modifications, as long as this notice is preserved.
7942
7900
 
7943
 
# serial 9
 
7901
# serial 8
7944
7902
 
7945
7903
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
7946
7904
# written in clear, in which case automake, when reading aclocal.m4,
7968
7926
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
7969
7927
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
7970
7928
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
7971
 
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
7972
7929
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
7973
7930
                   [depcc="$$1"   am_compiler_list=])
7974
7931
 
8034
7991
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8035
7992
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8036
7993
         >/dev/null 2>conftest.err &&
8037
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8038
7994
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8039
7995
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8040
7996
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8087
8043
  AMDEPBACKSLASH='\'
8088
8044
fi
8089
8045
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
8090
 
AC_SUBST([AMDEPBACKSLASH])dnl
8091
 
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
8046
AC_SUBST([AMDEPBACKSLASH])
8092
8047
])
8093
8048
 
8094
8049
# Generate code to set up dependency tracking.              -*- Autoconf -*-
8113
8068
  # some people rename them; so instead we look at the file content.
8114
8069
  # Grep'ing the first line is not enough: some people post-process
8115
8070
  # each Makefile.in and add a new line on top of each file to say so.
8116
 
  # Grep'ing the whole file is not good either: AIX grep has a line
8117
 
  # limit of 2048, but all sed's we know have understand at least 4000.
8118
 
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
 
8071
  # So let's grep whole file.
 
8072
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8119
8073
    dirpart=`AS_DIRNAME("$mf")`
8120
8074
  else
8121
8075
    continue
8162
8116
 
8163
8117
# Do all the work for Automake.                             -*- Autoconf -*-
8164
8118
 
8165
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
8166
 
# 2005, 2006 Free Software Foundation, Inc.
 
8119
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
8120
# Free Software Foundation, Inc.
8167
8121
#
8168
8122
# This file is free software; the Free Software Foundation
8169
8123
# gives unlimited permission to copy and/or distribute it,
8186
8140
# arguments mandatory, and then we can depend on a new Autoconf
8187
8141
# release and drop the old call support.
8188
8142
AC_DEFUN([AM_INIT_AUTOMAKE],
8189
 
[AC_PREREQ([2.60])dnl
 
8143
[AC_PREREQ([2.58])dnl
8190
8144
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
8191
8145
dnl the ones we care about.
8192
8146
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
8193
8147
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
8194
8148
AC_REQUIRE([AC_PROG_INSTALL])dnl
8195
 
if test "`cd $srcdir && pwd`" != "`pwd`"; then
8196
 
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
8197
 
  # is not polluted with repeated "-I."
8198
 
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
8199
 
  # test to see if srcdir already configured
8200
 
  if test -f $srcdir/config.status; then
8201
 
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
8202
 
  fi
 
8149
# test to see if srcdir already configured
 
8150
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
8151
   test -f $srcdir/config.status; then
 
8152
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
8203
8153
fi
8204
8154
 
8205
8155
# test whether we have cygpath
8219
8169
 AC_SUBST([PACKAGE], [$1])dnl
8220
8170
 AC_SUBST([VERSION], [$2])],
8221
8171
[_AM_SET_OPTIONS([$1])dnl
8222
 
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
8223
 
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
8224
 
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
8225
8172
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
8226
8173
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
8227
8174
 
8257
8204
                  [_AM_DEPENDENCIES(CXX)],
8258
8205
                  [define([AC_PROG_CXX],
8259
8206
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
8260
 
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
8261
 
                  [_AM_DEPENDENCIES(OBJC)],
8262
 
                  [define([AC_PROG_OBJC],
8263
 
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
8264
8207
])
8265
8208
])
8266
8209
 
8296
8239
# Define $install_sh.
8297
8240
AC_DEFUN([AM_PROG_INSTALL_SH],
8298
8241
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
8299
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
8242
install_sh=${install_sh-"$am_aux_dir/install-sh"}
8300
8243
AC_SUBST(install_sh)])
8301
8244
 
8302
8245
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
8403
8346
 
8404
8347
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
8405
8348
 
8406
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
 
8349
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
8407
8350
# Free Software Foundation, Inc.
8408
8351
#
8409
8352
# This file is free software; the Free Software Foundation
8410
8353
# gives unlimited permission to copy and/or distribute it,
8411
8354
# with or without modifications, as long as this notice is preserved.
8412
8355
 
8413
 
# serial 5
 
8356
# serial 4
8414
8357
 
8415
8358
# AM_MISSING_PROG(NAME, PROGRAM)
8416
8359
# ------------------------------
8426
8369
# If it does, set am_missing_run to use it, otherwise, to nothing.
8427
8370
AC_DEFUN([AM_MISSING_HAS_RUN],
8428
8371
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
8429
 
AC_REQUIRE_AUX_FILE([missing])dnl
8430
8372
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
8431
8373
# Use eval to expand $SHELL
8432
8374
if eval "$MISSING --run true"; then
8437
8379
fi
8438
8380
])
8439
8381
 
8440
 
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
8382
# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
8441
8383
#
8442
8384
# This file is free software; the Free Software Foundation
8443
8385
# gives unlimited permission to copy and/or distribute it,
8445
8387
 
8446
8388
# AM_PROG_MKDIR_P
8447
8389
# ---------------
8448
 
# Check for `mkdir -p'.
 
8390
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
 
8391
#
 
8392
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
 
8393
# created by `make install' are always world readable, even if the
 
8394
# installer happens to have an overly restrictive umask (e.g. 077).
 
8395
# This was a mistake.  There are at least two reasons why we must not
 
8396
# use `-m 0755':
 
8397
#   - it causes special bits like SGID to be ignored,
 
8398
#   - it may be too restrictive (some setups expect 775 directories).
 
8399
#
 
8400
# Do not use -m 0755 and let people choose whatever they expect by
 
8401
# setting umask.
 
8402
#
 
8403
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
 
8404
# Some implementations (such as Solaris 8's) are not thread-safe: if a
 
8405
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
 
8406
# concurrently, both version can detect that a/ is missing, but only
 
8407
# one can create it and the other will error out.  Consequently we
 
8408
# restrict ourselves to GNU make (using the --version option ensures
 
8409
# this.)
8449
8410
AC_DEFUN([AM_PROG_MKDIR_P],
8450
 
[AC_PREREQ([2.60])dnl
8451
 
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
8452
 
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
8453
 
dnl while keeping a definition of mkdir_p for backward compatibility.
8454
 
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
8455
 
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
8456
 
dnl Makefile.ins that do not define MKDIR_P, so we do our own
8457
 
dnl adjustment using top_builddir (which is defined more often than
8458
 
dnl MKDIR_P).
8459
 
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
8460
 
case $mkdir_p in
8461
 
  [[\\/$]]* | ?:[[\\/]]*) ;;
8462
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
8463
 
esac
8464
 
])
 
8411
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
8412
  # We used to keeping the `.' as first argument, in order to
 
8413
  # allow $(mkdir_p) to be used without argument.  As in
 
8414
  #   $(mkdir_p) $(somedir)
 
8415
  # where $(somedir) is conditionally defined.  However this is wrong
 
8416
  # for two reasons:
 
8417
  #  1. if the package is installed by a user who cannot write `.'
 
8418
  #     make install will fail,
 
8419
  #  2. the above comment should most certainly read
 
8420
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
8421
  #     so it does not work when $(somedir) is undefined and
 
8422
  #     $(DESTDIR) is not.
 
8423
  #  To support the latter case, we have to write
 
8424
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
8425
  #  so the `.' trick is pointless.
 
8426
  mkdir_p='mkdir -p --'
 
8427
else
 
8428
  # On NextStep and OpenStep, the `mkdir' command does not
 
8429
  # recognize any option.  It will interpret all options as
 
8430
  # directories to create, and then abort because `.' already
 
8431
  # exists.
 
8432
  for d in ./-p ./--version;
 
8433
  do
 
8434
    test -d $d && rmdir $d
 
8435
  done
 
8436
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
8437
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
8438
    mkdir_p='$(mkinstalldirs)'
 
8439
  else
 
8440
    mkdir_p='$(install_sh) -d'
 
8441
  fi
 
8442
fi
 
8443
AC_SUBST([mkdir_p])])
8465
8444
 
8466
8445
# Helper functions for option handling.                     -*- Autoconf -*-
8467
8446
 
8590
8569
if test "$cross_compiling" != no; then
8591
8570
  AC_CHECK_TOOL([STRIP], [strip], :)
8592
8571
fi
8593
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
8572
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
8594
8573
AC_SUBST([INSTALL_STRIP_PROGRAM])])
8595
8574
 
8596
 
# Copyright (C) 2006  Free Software Foundation, Inc.
8597
 
#
8598
 
# This file is free software; the Free Software Foundation
8599
 
# gives unlimited permission to copy and/or distribute it,
8600
 
# with or without modifications, as long as this notice is preserved.
8601
 
 
8602
 
# _AM_SUBST_NOTMAKE(VARIABLE)
8603
 
# ---------------------------
8604
 
# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
8605
 
# This macro is traced by Automake.
8606
 
AC_DEFUN([_AM_SUBST_NOTMAKE])
8607
 
 
8608
8575
# Check how to create a tarball.                            -*- Autoconf -*-
8609
8576
 
8610
8577
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.