11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
15
# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
16
# Generated from amversion.in; do not edit by hand.
18
# This program is free software; you can redistribute it and/or modify
19
# it under the terms of the GNU General Public License as published by
20
# the Free Software Foundation; either version 2, or (at your option)
23
# This program is distributed in the hope that it will be useful,
24
# but WITHOUT ANY WARRANTY; without even the implied warranty of
25
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26
# GNU General Public License for more details.
28
# You should have received a copy of the GNU General Public License
29
# along with this program; if not, write to the Free Software
30
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
m4_if(AC_AUTOCONF_VERSION, [2.61],,
17
[m4_warning([this file was generated for autoconf 2.61.
18
You have another version of autoconf. It may work, but is not guaranteed to.
19
If you have problems, you may need to regenerate the build system entirely.
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
22
# intlmacosx.m4 serial 1 (gettext-0.17)
23
dnl Copyright (C) 2004-2007 Free Software Foundation, Inc.
24
dnl This file is free software; the Free Software Foundation
25
dnl gives unlimited permission to copy and/or distribute it,
26
dnl with or without modifications, as long as this notice is preserved.
28
dnl This file can can be used in projects which are not available under
29
dnl the GNU General Public License or the GNU Library General Public
30
dnl License but which still want to provide support for the GNU gettext
32
dnl Please note that the actual code of the GNU gettext library is covered
33
dnl by the GNU Library General Public License, and the rest of the GNU
34
dnl gettext package package is covered by the GNU General Public License.
35
dnl They are *not* in the public domain.
37
dnl Checks for special options needed on MacOS X.
38
dnl Defines INTL_MACOSX_LIBS.
39
AC_DEFUN([gt_INTL_MACOSX],
41
dnl Check for API introduced in MacOS X 10.2.
42
AC_CACHE_CHECK([for CFPreferencesCopyAppValue],
43
gt_cv_func_CFPreferencesCopyAppValue,
45
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
46
AC_TRY_LINK([#include <CoreFoundation/CFPreferences.h>],
47
[CFPreferencesCopyAppValue(NULL, NULL)],
48
[gt_cv_func_CFPreferencesCopyAppValue=yes],
49
[gt_cv_func_CFPreferencesCopyAppValue=no])
50
LIBS="$gt_save_LIBS"])
51
if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
52
AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1,
53
[Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.])
55
dnl Check for API introduced in MacOS X 10.3.
56
AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent,
58
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
59
AC_TRY_LINK([#include <CoreFoundation/CFLocale.h>], [CFLocaleCopyCurrent();],
60
[gt_cv_func_CFLocaleCopyCurrent=yes],
61
[gt_cv_func_CFLocaleCopyCurrent=no])
62
LIBS="$gt_save_LIBS"])
63
if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
64
AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1,
65
[Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.])
68
if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
69
INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
71
AC_SUBST([INTL_MACOSX_LIBS])
74
# Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc.
76
# This file is free software; the Free Software Foundation
77
# gives unlimited permission to copy and/or distribute it,
78
# with or without modifications, as long as this notice is preserved.
32
80
# AM_AUTOMAKE_VERSION(VERSION)
33
81
# ----------------------------
34
82
# Automake X.Y traces this macro to ensure aclocal.m4 has been
35
83
# generated from the m4 files accompanying Automake X.Y.
36
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
84
# (This private macro should not be called outside this file.)
85
AC_DEFUN([AM_AUTOMAKE_VERSION],
86
[am__api_version='1.10'
87
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
88
dnl require some minimum version. Point them to the right macro.
89
m4_if([$1], [1.10.1], [],
90
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
93
# _AM_AUTOCONF_VERSION(VERSION)
94
# -----------------------------
95
# aclocal traces this macro to find the Autoconf version.
96
# This is a private macro too. Using m4_define simplifies
97
# the logic in aclocal, which can simply ignore this definition.
98
m4_define([_AM_AUTOCONF_VERSION], [])
38
100
# AM_SET_CURRENT_AUTOMAKE_VERSION
39
101
# -------------------------------
40
# Call AM_AUTOMAKE_VERSION so it can be traced.
102
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
41
103
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
42
104
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
43
[AM_AUTOMAKE_VERSION([1.9.4])])
47
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
49
# This program is free software; you can redistribute it and/or modify
50
# it under the terms of the GNU General Public License as published by
51
# the Free Software Foundation; either version 2, or (at your option)
54
# This program is distributed in the hope that it will be useful,
55
# but WITHOUT ANY WARRANTY; without even the implied warranty of
56
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
57
# GNU General Public License for more details.
59
# You should have received a copy of the GNU General Public License
60
# along with this program; if not, write to the Free Software
61
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
105
[AM_AUTOMAKE_VERSION([1.10.1])dnl
106
m4_ifndef([AC_AUTOCONF_VERSION],
107
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
108
_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
110
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
112
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
114
# This file is free software; the Free Software Foundation
115
# gives unlimited permission to copy and/or distribute it,
116
# with or without modifications, as long as this notice is preserved.
64
118
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
65
119
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
106
160
am_aux_dir=`cd $ac_aux_dir && pwd`
109
# AM_CONDITIONAL -*- Autoconf -*-
111
# Copyright (C) 1997, 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
113
# This program is free software; you can redistribute it and/or modify
114
# it under the terms of the GNU General Public License as published by
115
# the Free Software Foundation; either version 2, or (at your option)
118
# This program is distributed in the hope that it will be useful,
119
# but WITHOUT ANY WARRANTY; without even the implied warranty of
120
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
121
# GNU General Public License for more details.
123
# You should have received a copy of the GNU General Public License
124
# along with this program; if not, write to the Free Software
125
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
163
# AM_CONDITIONAL -*- Autoconf -*-
165
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
166
# Free Software Foundation, Inc.
168
# This file is free software; the Free Software Foundation
169
# gives unlimited permission to copy and/or distribute it,
170
# with or without modifications, as long as this notice is preserved.
130
174
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
131
175
# -------------------------------------
149
195
Usually this means the macro was only invoked conditionally.]])
152
# serial 7 -*- Autoconf -*-
154
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
198
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
155
199
# Free Software Foundation, Inc.
157
# This program is free software; you can redistribute it and/or modify
158
# it under the terms of the GNU General Public License as published by
159
# the Free Software Foundation; either version 2, or (at your option)
162
# This program is distributed in the hope that it will be useful,
163
# but WITHOUT ANY WARRANTY; without even the implied warranty of
164
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
165
# GNU General Public License for more details.
167
# You should have received a copy of the GNU General Public License
168
# along with this program; if not, write to the Free Software
169
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
201
# This file is free software; the Free Software Foundation
202
# gives unlimited permission to copy and/or distribute it,
203
# with or without modifications, as long as this notice is preserved.
173
207
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
174
208
# written in clear, in which case automake, when reading aclocal.m4,
314
349
AMDEPBACKSLASH='\'
316
351
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
317
AC_SUBST([AMDEPBACKSLASH])
352
AC_SUBST([AMDEPBACKSLASH])dnl
353
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
320
# Generate code to set up dependency tracking. -*- Autoconf -*-
322
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
323
# Free Software Foundation, Inc.
325
# This program is free software; you can redistribute it and/or modify
326
# it under the terms of the GNU General Public License as published by
327
# the Free Software Foundation; either version 2, or (at your option)
330
# This program is distributed in the hope that it will be useful,
331
# but WITHOUT ANY WARRANTY; without even the implied warranty of
332
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
333
# GNU General Public License for more details.
335
# You should have received a copy of the GNU General Public License
336
# along with this program; if not, write to the Free Software
337
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
356
# Generate code to set up dependency tracking. -*- Autoconf -*-
358
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
359
# Free Software Foundation, Inc.
361
# This file is free software; the Free Software Foundation
362
# gives unlimited permission to copy and/or distribute it,
363
# with or without modifications, as long as this notice is preserved.
342
367
# _AM_OUTPUT_DEPENDENCY_COMMANDS
343
368
# ------------------------------
396
422
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
399
# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
401
# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
403
# This program is free software; you can redistribute it and/or modify
404
# it under the terms of the GNU General Public License as published by
405
# the Free Software Foundation; either version 2, or (at your option)
408
# This program is distributed in the hope that it will be useful,
409
# but WITHOUT ANY WARRANTY; without even the implied warranty of
410
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
411
# GNU General Public License for more details.
413
# You should have received a copy of the GNU General Public License
414
# along with this program; if not, write to the Free Software
415
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
425
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
426
# Free Software Foundation, Inc.
428
# This file is free software; the Free Software Foundation
429
# gives unlimited permission to copy and/or distribute it,
430
# with or without modifications, as long as this notice is preserved.
420
434
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
421
435
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
423
# Do all the work for Automake. -*- Autoconf -*-
425
# This macro actually does too much some checks are only needed if
437
# Do all the work for Automake. -*- Autoconf -*-
439
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
440
# 2005, 2006, 2008 Free Software Foundation, Inc.
442
# This file is free software; the Free Software Foundation
443
# gives unlimited permission to copy and/or distribute it,
444
# with or without modifications, as long as this notice is preserved.
448
# This macro actually does too much. Some checks are only needed if
426
449
# your package does certain things. But this isn't really a big deal.
428
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
429
# Free Software Foundation, Inc.
431
# This program is free software; you can redistribute it and/or modify
432
# it under the terms of the GNU General Public License as published by
433
# the Free Software Foundation; either version 2, or (at your option)
436
# This program is distributed in the hope that it will be useful,
437
# but WITHOUT ANY WARRANTY; without even the implied warranty of
438
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
439
# GNU General Public License for more details.
441
# You should have received a copy of the GNU General Public License
442
# along with this program; if not, write to the Free Software
443
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
448
451
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
449
452
# AM_INIT_AUTOMAKE([OPTIONS])
450
453
# -----------------------------------------------
534
548
# our stamp files there.
535
549
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
536
550
[# Compute $1's index in $config_headers.
537
552
_am_stamp_count=1
538
553
for _am_header in $config_headers :; do
539
554
case $_am_header in
555
$_am_arg | $_am_arg:* )
543
558
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
546
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
561
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
563
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
565
# This file is free software; the Free Software Foundation
566
# gives unlimited permission to copy and/or distribute it,
567
# with or without modifications, as long as this notice is preserved.
548
569
# AM_PROG_INSTALL_SH
549
570
# ------------------
550
571
# Define $install_sh.
552
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
554
# This program is free software; you can redistribute it and/or modify
555
# it under the terms of the GNU General Public License as published by
556
# the Free Software Foundation; either version 2, or (at your option)
559
# This program is distributed in the hope that it will be useful,
560
# but WITHOUT ANY WARRANTY; without even the implied warranty of
561
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
562
# GNU General Public License for more details.
564
# You should have received a copy of the GNU General Public License
565
# along with this program; if not, write to the Free Software
566
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
569
572
AC_DEFUN([AM_PROG_INSTALL_SH],
570
573
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
571
install_sh=${install_sh-"$am_aux_dir/install-sh"}
574
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
572
575
AC_SUBST(install_sh)])
575
# Copyright (C) 2003 Free Software Foundation, Inc.
577
# This program is free software; you can redistribute it and/or modify
578
# it under the terms of the GNU General Public License as published by
579
# the Free Software Foundation; either version 2, or (at your option)
582
# This program is distributed in the hope that it will be useful,
583
# but WITHOUT ANY WARRANTY; without even the implied warranty of
584
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
585
# GNU General Public License for more details.
587
# You should have received a copy of the GNU General Public License
588
# along with this program; if not, write to the Free Software
589
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
577
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
579
# This file is free software; the Free Software Foundation
580
# gives unlimited permission to copy and/or distribute it,
581
# with or without modifications, as long as this notice is preserved.
594
585
# Check whether the underlying file-system supports filenames
595
586
# with a leading dot. For instance MS-DOS doesn't.
604
595
rmdir .tst 2>/dev/null
605
596
AC_SUBST([am__leading_dot])])
607
# Add --enable-maintainer-mode option to configure.
598
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
608
599
# From Jim Meyering
610
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004
601
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
611
602
# Free Software Foundation, Inc.
613
# This program is free software; you can redistribute it and/or modify
614
# it under the terms of the GNU General Public License as published by
615
# the Free Software Foundation; either version 2, or (at your option)
618
# This program is distributed in the hope that it will be useful,
619
# but WITHOUT ANY WARRANTY; without even the implied warranty of
620
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
621
# GNU General Public License for more details.
623
# You should have received a copy of the GNU General Public License
624
# along with this program; if not, write to the Free Software
625
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
604
# This file is free software; the Free Software Foundation
605
# gives unlimited permission to copy and/or distribute it,
606
# with or without modifications, as long as this notice is preserved.
630
610
AC_DEFUN([AM_MAINTAINER_MODE],
631
611
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
645
625
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
647
# Check to see how 'make' treats includes. -*- Autoconf -*-
649
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
651
# This program is free software; you can redistribute it and/or modify
652
# it under the terms of the GNU General Public License as published by
653
# the Free Software Foundation; either version 2, or (at your option)
656
# This program is distributed in the hope that it will be useful,
657
# but WITHOUT ANY WARRANTY; without even the implied warranty of
658
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
659
# GNU General Public License for more details.
661
# You should have received a copy of the GNU General Public License
662
# along with this program; if not, write to the Free Software
663
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
627
# Check to see how 'make' treats includes. -*- Autoconf -*-
629
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
631
# This file is free software; the Free Software Foundation
632
# gives unlimited permission to copy and/or distribute it,
633
# with or without modifications, as long as this notice is preserved.
668
637
# AM_MAKE_INCLUDE()
669
638
# -----------------
707
676
rm -f confinc confmf
713
# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
715
# This program is free software; you can redistribute it and/or modify
716
# it under the terms of the GNU General Public License as published by
717
# the Free Software Foundation; either version 2, or (at your option)
720
# This program is distributed in the hope that it will be useful,
721
# but WITHOUT ANY WARRANTY; without even the implied warranty of
722
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
723
# GNU General Public License for more details.
725
# You should have received a copy of the GNU General Public License
726
# along with this program; if not, write to the Free Software
727
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
679
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005
680
# Free Software Foundation, Inc.
682
# This file is free software; the Free Software Foundation
683
# gives unlimited permission to copy and/or distribute it,
684
# with or without modifications, as long as this notice is preserved.
690
# Like AC_PROG_CC_C_O, but changed for automake.
691
AC_DEFUN([AM_PROG_CC_C_O],
692
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
693
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
694
AC_REQUIRE_AUX_FILE([compile])dnl
695
# FIXME: we rely on the cache variable name because
696
# there is no other way.
698
ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
699
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
700
# Losing compiler, so override with the script.
701
# FIXME: It is wrong to rewrite CC.
702
# But if we don't then we get into trouble of one sort or another.
703
# A longer-term fix would be to have automake use am__CC in this case,
704
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
705
CC="$am_aux_dir/compile $CC"
707
dnl Make sure AC_PROG_CC is never called again, or it will override our
709
m4_define([AC_PROG_CC],
710
[m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
713
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
715
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
716
# Free Software Foundation, Inc.
718
# This file is free software; the Free Software Foundation
719
# gives unlimited permission to copy and/or distribute it,
720
# with or without modifications, as long as this notice is preserved.
732
724
# AM_MISSING_PROG(NAME, PROGRAM)
733
725
# ------------------------------
749
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
751
# This file is free software; the Free Software Foundation
752
# gives unlimited permission to copy and/or distribute it,
753
# with or without modifications, as long as this notice is preserved.
756
755
# AM_PROG_MKDIR_P
757
756
# ---------------
758
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
760
# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
762
# This program is free software; you can redistribute it and/or modify
763
# it under the terms of the GNU General Public License as published by
764
# the Free Software Foundation; either version 2, or (at your option)
767
# This program is distributed in the hope that it will be useful,
768
# but WITHOUT ANY WARRANTY; without even the implied warranty of
769
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
770
# GNU General Public License for more details.
772
# You should have received a copy of the GNU General Public License
773
# along with this program; if not, write to the Free Software
774
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
777
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
778
# created by `make install' are always world readable, even if the
779
# installer happens to have an overly restrictive umask (e.g. 077).
780
# This was a mistake. There are at least two reasons why we must not
782
# - it causes special bits like SGID to be ignored,
783
# - it may be too restrictive (some setups expect 775 directories).
785
# Do not use -m 0755 and let people choose whatever they expect by
788
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
789
# Some implementations (such as Solaris 8's) are not thread-safe: if a
790
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
791
# concurrently, both version can detect that a/ is missing, but only
792
# one can create it and the other will error out. Consequently we
793
# restrict ourselves to GNU make (using the --version option ensures
757
# Check for `mkdir -p'.
795
758
AC_DEFUN([AM_PROG_MKDIR_P],
796
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
797
# We used to keeping the `.' as first argument, in order to
798
# allow $(mkdir_p) to be used without argument. As in
799
# $(mkdir_p) $(somedir)
800
# where $(somedir) is conditionally defined. However this is wrong
802
# 1. if the package is installed by a user who cannot write `.'
803
# make install will fail,
804
# 2. the above comment should most certainly read
805
# $(mkdir_p) $(DESTDIR)$(somedir)
806
# so it does not work when $(somedir) is undefined and
808
# To support the latter case, we have to write
809
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
810
# so the `.' trick is pointless.
811
mkdir_p='mkdir -p --'
813
# On NextStep and OpenStep, the `mkdir' command does not
814
# recognize any option. It will interpret all options as
815
# directories to create, and then abort because `.' already
817
for d in ./-p ./--version;
819
test -d $d && rmdir $d
821
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
822
if test -f "$ac_aux_dir/mkinstalldirs"; then
823
mkdir_p='$(mkinstalldirs)'
825
mkdir_p='$(install_sh) -d'
828
AC_SUBST([mkdir_p])])
830
# Helper functions for option handling. -*- Autoconf -*-
832
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
834
# This program is free software; you can redistribute it and/or modify
835
# it under the terms of the GNU General Public License as published by
836
# the Free Software Foundation; either version 2, or (at your option)
839
# This program is distributed in the hope that it will be useful,
840
# but WITHOUT ANY WARRANTY; without even the implied warranty of
841
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
842
# GNU General Public License for more details.
844
# You should have received a copy of the GNU General Public License
845
# along with this program; if not, write to the Free Software
846
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
759
[AC_PREREQ([2.60])dnl
760
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
761
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
762
dnl while keeping a definition of mkdir_p for backward compatibility.
763
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
764
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
765
dnl Makefile.ins that do not define MKDIR_P, so we do our own
766
dnl adjustment using top_builddir (which is defined more often than
768
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
770
[[\\/$]]* | ?:[[\\/]]*) ;;
771
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
775
# Helper functions for option handling. -*- Autoconf -*-
777
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
779
# This file is free software; the Free Software Foundation
780
# gives unlimited permission to copy and/or distribute it,
781
# with or without modifications, as long as this notice is preserved.
851
785
# _AM_MANGLE_OPTION(NAME)
852
786
# -----------------------
871
805
AC_DEFUN([_AM_IF_OPTION],
872
806
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
875
# Check to make sure that the build environment is sane.
878
# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
880
# This program is free software; you can redistribute it and/or modify
881
# it under the terms of the GNU General Public License as published by
882
# the Free Software Foundation; either version 2, or (at your option)
885
# This program is distributed in the hope that it will be useful,
886
# but WITHOUT ANY WARRANTY; without even the implied warranty of
887
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
888
# GNU General Public License for more details.
890
# You should have received a copy of the GNU General Public License
891
# along with this program; if not, write to the Free Software
892
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
808
# Check to make sure that the build environment is sane. -*- Autoconf -*-
810
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
811
# Free Software Foundation, Inc.
813
# This file is free software; the Free Software Foundation
814
# gives unlimited permission to copy and/or distribute it,
815
# with or without modifications, as long as this notice is preserved.
897
819
# AM_SANITY_CHECK
898
820
# ---------------
971
882
if test "$cross_compiling" != no; then
972
883
AC_CHECK_TOOL([STRIP], [strip], :)
974
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
885
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
975
886
AC_SUBST([INSTALL_STRIP_PROGRAM])])
888
# Copyright (C) 2006 Free Software Foundation, Inc.
890
# This file is free software; the Free Software Foundation
891
# gives unlimited permission to copy and/or distribute it,
892
# with or without modifications, as long as this notice is preserved.
894
# _AM_SUBST_NOTMAKE(VARIABLE)
895
# ---------------------------
896
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
897
# This macro is traced by Automake.
898
AC_DEFUN([_AM_SUBST_NOTMAKE])
977
900
# Check how to create a tarball. -*- Autoconf -*-
979
# Copyright (C) 2004 Free Software Foundation, Inc.
981
# This program is free software; you can redistribute it and/or modify
982
# it under the terms of the GNU General Public License as published by
983
# the Free Software Foundation; either version 2, or (at your option)
986
# This program is distributed in the hope that it will be useful,
987
# but WITHOUT ANY WARRANTY; without even the implied warranty of
988
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
989
# GNU General Public License for more details.
991
# You should have received a copy of the GNU General Public License
992
# along with this program; if not, write to the Free Software
993
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
902
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
904
# This file is free software; the Free Software Foundation
905
# gives unlimited permission to copy and/or distribute it,
906
# with or without modifications, as long as this notice is preserved.
999
910
# _AM_PROG_TAR(FORMAT)
1000
911
# --------------------