aclocal.m4 revision 132451
1132451Sroberto# generated automatically by aclocal 1.7.7 -*- Autoconf -*- 2132451Sroberto 3132451Sroberto# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002 4132451Sroberto# Free Software Foundation, Inc. 5132451Sroberto# This file is free software; the Free Software Foundation 6132451Sroberto# gives unlimited permission to copy and/or distribute it, 7132451Sroberto# with or without modifications, as long as this notice is preserved. 8132451Sroberto 9132451Sroberto# This program is distributed in the hope that it will be useful, 10132451Sroberto# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 11132451Sroberto# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 12132451Sroberto# PARTICULAR PURPOSE. 13132451Sroberto 14132451Sroberto# Do all the work for Automake. -*- Autoconf -*- 15132451Sroberto 16132451Sroberto# This macro actually does too much some checks are only needed if 17132451Sroberto# your package does certain things. But this isn't really a big deal. 18132451Sroberto 19132451Sroberto# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 20132451Sroberto# Free Software Foundation, Inc. 21132451Sroberto 22132451Sroberto# This program is free software; you can redistribute it and/or modify 23132451Sroberto# it under the terms of the GNU General Public License as published by 24132451Sroberto# the Free Software Foundation; either version 2, or (at your option) 25132451Sroberto# any later version. 26132451Sroberto 27132451Sroberto# This program is distributed in the hope that it will be useful, 28132451Sroberto# but WITHOUT ANY WARRANTY; without even the implied warranty of 29132451Sroberto# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 30132451Sroberto# GNU General Public License for more details. 31132451Sroberto 32132451Sroberto# You should have received a copy of the GNU General Public License 33132451Sroberto# along with this program; if not, write to the Free Software 34132451Sroberto# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 35132451Sroberto# 02111-1307, USA. 36132451Sroberto 37132451Sroberto# serial 10 38132451Sroberto 39132451SrobertoAC_PREREQ([2.54]) 40132451Sroberto 41132451Sroberto# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow 42132451Sroberto# the ones we care about. 43132451Srobertom4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 44132451Sroberto 45132451Sroberto# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 46132451Sroberto# AM_INIT_AUTOMAKE([OPTIONS]) 47132451Sroberto# ----------------------------------------------- 48132451Sroberto# The call with PACKAGE and VERSION arguments is the old style 49132451Sroberto# call (pre autoconf-2.50), which is being phased out. PACKAGE 50132451Sroberto# and VERSION should now be passed to AC_INIT and removed from 51132451Sroberto# the call to AM_INIT_AUTOMAKE. 52132451Sroberto# We support both call styles for the transition. After 53132451Sroberto# the next Automake release, Autoconf can make the AC_INIT 54132451Sroberto# arguments mandatory, and then we can depend on a new Autoconf 55132451Sroberto# release and drop the old call support. 56132451SrobertoAC_DEFUN([AM_INIT_AUTOMAKE], 57132451Sroberto[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 58132451Sroberto AC_REQUIRE([AC_PROG_INSTALL])dnl 59132451Sroberto# test to see if srcdir already configured 60132451Srobertoif test "`cd $srcdir && pwd`" != "`pwd`" && 61132451Sroberto test -f $srcdir/config.status; then 62132451Sroberto AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 63132451Srobertofi 64132451Sroberto 65132451Sroberto# test whether we have cygpath 66132451Srobertoif test -z "$CYGPATH_W"; then 67132451Sroberto if (cygpath --version) >/dev/null 2>/dev/null; then 68132451Sroberto CYGPATH_W='cygpath -w' 69132451Sroberto else 70132451Sroberto CYGPATH_W=echo 71132451Sroberto fi 72132451Srobertofi 73132451SrobertoAC_SUBST([CYGPATH_W]) 74132451Sroberto 75132451Sroberto# Define the identity of the package. 76132451Srobertodnl Distinguish between old-style and new-style calls. 77132451Srobertom4_ifval([$2], 78132451Sroberto[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 79132451Sroberto AC_SUBST([PACKAGE], [$1])dnl 80132451Sroberto AC_SUBST([VERSION], [$2])], 81132451Sroberto[_AM_SET_OPTIONS([$1])dnl 82132451Sroberto AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 83132451Sroberto AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 84132451Sroberto 85132451Sroberto_AM_IF_OPTION([no-define],, 86132451Sroberto[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 87132451Sroberto AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 88132451Sroberto 89132451Sroberto# Some tools Automake needs. 90132451SrobertoAC_REQUIRE([AM_SANITY_CHECK])dnl 91132451SrobertoAC_REQUIRE([AC_ARG_PROGRAM])dnl 92132451SrobertoAM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 93132451SrobertoAM_MISSING_PROG(AUTOCONF, autoconf) 94132451SrobertoAM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 95132451SrobertoAM_MISSING_PROG(AUTOHEADER, autoheader) 96132451SrobertoAM_MISSING_PROG(MAKEINFO, makeinfo) 97132451SrobertoAM_MISSING_PROG(AMTAR, tar) 98132451SrobertoAM_PROG_INSTALL_SH 99132451SrobertoAM_PROG_INSTALL_STRIP 100132451Sroberto# We need awk for the "check" target. The system "awk" is bad on 101132451Sroberto# some platforms. 102132451SrobertoAC_REQUIRE([AC_PROG_AWK])dnl 103132451SrobertoAC_REQUIRE([AC_PROG_MAKE_SET])dnl 104132451SrobertoAC_REQUIRE([AM_SET_LEADING_DOT])dnl 105132451Sroberto 106132451Sroberto_AM_IF_OPTION([no-dependencies],, 107132451Sroberto[AC_PROVIDE_IFELSE([AC_PROG_CC], 108132451Sroberto [_AM_DEPENDENCIES(CC)], 109132451Sroberto [define([AC_PROG_CC], 110132451Sroberto defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 111132451SrobertoAC_PROVIDE_IFELSE([AC_PROG_CXX], 112132451Sroberto [_AM_DEPENDENCIES(CXX)], 113132451Sroberto [define([AC_PROG_CXX], 114132451Sroberto defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 115132451Sroberto]) 116132451Sroberto]) 117132451Sroberto 118132451Sroberto 119132451Sroberto# When config.status generates a header, we must update the stamp-h file. 120132451Sroberto# This file resides in the same directory as the config header 121132451Sroberto# that is generated. The stamp files are numbered to have different names. 122132451Sroberto 123132451Sroberto# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 124132451Sroberto# loop where config.status creates the headers, so we can generate 125132451Sroberto# our stamp files there. 126132451SrobertoAC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 127132451Sroberto[# Compute $1's index in $config_headers. 128132451Sroberto_am_stamp_count=1 129132451Srobertofor _am_header in $config_headers :; do 130132451Sroberto case $_am_header in 131132451Sroberto $1 | $1:* ) 132132451Sroberto break ;; 133132451Sroberto * ) 134132451Sroberto _am_stamp_count=`expr $_am_stamp_count + 1` ;; 135132451Sroberto esac 136132451Srobertodone 137132451Srobertoecho "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) 138132451Sroberto 139132451Sroberto# Copyright 2002 Free Software Foundation, Inc. 140132451Sroberto 141132451Sroberto# This program is free software; you can redistribute it and/or modify 142132451Sroberto# it under the terms of the GNU General Public License as published by 143132451Sroberto# the Free Software Foundation; either version 2, or (at your option) 144132451Sroberto# any later version. 145132451Sroberto 146132451Sroberto# This program is distributed in the hope that it will be useful, 147132451Sroberto# but WITHOUT ANY WARRANTY; without even the implied warranty of 148132451Sroberto# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 149132451Sroberto# GNU General Public License for more details. 150132451Sroberto 151132451Sroberto# You should have received a copy of the GNU General Public License 152132451Sroberto# along with this program; if not, write to the Free Software 153132451Sroberto# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 154132451Sroberto 155132451Sroberto# AM_AUTOMAKE_VERSION(VERSION) 156132451Sroberto# ---------------------------- 157132451Sroberto# Automake X.Y traces this macro to ensure aclocal.m4 has been 158132451Sroberto# generated from the m4 files accompanying Automake X.Y. 159132451SrobertoAC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"]) 160132451Sroberto 161132451Sroberto# AM_SET_CURRENT_AUTOMAKE_VERSION 162132451Sroberto# ------------------------------- 163132451Sroberto# Call AM_AUTOMAKE_VERSION so it can be traced. 164132451Sroberto# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. 165132451SrobertoAC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 166132451Sroberto [AM_AUTOMAKE_VERSION([1.7.7])]) 167132451Sroberto 168132451Sroberto# Helper functions for option handling. -*- Autoconf -*- 169132451Sroberto 170132451Sroberto# Copyright 2001, 2002 Free Software Foundation, Inc. 171132451Sroberto 172132451Sroberto# This program is free software; you can redistribute it and/or modify 173132451Sroberto# it under the terms of the GNU General Public License as published by 174132451Sroberto# the Free Software Foundation; either version 2, or (at your option) 175132451Sroberto# any later version. 176132451Sroberto 177132451Sroberto# This program is distributed in the hope that it will be useful, 178132451Sroberto# but WITHOUT ANY WARRANTY; without even the implied warranty of 179132451Sroberto# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 180132451Sroberto# GNU General Public License for more details. 181132451Sroberto 182132451Sroberto# You should have received a copy of the GNU General Public License 183132451Sroberto# along with this program; if not, write to the Free Software 184132451Sroberto# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 185132451Sroberto# 02111-1307, USA. 186132451Sroberto 187132451Sroberto# serial 2 188132451Sroberto 189132451Sroberto# _AM_MANGLE_OPTION(NAME) 190132451Sroberto# ----------------------- 191132451SrobertoAC_DEFUN([_AM_MANGLE_OPTION], 192132451Sroberto[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 193132451Sroberto 194132451Sroberto# _AM_SET_OPTION(NAME) 195132451Sroberto# ------------------------------ 196132451Sroberto# Set option NAME. Presently that only means defining a flag for this option. 197132451SrobertoAC_DEFUN([_AM_SET_OPTION], 198132451Sroberto[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 199132451Sroberto 200132451Sroberto# _AM_SET_OPTIONS(OPTIONS) 201132451Sroberto# ---------------------------------- 202132451Sroberto# OPTIONS is a space-separated list of Automake options. 203132451SrobertoAC_DEFUN([_AM_SET_OPTIONS], 204132451Sroberto[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 205132451Sroberto 206132451Sroberto# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 207132451Sroberto# ------------------------------------------- 208132451Sroberto# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 209132451SrobertoAC_DEFUN([_AM_IF_OPTION], 210132451Sroberto[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 211132451Sroberto 212132451Sroberto# 213132451Sroberto# Check to make sure that the build environment is sane. 214132451Sroberto# 215132451Sroberto 216132451Sroberto# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc. 217132451Sroberto 218132451Sroberto# This program is free software; you can redistribute it and/or modify 219132451Sroberto# it under the terms of the GNU General Public License as published by 220132451Sroberto# the Free Software Foundation; either version 2, or (at your option) 221132451Sroberto# any later version. 222132451Sroberto 223132451Sroberto# This program is distributed in the hope that it will be useful, 224132451Sroberto# but WITHOUT ANY WARRANTY; without even the implied warranty of 225132451Sroberto# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 226132451Sroberto# GNU General Public License for more details. 227132451Sroberto 228132451Sroberto# You should have received a copy of the GNU General Public License 229132451Sroberto# along with this program; if not, write to the Free Software 230132451Sroberto# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 231132451Sroberto# 02111-1307, USA. 232132451Sroberto 233132451Sroberto# serial 3 234132451Sroberto 235132451Sroberto# AM_SANITY_CHECK 236132451Sroberto# --------------- 237132451SrobertoAC_DEFUN([AM_SANITY_CHECK], 238132451Sroberto[AC_MSG_CHECKING([whether build environment is sane]) 239132451Sroberto# Just in case 240132451Srobertosleep 1 241132451Srobertoecho timestamp > conftest.file 242132451Sroberto# Do `set' in a subshell so we don't clobber the current shell's 243132451Sroberto# arguments. Must try -L first in case configure is actually a 244132451Sroberto# symlink; some systems play weird games with the mod time of symlinks 245132451Sroberto# (eg FreeBSD returns the mod time of the symlink's containing 246132451Sroberto# directory). 247132451Srobertoif ( 248132451Sroberto set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 249132451Sroberto if test "$[*]" = "X"; then 250132451Sroberto # -L didn't work. 251132451Sroberto set X `ls -t $srcdir/configure conftest.file` 252132451Sroberto fi 253132451Sroberto rm -f conftest.file 254132451Sroberto if test "$[*]" != "X $srcdir/configure conftest.file" \ 255132451Sroberto && test "$[*]" != "X conftest.file $srcdir/configure"; then 256132451Sroberto 257132451Sroberto # If neither matched, then we have a broken ls. This can happen 258132451Sroberto # if, for instance, CONFIG_SHELL is bash and it inherits a 259132451Sroberto # broken ls alias from the environment. This has actually 260132451Sroberto # happened. Such a system could not be considered "sane". 261132451Sroberto AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 262132451Srobertoalias in your environment]) 263132451Sroberto fi 264132451Sroberto 265132451Sroberto test "$[2]" = conftest.file 266132451Sroberto ) 267132451Srobertothen 268132451Sroberto # Ok. 269132451Sroberto : 270132451Srobertoelse 271132451Sroberto AC_MSG_ERROR([newly created file is older than distributed files! 272132451SrobertoCheck your system clock]) 273132451Srobertofi 274132451SrobertoAC_MSG_RESULT(yes)]) 275132451Sroberto 276132451Sroberto# -*- Autoconf -*- 277132451Sroberto 278132451Sroberto 279132451Sroberto# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc. 280132451Sroberto 281132451Sroberto# This program is free software; you can redistribute it and/or modify 282132451Sroberto# it under the terms of the GNU General Public License as published by 283132451Sroberto# the Free Software Foundation; either version 2, or (at your option) 284132451Sroberto# any later version. 285132451Sroberto 286132451Sroberto# This program is distributed in the hope that it will be useful, 287132451Sroberto# but WITHOUT ANY WARRANTY; without even the implied warranty of 288132451Sroberto# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 289132451Sroberto# GNU General Public License for more details. 290132451Sroberto 291132451Sroberto# You should have received a copy of the GNU General Public License 292132451Sroberto# along with this program; if not, write to the Free Software 293132451Sroberto# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 294132451Sroberto# 02111-1307, USA. 295132451Sroberto 296132451Sroberto# serial 3 297132451Sroberto 298132451Sroberto# AM_MISSING_PROG(NAME, PROGRAM) 299132451Sroberto# ------------------------------ 300132451SrobertoAC_DEFUN([AM_MISSING_PROG], 301132451Sroberto[AC_REQUIRE([AM_MISSING_HAS_RUN]) 302132451Sroberto$1=${$1-"${am_missing_run}$2"} 303132451SrobertoAC_SUBST($1)]) 304132451Sroberto 305132451Sroberto 306132451Sroberto# AM_MISSING_HAS_RUN 307132451Sroberto# ------------------ 308132451Sroberto# Define MISSING if not defined so far and test if it supports --run. 309132451Sroberto# If it does, set am_missing_run to use it, otherwise, to nothing. 310132451SrobertoAC_DEFUN([AM_MISSING_HAS_RUN], 311132451Sroberto[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 312132451Srobertotest x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 313132451Sroberto# Use eval to expand $SHELL 314132451Srobertoif eval "$MISSING --run true"; then 315132451Sroberto am_missing_run="$MISSING --run " 316132451Srobertoelse 317132451Sroberto am_missing_run= 318132451Sroberto AC_MSG_WARN([`missing' script is too old or missing]) 319132451Srobertofi 320132451Sroberto]) 321132451Sroberto 322132451Sroberto# AM_AUX_DIR_EXPAND 323132451Sroberto 324132451Sroberto# Copyright 2001 Free Software Foundation, Inc. 325132451Sroberto 326132451Sroberto# This program is free software; you can redistribute it and/or modify 327132451Sroberto# it under the terms of the GNU General Public License as published by 328132451Sroberto# the Free Software Foundation; either version 2, or (at your option) 329132451Sroberto# any later version. 330132451Sroberto 331132451Sroberto# This program is distributed in the hope that it will be useful, 332132451Sroberto# but WITHOUT ANY WARRANTY; without even the implied warranty of 333132451Sroberto# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 334132451Sroberto# GNU General Public License for more details. 335132451Sroberto 336132451Sroberto# You should have received a copy of the GNU General Public License 337132451Sroberto# along with this program; if not, write to the Free Software 338132451Sroberto# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 339132451Sroberto# 02111-1307, USA. 340132451Sroberto 341132451Sroberto# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 342132451Sroberto# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 343132451Sroberto# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 344132451Sroberto# 345132451Sroberto# Of course, Automake must honor this variable whenever it calls a 346132451Sroberto# tool from the auxiliary directory. The problem is that $srcdir (and 347132451Sroberto# therefore $ac_aux_dir as well) can be either absolute or relative, 348132451Sroberto# depending on how configure is run. This is pretty annoying, since 349132451Sroberto# it makes $ac_aux_dir quite unusable in subdirectories: in the top 350132451Sroberto# source directory, any form will work fine, but in subdirectories a 351132451Sroberto# relative path needs to be adjusted first. 352132451Sroberto# 353132451Sroberto# $ac_aux_dir/missing 354132451Sroberto# fails when called from a subdirectory if $ac_aux_dir is relative 355132451Sroberto# $top_srcdir/$ac_aux_dir/missing 356132451Sroberto# fails if $ac_aux_dir is absolute, 357132451Sroberto# fails when called from a subdirectory in a VPATH build with 358132451Sroberto# a relative $ac_aux_dir 359132451Sroberto# 360132451Sroberto# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 361132451Sroberto# are both prefixed by $srcdir. In an in-source build this is usually 362132451Sroberto# harmless because $srcdir is `.', but things will broke when you 363132451Sroberto# start a VPATH build or use an absolute $srcdir. 364132451Sroberto# 365132451Sroberto# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 366132451Sroberto# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 367132451Sroberto# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 368132451Sroberto# and then we would define $MISSING as 369132451Sroberto# MISSING="\${SHELL} $am_aux_dir/missing" 370132451Sroberto# This will work as long as MISSING is not called from configure, because 371132451Sroberto# unfortunately $(top_srcdir) has no meaning in configure. 372132451Sroberto# However there are other variables, like CC, which are often used in 373132451Sroberto# configure, and could therefore not use this "fixed" $ac_aux_dir. 374132451Sroberto# 375132451Sroberto# Another solution, used here, is to always expand $ac_aux_dir to an 376132451Sroberto# absolute PATH. The drawback is that using absolute paths prevent a 377132451Sroberto# configured tree to be moved without reconfiguration. 378132451Sroberto 379132451Sroberto# Rely on autoconf to set up CDPATH properly. 380132451SrobertoAC_PREREQ([2.50]) 381132451Sroberto 382132451SrobertoAC_DEFUN([AM_AUX_DIR_EXPAND], [ 383132451Sroberto# expand $ac_aux_dir to an absolute path 384132451Srobertoam_aux_dir=`cd $ac_aux_dir && pwd` 385132451Sroberto]) 386132451Sroberto 387132451Sroberto# AM_PROG_INSTALL_SH 388132451Sroberto# ------------------ 389132451Sroberto# Define $install_sh. 390132451Sroberto 391132451Sroberto# Copyright 2001 Free Software Foundation, Inc. 392132451Sroberto 393132451Sroberto# This program is free software; you can redistribute it and/or modify 394132451Sroberto# it under the terms of the GNU General Public License as published by 395132451Sroberto# the Free Software Foundation; either version 2, or (at your option) 396132451Sroberto# any later version. 397132451Sroberto 398132451Sroberto# This program is distributed in the hope that it will be useful, 399132451Sroberto# but WITHOUT ANY WARRANTY; without even the implied warranty of 400132451Sroberto# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 401132451Sroberto# GNU General Public License for more details. 402132451Sroberto 403132451Sroberto# You should have received a copy of the GNU General Public License 404132451Sroberto# along with this program; if not, write to the Free Software 405132451Sroberto# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 406132451Sroberto# 02111-1307, USA. 407132451Sroberto 408132451SrobertoAC_DEFUN([AM_PROG_INSTALL_SH], 409132451Sroberto[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 410132451Srobertoinstall_sh=${install_sh-"$am_aux_dir/install-sh"} 411132451SrobertoAC_SUBST(install_sh)]) 412132451Sroberto 413132451Sroberto# AM_PROG_INSTALL_STRIP 414132451Sroberto 415132451Sroberto# Copyright 2001 Free Software Foundation, Inc. 416132451Sroberto 417132451Sroberto# This program is free software; you can redistribute it and/or modify 418132451Sroberto# it under the terms of the GNU General Public License as published by 419132451Sroberto# the Free Software Foundation; either version 2, or (at your option) 420132451Sroberto# any later version. 421132451Sroberto 422132451Sroberto# This program is distributed in the hope that it will be useful, 423132451Sroberto# but WITHOUT ANY WARRANTY; without even the implied warranty of 424132451Sroberto# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 425132451Sroberto# GNU General Public License for more details. 426132451Sroberto 427132451Sroberto# You should have received a copy of the GNU General Public License 428132451Sroberto# along with this program; if not, write to the Free Software 429132451Sroberto# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 430132451Sroberto# 02111-1307, USA. 431132451Sroberto 432132451Sroberto# One issue with vendor `install' (even GNU) is that you can't 433132451Sroberto# specify the program used to strip binaries. This is especially 434132451Sroberto# annoying in cross-compiling environments, where the build's strip 435132451Sroberto# is unlikely to handle the host's binaries. 436132451Sroberto# Fortunately install-sh will honor a STRIPPROG variable, so we 437132451Sroberto# always use install-sh in `make install-strip', and initialize 438132451Sroberto# STRIPPROG with the value of the STRIP variable (set by the user). 439132451SrobertoAC_DEFUN([AM_PROG_INSTALL_STRIP], 440132451Sroberto[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 441132451Sroberto# Installed binaries are usually stripped using `strip' when the user 442132451Sroberto# run `make install-strip'. However `strip' might not be the right 443132451Sroberto# tool to use in cross-compilation environments, therefore Automake 444132451Sroberto# will honor the `STRIP' environment variable to overrule this program. 445132451Srobertodnl Don't test for $cross_compiling = yes, because it might be `maybe'. 446132451Srobertoif test "$cross_compiling" != no; then 447132451Sroberto AC_CHECK_TOOL([STRIP], [strip], :) 448132451Srobertofi 449132451SrobertoINSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 450132451SrobertoAC_SUBST([INSTALL_STRIP_PROGRAM])]) 451132451Sroberto 452132451Sroberto# -*- Autoconf -*- 453132451Sroberto# Copyright (C) 2003 Free Software Foundation, Inc. 454132451Sroberto 455132451Sroberto# This program is free software; you can redistribute it and/or modify 456132451Sroberto# it under the terms of the GNU General Public License as published by 457132451Sroberto# the Free Software Foundation; either version 2, or (at your option) 458132451Sroberto# any later version. 459132451Sroberto 460132451Sroberto# This program is distributed in the hope that it will be useful, 461132451Sroberto# but WITHOUT ANY WARRANTY; without even the implied warranty of 462132451Sroberto# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 463132451Sroberto# GNU General Public License for more details. 464132451Sroberto 465132451Sroberto# You should have received a copy of the GNU General Public License 466132451Sroberto# along with this program; if not, write to the Free Software 467132451Sroberto# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 468132451Sroberto# 02111-1307, USA. 469132451Sroberto 470132451Sroberto# serial 1 471132451Sroberto 472132451Sroberto# Check whether the underlying file-system supports filenames 473132451Sroberto# with a leading dot. For instance MS-DOS doesn't. 474132451SrobertoAC_DEFUN([AM_SET_LEADING_DOT], 475132451Sroberto[rm -rf .tst 2>/dev/null 476132451Srobertomkdir .tst 2>/dev/null 477132451Srobertoif test -d .tst; then 478132451Sroberto am__leading_dot=. 479132451Srobertoelse 480132451Sroberto am__leading_dot=_ 481132451Srobertofi 482132451Srobertormdir .tst 2>/dev/null 483132451SrobertoAC_SUBST([am__leading_dot])]) 484132451Sroberto 485132451Sroberto# serial 5 -*- Autoconf -*- 486132451Sroberto 487132451Sroberto# Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. 488132451Sroberto 489132451Sroberto# This program is free software; you can redistribute it and/or modify 490132451Sroberto# it under the terms of the GNU General Public License as published by 491132451Sroberto# the Free Software Foundation; either version 2, or (at your option) 492132451Sroberto# any later version. 493132451Sroberto 494132451Sroberto# This program is distributed in the hope that it will be useful, 495132451Sroberto# but WITHOUT ANY WARRANTY; without even the implied warranty of 496132451Sroberto# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 497132451Sroberto# GNU General Public License for more details. 498132451Sroberto 499132451Sroberto# You should have received a copy of the GNU General Public License 500132451Sroberto# along with this program; if not, write to the Free Software 501132451Sroberto# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 502132451Sroberto# 02111-1307, USA. 503132451Sroberto 504132451Sroberto 505132451Sroberto# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 506132451Sroberto# written in clear, in which case automake, when reading aclocal.m4, 507132451Sroberto# will think it sees a *use*, and therefore will trigger all it's 508132451Sroberto# C support machinery. Also note that it means that autoscan, seeing 509132451Sroberto# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 510132451Sroberto 511132451Sroberto 512132451Sroberto 513132451Sroberto# _AM_DEPENDENCIES(NAME) 514132451Sroberto# ---------------------- 515132451Sroberto# See how the compiler implements dependency checking. 516132451Sroberto# NAME is "CC", "CXX", "GCJ", or "OBJC". 517132451Sroberto# We try a few techniques and use that to set a single cache variable. 518132451Sroberto# 519132451Sroberto# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 520132451Sroberto# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 521132451Sroberto# dependency, and given that the user is not expected to run this macro, 522132451Sroberto# just rely on AC_PROG_CC. 523132451SrobertoAC_DEFUN([_AM_DEPENDENCIES], 524132451Sroberto[AC_REQUIRE([AM_SET_DEPDIR])dnl 525132451SrobertoAC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 526132451SrobertoAC_REQUIRE([AM_MAKE_INCLUDE])dnl 527132451SrobertoAC_REQUIRE([AM_DEP_TRACK])dnl 528132451Sroberto 529132451Srobertoifelse([$1], CC, [depcc="$CC" am_compiler_list=], 530132451Sroberto [$1], CXX, [depcc="$CXX" am_compiler_list=], 531132451Sroberto [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 532132451Sroberto [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 533132451Sroberto [depcc="$$1" am_compiler_list=]) 534132451Sroberto 535132451SrobertoAC_CACHE_CHECK([dependency style of $depcc], 536132451Sroberto [am_cv_$1_dependencies_compiler_type], 537132451Sroberto[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 538132451Sroberto # We make a subdir and do the tests there. Otherwise we can end up 539132451Sroberto # making bogus files that we don't know about and never remove. For 540132451Sroberto # instance it was reported that on HP-UX the gcc test will end up 541132451Sroberto # making a dummy file named `D' -- because `-MD' means `put the output 542132451Sroberto # in D'. 543132451Sroberto mkdir conftest.dir 544132451Sroberto # Copy depcomp to subdir because otherwise we won't find it if we're 545132451Sroberto # using a relative directory. 546132451Sroberto cp "$am_depcomp" conftest.dir 547132451Sroberto cd conftest.dir 548132451Sroberto # We will build objects and dependencies in a subdirectory because 549132451Sroberto # it helps to detect inapplicable dependency modes. For instance 550132451Sroberto # both Tru64's cc and ICC support -MD to output dependencies as a 551132451Sroberto # side effect of compilation, but ICC will put the dependencies in 552132451Sroberto # the current directory while Tru64 will put them in the object 553132451Sroberto # directory. 554132451Sroberto mkdir sub 555132451Sroberto 556132451Sroberto am_cv_$1_dependencies_compiler_type=none 557132451Sroberto if test "$am_compiler_list" = ""; then 558132451Sroberto am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 559132451Sroberto fi 560132451Sroberto for depmode in $am_compiler_list; do 561132451Sroberto # Setup a source with many dependencies, because some compilers 562132451Sroberto # like to wrap large dependency lists on column 80 (with \), and 563132451Sroberto # we should not choose a depcomp mode which is confused by this. 564132451Sroberto # 565132451Sroberto # We need to recreate these files for each test, as the compiler may 566132451Sroberto # overwrite some of them when testing with obscure command lines. 567132451Sroberto # This happens at least with the AIX C compiler. 568132451Sroberto : > sub/conftest.c 569132451Sroberto for i in 1 2 3 4 5 6; do 570132451Sroberto echo '#include "conftst'$i'.h"' >> sub/conftest.c 571132451Sroberto : > sub/conftst$i.h 572132451Sroberto done 573132451Sroberto echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 574132451Sroberto 575132451Sroberto case $depmode in 576132451Sroberto nosideeffect) 577132451Sroberto # after this tag, mechanisms are not by side-effect, so they'll 578132451Sroberto # only be used when explicitly requested 579132451Sroberto if test "x$enable_dependency_tracking" = xyes; then 580132451Sroberto continue 581132451Sroberto else 582132451Sroberto break 583132451Sroberto fi 584132451Sroberto ;; 585132451Sroberto none) break ;; 586132451Sroberto esac 587132451Sroberto # We check with `-c' and `-o' for the sake of the "dashmstdout" 588132451Sroberto # mode. It turns out that the SunPro C++ compiler does not properly 589132451Sroberto # handle `-M -o', and we need to detect this. 590132451Sroberto if depmode=$depmode \ 591132451Sroberto source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 592132451Sroberto depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 593132451Sroberto $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 594132451Sroberto >/dev/null 2>conftest.err && 595132451Sroberto grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 596132451Sroberto grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 597132451Sroberto ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 598132451Sroberto # icc doesn't choke on unknown options, it will just issue warnings 599132451Sroberto # (even with -Werror). So we grep stderr for any message 600132451Sroberto # that says an option was ignored. 601132451Sroberto if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else 602132451Sroberto am_cv_$1_dependencies_compiler_type=$depmode 603132451Sroberto break 604132451Sroberto fi 605132451Sroberto fi 606132451Sroberto done 607132451Sroberto 608132451Sroberto cd .. 609132451Sroberto rm -rf conftest.dir 610132451Srobertoelse 611132451Sroberto am_cv_$1_dependencies_compiler_type=none 612132451Srobertofi 613132451Sroberto]) 614132451SrobertoAC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 615132451SrobertoAM_CONDITIONAL([am__fastdep$1], [ 616132451Sroberto test "x$enable_dependency_tracking" != xno \ 617132451Sroberto && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 618132451Sroberto]) 619132451Sroberto 620132451Sroberto 621132451Sroberto# AM_SET_DEPDIR 622132451Sroberto# ------------- 623132451Sroberto# Choose a directory name for dependency files. 624132451Sroberto# This macro is AC_REQUIREd in _AM_DEPENDENCIES 625132451SrobertoAC_DEFUN([AM_SET_DEPDIR], 626132451Sroberto[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 627132451SrobertoAC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 628132451Sroberto]) 629132451Sroberto 630132451Sroberto 631132451Sroberto# AM_DEP_TRACK 632132451Sroberto# ------------ 633132451SrobertoAC_DEFUN([AM_DEP_TRACK], 634132451Sroberto[AC_ARG_ENABLE(dependency-tracking, 635132451Sroberto[ --disable-dependency-tracking Speeds up one-time builds 636132451Sroberto --enable-dependency-tracking Do not reject slow dependency extractors]) 637132451Srobertoif test "x$enable_dependency_tracking" != xno; then 638132451Sroberto am_depcomp="$ac_aux_dir/depcomp" 639132451Sroberto AMDEPBACKSLASH='\' 640132451Srobertofi 641132451SrobertoAM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 642132451SrobertoAC_SUBST([AMDEPBACKSLASH]) 643132451Sroberto]) 644132451Sroberto 645132451Sroberto# Generate code to set up dependency tracking. -*- Autoconf -*- 646132451Sroberto 647132451Sroberto# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc. 648132451Sroberto 649132451Sroberto# This program is free software; you can redistribute it and/or modify 650132451Sroberto# it under the terms of the GNU General Public License as published by 651132451Sroberto# the Free Software Foundation; either version 2, or (at your option) 652132451Sroberto# any later version. 653132451Sroberto 654132451Sroberto# This program is distributed in the hope that it will be useful, 655132451Sroberto# but WITHOUT ANY WARRANTY; without even the implied warranty of 656132451Sroberto# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 657132451Sroberto# GNU General Public License for more details. 658132451Sroberto 659132451Sroberto# You should have received a copy of the GNU General Public License 660132451Sroberto# along with this program; if not, write to the Free Software 661132451Sroberto# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 662132451Sroberto# 02111-1307, USA. 663132451Sroberto 664132451Sroberto#serial 2 665132451Sroberto 666132451Sroberto# _AM_OUTPUT_DEPENDENCY_COMMANDS 667132451Sroberto# ------------------------------ 668132451SrobertoAC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 669132451Sroberto[for mf in $CONFIG_FILES; do 670132451Sroberto # Strip MF so we end up with the name of the file. 671132451Sroberto mf=`echo "$mf" | sed -e 's/:.*$//'` 672132451Sroberto # Check whether this is an Automake generated Makefile or not. 673132451Sroberto # We used to match only the files named `Makefile.in', but 674132451Sroberto # some people rename them; so instead we look at the file content. 675132451Sroberto # Grep'ing the first line is not enough: some people post-process 676132451Sroberto # each Makefile.in and add a new line on top of each file to say so. 677132451Sroberto # So let's grep whole file. 678132451Sroberto if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 679132451Sroberto dirpart=`AS_DIRNAME("$mf")` 680132451Sroberto else 681132451Sroberto continue 682132451Sroberto fi 683132451Sroberto grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue 684132451Sroberto # Extract the definition of DEP_FILES from the Makefile without 685132451Sroberto # running `make'. 686132451Sroberto DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 687132451Sroberto test -z "$DEPDIR" && continue 688132451Sroberto # When using ansi2knr, U may be empty or an underscore; expand it 689132451Sroberto U=`sed -n -e '/^U = / s///p' < "$mf"` 690132451Sroberto test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 691132451Sroberto # We invoke sed twice because it is the simplest approach to 692132451Sroberto # changing $(DEPDIR) to its actual value in the expansion. 693132451Sroberto for file in `sed -n -e ' 694132451Sroberto /^DEP_FILES = .*\\\\$/ { 695132451Sroberto s/^DEP_FILES = // 696132451Sroberto :loop 697132451Sroberto s/\\\\$// 698132451Sroberto p 699132451Sroberto n 700132451Sroberto /\\\\$/ b loop 701132451Sroberto p 702132451Sroberto } 703132451Sroberto /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 704132451Sroberto sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 705132451Sroberto # Make sure the directory exists. 706132451Sroberto test -f "$dirpart/$file" && continue 707132451Sroberto fdir=`AS_DIRNAME(["$file"])` 708132451Sroberto AS_MKDIR_P([$dirpart/$fdir]) 709132451Sroberto # echo "creating $dirpart/$file" 710132451Sroberto echo '# dummy' > "$dirpart/$file" 711132451Sroberto done 712132451Srobertodone 713132451Sroberto])# _AM_OUTPUT_DEPENDENCY_COMMANDS 714132451Sroberto 715132451Sroberto 716132451Sroberto# AM_OUTPUT_DEPENDENCY_COMMANDS 717132451Sroberto# ----------------------------- 718132451Sroberto# This macro should only be invoked once -- use via AC_REQUIRE. 719132451Sroberto# 720132451Sroberto# This code is only required when automatic dependency tracking 721132451Sroberto# is enabled. FIXME. This creates each `.P' file that we will 722132451Sroberto# need in order to bootstrap the dependency handling code. 723132451SrobertoAC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 724132451Sroberto[AC_CONFIG_COMMANDS([depfiles], 725132451Sroberto [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 726132451Sroberto [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 727132451Sroberto]) 728132451Sroberto 729132451Sroberto# Check to see how 'make' treats includes. -*- Autoconf -*- 730132451Sroberto 731132451Sroberto# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. 732132451Sroberto 733132451Sroberto# This program is free software; you can redistribute it and/or modify 734132451Sroberto# it under the terms of the GNU General Public License as published by 735132451Sroberto# the Free Software Foundation; either version 2, or (at your option) 736132451Sroberto# any later version. 737132451Sroberto 738132451Sroberto# This program is distributed in the hope that it will be useful, 739132451Sroberto# but WITHOUT ANY WARRANTY; without even the implied warranty of 740132451Sroberto# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 741132451Sroberto# GNU General Public License for more details. 742132451Sroberto 743132451Sroberto# You should have received a copy of the GNU General Public License 744132451Sroberto# along with this program; if not, write to the Free Software 745132451Sroberto# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 746132451Sroberto# 02111-1307, USA. 747132451Sroberto 748132451Sroberto# serial 2 749132451Sroberto 750132451Sroberto# AM_MAKE_INCLUDE() 751132451Sroberto# ----------------- 752132451Sroberto# Check to see how make treats includes. 753132451SrobertoAC_DEFUN([AM_MAKE_INCLUDE], 754132451Sroberto[am_make=${MAKE-make} 755132451Srobertocat > confinc << 'END' 756132451Srobertoam__doit: 757132451Sroberto @echo done 758132451Sroberto.PHONY: am__doit 759132451SrobertoEND 760132451Sroberto# If we don't find an include directive, just comment out the code. 761132451SrobertoAC_MSG_CHECKING([for style of include used by $am_make]) 762132451Srobertoam__include="#" 763132451Srobertoam__quote= 764132451Sroberto_am_result=none 765132451Sroberto# First try GNU make style include. 766132451Srobertoecho "include confinc" > confmf 767132451Sroberto# We grep out `Entering directory' and `Leaving directory' 768132451Sroberto# messages which can occur if `w' ends up in MAKEFLAGS. 769132451Sroberto# In particular we don't look at `^make:' because GNU make might 770132451Sroberto# be invoked under some other name (usually "gmake"), in which 771132451Sroberto# case it prints its new name instead of `make'. 772132451Srobertoif test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 773132451Sroberto am__include=include 774132451Sroberto am__quote= 775132451Sroberto _am_result=GNU 776132451Srobertofi 777132451Sroberto# Now try BSD make style include. 778132451Srobertoif test "$am__include" = "#"; then 779132451Sroberto echo '.include "confinc"' > confmf 780132451Sroberto if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 781132451Sroberto am__include=.include 782132451Sroberto am__quote="\"" 783132451Sroberto _am_result=BSD 784132451Sroberto fi 785132451Srobertofi 786132451SrobertoAC_SUBST([am__include]) 787132451SrobertoAC_SUBST([am__quote]) 788132451SrobertoAC_MSG_RESULT([$_am_result]) 789132451Srobertorm -f confinc confmf 790132451Sroberto]) 791132451Sroberto 792132451Sroberto# AM_CONDITIONAL -*- Autoconf -*- 793132451Sroberto 794132451Sroberto# Copyright 1997, 2000, 2001 Free Software Foundation, Inc. 795132451Sroberto 796132451Sroberto# This program is free software; you can redistribute it and/or modify 797132451Sroberto# it under the terms of the GNU General Public License as published by 798132451Sroberto# the Free Software Foundation; either version 2, or (at your option) 799132451Sroberto# any later version. 800132451Sroberto 801132451Sroberto# This program is distributed in the hope that it will be useful, 802132451Sroberto# but WITHOUT ANY WARRANTY; without even the implied warranty of 803132451Sroberto# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 804132451Sroberto# GNU General Public License for more details. 805132451Sroberto 806132451Sroberto# You should have received a copy of the GNU General Public License 807132451Sroberto# along with this program; if not, write to the Free Software 808132451Sroberto# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 809132451Sroberto# 02111-1307, USA. 810132451Sroberto 811132451Sroberto# serial 5 812132451Sroberto 813132451SrobertoAC_PREREQ(2.52) 814132451Sroberto 815132451Sroberto# AM_CONDITIONAL(NAME, SHELL-CONDITION) 816132451Sroberto# ------------------------------------- 817132451Sroberto# Define a conditional. 818132451SrobertoAC_DEFUN([AM_CONDITIONAL], 819132451Sroberto[ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 820132451Sroberto [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 821132451SrobertoAC_SUBST([$1_TRUE]) 822132451SrobertoAC_SUBST([$1_FALSE]) 823132451Srobertoif $2; then 824132451Sroberto $1_TRUE= 825132451Sroberto $1_FALSE='#' 826132451Srobertoelse 827132451Sroberto $1_TRUE='#' 828132451Sroberto $1_FALSE= 829132451Srobertofi 830132451SrobertoAC_CONFIG_COMMANDS_PRE( 831132451Sroberto[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 832132451Sroberto AC_MSG_ERROR([conditional "$1" was never defined. 833132451SrobertoUsually this means the macro was only invoked conditionally.]) 834132451Srobertofi])]) 835132451Sroberto 836