1# aclocal.m4 generated automatically by aclocal 1.5 2 3# Copyright 1996, 1997, 1998, 1999, 2000, 2001 4# Free Software Foundation, Inc. 5# This file is free software; the Free Software Foundation 6# gives unlimited permission to copy and/or distribute it, 7# with or without modifications, as long as this notice is preserved. 8 9# This program is distributed in the hope that it will be useful, 10# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 11# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 12# PARTICULAR PURPOSE. 13 14AC_DEFUN(DJ_AC_STL, [ 15AC_MSG_CHECKING(for STL versions) 16AC_CACHE_VAL(ac_cv_stl,[ 17 AC_LANG_CPLUSPLUS 18 AC_TRY_COMPILE([#include <iostream>], [ 19 using namespace std; 20 char bbuuff[5120]; 21 cout.rdbuf()->pubsetbuf(bbuuff, 5120); ], 22 ac_cv_stl=v3 23 , 24 ac_cv_stl=v2 25 ), 26]) 27 28AC_LANG_C 29if test x"${ac_cv_stl}" != x"v2" ; then 30 AC_MSG_RESULT(v3) 31 AC_DEFINE(HAVE_STL3) 32else 33 AC_MSG_RESULT(v2) 34fi 35]) 36 37AC_DEFUN(DJ_AC_PATH_TCLSH, [ 38dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../ 39../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../.. 40/../../../../../.." 41no_itcl=true 42AC_MSG_CHECKING(for the tclsh program) 43AC_ARG_WITH(tclinclude, [ --with-tclinclude directory where tcl header 44s are], with_tclinclude=${withval}) 45AC_CACHE_VAL(ac_cv_path_tclsh,[ 46dnl first check to see if --with-itclinclude was specified 47if test x"${with_tclinclude}" != x ; then 48 if test -f ${with_tclinclude}/tclsh ; then 49 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` 50 elif test -f ${with_tclinclude}/src/tclsh ; then 51 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` 52 else 53 AC_MSG_ERROR([${with_tclinclude} directory doesn't contain tclsh]) 54 fi 55fi 56]) 57 58dnl next check in private source directory 59dnl since ls returns lowest version numbers first, reverse its output 60if test x"${ac_cv_path_tclsh}" = x ; then 61 dnl find the top level Itcl source directory 62 for i in $dirlist; do 63 if test -n "`ls -dr $srcdir/$i/tcl* 2>/dev/null`" ; then 64 tclpath=$srcdir/$i 65 break 66 fi 67 done 68 69 dnl find the exact Itcl source dir. We do it this way, cause there 70 dnl might be multiple version of Itcl, and we want the most recent one. 71 for i in `ls -dr $tclpath/tcl* 2>/dev/null ` ; do 72 if test -f $i/src/tclsh ; then 73 ac_cv_path_tclsh=`(cd $i/src; pwd)`/tclsh 74 break 75 fi 76 done 77fi 78 79dnl see if one is installed 80if test x"${ac_cv_path_tclsh}" = x ; then 81 AC_MSG_RESULT(none) 82 AC_PATH_PROG(tclsh, tclsh) 83else 84 AC_MSG_RESULT(${ac_cv_path_tclsh}) 85fi 86TCLSH="${ac_cv_path_tclsh}" 87AC_SUBST(TCLSH) 88]) 89 90 91AC_DEFUN(DJ_AC_PATH_DOCBOOK, [ 92dirlist=".. ../../ ../../.. ../../../.. ../../../../.. ../../../../../.. ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.." 93AC_MSG_CHECKING(for docbook tools) 94AC_ARG_WITH(oskith, [ --with-docbook directory where the db2 sgml tools are], with_docbook=${withval}) 95AC_CACHE_VAL(ac_cv_c_docbook,[ 96dnl first check to see if --with-docbook was specified 97if test x"${with_docbook}" != x ; then 98 if test -f ${with_docbook}/db2html ; then 99 ac_cv_c_docbook=`(cd ${with_docbook}; pwd)` 100 else 101 AC_MSG_ERROR([${with_docbook} directory doesn't contain SGML tools]) 102 fi 103fi 104]) 105if test x"${ac_cv_c_docbook}" = x ; then 106 for i in $ac_default_prefix/bin /usr/local/bin $OSKITHDIR/../bin /usr/bin /bin /opt /home; do 107 dnl See is we have an SGML tool in that directory. 108 if test -f $i/db2html ; then 109 ac_cv_c_docbook=$i 110 break 111 fi 112 done 113fi 114 115if test x"${ac_cv_c_docbook}" = x ; then 116 AC_MSG_RESULT(none) 117else 118 DOCBOOK="${ac_cv_c_docbook}" 119 AC_MSG_RESULT(${ac_cv_c_docbook}) 120fi 121 122AC_SUBST(DOCBOOK) 123]) 124 125 126# Do all the work for Automake. This macro actually does too much -- 127# some checks are only needed if your package does certain things. 128# But this isn't really a big deal. 129 130# serial 5 131 132# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 133# written in clear, in which case automake, when reading aclocal.m4, 134# will think it sees a *use*, and therefore will trigger all it's 135# C support machinery. Also note that it means that autoscan, seeing 136# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 137 138 139# We require 2.13 because we rely on SHELL being computed by configure. 140AC_PREREQ([2.13]) 141 142# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) 143# ----------------------------------------------------------- 144# If MACRO-NAME is provided do IF-PROVIDED, else IF-NOT-PROVIDED. 145# The purpose of this macro is to provide the user with a means to 146# check macros which are provided without letting her know how the 147# information is coded. 148# If this macro is not defined by Autoconf, define it here. 149ifdef([AC_PROVIDE_IFELSE], 150 [], 151 [define([AC_PROVIDE_IFELSE], 152 [ifdef([AC_PROVIDE_$1], 153 [$2], [$3])])]) 154 155 156# AM_INIT_AUTOMAKE(PACKAGE,VERSION, [NO-DEFINE]) 157# ---------------------------------------------- 158AC_DEFUN([AM_INIT_AUTOMAKE], 159[AC_REQUIRE([AC_PROG_INSTALL])dnl 160# test to see if srcdir already configured 161if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" && 162 test -f $srcdir/config.status; then 163 AC_MSG_ERROR([source directory already configured; run \"make distclean\" there first]) 164fi 165 166# Define the identity of the package. 167PACKAGE=$1 168AC_SUBST(PACKAGE)dnl 169VERSION=$2 170AC_SUBST(VERSION)dnl 171ifelse([$3],, 172[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 173AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])]) 174 175# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow 176# the ones we care about. 177ifdef([m4_pattern_allow], 178 [m4_pattern_allow([^AM_[A-Z]+FLAGS])])dnl 179 180# Autoconf 2.50 always computes EXEEXT. However we need to be 181# compatible with 2.13, for now. So we always define EXEEXT, but we 182# don't compute it. 183AC_SUBST(EXEEXT) 184# Similar for OBJEXT -- only we only use OBJEXT if the user actually 185# requests that it be used. This is a bit dumb. 186: ${OBJEXT=o} 187AC_SUBST(OBJEXT) 188 189# Some tools Automake needs. 190AC_REQUIRE([AM_SANITY_CHECK])dnl 191AC_REQUIRE([AC_ARG_PROGRAM])dnl 192AM_MISSING_PROG(ACLOCAL, aclocal) 193AM_MISSING_PROG(AUTOCONF, autoconf) 194AM_MISSING_PROG(AUTOMAKE, automake) 195AM_MISSING_PROG(AUTOHEADER, autoheader) 196AM_MISSING_PROG(MAKEINFO, makeinfo) 197AM_MISSING_PROG(AMTAR, tar) 198AM_PROG_INSTALL_SH 199AM_PROG_INSTALL_STRIP 200# We need awk for the "check" target. The system "awk" is bad on 201# some platforms. 202AC_REQUIRE([AC_PROG_AWK])dnl 203AC_REQUIRE([AC_PROG_MAKE_SET])dnl 204AC_REQUIRE([AM_DEP_TRACK])dnl 205AC_REQUIRE([AM_SET_DEPDIR])dnl 206AC_PROVIDE_IFELSE([AC_PROG_][CC], 207 [_AM_DEPENDENCIES(CC)], 208 [define([AC_PROG_][CC], 209 defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl 210AC_PROVIDE_IFELSE([AC_PROG_][CXX], 211 [_AM_DEPENDENCIES(CXX)], 212 [define([AC_PROG_][CXX], 213 defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl 214]) 215 216# 217# Check to make sure that the build environment is sane. 218# 219 220# serial 3 221 222# AM_SANITY_CHECK 223# --------------- 224AC_DEFUN([AM_SANITY_CHECK], 225[AC_MSG_CHECKING([whether build environment is sane]) 226# Just in case 227sleep 1 228echo timestamp > conftest.file 229# Do `set' in a subshell so we don't clobber the current shell's 230# arguments. Must try -L first in case configure is actually a 231# symlink; some systems play weird games with the mod time of symlinks 232# (eg FreeBSD returns the mod time of the symlink's containing 233# directory). 234if ( 235 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 236 if test "$[*]" = "X"; then 237 # -L didn't work. 238 set X `ls -t $srcdir/configure conftest.file` 239 fi 240 rm -f conftest.file 241 if test "$[*]" != "X $srcdir/configure conftest.file" \ 242 && test "$[*]" != "X conftest.file $srcdir/configure"; then 243 244 # If neither matched, then we have a broken ls. This can happen 245 # if, for instance, CONFIG_SHELL is bash and it inherits a 246 # broken ls alias from the environment. This has actually 247 # happened. Such a system could not be considered "sane". 248 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 249alias in your environment]) 250 fi 251 252 test "$[2]" = conftest.file 253 ) 254then 255 # Ok. 256 : 257else 258 AC_MSG_ERROR([newly created file is older than distributed files! 259Check your system clock]) 260fi 261AC_MSG_RESULT(yes)]) 262 263 264# serial 2 265 266# AM_MISSING_PROG(NAME, PROGRAM) 267# ------------------------------ 268AC_DEFUN([AM_MISSING_PROG], 269[AC_REQUIRE([AM_MISSING_HAS_RUN]) 270$1=${$1-"${am_missing_run}$2"} 271AC_SUBST($1)]) 272 273 274# AM_MISSING_HAS_RUN 275# ------------------ 276# Define MISSING if not defined so far and test if it supports --run. 277# If it does, set am_missing_run to use it, otherwise, to nothing. 278AC_DEFUN([AM_MISSING_HAS_RUN], 279[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 280test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 281# Use eval to expand $SHELL 282if eval "$MISSING --run true"; then 283 am_missing_run="$MISSING --run " 284else 285 am_missing_run= 286 am_backtick='`' 287 AC_MSG_WARN([${am_backtick}missing' script is too old or missing]) 288fi 289]) 290 291# AM_AUX_DIR_EXPAND 292 293# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 294# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 295# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 296# 297# Of course, Automake must honor this variable whenever it calls a 298# tool from the auxiliary directory. The problem is that $srcdir (and 299# therefore $ac_aux_dir as well) can be either absolute or relative, 300# depending on how configure is run. This is pretty annoying, since 301# it makes $ac_aux_dir quite unusable in subdirectories: in the top 302# source directory, any form will work fine, but in subdirectories a 303# relative path needs to be adjusted first. 304# 305# $ac_aux_dir/missing 306# fails when called from a subdirectory if $ac_aux_dir is relative 307# $top_srcdir/$ac_aux_dir/missing 308# fails if $ac_aux_dir is absolute, 309# fails when called from a subdirectory in a VPATH build with 310# a relative $ac_aux_dir 311# 312# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 313# are both prefixed by $srcdir. In an in-source build this is usually 314# harmless because $srcdir is `.', but things will broke when you 315# start a VPATH build or use an absolute $srcdir. 316# 317# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 318# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 319# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 320# and then we would define $MISSING as 321# MISSING="\${SHELL} $am_aux_dir/missing" 322# This will work as long as MISSING is not called from configure, because 323# unfortunately $(top_srcdir) has no meaning in configure. 324# However there are other variables, like CC, which are often used in 325# configure, and could therefore not use this "fixed" $ac_aux_dir. 326# 327# Another solution, used here, is to always expand $ac_aux_dir to an 328# absolute PATH. The drawback is that using absolute paths prevent a 329# configured tree to be moved without reconfiguration. 330 331AC_DEFUN([AM_AUX_DIR_EXPAND], [ 332# expand $ac_aux_dir to an absolute path 333am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd` 334]) 335 336# AM_PROG_INSTALL_SH 337# ------------------ 338# Define $install_sh. 339AC_DEFUN([AM_PROG_INSTALL_SH], 340[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 341install_sh=${install_sh-"$am_aux_dir/install-sh"} 342AC_SUBST(install_sh)]) 343 344# One issue with vendor `install' (even GNU) is that you can't 345# specify the program used to strip binaries. This is especially 346# annoying in cross-compiling environments, where the build's strip 347# is unlikely to handle the host's binaries. 348# Fortunately install-sh will honor a STRIPPROG variable, so we 349# always use install-sh in `make install-strip', and initialize 350# STRIPPROG with the value of the STRIP variable (set by the user). 351AC_DEFUN([AM_PROG_INSTALL_STRIP], 352[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 353INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 354AC_SUBST([INSTALL_STRIP_PROGRAM])]) 355 356# serial 4 -*- Autoconf -*- 357 358 359 360# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 361# written in clear, in which case automake, when reading aclocal.m4, 362# will think it sees a *use*, and therefore will trigger all it's 363# C support machinery. Also note that it means that autoscan, seeing 364# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 365 366 367 368# _AM_DEPENDENCIES(NAME) 369# --------------------- 370# See how the compiler implements dependency checking. 371# NAME is "CC", "CXX" or "OBJC". 372# We try a few techniques and use that to set a single cache variable. 373# 374# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 375# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 376# dependency, and given that the user is not expected to run this macro, 377# just rely on AC_PROG_CC. 378AC_DEFUN([_AM_DEPENDENCIES], 379[AC_REQUIRE([AM_SET_DEPDIR])dnl 380AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 381AC_REQUIRE([AM_MAKE_INCLUDE])dnl 382AC_REQUIRE([AM_DEP_TRACK])dnl 383 384ifelse([$1], CC, [depcc="$CC" am_compiler_list=], 385 [$1], CXX, [depcc="$CXX" am_compiler_list=], 386 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'] 387 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 388 [depcc="$$1" am_compiler_list=]) 389 390AC_CACHE_CHECK([dependency style of $depcc], 391 [am_cv_$1_dependencies_compiler_type], 392[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 393 # We make a subdir and do the tests there. Otherwise we can end up 394 # making bogus files that we don't know about and never remove. For 395 # instance it was reported that on HP-UX the gcc test will end up 396 # making a dummy file named `D' -- because `-MD' means `put the output 397 # in D'. 398 mkdir conftest.dir 399 # Copy depcomp to subdir because otherwise we won't find it if we're 400 # using a relative directory. 401 cp "$am_depcomp" conftest.dir 402 cd conftest.dir 403 404 am_cv_$1_dependencies_compiler_type=none 405 if test "$am_compiler_list" = ""; then 406 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 407 fi 408 for depmode in $am_compiler_list; do 409 # We need to recreate these files for each test, as the compiler may 410 # overwrite some of them when testing with obscure command lines. 411 # This happens at least with the AIX C compiler. 412 echo '#include "conftest.h"' > conftest.c 413 echo 'int i;' > conftest.h 414 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 415 416 case $depmode in 417 nosideeffect) 418 # after this tag, mechanisms are not by side-effect, so they'll 419 # only be used when explicitly requested 420 if test "x$enable_dependency_tracking" = xyes; then 421 continue 422 else 423 break 424 fi 425 ;; 426 none) break ;; 427 esac 428 # We check with `-c' and `-o' for the sake of the "dashmstdout" 429 # mode. It turns out that the SunPro C++ compiler does not properly 430 # handle `-M -o', and we need to detect this. 431 if depmode=$depmode \ 432 source=conftest.c object=conftest.o \ 433 depfile=conftest.Po tmpdepfile=conftest.TPo \ 434 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 435 grep conftest.h conftest.Po > /dev/null 2>&1 && 436 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 437 am_cv_$1_dependencies_compiler_type=$depmode 438 break 439 fi 440 done 441 442 cd .. 443 rm -rf conftest.dir 444else 445 am_cv_$1_dependencies_compiler_type=none 446fi 447]) 448$1DEPMODE="depmode=$am_cv_$1_dependencies_compiler_type" 449AC_SUBST([$1DEPMODE]) 450]) 451 452 453# AM_SET_DEPDIR 454# ------------- 455# Choose a directory name for dependency files. 456# This macro is AC_REQUIREd in _AM_DEPENDENCIES 457AC_DEFUN([AM_SET_DEPDIR], 458[rm -f .deps 2>/dev/null 459mkdir .deps 2>/dev/null 460if test -d .deps; then 461 DEPDIR=.deps 462else 463 # MS-DOS does not allow filenames that begin with a dot. 464 DEPDIR=_deps 465fi 466rmdir .deps 2>/dev/null 467AC_SUBST(DEPDIR) 468]) 469 470 471# AM_DEP_TRACK 472# ------------ 473AC_DEFUN([AM_DEP_TRACK], 474[AC_ARG_ENABLE(dependency-tracking, 475[ --disable-dependency-tracking Speeds up one-time builds 476 --enable-dependency-tracking Do not reject slow dependency extractors]) 477if test "x$enable_dependency_tracking" != xno; then 478 am_depcomp="$ac_aux_dir/depcomp" 479 AMDEPBACKSLASH='\' 480fi 481AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 482pushdef([subst], defn([AC_SUBST])) 483subst(AMDEPBACKSLASH) 484popdef([subst]) 485]) 486 487# Generate code to set up dependency tracking. 488# This macro should only be invoked once -- use via AC_REQUIRE. 489# Usage: 490# AM_OUTPUT_DEPENDENCY_COMMANDS 491 492# 493# This code is only required when automatic dependency tracking 494# is enabled. FIXME. This creates each `.P' file that we will 495# need in order to bootstrap the dependency handling code. 496AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],[ 497AC_OUTPUT_COMMANDS([ 498test x"$AMDEP_TRUE" != x"" || 499for mf in $CONFIG_FILES; do 500 case "$mf" in 501 Makefile) dirpart=.;; 502 */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;; 503 *) continue;; 504 esac 505 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 506 # Extract the definition of DEP_FILES from the Makefile without 507 # running `make'. 508 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 509 test -z "$DEPDIR" && continue 510 # When using ansi2knr, U may be empty or an underscore; expand it 511 U=`sed -n -e '/^U = / s///p' < "$mf"` 512 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 513 # We invoke sed twice because it is the simplest approach to 514 # changing $(DEPDIR) to its actual value in the expansion. 515 for file in `sed -n -e ' 516 /^DEP_FILES = .*\\\\$/ { 517 s/^DEP_FILES = // 518 :loop 519 s/\\\\$// 520 p 521 n 522 /\\\\$/ b loop 523 p 524 } 525 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 526 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 527 # Make sure the directory exists. 528 test -f "$dirpart/$file" && continue 529 fdir=`echo "$file" | sed -e 's|/[^/]*$||'` 530 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1 531 # echo "creating $dirpart/$file" 532 echo '# dummy' > "$dirpart/$file" 533 done 534done 535], [AMDEP_TRUE="$AMDEP_TRUE" 536ac_aux_dir="$ac_aux_dir"])]) 537 538# AM_MAKE_INCLUDE() 539# ----------------- 540# Check to see how make treats includes. 541AC_DEFUN([AM_MAKE_INCLUDE], 542[am_make=${MAKE-make} 543cat > confinc << 'END' 544doit: 545 @echo done 546END 547# If we don't find an include directive, just comment out the code. 548AC_MSG_CHECKING([for style of include used by $am_make]) 549am__include='#' 550am__quote= 551_am_result=none 552# First try GNU make style include. 553echo "include confinc" > confmf 554# We grep out `Entering directory' and `Leaving directory' 555# messages which can occur if `w' ends up in MAKEFLAGS. 556# In particular we don't look at `^make:' because GNU make might 557# be invoked under some other name (usually "gmake"), in which 558# case it prints its new name instead of `make'. 559if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then 560 am__include=include 561 am__quote= 562 _am_result=GNU 563fi 564# Now try BSD make style include. 565if test "$am__include" = "#"; then 566 echo '.include "confinc"' > confmf 567 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 568 am__include=.include 569 am__quote='"' 570 _am_result=BSD 571 fi 572fi 573AC_SUBST(am__include) 574AC_SUBST(am__quote) 575AC_MSG_RESULT($_am_result) 576rm -f confinc confmf 577]) 578 579# serial 3 580 581# AM_CONDITIONAL(NAME, SHELL-CONDITION) 582# ------------------------------------- 583# Define a conditional. 584# 585# FIXME: Once using 2.50, use this: 586# m4_match([$1], [^TRUE\|FALSE$], [AC_FATAL([$0: invalid condition: $1])])dnl 587AC_DEFUN([AM_CONDITIONAL], 588[ifelse([$1], [TRUE], 589 [errprint(__file__:__line__: [$0: invalid condition: $1 590])dnl 591m4exit(1)])dnl 592ifelse([$1], [FALSE], 593 [errprint(__file__:__line__: [$0: invalid condition: $1 594])dnl 595m4exit(1)])dnl 596AC_SUBST([$1_TRUE]) 597AC_SUBST([$1_FALSE]) 598if $2; then 599 $1_TRUE= 600 $1_FALSE='#' 601else 602 $1_TRUE='#' 603 $1_FALSE= 604fi]) 605 606