Annotation of sql/mysql/libltdl/aclocal.m4, revision 1.3

1.3     ! paf         1: # generated automatically by aclocal 1.7.2 -*- Autoconf -*-
1.1       parser      2: 
1.3     ! paf         3: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
        !             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.
1.1       parser     13: 
                     14: 
1.2       paf        15: 
1.1       parser     16: # serial 40 AC_PROG_LIBTOOL
                     17: AC_DEFUN(AC_PROG_LIBTOOL,
                     18: [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
                     19: 
1.2       paf        20: # Always use rootdir libtool.
                     21: LIBTOOL=../libtool
1.1       parser     22: AC_SUBST(LIBTOOL)dnl
                     23: ])
                     24: 
                     25: AC_DEFUN(AC_LIBTOOL_SETUP,
                     26: [AC_PREREQ(2.13)dnl
                     27: AC_REQUIRE([AC_ENABLE_SHARED])dnl
                     28: AC_REQUIRE([AC_ENABLE_STATIC])dnl
                     29: AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
                     30: AC_REQUIRE([AC_CANONICAL_HOST])dnl
                     31: AC_REQUIRE([AC_CANONICAL_BUILD])dnl
                     32: AC_REQUIRE([AC_PROG_RANLIB])dnl
                     33: AC_REQUIRE([AC_PROG_CC])dnl
                     34: AC_REQUIRE([AC_PROG_LD])dnl
                     35: AC_REQUIRE([AC_PROG_NM])dnl
                     36: AC_REQUIRE([AC_PROG_LN_S])dnl
                     37: dnl
                     38: 
                     39: case "$target" in
                     40: NONE) lt_target="$host" ;;
                     41: *) lt_target="$target" ;;
                     42: esac
                     43: 
                     44: # Check for any special flags to pass to ltconfig.
                     45: libtool_flags="--cache-file=$cache_file"
                     46: test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
                     47: test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
                     48: test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
                     49: test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
                     50: test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
                     51: ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN],
                     52: [libtool_flags="$libtool_flags --enable-dlopen"])
                     53: ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
                     54: [libtool_flags="$libtool_flags --enable-win32-dll"])
                     55: AC_ARG_ENABLE(libtool-lock,
                     56:   [  --disable-libtool-lock  avoid locking (might break parallel builds)])
                     57: test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
                     58: test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
                     59: 
                     60: # Some flags need to be propagated to the compiler or linker for good
                     61: # libtool support.
                     62: case "$lt_target" in
                     63: *-*-irix6*)
                     64:   # Find out which ABI we are using.
                     65:   echo '[#]line __oline__ "configure"' > conftest.$ac_ext
                     66:   if AC_TRY_EVAL(ac_compile); then
                     67:     case "`/usr/bin/file conftest.o`" in
                     68:     *32-bit*)
                     69:       LD="${LD-ld} -32"
                     70:       ;;
                     71:     *N32*)
                     72:       LD="${LD-ld} -n32"
                     73:       ;;
                     74:     *64-bit*)
                     75:       LD="${LD-ld} -64"
                     76:       ;;
                     77:     esac
                     78:   fi
                     79:   rm -rf conftest*
                     80:   ;;
                     81: 
                     82: *-*-sco3.2v5*)
                     83:   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
                     84:   SAVE_CFLAGS="$CFLAGS"
                     85:   CFLAGS="$CFLAGS -belf"
                     86:   AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
                     87:     [AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])])
                     88:   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
                     89:     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
                     90:     CFLAGS="$SAVE_CFLAGS"
                     91:   fi
                     92:   ;;
                     93: 
                     94: ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
                     95: [*-*-cygwin* | *-*-mingw*)
                     96:   AC_CHECK_TOOL(DLLTOOL, dlltool, false)
                     97:   AC_CHECK_TOOL(AS, as, false)
                     98:   AC_CHECK_TOOL(OBJDUMP, objdump, false)
                     99:   ;;
                    100: ])
                    101: esac
                    102: ])
                    103: 
                    104: # AC_LIBTOOL_DLOPEN - enable checks for dlopen support
                    105: AC_DEFUN(AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
                    106: 
                    107: # AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
                    108: AC_DEFUN(AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
                    109: 
                    110: # AC_ENABLE_SHARED - implement the --enable-shared flag
                    111: # Usage: AC_ENABLE_SHARED[(DEFAULT)]
                    112: #   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
                    113: #   `yes'.
                    114: AC_DEFUN(AC_ENABLE_SHARED, [dnl
                    115: define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
                    116: AC_ARG_ENABLE(shared,
                    117: changequote(<<, >>)dnl
                    118: <<  --enable-shared[=PKGS]  build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
                    119: changequote([, ])dnl
                    120: [p=${PACKAGE-default}
                    121: case "$enableval" in
                    122: yes) enable_shared=yes ;;
                    123: no) enable_shared=no ;;
                    124: *)
                    125:   enable_shared=no
                    126:   # Look at the argument we got.  We use all the common list separators.
                    127:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
                    128:   for pkg in $enableval; do
                    129:     if test "X$pkg" = "X$p"; then
                    130:       enable_shared=yes
                    131:     fi
                    132:   done
                    133:   IFS="$ac_save_ifs"
                    134:   ;;
                    135: esac],
                    136: enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
                    137: ])
                    138: 
                    139: # AC_DISABLE_SHARED - set the default shared flag to --disable-shared
                    140: AC_DEFUN(AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
                    141: AC_ENABLE_SHARED(no)])
                    142: 
                    143: # AC_ENABLE_STATIC - implement the --enable-static flag
                    144: # Usage: AC_ENABLE_STATIC[(DEFAULT)]
                    145: #   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
                    146: #   `yes'.
                    147: AC_DEFUN(AC_ENABLE_STATIC, [dnl
                    148: define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
                    149: AC_ARG_ENABLE(static,
                    150: changequote(<<, >>)dnl
                    151: <<  --enable-static[=PKGS]  build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
                    152: changequote([, ])dnl
                    153: [p=${PACKAGE-default}
                    154: case "$enableval" in
                    155: yes) enable_static=yes ;;
                    156: no) enable_static=no ;;
                    157: *)
                    158:   enable_static=no
                    159:   # Look at the argument we got.  We use all the common list separators.
                    160:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
                    161:   for pkg in $enableval; do
                    162:     if test "X$pkg" = "X$p"; then
                    163:       enable_static=yes
                    164:     fi
                    165:   done
                    166:   IFS="$ac_save_ifs"
                    167:   ;;
                    168: esac],
                    169: enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
                    170: ])
                    171: 
                    172: # AC_DISABLE_STATIC - set the default static flag to --disable-static
                    173: AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
                    174: AC_ENABLE_STATIC(no)])
                    175: 
                    176: 
                    177: # AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
                    178: # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
                    179: #   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
                    180: #   `yes'.
                    181: AC_DEFUN(AC_ENABLE_FAST_INSTALL, [dnl
                    182: define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
                    183: AC_ARG_ENABLE(fast-install,
                    184: changequote(<<, >>)dnl
                    185: <<  --enable-fast-install[=PKGS]  optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
                    186: changequote([, ])dnl
                    187: [p=${PACKAGE-default}
                    188: case "$enableval" in
                    189: yes) enable_fast_install=yes ;;
                    190: no) enable_fast_install=no ;;
                    191: *)
                    192:   enable_fast_install=no
                    193:   # Look at the argument we got.  We use all the common list separators.
                    194:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
                    195:   for pkg in $enableval; do
                    196:     if test "X$pkg" = "X$p"; then
                    197:       enable_fast_install=yes
                    198:     fi
                    199:   done
                    200:   IFS="$ac_save_ifs"
                    201:   ;;
                    202: esac],
                    203: enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
                    204: ])
                    205: 
                    206: # AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
                    207: AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
                    208: AC_ENABLE_FAST_INSTALL(no)])
                    209: 
                    210: # AC_PROG_LD - find the path to the GNU or non-GNU linker
                    211: AC_DEFUN(AC_PROG_LD,
                    212: [AC_ARG_WITH(gnu-ld,
                    213: [  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
                    214: test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
                    215: AC_REQUIRE([AC_PROG_CC])dnl
                    216: AC_REQUIRE([AC_CANONICAL_HOST])dnl
                    217: AC_REQUIRE([AC_CANONICAL_BUILD])dnl
                    218: ac_prog=ld
                    219: if test "$ac_cv_prog_gcc" = yes; then
                    220:   # Check if gcc -print-prog-name=ld gives a path.
                    221:   AC_MSG_CHECKING([for ld used by GCC])
                    222:   ac_prog=`($CC -print-prog-name=ld) 2>&5`
                    223:   case "$ac_prog" in
                    224:     # Accept absolute paths.
                    225: changequote(,)dnl
                    226:     [\\/]* | [A-Za-z]:[\\/]*)
                    227:       re_direlt='/[^/][^/]*/\.\./'
                    228: changequote([,])dnl
                    229:       # Canonicalize the path of ld
                    230:       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
                    231:       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
                    232:        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
                    233:       done
                    234:       test -z "$LD" && LD="$ac_prog"
                    235:       ;;
                    236:   "")
                    237:     # If it fails, then pretend we aren't using GCC.
                    238:     ac_prog=ld
                    239:     ;;
                    240:   *)
                    241:     # If it is relative, then search for the first ld in PATH.
                    242:     with_gnu_ld=unknown
                    243:     ;;
                    244:   esac
                    245: elif test "$with_gnu_ld" = yes; then
                    246:   AC_MSG_CHECKING([for GNU ld])
                    247: else
                    248:   AC_MSG_CHECKING([for non-GNU ld])
                    249: fi
                    250: AC_CACHE_VAL(ac_cv_path_LD,
                    251: [if test -z "$LD"; then
                    252:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
                    253:   for ac_dir in $PATH; do
                    254:     test -z "$ac_dir" && ac_dir=.
                    255:     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
                    256:       ac_cv_path_LD="$ac_dir/$ac_prog"
                    257:       # Check to see if the program is GNU ld.  I'd rather use --version,
                    258:       # but apparently some GNU ld's only accept -v.
                    259:       # Break only if it was the GNU/non-GNU ld that we prefer.
                    260:       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
                    261:        test "$with_gnu_ld" != no && break
                    262:       else
                    263:        test "$with_gnu_ld" != yes && break
                    264:       fi
                    265:     fi
                    266:   done
                    267:   IFS="$ac_save_ifs"
                    268: else
                    269:   ac_cv_path_LD="$LD" # Let the user override the test with a path.
                    270: fi])
                    271: LD="$ac_cv_path_LD"
                    272: if test -n "$LD"; then
                    273:   AC_MSG_RESULT($LD)
                    274: else
                    275:   AC_MSG_RESULT(no)
                    276: fi
                    277: test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
                    278: AC_PROG_LD_GNU
                    279: ])
                    280: 
                    281: AC_DEFUN(AC_PROG_LD_GNU,
                    282: [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
                    283: [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
                    284: if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
                    285:   ac_cv_prog_gnu_ld=yes
                    286: else
                    287:   ac_cv_prog_gnu_ld=no
                    288: fi])
                    289: ])
                    290: 
                    291: # AC_PROG_NM - find the path to a BSD-compatible name lister
                    292: AC_DEFUN(AC_PROG_NM,
                    293: [AC_MSG_CHECKING([for BSD-compatible nm])
                    294: AC_CACHE_VAL(ac_cv_path_NM,
                    295: [if test -n "$NM"; then
                    296:   # Let the user override the test.
                    297:   ac_cv_path_NM="$NM"
                    298: else
                    299:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
                    300:   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
                    301:     test -z "$ac_dir" && ac_dir=.
                    302:     if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
                    303:       # Check to see if the nm accepts a BSD-compat flag.
                    304:       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
                    305:       #   nm: unknown option "B" ignored
                    306:       if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
                    307:        ac_cv_path_NM="$ac_dir/nm -B"
                    308:        break
                    309:       elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
                    310:        ac_cv_path_NM="$ac_dir/nm -p"
                    311:        break
                    312:       else
                    313:        ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
                    314:        continue # so that we can try to find one that supports BSD flags
                    315:       fi
                    316:     fi
                    317:   done
                    318:   IFS="$ac_save_ifs"
                    319:   test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
                    320: fi])
                    321: NM="$ac_cv_path_NM"
                    322: AC_MSG_RESULT([$NM])
                    323: ])
                    324: 
                    325: # AC_CHECK_LIBM - check for math library
                    326: AC_DEFUN(AC_CHECK_LIBM,
                    327: [AC_REQUIRE([AC_CANONICAL_HOST])dnl
                    328: LIBM=
                    329: case "$lt_target" in
                    330: *-*-beos* | *-*-cygwin*)
                    331:   # These system don't have libm
                    332:   ;;
                    333: *-ncr-sysv4.3*)
                    334:   AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
                    335:   AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
                    336:   ;;
                    337: *)
                    338:   AC_CHECK_LIB(m, main, LIBM="-lm")
                    339:   ;;
                    340: esac
                    341: ])
                    342: 
                    343: # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
                    344: # the libltdl convenience library and INCLTDL to the include flags for
                    345: # the libltdl header and adds --enable-ltdl-convenience to the
                    346: # configure arguments.  Note that LIBLTDL and INCLTDL are not
                    347: # AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If DIR is not
                    348: # provided, it is assumed to be `libltdl'.  LIBLTDL will be prefixed
                    349: # with '${top_builddir}/' and INCLTDL will be prefixed with
                    350: # '${top_srcdir}/' (note the single quotes!).  If your package is not
                    351: # flat and you're not using automake, define top_builddir and
                    352: # top_srcdir appropriately in the Makefiles.
                    353: AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
                    354:   case "$enable_ltdl_convenience" in
                    355:   no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
                    356:   "") enable_ltdl_convenience=yes
                    357:       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
                    358:   esac
                    359:   LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
                    360:   INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
                    361: ])
                    362: 
                    363: # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
                    364: # the libltdl installable library and INCLTDL to the include flags for
                    365: # the libltdl header and adds --enable-ltdl-install to the configure
                    366: # arguments.  Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
                    367: # AC_CONFIG_SUBDIRS called.  If DIR is not provided and an installed
                    368: # libltdl is not found, it is assumed to be `libltdl'.  LIBLTDL will
                    369: # be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
                    370: # with '${top_srcdir}/' (note the single quotes!).  If your package is
                    371: # not flat and you're not using automake, define top_builddir and
                    372: # top_srcdir appropriately in the Makefiles.
                    373: # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
                    374: AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
                    375:   AC_CHECK_LIB(ltdl, main,
                    376:   [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
                    377:   [if test x"$enable_ltdl_install" = xno; then
                    378:      AC_MSG_WARN([libltdl not installed, but installation disabled])
                    379:    else
                    380:      enable_ltdl_install=yes
                    381:    fi
                    382:   ])
                    383:   if test x"$enable_ltdl_install" = x"yes"; then
                    384:     ac_configure_args="$ac_configure_args --enable-ltdl-install"
                    385:     LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
                    386:     INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
                    387:   else
                    388:     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
                    389:     LIBLTDL="-lltdl"
                    390:     INCLTDL=
                    391:   fi
                    392: ])
                    393: 
                    394: dnl old names
                    395: AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl
                    396: AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl
                    397: AC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl
                    398: AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl
                    399: AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl
                    400: AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl
                    401: AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl
                    402: 
                    403: dnl This is just to silence aclocal about the macro not being used
                    404: ifelse([AC_DISABLE_FAST_INSTALL])dnl
                    405: 
1.3     ! paf       406: # Do all the work for Automake.                            -*- Autoconf -*-
        !           407: 
        !           408: # This macro actually does too much some checks are only needed if
        !           409: # your package does certain things.  But this isn't really a big deal.
        !           410: 
        !           411: # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
        !           412: # Free Software Foundation, Inc.
        !           413: 
        !           414: # This program is free software; you can redistribute it and/or modify
        !           415: # it under the terms of the GNU General Public License as published by
        !           416: # the Free Software Foundation; either version 2, or (at your option)
        !           417: # any later version.
        !           418: 
        !           419: # This program is distributed in the hope that it will be useful,
        !           420: # but WITHOUT ANY WARRANTY; without even the implied warranty of
        !           421: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        !           422: # GNU General Public License for more details.
        !           423: 
        !           424: # You should have received a copy of the GNU General Public License
        !           425: # along with this program; if not, write to the Free Software
        !           426: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
        !           427: # 02111-1307, USA.
        !           428: 
        !           429: # serial 8
        !           430: 
        !           431: # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
        !           432: # written in clear, in which case automake, when reading aclocal.m4,
        !           433: # will think it sees a *use*, and therefore will trigger all it's
        !           434: # C support machinery.  Also note that it means that autoscan, seeing
        !           435: # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
        !           436: 
        !           437: 
        !           438: AC_PREREQ([2.54])
        !           439: 
        !           440: # Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
        !           441: # the ones we care about.
        !           442: m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
        !           443: 
        !           444: # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
        !           445: # AM_INIT_AUTOMAKE([OPTIONS])
        !           446: # -----------------------------------------------
        !           447: # The call with PACKAGE and VERSION arguments is the old style
        !           448: # call (pre autoconf-2.50), which is being phased out.  PACKAGE
        !           449: # and VERSION should now be passed to AC_INIT and removed from
        !           450: # the call to AM_INIT_AUTOMAKE.
        !           451: # We support both call styles for the transition.  After
        !           452: # the next Automake release, Autoconf can make the AC_INIT
        !           453: # arguments mandatory, and then we can depend on a new Autoconf
        !           454: # release and drop the old call support.
        !           455: AC_DEFUN([AM_INIT_AUTOMAKE],
        !           456: [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
        !           457:  AC_REQUIRE([AC_PROG_INSTALL])dnl
        !           458: # test to see if srcdir already configured
        !           459: if test "`cd $srcdir && pwd`" != "`pwd`" &&
        !           460:    test -f $srcdir/config.status; then
1.1       parser    461:   AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
                    462: fi
1.3     ! paf       463: 
        !           464: # test whether we have cygpath
        !           465: if test -z "$CYGPATH_W"; then
        !           466:   if (cygpath --version) >/dev/null 2>/dev/null; then
        !           467:     CYGPATH_W='cygpath -w'
        !           468:   else
        !           469:     CYGPATH_W=echo
        !           470:   fi
        !           471: fi
        !           472: AC_SUBST([CYGPATH_W])
        !           473: 
        !           474: # Define the identity of the package.
        !           475: dnl Distinguish between old-style and new-style calls.
        !           476: m4_ifval([$2],
        !           477: [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
        !           478:  AC_SUBST([PACKAGE], [$1])dnl
        !           479:  AC_SUBST([VERSION], [$2])],
        !           480: [_AM_SET_OPTIONS([$1])dnl
        !           481:  AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])dnl
        !           482:  AC_SUBST([VERSION], [AC_PACKAGE_VERSION])])dnl
        !           483: 
        !           484: _AM_IF_OPTION([no-define],,
        !           485: [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
        !           486:  AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
        !           487: 
        !           488: # Some tools Automake needs.
        !           489: AC_REQUIRE([AM_SANITY_CHECK])dnl
        !           490: AC_REQUIRE([AC_ARG_PROGRAM])dnl
        !           491: AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
        !           492: AM_MISSING_PROG(AUTOCONF, autoconf)
        !           493: AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
        !           494: AM_MISSING_PROG(AUTOHEADER, autoheader)
        !           495: AM_MISSING_PROG(MAKEINFO, makeinfo)
        !           496: AM_MISSING_PROG(AMTAR, tar)
        !           497: AM_PROG_INSTALL_SH
        !           498: AM_PROG_INSTALL_STRIP
        !           499: # We need awk for the "check" target.  The system "awk" is bad on
        !           500: # some platforms.
        !           501: AC_REQUIRE([AC_PROG_AWK])dnl
        !           502: AC_REQUIRE([AC_PROG_MAKE_SET])dnl
        !           503: 
        !           504: _AM_IF_OPTION([no-dependencies],,
        !           505: [AC_PROVIDE_IFELSE([AC_PROG_CC],
        !           506:                   [_AM_DEPENDENCIES(CC)],
        !           507:                   [define([AC_PROG_CC],
        !           508:                           defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
        !           509: AC_PROVIDE_IFELSE([AC_PROG_CXX],
        !           510:                   [_AM_DEPENDENCIES(CXX)],
        !           511:                   [define([AC_PROG_CXX],
        !           512:                           defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
        !           513: ])
        !           514: ])
        !           515: 
        !           516: 
        !           517: # When config.status generates a header, we must update the stamp-h file.
        !           518: # This file resides in the same directory as the config header
        !           519: # that is generated.  The stamp files are numbered to have different names.
        !           520: 
        !           521: # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
        !           522: # loop where config.status creates the headers, so we can generate
        !           523: # our stamp files there.
        !           524: AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
        !           525: [_am_stamp_count=`expr ${_am_stamp_count-0} + 1`
        !           526: echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
        !           527: 
        !           528: # Copyright 2002  Free Software Foundation, Inc.
        !           529: 
        !           530: # This program is free software; you can redistribute it and/or modify
        !           531: # it under the terms of the GNU General Public License as published by
        !           532: # the Free Software Foundation; either version 2, or (at your option)
        !           533: # any later version.
        !           534: 
        !           535: # This program is distributed in the hope that it will be useful,
        !           536: # but WITHOUT ANY WARRANTY; without even the implied warranty of
        !           537: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        !           538: # GNU General Public License for more details.
        !           539: 
        !           540: # You should have received a copy of the GNU General Public License
        !           541: # along with this program; if not, write to the Free Software
        !           542: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
        !           543: 
        !           544: # AM_AUTOMAKE_VERSION(VERSION)
        !           545: # ----------------------------
        !           546: # Automake X.Y traces this macro to ensure aclocal.m4 has been
        !           547: # generated from the m4 files accompanying Automake X.Y.
        !           548: AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
        !           549: 
        !           550: # AM_SET_CURRENT_AUTOMAKE_VERSION
        !           551: # -------------------------------
        !           552: # Call AM_AUTOMAKE_VERSION so it can be traced.
        !           553: # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
        !           554: AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
        !           555:         [AM_AUTOMAKE_VERSION([1.7.2])])
        !           556: 
        !           557: # Helper functions for option handling.                    -*- Autoconf -*-
        !           558: 
        !           559: # Copyright 2001, 2002  Free Software Foundation, Inc.
        !           560: 
        !           561: # This program is free software; you can redistribute it and/or modify
        !           562: # it under the terms of the GNU General Public License as published by
        !           563: # the Free Software Foundation; either version 2, or (at your option)
        !           564: # any later version.
        !           565: 
        !           566: # This program is distributed in the hope that it will be useful,
        !           567: # but WITHOUT ANY WARRANTY; without even the implied warranty of
        !           568: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        !           569: # GNU General Public License for more details.
        !           570: 
        !           571: # You should have received a copy of the GNU General Public License
        !           572: # along with this program; if not, write to the Free Software
        !           573: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
        !           574: # 02111-1307, USA.
        !           575: 
        !           576: # serial 2
        !           577: 
        !           578: # _AM_MANGLE_OPTION(NAME)
        !           579: # -----------------------
        !           580: AC_DEFUN([_AM_MANGLE_OPTION],
        !           581: [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
        !           582: 
        !           583: # _AM_SET_OPTION(NAME)
        !           584: # ------------------------------
        !           585: # Set option NAME.  Presently that only means defining a flag for this option.
        !           586: AC_DEFUN([_AM_SET_OPTION],
        !           587: [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
        !           588: 
        !           589: # _AM_SET_OPTIONS(OPTIONS)
        !           590: # ----------------------------------
        !           591: # OPTIONS is a space-separated list of Automake options.
        !           592: AC_DEFUN([_AM_SET_OPTIONS],
        !           593: [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
        !           594: 
        !           595: # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
        !           596: # -------------------------------------------
        !           597: # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
        !           598: AC_DEFUN([_AM_IF_OPTION],
        !           599: [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1.1       parser    600: 
                    601: #
                    602: # Check to make sure that the build environment is sane.
                    603: #
                    604: 
1.3     ! paf       605: # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
        !           606: 
        !           607: # This program is free software; you can redistribute it and/or modify
        !           608: # it under the terms of the GNU General Public License as published by
        !           609: # the Free Software Foundation; either version 2, or (at your option)
        !           610: # any later version.
        !           611: 
        !           612: # This program is distributed in the hope that it will be useful,
        !           613: # but WITHOUT ANY WARRANTY; without even the implied warranty of
        !           614: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        !           615: # GNU General Public License for more details.
        !           616: 
        !           617: # You should have received a copy of the GNU General Public License
        !           618: # along with this program; if not, write to the Free Software
        !           619: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
        !           620: # 02111-1307, USA.
        !           621: 
        !           622: # serial 3
        !           623: 
        !           624: # AM_SANITY_CHECK
        !           625: # ---------------
        !           626: AC_DEFUN([AM_SANITY_CHECK],
1.1       parser    627: [AC_MSG_CHECKING([whether build environment is sane])
                    628: # Just in case
                    629: sleep 1
1.3     ! paf       630: echo timestamp > conftest.file
1.1       parser    631: # Do `set' in a subshell so we don't clobber the current shell's
                    632: # arguments.  Must try -L first in case configure is actually a
                    633: # symlink; some systems play weird games with the mod time of symlinks
                    634: # (eg FreeBSD returns the mod time of the symlink's containing
                    635: # directory).
                    636: if (
1.3     ! paf       637:    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
        !           638:    if test "$[*]" = "X"; then
1.1       parser    639:       # -L didn't work.
1.3     ! paf       640:       set X `ls -t $srcdir/configure conftest.file`
1.1       parser    641:    fi
1.3     ! paf       642:    rm -f conftest.file
        !           643:    if test "$[*]" != "X $srcdir/configure conftest.file" \
        !           644:       && test "$[*]" != "X conftest.file $srcdir/configure"; then
1.1       parser    645: 
                    646:       # If neither matched, then we have a broken ls.  This can happen
                    647:       # if, for instance, CONFIG_SHELL is bash and it inherits a
                    648:       # broken ls alias from the environment.  This has actually
                    649:       # happened.  Such a system could not be considered "sane".
                    650:       AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
                    651: alias in your environment])
                    652:    fi
                    653: 
1.3     ! paf       654:    test "$[2]" = conftest.file
1.1       parser    655:    )
                    656: then
                    657:    # Ok.
                    658:    :
                    659: else
                    660:    AC_MSG_ERROR([newly created file is older than distributed files!
                    661: Check your system clock])
                    662: fi
                    663: AC_MSG_RESULT(yes)])
                    664: 
1.3     ! paf       665: #  -*- Autoconf -*-
        !           666: 
        !           667: 
        !           668: # Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
        !           669: 
        !           670: # This program is free software; you can redistribute it and/or modify
        !           671: # it under the terms of the GNU General Public License as published by
        !           672: # the Free Software Foundation; either version 2, or (at your option)
        !           673: # any later version.
        !           674: 
        !           675: # This program is distributed in the hope that it will be useful,
        !           676: # but WITHOUT ANY WARRANTY; without even the implied warranty of
        !           677: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        !           678: # GNU General Public License for more details.
        !           679: 
        !           680: # You should have received a copy of the GNU General Public License
        !           681: # along with this program; if not, write to the Free Software
        !           682: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
        !           683: # 02111-1307, USA.
        !           684: 
        !           685: # serial 3
        !           686: 
        !           687: # AM_MISSING_PROG(NAME, PROGRAM)
        !           688: # ------------------------------
        !           689: AC_DEFUN([AM_MISSING_PROG],
        !           690: [AC_REQUIRE([AM_MISSING_HAS_RUN])
        !           691: $1=${$1-"${am_missing_run}$2"}
        !           692: AC_SUBST($1)])
        !           693: 
        !           694: 
        !           695: # AM_MISSING_HAS_RUN
        !           696: # ------------------
        !           697: # Define MISSING if not defined so far and test if it supports --run.
        !           698: # If it does, set am_missing_run to use it, otherwise, to nothing.
        !           699: AC_DEFUN([AM_MISSING_HAS_RUN],
        !           700: [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
        !           701: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
        !           702: # Use eval to expand $SHELL
        !           703: if eval "$MISSING --run true"; then
        !           704:   am_missing_run="$MISSING --run "
1.1       parser    705: else
1.3     ! paf       706:   am_missing_run=
        !           707:   AC_MSG_WARN([`missing' script is too old or missing])
1.1       parser    708: fi
1.3     ! paf       709: ])
        !           710: 
        !           711: # AM_AUX_DIR_EXPAND
        !           712: 
        !           713: # Copyright 2001 Free Software Foundation, Inc.
        !           714: 
        !           715: # This program is free software; you can redistribute it and/or modify
        !           716: # it under the terms of the GNU General Public License as published by
        !           717: # the Free Software Foundation; either version 2, or (at your option)
        !           718: # any later version.
        !           719: 
        !           720: # This program is distributed in the hope that it will be useful,
        !           721: # but WITHOUT ANY WARRANTY; without even the implied warranty of
        !           722: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        !           723: # GNU General Public License for more details.
        !           724: 
        !           725: # You should have received a copy of the GNU General Public License
        !           726: # along with this program; if not, write to the Free Software
        !           727: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
        !           728: # 02111-1307, USA.
        !           729: 
        !           730: # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
        !           731: # $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
        !           732: # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
        !           733: #
        !           734: # Of course, Automake must honor this variable whenever it calls a
        !           735: # tool from the auxiliary directory.  The problem is that $srcdir (and
        !           736: # therefore $ac_aux_dir as well) can be either absolute or relative,
        !           737: # depending on how configure is run.  This is pretty annoying, since
        !           738: # it makes $ac_aux_dir quite unusable in subdirectories: in the top
        !           739: # source directory, any form will work fine, but in subdirectories a
        !           740: # relative path needs to be adjusted first.
        !           741: #
        !           742: # $ac_aux_dir/missing
        !           743: #    fails when called from a subdirectory if $ac_aux_dir is relative
        !           744: # $top_srcdir/$ac_aux_dir/missing
        !           745: #    fails if $ac_aux_dir is absolute,
        !           746: #    fails when called from a subdirectory in a VPATH build with
        !           747: #          a relative $ac_aux_dir
        !           748: #
        !           749: # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
        !           750: # are both prefixed by $srcdir.  In an in-source build this is usually
        !           751: # harmless because $srcdir is `.', but things will broke when you
        !           752: # start a VPATH build or use an absolute $srcdir.
        !           753: #
        !           754: # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
        !           755: # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
        !           756: #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
        !           757: # and then we would define $MISSING as
        !           758: #   MISSING="\${SHELL} $am_aux_dir/missing"
        !           759: # This will work as long as MISSING is not called from configure, because
        !           760: # unfortunately $(top_srcdir) has no meaning in configure.
        !           761: # However there are other variables, like CC, which are often used in
        !           762: # configure, and could therefore not use this "fixed" $ac_aux_dir.
        !           763: #
        !           764: # Another solution, used here, is to always expand $ac_aux_dir to an
        !           765: # absolute PATH.  The drawback is that using absolute paths prevent a
        !           766: # configured tree to be moved without reconfiguration.
        !           767: 
        !           768: # Rely on autoconf to set up CDPATH properly.
        !           769: AC_PREREQ([2.50])
        !           770: 
        !           771: AC_DEFUN([AM_AUX_DIR_EXPAND], [
        !           772: # expand $ac_aux_dir to an absolute path
        !           773: am_aux_dir=`cd $ac_aux_dir && pwd`
        !           774: ])
        !           775: 
        !           776: # AM_PROG_INSTALL_SH
        !           777: # ------------------
        !           778: # Define $install_sh.
        !           779: 
        !           780: # Copyright 2001 Free Software Foundation, Inc.
        !           781: 
        !           782: # This program is free software; you can redistribute it and/or modify
        !           783: # it under the terms of the GNU General Public License as published by
        !           784: # the Free Software Foundation; either version 2, or (at your option)
        !           785: # any later version.
        !           786: 
        !           787: # This program is distributed in the hope that it will be useful,
        !           788: # but WITHOUT ANY WARRANTY; without even the implied warranty of
        !           789: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        !           790: # GNU General Public License for more details.
        !           791: 
        !           792: # You should have received a copy of the GNU General Public License
        !           793: # along with this program; if not, write to the Free Software
        !           794: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
        !           795: # 02111-1307, USA.
        !           796: 
        !           797: AC_DEFUN([AM_PROG_INSTALL_SH],
        !           798: [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
        !           799: install_sh=${install_sh-"$am_aux_dir/install-sh"}
        !           800: AC_SUBST(install_sh)])
        !           801: 
        !           802: # AM_PROG_INSTALL_STRIP
        !           803: 
        !           804: # Copyright 2001 Free Software Foundation, Inc.
        !           805: 
        !           806: # This program is free software; you can redistribute it and/or modify
        !           807: # it under the terms of the GNU General Public License as published by
        !           808: # the Free Software Foundation; either version 2, or (at your option)
        !           809: # any later version.
        !           810: 
        !           811: # This program is distributed in the hope that it will be useful,
        !           812: # but WITHOUT ANY WARRANTY; without even the implied warranty of
        !           813: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        !           814: # GNU General Public License for more details.
        !           815: 
        !           816: # You should have received a copy of the GNU General Public License
        !           817: # along with this program; if not, write to the Free Software
        !           818: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
        !           819: # 02111-1307, USA.
        !           820: 
        !           821: # One issue with vendor `install' (even GNU) is that you can't
        !           822: # specify the program used to strip binaries.  This is especially
        !           823: # annoying in cross-compiling environments, where the build's strip
        !           824: # is unlikely to handle the host's binaries.
        !           825: # Fortunately install-sh will honor a STRIPPROG variable, so we
        !           826: # always use install-sh in `make install-strip', and initialize
        !           827: # STRIPPROG with the value of the STRIP variable (set by the user).
        !           828: AC_DEFUN([AM_PROG_INSTALL_STRIP],
        !           829: [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
        !           830: # Installed binaries are usually stripped using `strip' when the user
        !           831: # run `make install-strip'.  However `strip' might not be the right
        !           832: # tool to use in cross-compilation environments, therefore Automake
        !           833: # will honor the `STRIP' environment variable to overrule this program.
        !           834: dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
        !           835: if test "$cross_compiling" != no; then
        !           836:   AC_CHECK_TOOL([STRIP], [strip], :)
        !           837: fi
        !           838: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
        !           839: AC_SUBST([INSTALL_STRIP_PROGRAM])])
        !           840: 
        !           841: # serial 4                                             -*- Autoconf -*-
        !           842: 
        !           843: # Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
        !           844: 
        !           845: # This program is free software; you can redistribute it and/or modify
        !           846: # it under the terms of the GNU General Public License as published by
        !           847: # the Free Software Foundation; either version 2, or (at your option)
        !           848: # any later version.
        !           849: 
        !           850: # This program is distributed in the hope that it will be useful,
        !           851: # but WITHOUT ANY WARRANTY; without even the implied warranty of
        !           852: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        !           853: # GNU General Public License for more details.
        !           854: 
        !           855: # You should have received a copy of the GNU General Public License
        !           856: # along with this program; if not, write to the Free Software
        !           857: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
        !           858: # 02111-1307, USA.
        !           859: 
        !           860: 
        !           861: # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
        !           862: # written in clear, in which case automake, when reading aclocal.m4,
        !           863: # will think it sees a *use*, and therefore will trigger all it's
        !           864: # C support machinery.  Also note that it means that autoscan, seeing
        !           865: # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
        !           866: 
        !           867: 
        !           868: 
        !           869: # _AM_DEPENDENCIES(NAME)
        !           870: # ----------------------
        !           871: # See how the compiler implements dependency checking.
        !           872: # NAME is "CC", "CXX", "GCJ", or "OBJC".
        !           873: # We try a few techniques and use that to set a single cache variable.
        !           874: #
        !           875: # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
        !           876: # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
        !           877: # dependency, and given that the user is not expected to run this macro,
        !           878: # just rely on AC_PROG_CC.
        !           879: AC_DEFUN([_AM_DEPENDENCIES],
        !           880: [AC_REQUIRE([AM_SET_DEPDIR])dnl
        !           881: AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
        !           882: AC_REQUIRE([AM_MAKE_INCLUDE])dnl
        !           883: AC_REQUIRE([AM_DEP_TRACK])dnl
        !           884: 
        !           885: ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
        !           886:        [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
        !           887:        [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
        !           888:        [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
        !           889:                    [depcc="$$1"   am_compiler_list=])
        !           890: 
        !           891: AC_CACHE_CHECK([dependency style of $depcc],
        !           892:                [am_cv_$1_dependencies_compiler_type],
        !           893: [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
        !           894:   # We make a subdir and do the tests there.  Otherwise we can end up
        !           895:   # making bogus files that we don't know about and never remove.  For
        !           896:   # instance it was reported that on HP-UX the gcc test will end up
        !           897:   # making a dummy file named `D' -- because `-MD' means `put the output
        !           898:   # in D'.
        !           899:   mkdir conftest.dir
        !           900:   # Copy depcomp to subdir because otherwise we won't find it if we're
        !           901:   # using a relative directory.
        !           902:   cp "$am_depcomp" conftest.dir
        !           903:   cd conftest.dir
        !           904: 
        !           905:   am_cv_$1_dependencies_compiler_type=none
        !           906:   if test "$am_compiler_list" = ""; then
        !           907:      am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
        !           908:   fi
        !           909:   for depmode in $am_compiler_list; do
        !           910:     # We need to recreate these files for each test, as the compiler may
        !           911:     # overwrite some of them when testing with obscure command lines.
        !           912:     # This happens at least with the AIX C compiler.
        !           913:     echo '#include "conftest.h"' > conftest.c
        !           914:     echo 'int i;' > conftest.h
        !           915:     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
        !           916: 
        !           917:     case $depmode in
        !           918:     nosideeffect)
        !           919:       # after this tag, mechanisms are not by side-effect, so they'll
        !           920:       # only be used when explicitly requested
        !           921:       if test "x$enable_dependency_tracking" = xyes; then
        !           922:        continue
        !           923:       else
        !           924:        break
        !           925:       fi
        !           926:       ;;
        !           927:     none) break ;;
        !           928:     esac
        !           929:     # We check with `-c' and `-o' for the sake of the "dashmstdout"
        !           930:     # mode.  It turns out that the SunPro C++ compiler does not properly
        !           931:     # handle `-M -o', and we need to detect this.
        !           932:     if depmode=$depmode \
        !           933:        source=conftest.c object=conftest.o \
        !           934:        depfile=conftest.Po tmpdepfile=conftest.TPo \
        !           935:        $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
        !           936:        grep conftest.h conftest.Po > /dev/null 2>&1 &&
        !           937:        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
        !           938:       am_cv_$1_dependencies_compiler_type=$depmode
        !           939:       break
        !           940:     fi
        !           941:   done
        !           942: 
        !           943:   cd ..
        !           944:   rm -rf conftest.dir
        !           945: else
        !           946:   am_cv_$1_dependencies_compiler_type=none
        !           947: fi
        !           948: ])
        !           949: AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
        !           950: AM_CONDITIONAL([am__fastdep$1], [
        !           951:   test "x$enable_dependency_tracking" != xno \
        !           952:   && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
        !           953: ])
        !           954: 
        !           955: 
        !           956: # AM_SET_DEPDIR
        !           957: # -------------
        !           958: # Choose a directory name for dependency files.
        !           959: # This macro is AC_REQUIREd in _AM_DEPENDENCIES
        !           960: AC_DEFUN([AM_SET_DEPDIR],
        !           961: [rm -f .deps 2>/dev/null
        !           962: mkdir .deps 2>/dev/null
        !           963: if test -d .deps; then
        !           964:   DEPDIR=.deps
        !           965: else
        !           966:   # MS-DOS does not allow filenames that begin with a dot.
        !           967:   DEPDIR=_deps
        !           968: fi
        !           969: rmdir .deps 2>/dev/null
        !           970: AC_SUBST([DEPDIR])
        !           971: ])
        !           972: 
        !           973: 
        !           974: # AM_DEP_TRACK
        !           975: # ------------
        !           976: AC_DEFUN([AM_DEP_TRACK],
        !           977: [AC_ARG_ENABLE(dependency-tracking,
        !           978: [  --disable-dependency-tracking Speeds up one-time builds
        !           979:   --enable-dependency-tracking  Do not reject slow dependency extractors])
        !           980: if test "x$enable_dependency_tracking" != xno; then
        !           981:   am_depcomp="$ac_aux_dir/depcomp"
        !           982:   AMDEPBACKSLASH='\'
        !           983: fi
        !           984: AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
        !           985: AC_SUBST([AMDEPBACKSLASH])
        !           986: ])
        !           987: 
        !           988: # Generate code to set up dependency tracking.   -*- Autoconf -*-
        !           989: 
        !           990: # Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
        !           991: 
        !           992: # This program is free software; you can redistribute it and/or modify
        !           993: # it under the terms of the GNU General Public License as published by
        !           994: # the Free Software Foundation; either version 2, or (at your option)
        !           995: # any later version.
        !           996: 
        !           997: # This program is distributed in the hope that it will be useful,
        !           998: # but WITHOUT ANY WARRANTY; without even the implied warranty of
        !           999: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        !          1000: # GNU General Public License for more details.
        !          1001: 
        !          1002: # You should have received a copy of the GNU General Public License
        !          1003: # along with this program; if not, write to the Free Software
        !          1004: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
        !          1005: # 02111-1307, USA.
        !          1006: 
        !          1007: #serial 2
        !          1008: 
        !          1009: # _AM_OUTPUT_DEPENDENCY_COMMANDS
        !          1010: # ------------------------------
        !          1011: AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
        !          1012: [for mf in $CONFIG_FILES; do
        !          1013:   # Strip MF so we end up with the name of the file.
        !          1014:   mf=`echo "$mf" | sed -e 's/:.*$//'`
        !          1015:   # Check whether this is an Automake generated Makefile or not.
        !          1016:   # We used to match only the files named `Makefile.in', but
        !          1017:   # some people rename them; so instead we look at the file content.
        !          1018:   # Grep'ing the first line is not enough: some people post-process
        !          1019:   # each Makefile.in and add a new line on top of each file to say so.
        !          1020:   # So let's grep whole file.
        !          1021:   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
        !          1022:     dirpart=`AS_DIRNAME("$mf")`
        !          1023:   else
        !          1024:     continue
        !          1025:   fi
        !          1026:   grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
        !          1027:   # Extract the definition of DEP_FILES from the Makefile without
        !          1028:   # running `make'.
        !          1029:   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
        !          1030:   test -z "$DEPDIR" && continue
        !          1031:   # When using ansi2knr, U may be empty or an underscore; expand it
        !          1032:   U=`sed -n -e '/^U = / s///p' < "$mf"`
        !          1033:   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
        !          1034:   # We invoke sed twice because it is the simplest approach to
        !          1035:   # changing $(DEPDIR) to its actual value in the expansion.
        !          1036:   for file in `sed -n -e '
        !          1037:     /^DEP_FILES = .*\\\\$/ {
        !          1038:       s/^DEP_FILES = //
        !          1039:       :loop
        !          1040:        s/\\\\$//
        !          1041:        p
        !          1042:        n
        !          1043:        /\\\\$/ b loop
        !          1044:       p
        !          1045:     }
        !          1046:     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
        !          1047:        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
        !          1048:     # Make sure the directory exists.
        !          1049:     test -f "$dirpart/$file" && continue
        !          1050:     fdir=`AS_DIRNAME(["$file"])`
        !          1051:     AS_MKDIR_P([$dirpart/$fdir])
        !          1052:     # echo "creating $dirpart/$file"
        !          1053:     echo '# dummy' > "$dirpart/$file"
        !          1054:   done
        !          1055: done
        !          1056: ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
        !          1057: 
        !          1058: 
        !          1059: # AM_OUTPUT_DEPENDENCY_COMMANDS
        !          1060: # -----------------------------
        !          1061: # This macro should only be invoked once -- use via AC_REQUIRE.
        !          1062: #
        !          1063: # This code is only required when automatic dependency tracking
        !          1064: # is enabled.  FIXME.  This creates each `.P' file that we will
        !          1065: # need in order to bootstrap the dependency handling code.
        !          1066: AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
        !          1067: [AC_CONFIG_COMMANDS([depfiles],
        !          1068:      [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
        !          1069:      [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
        !          1070: ])
        !          1071: 
        !          1072: # Check to see how 'make' treats includes.     -*- Autoconf -*-
        !          1073: 
        !          1074: # Copyright (C) 2001, 2002 Free Software Foundation, Inc.
        !          1075: 
        !          1076: # This program is free software; you can redistribute it and/or modify
        !          1077: # it under the terms of the GNU General Public License as published by
        !          1078: # the Free Software Foundation; either version 2, or (at your option)
        !          1079: # any later version.
        !          1080: 
        !          1081: # This program is distributed in the hope that it will be useful,
        !          1082: # but WITHOUT ANY WARRANTY; without even the implied warranty of
        !          1083: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        !          1084: # GNU General Public License for more details.
        !          1085: 
        !          1086: # You should have received a copy of the GNU General Public License
        !          1087: # along with this program; if not, write to the Free Software
        !          1088: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
        !          1089: # 02111-1307, USA.
        !          1090: 
        !          1091: # serial 2
        !          1092: 
        !          1093: # AM_MAKE_INCLUDE()
        !          1094: # -----------------
        !          1095: # Check to see how make treats includes.
        !          1096: AC_DEFUN([AM_MAKE_INCLUDE],
        !          1097: [am_make=${MAKE-make}
        !          1098: cat > confinc << 'END'
        !          1099: doit:
        !          1100:        @echo done
        !          1101: END
        !          1102: # If we don't find an include directive, just comment out the code.
        !          1103: AC_MSG_CHECKING([for style of include used by $am_make])
        !          1104: am__include="#"
        !          1105: am__quote=
        !          1106: _am_result=none
        !          1107: # First try GNU make style include.
        !          1108: echo "include confinc" > confmf
        !          1109: # We grep out `Entering directory' and `Leaving directory'
        !          1110: # messages which can occur if `w' ends up in MAKEFLAGS.
        !          1111: # In particular we don't look at `^make:' because GNU make might
        !          1112: # be invoked under some other name (usually "gmake"), in which
        !          1113: # case it prints its new name instead of `make'.
        !          1114: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
        !          1115:    am__include=include
        !          1116:    am__quote=
        !          1117:    _am_result=GNU
        !          1118: fi
        !          1119: # Now try BSD make style include.
        !          1120: if test "$am__include" = "#"; then
        !          1121:    echo '.include "confinc"' > confmf
        !          1122:    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
        !          1123:       am__include=.include
        !          1124:       am__quote="\""
        !          1125:       _am_result=BSD
        !          1126:    fi
        !          1127: fi
        !          1128: AC_SUBST(am__include)
        !          1129: AC_SUBST(am__quote)
        !          1130: AC_MSG_RESULT($_am_result)
        !          1131: rm -f confinc confmf
        !          1132: ])
        !          1133: 
        !          1134: # AM_CONDITIONAL                                              -*- Autoconf -*-
        !          1135: 
        !          1136: # Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
        !          1137: 
        !          1138: # This program is free software; you can redistribute it and/or modify
        !          1139: # it under the terms of the GNU General Public License as published by
        !          1140: # the Free Software Foundation; either version 2, or (at your option)
        !          1141: # any later version.
        !          1142: 
        !          1143: # This program is distributed in the hope that it will be useful,
        !          1144: # but WITHOUT ANY WARRANTY; without even the implied warranty of
        !          1145: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        !          1146: # GNU General Public License for more details.
        !          1147: 
        !          1148: # You should have received a copy of the GNU General Public License
        !          1149: # along with this program; if not, write to the Free Software
        !          1150: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
        !          1151: # 02111-1307, USA.
        !          1152: 
        !          1153: # serial 5
        !          1154: 
        !          1155: AC_PREREQ(2.52)
        !          1156: 
        !          1157: # AM_CONDITIONAL(NAME, SHELL-CONDITION)
        !          1158: # -------------------------------------
        !          1159: # Define a conditional.
        !          1160: AC_DEFUN([AM_CONDITIONAL],
        !          1161: [ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
        !          1162:         [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
        !          1163: AC_SUBST([$1_TRUE])
        !          1164: AC_SUBST([$1_FALSE])
        !          1165: if $2; then
        !          1166:   $1_TRUE=
        !          1167:   $1_FALSE='#'
        !          1168: else
        !          1169:   $1_TRUE='#'
        !          1170:   $1_FALSE=
        !          1171: fi
        !          1172: AC_CONFIG_COMMANDS_PRE(
        !          1173: [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
        !          1174:   AC_MSG_ERROR([conditional "$1" was never defined.
        !          1175: Usually this means the macro was only invoked conditionally.])
        !          1176: fi])])
        !          1177: 
        !          1178: # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
        !          1179: 
        !          1180: # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
        !          1181: 
        !          1182: # This program is free software; you can redistribute it and/or modify
        !          1183: # it under the terms of the GNU General Public License as published by
        !          1184: # the Free Software Foundation; either version 2, or (at your option)
        !          1185: # any later version.
        !          1186: 
        !          1187: # This program is distributed in the hope that it will be useful,
        !          1188: # but WITHOUT ANY WARRANTY; without even the implied warranty of
        !          1189: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        !          1190: # GNU General Public License for more details.
        !          1191: 
        !          1192: # You should have received a copy of the GNU General Public License
        !          1193: # along with this program; if not, write to the Free Software
        !          1194: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
        !          1195: # 02111-1307, USA.
        !          1196: 
        !          1197: AC_PREREQ([2.52])
1.1       parser   1198: 
1.3     ! paf      1199: # serial 6
1.1       parser   1200: 
1.3     ! paf      1201: # AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
        !          1202: AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
1.1       parser   1203: 
                   1204: # Add --enable-maintainer-mode option to configure.
                   1205: # From Jim Meyering
                   1206: 
1.3     ! paf      1207: # Copyright 1996, 1998, 2000, 2001, 2002  Free Software Foundation, Inc.
1.1       parser   1208: 
1.3     ! paf      1209: # This program is free software; you can redistribute it and/or modify
        !          1210: # it under the terms of the GNU General Public License as published by
        !          1211: # the Free Software Foundation; either version 2, or (at your option)
        !          1212: # any later version.
        !          1213: 
        !          1214: # This program is distributed in the hope that it will be useful,
        !          1215: # but WITHOUT ANY WARRANTY; without even the implied warranty of
        !          1216: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        !          1217: # GNU General Public License for more details.
        !          1218: 
        !          1219: # You should have received a copy of the GNU General Public License
        !          1220: # along with this program; if not, write to the Free Software
        !          1221: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
        !          1222: # 02111-1307, USA.
        !          1223: 
        !          1224: # serial 2
        !          1225: 
        !          1226: AC_DEFUN([AM_MAINTAINER_MODE],
1.1       parser   1227: [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
                   1228:   dnl maintainer-mode is disabled by default
                   1229:   AC_ARG_ENABLE(maintainer-mode,
                   1230: [  --enable-maintainer-mode enable make rules and dependencies not useful
                   1231:                           (and sometimes confusing) to the casual installer],
                   1232:       USE_MAINTAINER_MODE=$enableval,
                   1233:       USE_MAINTAINER_MODE=no)
1.3     ! paf      1234:   AC_MSG_RESULT([$USE_MAINTAINER_MODE])
        !          1235:   AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
1.1       parser   1236:   MAINT=$MAINTAINER_MODE_TRUE
                   1237:   AC_SUBST(MAINT)dnl
                   1238: ]
                   1239: )
                   1240: 
1.3     ! paf      1241: AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
1.1       parser   1242: 

E-mail: