480
486
[PKG_CHECK_EXISTS([gtk-doc],,
481
487
AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
482
488
[PKG_CHECK_EXISTS([gtk-doc >= $1],,
483
AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build gtk-doc]))])
489
AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))])
486
492
AC_MSG_CHECKING([whether to build gtk-doc documentation])
487
493
AC_MSG_RESULT($enable_gtk_doc)
489
AC_PATH_PROGS(GTKDOC_CHECK,gtkdoc-check,)
495
dnl enable/disable output formats
496
AC_ARG_ENABLE([gtk-doc-html],
497
AS_HELP_STRING([--enable-gtk-doc-html],
498
[build documentation in html format [[default=yes]]]),,
499
[enable_gtk_doc_html=yes])
500
AC_ARG_ENABLE([gtk-doc-pdf],
501
AS_HELP_STRING([--enable-gtk-doc-pdf],
502
[build documentation in pdf format [[default=no]]]),,
503
[enable_gtk_doc_pdf=no])
505
if test -z "$GTKDOC_MKPDF"; then
506
enable_gtk_doc_pdf=no
491
510
AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
511
AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes])
512
AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes])
492
513
AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
514
AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"])
518
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
519
# serial 40 IT_PROG_INTLTOOL
520
AC_DEFUN([IT_PROG_INTLTOOL], [
522
AC_REQUIRE([AM_NLS])dnl
524
case "$am__api_version" in
526
AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
532
if test -n "$1"; then
533
AC_MSG_CHECKING([for intltool >= $1])
535
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
536
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
537
[INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
539
AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
540
test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
541
AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
544
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
545
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
546
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
547
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
548
AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
551
INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.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 $< [$]@'
552
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.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 $< [$]@'
553
INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
554
INTLTOOL_PROP_RULE='%.prop: %.prop.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 $< [$]@'
555
INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
556
INTLTOOL_PONG_RULE='%.pong: %.pong.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 $< [$]@'
557
INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
558
INTLTOOL_SHEET_RULE='%.sheet: %.sheet.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 $< [$]@'
559
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.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 $< [$]@'
560
INTLTOOL_UI_RULE='%.ui: %.ui.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 $< [$]@'
561
INTLTOOL_XML_RULE='%.xml: %.xml.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 $< [$]@'
562
INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@'
563
INTLTOOL_XAM_RULE='%.xam: %.xml.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 $< [$]@'
564
INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
565
INTLTOOL_CAVES_RULE='%.caves: %.caves.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 $< [$]@'
566
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 $< [$]@'
567
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 $< [$]@'
568
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 $< [$]@'
569
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 $< [$]@'
571
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
572
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
573
_IT_SUBST(INTLTOOL_KEYS_RULE)
574
_IT_SUBST(INTLTOOL_PROP_RULE)
575
_IT_SUBST(INTLTOOL_OAF_RULE)
576
_IT_SUBST(INTLTOOL_PONG_RULE)
577
_IT_SUBST(INTLTOOL_SERVER_RULE)
578
_IT_SUBST(INTLTOOL_SHEET_RULE)
579
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
580
_IT_SUBST(INTLTOOL_UI_RULE)
581
_IT_SUBST(INTLTOOL_XAM_RULE)
582
_IT_SUBST(INTLTOOL_KBD_RULE)
583
_IT_SUBST(INTLTOOL_XML_RULE)
584
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
585
_IT_SUBST(INTLTOOL_CAVES_RULE)
586
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
587
_IT_SUBST(INTLTOOL_THEME_RULE)
588
_IT_SUBST(INTLTOOL_SERVICE_RULE)
589
_IT_SUBST(INTLTOOL_POLICY_RULE)
591
# Check the gettext tools to make sure they are GNU
592
AC_PATH_PROG(XGETTEXT, xgettext)
593
AC_PATH_PROG(MSGMERGE, msgmerge)
594
AC_PATH_PROG(MSGFMT, msgfmt)
595
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
596
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
597
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
599
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
600
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
601
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
602
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
603
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
606
AC_PATH_PROG(INTLTOOL_PERL, perl)
607
if test -z "$INTLTOOL_PERL"; then
608
AC_MSG_ERROR([perl not found])
610
AC_MSG_CHECKING([for perl >= 5.8.1])
611
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
612
if test $? -ne 0; then
613
AC_MSG_ERROR([perl 5.8.1 is required for intltool])
615
IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
616
AC_MSG_RESULT([$IT_PERL_VERSION])
618
if test "x$2" != "xno-xml"; then
619
AC_MSG_CHECKING([for XML::Parser])
620
if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
623
AC_MSG_ERROR([XML::Parser perl module is required for intltool])
627
# Substitute ALL_LINGUAS so we can use it in po/Makefile
628
AC_SUBST(ALL_LINGUAS)
630
# Set DATADIRNAME correctly if it is not set yet
631
# (copied from glib-gettext.m4)
632
if test -z "$DATADIRNAME"; then
634
[AC_LANG_PROGRAM([[]],
635
[[extern int _nl_msg_cat_cntr;
636
return _nl_msg_cat_cntr]])],
640
dnl On Solaris, if bind_textdomain_codeset is in libc,
641
dnl GNU format message catalog is always supported,
642
dnl since both are added to the libc all together.
643
dnl Hence, we'd like to go with DATADIRNAME=share
645
AC_CHECK_FUNC(bind_textdomain_codeset,
646
[DATADIRNAME=share], [DATADIRNAME=lib])
653
AC_SUBST(DATADIRNAME)
660
# IT_PO_SUBDIR(DIRNAME)
661
# ---------------------
662
# All po subdirs have to be declared with this macro; the subdir "po" is
663
# declared by IT_PROG_INTLTOOL.
665
AC_DEFUN([IT_PO_SUBDIR],
666
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
668
dnl The following CONFIG_COMMANDS should be executed at the very end
669
dnl of config.status.
670
AC_CONFIG_COMMANDS_PRE([
671
AC_CONFIG_COMMANDS([$1/stamp-it], [
672
if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
673
AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
675
rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
680
'"s|^| $ac_top_srcdir/|" \
681
"$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
683
[sed '/^POTFILES =/,/[^\\]$/ {
687
' "$1/Makefile.in" >"$1/Makefile"]
688
rm -f "$1/Makefile.tmp"
689
mv "$1/stamp-it.tmp" "$1/stamp-it"
694
# _IT_SUBST(VARIABLE)
695
# -------------------
696
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
698
AC_DEFUN([_IT_SUBST],
701
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
706
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
707
# A hint is needed for aclocal from Automake <= 1.9.4:
708
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
495
711
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
8849
9153
# Generate code to set up dependency tracking. -*- Autoconf -*-
8851
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
9155
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
8852
9156
# Free Software Foundation, Inc.
8854
9158
# This file is free software; the Free Software Foundation
8855
9159
# gives unlimited permission to copy and/or distribute it,
8856
9160
# with or without modifications, as long as this notice is preserved.
8860
9164
# _AM_OUTPUT_DEPENDENCY_COMMANDS
8861
9165
# ------------------------------
8862
9166
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
8863
[for mf in $CONFIG_FILES; do
8864
# Strip MF so we end up with the name of the file.
8865
mf=`echo "$mf" | sed -e 's/:.*$//'`
8866
# Check whether this is an Automake generated Makefile or not.
8867
# We used to match only the files named `Makefile.in', but
8868
# some people rename them; so instead we look at the file content.
8869
# Grep'ing the first line is not enough: some people post-process
8870
# each Makefile.in and add a new line on top of each file to say so.
8871
# Grep'ing the whole file is not good either: AIX grep has a line
8872
# limit of 2048, but all sed's we know have understand at least 4000.
8873
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8874
dirpart=`AS_DIRNAME("$mf")`
8878
# Extract the definition of DEPDIR, am__include, and am__quote
8879
# from the Makefile without running `make'.
8880
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8881
test -z "$DEPDIR" && continue
8882
am__include=`sed -n 's/^am__include = //p' < "$mf"`
8883
test -z "am__include" && continue
8884
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8885
# When using ansi2knr, U may be empty or an underscore; expand it
8886
U=`sed -n 's/^U = //p' < "$mf"`
8887
# Find all dependency output files, they are included files with
8888
# $(DEPDIR) in their names. We invoke sed twice because it is the
8889
# simplest approach to changing $(DEPDIR) to its actual value in the
8891
for file in `sed -n "
8892
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8893
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8894
# Make sure the directory exists.
8895
test -f "$dirpart/$file" && continue
8896
fdir=`AS_DIRNAME(["$file"])`
8897
AS_MKDIR_P([$dirpart/$fdir])
8898
# echo "creating $dirpart/$file"
8899
echo '# dummy' > "$dirpart/$file"
9168
# Autoconf 2.62 quotes --file arguments for eval, but not when files
9169
# are listed without --file. Let's play safe and only enable the eval
9170
# if we detect the quoting.
9171
case $CONFIG_FILES in
9172
*\'*) eval set x "$CONFIG_FILES" ;;
9173
*) set x $CONFIG_FILES ;;
9178
# Strip MF so we end up with the name of the file.
9179
mf=`echo "$mf" | sed -e 's/:.*$//'`
9180
# Check whether this is an Automake generated Makefile or not.
9181
# We used to match only the files named `Makefile.in', but
9182
# some people rename them; so instead we look at the file content.
9183
# Grep'ing the first line is not enough: some people post-process
9184
# each Makefile.in and add a new line on top of each file to say so.
9185
# Grep'ing the whole file is not good either: AIX grep has a line
9186
# limit of 2048, but all sed's we know have understand at least 4000.
9187
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9188
dirpart=`AS_DIRNAME("$mf")`
9192
# Extract the definition of DEPDIR, am__include, and am__quote
9193
# from the Makefile without running `make'.
9194
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9195
test -z "$DEPDIR" && continue
9196
am__include=`sed -n 's/^am__include = //p' < "$mf"`
9197
test -z "am__include" && continue
9198
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9199
# When using ansi2knr, U may be empty or an underscore; expand it
9200
U=`sed -n 's/^U = //p' < "$mf"`
9201
# Find all dependency output files, they are included files with
9202
# $(DEPDIR) in their names. We invoke sed twice because it is the
9203
# simplest approach to changing $(DEPDIR) to its actual value in the
9205
for file in `sed -n "
9206
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9207
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9208
# Make sure the directory exists.
9209
test -f "$dirpart/$file" && continue
9210
fdir=`AS_DIRNAME(["$file"])`
9211
AS_MKDIR_P([$dirpart/$fdir])
9212
# echo "creating $dirpart/$file"
9213
echo '# dummy' > "$dirpart/$file"
8902
9217
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
9013
9328
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
9014
9329
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9015
9330
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
9016
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
9017
[_AM_PROG_TAR([v7])])])
9331
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
9332
[_AM_PROG_TAR([v7])])])
9018
9333
_AM_IF_OPTION([no-dependencies],,
9019
9334
[AC_PROVIDE_IFELSE([AC_PROG_CC],
9020
[_AM_DEPENDENCIES(CC)],
9021
[define([AC_PROG_CC],
9022
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
9335
[_AM_DEPENDENCIES(CC)],
9336
[define([AC_PROG_CC],
9337
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
9023
9338
AC_PROVIDE_IFELSE([AC_PROG_CXX],
9024
[_AM_DEPENDENCIES(CXX)],
9025
[define([AC_PROG_CXX],
9026
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
9339
[_AM_DEPENDENCIES(CXX)],
9340
[define([AC_PROG_CXX],
9341
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
9027
9342
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
9028
[_AM_DEPENDENCIES(OBJC)],
9029
[define([AC_PROG_OBJC],
9030
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
9343
[_AM_DEPENDENCIES(OBJC)],
9344
[define([AC_PROG_OBJC],
9345
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
9347
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
9348
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
9349
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
9350
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
9351
AC_CONFIG_COMMANDS_PRE(dnl
9352
[m4_provide_if([_AM_COMPILER_EXEEXT],
9353
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
9356
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
9357
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
9358
dnl mangled by Autoconf and run in a shell conditional statement.
9359
m4_define([_AC_COMPILER_EXEEXT],
9360
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
9035
9363
# When config.status generates a header, we must update the stamp-h file.
9091
9426
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
9092
9427
# From Jim Meyering
9094
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
9429
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9095
9430
# Free Software Foundation, Inc.
9097
9432
# This file is free software; the Free Software Foundation
9098
9433
# gives unlimited permission to copy and/or distribute it,
9099
9434
# with or without modifications, as long as this notice is preserved.
9438
# AM_MAINTAINER_MODE([DEFAULT-MODE])
9439
# ----------------------------------
9440
# Control maintainer-specific portions of Makefiles.
9441
# Default is to disable them, unless `enable' is passed literally.
9442
# For symmetry, `disable' may be passed as well. Anyway, the user
9443
# can override the default with the --enable/--disable switch.
9103
9444
AC_DEFUN([AM_MAINTAINER_MODE],
9104
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
9105
dnl maintainer-mode is disabled by default
9106
AC_ARG_ENABLE(maintainer-mode,
9107
[ --enable-maintainer-mode enable make rules and dependencies not useful
9445
[m4_case(m4_default([$1], [disable]),
9446
[enable], [m4_define([am_maintainer_other], [disable])],
9447
[disable], [m4_define([am_maintainer_other], [enable])],
9448
[m4_define([am_maintainer_other], [enable])
9449
m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
9450
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
9451
dnl maintainer-mode's default is 'disable' unless 'enable' is passed
9452
AC_ARG_ENABLE([maintainer-mode],
9453
[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
9108
9454
(and sometimes confusing) to the casual installer],
9109
USE_MAINTAINER_MODE=$enableval,
9110
USE_MAINTAINER_MODE=no)
9455
[USE_MAINTAINER_MODE=$enableval],
9456
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
9111
9457
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
9112
AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
9458
AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
9113
9459
MAINT=$MAINTAINER_MODE_TRUE
9460
AC_SUBST([MAINT])dnl