11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
14
# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
16
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
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
37
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
38
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
40
# Do all the work for Automake. -*- Autoconf -*-
42
# This macro actually does too much some checks are only needed if
43
# your package does certain things. But this isn't really a big deal.
45
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
46
# Free Software Foundation, Inc.
48
# This program is free software; you can redistribute it and/or modify
49
# it under the terms of the GNU General Public License as published by
50
# the Free Software Foundation; either version 2, or (at your option)
53
# This program is distributed in the hope that it will be useful,
54
# but WITHOUT ANY WARRANTY; without even the implied warranty of
55
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
56
# GNU General Public License for more details.
58
# You should have received a copy of the GNU General Public License
59
# along with this program; if not, write to the Free Software
60
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
67
# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
68
# the ones we care about.
69
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
71
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
72
# AM_INIT_AUTOMAKE([OPTIONS])
73
# -----------------------------------------------
74
# The call with PACKAGE and VERSION arguments is the old style
75
# call (pre autoconf-2.50), which is being phased out. PACKAGE
76
# and VERSION should now be passed to AC_INIT and removed from
77
# the call to AM_INIT_AUTOMAKE.
78
# We support both call styles for the transition. After
79
# the next Automake release, Autoconf can make the AC_INIT
80
# arguments mandatory, and then we can depend on a new Autoconf
81
# release and drop the old call support.
82
AC_DEFUN([AM_INIT_AUTOMAKE],
83
[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
84
AC_REQUIRE([AC_PROG_INSTALL])dnl
85
# test to see if srcdir already configured
86
if test "`cd $srcdir && pwd`" != "`pwd`" &&
87
test -f $srcdir/config.status; then
88
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
91
# test whether we have cygpath
92
if test -z "$CYGPATH_W"; then
93
if (cygpath --version) >/dev/null 2>/dev/null; then
94
CYGPATH_W='cygpath -w'
101
# Define the identity of the package.
102
dnl Distinguish between old-style and new-style calls.
104
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
105
AC_SUBST([PACKAGE], [$1])dnl
106
AC_SUBST([VERSION], [$2])],
107
[_AM_SET_OPTIONS([$1])dnl
108
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
109
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
111
_AM_IF_OPTION([no-define],,
112
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
113
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
115
# Some tools Automake needs.
116
AC_REQUIRE([AM_SANITY_CHECK])dnl
117
AC_REQUIRE([AC_ARG_PROGRAM])dnl
118
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
119
AM_MISSING_PROG(AUTOCONF, autoconf)
120
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
121
AM_MISSING_PROG(AUTOHEADER, autoheader)
122
AM_MISSING_PROG(MAKEINFO, makeinfo)
123
AM_MISSING_PROG(AMTAR, tar)
125
AM_PROG_INSTALL_STRIP
126
# We need awk for the "check" target. The system "awk" is bad on
128
AC_REQUIRE([AC_PROG_AWK])dnl
129
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
130
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
132
_AM_IF_OPTION([no-dependencies],,
133
[AC_PROVIDE_IFELSE([AC_PROG_CC],
134
[_AM_DEPENDENCIES(CC)],
135
[define([AC_PROG_CC],
136
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
137
AC_PROVIDE_IFELSE([AC_PROG_CXX],
138
[_AM_DEPENDENCIES(CXX)],
139
[define([AC_PROG_CXX],
140
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
145
# When config.status generates a header, we must update the stamp-h file.
146
# This file resides in the same directory as the config header
147
# that is generated. The stamp files are numbered to have different names.
149
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
150
# loop where config.status creates the headers, so we can generate
151
# our stamp files there.
152
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
153
[# Compute $1's index in $config_headers.
155
for _am_header in $config_headers :; do
160
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
163
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
165
# Copyright 2002 Free Software Foundation, Inc.
167
# This program is free software; you can redistribute it and/or modify
168
# it under the terms of the GNU General Public License as published by
169
# the Free Software Foundation; either version 2, or (at your option)
172
# This program is distributed in the hope that it will be useful,
173
# but WITHOUT ANY WARRANTY; without even the implied warranty of
174
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
175
# GNU General Public License for more details.
177
# You should have received a copy of the GNU General Public License
178
# along with this program; if not, write to the Free Software
179
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
181
# AM_AUTOMAKE_VERSION(VERSION)
182
# ----------------------------
183
# Automake X.Y traces this macro to ensure aclocal.m4 has been
184
# generated from the m4 files accompanying Automake X.Y.
185
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
187
# AM_SET_CURRENT_AUTOMAKE_VERSION
188
# -------------------------------
189
# Call AM_AUTOMAKE_VERSION so it can be traced.
190
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
191
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
192
[AM_AUTOMAKE_VERSION([1.7.6])])
194
# Helper functions for option handling. -*- Autoconf -*-
196
# Copyright 2001, 2002 Free Software Foundation, Inc.
198
# This program is free software; you can redistribute it and/or modify
199
# it under the terms of the GNU General Public License as published by
200
# the Free Software Foundation; either version 2, or (at your option)
203
# This program is distributed in the hope that it will be useful,
204
# but WITHOUT ANY WARRANTY; without even the implied warranty of
205
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
206
# GNU General Public License for more details.
208
# You should have received a copy of the GNU General Public License
209
# along with this program; if not, write to the Free Software
210
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
215
# _AM_MANGLE_OPTION(NAME)
216
# -----------------------
217
AC_DEFUN([_AM_MANGLE_OPTION],
218
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
220
# _AM_SET_OPTION(NAME)
221
# ------------------------------
222
# Set option NAME. Presently that only means defining a flag for this option.
223
AC_DEFUN([_AM_SET_OPTION],
224
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
226
# _AM_SET_OPTIONS(OPTIONS)
227
# ----------------------------------
228
# OPTIONS is a space-separated list of Automake options.
229
AC_DEFUN([_AM_SET_OPTIONS],
230
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
232
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
233
# -------------------------------------------
234
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
235
AC_DEFUN([_AM_IF_OPTION],
236
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
239
# Check to make sure that the build environment is sane.
242
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
244
# This program is free software; you can redistribute it and/or modify
245
# it under the terms of the GNU General Public License as published by
246
# the Free Software Foundation; either version 2, or (at your option)
249
# This program is distributed in the hope that it will be useful,
250
# but WITHOUT ANY WARRANTY; without even the implied warranty of
251
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
252
# GNU General Public License for more details.
254
# You should have received a copy of the GNU General Public License
255
# along with this program; if not, write to the Free Software
256
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
263
AC_DEFUN([AM_SANITY_CHECK],
264
[AC_MSG_CHECKING([whether build environment is sane])
267
echo timestamp > conftest.file
268
# Do `set' in a subshell so we don't clobber the current shell's
269
# arguments. Must try -L first in case configure is actually a
270
# symlink; some systems play weird games with the mod time of symlinks
271
# (eg FreeBSD returns the mod time of the symlink's containing
274
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
275
if test "$[*]" = "X"; then
277
set X `ls -t $srcdir/configure conftest.file`
280
if test "$[*]" != "X $srcdir/configure conftest.file" \
281
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
283
# If neither matched, then we have a broken ls. This can happen
284
# if, for instance, CONFIG_SHELL is bash and it inherits a
285
# broken ls alias from the environment. This has actually
286
# happened. Such a system could not be considered "sane".
287
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
288
alias in your environment])
291
test "$[2]" = conftest.file
297
AC_MSG_ERROR([newly created file is older than distributed files!
298
Check your system clock])
305
# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
307
# This program is free software; you can redistribute it and/or modify
308
# it under the terms of the GNU General Public License as published by
309
# the Free Software Foundation; either version 2, or (at your option)
312
# This program is distributed in the hope that it will be useful,
313
# but WITHOUT ANY WARRANTY; without even the implied warranty of
314
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
315
# GNU General Public License for more details.
317
# You should have received a copy of the GNU General Public License
318
# along with this program; if not, write to the Free Software
319
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
324
# AM_MISSING_PROG(NAME, PROGRAM)
325
# ------------------------------
326
AC_DEFUN([AM_MISSING_PROG],
327
[AC_REQUIRE([AM_MISSING_HAS_RUN])
328
$1=${$1-"${am_missing_run}$2"}
334
# Define MISSING if not defined so far and test if it supports --run.
335
# If it does, set am_missing_run to use it, otherwise, to nothing.
336
AC_DEFUN([AM_MISSING_HAS_RUN],
337
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
338
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
339
# Use eval to expand $SHELL
340
if eval "$MISSING --run true"; then
341
am_missing_run="$MISSING --run "
344
AC_MSG_WARN([`missing' script is too old or missing])
350
# Copyright 2001 Free Software Foundation, Inc.
352
# This program is free software; you can redistribute it and/or modify
353
# it under the terms of the GNU General Public License as published by
354
# the Free Software Foundation; either version 2, or (at your option)
357
# This program is distributed in the hope that it will be useful,
358
# but WITHOUT ANY WARRANTY; without even the implied warranty of
359
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
360
# GNU General Public License for more details.
362
# You should have received a copy of the GNU General Public License
363
# along with this program; if not, write to the Free Software
364
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
367
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
368
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
369
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
371
# Of course, Automake must honor this variable whenever it calls a
372
# tool from the auxiliary directory. The problem is that $srcdir (and
373
# therefore $ac_aux_dir as well) can be either absolute or relative,
374
# depending on how configure is run. This is pretty annoying, since
375
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
376
# source directory, any form will work fine, but in subdirectories a
377
# relative path needs to be adjusted first.
379
# $ac_aux_dir/missing
380
# fails when called from a subdirectory if $ac_aux_dir is relative
381
# $top_srcdir/$ac_aux_dir/missing
382
# fails if $ac_aux_dir is absolute,
383
# fails when called from a subdirectory in a VPATH build with
384
# a relative $ac_aux_dir
386
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
387
# are both prefixed by $srcdir. In an in-source build this is usually
388
# harmless because $srcdir is `.', but things will broke when you
389
# start a VPATH build or use an absolute $srcdir.
391
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
392
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
393
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
394
# and then we would define $MISSING as
395
# MISSING="\${SHELL} $am_aux_dir/missing"
396
# This will work as long as MISSING is not called from configure, because
397
# unfortunately $(top_srcdir) has no meaning in configure.
398
# However there are other variables, like CC, which are often used in
399
# configure, and could therefore not use this "fixed" $ac_aux_dir.
401
# Another solution, used here, is to always expand $ac_aux_dir to an
402
# absolute PATH. The drawback is that using absolute paths prevent a
403
# configured tree to be moved without reconfiguration.
405
# Rely on autoconf to set up CDPATH properly.
408
AC_DEFUN([AM_AUX_DIR_EXPAND], [
409
# expand $ac_aux_dir to an absolute path
410
am_aux_dir=`cd $ac_aux_dir && pwd`
415
# Define $install_sh.
417
# Copyright 2001 Free Software Foundation, Inc.
419
# This program is free software; you can redistribute it and/or modify
420
# it under the terms of the GNU General Public License as published by
421
# the Free Software Foundation; either version 2, or (at your option)
424
# This program is distributed in the hope that it will be useful,
425
# but WITHOUT ANY WARRANTY; without even the implied warranty of
426
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
427
# GNU General Public License for more details.
429
# You should have received a copy of the GNU General Public License
430
# along with this program; if not, write to the Free Software
431
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
434
AC_DEFUN([AM_PROG_INSTALL_SH],
435
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
436
install_sh=${install_sh-"$am_aux_dir/install-sh"}
437
AC_SUBST(install_sh)])
439
# AM_PROG_INSTALL_STRIP
441
# Copyright 2001 Free Software Foundation, Inc.
443
# This program is free software; you can redistribute it and/or modify
444
# it under the terms of the GNU General Public License as published by
445
# the Free Software Foundation; either version 2, or (at your option)
448
# This program is distributed in the hope that it will be useful,
449
# but WITHOUT ANY WARRANTY; without even the implied warranty of
450
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
451
# GNU General Public License for more details.
453
# You should have received a copy of the GNU General Public License
454
# along with this program; if not, write to the Free Software
455
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
458
# One issue with vendor `install' (even GNU) is that you can't
459
# specify the program used to strip binaries. This is especially
460
# annoying in cross-compiling environments, where the build's strip
461
# is unlikely to handle the host's binaries.
462
# Fortunately install-sh will honor a STRIPPROG variable, so we
463
# always use install-sh in `make install-strip', and initialize
464
# STRIPPROG with the value of the STRIP variable (set by the user).
465
AC_DEFUN([AM_PROG_INSTALL_STRIP],
466
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
467
# Installed binaries are usually stripped using `strip' when the user
468
# run `make install-strip'. However `strip' might not be the right
469
# tool to use in cross-compilation environments, therefore Automake
470
# will honor the `STRIP' environment variable to overrule this program.
471
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
472
if test "$cross_compiling" != no; then
473
AC_CHECK_TOOL([STRIP], [strip], :)
475
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
476
AC_SUBST([INSTALL_STRIP_PROGRAM])])
479
# Copyright (C) 2003 Free Software Foundation, Inc.
481
# This program is free software; you can redistribute it and/or modify
482
# it under the terms of the GNU General Public License as published by
483
# the Free Software Foundation; either version 2, or (at your option)
486
# This program is distributed in the hope that it will be useful,
487
# but WITHOUT ANY WARRANTY; without even the implied warranty of
488
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
489
# GNU General Public License for more details.
491
# You should have received a copy of the GNU General Public License
492
# along with this program; if not, write to the Free Software
493
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
498
# Check whether the underlying file-system supports filenames
499
# with a leading dot. For instance MS-DOS doesn't.
500
AC_DEFUN([AM_SET_LEADING_DOT],
501
[rm -rf .tst 2>/dev/null
502
mkdir .tst 2>/dev/null
503
if test -d .tst; then
508
rmdir .tst 2>/dev/null
509
AC_SUBST([am__leading_dot])])
511
# serial 5 -*- Autoconf -*-
513
# Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
515
# This program is free software; you can redistribute it and/or modify
516
# it under the terms of the GNU General Public License as published by
517
# the Free Software Foundation; either version 2, or (at your option)
520
# This program is distributed in the hope that it will be useful,
521
# but WITHOUT ANY WARRANTY; without even the implied warranty of
522
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
523
# GNU General Public License for more details.
525
# You should have received a copy of the GNU General Public License
526
# along with this program; if not, write to the Free Software
527
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
531
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
532
# written in clear, in which case automake, when reading aclocal.m4,
533
# will think it sees a *use*, and therefore will trigger all it's
534
# C support machinery. Also note that it means that autoscan, seeing
535
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
539
# _AM_DEPENDENCIES(NAME)
540
# ----------------------
541
# See how the compiler implements dependency checking.
542
# NAME is "CC", "CXX", "GCJ", or "OBJC".
543
# We try a few techniques and use that to set a single cache variable.
545
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
546
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
547
# dependency, and given that the user is not expected to run this macro,
548
# just rely on AC_PROG_CC.
549
AC_DEFUN([_AM_DEPENDENCIES],
550
[AC_REQUIRE([AM_SET_DEPDIR])dnl
551
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
552
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
553
AC_REQUIRE([AM_DEP_TRACK])dnl
555
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
556
[$1], CXX, [depcc="$CXX" am_compiler_list=],
557
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
558
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
559
[depcc="$$1" am_compiler_list=])
561
AC_CACHE_CHECK([dependency style of $depcc],
562
[am_cv_$1_dependencies_compiler_type],
563
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
564
# We make a subdir and do the tests there. Otherwise we can end up
565
# making bogus files that we don't know about and never remove. For
566
# instance it was reported that on HP-UX the gcc test will end up
567
# making a dummy file named `D' -- because `-MD' means `put the output
570
# Copy depcomp to subdir because otherwise we won't find it if we're
571
# using a relative directory.
572
cp "$am_depcomp" conftest.dir
574
# We will build objects and dependencies in a subdirectory because
575
# it helps to detect inapplicable dependency modes. For instance
576
# both Tru64's cc and ICC support -MD to output dependencies as a
577
# side effect of compilation, but ICC will put the dependencies in
578
# the current directory while Tru64 will put them in the object
582
am_cv_$1_dependencies_compiler_type=none
583
if test "$am_compiler_list" = ""; then
584
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
586
for depmode in $am_compiler_list; do
587
# Setup a source with many dependencies, because some compilers
588
# like to wrap large dependency lists on column 80 (with \), and
589
# we should not choose a depcomp mode which is confused by this.
591
# We need to recreate these files for each test, as the compiler may
592
# overwrite some of them when testing with obscure command lines.
593
# This happens at least with the AIX C compiler.
595
for i in 1 2 3 4 5 6; do
596
echo '#include "conftst'$i'.h"' >> sub/conftest.c
599
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
603
# after this tag, mechanisms are not by side-effect, so they'll
604
# only be used when explicitly requested
605
if test "x$enable_dependency_tracking" = xyes; then
613
# We check with `-c' and `-o' for the sake of the "dashmstdout"
614
# mode. It turns out that the SunPro C++ compiler does not properly
615
# handle `-M -o', and we need to detect this.
616
if depmode=$depmode \
617
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
618
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
619
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
620
>/dev/null 2>conftest.err &&
621
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
622
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
623
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
624
# icc doesn't choke on unknown options, it will just issue warnings
625
# (even with -Werror). So we grep stderr for any message
626
# that says an option was ignored.
627
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
628
am_cv_$1_dependencies_compiler_type=$depmode
637
am_cv_$1_dependencies_compiler_type=none
640
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
641
AM_CONDITIONAL([am__fastdep$1], [
642
test "x$enable_dependency_tracking" != xno \
643
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
649
# Choose a directory name for dependency files.
650
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
651
AC_DEFUN([AM_SET_DEPDIR],
652
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
653
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
659
AC_DEFUN([AM_DEP_TRACK],
660
[AC_ARG_ENABLE(dependency-tracking,
661
[ --disable-dependency-tracking Speeds up one-time builds
662
--enable-dependency-tracking Do not reject slow dependency extractors])
663
if test "x$enable_dependency_tracking" != xno; then
664
am_depcomp="$ac_aux_dir/depcomp"
667
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
668
AC_SUBST([AMDEPBACKSLASH])
671
# Generate code to set up dependency tracking. -*- Autoconf -*-
673
# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
675
# This program is free software; you can redistribute it and/or modify
676
# it under the terms of the GNU General Public License as published by
677
# the Free Software Foundation; either version 2, or (at your option)
680
# This program is distributed in the hope that it will be useful,
681
# but WITHOUT ANY WARRANTY; without even the implied warranty of
682
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
683
# GNU General Public License for more details.
685
# You should have received a copy of the GNU General Public License
686
# along with this program; if not, write to the Free Software
687
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
692
# _AM_OUTPUT_DEPENDENCY_COMMANDS
693
# ------------------------------
694
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
695
[for mf in $CONFIG_FILES; do
696
# Strip MF so we end up with the name of the file.
697
mf=`echo "$mf" | sed -e 's/:.*$//'`
698
# Check whether this is an Automake generated Makefile or not.
699
# We used to match only the files named `Makefile.in', but
700
# some people rename them; so instead we look at the file content.
701
# Grep'ing the first line is not enough: some people post-process
702
# each Makefile.in and add a new line on top of each file to say so.
703
# So let's grep whole file.
704
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
705
dirpart=`AS_DIRNAME("$mf")`
709
grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
710
# Extract the definition of DEP_FILES from the Makefile without
712
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
713
test -z "$DEPDIR" && continue
714
# When using ansi2knr, U may be empty or an underscore; expand it
715
U=`sed -n -e '/^U = / s///p' < "$mf"`
716
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
717
# We invoke sed twice because it is the simplest approach to
718
# changing $(DEPDIR) to its actual value in the expansion.
719
for file in `sed -n -e '
720
/^DEP_FILES = .*\\\\$/ {
729
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
730
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
731
# Make sure the directory exists.
732
test -f "$dirpart/$file" && continue
733
fdir=`AS_DIRNAME(["$file"])`
734
AS_MKDIR_P([$dirpart/$fdir])
735
# echo "creating $dirpart/$file"
736
echo '# dummy' > "$dirpart/$file"
739
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
742
# AM_OUTPUT_DEPENDENCY_COMMANDS
743
# -----------------------------
744
# This macro should only be invoked once -- use via AC_REQUIRE.
746
# This code is only required when automatic dependency tracking
747
# is enabled. FIXME. This creates each `.P' file that we will
748
# need in order to bootstrap the dependency handling code.
749
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
750
[AC_CONFIG_COMMANDS([depfiles],
751
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
752
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
755
# Check to see how 'make' treats includes. -*- Autoconf -*-
757
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
759
# This program is free software; you can redistribute it and/or modify
760
# it under the terms of the GNU General Public License as published by
761
# the Free Software Foundation; either version 2, or (at your option)
764
# This program is distributed in the hope that it will be useful,
765
# but WITHOUT ANY WARRANTY; without even the implied warranty of
766
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
767
# GNU General Public License for more details.
769
# You should have received a copy of the GNU General Public License
770
# along with this program; if not, write to the Free Software
771
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
778
# Check to see how make treats includes.
779
AC_DEFUN([AM_MAKE_INCLUDE],
780
[am_make=${MAKE-make}
781
cat > confinc << 'END'
786
# If we don't find an include directive, just comment out the code.
787
AC_MSG_CHECKING([for style of include used by $am_make])
791
# First try GNU make style include.
792
echo "include confinc" > confmf
793
# We grep out `Entering directory' and `Leaving directory'
794
# messages which can occur if `w' ends up in MAKEFLAGS.
795
# In particular we don't look at `^make:' because GNU make might
796
# be invoked under some other name (usually "gmake"), in which
797
# case it prints its new name instead of `make'.
798
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
803
# Now try BSD make style include.
804
if test "$am__include" = "#"; then
805
echo '.include "confinc"' > confmf
806
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
812
AC_SUBST([am__include])
813
AC_SUBST([am__quote])
814
AC_MSG_RESULT([$_am_result])
818
# AM_CONDITIONAL -*- Autoconf -*-
820
# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
822
# This program is free software; you can redistribute it and/or modify
823
# it under the terms of the GNU General Public License as published by
824
# the Free Software Foundation; either version 2, or (at your option)
827
# This program is distributed in the hope that it will be useful,
828
# but WITHOUT ANY WARRANTY; without even the implied warranty of
829
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
830
# GNU General Public License for more details.
832
# You should have received a copy of the GNU General Public License
833
# along with this program; if not, write to the Free Software
834
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
841
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
842
# -------------------------------------
843
# Define a conditional.
844
AC_DEFUN([AM_CONDITIONAL],
845
[ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
846
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
856
AC_CONFIG_COMMANDS_PRE(
857
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
858
AC_MSG_ERROR([conditional "$1" was never defined.
859
Usually this means the macro was only invoked conditionally.])
862
# Add --enable-maintainer-mode option to configure.
865
# Copyright 1996, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
867
# This program is free software; you can redistribute it and/or modify
868
# it under the terms of the GNU General Public License as published by
869
# the Free Software Foundation; either version 2, or (at your option)
872
# This program is distributed in the hope that it will be useful,
873
# but WITHOUT ANY WARRANTY; without even the implied warranty of
874
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
875
# GNU General Public License for more details.
877
# You should have received a copy of the GNU General Public License
878
# along with this program; if not, write to the Free Software
879
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
884
AC_DEFUN([AM_MAINTAINER_MODE],
885
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
886
dnl maintainer-mode is disabled by default
887
AC_ARG_ENABLE(maintainer-mode,
888
[ --enable-maintainer-mode enable make rules and dependencies not useful
889
(and sometimes confusing) to the casual installer],
890
USE_MAINTAINER_MODE=$enableval,
891
USE_MAINTAINER_MODE=no)
892
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
893
AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
894
MAINT=$MAINTAINER_MODE_TRUE
899
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
901
14
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
903
16
# serial 47 AC_PROG_LIBTOOL
6802
6191
SED=$lt_cv_path_SED
6804
6192
AC_MSG_RESULT([$SED])
6807
dnl From Benedikt Meurer (benedikt.meurer@unix-ag.uni-siegen.de)
6810
AC_DEFUN([BM_LIBX11],
6812
AC_REQUIRE([AC_PATH_XTRA])
6813
LIBX11_CFLAGS= LIBX11_LDFLAGS= LIBX11_LIBS=
6814
if test "$no_x" != "yes"; then
6815
AC_CHECK_LIB(X11, main,
6817
AC_DEFINE(HAVE_LIBX11, 1, Define if libX11 is available)
6818
LIBX11_CFLAGS="$X_CFLAGS"
6819
for option in $X_PRE_LIBS $X_EXTRA_LIBS $X_LIBS; do
6822
path=`echo $option | sed 's/^-L//'`
6823
if test x"$path" != x""; then
6824
LIBX11_LDFLAGS="$LIBX11_LDFLAGS -L$path"
6828
LIBX11_LIBS="$LIBX11_LIBS $option"
6832
if ! echo $LIBX11_LIBS | grep -- '-lX11' > /dev/null; then
6833
LIBX11_LIBS="$LIBX11_LIBS -lX11"
6835
], [], [$X_CFLAGS $X_PRE_LIBS $X_EXTRA_LIBS $X_LIBS])
6837
AC_SUBST(LIBX11_CFLAGS)
6838
AC_SUBST(LIBX11_LDFLAGS)
6839
AC_SUBST(LIBX11_LIBS)
6842
AC_DEFUN([BM_LIBX11_REQUIRE],
6844
AC_REQUIRE([BM_LIBX11])
6845
if test "$no_x" = "yes"; then
6846
AC_MSG_ERROR([X Window system libraries and header files are required])
6850
AC_DEFUN([BM_LIBSM],
6852
AC_REQUIRE([BM_LIBX11])
6853
LIBSM_CFLAGS= LIBSM_LDFLAGS= LIBSM_LIBS=
6854
if test "$no_x" != "yes"; then
6855
AC_CHECK_LIB(SM, SmcSaveYourselfDone,
6857
AC_DEFINE(HAVE_LIBSM, 1, Define if libSM is available)
6858
LIBSM_CFLAGS="$LIBX11_CFLAGS"
6859
LIBSM_LDFLAGS="$LIBX11_LDFLAGS"
6860
LIBSM_LIBS="$LIBX11_LIBS"
6861
if ! echo $LIBSM_LIBS | grep -- '-lSM' > /dev/null; then
6862
LIBSM_LIBS="$LIBSM_LIBS -lSM -lICE"
6864
], [], [$LIBX11_CFLAGS $LIBX11_LDFLAGS $LIBX11_LIBS -lICE])
6866
AC_SUBST(LIBSM_CFLAGS)
6867
AC_SUBST(LIBSM_LDFLAGS)
6868
AC_SUBST(LIBSM_LIBS)
6871
AC_DEFUN([BM_LIBXPM],
6873
AC_REQUIRE([BM_LIBX11])
6874
LIBXPM_CFLAGS= LIBXPM_LDFLAGS= LIBXPM_LIBS=
6875
if test "$no_x" != "yes"; then
6876
AC_CHECK_LIB(Xpm, main,
6878
AC_DEFINE([HAVE_LIBXPM], [1], [Define if libXpm is available])
6879
LIBXPM_CFLAGS="$LIBX11_CFLAGS"
6880
LIBXPM_LDFLAGS="$LIBX11_LDFLAGS"
6881
LIBXPM_LIBS="$LIBX11_LIBS"
6882
if ! echo $LIBXPM_LIBS | grep -- '-lXpm' > /dev/null; then
6883
LIBXPM_LIBS="$LIBXPM_LIBS -lXpm"
6885
], [], [$LIBX11_CFLAGS $LIBX11_LDFLAGS $LIBX11_LIBS -lXpm])
6887
AC_SUBST([LIBXPM_CFLAGS])
6888
AC_SUBST([LIBXPM_LDFLAGS])
6889
AC_SUBST([LIBXPM_LIBS])
6892
AC_DEFUN([BM_LIBXPM_REQUIRE],
6894
AC_REQUIRE([BM_LIBX11_REQUIRE])
6895
AC_REQUIRE([BM_LIBXPM])
6896
if test -z "$LIBXPM_LIBS"; then
6897
AC_MSG_ERROR([The Xpm library was not found on you system])
6901
AC_DEFUN([BM_LIBXINERAMA],
6903
AC_ARG_ENABLE(xinerama,
6904
AC_HELP_STRING([--enable-xinerama], [enable xinerama extension])
6905
AC_HELP_STRING([--disable-xinerama], [disable xinerama extension [default]]),
6906
[], [enable_xinerama=no])
6907
LIBXINERAMA_CFLAGS= LIBXINERAMA_LDFLAGS= LIBXINERAMA_LIBS=
6908
if test "x$enable_xinerama" = "xyes"; then
6909
AC_REQUIRE([BM_LIBX11_REQUIRE])
6910
AC_CHECK_LIB(Xinerama, XineramaQueryScreens,
6912
AC_DEFINE(HAVE_LIBXINERAMA, 1, Define if XFree86 Xinerama is available)
6913
LIBXINERAMA_CFLAGS="$LIBX11_CFLAGS"
6914
LIBXINERAMA_LDFLAGS="$LIBX11_LDFLAGS"
6915
LIBXINERAMA_LIBS="$LIBX11_LIBS"
6916
if ! echo $LIBXINERAMA_LIBS | grep -- '-lXinerama' > /dev/null; then
6917
LIBXINERAMA_LIBS="$LIBXINERAMA_LIBS -lXinerama"
6919
if ! echo $LIBXINERAMA_LIBS | grep -- '-lXext' > /dev/null; then
6920
LIBXINERAMA_LIBS="$LIBXINERAMA_LIBS -lXext"
6922
],[], [$LIBX11_CFLAGS $LIBX11_LDFLAGS $LIBX11_LIBS -lXext])
6924
AC_SUBST(LIBXINERAMA_CFLAGS)
6925
AC_SUBST(LIBXINERAMA_LDFLAGS)
6926
AC_SUBST(LIBXINERAMA_LIBS)
6932
dnl Copyright (c) 2003 Benedikt Meurer <benedikt.meurer@unix-ag.uni-siegen.de>
6935
dnl BM_I18N(pkgname, languages)
6939
AC_SUBST([GETTEXT_PACKAGE])
6940
AC_DEFINE([GETTEXT_PACKAGE], ["$1"], [Name of default gettext domain])
6946
dnl This is required on some linux systems
6947
AC_CHECK_FUNC([bind_textdomain_codeset])
6949
AC_MSG_CHECKING([for locales directory])
6950
AC_ARG_WITH([locales-dir],
6951
AC_HELP_STRING([--with-locales-dir=DIR], [Install locales into DIR]),
6952
[localedir=$withval],
6953
[localedir=$datadir/locale])
6954
AC_MSG_RESULT([$localedir])
6955
AC_SUBST([localedir])
6195
# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
6197
# This file is free software; the Free Software Foundation
6198
# gives unlimited permission to copy and/or distribute it,
6199
# with or without modifications, as long as this notice is preserved.
6201
# AM_AUTOMAKE_VERSION(VERSION)
6202
# ----------------------------
6203
# Automake X.Y traces this macro to ensure aclocal.m4 has been
6204
# generated from the m4 files accompanying Automake X.Y.
6205
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
6207
# AM_SET_CURRENT_AUTOMAKE_VERSION
6208
# -------------------------------
6209
# Call AM_AUTOMAKE_VERSION so it can be traced.
6210
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6211
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6212
[AM_AUTOMAKE_VERSION([1.9.6])])
6214
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
6216
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
6218
# This file is free software; the Free Software Foundation
6219
# gives unlimited permission to copy and/or distribute it,
6220
# with or without modifications, as long as this notice is preserved.
6222
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
6223
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
6224
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
6226
# Of course, Automake must honor this variable whenever it calls a
6227
# tool from the auxiliary directory. The problem is that $srcdir (and
6228
# therefore $ac_aux_dir as well) can be either absolute or relative,
6229
# depending on how configure is run. This is pretty annoying, since
6230
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
6231
# source directory, any form will work fine, but in subdirectories a
6232
# relative path needs to be adjusted first.
6234
# $ac_aux_dir/missing
6235
# fails when called from a subdirectory if $ac_aux_dir is relative
6236
# $top_srcdir/$ac_aux_dir/missing
6237
# fails if $ac_aux_dir is absolute,
6238
# fails when called from a subdirectory in a VPATH build with
6239
# a relative $ac_aux_dir
6241
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
6242
# are both prefixed by $srcdir. In an in-source build this is usually
6243
# harmless because $srcdir is `.', but things will broke when you
6244
# start a VPATH build or use an absolute $srcdir.
6246
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
6247
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
6248
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
6249
# and then we would define $MISSING as
6250
# MISSING="\${SHELL} $am_aux_dir/missing"
6251
# This will work as long as MISSING is not called from configure, because
6252
# unfortunately $(top_srcdir) has no meaning in configure.
6253
# However there are other variables, like CC, which are often used in
6254
# configure, and could therefore not use this "fixed" $ac_aux_dir.
6256
# Another solution, used here, is to always expand $ac_aux_dir to an
6257
# absolute PATH. The drawback is that using absolute paths prevent a
6258
# configured tree to be moved without reconfiguration.
6260
AC_DEFUN([AM_AUX_DIR_EXPAND],
6261
[dnl Rely on autoconf to set up CDPATH properly.
6262
AC_PREREQ([2.50])dnl
6263
# expand $ac_aux_dir to an absolute path
6264
am_aux_dir=`cd $ac_aux_dir && pwd`
6267
# AM_CONDITIONAL -*- Autoconf -*-
6269
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
6270
# Free Software Foundation, Inc.
6272
# This file is free software; the Free Software Foundation
6273
# gives unlimited permission to copy and/or distribute it,
6274
# with or without modifications, as long as this notice is preserved.
6278
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
6279
# -------------------------------------
6280
# Define a conditional.
6281
AC_DEFUN([AM_CONDITIONAL],
6283
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
6284
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
6286
AC_SUBST([$1_FALSE])
6294
AC_CONFIG_COMMANDS_PRE(
6295
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
6296
AC_MSG_ERROR([[conditional "$1" was never defined.
6297
Usually this means the macro was only invoked conditionally.]])
6301
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
6302
# Free Software Foundation, Inc.
6304
# This file is free software; the Free Software Foundation
6305
# gives unlimited permission to copy and/or distribute it,
6306
# with or without modifications, as long as this notice is preserved.
6310
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6311
# written in clear, in which case automake, when reading aclocal.m4,
6312
# will think it sees a *use*, and therefore will trigger all it's
6313
# C support machinery. Also note that it means that autoscan, seeing
6314
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
6317
# _AM_DEPENDENCIES(NAME)
6318
# ----------------------
6319
# See how the compiler implements dependency checking.
6320
# NAME is "CC", "CXX", "GCJ", or "OBJC".
6321
# We try a few techniques and use that to set a single cache variable.
6323
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
6324
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
6325
# dependency, and given that the user is not expected to run this macro,
6326
# just rely on AC_PROG_CC.
6327
AC_DEFUN([_AM_DEPENDENCIES],
6328
[AC_REQUIRE([AM_SET_DEPDIR])dnl
6329
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
6330
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
6331
AC_REQUIRE([AM_DEP_TRACK])dnl
6333
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
6334
[$1], CXX, [depcc="$CXX" am_compiler_list=],
6335
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
6336
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
6337
[depcc="$$1" am_compiler_list=])
6339
AC_CACHE_CHECK([dependency style of $depcc],
6340
[am_cv_$1_dependencies_compiler_type],
6341
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6342
# We make a subdir and do the tests there. Otherwise we can end up
6343
# making bogus files that we don't know about and never remove. For
6344
# instance it was reported that on HP-UX the gcc test will end up
6345
# making a dummy file named `D' -- because `-MD' means `put the output
6348
# Copy depcomp to subdir because otherwise we won't find it if we're
6349
# using a relative directory.
6350
cp "$am_depcomp" conftest.dir
6352
# We will build objects and dependencies in a subdirectory because
6353
# it helps to detect inapplicable dependency modes. For instance
6354
# both Tru64's cc and ICC support -MD to output dependencies as a
6355
# side effect of compilation, but ICC will put the dependencies in
6356
# the current directory while Tru64 will put them in the object
6360
am_cv_$1_dependencies_compiler_type=none
6361
if test "$am_compiler_list" = ""; then
6362
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
6364
for depmode in $am_compiler_list; do
6365
# Setup a source with many dependencies, because some compilers
6366
# like to wrap large dependency lists on column 80 (with \), and
6367
# we should not choose a depcomp mode which is confused by this.
6369
# We need to recreate these files for each test, as the compiler may
6370
# overwrite some of them when testing with obscure command lines.
6371
# This happens at least with the AIX C compiler.
6373
for i in 1 2 3 4 5 6; do
6374
echo '#include "conftst'$i'.h"' >> sub/conftest.c
6375
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6376
# Solaris 8's {/usr,}/bin/sh.
6377
touch sub/conftst$i.h
6379
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6383
# after this tag, mechanisms are not by side-effect, so they'll
6384
# only be used when explicitly requested
6385
if test "x$enable_dependency_tracking" = xyes; then
6393
# We check with `-c' and `-o' for the sake of the "dashmstdout"
6394
# mode. It turns out that the SunPro C++ compiler does not properly
6395
# handle `-M -o', and we need to detect this.
6396
if depmode=$depmode \
6397
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6398
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6399
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6400
>/dev/null 2>conftest.err &&
6401
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6402
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6403
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6404
# icc doesn't choke on unknown options, it will just issue warnings
6405
# or remarks (even with -Werror). So we grep stderr for any message
6406
# that says an option was ignored or not supported.
6407
# When given -MP, icc 7.0 and 7.1 complain thusly:
6408
# icc: Command line warning: ignoring option '-M'; no argument required
6409
# The diagnosis changed in icc 8.0:
6410
# icc: Command line remark: option '-MP' not supported
6411
if (grep 'ignoring option' conftest.err ||
6412
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6413
am_cv_$1_dependencies_compiler_type=$depmode
6422
am_cv_$1_dependencies_compiler_type=none
6425
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
6426
AM_CONDITIONAL([am__fastdep$1], [
6427
test "x$enable_dependency_tracking" != xno \
6428
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
6434
# Choose a directory name for dependency files.
6435
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
6436
AC_DEFUN([AM_SET_DEPDIR],
6437
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
6438
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
6444
AC_DEFUN([AM_DEP_TRACK],
6445
[AC_ARG_ENABLE(dependency-tracking,
6446
[ --disable-dependency-tracking speeds up one-time build
6447
--enable-dependency-tracking do not reject slow dependency extractors])
6448
if test "x$enable_dependency_tracking" != xno; then
6449
am_depcomp="$ac_aux_dir/depcomp"
6452
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
6453
AC_SUBST([AMDEPBACKSLASH])
6456
# Generate code to set up dependency tracking. -*- Autoconf -*-
6458
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
6459
# Free Software Foundation, Inc.
6461
# This file is free software; the Free Software Foundation
6462
# gives unlimited permission to copy and/or distribute it,
6463
# with or without modifications, as long as this notice is preserved.
6467
# _AM_OUTPUT_DEPENDENCY_COMMANDS
6468
# ------------------------------
6469
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
6470
[for mf in $CONFIG_FILES; do
6471
# Strip MF so we end up with the name of the file.
6472
mf=`echo "$mf" | sed -e 's/:.*$//'`
6473
# Check whether this is an Automake generated Makefile or not.
6474
# We used to match only the files named `Makefile.in', but
6475
# some people rename them; so instead we look at the file content.
6476
# Grep'ing the first line is not enough: some people post-process
6477
# each Makefile.in and add a new line on top of each file to say so.
6478
# So let's grep whole file.
6479
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6480
dirpart=`AS_DIRNAME("$mf")`
6484
# Extract the definition of DEPDIR, am__include, and am__quote
6485
# from the Makefile without running `make'.
6486
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6487
test -z "$DEPDIR" && continue
6488
am__include=`sed -n 's/^am__include = //p' < "$mf"`
6489
test -z "am__include" && continue
6490
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6491
# When using ansi2knr, U may be empty or an underscore; expand it
6492
U=`sed -n 's/^U = //p' < "$mf"`
6493
# Find all dependency output files, they are included files with
6494
# $(DEPDIR) in their names. We invoke sed twice because it is the
6495
# simplest approach to changing $(DEPDIR) to its actual value in the
6497
for file in `sed -n "
6498
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6499
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6500
# Make sure the directory exists.
6501
test -f "$dirpart/$file" && continue
6502
fdir=`AS_DIRNAME(["$file"])`
6503
AS_MKDIR_P([$dirpart/$fdir])
6504
# echo "creating $dirpart/$file"
6505
echo '# dummy' > "$dirpart/$file"
6508
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
6511
# AM_OUTPUT_DEPENDENCY_COMMANDS
6512
# -----------------------------
6513
# This macro should only be invoked once -- use via AC_REQUIRE.
6515
# This code is only required when automatic dependency tracking
6516
# is enabled. FIXME. This creates each `.P' file that we will
6517
# need in order to bootstrap the dependency handling code.
6518
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
6519
[AC_CONFIG_COMMANDS([depfiles],
6520
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
6521
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
6524
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
6525
# Free Software Foundation, Inc.
6527
# This file is free software; the Free Software Foundation
6528
# gives unlimited permission to copy and/or distribute it,
6529
# with or without modifications, as long as this notice is preserved.
6533
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
6534
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
6536
# Do all the work for Automake. -*- Autoconf -*-
6538
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
6539
# Free Software Foundation, Inc.
6541
# This file is free software; the Free Software Foundation
6542
# gives unlimited permission to copy and/or distribute it,
6543
# with or without modifications, as long as this notice is preserved.
6547
# This macro actually does too much. Some checks are only needed if
6548
# your package does certain things. But this isn't really a big deal.
6550
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
6551
# AM_INIT_AUTOMAKE([OPTIONS])
6552
# -----------------------------------------------
6553
# The call with PACKAGE and VERSION arguments is the old style
6554
# call (pre autoconf-2.50), which is being phased out. PACKAGE
6555
# and VERSION should now be passed to AC_INIT and removed from
6556
# the call to AM_INIT_AUTOMAKE.
6557
# We support both call styles for the transition. After
6558
# the next Automake release, Autoconf can make the AC_INIT
6559
# arguments mandatory, and then we can depend on a new Autoconf
6560
# release and drop the old call support.
6561
AC_DEFUN([AM_INIT_AUTOMAKE],
6562
[AC_PREREQ([2.58])dnl
6563
dnl Autoconf wants to disallow AM_ names. We explicitly allow
6564
dnl the ones we care about.
6565
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
6566
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
6567
AC_REQUIRE([AC_PROG_INSTALL])dnl
6568
# test to see if srcdir already configured
6569
if test "`cd $srcdir && pwd`" != "`pwd`" &&
6570
test -f $srcdir/config.status; then
6571
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
6574
# test whether we have cygpath
6575
if test -z "$CYGPATH_W"; then
6576
if (cygpath --version) >/dev/null 2>/dev/null; then
6577
CYGPATH_W='cygpath -w'
6582
AC_SUBST([CYGPATH_W])
6584
# Define the identity of the package.
6585
dnl Distinguish between old-style and new-style calls.
6587
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
6588
AC_SUBST([PACKAGE], [$1])dnl
6589
AC_SUBST([VERSION], [$2])],
6590
[_AM_SET_OPTIONS([$1])dnl
6591
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
6592
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
6594
_AM_IF_OPTION([no-define],,
6595
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
6596
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
6598
# Some tools Automake needs.
6599
AC_REQUIRE([AM_SANITY_CHECK])dnl
6600
AC_REQUIRE([AC_ARG_PROGRAM])dnl
6601
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
6602
AM_MISSING_PROG(AUTOCONF, autoconf)
6603
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
6604
AM_MISSING_PROG(AUTOHEADER, autoheader)
6605
AM_MISSING_PROG(MAKEINFO, makeinfo)
6607
AM_PROG_INSTALL_STRIP
6608
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
6609
# We need awk for the "check" target. The system "awk" is bad on
6611
AC_REQUIRE([AC_PROG_AWK])dnl
6612
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
6613
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
6614
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
6615
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
6616
[_AM_PROG_TAR([v7])])])
6617
_AM_IF_OPTION([no-dependencies],,
6618
[AC_PROVIDE_IFELSE([AC_PROG_CC],
6619
[_AM_DEPENDENCIES(CC)],
6620
[define([AC_PROG_CC],
6621
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
6622
AC_PROVIDE_IFELSE([AC_PROG_CXX],
6623
[_AM_DEPENDENCIES(CXX)],
6624
[define([AC_PROG_CXX],
6625
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
6630
# When config.status generates a header, we must update the stamp-h file.
6631
# This file resides in the same directory as the config header
6632
# that is generated. The stamp files are numbered to have different names.
6634
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
6635
# loop where config.status creates the headers, so we can generate
6636
# our stamp files there.
6637
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
6638
[# Compute $1's index in $config_headers.
6640
for _am_header in $config_headers :; do
6645
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
6648
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
6650
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
6652
# This file is free software; the Free Software Foundation
6653
# gives unlimited permission to copy and/or distribute it,
6654
# with or without modifications, as long as this notice is preserved.
6656
# AM_PROG_INSTALL_SH
6657
# ------------------
6658
# Define $install_sh.
6659
AC_DEFUN([AM_PROG_INSTALL_SH],
6660
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
6661
install_sh=${install_sh-"$am_aux_dir/install-sh"}
6662
AC_SUBST(install_sh)])
6664
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
6666
# This file is free software; the Free Software Foundation
6667
# gives unlimited permission to copy and/or distribute it,
6668
# with or without modifications, as long as this notice is preserved.
6672
# Check whether the underlying file-system supports filenames
6673
# with a leading dot. For instance MS-DOS doesn't.
6674
AC_DEFUN([AM_SET_LEADING_DOT],
6675
[rm -rf .tst 2>/dev/null
6676
mkdir .tst 2>/dev/null
6677
if test -d .tst; then
6682
rmdir .tst 2>/dev/null
6683
AC_SUBST([am__leading_dot])])
6685
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
6688
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
6689
# Free Software Foundation, Inc.
6691
# This file is free software; the Free Software Foundation
6692
# gives unlimited permission to copy and/or distribute it,
6693
# with or without modifications, as long as this notice is preserved.
6697
AC_DEFUN([AM_MAINTAINER_MODE],
6698
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
6699
dnl maintainer-mode is disabled by default
6700
AC_ARG_ENABLE(maintainer-mode,
6701
[ --enable-maintainer-mode enable make rules and dependencies not useful
6702
(and sometimes confusing) to the casual installer],
6703
USE_MAINTAINER_MODE=$enableval,
6704
USE_MAINTAINER_MODE=no)
6705
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
6706
AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
6707
MAINT=$MAINTAINER_MODE_TRUE
6712
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
6714
# Check to see how 'make' treats includes. -*- Autoconf -*-
6716
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
6718
# This file is free software; the Free Software Foundation
6719
# gives unlimited permission to copy and/or distribute it,
6720
# with or without modifications, as long as this notice is preserved.
6726
# Check to see how make treats includes.
6727
AC_DEFUN([AM_MAKE_INCLUDE],
6728
[am_make=${MAKE-make}
6729
cat > confinc << 'END'
6734
# If we don't find an include directive, just comment out the code.
6735
AC_MSG_CHECKING([for style of include used by $am_make])
6739
# First try GNU make style include.
6740
echo "include confinc" > confmf
6741
# We grep out `Entering directory' and `Leaving directory'
6742
# messages which can occur if `w' ends up in MAKEFLAGS.
6743
# In particular we don't look at `^make:' because GNU make might
6744
# be invoked under some other name (usually "gmake"), in which
6745
# case it prints its new name instead of `make'.
6746
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6751
# Now try BSD make style include.
6752
if test "$am__include" = "#"; then
6753
echo '.include "confinc"' > confmf
6754
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6755
am__include=.include
6760
AC_SUBST([am__include])
6761
AC_SUBST([am__quote])
6762
AC_MSG_RESULT([$_am_result])
6763
rm -f confinc confmf
6766
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
6768
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
6769
# Free Software Foundation, Inc.
6771
# This file is free software; the Free Software Foundation
6772
# gives unlimited permission to copy and/or distribute it,
6773
# with or without modifications, as long as this notice is preserved.
6777
# AM_MISSING_PROG(NAME, PROGRAM)
6778
# ------------------------------
6779
AC_DEFUN([AM_MISSING_PROG],
6780
[AC_REQUIRE([AM_MISSING_HAS_RUN])
6781
$1=${$1-"${am_missing_run}$2"}
6785
# AM_MISSING_HAS_RUN
6786
# ------------------
6787
# Define MISSING if not defined so far and test if it supports --run.
6788
# If it does, set am_missing_run to use it, otherwise, to nothing.
6789
AC_DEFUN([AM_MISSING_HAS_RUN],
6790
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
6791
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6792
# Use eval to expand $SHELL
6793
if eval "$MISSING --run true"; then
6794
am_missing_run="$MISSING --run "
6797
AC_MSG_WARN([`missing' script is too old or missing])
6801
# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
6803
# This file is free software; the Free Software Foundation
6804
# gives unlimited permission to copy and/or distribute it,
6805
# with or without modifications, as long as this notice is preserved.
6809
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
6811
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
6812
# created by `make install' are always world readable, even if the
6813
# installer happens to have an overly restrictive umask (e.g. 077).
6814
# This was a mistake. There are at least two reasons why we must not
6816
# - it causes special bits like SGID to be ignored,
6817
# - it may be too restrictive (some setups expect 775 directories).
6819
# Do not use -m 0755 and let people choose whatever they expect by
6822
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
6823
# Some implementations (such as Solaris 8's) are not thread-safe: if a
6824
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
6825
# concurrently, both version can detect that a/ is missing, but only
6826
# one can create it and the other will error out. Consequently we
6827
# restrict ourselves to GNU make (using the --version option ensures
6829
AC_DEFUN([AM_PROG_MKDIR_P],
6830
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6831
# We used to keeping the `.' as first argument, in order to
6832
# allow $(mkdir_p) to be used without argument. As in
6833
# $(mkdir_p) $(somedir)
6834
# where $(somedir) is conditionally defined. However this is wrong
6836
# 1. if the package is installed by a user who cannot write `.'
6837
# make install will fail,
6838
# 2. the above comment should most certainly read
6839
# $(mkdir_p) $(DESTDIR)$(somedir)
6840
# so it does not work when $(somedir) is undefined and
6841
# $(DESTDIR) is not.
6842
# To support the latter case, we have to write
6843
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6844
# so the `.' trick is pointless.
6845
mkdir_p='mkdir -p --'
6847
# On NextStep and OpenStep, the `mkdir' command does not
6848
# recognize any option. It will interpret all options as
6849
# directories to create, and then abort because `.' already
6851
for d in ./-p ./--version;
6853
test -d $d && rmdir $d
6855
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6856
if test -f "$ac_aux_dir/mkinstalldirs"; then
6857
mkdir_p='$(mkinstalldirs)'
6859
mkdir_p='$(install_sh) -d'
6862
AC_SUBST([mkdir_p])])
6864
# Helper functions for option handling. -*- Autoconf -*-
6866
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
6868
# This file is free software; the Free Software Foundation
6869
# gives unlimited permission to copy and/or distribute it,
6870
# with or without modifications, as long as this notice is preserved.
6874
# _AM_MANGLE_OPTION(NAME)
6875
# -----------------------
6876
AC_DEFUN([_AM_MANGLE_OPTION],
6877
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
6879
# _AM_SET_OPTION(NAME)
6880
# ------------------------------
6881
# Set option NAME. Presently that only means defining a flag for this option.
6882
AC_DEFUN([_AM_SET_OPTION],
6883
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
6885
# _AM_SET_OPTIONS(OPTIONS)
6886
# ----------------------------------
6887
# OPTIONS is a space-separated list of Automake options.
6888
AC_DEFUN([_AM_SET_OPTIONS],
6889
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
6891
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
6892
# -------------------------------------------
6893
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
6894
AC_DEFUN([_AM_IF_OPTION],
6895
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
6897
# Check to make sure that the build environment is sane. -*- Autoconf -*-
6899
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
6900
# Free Software Foundation, Inc.
6902
# This file is free software; the Free Software Foundation
6903
# gives unlimited permission to copy and/or distribute it,
6904
# with or without modifications, as long as this notice is preserved.
6910
AC_DEFUN([AM_SANITY_CHECK],
6911
[AC_MSG_CHECKING([whether build environment is sane])
6914
echo timestamp > conftest.file
6915
# Do `set' in a subshell so we don't clobber the current shell's
6916
# arguments. Must try -L first in case configure is actually a
6917
# symlink; some systems play weird games with the mod time of symlinks
6918
# (eg FreeBSD returns the mod time of the symlink's containing
6921
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6922
if test "$[*]" = "X"; then
6924
set X `ls -t $srcdir/configure conftest.file`
6927
if test "$[*]" != "X $srcdir/configure conftest.file" \
6928
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
6930
# If neither matched, then we have a broken ls. This can happen
6931
# if, for instance, CONFIG_SHELL is bash and it inherits a
6932
# broken ls alias from the environment. This has actually
6933
# happened. Such a system could not be considered "sane".
6934
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
6935
alias in your environment])
6938
test "$[2]" = conftest.file
6944
AC_MSG_ERROR([newly created file is older than distributed files!
6945
Check your system clock])
6947
AC_MSG_RESULT(yes)])
6949
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
6951
# This file is free software; the Free Software Foundation
6952
# gives unlimited permission to copy and/or distribute it,
6953
# with or without modifications, as long as this notice is preserved.
6955
# AM_PROG_INSTALL_STRIP
6956
# ---------------------
6957
# One issue with vendor `install' (even GNU) is that you can't
6958
# specify the program used to strip binaries. This is especially
6959
# annoying in cross-compiling environments, where the build's strip
6960
# is unlikely to handle the host's binaries.
6961
# Fortunately install-sh will honor a STRIPPROG variable, so we
6962
# always use install-sh in `make install-strip', and initialize
6963
# STRIPPROG with the value of the STRIP variable (set by the user).
6964
AC_DEFUN([AM_PROG_INSTALL_STRIP],
6965
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
6966
# Installed binaries are usually stripped using `strip' when the user
6967
# run `make install-strip'. However `strip' might not be the right
6968
# tool to use in cross-compilation environments, therefore Automake
6969
# will honor the `STRIP' environment variable to overrule this program.
6970
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
6971
if test "$cross_compiling" != no; then
6972
AC_CHECK_TOOL([STRIP], [strip], :)
6974
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6975
AC_SUBST([INSTALL_STRIP_PROGRAM])])
6977
# Check how to create a tarball. -*- Autoconf -*-
6979
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
6981
# This file is free software; the Free Software Foundation
6982
# gives unlimited permission to copy and/or distribute it,
6983
# with or without modifications, as long as this notice is preserved.
6987
# _AM_PROG_TAR(FORMAT)
6988
# --------------------
6989
# Check how to create a tarball in format FORMAT.
6990
# FORMAT should be one of `v7', `ustar', or `pax'.
6992
# Substitute a variable $(am__tar) that is a command
6993
# writing to stdout a FORMAT-tarball containing the directory
6995
# tardir=directory && $(am__tar) > result.tar
6997
# Substitute a variable $(am__untar) that extract such
6998
# a tarball read from stdin.
6999
# $(am__untar) < result.tar
7000
AC_DEFUN([_AM_PROG_TAR],
7001
[# Always define AMTAR for backward compatibility.
7002
AM_MISSING_PROG([AMTAR], [tar])
7004
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
7005
[m4_case([$1], [ustar],, [pax],,
7006
[m4_fatal([Unknown tar format])])
7007
AC_MSG_CHECKING([how to create a $1 tar archive])
7008
# Loop over all known methods to create a tar archive until one works.
7009
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
7010
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
7011
# Do not fold the above two line into one, because Tru64 sh and
7012
# Solaris sh will not grok spaces in the rhs of `-'.
7013
for _am_tool in $_am_tools
7017
for _am_tar in tar gnutar gtar;
7019
AM_RUN_LOG([$_am_tar --version]) && break
7021
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
7022
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
7023
am__untar="$_am_tar -xf -"
7026
# Must skip GNU tar: if it does not support --format= it doesn't create
7027
# ustar tarball either.
7028
(tar --version) >/dev/null 2>&1 && continue
7029
am__tar='tar chf - "$$tardir"'
7030
am__tar_='tar chf - "$tardir"'
7031
am__untar='tar xf -'
7034
am__tar='pax -L -x $1 -w "$$tardir"'
7035
am__tar_='pax -L -x $1 -w "$tardir"'
7039
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
7040
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
7041
am__untar='cpio -i -H $1 -d'
7050
# If the value was cached, stop now. We just wanted to have am__tar
7051
# and am__untar set.
7052
test -n "${am_cv_prog_tar_$1}" && break
7054
# tar/untar a dummy directory, and stop if the command works
7057
echo GrepMe > conftest.dir/file
7058
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
7060
if test -s conftest.tar; then
7061
AM_RUN_LOG([$am__untar <conftest.tar])
7062
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
7067
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
7068
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
7070
AC_SUBST([am__untar])
6958
7073
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
6959
7074
# Copyright (C) 2001-2003 Red Hat, Inc.
7329
7447
dnl Now the definitions that aclocal will find
7331
7449
ifdef(glib_configure_in,[],[
7332
AC_DEFUN(AM_GLIB_GNU_GETTEXT,[GLIB_GNU_GETTEXT($@)])
7333
AC_DEFUN(AM_GLIB_DEFINE_LOCALEDIR,[GLIB_DEFINE_LOCALEDIR($@)])
7450
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
7451
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
7336
dnl From Benedikt Meurer (benedikt.meurer@unix-ag.uni-siegen.de)
7454
dnl $Id: xdt-depends.m4 2273 2005-01-31 19:38:09Z benny $
7456
dnl Copyright (c) 2002-2005
7457
dnl The Xfce development team. All rights reserved.
7459
dnl Written for Xfce by Benedikt Meurer <benny@xfce.org>.
7463
dnl Contains M4 macros to check for software dependencies.
7464
dnl Partly based on prior work of the XDG contributors.
7469
dnl We need recent a autoconf version
7474
dnl XDT_PROG_PKG_CONFIG()
7476
dnl Checks for the freedesktop.org pkg-config
7477
dnl utility and sets the PKG_CONFIG environment
7478
dnl variable to the full path if found.
7480
AC_DEFUN([XDT_PROG_PKG_CONFIG],
7482
# minimum supported version of pkg-config
7483
xdt_cv_PKG_CONFIG_MIN_VERSION=0.9.0
7485
# lookup pkg-config utility
7486
if test x"$PKG_CONFIG" = x""; then
7487
AC_PATH_PROG([PKG_CONFIG], [pkg-config], [no])
7489
if test x"$PKG_CONFIG" = x"no"; then
7490
echo "*** The pkg-config utility could not be found on your system."
7491
echo "*** Make sure it is in your path, or set the PKG_CONFIG"
7492
echo "*** environment variable to the full path to pkg-config."
7493
echo "*** You can download pkg-config from the freedesktop.org"
7494
echo "*** software repository at"
7496
echo "*** http://www.freedesktop.org/software/pkgconfig"
7501
# check pkg-config version
7502
AC_MSG_CHECKING([for pkg-config >= $xdt_cv_PKG_CONFIG_MIN_VERSION])
7503
if $PKG_CONFIG --atleast-pkgconfig-version $xdt_cv_PKG_CONFIG_MIN_VERSION; then
7504
xdt_cv_PKG_CONFIG_VERSION=`$PKG_CONFIG --version`
7505
AC_MSG_RESULT([$xdt_cv_PKG_CONFIG_VERSION])
7507
xdt_cv_PKG_CONFIG_VERSION=`$PKG_CONFIG --version`
7508
AC_MSG_RESULT([$xdt_cv_PKG_CONFIG_VERSION])
7509
echo "*** Your version of pkg-config is too old. You need atleast"
7510
echo "*** pkg-config $xdt_cv_PKG_CONFIG_MIN_VERSION or newer. You can download pkg-config "
7511
echo "*** from the freedesktop.org software repository at"
7513
echo "*** http://www.freedesktop.org/software/pkgconfig"
7522
dnl XDT_CHECK_PACKAGE(varname, package, version, [action-if], [action-if-not])
7524
dnl Checks if "package" >= "version" is installed on the
7525
dnl target system, using the pkg-config utility. If the
7526
dnl dependency is met, "varname"_CFLAGS, "varname"_LIBS,
7527
dnl "varname"_VERSION and "varname"_REQUIRED_VERSION
7528
dnl will be set and marked for substition.
7530
dnl "varname"_REQUIRED_VERSION will be set to the value of
7531
dnl "version". This is mostly useful to automatically
7532
dnl place the correct version information into the RPM
7535
dnl In addition, if the dependency is met, "action-if" will
7536
dnl be executed if given.
7538
dnl If the package check fails, "action-if-not" will be
7539
dnl executed. If this parameter isn't specified, a diagnostic
7540
dnl message will be printed and the configure script will
7541
dnl be terminated with exit code 1.
7543
AC_DEFUN([XDT_CHECK_PACKAGE],
7545
XDT_PROG_PKG_CONFIG()
7547
AC_MSG_CHECKING([for $2 >= $3])
7548
if $PKG_CONFIG "--atleast-version=$3" "$2" >/dev/null 2>&1; then
7549
$1_VERSION=`$PKG_CONFIG --modversion "$2"`
7550
AC_MSG_RESULT([$$1_VERSION])
7552
AC_MSG_CHECKING([$1_CFLAGS])
7553
$1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
7554
AC_MSG_RESULT([$$1_CFLAGS])
7556
AC_MSG_CHECKING([$1_LIBS])
7557
$1_LIBS=`$PKG_CONFIG --libs "$2"`
7558
AC_MSG_RESULT([$$1_LIBS])
7560
$1_REQUIRED_VERSION=$3
7562
AC_SUBST([$1_VERSION])
7563
AC_SUBST([$1_CFLAGS])
7565
AC_SUBST([$1_REQUIRED_VERSION])
7567
ifelse([$4], , , [$4])
7568
elif $PKG_CONFIG --exists "$2" >/dev/null 2>&1; then
7569
xdg_cv_version=`$PKG_CONFIG --modversion "$2"`
7570
AC_MSG_RESULT([found, but $xdt_cv_version])
7574
echo "*** The required package $2 was found on your system,"
7575
echo "*** but the installed version ($xdt_cv_version) is too old."
7576
echo "*** Please upgrade $2 to atleast version $3, or adjust"
7577
echo "*** the PKG_CONFIG_PATH environment variable if you installed"
7578
echo "*** the new version of the package in a nonstandard prefix so"
7579
echo "*** pkg-config is able to find it."
7583
AC_MSG_RESULT([not found])
7587
echo "*** The required package $2 was not found on your system."
7588
echo "*** Please install $2 (atleast version $3) or adjust"
7589
echo "*** the PKG_CONFIG_PATH environment variable if you"
7590
echo "*** installed the package in a nonstandard prefix so that"
7591
echo "*** pkg-config is able to find it."
7599
dnl XDT_CHECK_OPTIONAL_PACKAGE(varname, package, version, optionname, helpstring, [default])
7601
dnl Checks for an optional dependency on "package" >= "version". "default"
7602
dnl can be "yes" or "no" (defaults to "yes" if not specified) and controls
7603
dnl whether configure should check this dependency by default, or only if
7604
dnl the user explicitly enables it using a command line switch.
7606
dnl This macro automatically adds a commandline switch based on the "optionname"
7607
dnl parameter (--enable-optionname/--disable-optionname), which allows the
7608
dnl user to explicitly control whether this optional dependency should be
7609
dnl enabled or not. The "helpstring" parameter gives a brief(!) description
7610
dnl about this dependency.
7612
dnl If the user chose to enable this dependency and the required package
7613
dnl was found, this macro defines the variable "varname"_FOUND and sets it
7614
dnl to the string "yes", in addition to the 4 variables set by XDT_CHECK_PACKAGE.
7615
dnl But "varname"_FOUND will not be marked for substition. Furthermore,
7616
dnl a CPP define HAVE_"varname" will be placed in config.h (or added to
7617
dnl the cc command line, depending on your configure.ac) and set to
7620
AC_DEFUN([XDT_CHECK_OPTIONAL_PACKAGE],
7622
AC_REQUIRE([XDT_PROG_PKG_CONFIG])
7625
AC_HELP_STRING([--enable-$4], [Enable checking for $5 (default=m4_default([$6], [yes]))])
7626
AC_HELP_STRING([--disable-$4], [Disable checking for $5]),
7627
[xdt_cv_$1_check=$enableval], [xdt_cv_$1_check=m4_default([$6], [yes])])
7629
if test x"$xdt_cv_$1_check" = x"yes"; then
7630
if $PKG_CONFIG --exists "$2 >= $3" >/dev/null 2>&1; then
7631
XDT_CHECK_PACKAGE([$1], [$2], [$3],
7633
AC_DEFINE([HAVE_$1], [1], [Define if $2 >= $3 present])
7637
AC_MSG_CHECKING([for optional package $2 >= $3])
7638
AC_MSG_RESULT([not found])
7641
AC_MSG_CHECKING([for optional package $2])
7642
AC_MSG_RESULT([disabled])
7645
AM_CONDITIONAL([HAVE_$1], [test x"$$1_FOUND" = x"yes"])
7650
dnl BM_DEPEND(varname, package, version)
7652
dnl Simple wrapper for XDT_CHECK_PACKAGE("varname", "package", "version"). Kept
7653
dnl for backward compatibility. Will be removed in the future.
7340
7655
AC_DEFUN([BM_DEPEND],
7342
PKG_CHECK_MODULES([$1], [$2 >= $3])
7343
$1_REQUIRED_VERSION=$3
7344
AC_SUBST($1_REQUIRED_VERSION)
7657
XDT_CHECK_PACKAGE([$1], [$2], [$3])
7348
7662
dnl BM_DEPEND_CHECK(var, pkg, version, name, helpstring, default)
7664
dnl Simple wrapper for XDT_CHECK_OPTIONAL_PACKAGE(). Kept for backward
7665
dnl compatibility. Will be removed in the future.
7350
7667
AC_DEFUN([BM_DEPEND_CHECK],
7353
AC_HELP_STRING([--enable-$4], [Enable checking for $5 (default=$6)])
7354
AC_HELP_STRING([--disable-$4], [Disable checking for $5]),
7355
[ac_cv_$1_check=$enableval], [ac_cv_$1_check=$6])
7357
if test x"$ac_cv_$1_check" = x"yes"; then
7358
AC_MSG_CHECKING([for $2 >= $3])
7359
if $PKG_CONFIG --atleast-version=$3 $2 2> /dev/null; then
7360
AC_MSG_RESULT([yes])
7361
BM_DEPEND([$1], [$2], [$3])
7362
AC_DEFINE([HAVE_$1], [1], [Define if you have $2 >= $3])
7370
dnl XFCE_PANEL_PLUGIN(var, version)
7372
dnl Sets $var_CFLAGS, $var_LIBS and $var_PLUGINSDIR
7374
AC_DEFUN([XFCE_PANEL_PLUGIN],
7376
BM_DEPEND([$1], [xfce4-panel-1.0], [$2])
7378
dnl Check where to put the plugins to
7379
AC_MSG_CHECKING([where to install panel plugins])
7380
$1_PLUGINSDIR=`$PKG_CONFIG --variable=pluginsdir xfce4-panel-1.0`
7381
AC_SUBST([$1_PLUGINSDIR])
7382
AC_MSG_RESULT([$$1_PLUGINSDIR])
7386
dnl XFCE_MCS_PLUGIN(var, version)
7388
dnl sets $var_CFLAGS, $var_LIBS and $var_PLUGINSDIR
7390
AC_DEFUN([XFCE_MCS_PLUGIN],
7392
BM_DEPEND([$1], [xfce-mcs-manager], [$2])
7394
dnl Check where to put the plugins to
7395
AC_MSG_CHECKING([where to install MCS plugins])
7396
$1_PLUGINSDIR=`$PKG_CONFIG --variable=pluginsdir xfce-mcs-manager`
7397
AC_SUBST([$1_PLUGINSDIR])
7398
AC_MSG_RESULT([$$1_PLUGINSDIR])
7402
dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
7403
dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
7404
dnl also defines GSTUFF_PKG_ERRORS on error
7405
AC_DEFUN(PKG_CHECK_MODULES, [
7408
if test -z "$PKG_CONFIG"; then
7409
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
7412
if test "$PKG_CONFIG" = "no" ; then
7413
echo "*** The pkg-config script could not be found. Make sure it is"
7414
echo "*** in your path, or set the PKG_CONFIG environment variable"
7415
echo "*** to the full path to pkg-config."
7416
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
7418
PKG_CONFIG_MIN_VERSION=0.9.0
7419
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7420
AC_MSG_CHECKING(for $2)
7422
if $PKG_CONFIG --exists "$2" ; then
7426
AC_MSG_CHECKING($1_CFLAGS)
7427
$1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
7428
AC_MSG_RESULT($$1_CFLAGS)
7430
AC_MSG_CHECKING($1_LIBS)
7431
$1_LIBS=`$PKG_CONFIG --libs "$2"`
7432
AC_MSG_RESULT($$1_LIBS)
7436
## If we have a custom action on failure, don't print errors, but
7437
## do set a variable so people can do so.
7438
$1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
7439
ifelse([$4], ,echo $$1_PKG_ERRORS,)
7445
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7446
echo "*** See http://www.freedesktop.org/software/pkgconfig"
7450
if test $succeeded = yes; then
7451
ifelse([$3], , :, [$3])
7453
ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])
7459
dnl From Benedikt Meurer (benedikt.meurer@unix-ag.uni-siegen.de)
7461
dnl if debug support is requested:
7463
dnl 1) defines DEBUG to 1
7464
dnl 2) adds requested debug level flags to CFLAGS
7467
AC_DEFUN([BM_DEBUG_SUPPORT],
7669
XDT_CHECK_OPTIONAL_PACKAGE([$1], [$2], [$3], [$4], [$5], [$6])
7674
dnl XDT_CHECK_LIBX11()
7676
dnl Executes various checks for X11. Sets LIBX11_CFLAGS, LIBX11_LDFLAGS
7677
dnl and LIBX11_LIBS (and marks them for substitution). In addition
7678
dnl HAVE_LIBX11 is set to 1 in config.h, if the X window system and
7679
dnl the development files are detected on the target system.
7681
AC_DEFUN([XDT_CHECK_LIBX11],
7683
AC_REQUIRE([AC_PATH_XTRA])
7685
LIBX11_CFLAGS= LIBX11_LDFLAGS= LIBX11_LIBS=
7686
if test x"$no_x" != x"yes"; then
7687
AC_CHECK_LIB([X11], [main],
7689
AC_DEFINE([HAVE_LIBX11], [1], [Define if libX11 is available])
7690
LIBX11_CFLAGS="$X_CFLAGS"
7691
for option in $X_PRE_LIBS $X_EXTRA_LIBS $X_LIBS; do
7694
path=`echo $option | sed 's/^-L//'`
7695
if test x"$path" != x""; then
7696
LIBX11_LDFLAGS="$LIBX11_LDFLAGS -L$path"
7700
LIBX11_LIBS="$LIBX11_LIBS $option"
7704
if ! echo $LIBX11_LIBS | grep -- '-lX11' >/dev/null; then
7705
LIBX11_LIBS="$LIBX11_LIBS -lX11"
7707
], [], [$X_CFLAGS $X_PRE_LIBS $X_EXTRA_LIBS $X_LIBS])
7709
AC_SUBST([LIBX11_CFLAGS])
7710
AC_SUBST([LIBX11_LDFLAGS])
7711
AC_SUBST([LIBX11_LIBS])
7716
dnl XDT_CHECK_LIBX11_REQUIRE()
7718
dnl Similar to XDT_CHECK_LIBX11(), but terminates with an error if
7719
dnl the X window system and development files aren't detected on the
7722
AC_DEFUN([XDT_CHECK_LIBX11_REQUIRE],
7724
AC_REQUIRE([XDT_CHECK_LIBX11])
7726
if test x"$no_x" = x"yes"; then
7727
AC_MSG_ERROR([X Window system libraries and header files are required])
7733
dnl XDT_CHECK_LIBSM()
7735
dnl Checks whether the session management library is present on the
7736
dnl target system, and sets LIBSM_CFLAGS, LIBSM_LDFLAGS and LIBSM_LIBS
7737
dnl properly. In addition, HAVE_LIBSM will be set to 1 in config.h
7738
dnl if libSM is detected.
7740
AC_DEFUN([XDT_CHECK_LIBSM],
7742
AC_REQUIRE([XDT_CHECK_LIBX11])
7744
LIBSM_CFLAGS= LIBSM_LDFLAGS= LIBSM_LIBS=
7745
if test x"$no_x" != x"yes"; then
7746
AC_CHECK_LIB([SM], [SmcSaveYourselfDone],
7748
AC_DEFINE([HAVE_LIBSM], [1], [Define if libSM is available])
7749
LIBSM_CFLAGS="$LIBX11_CFLAGS"
7750
LIBSM_LDFLAGS="$LIBX11_LDFLAGS"
7751
LIBSM_LIBS="$LIBX11_LIBS"
7752
if ! echo $LIBSM_LIBS | grep -- '-lSM' >/dev/null; then
7753
LIBSM_LIBS="$LIBSM_LIBS -lSM -lICE"
7755
], [], [$LIBX11_CFLAGS $LIBX11_LDFLAGS $LIBX11_LIBS -lICE])
7757
AC_SUBST([LIBSM_CFLAGS])
7758
AC_SUBST([LIBSM_LDFLAGS])
7759
AC_SUBST([LIBSM_LIBS])
7764
dnl XDT_CHECK_LIBXPM()
7766
dnl Checks if the Xpm library is present on the target system, and
7767
dnl sets LIBXPM_CFLAGS, LIBXPM_LDFLAGS and LIBXPM_LIBS. In addition,
7768
dnl HAVE_LIBXPM will be set to 1 in config.h if libXpm is detected.
7770
AC_DEFUN([XDT_CHECK_LIBXPM],
7772
AC_REQUIRE([XDT_CHECK_LIBX11])
7774
LIBXPM_CFLAGS= LIBXPM_LDFLAGS= LIBXPM_LIBS=
7775
if test "$no_x" != "yes"; then
7776
AC_CHECK_LIB([Xpm], [main],
7778
AC_DEFINE([HAVE_LIBXPM], [1], [Define if libXpm is available])
7779
LIBXPM_CFLAGS="$LIBX11_CFLAGS"
7780
LIBXPM_LDFLAGS="$LIBX11_LDFLAGS"
7781
LIBXPM_LIBS="$LIBX11_LIBS"
7782
if ! echo $LIBXPM_LIBS | grep -- '-lXpm' >/dev/null; then
7783
LIBXPM_LIBS="$LIBXPM_LIBS -lXpm"
7785
], [], [$LIBX11_CFLAGS $LIBX11_LDFLAGS $LIBX11_LIBS -lXpm])
7787
AC_SUBST([LIBXPM_CFLAGS])
7788
AC_SUBST([LIBXPM_LDFLAGS])
7789
AC_SUBST([LIBXPM_LIBS])
7794
dnl XDT_CHECK_LIBXPM_REQUIRE()
7796
dnl Similar to XDT_CHECK_LIBXPM(), but fails if the Xpm library isn't
7797
dnl present on the target system.
7799
AC_DEFUN([XDT_CHECK_LIBXPM_REQUIRE],
7801
AC_REQUIRE([XDT_CHECK_LIBX11_REQUIRE])
7802
AC_REQUIRE([XDT_CHECK_LIBXPM])
7804
if test x"$LIBXPM_LIBS" = x""; then
7805
AC_MSG_ERROR([The Xpm library was not found on your system])
7813
dnl Simple wrapper for XDT_CHECK_LIBX11. Kept for backward
7814
dnl compatibility. Will be removed in the future.
7816
AC_DEFUN([BM_LIBX11],
7818
AC_REQUIRE([XDT_CHECK_LIBX11])
7823
dnl BM_LIBX11_REQUIRE()
7825
dnl Simple wrapper for XDT_CHECK_LIBX11_REQUIRE. Kept for backward
7826
dnl compatibility. Will be removed in the future.
7828
AC_DEFUN([BM_LIBX11_REQUIRE],
7830
AC_REQUIRE([XDT_CHECK_LIBX11_REQUIRE])
7837
dnl Simple wrapper for XDT_CHECK_LIBSM. Kept for backward
7838
dnl compatibility. Will be removed in the future.
7840
AC_DEFUN([BM_LIBSM],
7842
AC_REQUIRE([XDT_CHECK_LIBSM])
7849
dnl Simple wrapper for XDT_CHECK_LIBXPM. Kept for backward
7850
dnl compatibility. Will be removed in the future.
7852
AC_DEFUN([BM_LIBXPM],
7854
AC_REQUIRE([XDT_CHECK_LIBXPM])
7859
dnl BM_LIBXPM_REQUIRE
7861
dnl Simple wrapper for XDT_CHECK_LIBXPM_REQUIRE. Kept for
7862
dnl backward compatibility. Will be removed in the future.
7864
AC_DEFUN([BM_LIBXPM_REQUIRE],
7866
AC_REQUIRE([XDT_CHECK_LIBXPM_REQUIRE])
7870
dnl $Id: xdt-features.m4 2282 2005-03-19 16:00:31Z benny $
7872
dnl Copyright (c) 2002-2005
7873
dnl The Xfce development team. All rights reserved.
7875
dnl Written for Xfce by Benedikt Meurer <benny@xfce.org>.
7879
dnl Contains M4 macros to check for software dependencies.
7880
dnl Partly based on prior work of the XDG contributors.
7885
dnl We need recent a autoconf version
7890
dnl XDT_FEATURE_DEBUG()
7892
AC_DEFUN([XDT_FEATURE_DEBUG],
7469
7894
AC_ARG_ENABLE([debug],
7470
7895
AC_HELP_STRING([--enable-debug[=yes|no|full]], [Build with debugging support])
7471
7896
AC_HELP_STRING([--disable-debug], [Include no debugging support [default]]),
7472
[], [enable_debug=no])
7897
[], [enable_debug=no])
7474
7899
AC_MSG_CHECKING([whether to build with debugging support])
7475
7900
if test x"$enable_debug" != x"no"; then
7476
AC_DEFINE(DEBUG, 1, Define for debugging support)
7901
AC_DEFINE([DEBUG], [1], [Define for debugging support])
7903
xdt_cv_additional_CFLAGS="-Wall"
7904
xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -DG_DISABLE_DEPRECATED"
7905
xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -DXFCE_DISABLE_DEPRECATED"
7477
7907
if test x"$enable_debug" = x"full"; then
7478
AC_DEFINE(DEBUG_TRACE, 1, Define for tracing support)
7479
CFLAGS="$CFLAGS -g3 -Wall -Werror -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED"
7908
AC_DEFINE([DEBUG_TRACE], [1], [Define for tracing support])
7909
xdt_cv_additional_CFLAGS="-g3 -Werror $xdt_cv_additional_CFLAGS"
7480
7910
AC_MSG_RESULT([full])
7482
CFLAGS="$CFLAGS -g -Wall -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED"
7912
xdt_cv_additional_CFLAGS="-g $xdt_cv_additional_CFLAGS"
7483
7913
AC_MSG_RESULT([yes])
7916
CFLAGS="$CFLAGS $xdt_cv_additional_CFLAGS"
7917
CXXFLAGS="$CXXFLAGS $xdt_cv_additional_CFLAGS"
7486
7919
AC_MSG_RESULT([no])
7925
dnl BM_DEBUG_SUPPORT()
7927
AC_DEFUN([BM_DEBUG_SUPPORT],
7929
dnl # --enable-debug
7930
AC_REQUIRE([XDT_FEATURE_DEBUG])
7932
dnl # --enable-profiling
7489
7933
AC_ARG_ENABLE([profiling],
7490
7934
AC_HELP_STRING([--enable-profiling],
7491
7935
[Generate extra code to write profile information])
7496
7940
AC_MSG_CHECKING([whether to build with profiling support])
7497
7941
if test x"$enable_profiling" != x"no"; then
7498
7942
CFLAGS="$CFLAGS -pg"
7499
AC_MSG_RESULT([yes])
7943
LDFLAGS="$LDFLAGS -pg"
7944
AC_MSG_RESULT([yes])
7950
AC_ARG_ENABLE([gcov],
7951
AC_HELP_STRING([--enable-gcov],
7952
[compile with coverage profiling instrumentation (gcc only)])
7953
AC_HELP_STRING([--disable-gcov],
7954
[do not generate coverage profiling instrumentation (default)]),
7955
[], [enable_gcov=no])
7957
AC_MSG_CHECKING([whether to compile with coverage profiling instrumentation])
7958
if test x"$enable_gcov" != x"no"; then
7959
CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
7960
AC_MSG_RESULT([yes])
7965
dnl # --disable-asserts
7504
7966
AC_ARG_ENABLE([asserts],
7505
AC_HELP_STRING([--enable-asserts], [Enable assert statements (default)])
7506
AC_HELP_STRING([--disable-asserts],
7507
[Disable assert statements (USE WITH CARE!!!)]),
7967
AC_HELP_STRING([--disable-asserts], [Disable assertions [DANGEROUS]]),
7508
7968
[], [enable_asserts=yes])
7510
AC_MSG_CHECKING([whether to enable assert statements])
7511
if test x"$enable_asserts" != x"yes"; then
7512
CFLAGS="$CFLAGS -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS"
7515
AC_MSG_RESULT([yes])
7970
AC_MSG_CHECKING([whether to disable assertions])
7971
if test x"$enable_asserts" = x"no"; then
7972
AC_MSG_RESULT([yes])
7973
CPPFLAGS="$CPPFLAGS -DG_DISABLE_CHECKS -DG_DISABLE_ASSERT"
7974
CPPFLAGS="$CPPFLAGS -DG_DISABLE_CAST_CHECKS"
7979
dnl # --enable-final
7980
AC_REQUIRE([AC_PROG_LD])
7981
AC_ARG_ENABLE([final],
7982
AC_HELP_STRING([--enable-final], [Build final version]),
7983
[], [enable_final=yes])
7985
AC_MSG_CHECKING([whether to build final version])
7986
if test x"$enable_final" = x"yes"; then
7987
AC_MSG_RESULT([yes])
7988
AC_MSG_CHECKING([whether $LD accepts -O1])
7989
case `$LD -O1 -v 2>&1 </dev/null` in
7990
*GNU* | *'with BFD'*)
7991
LDFLAGS="$LDFLAGS -Wl,-O1"
7992
AC_MSG_RESULT([yes])
8003
dnl $Id: xdt-i18n.m4 2278 2005-03-08 15:23:49Z benny $
8005
dnl Copyright (c) 2002-2005
8006
dnl The Xfce development team. All rights reserved.
8008
dnl Written for Xfce by Benedikt Meurer <benny@xfce.org>.
8012
dnl Internalization M4 macros.
8016
dnl XDT_I18N(LINGUAS [, PACKAGE])
8018
dnl This macro takes care of setting up everything for i18n support.
8020
dnl If PACKAGE isn't specified, it defaults to the package tarname; see
8021
dnl the description of AC_INIT() for an explanation of what makes up
8022
dnl the package tarname. Normally, you don't need to specify PACKAGE,
8023
dnl but you can stick with the default.
8025
AC_DEFUN([XDT_I18N],
8027
dnl Substitute GETTEXT_PACKAGE variable
8028
GETTEXT_PACKAGE=m4_default([$2], [AC_PACKAGE_TARNAME()])
8029
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [Name of default gettext domain])
8030
AC_SUBST([GETTEXT_PACKAGE])
8032
dnl gettext and stuff
8034
AM_GLIB_GNU_GETTEXT()
8036
dnl This is required on some Linux systems
8037
AC_CHECK_FUNC([bind_textdomain_codeset])
8039
dnl Determine where to install locale files
8040
AC_MSG_CHECKING([for locales directory])
8041
AC_ARG_WITH([locales-dir],
8043
AC_HELP_STRING([--with-locales-dir=DIR], [Install locales into DIR])
8044
], [localedir=$withval],
8046
if test x"$CATOBJEXT" = x".mo"; then
8047
localedir=$libdir/locale
8049
localedir=$datadir/locale
8052
AC_MSG_RESULT([$localedir])
8053
AC_SUBST([localedir])
8055
dnl Determine additional xgettext flags
8056
AC_MSG_CHECKING([for additional xgettext flags])
8057
if test x"$XGETTEXT_ARGS" = x""; then
8058
XGETTEXT_ARGS="--keyword=Q_";
8060
XGETTEXT_ARGS="$XGETTEXT_ARGS --keyword=Q_";
8062
AC_SUBST([XGETTEXT_ARGS])
8063
AC_MSG_RESULT([$XGETTEXT_ARGS])
8068
dnl BM_I18N(PACKAGE, LINGUAS)
8070
dnl Simple wrapper for XDT_I18N(LINGUAS, PACKAGE). Kept for
8071
dnl backward compatibility. Will be removed in the
8076
XDT_I18N([$2], [$1])
8080
dnl $Id: xdt-xfce.m4 2260 2005-01-26 21:34:18Z benny $
8082
dnl Copyright (c) 2002-2005
8083
dnl The Xfce development team. All rights reserved.
8085
dnl Written for Xfce by Benedikt Meurer <benny@xfce.org>.
8089
dnl Xfce specific M4 macros.
8094
dnl XDT_XFCE_PANEL_PLUGIN(varname, [version = 4.2.0])
8096
dnl This macro is intended to be used by panel plugin writers. It
8097
dnl detects the xfce4-panel package on the target system and sets
8098
dnl "varname"_CFLAGS, "varname"_LIBS, "varname"_REQUIRED_VERSION
8099
dnl and "varname"_VERSION properly. The parameter "version"
8100
dnl specifies the minimum required version of xfce4-panel (defaults
8101
dnl to 4.2.0 if not given).
8103
dnl This macro also takes care of handling special panel versions,
8104
dnl like the threaded panel, that was used during the Xfce 4.2.0
8105
dnl development, and automatically sets up the correct flags.
8107
dnl In addition, this macro defines "varname"_PLUGINSDIR (and
8108
dnl marks it for substitution), which points to the directory
8109
dnl where the panel plugin should be installed to. You should
8110
dnl use this variable in your Makefile.am.
8112
AC_DEFUN([XDT_XFCE_PANEL_PLUGIN],
8114
dnl Check for the xfce4-panel package
8115
XDT_CHECK_PACKAGE([$1], [xfce4-panel-1.0], [m4_default([$2], [4.2.0])])
8117
dnl Check if the panel is threaded (only for old panels)
8118
xdt_cv_CFLAGS=$$1_CFLAGS
8119
AC_MSG_CHECKING([whether the Xfce panel is threaded])
8120
if $PKG_CONFIG --max-version=4.1.90 xfce4-panel-1.0 >/dev/null 2>&1; then
8121
AC_MSG_RESULT([yes])
8122
xdt_cv_CFLAGS="$xdt_cv_CFLAGS -DXFCE_PANEL_THREADED=1"
8123
xdt_cv_CFLAGS="$xdt_cv_CFLAGS -DXFCE_PANEL_LOCK\(\)=gdk_threads_enter\(\)"
8124
xdt_cv_CFLAGS="$xdt_cv_CFLAGS -DXFCE_PANEL_UNLOCK\(\)=gdk_threads_leave\(\)"
8127
xdt_cv_CFLAGS="$xdt_cv_CFLAGS -DXFCE_PANEL_LOCK\(\)=do{}while\(0\)"
8128
xdt_cv_CFLAGS="$xdt_cv_CFLAGS -DXFCE_PANEL_UNLOCK\(\)=do{}while\(0\)"
8130
$1_CFLAGS="$xdt_cv_CFLAGS"
8132
dnl Check where to put the plugins to
8133
AC_MSG_CHECKING([where to install panel plugins])
8134
$1_PLUGINSDIR=$libdir/xfce4/panel-plugins
8135
AC_SUBST([$1_PLUGINSDIR])
8136
AC_MSG_RESULT([$$1_PLUGINSDIR])
8141
dnl XDT_XFCE_MCS_PLUGIN(varname, [version = 4.2.0])
8143
dnl This macro is intented to be used by MCS plugin writers. It
8144
dnl detects the MCS manager package on the target system and sets
8145
dnl "varname"_CFLAGS, "varname"_LIBS, "varname"_REQUIRED_VERSION,
8146
dnl and "varname"_VERSION. The parameter "version" allows you
8147
dnl to specify the minimum required version of xfce-mcs-manager
8148
dnl (defaults to 4.2.0 if not given).
8150
dnl In addition, this macro defines "varname"_PLUGINSDIR (and
8151
dnl marks it for substitution), which points to the directory
8152
dnl where the MCS plugin should be installed to. You should use
8153
dnl this variable in your Makefile.am.
8155
AC_DEFUN([XDT_XFCE_MCS_PLUGIN],
8157
dnl Check for the xfce-mcs-manager package
8158
XDT_CHECK_PACKAGE([$1], [xfce-mcs-manager], [m4_default([$2], [4.2.0])])
8160
dnl Check where to put the plugins to
8161
AC_MSG_CHECKING([where to install MCS plugins])
8162
$1_PLUGINSDIR=$libdir/xfce4/mcs-plugins
8163
AC_SUBST([$1_PLUGINSDIR])
8164
AC_MSG_RESULT([$$1_PLUGINSDIR])
8169
dnl XFCE_PANEL_PLUGIN(varname, version)
8171
dnl Simple wrapper for XDT_XFCE_PANEL_PLUGIN(varname, version). Kept
8172
dnl for backward compatibility. Will be removed in the future.
8174
AC_DEFUN([XFCE_PANEL_PLUGIN],
8176
XDT_XFCE_PANEL_PLUGIN([$1], [$2])
8181
dnl XFCE_MCS_PLUGIN(varname, version)
8183
dnl Simple wrapper for XDT_XFCE_MCS_PLUGIN(varname, version). Kept
8184
dnl for backward compatibility. Will be removed in the future.
8186
AC_DEFUN([XFCE_MCS_PLUGIN],
8188
XDT_XFCE_MCS_PLUGIN([$1], [$2])