Annotation of parser3/src/lib/ltdl/configure, revision 1.2
1.1 paf 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.2 ! paf 3: # Generated by GNU Autoconf 2.57.
1.1 paf 4: #
1.2 ! paf 5: # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
! 6: # Free Software Foundation, Inc.
1.1 paf 7: # This configure script is free software; the Free Software Foundation
8: # gives unlimited permission to copy, distribute and modify it.
1.2 ! paf 9: ## --------------------- ##
! 10: ## M4sh Initialization. ##
! 11: ## --------------------- ##
! 12:
! 13: # Be Bourne compatible
! 14: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
! 15: emulate sh
! 16: NULLCMD=:
! 17: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
! 18: # is contrary to our usage. Disable this feature.
! 19: alias -g '${1+"$@"}'='"$@"'
! 20: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
! 21: set -o posix
! 22: fi
! 23:
! 24: # Support unset when possible.
! 25: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
! 26: as_unset=unset
! 27: else
! 28: as_unset=false
! 29: fi
! 30:
! 31:
! 32: # Work around bugs in pre-3.0 UWIN ksh.
! 33: $as_unset ENV MAIL MAILPATH
! 34: PS1='$ '
! 35: PS2='> '
! 36: PS4='+ '
! 37:
! 38: # NLS nuisances.
! 39: for as_var in \
! 40: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
! 41: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
! 42: LC_TELEPHONE LC_TIME
! 43: do
! 44: if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
! 45: eval $as_var=C; export $as_var
! 46: else
! 47: $as_unset $as_var
! 48: fi
! 49: done
! 50:
! 51: # Required to use basename.
! 52: if expr a : '\(a\)' >/dev/null 2>&1; then
! 53: as_expr=expr
! 54: else
! 55: as_expr=false
! 56: fi
! 57:
! 58: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
! 59: as_basename=basename
! 60: else
! 61: as_basename=false
! 62: fi
! 63:
! 64:
! 65: # Name of the executable.
! 66: as_me=`$as_basename "$0" ||
! 67: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
! 68: X"$0" : 'X\(//\)$' \| \
! 69: X"$0" : 'X\(/\)$' \| \
! 70: . : '\(.\)' 2>/dev/null ||
! 71: echo X/"$0" |
! 72: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
! 73: /^X\/\(\/\/\)$/{ s//\1/; q; }
! 74: /^X\/\(\/\).*/{ s//\1/; q; }
! 75: s/.*/./; q'`
! 76:
! 77:
! 78: # PATH needs CR, and LINENO needs CR and PATH.
! 79: # Avoid depending upon Character Ranges.
! 80: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
! 81: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
! 82: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
! 83: as_cr_digits='0123456789'
! 84: as_cr_alnum=$as_cr_Letters$as_cr_digits
! 85:
! 86: # The user is always right.
! 87: if test "${PATH_SEPARATOR+set}" != set; then
! 88: echo "#! /bin/sh" >conf$$.sh
! 89: echo "exit 0" >>conf$$.sh
! 90: chmod +x conf$$.sh
! 91: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
! 92: PATH_SEPARATOR=';'
! 93: else
! 94: PATH_SEPARATOR=:
! 95: fi
! 96: rm -f conf$$.sh
! 97: fi
! 98:
! 99:
! 100: as_lineno_1=$LINENO
! 101: as_lineno_2=$LINENO
! 102: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
! 103: test "x$as_lineno_1" != "x$as_lineno_2" &&
! 104: test "x$as_lineno_3" = "x$as_lineno_2" || {
! 105: # Find who we are. Look in the path if we contain no path at all
! 106: # relative or not.
! 107: case $0 in
! 108: *[\\/]* ) as_myself=$0 ;;
! 109: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 110: for as_dir in $PATH
! 111: do
! 112: IFS=$as_save_IFS
! 113: test -z "$as_dir" && as_dir=.
! 114: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
! 115: done
! 116:
! 117: ;;
! 118: esac
! 119: # We did not find ourselves, most probably we were run as `sh COMMAND'
! 120: # in which case we are not to be found in the path.
! 121: if test "x$as_myself" = x; then
! 122: as_myself=$0
! 123: fi
! 124: if test ! -f "$as_myself"; then
! 125: { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
! 126: { (exit 1); exit 1; }; }
! 127: fi
! 128: case $CONFIG_SHELL in
! 129: '')
! 130: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 131: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
! 132: do
! 133: IFS=$as_save_IFS
! 134: test -z "$as_dir" && as_dir=.
! 135: for as_base in sh bash ksh sh5; do
! 136: case $as_dir in
! 137: /*)
! 138: if ("$as_dir/$as_base" -c '
! 139: as_lineno_1=$LINENO
! 140: as_lineno_2=$LINENO
! 141: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
! 142: test "x$as_lineno_1" != "x$as_lineno_2" &&
! 143: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
! 144: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
! 145: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
! 146: CONFIG_SHELL=$as_dir/$as_base
! 147: export CONFIG_SHELL
! 148: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
! 149: fi;;
! 150: esac
! 151: done
! 152: done
! 153: ;;
! 154: esac
! 155:
! 156: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
! 157: # uniformly replaced by the line number. The first 'sed' inserts a
! 158: # line-number line before each line; the second 'sed' does the real
! 159: # work. The second script uses 'N' to pair each line-number line
! 160: # with the numbered line, and appends trailing '-' during
! 161: # substitution so that $LINENO is not a special case at line end.
! 162: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
! 163: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
! 164: sed '=' <$as_myself |
! 165: sed '
! 166: N
! 167: s,$,-,
! 168: : loop
! 169: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
! 170: t loop
! 171: s,-$,,
! 172: s,^['$as_cr_digits']*\n,,
! 173: ' >$as_me.lineno &&
! 174: chmod +x $as_me.lineno ||
! 175: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
! 176: { (exit 1); exit 1; }; }
! 177:
! 178: # Don't try to exec as it changes $[0], causing all sort of problems
! 179: # (the dirname of $[0] is not the place where we might find the
! 180: # original and so on. Autoconf is especially sensible to this).
! 181: . ./$as_me.lineno
! 182: # Exit status is that of the last command.
! 183: exit
! 184: }
! 185:
! 186:
! 187: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
! 188: *c*,-n*) ECHO_N= ECHO_C='
! 189: ' ECHO_T=' ' ;;
! 190: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
! 191: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
! 192: esac
! 193:
! 194: if expr a : '\(a\)' >/dev/null 2>&1; then
! 195: as_expr=expr
! 196: else
! 197: as_expr=false
! 198: fi
! 199:
! 200: rm -f conf$$ conf$$.exe conf$$.file
! 201: echo >conf$$.file
! 202: if ln -s conf$$.file conf$$ 2>/dev/null; then
! 203: # We could just check for DJGPP; but this test a) works b) is more generic
! 204: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
! 205: if test -f conf$$.exe; then
! 206: # Don't use ln at all; we don't have any links
! 207: as_ln_s='cp -p'
! 208: else
! 209: as_ln_s='ln -s'
! 210: fi
! 211: elif ln conf$$.file conf$$ 2>/dev/null; then
! 212: as_ln_s=ln
! 213: else
! 214: as_ln_s='cp -p'
! 215: fi
! 216: rm -f conf$$ conf$$.exe conf$$.file
! 217:
! 218: if mkdir -p . 2>/dev/null; then
! 219: as_mkdir_p=:
! 220: else
! 221: as_mkdir_p=false
! 222: fi
! 223:
! 224: as_executable_p="test -f"
! 225:
! 226: # Sed expression to map a string onto a valid CPP name.
! 227: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
! 228:
! 229: # Sed expression to map a string onto a valid variable name.
! 230: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
! 231:
1.1 paf 232:
1.2 ! paf 233: # IFS
! 234: # We need space, tab and new line, in precisely that order.
! 235: as_nl='
! 236: '
! 237: IFS=" $as_nl"
! 238:
! 239: # CDPATH.
! 240: $as_unset CDPATH
! 241:
! 242:
! 243: # Name of the host.
! 244: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
! 245: # so uname gets run too.
! 246: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
! 247:
! 248: exec 6>&1
! 249:
! 250: #
! 251: # Initializations.
! 252: #
1.1 paf 253: ac_default_prefix=/usr/local
1.2 ! paf 254: ac_config_libobj_dir=.
! 255: cross_compiling=no
! 256: subdirs=
! 257: MFLAGS=
! 258: MAKEFLAGS=
! 259: SHELL=${CONFIG_SHELL-/bin/sh}
! 260:
! 261: # Maximum number of lines to put in a shell here document.
! 262: # This variable seems obsolete. It should probably be removed, and
! 263: # only ac_max_sed_lines should be used.
! 264: : ${ac_max_here_lines=38}
! 265:
! 266: # Identity of this package.
! 267: PACKAGE_NAME=
! 268: PACKAGE_TARNAME=
! 269: PACKAGE_VERSION=
! 270: PACKAGE_STRING=
! 271: PACKAGE_BUGREPORT=
! 272:
! 273: ac_unique_file="ltdl.c"
! 274: # Factoring default headers for most tests.
! 275: ac_includes_default="\
! 276: #include <stdio.h>
! 277: #if HAVE_SYS_TYPES_H
! 278: # include <sys/types.h>
! 279: #endif
! 280: #if HAVE_SYS_STAT_H
! 281: # include <sys/stat.h>
! 282: #endif
! 283: #if STDC_HEADERS
! 284: # include <stdlib.h>
! 285: # include <stddef.h>
! 286: #else
! 287: # if HAVE_STDLIB_H
! 288: # include <stdlib.h>
! 289: # endif
! 290: #endif
! 291: #if HAVE_STRING_H
! 292: # if !STDC_HEADERS && HAVE_MEMORY_H
! 293: # include <memory.h>
! 294: # endif
! 295: # include <string.h>
! 296: #endif
! 297: #if HAVE_STRINGS_H
! 298: # include <strings.h>
! 299: #endif
! 300: #if HAVE_INTTYPES_H
! 301: # include <inttypes.h>
! 302: #else
! 303: # if HAVE_STDINT_H
! 304: # include <stdint.h>
! 305: # endif
! 306: #endif
! 307: #if HAVE_UNISTD_H
! 308: # include <unistd.h>
! 309: #endif"
! 310:
! 311: ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB CPP EGREP LIBADD_DL LIBOBJS LTLIBOBJS'
! 312: ac_subst_files=''
1.1 paf 313:
314: # Initialize some variables set by options.
1.2 ! paf 315: ac_init_help=
! 316: ac_init_version=false
1.1 paf 317: # The variables have the same names as the options, with
318: # dashes changed to underlines.
1.2 ! paf 319: cache_file=/dev/null
1.1 paf 320: exec_prefix=NONE
321: no_create=
322: no_recursion=
323: prefix=NONE
324: program_prefix=NONE
325: program_suffix=NONE
326: program_transform_name=s,x,x,
327: silent=
328: site=
329: srcdir=
330: verbose=
331: x_includes=NONE
332: x_libraries=NONE
1.2 ! paf 333:
! 334: # Installation directory options.
! 335: # These are left unexpanded so users can "make install exec_prefix=/foo"
! 336: # and all the variables that are supposed to be based on exec_prefix
! 337: # by default will actually change.
! 338: # Use braces instead of parens because sh, perl, etc. also accept them.
1.1 paf 339: bindir='${exec_prefix}/bin'
340: sbindir='${exec_prefix}/sbin'
341: libexecdir='${exec_prefix}/libexec'
342: datadir='${prefix}/share'
343: sysconfdir='${prefix}/etc'
344: sharedstatedir='${prefix}/com'
345: localstatedir='${prefix}/var'
346: libdir='${exec_prefix}/lib'
347: includedir='${prefix}/include'
348: oldincludedir='/usr/include'
349: infodir='${prefix}/info'
350: mandir='${prefix}/man'
351:
352: ac_prev=
353: for ac_option
354: do
355: # If the previous option needs an argument, assign it.
356: if test -n "$ac_prev"; then
357: eval "$ac_prev=\$ac_option"
358: ac_prev=
359: continue
360: fi
361:
1.2 ! paf 362: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1.1 paf 363:
364: # Accept the important Cygnus configure options, so we can diagnose typos.
365:
1.2 ! paf 366: case $ac_option in
1.1 paf 367:
368: -bindir | --bindir | --bindi | --bind | --bin | --bi)
369: ac_prev=bindir ;;
370: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.2 ! paf 371: bindir=$ac_optarg ;;
1.1 paf 372:
373: -build | --build | --buil | --bui | --bu)
1.2 ! paf 374: ac_prev=build_alias ;;
1.1 paf 375: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.2 ! paf 376: build_alias=$ac_optarg ;;
1.1 paf 377:
378: -cache-file | --cache-file | --cache-fil | --cache-fi \
379: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380: ac_prev=cache_file ;;
381: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.2 ! paf 383: cache_file=$ac_optarg ;;
! 384:
! 385: --config-cache | -C)
! 386: cache_file=config.cache ;;
1.1 paf 387:
388: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389: ac_prev=datadir ;;
390: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391: | --da=*)
1.2 ! paf 392: datadir=$ac_optarg ;;
1.1 paf 393:
394: -disable-* | --disable-*)
1.2 ! paf 395: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 paf 396: # Reject names that are not valid shell variable names.
1.2 ! paf 397: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
! 398: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
! 399: { (exit 1); exit 1; }; }
! 400: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
! 401: eval "enable_$ac_feature=no" ;;
1.1 paf 402:
403: -enable-* | --enable-*)
1.2 ! paf 404: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 paf 405: # Reject names that are not valid shell variable names.
1.2 ! paf 406: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
! 407: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
! 408: { (exit 1); exit 1; }; }
! 409: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
! 410: case $ac_option in
! 411: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 paf 412: *) ac_optarg=yes ;;
413: esac
1.2 ! paf 414: eval "enable_$ac_feature='$ac_optarg'" ;;
1.1 paf 415:
416: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418: | --exec | --exe | --ex)
419: ac_prev=exec_prefix ;;
420: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422: | --exec=* | --exe=* | --ex=*)
1.2 ! paf 423: exec_prefix=$ac_optarg ;;
1.1 paf 424:
425: -gas | --gas | --ga | --g)
426: # Obsolete; use --with-gas.
427: with_gas=yes ;;
428:
1.2 ! paf 429: -help | --help | --hel | --he | -h)
! 430: ac_init_help=long ;;
! 431: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
! 432: ac_init_help=recursive ;;
! 433: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
! 434: ac_init_help=short ;;
1.1 paf 435:
436: -host | --host | --hos | --ho)
1.2 ! paf 437: ac_prev=host_alias ;;
1.1 paf 438: -host=* | --host=* | --hos=* | --ho=*)
1.2 ! paf 439: host_alias=$ac_optarg ;;
1.1 paf 440:
441: -includedir | --includedir | --includedi | --included | --include \
442: | --includ | --inclu | --incl | --inc)
443: ac_prev=includedir ;;
444: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.2 ! paf 446: includedir=$ac_optarg ;;
1.1 paf 447:
448: -infodir | --infodir | --infodi | --infod | --info | --inf)
449: ac_prev=infodir ;;
450: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.2 ! paf 451: infodir=$ac_optarg ;;
1.1 paf 452:
453: -libdir | --libdir | --libdi | --libd)
454: ac_prev=libdir ;;
455: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.2 ! paf 456: libdir=$ac_optarg ;;
1.1 paf 457:
458: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459: | --libexe | --libex | --libe)
460: ac_prev=libexecdir ;;
461: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462: | --libexe=* | --libex=* | --libe=*)
1.2 ! paf 463: libexecdir=$ac_optarg ;;
1.1 paf 464:
465: -localstatedir | --localstatedir | --localstatedi | --localstated \
466: | --localstate | --localstat | --localsta | --localst \
467: | --locals | --local | --loca | --loc | --lo)
468: ac_prev=localstatedir ;;
469: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1.2 ! paf 472: localstatedir=$ac_optarg ;;
1.1 paf 473:
474: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475: ac_prev=mandir ;;
476: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.2 ! paf 477: mandir=$ac_optarg ;;
1.1 paf 478:
479: -nfp | --nfp | --nf)
480: # Obsolete; use --without-fp.
481: with_fp=no ;;
482:
483: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.2 ! paf 484: | --no-cr | --no-c | -n)
1.1 paf 485: no_create=yes ;;
486:
487: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489: no_recursion=yes ;;
490:
491: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493: | --oldin | --oldi | --old | --ol | --o)
494: ac_prev=oldincludedir ;;
495: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.2 ! paf 498: oldincludedir=$ac_optarg ;;
1.1 paf 499:
500: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501: ac_prev=prefix ;;
502: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.2 ! paf 503: prefix=$ac_optarg ;;
1.1 paf 504:
505: -program-prefix | --program-prefix | --program-prefi | --program-pref \
506: | --program-pre | --program-pr | --program-p)
507: ac_prev=program_prefix ;;
508: -program-prefix=* | --program-prefix=* | --program-prefi=* \
509: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.2 ! paf 510: program_prefix=$ac_optarg ;;
1.1 paf 511:
512: -program-suffix | --program-suffix | --program-suffi | --program-suff \
513: | --program-suf | --program-su | --program-s)
514: ac_prev=program_suffix ;;
515: -program-suffix=* | --program-suffix=* | --program-suffi=* \
516: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.2 ! paf 517: program_suffix=$ac_optarg ;;
1.1 paf 518:
519: -program-transform-name | --program-transform-name \
520: | --program-transform-nam | --program-transform-na \
521: | --program-transform-n | --program-transform- \
522: | --program-transform | --program-transfor \
523: | --program-transfo | --program-transf \
524: | --program-trans | --program-tran \
525: | --progr-tra | --program-tr | --program-t)
526: ac_prev=program_transform_name ;;
527: -program-transform-name=* | --program-transform-name=* \
528: | --program-transform-nam=* | --program-transform-na=* \
529: | --program-transform-n=* | --program-transform-=* \
530: | --program-transform=* | --program-transfor=* \
531: | --program-transfo=* | --program-transf=* \
532: | --program-trans=* | --program-tran=* \
533: | --progr-tra=* | --program-tr=* | --program-t=*)
1.2 ! paf 534: program_transform_name=$ac_optarg ;;
1.1 paf 535:
536: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537: | -silent | --silent | --silen | --sile | --sil)
538: silent=yes ;;
539:
540: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541: ac_prev=sbindir ;;
542: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543: | --sbi=* | --sb=*)
1.2 ! paf 544: sbindir=$ac_optarg ;;
1.1 paf 545:
546: -sharedstatedir | --sharedstatedir | --sharedstatedi \
547: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548: | --sharedst | --shareds | --shared | --share | --shar \
549: | --sha | --sh)
550: ac_prev=sharedstatedir ;;
551: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554: | --sha=* | --sh=*)
1.2 ! paf 555: sharedstatedir=$ac_optarg ;;
1.1 paf 556:
557: -site | --site | --sit)
558: ac_prev=site ;;
559: -site=* | --site=* | --sit=*)
1.2 ! paf 560: site=$ac_optarg ;;
1.1 paf 561:
562: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563: ac_prev=srcdir ;;
564: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.2 ! paf 565: srcdir=$ac_optarg ;;
1.1 paf 566:
567: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568: | --syscon | --sysco | --sysc | --sys | --sy)
569: ac_prev=sysconfdir ;;
570: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.2 ! paf 572: sysconfdir=$ac_optarg ;;
1.1 paf 573:
574: -target | --target | --targe | --targ | --tar | --ta | --t)
1.2 ! paf 575: ac_prev=target_alias ;;
1.1 paf 576: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.2 ! paf 577: target_alias=$ac_optarg ;;
1.1 paf 578:
579: -v | -verbose | --verbose | --verbos | --verbo | --verb)
580: verbose=yes ;;
581:
1.2 ! paf 582: -version | --version | --versio | --versi | --vers | -V)
! 583: ac_init_version=: ;;
1.1 paf 584:
585: -with-* | --with-*)
1.2 ! paf 586: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 paf 587: # Reject names that are not valid shell variable names.
1.2 ! paf 588: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
! 589: { echo "$as_me: error: invalid package name: $ac_package" >&2
! 590: { (exit 1); exit 1; }; }
1.1 paf 591: ac_package=`echo $ac_package| sed 's/-/_/g'`
1.2 ! paf 592: case $ac_option in
! 593: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 paf 594: *) ac_optarg=yes ;;
595: esac
1.2 ! paf 596: eval "with_$ac_package='$ac_optarg'" ;;
1.1 paf 597:
598: -without-* | --without-*)
1.2 ! paf 599: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 paf 600: # Reject names that are not valid shell variable names.
1.2 ! paf 601: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
! 602: { echo "$as_me: error: invalid package name: $ac_package" >&2
! 603: { (exit 1); exit 1; }; }
! 604: ac_package=`echo $ac_package | sed 's/-/_/g'`
! 605: eval "with_$ac_package=no" ;;
1.1 paf 606:
607: --x)
608: # Obsolete; use --with-x.
609: with_x=yes ;;
610:
611: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612: | --x-incl | --x-inc | --x-in | --x-i)
613: ac_prev=x_includes ;;
614: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.2 ! paf 616: x_includes=$ac_optarg ;;
1.1 paf 617:
618: -x-libraries | --x-libraries | --x-librarie | --x-librari \
619: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620: ac_prev=x_libraries ;;
621: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.2 ! paf 623: x_libraries=$ac_optarg ;;
1.1 paf 624:
1.2 ! paf 625: -*) { echo "$as_me: error: unrecognized option: $ac_option
! 626: Try \`$0 --help' for more information." >&2
! 627: { (exit 1); exit 1; }; }
1.1 paf 628: ;;
629:
1.2 ! paf 630: *=*)
! 631: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
! 632: # Reject names that are not valid shell variable names.
! 633: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
! 634: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
! 635: { (exit 1); exit 1; }; }
! 636: ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
! 637: eval "$ac_envvar='$ac_optarg'"
! 638: export $ac_envvar ;;
! 639:
1.1 paf 640: *)
1.2 ! paf 641: # FIXME: should be removed in autoconf 3.0.
! 642: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
! 643: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
! 644: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
! 645: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1.1 paf 646: ;;
647:
648: esac
649: done
650:
651: if test -n "$ac_prev"; then
1.2 ! paf 652: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
! 653: { echo "$as_me: error: missing argument to $ac_option" >&2
! 654: { (exit 1); exit 1; }; }
1.1 paf 655: fi
656:
1.2 ! paf 657: # Be sure to have absolute paths.
! 658: for ac_var in exec_prefix prefix
! 659: do
! 660: eval ac_val=$`echo $ac_var`
! 661: case $ac_val in
! 662: [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
! 663: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
! 664: { (exit 1); exit 1; }; };;
! 665: esac
! 666: done
1.1 paf 667:
1.2 ! paf 668: # Be sure to have absolute paths.
! 669: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
! 670: localstatedir libdir includedir oldincludedir infodir mandir
1.1 paf 671: do
1.2 ! paf 672: eval ac_val=$`echo $ac_var`
! 673: case $ac_val in
! 674: [\\/$]* | ?:[\\/]* ) ;;
! 675: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
! 676: { (exit 1); exit 1; }; };;
1.1 paf 677: esac
678: done
679:
1.2 ! paf 680: # There might be people who depend on the old broken behavior: `$host'
! 681: # used to hold the argument of --host etc.
! 682: # FIXME: To remove some day.
! 683: build=$build_alias
! 684: host=$host_alias
! 685: target=$target_alias
! 686:
! 687: # FIXME: To remove some day.
! 688: if test "x$host_alias" != x; then
! 689: if test "x$build_alias" = x; then
! 690: cross_compiling=maybe
! 691: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
! 692: If a cross compiler is detected then cross compile mode will be used." >&2
! 693: elif test "x$build_alias" != "x$host_alias"; then
! 694: cross_compiling=yes
! 695: fi
! 696: fi
! 697:
! 698: ac_tool_prefix=
! 699: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 paf 700:
1.2 ! paf 701: test "$silent" = yes && exec 6>/dev/null
1.1 paf 702:
703:
704: # Find the source files, if location was not specified.
705: if test -z "$srcdir"; then
706: ac_srcdir_defaulted=yes
707: # Try the directory containing this script, then its parent.
1.2 ! paf 708: ac_confdir=`(dirname "$0") 2>/dev/null ||
! 709: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 710: X"$0" : 'X\(//\)[^/]' \| \
! 711: X"$0" : 'X\(//\)$' \| \
! 712: X"$0" : 'X\(/\)' \| \
! 713: . : '\(.\)' 2>/dev/null ||
! 714: echo X"$0" |
! 715: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 716: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 717: /^X\(\/\/\)$/{ s//\1/; q; }
! 718: /^X\(\/\).*/{ s//\1/; q; }
! 719: s/.*/./; q'`
1.1 paf 720: srcdir=$ac_confdir
721: if test ! -r $srcdir/$ac_unique_file; then
722: srcdir=..
723: fi
724: else
725: ac_srcdir_defaulted=no
726: fi
727: if test ! -r $srcdir/$ac_unique_file; then
728: if test "$ac_srcdir_defaulted" = yes; then
1.2 ! paf 729: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
! 730: { (exit 1); exit 1; }; }
1.1 paf 731: else
1.2 ! paf 732: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
! 733: { (exit 1); exit 1; }; }
1.1 paf 734: fi
735: fi
1.2 ! paf 736: (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
! 737: { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
! 738: { (exit 1); exit 1; }; }
! 739: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
! 740: ac_env_build_alias_set=${build_alias+set}
! 741: ac_env_build_alias_value=$build_alias
! 742: ac_cv_env_build_alias_set=${build_alias+set}
! 743: ac_cv_env_build_alias_value=$build_alias
! 744: ac_env_host_alias_set=${host_alias+set}
! 745: ac_env_host_alias_value=$host_alias
! 746: ac_cv_env_host_alias_set=${host_alias+set}
! 747: ac_cv_env_host_alias_value=$host_alias
! 748: ac_env_target_alias_set=${target_alias+set}
! 749: ac_env_target_alias_value=$target_alias
! 750: ac_cv_env_target_alias_set=${target_alias+set}
! 751: ac_cv_env_target_alias_value=$target_alias
! 752: ac_env_CC_set=${CC+set}
! 753: ac_env_CC_value=$CC
! 754: ac_cv_env_CC_set=${CC+set}
! 755: ac_cv_env_CC_value=$CC
! 756: ac_env_CFLAGS_set=${CFLAGS+set}
! 757: ac_env_CFLAGS_value=$CFLAGS
! 758: ac_cv_env_CFLAGS_set=${CFLAGS+set}
! 759: ac_cv_env_CFLAGS_value=$CFLAGS
! 760: ac_env_LDFLAGS_set=${LDFLAGS+set}
! 761: ac_env_LDFLAGS_value=$LDFLAGS
! 762: ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
! 763: ac_cv_env_LDFLAGS_value=$LDFLAGS
! 764: ac_env_CPPFLAGS_set=${CPPFLAGS+set}
! 765: ac_env_CPPFLAGS_value=$CPPFLAGS
! 766: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
! 767: ac_cv_env_CPPFLAGS_value=$CPPFLAGS
! 768: ac_env_CPP_set=${CPP+set}
! 769: ac_env_CPP_value=$CPP
! 770: ac_cv_env_CPP_set=${CPP+set}
! 771: ac_cv_env_CPP_value=$CPP
! 772:
! 773: #
! 774: # Report the --help message.
! 775: #
! 776: if test "$ac_init_help" = "long"; then
! 777: # Omit some internal or obsolete options to make the list less imposing.
! 778: # This message is too long to be a string in the A/UX 3.1 sh.
! 779: cat <<_ACEOF
! 780: \`configure' configures this package to adapt to many kinds of systems.
! 781:
! 782: Usage: $0 [OPTION]... [VAR=VALUE]...
! 783:
! 784: To assign environment variables (e.g., CC, CFLAGS...), specify them as
! 785: VAR=VALUE. See below for descriptions of some of the useful variables.
! 786:
! 787: Defaults for the options are specified in brackets.
! 788:
! 789: Configuration:
! 790: -h, --help display this help and exit
! 791: --help=short display options specific to this package
! 792: --help=recursive display the short help of all the included packages
! 793: -V, --version display version information and exit
! 794: -q, --quiet, --silent do not print \`checking...' messages
! 795: --cache-file=FILE cache test results in FILE [disabled]
! 796: -C, --config-cache alias for \`--cache-file=config.cache'
! 797: -n, --no-create do not create output files
! 798: --srcdir=DIR find the sources in DIR [configure dir or \`..']
! 799:
! 800: _ACEOF
! 801:
! 802: cat <<_ACEOF
! 803: Installation directories:
! 804: --prefix=PREFIX install architecture-independent files in PREFIX
! 805: [$ac_default_prefix]
! 806: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
! 807: [PREFIX]
! 808:
! 809: By default, \`make install' will install all the files in
! 810: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
! 811: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
! 812: for instance \`--prefix=\$HOME'.
! 813:
! 814: For better control, use the options below.
! 815:
! 816: Fine tuning of the installation directories:
! 817: --bindir=DIR user executables [EPREFIX/bin]
! 818: --sbindir=DIR system admin executables [EPREFIX/sbin]
! 819: --libexecdir=DIR program executables [EPREFIX/libexec]
! 820: --datadir=DIR read-only architecture-independent data [PREFIX/share]
! 821: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
! 822: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
! 823: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
! 824: --libdir=DIR object code libraries [EPREFIX/lib]
! 825: --includedir=DIR C header files [PREFIX/include]
! 826: --oldincludedir=DIR C header files for non-gcc [/usr/include]
! 827: --infodir=DIR info documentation [PREFIX/info]
! 828: --mandir=DIR man documentation [PREFIX/man]
! 829: _ACEOF
! 830:
! 831: cat <<\_ACEOF
! 832:
! 833: Program names:
! 834: --program-prefix=PREFIX prepend PREFIX to installed program names
! 835: --program-suffix=SUFFIX append SUFFIX to installed program names
! 836: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
! 837: _ACEOF
! 838: fi
! 839:
! 840: if test -n "$ac_init_help"; then
! 841:
! 842: cat <<\_ACEOF
! 843:
! 844: Optional Features:
! 845: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
! 846: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
! 847: --enable-maintainer-mode enable make rules and dependencies not useful
! 848: (and sometimes confusing) to the casual installer
! 849: --disable-dependency-tracking Speeds up one-time builds
! 850: --enable-dependency-tracking Do not reject slow dependency extractors
! 851:
! 852: Some influential environment variables:
! 853: CC C compiler command
! 854: CFLAGS C compiler flags
! 855: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
! 856: nonstandard directory <lib dir>
! 857: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
! 858: headers in a nonstandard directory <include dir>
! 859: CPP C preprocessor
! 860:
! 861: Use these variables to override the choices made by `configure' or to help
! 862: it to find libraries and programs with nonstandard names/locations.
! 863:
! 864: _ACEOF
! 865: fi
! 866:
! 867: if test "$ac_init_help" = "recursive"; then
! 868: # If there are subdirs, report their specific --help.
! 869: ac_popdir=`pwd`
! 870: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
! 871: test -d $ac_dir || continue
! 872: ac_builddir=.
! 873:
! 874: if test "$ac_dir" != .; then
! 875: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
! 876: # A "../" for each directory in $ac_dir_suffix.
! 877: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
! 878: else
! 879: ac_dir_suffix= ac_top_builddir=
! 880: fi
! 881:
! 882: case $srcdir in
! 883: .) # No --srcdir option. We are building in place.
! 884: ac_srcdir=.
! 885: if test -z "$ac_top_builddir"; then
! 886: ac_top_srcdir=.
! 887: else
! 888: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
! 889: fi ;;
! 890: [\\/]* | ?:[\\/]* ) # Absolute path.
! 891: ac_srcdir=$srcdir$ac_dir_suffix;
! 892: ac_top_srcdir=$srcdir ;;
! 893: *) # Relative path.
! 894: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
! 895: ac_top_srcdir=$ac_top_builddir$srcdir ;;
! 896: esac
! 897: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
! 898: # absolute.
! 899: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
! 900: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
! 901: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
! 902: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
! 903:
! 904: cd $ac_dir
! 905: # Check for guested configure; otherwise get Cygnus style configure.
! 906: if test -f $ac_srcdir/configure.gnu; then
! 907: echo
! 908: $SHELL $ac_srcdir/configure.gnu --help=recursive
! 909: elif test -f $ac_srcdir/configure; then
! 910: echo
! 911: $SHELL $ac_srcdir/configure --help=recursive
! 912: elif test -f $ac_srcdir/configure.ac ||
! 913: test -f $ac_srcdir/configure.in; then
! 914: echo
! 915: $ac_configure --help
! 916: else
! 917: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
! 918: fi
! 919: cd $ac_popdir
! 920: done
! 921: fi
! 922:
! 923: test -n "$ac_init_help" && exit 0
! 924: if $ac_init_version; then
! 925: cat <<\_ACEOF
! 926:
! 927: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
! 928: Free Software Foundation, Inc.
! 929: This configure script is free software; the Free Software Foundation
! 930: gives unlimited permission to copy, distribute and modify it.
! 931: _ACEOF
! 932: exit 0
! 933: fi
! 934: exec 5>config.log
! 935: cat >&5 <<_ACEOF
! 936: This file contains any messages produced by compilers while
! 937: running configure, to aid debugging if configure makes a mistake.
! 938:
! 939: It was created by $as_me, which was
! 940: generated by GNU Autoconf 2.57. Invocation command line was
! 941:
! 942: $ $0 $@
! 943:
! 944: _ACEOF
! 945: {
! 946: cat <<_ASUNAME
! 947: ## --------- ##
! 948: ## Platform. ##
! 949: ## --------- ##
! 950:
! 951: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
! 952: uname -m = `(uname -m) 2>/dev/null || echo unknown`
! 953: uname -r = `(uname -r) 2>/dev/null || echo unknown`
! 954: uname -s = `(uname -s) 2>/dev/null || echo unknown`
! 955: uname -v = `(uname -v) 2>/dev/null || echo unknown`
! 956:
! 957: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
! 958: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
! 959:
! 960: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
! 961: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
! 962: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
! 963: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
! 964: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
! 965: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
! 966: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
! 967:
! 968: _ASUNAME
! 969:
! 970: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 971: for as_dir in $PATH
! 972: do
! 973: IFS=$as_save_IFS
! 974: test -z "$as_dir" && as_dir=.
! 975: echo "PATH: $as_dir"
! 976: done
! 977:
! 978: } >&5
! 979:
! 980: cat >&5 <<_ACEOF
! 981:
! 982:
! 983: ## ----------- ##
! 984: ## Core tests. ##
! 985: ## ----------- ##
! 986:
! 987: _ACEOF
! 988:
! 989:
! 990: # Keep a trace of the command line.
! 991: # Strip out --no-create and --no-recursion so they do not pile up.
! 992: # Strip out --silent because we don't want to record it for future runs.
! 993: # Also quote any args containing shell meta-characters.
! 994: # Make two passes to allow for proper duplicate-argument suppression.
! 995: ac_configure_args=
! 996: ac_configure_args0=
! 997: ac_configure_args1=
! 998: ac_sep=
! 999: ac_must_keep_next=false
! 1000: for ac_pass in 1 2
! 1001: do
! 1002: for ac_arg
! 1003: do
! 1004: case $ac_arg in
! 1005: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
! 1006: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
! 1007: | -silent | --silent | --silen | --sile | --sil)
! 1008: continue ;;
! 1009: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
! 1010: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
! 1011: esac
! 1012: case $ac_pass in
! 1013: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
! 1014: 2)
! 1015: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
! 1016: if test $ac_must_keep_next = true; then
! 1017: ac_must_keep_next=false # Got value, back to normal.
! 1018: else
! 1019: case $ac_arg in
! 1020: *=* | --config-cache | -C | -disable-* | --disable-* \
! 1021: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
! 1022: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
! 1023: | -with-* | --with-* | -without-* | --without-* | --x)
! 1024: case "$ac_configure_args0 " in
! 1025: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
! 1026: esac
! 1027: ;;
! 1028: -* ) ac_must_keep_next=true ;;
! 1029: esac
! 1030: fi
! 1031: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
! 1032: # Get rid of the leading space.
! 1033: ac_sep=" "
! 1034: ;;
! 1035: esac
! 1036: done
! 1037: done
! 1038: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
! 1039: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
! 1040:
! 1041: # When interrupted or exit'd, cleanup temporary files, and complete
! 1042: # config.log. We remove comments because anyway the quotes in there
! 1043: # would cause problems or look ugly.
! 1044: # WARNING: Be sure not to use single quotes in there, as some shells,
! 1045: # such as our DU 5.0 friend, will then `close' the trap.
! 1046: trap 'exit_status=$?
! 1047: # Save into config.log some information that might help in debugging.
! 1048: {
! 1049: echo
! 1050:
! 1051: cat <<\_ASBOX
! 1052: ## ---------------- ##
! 1053: ## Cache variables. ##
! 1054: ## ---------------- ##
! 1055: _ASBOX
! 1056: echo
! 1057: # The following way of writing the cache mishandles newlines in values,
! 1058: {
! 1059: (set) 2>&1 |
! 1060: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
! 1061: *ac_space=\ *)
! 1062: sed -n \
! 1063: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
! 1064: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
! 1065: ;;
! 1066: *)
! 1067: sed -n \
! 1068: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
! 1069: ;;
! 1070: esac;
! 1071: }
! 1072: echo
! 1073:
! 1074: cat <<\_ASBOX
! 1075: ## ----------------- ##
! 1076: ## Output variables. ##
! 1077: ## ----------------- ##
! 1078: _ASBOX
! 1079: echo
! 1080: for ac_var in $ac_subst_vars
! 1081: do
! 1082: eval ac_val=$`echo $ac_var`
! 1083: echo "$ac_var='"'"'$ac_val'"'"'"
! 1084: done | sort
! 1085: echo
! 1086:
! 1087: if test -n "$ac_subst_files"; then
! 1088: cat <<\_ASBOX
! 1089: ## ------------- ##
! 1090: ## Output files. ##
! 1091: ## ------------- ##
! 1092: _ASBOX
! 1093: echo
! 1094: for ac_var in $ac_subst_files
! 1095: do
! 1096: eval ac_val=$`echo $ac_var`
! 1097: echo "$ac_var='"'"'$ac_val'"'"'"
! 1098: done | sort
! 1099: echo
! 1100: fi
! 1101:
! 1102: if test -s confdefs.h; then
! 1103: cat <<\_ASBOX
! 1104: ## ----------- ##
! 1105: ## confdefs.h. ##
! 1106: ## ----------- ##
! 1107: _ASBOX
! 1108: echo
! 1109: sed "/^$/d" confdefs.h | sort
! 1110: echo
! 1111: fi
! 1112: test "$ac_signal" != 0 &&
! 1113: echo "$as_me: caught signal $ac_signal"
! 1114: echo "$as_me: exit $exit_status"
! 1115: } >&5
! 1116: rm -f core core.* *.core &&
! 1117: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
! 1118: exit $exit_status
! 1119: ' 0
! 1120: for ac_signal in 1 2 13 15; do
! 1121: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
! 1122: done
! 1123: ac_signal=0
! 1124:
! 1125: # confdefs.h avoids OS command line length limits that DEFS can exceed.
! 1126: rm -rf conftest* confdefs.h
! 1127: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
! 1128: echo >confdefs.h
! 1129:
! 1130: # Predefined preprocessor variables.
! 1131:
! 1132: cat >>confdefs.h <<_ACEOF
! 1133: #define PACKAGE_NAME "$PACKAGE_NAME"
! 1134: _ACEOF
! 1135:
! 1136:
! 1137: cat >>confdefs.h <<_ACEOF
! 1138: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
! 1139: _ACEOF
! 1140:
! 1141:
! 1142: cat >>confdefs.h <<_ACEOF
! 1143: #define PACKAGE_VERSION "$PACKAGE_VERSION"
! 1144: _ACEOF
! 1145:
1.1 paf 1146:
1.2 ! paf 1147: cat >>confdefs.h <<_ACEOF
! 1148: #define PACKAGE_STRING "$PACKAGE_STRING"
! 1149: _ACEOF
! 1150:
! 1151:
! 1152: cat >>confdefs.h <<_ACEOF
! 1153: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
! 1154: _ACEOF
! 1155:
! 1156:
! 1157: # Let the site file select an alternate cache file if it wants to.
1.1 paf 1158: # Prefer explicitly selected file to automatically selected ones.
1159: if test -z "$CONFIG_SITE"; then
1160: if test "x$prefix" != xNONE; then
1161: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1162: else
1163: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1164: fi
1165: fi
1166: for ac_site_file in $CONFIG_SITE; do
1167: if test -r "$ac_site_file"; then
1.2 ! paf 1168: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
! 1169: echo "$as_me: loading site script $ac_site_file" >&6;}
! 1170: sed 's/^/| /' "$ac_site_file" >&5
1.1 paf 1171: . "$ac_site_file"
1172: fi
1173: done
1174:
1175: if test -r "$cache_file"; then
1.2 ! paf 1176: # Some versions of bash will fail to source /dev/null (special
! 1177: # files actually), so we avoid doing that.
! 1178: if test -f "$cache_file"; then
! 1179: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
! 1180: echo "$as_me: loading cache $cache_file" >&6;}
! 1181: case $cache_file in
! 1182: [\\/]* | ?:[\\/]* ) . $cache_file;;
! 1183: *) . ./$cache_file;;
! 1184: esac
! 1185: fi
1.1 paf 1186: else
1.2 ! paf 1187: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
! 1188: echo "$as_me: creating cache $cache_file" >&6;}
! 1189: >$cache_file
! 1190: fi
! 1191:
! 1192: # Check that the precious variables saved in the cache have kept the same
! 1193: # value.
! 1194: ac_cache_corrupted=false
! 1195: for ac_var in `(set) 2>&1 |
! 1196: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
! 1197: eval ac_old_set=\$ac_cv_env_${ac_var}_set
! 1198: eval ac_new_set=\$ac_env_${ac_var}_set
! 1199: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
! 1200: eval ac_new_val="\$ac_env_${ac_var}_value"
! 1201: case $ac_old_set,$ac_new_set in
! 1202: set,)
! 1203: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
! 1204: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
! 1205: ac_cache_corrupted=: ;;
! 1206: ,set)
! 1207: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
! 1208: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
! 1209: ac_cache_corrupted=: ;;
! 1210: ,);;
! 1211: *)
! 1212: if test "x$ac_old_val" != "x$ac_new_val"; then
! 1213: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
! 1214: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
! 1215: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
! 1216: echo "$as_me: former value: $ac_old_val" >&2;}
! 1217: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
! 1218: echo "$as_me: current value: $ac_new_val" >&2;}
! 1219: ac_cache_corrupted=:
! 1220: fi;;
! 1221: esac
! 1222: # Pass precious variables to config.status.
! 1223: if test "$ac_new_set" = set; then
! 1224: case $ac_new_val in
! 1225: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
! 1226: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
! 1227: *) ac_arg=$ac_var=$ac_new_val ;;
! 1228: esac
! 1229: case " $ac_configure_args " in
! 1230: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
! 1231: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
! 1232: esac
! 1233: fi
! 1234: done
! 1235: if $ac_cache_corrupted; then
! 1236: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
! 1237: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
! 1238: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
! 1239: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
! 1240: { (exit 1); exit 1; }; }
1.1 paf 1241: fi
1242:
1243: ac_ext=c
1244: ac_cpp='$CPP $CPPFLAGS'
1.2 ! paf 1245: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 1246: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 1247: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 1248:
! 1249:
! 1250:
! 1251:
! 1252:
! 1253:
! 1254:
! 1255:
! 1256:
! 1257:
! 1258:
! 1259:
! 1260:
! 1261:
! 1262:
! 1263:
! 1264:
1.1 paf 1265:
1266:
1267:
1268: enable_ltdl_install=yes
1269:
1.2 ! paf 1270: am__api_version="1.7"
1.1 paf 1271: ac_aux_dir=
1272: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1273: if test -f $ac_dir/install-sh; then
1274: ac_aux_dir=$ac_dir
1275: ac_install_sh="$ac_aux_dir/install-sh -c"
1276: break
1277: elif test -f $ac_dir/install.sh; then
1278: ac_aux_dir=$ac_dir
1279: ac_install_sh="$ac_aux_dir/install.sh -c"
1280: break
1.2 ! paf 1281: elif test -f $ac_dir/shtool; then
! 1282: ac_aux_dir=$ac_dir
! 1283: ac_install_sh="$ac_aux_dir/shtool install -c"
! 1284: break
1.1 paf 1285: fi
1286: done
1287: if test -z "$ac_aux_dir"; then
1.2 ! paf 1288: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
! 1289: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
! 1290: { (exit 1); exit 1; }; }
! 1291: fi
! 1292: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
! 1293: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
! 1294: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1.1 paf 1295:
1296: # Find a good install program. We prefer a C program (faster),
1297: # so one script is as good as another. But avoid the broken or
1298: # incompatible versions:
1299: # SysV /etc/install, /usr/sbin/install
1300: # SunOS /usr/etc/install
1301: # IRIX /sbin/install
1302: # AIX /bin/install
1.2 ! paf 1303: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 paf 1304: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1305: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1306: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1307: # ./install, which can be erroneously created by make from ./install.sh.
1.2 ! paf 1308: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
! 1309: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 paf 1310: if test -z "$INSTALL"; then
1.2 ! paf 1311: if test "${ac_cv_path_install+set}" = set; then
! 1312: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 1313: else
1.2 ! paf 1314: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 1315: for as_dir in $PATH
! 1316: do
! 1317: IFS=$as_save_IFS
! 1318: test -z "$as_dir" && as_dir=.
! 1319: # Account for people who put trailing slashes in PATH elements.
! 1320: case $as_dir/ in
! 1321: ./ | .// | /cC/* | \
! 1322: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
! 1323: /usr/ucb/* ) ;;
! 1324: *)
! 1325: # OSF1 and SCO ODT 3.0 have their own names for install.
! 1326: # Don't use installbsd from OSF since it installs stuff as root
! 1327: # by default.
! 1328: for ac_prog in ginstall scoinst install; do
! 1329: for ac_exec_ext in '' $ac_executable_extensions; do
! 1330: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
! 1331: if test $ac_prog = install &&
! 1332: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
! 1333: # AIX install. It has an incompatible calling convention.
! 1334: :
! 1335: elif test $ac_prog = install &&
! 1336: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
! 1337: # program-specific install script used by HP pwplus--don't use.
! 1338: :
! 1339: else
! 1340: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
! 1341: break 3
! 1342: fi
! 1343: fi
1.1 paf 1344: done
1.2 ! paf 1345: done
! 1346: ;;
! 1347: esac
! 1348: done
! 1349:
1.1 paf 1350:
1351: fi
1352: if test "${ac_cv_path_install+set}" = set; then
1.2 ! paf 1353: INSTALL=$ac_cv_path_install
1.1 paf 1354: else
1355: # As a last resort, use the slow shell script. We don't cache a
1356: # path for INSTALL within a source directory, because that will
1357: # break other packages using the cache if that directory is
1358: # removed, or if the path is relative.
1.2 ! paf 1359: INSTALL=$ac_install_sh
1.1 paf 1360: fi
1361: fi
1.2 ! paf 1362: echo "$as_me:$LINENO: result: $INSTALL" >&5
! 1363: echo "${ECHO_T}$INSTALL" >&6
1.1 paf 1364:
1365: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1366: # It thinks the first close brace ends the variable substitution.
1367: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1368:
1.2 ! paf 1369: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 paf 1370:
1371: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1372:
1.2 ! paf 1373: echo "$as_me:$LINENO: checking whether build environment is sane" >&5
! 1374: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1.1 paf 1375: # Just in case
1376: sleep 1
1.2 ! paf 1377: echo timestamp > conftest.file
1.1 paf 1378: # Do `set' in a subshell so we don't clobber the current shell's
1379: # arguments. Must try -L first in case configure is actually a
1380: # symlink; some systems play weird games with the mod time of symlinks
1381: # (eg FreeBSD returns the mod time of the symlink's containing
1382: # directory).
1383: if (
1.2 ! paf 1384: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1.1 paf 1385: if test "$*" = "X"; then
1386: # -L didn't work.
1.2 ! paf 1387: set X `ls -t $srcdir/configure conftest.file`
1.1 paf 1388: fi
1.2 ! paf 1389: rm -f conftest.file
! 1390: if test "$*" != "X $srcdir/configure conftest.file" \
! 1391: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 paf 1392:
1393: # If neither matched, then we have a broken ls. This can happen
1394: # if, for instance, CONFIG_SHELL is bash and it inherits a
1395: # broken ls alias from the environment. This has actually
1396: # happened. Such a system could not be considered "sane".
1.2 ! paf 1397: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
! 1398: alias in your environment" >&5
! 1399: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
! 1400: alias in your environment" >&2;}
! 1401: { (exit 1); exit 1; }; }
1.1 paf 1402: fi
1403:
1.2 ! paf 1404: test "$2" = conftest.file
1.1 paf 1405: )
1406: then
1407: # Ok.
1408: :
1409: else
1.2 ! paf 1410: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
! 1411: Check your system clock" >&5
! 1412: echo "$as_me: error: newly created file is older than distributed files!
! 1413: Check your system clock" >&2;}
! 1414: { (exit 1); exit 1; }; }
1.1 paf 1415: fi
1.2 ! paf 1416: echo "$as_me:$LINENO: result: yes" >&5
! 1417: echo "${ECHO_T}yes" >&6
1.1 paf 1418: test "$program_prefix" != NONE &&
1.2 ! paf 1419: program_transform_name="s,^,$program_prefix,;$program_transform_name"
1.1 paf 1420: # Use a double $ so make ignores it.
1421: test "$program_suffix" != NONE &&
1.2 ! paf 1422: program_transform_name="s,\$,$program_suffix,;$program_transform_name"
! 1423: # Double any \ or $. echo might interpret backslashes.
! 1424: # By default was `s,x,x', remove it if useless.
! 1425: cat <<\_ACEOF >conftest.sed
! 1426: s/[\\$]/&&/g;s/;s,x,x,$//
! 1427: _ACEOF
! 1428: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
! 1429: rm conftest.sed
! 1430:
! 1431:
! 1432: # expand $ac_aux_dir to an absolute path
! 1433: am_aux_dir=`cd $ac_aux_dir && pwd`
! 1434:
! 1435: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
! 1436: # Use eval to expand $SHELL
! 1437: if eval "$MISSING --run true"; then
! 1438: am_missing_run="$MISSING --run "
! 1439: else
! 1440: am_missing_run=
! 1441: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
! 1442: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
! 1443: fi
1.1 paf 1444:
1.2 ! paf 1445: for ac_prog in gawk mawk nawk awk
! 1446: do
! 1447: # Extract the first word of "$ac_prog", so it can be a program name with args.
! 1448: set dummy $ac_prog; ac_word=$2
! 1449: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 1450: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 1451: if test "${ac_cv_prog_AWK+set}" = set; then
! 1452: echo $ECHO_N "(cached) $ECHO_C" >&6
! 1453: else
! 1454: if test -n "$AWK"; then
! 1455: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1.1 paf 1456: else
1.2 ! paf 1457: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 1458: for as_dir in $PATH
! 1459: do
! 1460: IFS=$as_save_IFS
! 1461: test -z "$as_dir" && as_dir=.
! 1462: for ac_exec_ext in '' $ac_executable_extensions; do
! 1463: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 1464: ac_cv_prog_AWK="$ac_prog"
! 1465: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 1466: break 2
! 1467: fi
! 1468: done
! 1469: done
! 1470:
! 1471: fi
! 1472: fi
! 1473: AWK=$ac_cv_prog_AWK
! 1474: if test -n "$AWK"; then
! 1475: echo "$as_me:$LINENO: result: $AWK" >&5
! 1476: echo "${ECHO_T}$AWK" >&6
! 1477: else
! 1478: echo "$as_me:$LINENO: result: no" >&5
! 1479: echo "${ECHO_T}no" >&6
! 1480: fi
! 1481:
! 1482: test -n "$AWK" && break
! 1483: done
! 1484:
! 1485: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
! 1486: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
! 1487: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
! 1488: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
! 1489: echo $ECHO_N "(cached) $ECHO_C" >&6
! 1490: else
! 1491: cat >conftest.make <<\_ACEOF
1.1 paf 1492: all:
1.2 ! paf 1493: @echo 'ac_maketemp="$(MAKE)"'
! 1494: _ACEOF
1.1 paf 1495: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.2 ! paf 1496: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1.1 paf 1497: if test -n "$ac_maketemp"; then
1498: eval ac_cv_prog_make_${ac_make}_set=yes
1499: else
1500: eval ac_cv_prog_make_${ac_make}_set=no
1501: fi
1.2 ! paf 1502: rm -f conftest.make
1.1 paf 1503: fi
1504: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1.2 ! paf 1505: echo "$as_me:$LINENO: result: yes" >&5
! 1506: echo "${ECHO_T}yes" >&6
1.1 paf 1507: SET_MAKE=
1508: else
1.2 ! paf 1509: echo "$as_me:$LINENO: result: no" >&5
! 1510: echo "${ECHO_T}no" >&6
1.1 paf 1511: SET_MAKE="MAKE=${MAKE-make}"
1512: fi
1513:
1.2 ! paf 1514: # test to see if srcdir already configured
! 1515: if test "`cd $srcdir && pwd`" != "`pwd`" &&
! 1516: test -f $srcdir/config.status; then
! 1517: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
! 1518: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
! 1519: { (exit 1); exit 1; }; }
! 1520: fi
! 1521:
! 1522: # test whether we have cygpath
! 1523: if test -z "$CYGPATH_W"; then
! 1524: if (cygpath --version) >/dev/null 2>/dev/null; then
! 1525: CYGPATH_W='cygpath -w'
! 1526: else
! 1527: CYGPATH_W=echo
! 1528: fi
! 1529: fi
! 1530:
! 1531:
! 1532: # Define the identity of the package.
! 1533: PACKAGE=libltdl
! 1534: VERSION=1.0
! 1535:
! 1536:
! 1537: # Some tools Automake needs.
! 1538:
! 1539: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
! 1540:
1.1 paf 1541:
1.2 ! paf 1542: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1.1 paf 1543:
1544:
1.2 ! paf 1545: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
! 1546:
! 1547:
! 1548: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
! 1549:
! 1550:
! 1551: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
! 1552:
1.1 paf 1553:
1.2 ! paf 1554: AMTAR=${AMTAR-"${am_missing_run}tar"}
1.1 paf 1555:
1.2 ! paf 1556: install_sh=${install_sh-"$am_aux_dir/install-sh"}
1.1 paf 1557:
1.2 ! paf 1558: # Installed binaries are usually stripped using `strip' when the user
! 1559: # run `make install-strip'. However `strip' might not be the right
! 1560: # tool to use in cross-compilation environments, therefore Automake
! 1561: # will honor the `STRIP' environment variable to overrule this program.
! 1562: if test "$cross_compiling" != no; then
! 1563: if test -n "$ac_tool_prefix"; then
! 1564: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
! 1565: set dummy ${ac_tool_prefix}strip; ac_word=$2
! 1566: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 1567: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 1568: if test "${ac_cv_prog_STRIP+set}" = set; then
! 1569: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 1570: else
1.2 ! paf 1571: if test -n "$STRIP"; then
! 1572: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
! 1573: else
! 1574: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 1575: for as_dir in $PATH
! 1576: do
! 1577: IFS=$as_save_IFS
! 1578: test -z "$as_dir" && as_dir=.
! 1579: for ac_exec_ext in '' $ac_executable_extensions; do
! 1580: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 1581: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
! 1582: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 1583: break 2
! 1584: fi
! 1585: done
! 1586: done
! 1587:
! 1588: fi
! 1589: fi
! 1590: STRIP=$ac_cv_prog_STRIP
! 1591: if test -n "$STRIP"; then
! 1592: echo "$as_me:$LINENO: result: $STRIP" >&5
! 1593: echo "${ECHO_T}$STRIP" >&6
! 1594: else
! 1595: echo "$as_me:$LINENO: result: no" >&5
! 1596: echo "${ECHO_T}no" >&6
1.1 paf 1597: fi
1598:
1.2 ! paf 1599: fi
! 1600: if test -z "$ac_cv_prog_STRIP"; then
! 1601: ac_ct_STRIP=$STRIP
! 1602: # Extract the first word of "strip", so it can be a program name with args.
! 1603: set dummy strip; ac_word=$2
! 1604: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 1605: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 1606: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
! 1607: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 1608: else
1.2 ! paf 1609: if test -n "$ac_ct_STRIP"; then
! 1610: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
! 1611: else
! 1612: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 1613: for as_dir in $PATH
! 1614: do
! 1615: IFS=$as_save_IFS
! 1616: test -z "$as_dir" && as_dir=.
! 1617: for ac_exec_ext in '' $ac_executable_extensions; do
! 1618: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 1619: ac_cv_prog_ac_ct_STRIP="strip"
! 1620: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 1621: break 2
! 1622: fi
! 1623: done
! 1624: done
! 1625:
! 1626: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1.1 paf 1627: fi
1.2 ! paf 1628: fi
! 1629: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
! 1630: if test -n "$ac_ct_STRIP"; then
! 1631: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
! 1632: echo "${ECHO_T}$ac_ct_STRIP" >&6
1.1 paf 1633: else
1.2 ! paf 1634: echo "$as_me:$LINENO: result: no" >&5
! 1635: echo "${ECHO_T}no" >&6
1.1 paf 1636: fi
1637:
1.2 ! paf 1638: STRIP=$ac_ct_STRIP
1.1 paf 1639: else
1.2 ! paf 1640: STRIP="$ac_cv_prog_STRIP"
1.1 paf 1641: fi
1642:
1643: fi
1.2 ! paf 1644: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
! 1645:
! 1646: # We need awk for the "check" target. The system "awk" is bad on
! 1647: # some platforms.
! 1648:
! 1649:
! 1650:
! 1651:
1.1 paf 1652:
1653:
1654:
1655:
1656:
1.2 ! paf 1657:
! 1658:
! 1659:
! 1660:
! 1661: ac_config_headers="$ac_config_headers config_auto.h"
! 1662:
! 1663: echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
! 1664: echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1.1 paf 1665: # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1666: if test "${enable_maintainer_mode+set}" = set; then
1667: enableval="$enable_maintainer_mode"
1668: USE_MAINTAINER_MODE=$enableval
1669: else
1670: USE_MAINTAINER_MODE=no
1.2 ! paf 1671: fi;
! 1672: echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
! 1673: echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1.1 paf 1674:
1675:
1676: if test $USE_MAINTAINER_MODE = yes; then
1677: MAINTAINER_MODE_TRUE=
1678: MAINTAINER_MODE_FALSE='#'
1679: else
1680: MAINTAINER_MODE_TRUE='#'
1681: MAINTAINER_MODE_FALSE=
1682: fi
1.2 ! paf 1683:
1.1 paf 1684: MAINT=$MAINTAINER_MODE_TRUE
1685:
1686:
1.2 ! paf 1687:
! 1688: ac_ext=c
! 1689: ac_cpp='$CPP $CPPFLAGS'
! 1690: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 1691: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 1692: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 1693: if test -n "$ac_tool_prefix"; then
! 1694: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
! 1695: set dummy ${ac_tool_prefix}gcc; ac_word=$2
! 1696: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 1697: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 1698: if test "${ac_cv_prog_CC+set}" = set; then
! 1699: echo $ECHO_N "(cached) $ECHO_C" >&6
! 1700: else
! 1701: if test -n "$CC"; then
! 1702: ac_cv_prog_CC="$CC" # Let the user override the test.
! 1703: else
! 1704: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 1705: for as_dir in $PATH
! 1706: do
! 1707: IFS=$as_save_IFS
! 1708: test -z "$as_dir" && as_dir=.
! 1709: for ac_exec_ext in '' $ac_executable_extensions; do
! 1710: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 1711: ac_cv_prog_CC="${ac_tool_prefix}gcc"
! 1712: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 1713: break 2
! 1714: fi
! 1715: done
! 1716: done
! 1717:
! 1718: fi
! 1719: fi
! 1720: CC=$ac_cv_prog_CC
! 1721: if test -n "$CC"; then
! 1722: echo "$as_me:$LINENO: result: $CC" >&5
! 1723: echo "${ECHO_T}$CC" >&6
! 1724: else
! 1725: echo "$as_me:$LINENO: result: no" >&5
! 1726: echo "${ECHO_T}no" >&6
! 1727: fi
! 1728:
! 1729: fi
! 1730: if test -z "$ac_cv_prog_CC"; then
! 1731: ac_ct_CC=$CC
! 1732: # Extract the first word of "gcc", so it can be a program name with args.
1.1 paf 1733: set dummy gcc; ac_word=$2
1.2 ! paf 1734: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 1735: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 1736: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
! 1737: echo $ECHO_N "(cached) $ECHO_C" >&6
! 1738: else
! 1739: if test -n "$ac_ct_CC"; then
! 1740: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
! 1741: else
! 1742: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 1743: for as_dir in $PATH
! 1744: do
! 1745: IFS=$as_save_IFS
! 1746: test -z "$as_dir" && as_dir=.
! 1747: for ac_exec_ext in '' $ac_executable_extensions; do
! 1748: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 1749: ac_cv_prog_ac_ct_CC="gcc"
! 1750: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 1751: break 2
! 1752: fi
! 1753: done
! 1754: done
! 1755:
! 1756: fi
! 1757: fi
! 1758: ac_ct_CC=$ac_cv_prog_ac_ct_CC
! 1759: if test -n "$ac_ct_CC"; then
! 1760: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
! 1761: echo "${ECHO_T}$ac_ct_CC" >&6
! 1762: else
! 1763: echo "$as_me:$LINENO: result: no" >&5
! 1764: echo "${ECHO_T}no" >&6
! 1765: fi
! 1766:
! 1767: CC=$ac_ct_CC
! 1768: else
! 1769: CC="$ac_cv_prog_CC"
! 1770: fi
! 1771:
! 1772: if test -z "$CC"; then
! 1773: if test -n "$ac_tool_prefix"; then
! 1774: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
! 1775: set dummy ${ac_tool_prefix}cc; ac_word=$2
! 1776: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 1777: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 1778: if test "${ac_cv_prog_CC+set}" = set; then
! 1779: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 1780: else
1781: if test -n "$CC"; then
1782: ac_cv_prog_CC="$CC" # Let the user override the test.
1783: else
1.2 ! paf 1784: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 1785: for as_dir in $PATH
! 1786: do
! 1787: IFS=$as_save_IFS
! 1788: test -z "$as_dir" && as_dir=.
! 1789: for ac_exec_ext in '' $ac_executable_extensions; do
! 1790: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 1791: ac_cv_prog_CC="${ac_tool_prefix}cc"
! 1792: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 1793: break 2
! 1794: fi
! 1795: done
! 1796: done
! 1797:
1.1 paf 1798: fi
1799: fi
1.2 ! paf 1800: CC=$ac_cv_prog_CC
1.1 paf 1801: if test -n "$CC"; then
1.2 ! paf 1802: echo "$as_me:$LINENO: result: $CC" >&5
! 1803: echo "${ECHO_T}$CC" >&6
1.1 paf 1804: else
1.2 ! paf 1805: echo "$as_me:$LINENO: result: no" >&5
! 1806: echo "${ECHO_T}no" >&6
! 1807: fi
! 1808:
1.1 paf 1809: fi
1.2 ! paf 1810: if test -z "$ac_cv_prog_CC"; then
! 1811: ac_ct_CC=$CC
! 1812: # Extract the first word of "cc", so it can be a program name with args.
! 1813: set dummy cc; ac_word=$2
! 1814: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 1815: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 1816: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
! 1817: echo $ECHO_N "(cached) $ECHO_C" >&6
! 1818: else
! 1819: if test -n "$ac_ct_CC"; then
! 1820: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
! 1821: else
! 1822: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 1823: for as_dir in $PATH
! 1824: do
! 1825: IFS=$as_save_IFS
! 1826: test -z "$as_dir" && as_dir=.
! 1827: for ac_exec_ext in '' $ac_executable_extensions; do
! 1828: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 1829: ac_cv_prog_ac_ct_CC="cc"
! 1830: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 1831: break 2
! 1832: fi
! 1833: done
! 1834: done
1.1 paf 1835:
1.2 ! paf 1836: fi
! 1837: fi
! 1838: ac_ct_CC=$ac_cv_prog_ac_ct_CC
! 1839: if test -n "$ac_ct_CC"; then
! 1840: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
! 1841: echo "${ECHO_T}$ac_ct_CC" >&6
! 1842: else
! 1843: echo "$as_me:$LINENO: result: no" >&5
! 1844: echo "${ECHO_T}no" >&6
! 1845: fi
! 1846:
! 1847: CC=$ac_ct_CC
! 1848: else
! 1849: CC="$ac_cv_prog_CC"
! 1850: fi
! 1851:
! 1852: fi
1.1 paf 1853: if test -z "$CC"; then
1854: # Extract the first word of "cc", so it can be a program name with args.
1855: set dummy cc; ac_word=$2
1.2 ! paf 1856: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 1857: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 1858: if test "${ac_cv_prog_CC+set}" = set; then
! 1859: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 1860: else
1861: if test -n "$CC"; then
1862: ac_cv_prog_CC="$CC" # Let the user override the test.
1863: else
1864: ac_prog_rejected=no
1.2 ! paf 1865: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 1866: for as_dir in $PATH
! 1867: do
! 1868: IFS=$as_save_IFS
! 1869: test -z "$as_dir" && as_dir=.
! 1870: for ac_exec_ext in '' $ac_executable_extensions; do
! 1871: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 1872: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
! 1873: ac_prog_rejected=yes
! 1874: continue
! 1875: fi
! 1876: ac_cv_prog_CC="cc"
! 1877: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 1878: break 2
! 1879: fi
! 1880: done
! 1881: done
! 1882:
1.1 paf 1883: if test $ac_prog_rejected = yes; then
1884: # We found a bogon in the path, so make sure we never use it.
1885: set dummy $ac_cv_prog_CC
1886: shift
1.2 ! paf 1887: if test $# != 0; then
1.1 paf 1888: # We chose a different compiler from the bogus one.
1889: # However, it has the same basename, so the bogon will be chosen
1890: # first if we set CC to just the basename; use the full file name.
1891: shift
1.2 ! paf 1892: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1 paf 1893: fi
1894: fi
1895: fi
1896: fi
1.2 ! paf 1897: CC=$ac_cv_prog_CC
1.1 paf 1898: if test -n "$CC"; then
1.2 ! paf 1899: echo "$as_me:$LINENO: result: $CC" >&5
! 1900: echo "${ECHO_T}$CC" >&6
1.1 paf 1901: else
1.2 ! paf 1902: echo "$as_me:$LINENO: result: no" >&5
! 1903: echo "${ECHO_T}no" >&6
1.1 paf 1904: fi
1905:
1.2 ! paf 1906: fi
! 1907: if test -z "$CC"; then
! 1908: if test -n "$ac_tool_prefix"; then
! 1909: for ac_prog in cl
! 1910: do
! 1911: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
! 1912: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
! 1913: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 1914: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 1915: if test "${ac_cv_prog_CC+set}" = set; then
! 1916: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 1917: else
1918: if test -n "$CC"; then
1919: ac_cv_prog_CC="$CC" # Let the user override the test.
1920: else
1.2 ! paf 1921: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 1922: for as_dir in $PATH
! 1923: do
! 1924: IFS=$as_save_IFS
! 1925: test -z "$as_dir" && as_dir=.
! 1926: for ac_exec_ext in '' $ac_executable_extensions; do
! 1927: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 1928: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
! 1929: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 1930: break 2
! 1931: fi
! 1932: done
! 1933: done
! 1934:
1.1 paf 1935: fi
1936: fi
1.2 ! paf 1937: CC=$ac_cv_prog_CC
1.1 paf 1938: if test -n "$CC"; then
1.2 ! paf 1939: echo "$as_me:$LINENO: result: $CC" >&5
! 1940: echo "${ECHO_T}$CC" >&6
1.1 paf 1941: else
1.2 ! paf 1942: echo "$as_me:$LINENO: result: no" >&5
! 1943: echo "${ECHO_T}no" >&6
! 1944: fi
! 1945:
! 1946: test -n "$CC" && break
! 1947: done
1.1 paf 1948: fi
1.2 ! paf 1949: if test -z "$CC"; then
! 1950: ac_ct_CC=$CC
! 1951: for ac_prog in cl
! 1952: do
! 1953: # Extract the first word of "$ac_prog", so it can be a program name with args.
! 1954: set dummy $ac_prog; ac_word=$2
! 1955: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 1956: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 1957: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
! 1958: echo $ECHO_N "(cached) $ECHO_C" >&6
! 1959: else
! 1960: if test -n "$ac_ct_CC"; then
! 1961: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
! 1962: else
! 1963: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 1964: for as_dir in $PATH
! 1965: do
! 1966: IFS=$as_save_IFS
! 1967: test -z "$as_dir" && as_dir=.
! 1968: for ac_exec_ext in '' $ac_executable_extensions; do
! 1969: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 1970: ac_cv_prog_ac_ct_CC="$ac_prog"
! 1971: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 1972: break 2
1.1 paf 1973: fi
1.2 ! paf 1974: done
! 1975: done
! 1976:
! 1977: fi
! 1978: fi
! 1979: ac_ct_CC=$ac_cv_prog_ac_ct_CC
! 1980: if test -n "$ac_ct_CC"; then
! 1981: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
! 1982: echo "${ECHO_T}$ac_ct_CC" >&6
! 1983: else
! 1984: echo "$as_me:$LINENO: result: no" >&5
! 1985: echo "${ECHO_T}no" >&6
! 1986: fi
! 1987:
! 1988: test -n "$ac_ct_CC" && break
! 1989: done
! 1990:
! 1991: CC=$ac_ct_CC
! 1992: fi
! 1993:
1.1 paf 1994: fi
1995:
1996:
1.2 ! paf 1997: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
! 1998: See \`config.log' for more details." >&5
! 1999: echo "$as_me: error: no acceptable C compiler found in \$PATH
! 2000: See \`config.log' for more details." >&2;}
! 2001: { (exit 1); exit 1; }; }
! 2002:
! 2003: # Provide some information about the compiler.
! 2004: echo "$as_me:$LINENO:" \
! 2005: "checking for C compiler version" >&5
! 2006: ac_compiler=`set X $ac_compile; echo $2`
! 2007: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
! 2008: (eval $ac_compiler --version </dev/null >&5) 2>&5
! 2009: ac_status=$?
! 2010: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2011: (exit $ac_status); }
! 2012: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
! 2013: (eval $ac_compiler -v </dev/null >&5) 2>&5
! 2014: ac_status=$?
! 2015: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2016: (exit $ac_status); }
! 2017: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
! 2018: (eval $ac_compiler -V </dev/null >&5) 2>&5
! 2019: ac_status=$?
! 2020: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2021: (exit $ac_status); }
! 2022:
! 2023: cat >conftest.$ac_ext <<_ACEOF
! 2024: #line $LINENO "configure"
! 2025: /* confdefs.h. */
! 2026: _ACEOF
! 2027: cat confdefs.h >>conftest.$ac_ext
! 2028: cat >>conftest.$ac_ext <<_ACEOF
! 2029: /* end confdefs.h. */
1.1 paf 2030:
1.2 ! paf 2031: int
! 2032: main ()
! 2033: {
1.1 paf 2034:
1.2 ! paf 2035: ;
! 2036: return 0;
! 2037: }
! 2038: _ACEOF
! 2039: ac_clean_files_save=$ac_clean_files
! 2040: ac_clean_files="$ac_clean_files a.out a.exe b.out"
! 2041: # Try to create an executable without -o first, disregard a.out.
! 2042: # It will help us diagnose broken compilers, and finding out an intuition
! 2043: # of exeext.
! 2044: echo "$as_me:$LINENO: checking for C compiler default output" >&5
! 2045: echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
! 2046: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
! 2047: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
! 2048: (eval $ac_link_default) 2>&5
! 2049: ac_status=$?
! 2050: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2051: (exit $ac_status); }; then
! 2052: # Find the output, starting from the most likely. This scheme is
! 2053: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
! 2054: # resort.
! 2055:
! 2056: # Be careful to initialize this variable, since it used to be cached.
! 2057: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
! 2058: ac_cv_exeext=
! 2059: # b.out is created by i960 compilers.
! 2060: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
! 2061: do
! 2062: test -f "$ac_file" || continue
! 2063: case $ac_file in
! 2064: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
! 2065: ;;
! 2066: conftest.$ac_ext )
! 2067: # This is the source file.
! 2068: ;;
! 2069: [ab].out )
! 2070: # We found the default executable, but exeext='' is most
! 2071: # certainly right.
! 2072: break;;
! 2073: *.* )
! 2074: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
! 2075: # FIXME: I believe we export ac_cv_exeext for Libtool,
! 2076: # but it would be cool to find out if it's true. Does anybody
! 2077: # maintain Libtool? --akim.
! 2078: export ac_cv_exeext
! 2079: break;;
! 2080: * )
! 2081: break;;
! 2082: esac
! 2083: done
! 2084: else
! 2085: echo "$as_me: failed program was:" >&5
! 2086: sed 's/^/| /' conftest.$ac_ext >&5
1.1 paf 2087:
1.2 ! paf 2088: { { echo "$as_me:$LINENO: error: C compiler cannot create executables
! 2089: See \`config.log' for more details." >&5
! 2090: echo "$as_me: error: C compiler cannot create executables
! 2091: See \`config.log' for more details." >&2;}
! 2092: { (exit 77); exit 77; }; }
! 2093: fi
! 2094:
! 2095: ac_exeext=$ac_cv_exeext
! 2096: echo "$as_me:$LINENO: result: $ac_file" >&5
! 2097: echo "${ECHO_T}$ac_file" >&6
! 2098:
! 2099: # Check the compiler produces executables we can run. If not, either
! 2100: # the compiler is broken, or we cross compile.
! 2101: echo "$as_me:$LINENO: checking whether the C compiler works" >&5
! 2102: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
! 2103: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
! 2104: # If not cross compiling, check that we can run a simple program.
! 2105: if test "$cross_compiling" != yes; then
! 2106: if { ac_try='./$ac_file'
! 2107: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 2108: (eval $ac_try) 2>&5
! 2109: ac_status=$?
! 2110: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2111: (exit $ac_status); }; }; then
! 2112: cross_compiling=no
1.1 paf 2113: else
1.2 ! paf 2114: if test "$cross_compiling" = maybe; then
! 2115: cross_compiling=yes
! 2116: else
! 2117: { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
! 2118: If you meant to cross compile, use \`--host'.
! 2119: See \`config.log' for more details." >&5
! 2120: echo "$as_me: error: cannot run C compiled programs.
! 2121: If you meant to cross compile, use \`--host'.
! 2122: See \`config.log' for more details." >&2;}
! 2123: { (exit 1); exit 1; }; }
! 2124: fi
1.1 paf 2125: fi
2126: fi
1.2 ! paf 2127: echo "$as_me:$LINENO: result: yes" >&5
! 2128: echo "${ECHO_T}yes" >&6
! 2129:
! 2130: rm -f a.out a.exe conftest$ac_cv_exeext b.out
! 2131: ac_clean_files=$ac_clean_files_save
! 2132: # Check the compiler produces executables we can run. If not, either
! 2133: # the compiler is broken, or we cross compile.
! 2134: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
! 2135: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
! 2136: echo "$as_me:$LINENO: result: $cross_compiling" >&5
! 2137: echo "${ECHO_T}$cross_compiling" >&6
! 2138:
! 2139: echo "$as_me:$LINENO: checking for suffix of executables" >&5
! 2140: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
! 2141: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 2142: (eval $ac_link) 2>&5
! 2143: ac_status=$?
! 2144: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2145: (exit $ac_status); }; then
! 2146: # If both `conftest.exe' and `conftest' are `present' (well, observable)
! 2147: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
! 2148: # work properly (i.e., refer to `conftest.exe'), while it won't with
! 2149: # `rm'.
! 2150: for ac_file in conftest.exe conftest conftest.*; do
! 2151: test -f "$ac_file" || continue
! 2152: case $ac_file in
! 2153: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
! 2154: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
! 2155: export ac_cv_exeext
! 2156: break;;
! 2157: * ) break;;
! 2158: esac
! 2159: done
1.1 paf 2160: else
1.2 ! paf 2161: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
! 2162: See \`config.log' for more details." >&5
! 2163: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
! 2164: See \`config.log' for more details." >&2;}
! 2165: { (exit 1); exit 1; }; }
! 2166: fi
! 2167:
! 2168: rm -f conftest$ac_cv_exeext
! 2169: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
! 2170: echo "${ECHO_T}$ac_cv_exeext" >&6
! 2171:
! 2172: rm -f conftest.$ac_ext
! 2173: EXEEXT=$ac_cv_exeext
! 2174: ac_exeext=$EXEEXT
! 2175: echo "$as_me:$LINENO: checking for suffix of object files" >&5
! 2176: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
! 2177: if test "${ac_cv_objext+set}" = set; then
! 2178: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2179: else
! 2180: cat >conftest.$ac_ext <<_ACEOF
! 2181: #line $LINENO "configure"
! 2182: /* confdefs.h. */
! 2183: _ACEOF
! 2184: cat confdefs.h >>conftest.$ac_ext
! 2185: cat >>conftest.$ac_ext <<_ACEOF
! 2186: /* end confdefs.h. */
1.1 paf 2187:
1.2 ! paf 2188: int
! 2189: main ()
! 2190: {
1.1 paf 2191:
1.2 ! paf 2192: ;
! 2193: return 0;
! 2194: }
! 2195: _ACEOF
! 2196: rm -f conftest.o conftest.obj
! 2197: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 2198: (eval $ac_compile) 2>&5
! 2199: ac_status=$?
! 2200: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2201: (exit $ac_status); }; then
! 2202: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
! 2203: case $ac_file in
! 2204: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
! 2205: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
! 2206: break;;
! 2207: esac
! 2208: done
1.1 paf 2209: else
1.2 ! paf 2210: echo "$as_me: failed program was:" >&5
! 2211: sed 's/^/| /' conftest.$ac_ext >&5
! 2212:
! 2213: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
! 2214: See \`config.log' for more details." >&5
! 2215: echo "$as_me: error: cannot compute suffix of object files: cannot compile
! 2216: See \`config.log' for more details." >&2;}
! 2217: { (exit 1); exit 1; }; }
! 2218: fi
! 2219:
! 2220: rm -f conftest.$ac_cv_objext conftest.$ac_ext
! 2221: fi
! 2222: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
! 2223: echo "${ECHO_T}$ac_cv_objext" >&6
! 2224: OBJEXT=$ac_cv_objext
! 2225: ac_objext=$OBJEXT
! 2226: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
! 2227: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
! 2228: if test "${ac_cv_c_compiler_gnu+set}" = set; then
! 2229: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2230: else
! 2231: cat >conftest.$ac_ext <<_ACEOF
! 2232: #line $LINENO "configure"
! 2233: /* confdefs.h. */
! 2234: _ACEOF
! 2235: cat confdefs.h >>conftest.$ac_ext
! 2236: cat >>conftest.$ac_ext <<_ACEOF
! 2237: /* end confdefs.h. */
! 2238:
! 2239: int
! 2240: main ()
! 2241: {
! 2242: #ifndef __GNUC__
! 2243: choke me
! 2244: #endif
! 2245:
! 2246: ;
! 2247: return 0;
! 2248: }
! 2249: _ACEOF
! 2250: rm -f conftest.$ac_objext
! 2251: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 2252: (eval $ac_compile) 2>&5
! 2253: ac_status=$?
! 2254: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2255: (exit $ac_status); } &&
! 2256: { ac_try='test -s conftest.$ac_objext'
! 2257: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 2258: (eval $ac_try) 2>&5
! 2259: ac_status=$?
! 2260: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2261: (exit $ac_status); }; }; then
! 2262: ac_compiler_gnu=yes
! 2263: else
! 2264: echo "$as_me: failed program was:" >&5
! 2265: sed 's/^/| /' conftest.$ac_ext >&5
! 2266:
! 2267: ac_compiler_gnu=no
! 2268: fi
! 2269: rm -f conftest.$ac_objext conftest.$ac_ext
! 2270: ac_cv_c_compiler_gnu=$ac_compiler_gnu
! 2271:
! 2272: fi
! 2273: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
! 2274: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
! 2275: GCC=`test $ac_compiler_gnu = yes && echo yes`
! 2276: ac_test_CFLAGS=${CFLAGS+set}
! 2277: ac_save_CFLAGS=$CFLAGS
! 2278: CFLAGS="-g"
! 2279: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
! 2280: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
! 2281: if test "${ac_cv_prog_cc_g+set}" = set; then
! 2282: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2283: else
! 2284: cat >conftest.$ac_ext <<_ACEOF
! 2285: #line $LINENO "configure"
! 2286: /* confdefs.h. */
! 2287: _ACEOF
! 2288: cat confdefs.h >>conftest.$ac_ext
! 2289: cat >>conftest.$ac_ext <<_ACEOF
! 2290: /* end confdefs.h. */
! 2291:
! 2292: int
! 2293: main ()
! 2294: {
1.1 paf 2295:
1.2 ! paf 2296: ;
! 2297: return 0;
! 2298: }
! 2299: _ACEOF
! 2300: rm -f conftest.$ac_objext
! 2301: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 2302: (eval $ac_compile) 2>&5
! 2303: ac_status=$?
! 2304: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2305: (exit $ac_status); } &&
! 2306: { ac_try='test -s conftest.$ac_objext'
! 2307: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 2308: (eval $ac_try) 2>&5
! 2309: ac_status=$?
! 2310: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2311: (exit $ac_status); }; }; then
1.1 paf 2312: ac_cv_prog_cc_g=yes
2313: else
1.2 ! paf 2314: echo "$as_me: failed program was:" >&5
! 2315: sed 's/^/| /' conftest.$ac_ext >&5
! 2316:
! 2317: ac_cv_prog_cc_g=no
1.1 paf 2318: fi
1.2 ! paf 2319: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 paf 2320: fi
1.2 ! paf 2321: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
! 2322: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1.1 paf 2323: if test "$ac_test_CFLAGS" = set; then
1.2 ! paf 2324: CFLAGS=$ac_save_CFLAGS
1.1 paf 2325: elif test $ac_cv_prog_cc_g = yes; then
2326: if test "$GCC" = yes; then
2327: CFLAGS="-g -O2"
2328: else
2329: CFLAGS="-g"
2330: fi
2331: else
2332: if test "$GCC" = yes; then
2333: CFLAGS="-O2"
2334: else
2335: CFLAGS=
2336: fi
2337: fi
1.2 ! paf 2338: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
! 2339: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
! 2340: if test "${ac_cv_prog_cc_stdc+set}" = set; then
! 2341: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2342: else
! 2343: ac_cv_prog_cc_stdc=no
! 2344: ac_save_CC=$CC
! 2345: cat >conftest.$ac_ext <<_ACEOF
! 2346: #line $LINENO "configure"
! 2347: /* confdefs.h. */
! 2348: _ACEOF
! 2349: cat confdefs.h >>conftest.$ac_ext
! 2350: cat >>conftest.$ac_ext <<_ACEOF
! 2351: /* end confdefs.h. */
! 2352: #include <stdarg.h>
! 2353: #include <stdio.h>
! 2354: #include <sys/types.h>
! 2355: #include <sys/stat.h>
! 2356: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
! 2357: struct buf { int x; };
! 2358: FILE * (*rcsopen) (struct buf *, struct stat *, int);
! 2359: static char *e (p, i)
! 2360: char **p;
! 2361: int i;
! 2362: {
! 2363: return p[i];
! 2364: }
! 2365: static char *f (char * (*g) (char **, int), char **p, ...)
! 2366: {
! 2367: char *s;
! 2368: va_list v;
! 2369: va_start (v,p);
! 2370: s = g (p, va_arg (v,int));
! 2371: va_end (v);
! 2372: return s;
! 2373: }
! 2374: int test (int i, double x);
! 2375: struct s1 {int (*f) (int a);};
! 2376: struct s2 {int (*f) (double a);};
! 2377: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
! 2378: int argc;
! 2379: char **argv;
! 2380: int
! 2381: main ()
! 2382: {
! 2383: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
! 2384: ;
! 2385: return 0;
! 2386: }
! 2387: _ACEOF
! 2388: # Don't try gcc -ansi; that turns off useful extensions and
! 2389: # breaks some systems' header files.
! 2390: # AIX -qlanglvl=ansi
! 2391: # Ultrix and OSF/1 -std1
! 2392: # HP-UX 10.20 and later -Ae
! 2393: # HP-UX older versions -Aa -D_HPUX_SOURCE
! 2394: # SVR4 -Xc -D__EXTENSIONS__
! 2395: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
! 2396: do
! 2397: CC="$ac_save_CC $ac_arg"
! 2398: rm -f conftest.$ac_objext
! 2399: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 2400: (eval $ac_compile) 2>&5
! 2401: ac_status=$?
! 2402: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2403: (exit $ac_status); } &&
! 2404: { ac_try='test -s conftest.$ac_objext'
! 2405: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 2406: (eval $ac_try) 2>&5
! 2407: ac_status=$?
! 2408: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2409: (exit $ac_status); }; }; then
! 2410: ac_cv_prog_cc_stdc=$ac_arg
! 2411: break
! 2412: else
! 2413: echo "$as_me: failed program was:" >&5
! 2414: sed 's/^/| /' conftest.$ac_ext >&5
1.1 paf 2415:
1.2 ! paf 2416: fi
! 2417: rm -f conftest.$ac_objext
! 2418: done
! 2419: rm -f conftest.$ac_ext conftest.$ac_objext
! 2420: CC=$ac_save_CC
1.1 paf 2421:
1.2 ! paf 2422: fi
1.1 paf 2423:
1.2 ! paf 2424: case "x$ac_cv_prog_cc_stdc" in
! 2425: x|xno)
! 2426: echo "$as_me:$LINENO: result: none needed" >&5
! 2427: echo "${ECHO_T}none needed" >&6 ;;
! 2428: *)
! 2429: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
! 2430: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
! 2431: CC="$CC $ac_cv_prog_cc_stdc" ;;
! 2432: esac
! 2433:
! 2434: # Some people use a C++ compiler to compile C. Since we use `exit',
! 2435: # in C++ we need to declare it. In case someone uses the same compiler
! 2436: # for both compiling C and C++ we need to have the C++ compiler decide
! 2437: # the declaration of exit, since it's the most demanding environment.
! 2438: cat >conftest.$ac_ext <<_ACEOF
! 2439: #ifndef __cplusplus
! 2440: choke me
! 2441: #endif
! 2442: _ACEOF
! 2443: rm -f conftest.$ac_objext
! 2444: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 2445: (eval $ac_compile) 2>&5
! 2446: ac_status=$?
! 2447: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2448: (exit $ac_status); } &&
! 2449: { ac_try='test -s conftest.$ac_objext'
! 2450: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 2451: (eval $ac_try) 2>&5
! 2452: ac_status=$?
! 2453: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2454: (exit $ac_status); }; }; then
! 2455: for ac_declaration in \
! 2456: ''\
! 2457: '#include <stdlib.h>' \
! 2458: 'extern "C" void std::exit (int) throw (); using std::exit;' \
! 2459: 'extern "C" void std::exit (int); using std::exit;' \
! 2460: 'extern "C" void exit (int) throw ();' \
! 2461: 'extern "C" void exit (int);' \
! 2462: 'void exit (int);'
! 2463: do
! 2464: cat >conftest.$ac_ext <<_ACEOF
! 2465: #line $LINENO "configure"
! 2466: /* confdefs.h. */
! 2467: _ACEOF
! 2468: cat confdefs.h >>conftest.$ac_ext
! 2469: cat >>conftest.$ac_ext <<_ACEOF
! 2470: /* end confdefs.h. */
! 2471: #include <stdlib.h>
! 2472: $ac_declaration
! 2473: int
! 2474: main ()
! 2475: {
! 2476: exit (42);
! 2477: ;
! 2478: return 0;
1.1 paf 2479: }
1.2 ! paf 2480: _ACEOF
! 2481: rm -f conftest.$ac_objext
! 2482: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 2483: (eval $ac_compile) 2>&5
! 2484: ac_status=$?
! 2485: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2486: (exit $ac_status); } &&
! 2487: { ac_try='test -s conftest.$ac_objext'
! 2488: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 2489: (eval $ac_try) 2>&5
! 2490: ac_status=$?
! 2491: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2492: (exit $ac_status); }; }; then
! 2493: :
! 2494: else
! 2495: echo "$as_me: failed program was:" >&5
! 2496: sed 's/^/| /' conftest.$ac_ext >&5
! 2497:
! 2498: continue
! 2499: fi
! 2500: rm -f conftest.$ac_objext conftest.$ac_ext
! 2501: cat >conftest.$ac_ext <<_ACEOF
! 2502: #line $LINENO "configure"
! 2503: /* confdefs.h. */
! 2504: _ACEOF
! 2505: cat confdefs.h >>conftest.$ac_ext
! 2506: cat >>conftest.$ac_ext <<_ACEOF
! 2507: /* end confdefs.h. */
! 2508: $ac_declaration
! 2509: int
! 2510: main ()
! 2511: {
! 2512: exit (42);
! 2513: ;
! 2514: return 0;
1.1 paf 2515: }
1.2 ! paf 2516: _ACEOF
! 2517: rm -f conftest.$ac_objext
! 2518: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 2519: (eval $ac_compile) 2>&5
! 2520: ac_status=$?
! 2521: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2522: (exit $ac_status); } &&
! 2523: { ac_try='test -s conftest.$ac_objext'
! 2524: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 2525: (eval $ac_try) 2>&5
! 2526: ac_status=$?
! 2527: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2528: (exit $ac_status); }; }; then
! 2529: break
! 2530: else
! 2531: echo "$as_me: failed program was:" >&5
! 2532: sed 's/^/| /' conftest.$ac_ext >&5
! 2533:
! 2534: fi
! 2535: rm -f conftest.$ac_objext conftest.$ac_ext
! 2536: done
! 2537: rm -f conftest*
! 2538: if test -n "$ac_declaration"; then
! 2539: echo '#ifdef __cplusplus' >>confdefs.h
! 2540: echo $ac_declaration >>confdefs.h
! 2541: echo '#endif' >>confdefs.h
! 2542: fi
! 2543:
! 2544: else
! 2545: echo "$as_me: failed program was:" >&5
! 2546: sed 's/^/| /' conftest.$ac_ext >&5
! 2547:
! 2548: fi
! 2549: rm -f conftest.$ac_objext conftest.$ac_ext
! 2550: ac_ext=c
! 2551: ac_cpp='$CPP $CPPFLAGS'
! 2552: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 2553: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 2554: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 2555: rm -f .deps 2>/dev/null
! 2556: mkdir .deps 2>/dev/null
! 2557: if test -d .deps; then
! 2558: DEPDIR=.deps
! 2559: else
! 2560: # MS-DOS does not allow filenames that begin with a dot.
! 2561: DEPDIR=_deps
! 2562: fi
! 2563: rmdir .deps 2>/dev/null
! 2564:
! 2565:
! 2566: ac_config_commands="$ac_config_commands depfiles"
! 2567:
! 2568:
! 2569: am_make=${MAKE-make}
! 2570: cat > confinc << 'END'
! 2571: doit:
! 2572: @echo done
! 2573: END
! 2574: # If we don't find an include directive, just comment out the code.
! 2575: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
! 2576: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
! 2577: am__include="#"
! 2578: am__quote=
! 2579: _am_result=none
! 2580: # First try GNU make style include.
! 2581: echo "include confinc" > confmf
! 2582: # We grep out `Entering directory' and `Leaving directory'
! 2583: # messages which can occur if `w' ends up in MAKEFLAGS.
! 2584: # In particular we don't look at `^make:' because GNU make might
! 2585: # be invoked under some other name (usually "gmake"), in which
! 2586: # case it prints its new name instead of `make'.
! 2587: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
! 2588: am__include=include
! 2589: am__quote=
! 2590: _am_result=GNU
! 2591: fi
! 2592: # Now try BSD make style include.
! 2593: if test "$am__include" = "#"; then
! 2594: echo '.include "confinc"' > confmf
! 2595: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
! 2596: am__include=.include
! 2597: am__quote="\""
! 2598: _am_result=BSD
! 2599: fi
! 2600: fi
! 2601:
! 2602:
! 2603: echo "$as_me:$LINENO: result: $_am_result" >&5
! 2604: echo "${ECHO_T}$_am_result" >&6
! 2605: rm -f confinc confmf
! 2606:
! 2607: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
! 2608: if test "${enable_dependency_tracking+set}" = set; then
! 2609: enableval="$enable_dependency_tracking"
! 2610:
! 2611: fi;
! 2612: if test "x$enable_dependency_tracking" != xno; then
! 2613: am_depcomp="$ac_aux_dir/depcomp"
! 2614: AMDEPBACKSLASH='\'
! 2615: fi
! 2616:
! 2617:
! 2618: if test "x$enable_dependency_tracking" != xno; then
! 2619: AMDEP_TRUE=
! 2620: AMDEP_FALSE='#'
! 2621: else
! 2622: AMDEP_TRUE='#'
! 2623: AMDEP_FALSE=
! 2624: fi
! 2625:
! 2626:
! 2627:
! 2628:
! 2629: depcc="$CC" am_compiler_list=
! 2630:
! 2631: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
! 2632: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
! 2633: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
! 2634: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2635: else
! 2636: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
! 2637: # We make a subdir and do the tests there. Otherwise we can end up
! 2638: # making bogus files that we don't know about and never remove. For
! 2639: # instance it was reported that on HP-UX the gcc test will end up
! 2640: # making a dummy file named `D' -- because `-MD' means `put the output
! 2641: # in D'.
! 2642: mkdir conftest.dir
! 2643: # Copy depcomp to subdir because otherwise we won't find it if we're
! 2644: # using a relative directory.
! 2645: cp "$am_depcomp" conftest.dir
! 2646: cd conftest.dir
! 2647:
! 2648: am_cv_CC_dependencies_compiler_type=none
! 2649: if test "$am_compiler_list" = ""; then
! 2650: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
! 2651: fi
! 2652: for depmode in $am_compiler_list; do
! 2653: # We need to recreate these files for each test, as the compiler may
! 2654: # overwrite some of them when testing with obscure command lines.
! 2655: # This happens at least with the AIX C compiler.
! 2656: echo '#include "conftest.h"' > conftest.c
! 2657: echo 'int i;' > conftest.h
! 2658: echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
! 2659:
! 2660: case $depmode in
! 2661: nosideeffect)
! 2662: # after this tag, mechanisms are not by side-effect, so they'll
! 2663: # only be used when explicitly requested
! 2664: if test "x$enable_dependency_tracking" = xyes; then
! 2665: continue
! 2666: else
! 2667: break
! 2668: fi
! 2669: ;;
! 2670: none) break ;;
! 2671: esac
! 2672: # We check with `-c' and `-o' for the sake of the "dashmstdout"
! 2673: # mode. It turns out that the SunPro C++ compiler does not properly
! 2674: # handle `-M -o', and we need to detect this.
! 2675: if depmode=$depmode \
! 2676: source=conftest.c object=conftest.o \
! 2677: depfile=conftest.Po tmpdepfile=conftest.TPo \
! 2678: $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
! 2679: grep conftest.h conftest.Po > /dev/null 2>&1 &&
! 2680: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
! 2681: am_cv_CC_dependencies_compiler_type=$depmode
! 2682: break
! 2683: fi
! 2684: done
! 2685:
! 2686: cd ..
! 2687: rm -rf conftest.dir
! 2688: else
! 2689: am_cv_CC_dependencies_compiler_type=none
! 2690: fi
! 2691:
! 2692: fi
! 2693: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
! 2694: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
! 2695: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
! 2696:
! 2697:
1.1 paf 2698:
1.2 ! paf 2699: if
! 2700: test "x$enable_dependency_tracking" != xno \
! 2701: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
! 2702: am__fastdepCC_TRUE=
! 2703: am__fastdepCC_FALSE='#'
! 2704: else
! 2705: am__fastdepCC_TRUE='#'
! 2706: am__fastdepCC_FALSE=
! 2707: fi
! 2708:
! 2709:
! 2710:
! 2711: echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
! 2712: echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
! 2713: if test "${ac_cv_c_const+set}" = set; then
! 2714: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2715: else
! 2716: cat >conftest.$ac_ext <<_ACEOF
! 2717: #line $LINENO "configure"
! 2718: /* confdefs.h. */
! 2719: _ACEOF
! 2720: cat confdefs.h >>conftest.$ac_ext
! 2721: cat >>conftest.$ac_ext <<_ACEOF
! 2722: /* end confdefs.h. */
! 2723:
! 2724: int
! 2725: main ()
! 2726: {
! 2727: /* FIXME: Include the comments suggested by Paul. */
! 2728: #ifndef __cplusplus
! 2729: /* Ultrix mips cc rejects this. */
! 2730: typedef int charset[2];
! 2731: const charset x;
! 2732: /* SunOS 4.1.1 cc rejects this. */
! 2733: char const *const *ccp;
! 2734: char **p;
! 2735: /* NEC SVR4.0.2 mips cc rejects this. */
! 2736: struct point {int x, y;};
! 2737: static struct point const zero = {0,0};
! 2738: /* AIX XL C 1.02.0.0 rejects this.
! 2739: It does not let you subtract one const X* pointer from another in
! 2740: an arm of an if-expression whose if-part is not a constant
! 2741: expression */
! 2742: const char *g = "string";
! 2743: ccp = &g + (g ? g-g : 0);
! 2744: /* HPUX 7.0 cc rejects these. */
! 2745: ++ccp;
! 2746: p = (char**) ccp;
! 2747: ccp = (char const *const *) p;
! 2748: { /* SCO 3.2v4 cc rejects this. */
! 2749: char *t;
! 2750: char const *s = 0 ? (char *) 0 : (char const *) 0;
! 2751:
! 2752: *t++ = 0;
! 2753: }
! 2754: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
! 2755: int x[] = {25, 17};
! 2756: const int *foo = &x[0];
! 2757: ++foo;
! 2758: }
! 2759: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
! 2760: typedef const int *iptr;
! 2761: iptr p = 0;
! 2762: ++p;
! 2763: }
! 2764: { /* AIX XL C 1.02.0.0 rejects this saying
! 2765: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
! 2766: struct s { int j; const int *ap[3]; };
! 2767: struct s *b; b->j = 5;
! 2768: }
! 2769: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
! 2770: const int foo = 10;
! 2771: }
! 2772: #endif
! 2773:
! 2774: ;
! 2775: return 0;
! 2776: }
! 2777: _ACEOF
! 2778: rm -f conftest.$ac_objext
! 2779: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 2780: (eval $ac_compile) 2>&5
! 2781: ac_status=$?
! 2782: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2783: (exit $ac_status); } &&
! 2784: { ac_try='test -s conftest.$ac_objext'
! 2785: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 2786: (eval $ac_try) 2>&5
! 2787: ac_status=$?
! 2788: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2789: (exit $ac_status); }; }; then
1.1 paf 2790: ac_cv_c_const=yes
2791: else
1.2 ! paf 2792: echo "$as_me: failed program was:" >&5
! 2793: sed 's/^/| /' conftest.$ac_ext >&5
! 2794:
! 2795: ac_cv_c_const=no
1.1 paf 2796: fi
1.2 ! paf 2797: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 paf 2798: fi
1.2 ! paf 2799: echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
! 2800: echo "${ECHO_T}$ac_cv_c_const" >&6
! 2801: if test $ac_cv_c_const = no; then
1.1 paf 2802:
1.2 ! paf 2803: cat >>confdefs.h <<\_ACEOF
! 2804: #define const
! 2805: _ACEOF
1.1 paf 2806:
2807: fi
2808:
1.2 ! paf 2809: echo "$as_me:$LINENO: checking for inline" >&5
! 2810: echo $ECHO_N "checking for inline... $ECHO_C" >&6
! 2811: if test "${ac_cv_c_inline+set}" = set; then
! 2812: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 2813: else
2814: ac_cv_c_inline=no
2815: for ac_kw in inline __inline__ __inline; do
1.2 ! paf 2816: cat >conftest.$ac_ext <<_ACEOF
! 2817: #line $LINENO "configure"
! 2818: /* confdefs.h. */
! 2819: _ACEOF
! 2820: cat confdefs.h >>conftest.$ac_ext
! 2821: cat >>conftest.$ac_ext <<_ACEOF
! 2822: /* end confdefs.h. */
! 2823: #ifndef __cplusplus
! 2824: typedef int foo_t;
! 2825: static $ac_kw foo_t static_foo () {return 0; }
! 2826: $ac_kw foo_t foo () {return 0; }
! 2827: #endif
1.1 paf 2828:
1.2 ! paf 2829: _ACEOF
! 2830: rm -f conftest.$ac_objext
! 2831: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 2832: (eval $ac_compile) 2>&5
! 2833: ac_status=$?
! 2834: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2835: (exit $ac_status); } &&
! 2836: { ac_try='test -s conftest.$ac_objext'
! 2837: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 2838: (eval $ac_try) 2>&5
! 2839: ac_status=$?
! 2840: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2841: (exit $ac_status); }; }; then
1.1 paf 2842: ac_cv_c_inline=$ac_kw; break
2843: else
1.2 ! paf 2844: echo "$as_me: failed program was:" >&5
! 2845: sed 's/^/| /' conftest.$ac_ext >&5
! 2846:
1.1 paf 2847: fi
1.2 ! paf 2848: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 paf 2849: done
2850:
2851: fi
1.2 ! paf 2852: echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
! 2853: echo "${ECHO_T}$ac_cv_c_inline" >&6
! 2854: case $ac_cv_c_inline in
1.1 paf 2855: inline | yes) ;;
1.2 ! paf 2856: no)
! 2857: cat >>confdefs.h <<\_ACEOF
! 2858: #define inline
! 2859: _ACEOF
1.1 paf 2860: ;;
1.2 ! paf 2861: *) cat >>confdefs.h <<_ACEOF
1.1 paf 2862: #define inline $ac_cv_c_inline
1.2 ! paf 2863: _ACEOF
1.1 paf 2864: ;;
2865: esac
2866:
2867:
1.2 ! paf 2868: if test -n "$ac_tool_prefix"; then
! 2869: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
! 2870: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
! 2871: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2872: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 2873: if test "${ac_cv_prog_RANLIB+set}" = set; then
! 2874: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 2875: else
2876: if test -n "$RANLIB"; then
2877: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2878: else
1.2 ! paf 2879: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 2880: for as_dir in $PATH
! 2881: do
! 2882: IFS=$as_save_IFS
! 2883: test -z "$as_dir" && as_dir=.
! 2884: for ac_exec_ext in '' $ac_executable_extensions; do
! 2885: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 2886: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
! 2887: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 2888: break 2
! 2889: fi
! 2890: done
! 2891: done
! 2892:
1.1 paf 2893: fi
2894: fi
1.2 ! paf 2895: RANLIB=$ac_cv_prog_RANLIB
1.1 paf 2896: if test -n "$RANLIB"; then
1.2 ! paf 2897: echo "$as_me:$LINENO: result: $RANLIB" >&5
! 2898: echo "${ECHO_T}$RANLIB" >&6
1.1 paf 2899: else
1.2 ! paf 2900: echo "$as_me:$LINENO: result: no" >&5
! 2901: echo "${ECHO_T}no" >&6
1.1 paf 2902: fi
2903:
1.2 ! paf 2904: fi
! 2905: if test -z "$ac_cv_prog_RANLIB"; then
! 2906: ac_ct_RANLIB=$RANLIB
! 2907: # Extract the first word of "ranlib", so it can be a program name with args.
! 2908: set dummy ranlib; ac_word=$2
! 2909: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2910: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 2911: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
! 2912: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2913: else
! 2914: if test -n "$ac_ct_RANLIB"; then
! 2915: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
! 2916: else
! 2917: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 2918: for as_dir in $PATH
! 2919: do
! 2920: IFS=$as_save_IFS
! 2921: test -z "$as_dir" && as_dir=.
! 2922: for ac_exec_ext in '' $ac_executable_extensions; do
! 2923: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 2924: ac_cv_prog_ac_ct_RANLIB="ranlib"
! 2925: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 2926: break 2
! 2927: fi
! 2928: done
! 2929: done
1.1 paf 2930:
1.2 ! paf 2931: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
! 2932: fi
! 2933: fi
! 2934: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
! 2935: if test -n "$ac_ct_RANLIB"; then
! 2936: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
! 2937: echo "${ECHO_T}$ac_ct_RANLIB" >&6
! 2938: else
! 2939: echo "$as_me:$LINENO: result: no" >&5
! 2940: echo "${ECHO_T}no" >&6
! 2941: fi
! 2942:
! 2943: RANLIB=$ac_ct_RANLIB
! 2944: else
! 2945: RANLIB="$ac_cv_prog_RANLIB"
! 2946: fi
! 2947:
! 2948:
! 2949: echo "$as_me:$LINENO: checking which extension is used for shared libraries" >&5
! 2950: echo $ECHO_N "checking which extension is used for shared libraries... $ECHO_C" >&6
! 2951: if test "${libltdl_cv_shlibext+set}" = set; then
! 2952: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 2953: else
2954: (
2955: last=
2956: for spec in $library_names_spec; do
2957: last="$spec"
2958: done
2959:
2960: echo "$last" | sed 's/\[.*\]//;s/^[^.]*//;s/\$.*$//;s/\.$//' > conftest
2961:
2962: )
2963: libltdl_cv_shlibext=`cat conftest`
2964: rm -f conftest
2965:
2966: fi
1.2 ! paf 2967: echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
! 2968: echo "${ECHO_T}$libltdl_cv_shlibext" >&6
! 2969: if test -n "$libltdl_cv_shlibext"; then
1.1 paf 2970:
1.2 ! paf 2971: cat >>confdefs.h <<_ACEOF
1.1 paf 2972: #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
1.2 ! paf 2973: _ACEOF
! 2974:
! 2975: fi
! 2976:
! 2977: echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
! 2978: echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
! 2979: if test "${libltdl_cv_shlibpath_var+set}" = set; then
! 2980: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2981: else
! 2982: libltdl_cv_shlibpath_var="$shlibpath_var"
! 2983: fi
! 2984: echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
! 2985: echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
! 2986: if test -n "$libltdl_cv_shlibpath_var"; then
! 2987:
! 2988: cat >>confdefs.h <<_ACEOF
! 2989: #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
! 2990: _ACEOF
! 2991:
! 2992: fi
! 2993:
! 2994: echo "$as_me:$LINENO: checking for objdir" >&5
! 2995: echo $ECHO_N "checking for objdir... $ECHO_C" >&6
! 2996: if test "${libltdl_cv_objdir+set}" = set; then
! 2997: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2998: else
! 2999: libltdl_cv_objdir="$objdir"
! 3000: fi
! 3001: echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
! 3002: echo "${ECHO_T}$libltdl_cv_objdir" >&6
! 3003: test -z "$libltdl_cv_objdir" && libltdl_cv_objdir=".libs"
! 3004:
! 3005: cat >>confdefs.h <<_ACEOF
! 3006: #define LTDL_OBJDIR "$libltdl_cv_objdir/"
! 3007: _ACEOF
! 3008:
! 3009:
! 3010: ac_ext=c
! 3011: ac_cpp='$CPP $CPPFLAGS'
! 3012: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 3013: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 3014: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 3015: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
! 3016: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
! 3017: # On Suns, sometimes $CPP names a directory.
! 3018: if test -n "$CPP" && test -d "$CPP"; then
! 3019: CPP=
! 3020: fi
! 3021: if test -z "$CPP"; then
! 3022: if test "${ac_cv_prog_CPP+set}" = set; then
! 3023: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3024: else
! 3025: # Double quotes because CPP needs to be expanded
! 3026: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
! 3027: do
! 3028: ac_preproc_ok=false
! 3029: for ac_c_preproc_warn_flag in '' yes
! 3030: do
! 3031: # Use a header file that comes with gcc, so configuring glibc
! 3032: # with a fresh cross-compiler works.
! 3033: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 3034: # <limits.h> exists even on freestanding compilers.
! 3035: # On the NeXT, cc -E runs the code through the compiler's parser,
! 3036: # not just through cpp. "Syntax error" is here to catch this case.
! 3037: cat >conftest.$ac_ext <<_ACEOF
! 3038: #line $LINENO "configure"
! 3039: /* confdefs.h. */
! 3040: _ACEOF
! 3041: cat confdefs.h >>conftest.$ac_ext
! 3042: cat >>conftest.$ac_ext <<_ACEOF
! 3043: /* end confdefs.h. */
! 3044: #ifdef __STDC__
! 3045: # include <limits.h>
! 3046: #else
! 3047: # include <assert.h>
! 3048: #endif
! 3049: Syntax error
! 3050: _ACEOF
! 3051: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 3052: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 3053: ac_status=$?
! 3054: grep -v '^ *+' conftest.er1 >conftest.err
! 3055: rm -f conftest.er1
! 3056: cat conftest.err >&5
! 3057: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3058: (exit $ac_status); } >/dev/null; then
! 3059: if test -s conftest.err; then
! 3060: ac_cpp_err=$ac_c_preproc_warn_flag
! 3061: else
! 3062: ac_cpp_err=
! 3063: fi
! 3064: else
! 3065: ac_cpp_err=yes
! 3066: fi
! 3067: if test -z "$ac_cpp_err"; then
! 3068: :
! 3069: else
! 3070: echo "$as_me: failed program was:" >&5
! 3071: sed 's/^/| /' conftest.$ac_ext >&5
1.1 paf 3072:
1.2 ! paf 3073: # Broken: fails on valid input.
! 3074: continue
1.1 paf 3075: fi
1.2 ! paf 3076: rm -f conftest.err conftest.$ac_ext
1.1 paf 3077:
1.2 ! paf 3078: # OK, works on sane cases. Now check whether non-existent headers
! 3079: # can be detected and how.
! 3080: cat >conftest.$ac_ext <<_ACEOF
! 3081: #line $LINENO "configure"
! 3082: /* confdefs.h. */
! 3083: _ACEOF
! 3084: cat confdefs.h >>conftest.$ac_ext
! 3085: cat >>conftest.$ac_ext <<_ACEOF
! 3086: /* end confdefs.h. */
! 3087: #include <ac_nonexistent.h>
! 3088: _ACEOF
! 3089: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 3090: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 3091: ac_status=$?
! 3092: grep -v '^ *+' conftest.er1 >conftest.err
! 3093: rm -f conftest.er1
! 3094: cat conftest.err >&5
! 3095: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3096: (exit $ac_status); } >/dev/null; then
! 3097: if test -s conftest.err; then
! 3098: ac_cpp_err=$ac_c_preproc_warn_flag
! 3099: else
! 3100: ac_cpp_err=
! 3101: fi
1.1 paf 3102: else
1.2 ! paf 3103: ac_cpp_err=yes
1.1 paf 3104: fi
1.2 ! paf 3105: if test -z "$ac_cpp_err"; then
! 3106: # Broken: success on invalid input.
! 3107: continue
! 3108: else
! 3109: echo "$as_me: failed program was:" >&5
! 3110: sed 's/^/| /' conftest.$ac_ext >&5
1.1 paf 3111:
1.2 ! paf 3112: # Passes both tests.
! 3113: ac_preproc_ok=:
! 3114: break
1.1 paf 3115: fi
1.2 ! paf 3116: rm -f conftest.err conftest.$ac_ext
1.1 paf 3117:
1.2 ! paf 3118: done
! 3119: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
! 3120: rm -f conftest.err conftest.$ac_ext
! 3121: if $ac_preproc_ok; then
! 3122: break
1.1 paf 3123: fi
3124:
1.2 ! paf 3125: done
! 3126: ac_cv_prog_CPP=$CPP
1.1 paf 3127:
3128: fi
1.2 ! paf 3129: CPP=$ac_cv_prog_CPP
1.1 paf 3130: else
1.2 ! paf 3131: ac_cv_prog_CPP=$CPP
! 3132: fi
! 3133: echo "$as_me:$LINENO: result: $CPP" >&5
! 3134: echo "${ECHO_T}$CPP" >&6
! 3135: ac_preproc_ok=false
! 3136: for ac_c_preproc_warn_flag in '' yes
! 3137: do
! 3138: # Use a header file that comes with gcc, so configuring glibc
! 3139: # with a fresh cross-compiler works.
! 3140: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 3141: # <limits.h> exists even on freestanding compilers.
1.1 paf 3142: # On the NeXT, cc -E runs the code through the compiler's parser,
1.2 ! paf 3143: # not just through cpp. "Syntax error" is here to catch this case.
! 3144: cat >conftest.$ac_ext <<_ACEOF
! 3145: #line $LINENO "configure"
! 3146: /* confdefs.h. */
! 3147: _ACEOF
! 3148: cat confdefs.h >>conftest.$ac_ext
! 3149: cat >>conftest.$ac_ext <<_ACEOF
! 3150: /* end confdefs.h. */
! 3151: #ifdef __STDC__
! 3152: # include <limits.h>
! 3153: #else
! 3154: # include <assert.h>
! 3155: #endif
! 3156: Syntax error
! 3157: _ACEOF
! 3158: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 3159: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 3160: ac_status=$?
! 3161: grep -v '^ *+' conftest.er1 >conftest.err
! 3162: rm -f conftest.er1
! 3163: cat conftest.err >&5
! 3164: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3165: (exit $ac_status); } >/dev/null; then
! 3166: if test -s conftest.err; then
! 3167: ac_cpp_err=$ac_c_preproc_warn_flag
! 3168: else
! 3169: ac_cpp_err=
! 3170: fi
1.1 paf 3171: else
1.2 ! paf 3172: ac_cpp_err=yes
! 3173: fi
! 3174: if test -z "$ac_cpp_err"; then
1.1 paf 3175: :
3176: else
1.2 ! paf 3177: echo "$as_me: failed program was:" >&5
! 3178: sed 's/^/| /' conftest.$ac_ext >&5
! 3179:
! 3180: # Broken: fails on valid input.
! 3181: continue
! 3182: fi
! 3183: rm -f conftest.err conftest.$ac_ext
! 3184:
! 3185: # OK, works on sane cases. Now check whether non-existent headers
! 3186: # can be detected and how.
! 3187: cat >conftest.$ac_ext <<_ACEOF
! 3188: #line $LINENO "configure"
! 3189: /* confdefs.h. */
! 3190: _ACEOF
! 3191: cat confdefs.h >>conftest.$ac_ext
! 3192: cat >>conftest.$ac_ext <<_ACEOF
! 3193: /* end confdefs.h. */
! 3194: #include <ac_nonexistent.h>
! 3195: _ACEOF
! 3196: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 3197: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 3198: ac_status=$?
! 3199: grep -v '^ *+' conftest.er1 >conftest.err
! 3200: rm -f conftest.er1
! 3201: cat conftest.err >&5
! 3202: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3203: (exit $ac_status); } >/dev/null; then
! 3204: if test -s conftest.err; then
! 3205: ac_cpp_err=$ac_c_preproc_warn_flag
! 3206: else
! 3207: ac_cpp_err=
! 3208: fi
1.1 paf 3209: else
1.2 ! paf 3210: ac_cpp_err=yes
1.1 paf 3211: fi
1.2 ! paf 3212: if test -z "$ac_cpp_err"; then
! 3213: # Broken: success on invalid input.
! 3214: continue
! 3215: else
! 3216: echo "$as_me: failed program was:" >&5
! 3217: sed 's/^/| /' conftest.$ac_ext >&5
! 3218:
! 3219: # Passes both tests.
! 3220: ac_preproc_ok=:
! 3221: break
1.1 paf 3222: fi
1.2 ! paf 3223: rm -f conftest.err conftest.$ac_ext
! 3224:
! 3225: done
! 3226: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
! 3227: rm -f conftest.err conftest.$ac_ext
! 3228: if $ac_preproc_ok; then
! 3229: :
1.1 paf 3230: else
1.2 ! paf 3231: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
! 3232: See \`config.log' for more details." >&5
! 3233: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
! 3234: See \`config.log' for more details." >&2;}
! 3235: { (exit 1); exit 1; }; }
1.1 paf 3236: fi
3237:
1.2 ! paf 3238: ac_ext=c
! 3239: ac_cpp='$CPP $CPPFLAGS'
! 3240: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 3241: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 3242: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 3243:
! 3244:
! 3245: echo "$as_me:$LINENO: checking for egrep" >&5
! 3246: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
! 3247: if test "${ac_cv_prog_egrep+set}" = set; then
! 3248: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3249: else
! 3250: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
! 3251: then ac_cv_prog_egrep='grep -E'
! 3252: else ac_cv_prog_egrep='egrep'
! 3253: fi
! 3254: fi
! 3255: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
! 3256: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
! 3257: EGREP=$ac_cv_prog_egrep
! 3258:
! 3259:
! 3260: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
! 3261: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
! 3262: if test "${ac_cv_header_stdc+set}" = set; then
! 3263: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3264: else
! 3265: cat >conftest.$ac_ext <<_ACEOF
! 3266: #line $LINENO "configure"
! 3267: /* confdefs.h. */
! 3268: _ACEOF
! 3269: cat confdefs.h >>conftest.$ac_ext
! 3270: cat >>conftest.$ac_ext <<_ACEOF
! 3271: /* end confdefs.h. */
1.1 paf 3272: #include <stdlib.h>
3273: #include <stdarg.h>
3274: #include <string.h>
3275: #include <float.h>
1.2 ! paf 3276:
! 3277: int
! 3278: main ()
! 3279: {
! 3280:
! 3281: ;
! 3282: return 0;
! 3283: }
! 3284: _ACEOF
! 3285: rm -f conftest.$ac_objext
! 3286: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 3287: (eval $ac_compile) 2>&5
! 3288: ac_status=$?
! 3289: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3290: (exit $ac_status); } &&
! 3291: { ac_try='test -s conftest.$ac_objext'
! 3292: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 3293: (eval $ac_try) 2>&5
! 3294: ac_status=$?
! 3295: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3296: (exit $ac_status); }; }; then
1.1 paf 3297: ac_cv_header_stdc=yes
3298: else
1.2 ! paf 3299: echo "$as_me: failed program was:" >&5
! 3300: sed 's/^/| /' conftest.$ac_ext >&5
! 3301:
! 3302: ac_cv_header_stdc=no
1.1 paf 3303: fi
1.2 ! paf 3304: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 paf 3305:
3306: if test $ac_cv_header_stdc = yes; then
3307: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.2 ! paf 3308: cat >conftest.$ac_ext <<_ACEOF
! 3309: #line $LINENO "configure"
! 3310: /* confdefs.h. */
! 3311: _ACEOF
! 3312: cat confdefs.h >>conftest.$ac_ext
! 3313: cat >>conftest.$ac_ext <<_ACEOF
! 3314: /* end confdefs.h. */
1.1 paf 3315: #include <string.h>
1.2 ! paf 3316:
! 3317: _ACEOF
1.1 paf 3318: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.2 ! paf 3319: $EGREP "memchr" >/dev/null 2>&1; then
1.1 paf 3320: :
3321: else
3322: ac_cv_header_stdc=no
3323: fi
3324: rm -f conftest*
3325:
3326: fi
3327:
3328: if test $ac_cv_header_stdc = yes; then
3329: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.2 ! paf 3330: cat >conftest.$ac_ext <<_ACEOF
! 3331: #line $LINENO "configure"
! 3332: /* confdefs.h. */
! 3333: _ACEOF
! 3334: cat confdefs.h >>conftest.$ac_ext
! 3335: cat >>conftest.$ac_ext <<_ACEOF
! 3336: /* end confdefs.h. */
1.1 paf 3337: #include <stdlib.h>
1.2 ! paf 3338:
! 3339: _ACEOF
1.1 paf 3340: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.2 ! paf 3341: $EGREP "free" >/dev/null 2>&1; then
1.1 paf 3342: :
3343: else
3344: ac_cv_header_stdc=no
3345: fi
3346: rm -f conftest*
3347:
3348: fi
3349:
3350: if test $ac_cv_header_stdc = yes; then
3351: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.2 ! paf 3352: if test "$cross_compiling" = yes; then
1.1 paf 3353: :
3354: else
1.2 ! paf 3355: cat >conftest.$ac_ext <<_ACEOF
! 3356: #line $LINENO "configure"
! 3357: /* confdefs.h. */
! 3358: _ACEOF
! 3359: cat confdefs.h >>conftest.$ac_ext
! 3360: cat >>conftest.$ac_ext <<_ACEOF
! 3361: /* end confdefs.h. */
1.1 paf 3362: #include <ctype.h>
1.2 ! paf 3363: #if ((' ' & 0x0FF) == 0x020)
! 3364: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
! 3365: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
! 3366: #else
! 3367: # define ISLOWER(c) \
! 3368: (('a' <= (c) && (c) <= 'i') \
! 3369: || ('j' <= (c) && (c) <= 'r') \
! 3370: || ('s' <= (c) && (c) <= 'z'))
! 3371: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
! 3372: #endif
! 3373:
1.1 paf 3374: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.2 ! paf 3375: int
! 3376: main ()
! 3377: {
! 3378: int i;
! 3379: for (i = 0; i < 256; i++)
! 3380: if (XOR (islower (i), ISLOWER (i))
! 3381: || toupper (i) != TOUPPER (i))
! 3382: exit(2);
! 3383: exit (0);
! 3384: }
! 3385: _ACEOF
! 3386: rm -f conftest$ac_exeext
! 3387: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 3388: (eval $ac_link) 2>&5
! 3389: ac_status=$?
! 3390: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3391: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 3392: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 3393: (eval $ac_try) 2>&5
! 3394: ac_status=$?
! 3395: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3396: (exit $ac_status); }; }; then
1.1 paf 3397: :
3398: else
1.2 ! paf 3399: echo "$as_me: program exited with status $ac_status" >&5
! 3400: echo "$as_me: failed program was:" >&5
! 3401: sed 's/^/| /' conftest.$ac_ext >&5
! 3402:
! 3403: ( exit $ac_status )
! 3404: ac_cv_header_stdc=no
1.1 paf 3405: fi
1.2 ! paf 3406: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 paf 3407: fi
3408: fi
3409: fi
1.2 ! paf 3410: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
! 3411: echo "${ECHO_T}$ac_cv_header_stdc" >&6
! 3412: if test $ac_cv_header_stdc = yes; then
1.1 paf 3413:
1.2 ! paf 3414: cat >>confdefs.h <<\_ACEOF
1.1 paf 3415: #define STDC_HEADERS 1
1.2 ! paf 3416: _ACEOF
! 3417:
! 3418: fi
! 3419:
! 3420: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
! 3421:
! 3422:
! 3423:
! 3424:
! 3425:
! 3426:
! 3427:
! 3428:
! 3429:
! 3430: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
! 3431: inttypes.h stdint.h unistd.h
! 3432: do
! 3433: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 3434: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 3435: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 3436: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 3437: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3438: else
! 3439: cat >conftest.$ac_ext <<_ACEOF
! 3440: #line $LINENO "configure"
! 3441: /* confdefs.h. */
! 3442: _ACEOF
! 3443: cat confdefs.h >>conftest.$ac_ext
! 3444: cat >>conftest.$ac_ext <<_ACEOF
! 3445: /* end confdefs.h. */
! 3446: $ac_includes_default
! 3447:
! 3448: #include <$ac_header>
! 3449: _ACEOF
! 3450: rm -f conftest.$ac_objext
! 3451: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 3452: (eval $ac_compile) 2>&5
! 3453: ac_status=$?
! 3454: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3455: (exit $ac_status); } &&
! 3456: { ac_try='test -s conftest.$ac_objext'
! 3457: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 3458: (eval $ac_try) 2>&5
! 3459: ac_status=$?
! 3460: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3461: (exit $ac_status); }; }; then
! 3462: eval "$as_ac_Header=yes"
! 3463: else
! 3464: echo "$as_me: failed program was:" >&5
! 3465: sed 's/^/| /' conftest.$ac_ext >&5
! 3466:
! 3467: eval "$as_ac_Header=no"
! 3468: fi
! 3469: rm -f conftest.$ac_objext conftest.$ac_ext
! 3470: fi
! 3471: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 3472: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 3473: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 3474: cat >>confdefs.h <<_ACEOF
! 3475: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 3476: _ACEOF
1.1 paf 3477:
3478: fi
3479:
1.2 ! paf 3480: done
! 3481:
! 3482:
! 3483:
! 3484:
! 3485:
! 3486:
! 3487:
! 3488:
! 3489:
! 3490:
! 3491: for ac_header in malloc.h memory.h stdlib.h stdio.h ctype.h dlfcn.h dl.h dld.h
1.1 paf 3492: do
1.2 ! paf 3493: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 3494: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 3495: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 3496: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 3497: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 3498: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3499: fi
! 3500: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 3501: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 3502: else
! 3503: # Is the header compilable?
! 3504: echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 3505: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
! 3506: cat >conftest.$ac_ext <<_ACEOF
! 3507: #line $LINENO "configure"
! 3508: /* confdefs.h. */
! 3509: _ACEOF
! 3510: cat confdefs.h >>conftest.$ac_ext
! 3511: cat >>conftest.$ac_ext <<_ACEOF
! 3512: /* end confdefs.h. */
! 3513: $ac_includes_default
! 3514: #include <$ac_header>
! 3515: _ACEOF
! 3516: rm -f conftest.$ac_objext
! 3517: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 3518: (eval $ac_compile) 2>&5
! 3519: ac_status=$?
! 3520: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3521: (exit $ac_status); } &&
! 3522: { ac_try='test -s conftest.$ac_objext'
! 3523: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 3524: (eval $ac_try) 2>&5
! 3525: ac_status=$?
! 3526: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3527: (exit $ac_status); }; }; then
! 3528: ac_header_compiler=yes
! 3529: else
! 3530: echo "$as_me: failed program was:" >&5
! 3531: sed 's/^/| /' conftest.$ac_ext >&5
! 3532:
! 3533: ac_header_compiler=no
! 3534: fi
! 3535: rm -f conftest.$ac_objext conftest.$ac_ext
! 3536: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 3537: echo "${ECHO_T}$ac_header_compiler" >&6
! 3538:
! 3539: # Is the header present?
! 3540: echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 3541: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
! 3542: cat >conftest.$ac_ext <<_ACEOF
! 3543: #line $LINENO "configure"
! 3544: /* confdefs.h. */
! 3545: _ACEOF
! 3546: cat confdefs.h >>conftest.$ac_ext
! 3547: cat >>conftest.$ac_ext <<_ACEOF
! 3548: /* end confdefs.h. */
! 3549: #include <$ac_header>
! 3550: _ACEOF
! 3551: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 3552: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 3553: ac_status=$?
! 3554: grep -v '^ *+' conftest.er1 >conftest.err
! 3555: rm -f conftest.er1
! 3556: cat conftest.err >&5
! 3557: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3558: (exit $ac_status); } >/dev/null; then
! 3559: if test -s conftest.err; then
! 3560: ac_cpp_err=$ac_c_preproc_warn_flag
! 3561: else
! 3562: ac_cpp_err=
! 3563: fi
! 3564: else
! 3565: ac_cpp_err=yes
! 3566: fi
! 3567: if test -z "$ac_cpp_err"; then
! 3568: ac_header_preproc=yes
1.1 paf 3569: else
1.2 ! paf 3570: echo "$as_me: failed program was:" >&5
! 3571: sed 's/^/| /' conftest.$ac_ext >&5
! 3572:
! 3573: ac_header_preproc=no
! 3574: fi
! 3575: rm -f conftest.err conftest.$ac_ext
! 3576: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 3577: echo "${ECHO_T}$ac_header_preproc" >&6
! 3578:
! 3579: # So? What about this header?
! 3580: case $ac_header_compiler:$ac_header_preproc in
! 3581: yes:no )
! 3582: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 3583: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 3584: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 3585: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 3586: (
! 3587: cat <<\_ASBOX
! 3588: ## ------------------------------------ ##
! 3589: ## Report this to bug-autoconf@gnu.org. ##
! 3590: ## ------------------------------------ ##
! 3591: _ASBOX
! 3592: ) |
! 3593: sed "s/^/$as_me: WARNING: /" >&2
! 3594: ;;
! 3595: no:yes )
! 3596: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 3597: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 3598: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 3599: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 3600: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 3601: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 3602: (
! 3603: cat <<\_ASBOX
! 3604: ## ------------------------------------ ##
! 3605: ## Report this to bug-autoconf@gnu.org. ##
! 3606: ## ------------------------------------ ##
! 3607: _ASBOX
! 3608: ) |
! 3609: sed "s/^/$as_me: WARNING: /" >&2
! 3610: ;;
! 3611: esac
! 3612: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 3613: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 3614: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 3615: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 3616: else
1.2 ! paf 3617: eval "$as_ac_Header=$ac_header_preproc"
1.1 paf 3618: fi
1.2 ! paf 3619: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 3620: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 3621:
1.1 paf 3622: fi
1.2 ! paf 3623: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 3624: cat >>confdefs.h <<_ACEOF
! 3625: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 3626: _ACEOF
! 3627:
1.1 paf 3628: fi
1.2 ! paf 3629:
1.1 paf 3630: done
3631:
1.2 ! paf 3632:
! 3633:
! 3634: for ac_header in string.h strings.h
1.1 paf 3635: do
1.2 ! paf 3636: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 3637: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 3638: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 3639: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 3640: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 3641: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3642: fi
! 3643: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 3644: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 3645: else
! 3646: # Is the header compilable?
! 3647: echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 3648: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
! 3649: cat >conftest.$ac_ext <<_ACEOF
! 3650: #line $LINENO "configure"
! 3651: /* confdefs.h. */
! 3652: _ACEOF
! 3653: cat confdefs.h >>conftest.$ac_ext
! 3654: cat >>conftest.$ac_ext <<_ACEOF
! 3655: /* end confdefs.h. */
! 3656: $ac_includes_default
! 3657: #include <$ac_header>
! 3658: _ACEOF
! 3659: rm -f conftest.$ac_objext
! 3660: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 3661: (eval $ac_compile) 2>&5
! 3662: ac_status=$?
! 3663: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3664: (exit $ac_status); } &&
! 3665: { ac_try='test -s conftest.$ac_objext'
! 3666: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 3667: (eval $ac_try) 2>&5
! 3668: ac_status=$?
! 3669: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3670: (exit $ac_status); }; }; then
! 3671: ac_header_compiler=yes
! 3672: else
! 3673: echo "$as_me: failed program was:" >&5
! 3674: sed 's/^/| /' conftest.$ac_ext >&5
! 3675:
! 3676: ac_header_compiler=no
! 3677: fi
! 3678: rm -f conftest.$ac_objext conftest.$ac_ext
! 3679: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 3680: echo "${ECHO_T}$ac_header_compiler" >&6
! 3681:
! 3682: # Is the header present?
! 3683: echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 3684: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
! 3685: cat >conftest.$ac_ext <<_ACEOF
! 3686: #line $LINENO "configure"
! 3687: /* confdefs.h. */
! 3688: _ACEOF
! 3689: cat confdefs.h >>conftest.$ac_ext
! 3690: cat >>conftest.$ac_ext <<_ACEOF
! 3691: /* end confdefs.h. */
! 3692: #include <$ac_header>
! 3693: _ACEOF
! 3694: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 3695: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 3696: ac_status=$?
! 3697: grep -v '^ *+' conftest.er1 >conftest.err
! 3698: rm -f conftest.er1
! 3699: cat conftest.err >&5
! 3700: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3701: (exit $ac_status); } >/dev/null; then
! 3702: if test -s conftest.err; then
! 3703: ac_cpp_err=$ac_c_preproc_warn_flag
! 3704: else
! 3705: ac_cpp_err=
! 3706: fi
! 3707: else
! 3708: ac_cpp_err=yes
! 3709: fi
! 3710: if test -z "$ac_cpp_err"; then
! 3711: ac_header_preproc=yes
1.1 paf 3712: else
1.2 ! paf 3713: echo "$as_me: failed program was:" >&5
! 3714: sed 's/^/| /' conftest.$ac_ext >&5
! 3715:
! 3716: ac_header_preproc=no
! 3717: fi
! 3718: rm -f conftest.err conftest.$ac_ext
! 3719: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 3720: echo "${ECHO_T}$ac_header_preproc" >&6
! 3721:
! 3722: # So? What about this header?
! 3723: case $ac_header_compiler:$ac_header_preproc in
! 3724: yes:no )
! 3725: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 3726: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 3727: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 3728: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 3729: (
! 3730: cat <<\_ASBOX
! 3731: ## ------------------------------------ ##
! 3732: ## Report this to bug-autoconf@gnu.org. ##
! 3733: ## ------------------------------------ ##
! 3734: _ASBOX
! 3735: ) |
! 3736: sed "s/^/$as_me: WARNING: /" >&2
! 3737: ;;
! 3738: no:yes )
! 3739: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 3740: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 3741: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 3742: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 3743: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 3744: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 3745: (
! 3746: cat <<\_ASBOX
! 3747: ## ------------------------------------ ##
! 3748: ## Report this to bug-autoconf@gnu.org. ##
! 3749: ## ------------------------------------ ##
! 3750: _ASBOX
! 3751: ) |
! 3752: sed "s/^/$as_me: WARNING: /" >&2
! 3753: ;;
! 3754: esac
! 3755: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 3756: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 3757: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 3758: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 3759: else
1.2 ! paf 3760: eval "$as_ac_Header=$ac_header_preproc"
1.1 paf 3761: fi
1.2 ! paf 3762: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 3763: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 3764:
1.1 paf 3765: fi
1.2 ! paf 3766: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 3767: cat >>confdefs.h <<_ACEOF
! 3768: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 3769: _ACEOF
1.1 paf 3770: break
3771: fi
1.2 ! paf 3772:
1.1 paf 3773: done
3774:
1.2 ! paf 3775:
! 3776:
1.1 paf 3777: for ac_func in strchr index
3778: do
1.2 ! paf 3779: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 3780: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 3781: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 3782: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 3783: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3784: else
! 3785: cat >conftest.$ac_ext <<_ACEOF
! 3786: #line $LINENO "configure"
! 3787: /* confdefs.h. */
! 3788: _ACEOF
! 3789: cat confdefs.h >>conftest.$ac_ext
! 3790: cat >>conftest.$ac_ext <<_ACEOF
! 3791: /* end confdefs.h. */
1.1 paf 3792: /* System header to define __stub macros and hopefully few prototypes,
1.2 ! paf 3793: which can conflict with char $ac_func (); below.
! 3794: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 3795: <limits.h> exists even on freestanding compilers. */
! 3796: #ifdef __STDC__
! 3797: # include <limits.h>
! 3798: #else
! 3799: # include <assert.h>
! 3800: #endif
1.1 paf 3801: /* Override any gcc2 internal prototype to avoid an error. */
1.2 ! paf 3802: #ifdef __cplusplus
! 3803: extern "C"
! 3804: {
! 3805: #endif
1.1 paf 3806: /* We use char because int might match the return type of a gcc2
1.2 ! paf 3807: builtin and then its argument prototype would still apply. */
! 3808: char $ac_func ();
1.1 paf 3809: /* The GNU C library defines this for functions which it implements
3810: to always fail with ENOSYS. Some functions are actually named
3811: something starting with __ and the normal name is an alias. */
3812: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3813: choke me
3814: #else
1.2 ! paf 3815: char (*f) () = $ac_func;
! 3816: #endif
! 3817: #ifdef __cplusplus
! 3818: }
1.1 paf 3819: #endif
3820:
1.2 ! paf 3821: int
! 3822: main ()
! 3823: {
! 3824: return f != $ac_func;
! 3825: ;
! 3826: return 0;
! 3827: }
! 3828: _ACEOF
! 3829: rm -f conftest.$ac_objext conftest$ac_exeext
! 3830: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 3831: (eval $ac_link) 2>&5
! 3832: ac_status=$?
! 3833: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3834: (exit $ac_status); } &&
! 3835: { ac_try='test -s conftest$ac_exeext'
! 3836: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 3837: (eval $ac_try) 2>&5
! 3838: ac_status=$?
! 3839: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3840: (exit $ac_status); }; }; then
! 3841: eval "$as_ac_var=yes"
! 3842: else
! 3843: echo "$as_me: failed program was:" >&5
! 3844: sed 's/^/| /' conftest.$ac_ext >&5
! 3845:
! 3846: eval "$as_ac_var=no"
! 3847: fi
! 3848: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 3849: fi
! 3850: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 3851: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 3852: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 3853: cat >>confdefs.h <<_ACEOF
! 3854: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 3855: _ACEOF
1.1 paf 3856: break
3857: fi
3858: done
3859:
1.2 ! paf 3860:
! 3861:
1.1 paf 3862: for ac_func in strrchr rindex
3863: do
1.2 ! paf 3864: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 3865: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 3866: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 3867: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 3868: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3869: else
! 3870: cat >conftest.$ac_ext <<_ACEOF
! 3871: #line $LINENO "configure"
! 3872: /* confdefs.h. */
! 3873: _ACEOF
! 3874: cat confdefs.h >>conftest.$ac_ext
! 3875: cat >>conftest.$ac_ext <<_ACEOF
! 3876: /* end confdefs.h. */
1.1 paf 3877: /* System header to define __stub macros and hopefully few prototypes,
1.2 ! paf 3878: which can conflict with char $ac_func (); below.
! 3879: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 3880: <limits.h> exists even on freestanding compilers. */
! 3881: #ifdef __STDC__
! 3882: # include <limits.h>
! 3883: #else
! 3884: # include <assert.h>
! 3885: #endif
1.1 paf 3886: /* Override any gcc2 internal prototype to avoid an error. */
1.2 ! paf 3887: #ifdef __cplusplus
! 3888: extern "C"
! 3889: {
! 3890: #endif
1.1 paf 3891: /* We use char because int might match the return type of a gcc2
1.2 ! paf 3892: builtin and then its argument prototype would still apply. */
! 3893: char $ac_func ();
1.1 paf 3894: /* The GNU C library defines this for functions which it implements
3895: to always fail with ENOSYS. Some functions are actually named
3896: something starting with __ and the normal name is an alias. */
3897: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3898: choke me
3899: #else
1.2 ! paf 3900: char (*f) () = $ac_func;
! 3901: #endif
! 3902: #ifdef __cplusplus
! 3903: }
1.1 paf 3904: #endif
3905:
1.2 ! paf 3906: int
! 3907: main ()
! 3908: {
! 3909: return f != $ac_func;
! 3910: ;
! 3911: return 0;
! 3912: }
! 3913: _ACEOF
! 3914: rm -f conftest.$ac_objext conftest$ac_exeext
! 3915: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 3916: (eval $ac_link) 2>&5
! 3917: ac_status=$?
! 3918: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3919: (exit $ac_status); } &&
! 3920: { ac_try='test -s conftest$ac_exeext'
! 3921: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 3922: (eval $ac_try) 2>&5
! 3923: ac_status=$?
! 3924: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3925: (exit $ac_status); }; }; then
! 3926: eval "$as_ac_var=yes"
! 3927: else
! 3928: echo "$as_me: failed program was:" >&5
! 3929: sed 's/^/| /' conftest.$ac_ext >&5
! 3930:
! 3931: eval "$as_ac_var=no"
! 3932: fi
! 3933: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 3934: fi
! 3935: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 3936: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 3937: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 3938: cat >>confdefs.h <<_ACEOF
! 3939: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 3940: _ACEOF
1.1 paf 3941: break
3942: fi
3943: done
3944:
3945:
1.2 ! paf 3946: echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
! 3947: echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
! 3948: if test "${libltdl_cv_preloaded_symbols+set}" = set; then
! 3949: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 3950: else
3951: if test -n "$global_symbol_pipe"; then
3952: libltdl_cv_preloaded_symbols=yes
3953: else
3954: libltdl_cv_preloaded_symbols=no
3955: fi
3956:
3957: fi
1.2 ! paf 3958: echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
! 3959: echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
! 3960: if test x"$libltdl_cv_preloaded_symbols" = x"yes"; then
1.1 paf 3961:
1.2 ! paf 3962: cat >>confdefs.h <<\_ACEOF
1.1 paf 3963: #define HAVE_PRELOADED_SYMBOLS 1
1.2 ! paf 3964: _ACEOF
1.1 paf 3965:
3966: fi
3967:
3968: LIBADD_DL=
1.2 ! paf 3969: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
! 3970: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
! 3971: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
! 3972: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 3973: else
1.2 ! paf 3974: ac_check_lib_save_LIBS=$LIBS
1.1 paf 3975: LIBS="-ldl $LIBS"
1.2 ! paf 3976: cat >conftest.$ac_ext <<_ACEOF
! 3977: #line $LINENO "configure"
! 3978: /* confdefs.h. */
! 3979: _ACEOF
! 3980: cat confdefs.h >>conftest.$ac_ext
! 3981: cat >>conftest.$ac_ext <<_ACEOF
! 3982: /* end confdefs.h. */
! 3983:
1.1 paf 3984: /* Override any gcc2 internal prototype to avoid an error. */
1.2 ! paf 3985: #ifdef __cplusplus
! 3986: extern "C"
! 3987: #endif
1.1 paf 3988: /* We use char because int might match the return type of a gcc2
1.2 ! paf 3989: builtin and then its argument prototype would still apply. */
! 3990: char dlopen ();
! 3991: int
! 3992: main ()
! 3993: {
! 3994: dlopen ();
! 3995: ;
! 3996: return 0;
! 3997: }
! 3998: _ACEOF
! 3999: rm -f conftest.$ac_objext conftest$ac_exeext
! 4000: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 4001: (eval $ac_link) 2>&5
! 4002: ac_status=$?
! 4003: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4004: (exit $ac_status); } &&
! 4005: { ac_try='test -s conftest$ac_exeext'
! 4006: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4007: (eval $ac_try) 2>&5
! 4008: ac_status=$?
! 4009: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4010: (exit $ac_status); }; }; then
! 4011: ac_cv_lib_dl_dlopen=yes
! 4012: else
! 4013: echo "$as_me: failed program was:" >&5
! 4014: sed 's/^/| /' conftest.$ac_ext >&5
! 4015:
! 4016: ac_cv_lib_dl_dlopen=no
! 4017: fi
! 4018: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 4019: LIBS=$ac_check_lib_save_LIBS
! 4020: fi
! 4021: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
! 4022: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
! 4023: if test $ac_cv_lib_dl_dlopen = yes; then
! 4024: cat >>confdefs.h <<\_ACEOF
1.1 paf 4025: #define HAVE_LIBDL 1
1.2 ! paf 4026: _ACEOF
1.1 paf 4027: LIBADD_DL="-ldl"
4028: else
1.2 ! paf 4029: echo "$as_me:$LINENO: checking for dlopen" >&5
! 4030: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
! 4031: if test "${ac_cv_func_dlopen+set}" = set; then
! 4032: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4033: else
! 4034: cat >conftest.$ac_ext <<_ACEOF
! 4035: #line $LINENO "configure"
! 4036: /* confdefs.h. */
! 4037: _ACEOF
! 4038: cat confdefs.h >>conftest.$ac_ext
! 4039: cat >>conftest.$ac_ext <<_ACEOF
! 4040: /* end confdefs.h. */
1.1 paf 4041: /* System header to define __stub macros and hopefully few prototypes,
1.2 ! paf 4042: which can conflict with char dlopen (); below.
! 4043: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 4044: <limits.h> exists even on freestanding compilers. */
! 4045: #ifdef __STDC__
! 4046: # include <limits.h>
! 4047: #else
! 4048: # include <assert.h>
! 4049: #endif
1.1 paf 4050: /* Override any gcc2 internal prototype to avoid an error. */
1.2 ! paf 4051: #ifdef __cplusplus
! 4052: extern "C"
! 4053: {
! 4054: #endif
1.1 paf 4055: /* We use char because int might match the return type of a gcc2
1.2 ! paf 4056: builtin and then its argument prototype would still apply. */
! 4057: char dlopen ();
1.1 paf 4058: /* The GNU C library defines this for functions which it implements
4059: to always fail with ENOSYS. Some functions are actually named
4060: something starting with __ and the normal name is an alias. */
4061: #if defined (__stub_dlopen) || defined (__stub___dlopen)
4062: choke me
4063: #else
1.2 ! paf 4064: char (*f) () = dlopen;
! 4065: #endif
! 4066: #ifdef __cplusplus
! 4067: }
1.1 paf 4068: #endif
4069:
1.2 ! paf 4070: int
! 4071: main ()
! 4072: {
! 4073: return f != dlopen;
! 4074: ;
! 4075: return 0;
! 4076: }
! 4077: _ACEOF
! 4078: rm -f conftest.$ac_objext conftest$ac_exeext
! 4079: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 4080: (eval $ac_link) 2>&5
! 4081: ac_status=$?
! 4082: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4083: (exit $ac_status); } &&
! 4084: { ac_try='test -s conftest$ac_exeext'
! 4085: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4086: (eval $ac_try) 2>&5
! 4087: ac_status=$?
! 4088: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4089: (exit $ac_status); }; }; then
! 4090: ac_cv_func_dlopen=yes
! 4091: else
! 4092: echo "$as_me: failed program was:" >&5
! 4093: sed 's/^/| /' conftest.$ac_ext >&5
! 4094:
! 4095: ac_cv_func_dlopen=no
! 4096: fi
! 4097: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 4098: fi
! 4099: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
! 4100: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
! 4101: if test $ac_cv_func_dlopen = yes; then
! 4102: cat >>confdefs.h <<\_ACEOF
1.1 paf 4103: #define HAVE_LIBDL 1
1.2 ! paf 4104: _ACEOF
1.1 paf 4105:
4106: fi
4107:
4108: fi
4109:
1.2 ! paf 4110: echo "$as_me:$LINENO: checking for shl_load" >&5
! 4111: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
! 4112: if test "${ac_cv_func_shl_load+set}" = set; then
! 4113: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 4114: else
1.2 ! paf 4115: cat >conftest.$ac_ext <<_ACEOF
! 4116: #line $LINENO "configure"
! 4117: /* confdefs.h. */
! 4118: _ACEOF
! 4119: cat confdefs.h >>conftest.$ac_ext
! 4120: cat >>conftest.$ac_ext <<_ACEOF
! 4121: /* end confdefs.h. */
1.1 paf 4122: /* System header to define __stub macros and hopefully few prototypes,
1.2 ! paf 4123: which can conflict with char shl_load (); below.
! 4124: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 4125: <limits.h> exists even on freestanding compilers. */
! 4126: #ifdef __STDC__
! 4127: # include <limits.h>
! 4128: #else
! 4129: # include <assert.h>
! 4130: #endif
1.1 paf 4131: /* Override any gcc2 internal prototype to avoid an error. */
1.2 ! paf 4132: #ifdef __cplusplus
! 4133: extern "C"
! 4134: {
! 4135: #endif
1.1 paf 4136: /* We use char because int might match the return type of a gcc2
1.2 ! paf 4137: builtin and then its argument prototype would still apply. */
! 4138: char shl_load ();
1.1 paf 4139: /* The GNU C library defines this for functions which it implements
4140: to always fail with ENOSYS. Some functions are actually named
4141: something starting with __ and the normal name is an alias. */
4142: #if defined (__stub_shl_load) || defined (__stub___shl_load)
4143: choke me
4144: #else
1.2 ! paf 4145: char (*f) () = shl_load;
! 4146: #endif
! 4147: #ifdef __cplusplus
! 4148: }
1.1 paf 4149: #endif
4150:
1.2 ! paf 4151: int
! 4152: main ()
! 4153: {
! 4154: return f != shl_load;
! 4155: ;
! 4156: return 0;
! 4157: }
! 4158: _ACEOF
! 4159: rm -f conftest.$ac_objext conftest$ac_exeext
! 4160: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 4161: (eval $ac_link) 2>&5
! 4162: ac_status=$?
! 4163: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4164: (exit $ac_status); } &&
! 4165: { ac_try='test -s conftest$ac_exeext'
! 4166: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4167: (eval $ac_try) 2>&5
! 4168: ac_status=$?
! 4169: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4170: (exit $ac_status); }; }; then
! 4171: ac_cv_func_shl_load=yes
! 4172: else
! 4173: echo "$as_me: failed program was:" >&5
! 4174: sed 's/^/| /' conftest.$ac_ext >&5
! 4175:
! 4176: ac_cv_func_shl_load=no
! 4177: fi
! 4178: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 4179: fi
! 4180: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
! 4181: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
! 4182: if test $ac_cv_func_shl_load = yes; then
! 4183: cat >>confdefs.h <<\_ACEOF
1.1 paf 4184: #define HAVE_SHL_LOAD 1
1.2 ! paf 4185: _ACEOF
1.1 paf 4186:
4187: else
1.2 ! paf 4188: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
! 4189: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
! 4190: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
! 4191: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 4192: else
1.2 ! paf 4193: ac_check_lib_save_LIBS=$LIBS
1.1 paf 4194: LIBS="-ldld $LIBS"
1.2 ! paf 4195: cat >conftest.$ac_ext <<_ACEOF
! 4196: #line $LINENO "configure"
! 4197: /* confdefs.h. */
! 4198: _ACEOF
! 4199: cat confdefs.h >>conftest.$ac_ext
! 4200: cat >>conftest.$ac_ext <<_ACEOF
! 4201: /* end confdefs.h. */
! 4202:
1.1 paf 4203: /* Override any gcc2 internal prototype to avoid an error. */
1.2 ! paf 4204: #ifdef __cplusplus
! 4205: extern "C"
! 4206: #endif
1.1 paf 4207: /* We use char because int might match the return type of a gcc2
1.2 ! paf 4208: builtin and then its argument prototype would still apply. */
! 4209: char shl_load ();
! 4210: int
! 4211: main ()
! 4212: {
! 4213: shl_load ();
! 4214: ;
! 4215: return 0;
! 4216: }
! 4217: _ACEOF
! 4218: rm -f conftest.$ac_objext conftest$ac_exeext
! 4219: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 4220: (eval $ac_link) 2>&5
! 4221: ac_status=$?
! 4222: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4223: (exit $ac_status); } &&
! 4224: { ac_try='test -s conftest$ac_exeext'
! 4225: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4226: (eval $ac_try) 2>&5
! 4227: ac_status=$?
! 4228: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4229: (exit $ac_status); }; }; then
! 4230: ac_cv_lib_dld_shl_load=yes
! 4231: else
! 4232: echo "$as_me: failed program was:" >&5
! 4233: sed 's/^/| /' conftest.$ac_ext >&5
! 4234:
! 4235: ac_cv_lib_dld_shl_load=no
! 4236: fi
! 4237: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 4238: LIBS=$ac_check_lib_save_LIBS
! 4239: fi
! 4240: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
! 4241: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
! 4242: if test $ac_cv_lib_dld_shl_load = yes; then
! 4243: cat >>confdefs.h <<\_ACEOF
1.1 paf 4244: #define HAVE_SHL_LOAD 1
1.2 ! paf 4245: _ACEOF
1.1 paf 4246: LIBADD_DL="$LIBADD_DL -ldld"
4247: fi
4248:
4249: fi
4250:
1.2 ! paf 4251: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
! 4252: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
! 4253: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
! 4254: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 4255: else
1.2 ! paf 4256: ac_check_lib_save_LIBS=$LIBS
1.1 paf 4257: LIBS="-ldld $LIBS"
1.2 ! paf 4258: cat >conftest.$ac_ext <<_ACEOF
! 4259: #line $LINENO "configure"
! 4260: /* confdefs.h. */
! 4261: _ACEOF
! 4262: cat confdefs.h >>conftest.$ac_ext
! 4263: cat >>conftest.$ac_ext <<_ACEOF
! 4264: /* end confdefs.h. */
! 4265:
1.1 paf 4266: /* Override any gcc2 internal prototype to avoid an error. */
1.2 ! paf 4267: #ifdef __cplusplus
! 4268: extern "C"
! 4269: #endif
1.1 paf 4270: /* We use char because int might match the return type of a gcc2
1.2 ! paf 4271: builtin and then its argument prototype would still apply. */
! 4272: char dld_link ();
! 4273: int
! 4274: main ()
! 4275: {
! 4276: dld_link ();
! 4277: ;
! 4278: return 0;
! 4279: }
! 4280: _ACEOF
! 4281: rm -f conftest.$ac_objext conftest$ac_exeext
! 4282: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 4283: (eval $ac_link) 2>&5
! 4284: ac_status=$?
! 4285: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4286: (exit $ac_status); } &&
! 4287: { ac_try='test -s conftest$ac_exeext'
! 4288: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4289: (eval $ac_try) 2>&5
! 4290: ac_status=$?
! 4291: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4292: (exit $ac_status); }; }; then
! 4293: ac_cv_lib_dld_dld_link=yes
! 4294: else
! 4295: echo "$as_me: failed program was:" >&5
! 4296: sed 's/^/| /' conftest.$ac_ext >&5
! 4297:
! 4298: ac_cv_lib_dld_dld_link=no
! 4299: fi
! 4300: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 4301: LIBS=$ac_check_lib_save_LIBS
! 4302: fi
! 4303: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
! 4304: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
! 4305: if test $ac_cv_lib_dld_dld_link = yes; then
! 4306: cat >>confdefs.h <<\_ACEOF
1.1 paf 4307: #define HAVE_DLD 1
1.2 ! paf 4308: _ACEOF
1.1 paf 4309: test "x$ac_cv_lib_dld_shl_load" = yes || LIBADD_DL="$LIBADD_DL -ldld"
4310: fi
4311:
4312:
4313:
4314: if test "x$ac_cv_func_dlopen" = xyes || test "x$ac_cv_lib_dl_dlopen" = xyes; then
4315: LIBS_SAVE="$LIBS"
4316: LIBS="$LIBS $LIBADD_DL"
1.2 ! paf 4317:
! 4318: for ac_func in dlerror
1.1 paf 4319: do
1.2 ! paf 4320: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 4321: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 4322: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 4323: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 4324: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4325: else
! 4326: cat >conftest.$ac_ext <<_ACEOF
! 4327: #line $LINENO "configure"
! 4328: /* confdefs.h. */
! 4329: _ACEOF
! 4330: cat confdefs.h >>conftest.$ac_ext
! 4331: cat >>conftest.$ac_ext <<_ACEOF
! 4332: /* end confdefs.h. */
1.1 paf 4333: /* System header to define __stub macros and hopefully few prototypes,
1.2 ! paf 4334: which can conflict with char $ac_func (); below.
! 4335: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 4336: <limits.h> exists even on freestanding compilers. */
! 4337: #ifdef __STDC__
! 4338: # include <limits.h>
! 4339: #else
! 4340: # include <assert.h>
! 4341: #endif
1.1 paf 4342: /* Override any gcc2 internal prototype to avoid an error. */
1.2 ! paf 4343: #ifdef __cplusplus
! 4344: extern "C"
! 4345: {
! 4346: #endif
1.1 paf 4347: /* We use char because int might match the return type of a gcc2
1.2 ! paf 4348: builtin and then its argument prototype would still apply. */
! 4349: char $ac_func ();
1.1 paf 4350: /* The GNU C library defines this for functions which it implements
4351: to always fail with ENOSYS. Some functions are actually named
4352: something starting with __ and the normal name is an alias. */
4353: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4354: choke me
4355: #else
1.2 ! paf 4356: char (*f) () = $ac_func;
! 4357: #endif
! 4358: #ifdef __cplusplus
! 4359: }
1.1 paf 4360: #endif
4361:
1.2 ! paf 4362: int
! 4363: main ()
! 4364: {
! 4365: return f != $ac_func;
! 4366: ;
! 4367: return 0;
! 4368: }
! 4369: _ACEOF
! 4370: rm -f conftest.$ac_objext conftest$ac_exeext
! 4371: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 4372: (eval $ac_link) 2>&5
! 4373: ac_status=$?
! 4374: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4375: (exit $ac_status); } &&
! 4376: { ac_try='test -s conftest$ac_exeext'
! 4377: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4378: (eval $ac_try) 2>&5
! 4379: ac_status=$?
! 4380: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4381: (exit $ac_status); }; }; then
! 4382: eval "$as_ac_var=yes"
! 4383: else
! 4384: echo "$as_me: failed program was:" >&5
! 4385: sed 's/^/| /' conftest.$ac_ext >&5
! 4386:
! 4387: eval "$as_ac_var=no"
! 4388: fi
! 4389: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 4390: fi
! 4391: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 4392: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 4393: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 4394: cat >>confdefs.h <<_ACEOF
! 4395: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 4396: _ACEOF
1.1 paf 4397:
4398: fi
4399: done
4400:
4401: LIBS="$LIBS_SAVE"
4402: fi
4403:
4404: # Check for command to grab the raw symbol name followed by C symbol from nm.
1.2 ! paf 4405: echo "$as_me:$LINENO: checking command to parse $NM output" >&5
! 4406: echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
! 4407: if test "${ac_cv_sys_global_symbol_pipe+set}" = set; then
! 4408: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 4409: else
4410: # These are sane defaults that work on at least a few old systems.
4411: # {They come from Ultrix. What could be older than Ultrix?!! ;)}
4412:
4413: # Character class describing NM global symbol codes.
4414: ac_symcode='[BCDEGRST]'
4415:
4416: # Regexp to match symbols that can be accessed directly from C.
4417: ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4418:
4419: # Transform the above into a raw symbol and a C symbol.
4420: ac_symxfrm='\1 \2\3 \3'
4421:
4422: # Transform an extracted symbol line into a proper C declaration
4423: ac_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4424:
4425: # Define system-specific variables.
4426: case "$host_os" in
4427: aix*)
4428: ac_symcode='[BCDT]'
4429: ;;
4430: cygwin* | mingw*)
4431: ac_symcode='[ABCDGISTW]'
4432: ;;
4433: hpux*)
4434: ac_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
4435: ;;
4436: irix*)
4437: ac_symcode='[BCDEGRST]'
4438: ;;
4439: solaris*)
4440: ac_symcode='[BDT]'
4441: ;;
4442: esac
4443:
4444: # If we're using GNU nm, then use its standard symbol codes.
4445: if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4446: ac_symcode='[ABCDGISTW]'
4447: fi
4448:
4449: # Try without a prefix undercore, then with it.
4450: for ac_symprfx in "" "_"; do
4451:
4452: ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.* \($ac_symcode\) *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
4453:
4454: # Check to see that the pipe works correctly.
4455: ac_pipe_works=no
4456: rm -f conftest.$ac_ext
4457: cat > conftest.$ac_ext <<EOF
4458: #ifdef __cplusplus
4459: extern "C" {
4460: #endif
4461: char nm_test_var;
4462: void nm_test_func(){}
4463: #ifdef __cplusplus
4464: }
4465: #endif
4466: int main(){nm_test_var='a';nm_test_func;return 0;}
4467: EOF
4468:
1.2 ! paf 4469: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 4470: (eval $ac_compile) 2>&5
! 4471: ac_status=$?
! 4472: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4473: (exit $ac_status); }; then
1.1 paf 4474: # Now try to grab the symbols.
4475: ac_nlist=conftest.nm
1.2 ! paf 4476:
! 4477: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
! 4478: (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
! 4479: ac_status=$?
! 4480: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4481: (exit $ac_status); } && test -s "$ac_nlist"; then
1.1 paf 4482:
4483: # Try sorting and uniquifying the output.
4484: if sort "$ac_nlist" | uniq > "$ac_nlist"T; then
4485: mv -f "$ac_nlist"T "$ac_nlist"
4486: else
4487: rm -f "$ac_nlist"T
4488: fi
4489:
4490: # Make sure that we snagged all the symbols we need.
4491: if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then
4492: if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then
4493: cat <<EOF > conftest.c
4494: #ifdef __cplusplus
4495: extern "C" {
4496: #endif
4497:
4498: EOF
4499: # Now generate the symbol file.
4500: eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
4501:
4502: cat <<EOF >> conftest.c
4503: #if defined (__STDC__) && __STDC__
4504: # define lt_ptr_t void *
4505: #else
4506: # define lt_ptr_t char *
4507: # define const
4508: #endif
4509:
4510: /* The mapping between symbol names and symbols. */
4511: const struct {
4512: const char *name;
4513: lt_ptr_t address;
4514: }
4515: lt_preloaded_symbols[] =
4516: {
4517: EOF
4518: sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
4519: cat <<\EOF >> conftest.c
4520: {0, (lt_ptr_t) 0}
4521: };
4522:
4523: #ifdef __cplusplus
4524: }
4525: #endif
4526: EOF
4527: # Now try linking the two files.
4528: mv conftest.$ac_objext conftstm.$ac_objext
4529: ac_save_LIBS="$LIBS"
4530: ac_save_CFLAGS="$CFLAGS"
4531: LIBS="conftstm.$ac_objext"
4532: CFLAGS="$CFLAGS$no_builtin_flag"
1.2 ! paf 4533: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 4534: (eval $ac_link) 2>&5
! 4535: ac_status=$?
! 4536: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4537: (exit $ac_status); } && test -s conftest; then
1.1 paf 4538: ac_pipe_works=yes
4539: else
4540: echo "configure: failed program was:" >&5
4541: cat conftest.c >&5
4542: fi
4543: LIBS="$ac_save_LIBS"
4544: CFLAGS="$ac_save_CFLAGS"
4545: else
4546: echo "cannot find nm_test_func in $ac_nlist" >&5
4547: fi
4548: else
4549: echo "cannot find nm_test_var in $ac_nlist" >&5
4550: fi
4551: else
4552: echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
4553: fi
4554: else
4555: echo "$progname: failed program was:" >&5
4556: cat conftest.c >&5
4557: fi
4558: rm -rf conftest* conftst*
4559:
4560: # Do not use the global_symbol_pipe unless it works.
4561: if test "$ac_pipe_works" = yes; then
4562: if test x"$ac_symprfx" = x"_"; then
4563: ac_cv_sys_symbol_underscore=yes
4564: else
4565: ac_cv_sys_symbol_underscore=no
4566: fi
4567: break
4568: else
4569: ac_cv_sys_global_symbol_pipe=
4570: fi
4571: done
4572:
4573: fi
4574:
4575:
4576: ac_result=yes
4577: if test -z "$ac_cv_sys_global_symbol_pipe"; then
4578: ac_result=no
4579: fi
1.2 ! paf 4580: echo "$as_me:$LINENO: result: $ac_result" >&5
! 4581: echo "${ECHO_T}$ac_result" >&6
1.1 paf 4582:
1.2 ! paf 4583: echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
! 4584: echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
! 4585: if test "${ac_cv_sys_symbol_underscore+set}" = set; then
! 4586: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 4587: else
4588: ac_cv_sys_symbol_underscore=no
4589: cat > conftest.$ac_ext <<EOF
4590: void nm_test_func(){}
4591: int main(){nm_test_func;return 0;}
4592: EOF
1.2 ! paf 4593: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 4594: (eval $ac_compile) 2>&5
! 4595: ac_status=$?
! 4596: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4597: (exit $ac_status); }; then
1.1 paf 4598: # Now try to grab the symbols.
4599: ac_nlist=conftest.nm
1.2 ! paf 4600: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
! 4601: (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
! 4602: ac_status=$?
! 4603: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4604: (exit $ac_status); } && test -s "$ac_nlist"; then
1.1 paf 4605: # See whether the symbols have a leading underscore.
4606: if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
4607: ac_cv_sys_symbol_underscore=yes
4608: else
4609: if egrep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
4610: :
4611: else
4612: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
4613: fi
4614: fi
4615: else
4616: echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
4617: fi
4618: else
4619: echo "configure: failed program was:" >&5
4620: cat conftest.c >&5
4621: fi
4622: rm -rf conftest*
4623:
4624: fi
4625:
1.2 ! paf 4626: echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
! 4627: echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
1.1 paf 4628:
4629: if test x"$ac_cv_sys_symbol_underscore" = xyes; then
4630: if test x"$ac_cv_func_dlopen" = xyes ||
4631: test x"$ac_cv_lib_dl_dlopen" = xyes ; then
1.2 ! paf 4632: echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
! 4633: echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
! 4634: if test "${libltdl_cv_need_uscore+set}" = set; then
! 4635: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 4636: else
4637: if test "$cross_compiling" = yes; then
4638: libltdl_cv_need_uscore=cross
4639:
4640: else
1.2 ! paf 4641: cat >conftest.$ac_ext <<_ACEOF
! 4642: #line $LINENO "configure"
! 4643: /* confdefs.h. */
! 4644: _ACEOF
! 4645: cat confdefs.h >>conftest.$ac_ext
! 4646: cat >>conftest.$ac_ext <<_ACEOF
! 4647: /* end confdefs.h. */
1.1 paf 4648:
4649: #if HAVE_DLFCN_H
4650: #include <dlfcn.h>
4651: #endif
4652:
4653: #include <stdio.h>
4654:
4655: #ifdef RTLD_GLOBAL
4656: # define LTDL_GLOBAL RTLD_GLOBAL
4657: #else
4658: # ifdef DL_GLOBAL
4659: # define LTDL_GLOBAL DL_GLOBAL
4660: # else
4661: # define LTDL_GLOBAL 0
4662: # endif
4663: #endif
4664:
4665: /* We may have to define LTDL_LAZY_OR_NOW in the command line if we
4666: find out it does not work in some platform. */
4667: #ifndef LTDL_LAZY_OR_NOW
4668: # ifdef RTLD_LAZY
4669: # define LTDL_LAZY_OR_NOW RTLD_LAZY
4670: # else
4671: # ifdef DL_LAZY
4672: # define LTDL_LAZY_OR_NOW DL_LAZY
4673: # else
4674: # ifdef RTLD_NOW
4675: # define LTDL_LAZY_OR_NOW RTLD_NOW
4676: # else
4677: # ifdef DL_NOW
4678: # define LTDL_LAZY_OR_NOW DL_NOW
4679: # else
4680: # define LTDL_LAZY_OR_NOW 0
4681: # endif
4682: # endif
4683: # endif
4684: # endif
4685: #endif
4686:
4687: fnord() { int i=42;}
4688: main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
4689: if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
1.2 ! paf 4690: if(ptr1 && !ptr2) { dlclose(self); exit(0); } } exit(1); }
1.1 paf 4691:
1.2 ! paf 4692: _ACEOF
! 4693: rm -f conftest$ac_exeext
! 4694: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 4695: (eval $ac_link) 2>&5
! 4696: ac_status=$?
! 4697: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4698: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 4699: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4700: (eval $ac_try) 2>&5
! 4701: ac_status=$?
! 4702: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4703: (exit $ac_status); }; }; then
1.1 paf 4704: libltdl_cv_need_uscore=no
4705: else
1.2 ! paf 4706: echo "$as_me: program exited with status $ac_status" >&5
! 4707: echo "$as_me: failed program was:" >&5
! 4708: sed 's/^/| /' conftest.$ac_ext >&5
! 4709:
! 4710: ( exit $ac_status )
! 4711: libltdl_cv_need_uscore=yes
1.1 paf 4712: fi
1.2 ! paf 4713: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 paf 4714: fi
4715: fi
1.2 ! paf 4716: echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
! 4717: echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
1.1 paf 4718: fi
4719: fi
4720:
4721: if test x"$libltdl_cv_need_uscore" = xyes; then
1.2 ! paf 4722:
! 4723: cat >>confdefs.h <<\_ACEOF
1.1 paf 4724: #define NEED_USCORE 1
1.2 ! paf 4725: _ACEOF
1.1 paf 4726:
4727: fi
4728:
1.2 ! paf 4729: cat >confcache <<\_ACEOF
1.1 paf 4730: # This file is a shell script that caches the results of configure
4731: # tests run on this system so they can be shared between configure
1.2 ! paf 4732: # scripts and configure runs, see configure's option --config-cache.
! 4733: # It is not useful on other systems. If it contains results you don't
! 4734: # want to keep, you may remove or edit it.
1.1 paf 4735: #
1.2 ! paf 4736: # config.status only pays attention to the cache file if you give it
! 4737: # the --recheck option to rerun configure.
1.1 paf 4738: #
1.2 ! paf 4739: # `ac_cv_env_foo' variables (set or unset) will be overridden when
! 4740: # loading this file, other *unset* `ac_cv_foo' will be assigned the
! 4741: # following values.
! 4742:
! 4743: _ACEOF
! 4744:
1.1 paf 4745: # The following way of writing the cache mishandles newlines in values,
4746: # but we know of no workaround that is simple, portable, and efficient.
4747: # So, don't put newlines in cache variables' values.
4748: # Ultrix sh set writes to stderr and can't be redirected directly,
4749: # and sets the high bit in the cache file unless we assign to the vars.
1.2 ! paf 4750: {
! 4751: (set) 2>&1 |
! 4752: case `(ac_space=' '; set | grep ac_space) 2>&1` in
! 4753: *ac_space=\ *)
! 4754: # `set' does not quote correctly, so add quotes (double-quote
! 4755: # substitution turns \\\\ into \\, and sed turns \\ into \).
! 4756: sed -n \
! 4757: "s/'/'\\\\''/g;
! 4758: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
! 4759: ;;
! 4760: *)
! 4761: # `set' quotes correctly as required by POSIX, so do not add quotes.
! 4762: sed -n \
! 4763: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
! 4764: ;;
! 4765: esac;
! 4766: } |
! 4767: sed '
! 4768: t clear
! 4769: : clear
! 4770: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
! 4771: t end
! 4772: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
! 4773: : end' >>confcache
! 4774: if diff $cache_file confcache >/dev/null 2>&1; then :; else
1.1 paf 4775: if test -w $cache_file; then
1.2 ! paf 4776: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
! 4777: cat confcache >$cache_file
1.1 paf 4778: else
4779: echo "not updating unwritable cache $cache_file"
4780: fi
4781: fi
4782: rm -f confcache
4783:
4784: test "x$prefix" = xNONE && prefix=$ac_default_prefix
4785: # Let make expand exec_prefix.
4786: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4787:
1.2 ! paf 4788: # VPATH may cause trouble with some makes, so we remove $(srcdir),
! 4789: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
! 4790: # trailing colons and then remove the whole line if VPATH becomes empty
! 4791: # (actually we leave an empty line to preserve line numbers).
1.1 paf 4792: if test "x$srcdir" = x.; then
1.2 ! paf 4793: ac_vpsub='/^[ ]*VPATH[ ]*=/{
! 4794: s/:*\$(srcdir):*/:/;
! 4795: s/:*\${srcdir}:*/:/;
! 4796: s/:*@srcdir@:*/:/;
! 4797: s/^\([^=]*=[ ]*\):*/\1/;
! 4798: s/:*$//;
! 4799: s/^[^=]*=[ ]*$//;
! 4800: }'
1.1 paf 4801: fi
4802:
1.2 ! paf 4803: DEFS=-DHAVE_CONFIG_H
! 4804:
! 4805: ac_libobjs=
! 4806: ac_ltlibobjs=
! 4807: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
! 4808: # 1. Remove the extension, and $U if already installed.
! 4809: ac_i=`echo "$ac_i" |
! 4810: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
! 4811: # 2. Add them.
! 4812: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
! 4813: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
! 4814: done
! 4815: LIBOBJS=$ac_libobjs
! 4816:
! 4817: LTLIBOBJS=$ac_ltlibobjs
! 4818:
1.1 paf 4819:
1.2 ! paf 4820: if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
! 4821: { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
! 4822: Usually this means the macro was only invoked conditionally." >&5
! 4823: echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
! 4824: Usually this means the macro was only invoked conditionally." >&2;}
! 4825: { (exit 1); exit 1; }; }
! 4826: fi
! 4827: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
! 4828: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
! 4829: Usually this means the macro was only invoked conditionally." >&5
! 4830: echo "$as_me: error: conditional \"AMDEP\" was never defined.
! 4831: Usually this means the macro was only invoked conditionally." >&2;}
! 4832: { (exit 1); exit 1; }; }
! 4833: fi
! 4834: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
! 4835: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
! 4836: Usually this means the macro was only invoked conditionally." >&5
! 4837: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
! 4838: Usually this means the macro was only invoked conditionally." >&2;}
! 4839: { (exit 1); exit 1; }; }
! 4840: fi
1.1 paf 4841:
4842: : ${CONFIG_STATUS=./config.status}
1.2 ! paf 4843: ac_clean_files_save=$ac_clean_files
! 4844: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
! 4845: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
! 4846: echo "$as_me: creating $CONFIG_STATUS" >&6;}
! 4847: cat >$CONFIG_STATUS <<_ACEOF
! 4848: #! $SHELL
! 4849: # Generated by $as_me.
1.1 paf 4850: # Run this file to recreate the current configuration.
4851: # Compiler output produced by configure, useful for debugging
1.2 ! paf 4852: # configure, is in config.log if it exists.
! 4853:
! 4854: debug=false
! 4855: ac_cs_recheck=false
! 4856: ac_cs_silent=false
! 4857: SHELL=\${CONFIG_SHELL-$SHELL}
! 4858: _ACEOF
! 4859:
! 4860: cat >>$CONFIG_STATUS <<\_ACEOF
! 4861: ## --------------------- ##
! 4862: ## M4sh Initialization. ##
! 4863: ## --------------------- ##
! 4864:
! 4865: # Be Bourne compatible
! 4866: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
! 4867: emulate sh
! 4868: NULLCMD=:
! 4869: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
! 4870: # is contrary to our usage. Disable this feature.
! 4871: alias -g '${1+"$@"}'='"$@"'
! 4872: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
! 4873: set -o posix
! 4874: fi
! 4875:
! 4876: # Support unset when possible.
! 4877: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
! 4878: as_unset=unset
! 4879: else
! 4880: as_unset=false
! 4881: fi
! 4882:
! 4883:
! 4884: # Work around bugs in pre-3.0 UWIN ksh.
! 4885: $as_unset ENV MAIL MAILPATH
! 4886: PS1='$ '
! 4887: PS2='> '
! 4888: PS4='+ '
! 4889:
! 4890: # NLS nuisances.
! 4891: for as_var in \
! 4892: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
! 4893: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
! 4894: LC_TELEPHONE LC_TIME
! 4895: do
! 4896: if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
! 4897: eval $as_var=C; export $as_var
! 4898: else
! 4899: $as_unset $as_var
! 4900: fi
! 4901: done
! 4902:
! 4903: # Required to use basename.
! 4904: if expr a : '\(a\)' >/dev/null 2>&1; then
! 4905: as_expr=expr
! 4906: else
! 4907: as_expr=false
! 4908: fi
! 4909:
! 4910: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
! 4911: as_basename=basename
! 4912: else
! 4913: as_basename=false
! 4914: fi
! 4915:
1.1 paf 4916:
1.2 ! paf 4917: # Name of the executable.
! 4918: as_me=`$as_basename "$0" ||
! 4919: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
! 4920: X"$0" : 'X\(//\)$' \| \
! 4921: X"$0" : 'X\(/\)$' \| \
! 4922: . : '\(.\)' 2>/dev/null ||
! 4923: echo X/"$0" |
! 4924: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
! 4925: /^X\/\(\/\/\)$/{ s//\1/; q; }
! 4926: /^X\/\(\/\).*/{ s//\1/; q; }
! 4927: s/.*/./; q'`
! 4928:
! 4929:
! 4930: # PATH needs CR, and LINENO needs CR and PATH.
! 4931: # Avoid depending upon Character Ranges.
! 4932: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
! 4933: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
! 4934: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
! 4935: as_cr_digits='0123456789'
! 4936: as_cr_alnum=$as_cr_Letters$as_cr_digits
! 4937:
! 4938: # The user is always right.
! 4939: if test "${PATH_SEPARATOR+set}" != set; then
! 4940: echo "#! /bin/sh" >conf$$.sh
! 4941: echo "exit 0" >>conf$$.sh
! 4942: chmod +x conf$$.sh
! 4943: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
! 4944: PATH_SEPARATOR=';'
! 4945: else
! 4946: PATH_SEPARATOR=:
! 4947: fi
! 4948: rm -f conf$$.sh
! 4949: fi
! 4950:
! 4951:
! 4952: as_lineno_1=$LINENO
! 4953: as_lineno_2=$LINENO
! 4954: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
! 4955: test "x$as_lineno_1" != "x$as_lineno_2" &&
! 4956: test "x$as_lineno_3" = "x$as_lineno_2" || {
! 4957: # Find who we are. Look in the path if we contain no path at all
! 4958: # relative or not.
! 4959: case $0 in
! 4960: *[\\/]* ) as_myself=$0 ;;
! 4961: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 4962: for as_dir in $PATH
1.1 paf 4963: do
1.2 ! paf 4964: IFS=$as_save_IFS
! 4965: test -z "$as_dir" && as_dir=.
! 4966: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
! 4967: done
! 4968:
! 4969: ;;
1.1 paf 4970: esac
1.2 ! paf 4971: # We did not find ourselves, most probably we were run as `sh COMMAND'
! 4972: # in which case we are not to be found in the path.
! 4973: if test "x$as_myself" = x; then
! 4974: as_myself=$0
! 4975: fi
! 4976: if test ! -f "$as_myself"; then
! 4977: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
! 4978: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
! 4979: { (exit 1); exit 1; }; }
! 4980: fi
! 4981: case $CONFIG_SHELL in
! 4982: '')
! 4983: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 4984: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
! 4985: do
! 4986: IFS=$as_save_IFS
! 4987: test -z "$as_dir" && as_dir=.
! 4988: for as_base in sh bash ksh sh5; do
! 4989: case $as_dir in
! 4990: /*)
! 4991: if ("$as_dir/$as_base" -c '
! 4992: as_lineno_1=$LINENO
! 4993: as_lineno_2=$LINENO
! 4994: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
! 4995: test "x$as_lineno_1" != "x$as_lineno_2" &&
! 4996: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
! 4997: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
! 4998: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
! 4999: CONFIG_SHELL=$as_dir/$as_base
! 5000: export CONFIG_SHELL
! 5001: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
! 5002: fi;;
! 5003: esac
! 5004: done
1.1 paf 5005: done
1.2 ! paf 5006: ;;
! 5007: esac
1.1 paf 5008:
1.2 ! paf 5009: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
! 5010: # uniformly replaced by the line number. The first 'sed' inserts a
! 5011: # line-number line before each line; the second 'sed' does the real
! 5012: # work. The second script uses 'N' to pair each line-number line
! 5013: # with the numbered line, and appends trailing '-' during
! 5014: # substitution so that $LINENO is not a special case at line end.
! 5015: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
! 5016: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
! 5017: sed '=' <$as_myself |
! 5018: sed '
! 5019: N
! 5020: s,$,-,
! 5021: : loop
! 5022: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
! 5023: t loop
! 5024: s,-$,,
! 5025: s,^['$as_cr_digits']*\n,,
! 5026: ' >$as_me.lineno &&
! 5027: chmod +x $as_me.lineno ||
! 5028: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
! 5029: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
! 5030: { (exit 1); exit 1; }; }
! 5031:
! 5032: # Don't try to exec as it changes $[0], causing all sort of problems
! 5033: # (the dirname of $[0] is not the place where we might find the
! 5034: # original and so on. Autoconf is especially sensible to this).
! 5035: . ./$as_me.lineno
! 5036: # Exit status is that of the last command.
! 5037: exit
! 5038: }
1.1 paf 5039:
5040:
1.2 ! paf 5041: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
! 5042: *c*,-n*) ECHO_N= ECHO_C='
! 5043: ' ECHO_T=' ' ;;
! 5044: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
! 5045: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
! 5046: esac
1.1 paf 5047:
1.2 ! paf 5048: if expr a : '\(a\)' >/dev/null 2>&1; then
! 5049: as_expr=expr
! 5050: else
! 5051: as_expr=false
! 5052: fi
1.1 paf 5053:
1.2 ! paf 5054: rm -f conf$$ conf$$.exe conf$$.file
! 5055: echo >conf$$.file
! 5056: if ln -s conf$$.file conf$$ 2>/dev/null; then
! 5057: # We could just check for DJGPP; but this test a) works b) is more generic
! 5058: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
! 5059: if test -f conf$$.exe; then
! 5060: # Don't use ln at all; we don't have any links
! 5061: as_ln_s='cp -p'
1.1 paf 5062: else
1.2 ! paf 5063: as_ln_s='ln -s'
1.1 paf 5064: fi
1.2 ! paf 5065: elif ln conf$$.file conf$$ 2>/dev/null; then
! 5066: as_ln_s=ln
! 5067: else
! 5068: as_ln_s='cp -p'
! 5069: fi
! 5070: rm -f conf$$ conf$$.exe conf$$.file
! 5071:
! 5072: if mkdir -p . 2>/dev/null; then
! 5073: as_mkdir_p=:
! 5074: else
! 5075: as_mkdir_p=false
! 5076: fi
! 5077:
! 5078: as_executable_p="test -f"
! 5079:
! 5080: # Sed expression to map a string onto a valid CPP name.
! 5081: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
! 5082:
! 5083: # Sed expression to map a string onto a valid variable name.
! 5084: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
! 5085:
! 5086:
! 5087: # IFS
! 5088: # We need space, tab and new line, in precisely that order.
! 5089: as_nl='
! 5090: '
! 5091: IFS=" $as_nl"
! 5092:
! 5093: # CDPATH.
! 5094: $as_unset CDPATH
! 5095:
! 5096: exec 6>&1
! 5097:
! 5098: # Open the log real soon, to keep \$[0] and so on meaningful, and to
! 5099: # report actual input values of CONFIG_FILES etc. instead of their
! 5100: # values after options handling. Logging --version etc. is OK.
! 5101: exec 5>>config.log
! 5102: {
! 5103: echo
! 5104: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
! 5105: ## Running $as_me. ##
! 5106: _ASBOX
! 5107: } >&5
! 5108: cat >&5 <<_CSEOF
! 5109:
! 5110: This file was extended by $as_me, which was
! 5111: generated by GNU Autoconf 2.57. Invocation command line was
! 5112:
! 5113: CONFIG_FILES = $CONFIG_FILES
! 5114: CONFIG_HEADERS = $CONFIG_HEADERS
! 5115: CONFIG_LINKS = $CONFIG_LINKS
! 5116: CONFIG_COMMANDS = $CONFIG_COMMANDS
! 5117: $ $0 $@
! 5118:
! 5119: _CSEOF
! 5120: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
! 5121: echo >&5
! 5122: _ACEOF
! 5123:
! 5124: # Files that config.status was made for.
! 5125: if test -n "$ac_config_files"; then
! 5126: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
! 5127: fi
! 5128:
! 5129: if test -n "$ac_config_headers"; then
! 5130: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
! 5131: fi
! 5132:
! 5133: if test -n "$ac_config_links"; then
! 5134: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
! 5135: fi
! 5136:
! 5137: if test -n "$ac_config_commands"; then
! 5138: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
1.1 paf 5139: fi
5140:
1.2 ! paf 5141: cat >>$CONFIG_STATUS <<\_ACEOF
! 5142:
! 5143: ac_cs_usage="\
! 5144: \`$as_me' instantiates files from templates according to the
! 5145: current configuration.
! 5146:
! 5147: Usage: $0 [OPTIONS] [FILE]...
! 5148:
! 5149: -h, --help print this help, then exit
! 5150: -V, --version print version number, then exit
! 5151: -q, --quiet do not print progress messages
! 5152: -d, --debug don't remove temporary files
! 5153: --recheck update $as_me by reconfiguring in the same conditions
! 5154: --header=FILE[:TEMPLATE]
! 5155: instantiate the configuration header FILE
! 5156:
! 5157: Configuration headers:
! 5158: $config_headers
! 5159:
! 5160: Configuration commands:
! 5161: $config_commands
! 5162:
! 5163: Report bugs to <bug-autoconf@gnu.org>."
! 5164: _ACEOF
! 5165:
! 5166: cat >>$CONFIG_STATUS <<_ACEOF
! 5167: ac_cs_version="\\
! 5168: config.status
! 5169: configured by $0, generated by GNU Autoconf 2.57,
! 5170: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
! 5171:
! 5172: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
! 5173: Free Software Foundation, Inc.
! 5174: This config.status script is free software; the Free Software Foundation
! 5175: gives unlimited permission to copy, distribute and modify it."
! 5176: srcdir=$srcdir
! 5177: INSTALL="$INSTALL"
! 5178: _ACEOF
1.1 paf 5179:
1.2 ! paf 5180: cat >>$CONFIG_STATUS <<\_ACEOF
! 5181: # If no file are specified by the user, then we need to provide default
! 5182: # value. By we need to know if files were specified by the user.
! 5183: ac_need_defaults=:
! 5184: while test $# != 0
! 5185: do
! 5186: case $1 in
! 5187: --*=*)
! 5188: ac_option=`expr "x$1" : 'x\([^=]*\)='`
! 5189: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
! 5190: ac_shift=:
! 5191: ;;
! 5192: -*)
! 5193: ac_option=$1
! 5194: ac_optarg=$2
! 5195: ac_shift=shift
! 5196: ;;
! 5197: *) # This is not an option, so the user has probably given explicit
! 5198: # arguments.
! 5199: ac_option=$1
! 5200: ac_need_defaults=false;;
1.1 paf 5201: esac
5202:
1.2 ! paf 5203: case $ac_option in
! 5204: # Handling of the options.
! 5205: _ACEOF
! 5206: cat >>$CONFIG_STATUS <<\_ACEOF
! 5207: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
! 5208: ac_cs_recheck=: ;;
! 5209: --version | --vers* | -V )
! 5210: echo "$ac_cs_version"; exit 0 ;;
! 5211: --he | --h)
! 5212: # Conflict between --help and --header
! 5213: { { echo "$as_me:$LINENO: error: ambiguous option: $1
! 5214: Try \`$0 --help' for more information." >&5
! 5215: echo "$as_me: error: ambiguous option: $1
! 5216: Try \`$0 --help' for more information." >&2;}
! 5217: { (exit 1); exit 1; }; };;
! 5218: --help | --hel | -h )
! 5219: echo "$ac_cs_usage"; exit 0 ;;
! 5220: --debug | --d* | -d )
! 5221: debug=: ;;
! 5222: --file | --fil | --fi | --f )
! 5223: $ac_shift
! 5224: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
! 5225: ac_need_defaults=false;;
! 5226: --header | --heade | --head | --hea )
! 5227: $ac_shift
! 5228: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
! 5229: ac_need_defaults=false;;
! 5230: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
! 5231: | -silent | --silent | --silen | --sile | --sil | --si | --s)
! 5232: ac_cs_silent=: ;;
! 5233:
! 5234: # This is an error.
! 5235: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
! 5236: Try \`$0 --help' for more information." >&5
! 5237: echo "$as_me: error: unrecognized option: $1
! 5238: Try \`$0 --help' for more information." >&2;}
! 5239: { (exit 1); exit 1; }; } ;;
! 5240:
! 5241: *) ac_config_targets="$ac_config_targets $1" ;;
1.1 paf 5242:
5243: esac
1.2 ! paf 5244: shift
! 5245: done
! 5246:
! 5247: ac_configure_extra_args=
! 5248:
! 5249: if $ac_cs_silent; then
! 5250: exec 6>/dev/null
! 5251: ac_configure_extra_args="$ac_configure_extra_args --silent"
! 5252: fi
! 5253:
! 5254: _ACEOF
! 5255: cat >>$CONFIG_STATUS <<_ACEOF
! 5256: if \$ac_cs_recheck; then
! 5257: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
! 5258: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
! 5259: fi
! 5260:
! 5261: _ACEOF
! 5262:
! 5263: cat >>$CONFIG_STATUS <<_ACEOF
! 5264: #
! 5265: # INIT-COMMANDS section.
! 5266: #
! 5267:
! 5268: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
! 5269:
! 5270: _ACEOF
1.1 paf 5271:
1.2 ! paf 5272:
! 5273:
! 5274: cat >>$CONFIG_STATUS <<\_ACEOF
! 5275: for ac_config_target in $ac_config_targets
! 5276: do
! 5277: case "$ac_config_target" in
! 5278: # Handling of arguments.
! 5279: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
! 5280: "config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config_auto.h" ;;
! 5281: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
! 5282: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
! 5283: { (exit 1); exit 1; }; };;
1.1 paf 5284: esac
1.2 ! paf 5285: done
! 5286:
! 5287: # If the user did not use the arguments to specify the items to instantiate,
! 5288: # then the envvar interface is used. Set only those that are not.
! 5289: # We use the long form for the default assignment because of an extremely
! 5290: # bizarre bug on SunOS 4.1.3.
! 5291: if $ac_need_defaults; then
! 5292: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
! 5293: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
! 5294: fi
! 5295:
! 5296: # Have a temporary directory for convenience. Make it in the build tree
! 5297: # simply because there is no reason to put it here, and in addition,
! 5298: # creating and moving files from /tmp can sometimes cause problems.
! 5299: # Create a temporary directory, and hook for its removal unless debugging.
! 5300: $debug ||
! 5301: {
! 5302: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
! 5303: trap '{ (exit 1); exit 1; }' 1 2 13 15
! 5304: }
! 5305:
! 5306: # Create a (secure) tmp directory for tmp files.
! 5307:
! 5308: {
! 5309: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
! 5310: test -n "$tmp" && test -d "$tmp"
! 5311: } ||
! 5312: {
! 5313: tmp=./confstat$$-$RANDOM
! 5314: (umask 077 && mkdir $tmp)
! 5315: } ||
! 5316: {
! 5317: echo "$me: cannot create a temporary directory in ." >&2
! 5318: { (exit 1); exit 1; }
! 5319: }
! 5320:
! 5321: _ACEOF
1.1 paf 5322:
1.2 ! paf 5323: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 paf 5324:
1.2 ! paf 5325: #
! 5326: # CONFIG_HEADER section.
! 5327: #
1.1 paf 5328:
5329: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5330: # NAME is the cpp macro being defined and VALUE is the value it is being given.
5331: #
5332: # ac_d sets the value in "#define NAME VALUE" lines.
1.2 ! paf 5333: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
! 5334: ac_dB='[ ].*$,\1#\2'
! 5335: ac_dC=' '
! 5336: ac_dD=',;t'
! 5337: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
! 5338: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
! 5339: ac_uB='$,\1#\2define\3'
1.1 paf 5340: ac_uC=' '
1.2 ! paf 5341: ac_uD=',;t'
1.1 paf 5342:
1.2 ! paf 5343: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
1.1 paf 5344: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.2 ! paf 5345: case $ac_file in
! 5346: - | *:- | *:-:* ) # input from stdin
! 5347: cat >$tmp/stdin
! 5348: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
! 5349: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
! 5350: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
! 5351: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
! 5352: * ) ac_file_in=$ac_file.in ;;
1.1 paf 5353: esac
5354:
1.2 ! paf 5355: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
! 5356: echo "$as_me: creating $ac_file" >&6;}
1.1 paf 5357:
1.2 ! paf 5358: # First look for the input files in the build tree, otherwise in the
! 5359: # src tree.
! 5360: ac_file_inputs=`IFS=:
! 5361: for f in $ac_file_in; do
! 5362: case $f in
! 5363: -) echo $tmp/stdin ;;
! 5364: [\\/$]*)
! 5365: # Absolute (can't be DOS-style, as IFS=:)
! 5366: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
! 5367: echo "$as_me: error: cannot find input file: $f" >&2;}
! 5368: { (exit 1); exit 1; }; }
! 5369: echo $f;;
! 5370: *) # Relative
! 5371: if test -f "$f"; then
! 5372: # Build tree
! 5373: echo $f
! 5374: elif test -f "$srcdir/$f"; then
! 5375: # Source tree
! 5376: echo $srcdir/$f
! 5377: else
! 5378: # /dev/null tree
! 5379: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
! 5380: echo "$as_me: error: cannot find input file: $f" >&2;}
! 5381: { (exit 1); exit 1; }; }
! 5382: fi;;
! 5383: esac
! 5384: done` || { (exit 1); exit 1; }
! 5385: # Remove the trailing spaces.
! 5386: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
! 5387:
! 5388: _ACEOF
! 5389:
! 5390: # Transform confdefs.h into two sed scripts, `conftest.defines' and
! 5391: # `conftest.undefs', that substitutes the proper values into
! 5392: # config.h.in to produce config.h. The first handles `#define'
! 5393: # templates, and the second `#undef' templates.
! 5394: # And first: Protect against being on the right side of a sed subst in
! 5395: # config.status. Protect against being in an unquoted here document
! 5396: # in config.status.
! 5397: rm -f conftest.defines conftest.undefs
! 5398: # Using a here document instead of a string reduces the quoting nightmare.
! 5399: # Putting comments in sed scripts is not portable.
! 5400: #
! 5401: # `end' is used to avoid that the second main sed command (meant for
! 5402: # 0-ary CPP macros) applies to n-ary macro definitions.
! 5403: # See the Autoconf documentation for `clear'.
! 5404: cat >confdef2sed.sed <<\_ACEOF
! 5405: s/[\\&,]/\\&/g
! 5406: s,[\\$`],\\&,g
! 5407: t clear
! 5408: : clear
! 5409: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
! 5410: t end
! 5411: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
! 5412: : end
! 5413: _ACEOF
! 5414: # If some macros were called several times there might be several times
! 5415: # the same #defines, which is useless. Nevertheless, we may not want to
! 5416: # sort them, since we want the *last* AC-DEFINE to be honored.
! 5417: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
! 5418: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
! 5419: rm -f confdef2sed.sed
1.1 paf 5420:
5421: # This sed command replaces #undef with comments. This is necessary, for
5422: # example, in the case of _POSIX_SOURCE, which is predefined and required
5423: # on some systems where configure will not decide to define it.
1.2 ! paf 5424: cat >>conftest.undefs <<\_ACEOF
! 5425: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
! 5426: _ACEOF
! 5427:
! 5428: # Break up conftest.defines because some shells have a limit on the size
! 5429: # of here documents, and old seds have small limits too (100 cmds).
! 5430: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
! 5431: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
! 5432: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
! 5433: echo ' :' >>$CONFIG_STATUS
! 5434: rm -f conftest.tail
! 5435: while grep . conftest.defines >/dev/null
! 5436: do
! 5437: # Write a limited-size here document to $tmp/defines.sed.
! 5438: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
! 5439: # Speed up: don't consider the non `#define' lines.
! 5440: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
! 5441: # Work around the forget-to-reset-the-flag bug.
! 5442: echo 't clr' >>$CONFIG_STATUS
! 5443: echo ': clr' >>$CONFIG_STATUS
! 5444: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
! 5445: echo 'CEOF
! 5446: sed -f $tmp/defines.sed $tmp/in >$tmp/out
! 5447: rm -f $tmp/in
! 5448: mv $tmp/out $tmp/in
! 5449: ' >>$CONFIG_STATUS
! 5450: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
! 5451: rm -f conftest.defines
! 5452: mv conftest.tail conftest.defines
! 5453: done
! 5454: rm -f conftest.defines
! 5455: echo ' fi # grep' >>$CONFIG_STATUS
! 5456: echo >>$CONFIG_STATUS
! 5457:
! 5458: # Break up conftest.undefs because some shells have a limit on the size
! 5459: # of here documents, and old seds have small limits too (100 cmds).
! 5460: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
1.1 paf 5461: rm -f conftest.tail
1.2 ! paf 5462: while grep . conftest.undefs >/dev/null
1.1 paf 5463: do
1.2 ! paf 5464: # Write a limited-size here document to $tmp/undefs.sed.
! 5465: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
! 5466: # Speed up: don't consider the non `#undef'
! 5467: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
! 5468: # Work around the forget-to-reset-the-flag bug.
! 5469: echo 't clr' >>$CONFIG_STATUS
! 5470: echo ': clr' >>$CONFIG_STATUS
! 5471: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
1.1 paf 5472: echo 'CEOF
1.2 ! paf 5473: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
! 5474: rm -f $tmp/in
! 5475: mv $tmp/out $tmp/in
! 5476: ' >>$CONFIG_STATUS
! 5477: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
! 5478: rm -f conftest.undefs
! 5479: mv conftest.tail conftest.undefs
! 5480: done
! 5481: rm -f conftest.undefs
! 5482:
! 5483: cat >>$CONFIG_STATUS <<\_ACEOF
! 5484: # Let's still pretend it is `configure' which instantiates (i.e., don't
! 5485: # use $as_me), people would be surprised to read:
! 5486: # /* config.h. Generated by config.status. */
! 5487: if test x"$ac_file" = x-; then
! 5488: echo "/* Generated by configure. */" >$tmp/config.h
! 5489: else
! 5490: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
! 5491: fi
! 5492: cat $tmp/in >>$tmp/config.h
! 5493: rm -f $tmp/in
! 5494: if test x"$ac_file" != x-; then
! 5495: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
! 5496: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
! 5497: echo "$as_me: $ac_file is unchanged" >&6;}
! 5498: else
! 5499: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
! 5500: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 5501: X"$ac_file" : 'X\(//\)[^/]' \| \
! 5502: X"$ac_file" : 'X\(//\)$' \| \
! 5503: X"$ac_file" : 'X\(/\)' \| \
! 5504: . : '\(.\)' 2>/dev/null ||
! 5505: echo X"$ac_file" |
! 5506: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 5507: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 5508: /^X\(\/\/\)$/{ s//\1/; q; }
! 5509: /^X\(\/\).*/{ s//\1/; q; }
! 5510: s/.*/./; q'`
! 5511: { if $as_mkdir_p; then
! 5512: mkdir -p "$ac_dir"
! 5513: else
! 5514: as_dir="$ac_dir"
! 5515: as_dirs=
! 5516: while test ! -d "$as_dir"; do
! 5517: as_dirs="$as_dir $as_dirs"
! 5518: as_dir=`(dirname "$as_dir") 2>/dev/null ||
! 5519: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 5520: X"$as_dir" : 'X\(//\)[^/]' \| \
! 5521: X"$as_dir" : 'X\(//\)$' \| \
! 5522: X"$as_dir" : 'X\(/\)' \| \
! 5523: . : '\(.\)' 2>/dev/null ||
! 5524: echo X"$as_dir" |
! 5525: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 5526: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 5527: /^X\(\/\/\)$/{ s//\1/; q; }
! 5528: /^X\(\/\).*/{ s//\1/; q; }
! 5529: s/.*/./; q'`
! 5530: done
! 5531: test ! -n "$as_dirs" || mkdir $as_dirs
! 5532: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
! 5533: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
! 5534: { (exit 1); exit 1; }; }; }
! 5535:
! 5536: rm -f $ac_file
! 5537: mv $tmp/config.h $ac_file
1.1 paf 5538: fi
1.2 ! paf 5539: else
! 5540: cat $tmp/config.h
! 5541: rm -f $tmp/config.h
1.1 paf 5542: fi
1.2 ! paf 5543: _am_stamp_count=`expr ${_am_stamp_count-0} + 1`
! 5544: echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
! 5545: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 5546: X$ac_file : 'X\(//\)[^/]' \| \
! 5547: X$ac_file : 'X\(//\)$' \| \
! 5548: X$ac_file : 'X\(/\)' \| \
! 5549: . : '\(.\)' 2>/dev/null ||
! 5550: echo X$ac_file |
! 5551: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 5552: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 5553: /^X\(\/\/\)$/{ s//\1/; q; }
! 5554: /^X\(\/\).*/{ s//\1/; q; }
! 5555: s/.*/./; q'`/stamp-h$_am_stamp_count
! 5556: done
! 5557: _ACEOF
! 5558: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 paf 5559:
1.2 ! paf 5560: #
! 5561: # CONFIG_COMMANDS section.
! 5562: #
! 5563: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
! 5564: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
! 5565: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
! 5566: ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
! 5567: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 5568: X"$ac_dest" : 'X\(//\)[^/]' \| \
! 5569: X"$ac_dest" : 'X\(//\)$' \| \
! 5570: X"$ac_dest" : 'X\(/\)' \| \
! 5571: . : '\(.\)' 2>/dev/null ||
! 5572: echo X"$ac_dest" |
! 5573: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 5574: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 5575: /^X\(\/\/\)$/{ s//\1/; q; }
! 5576: /^X\(\/\).*/{ s//\1/; q; }
! 5577: s/.*/./; q'`
! 5578: ac_builddir=.
! 5579:
! 5580: if test "$ac_dir" != .; then
! 5581: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
! 5582: # A "../" for each directory in $ac_dir_suffix.
! 5583: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
! 5584: else
! 5585: ac_dir_suffix= ac_top_builddir=
! 5586: fi
! 5587:
! 5588: case $srcdir in
! 5589: .) # No --srcdir option. We are building in place.
! 5590: ac_srcdir=.
! 5591: if test -z "$ac_top_builddir"; then
! 5592: ac_top_srcdir=.
! 5593: else
! 5594: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
! 5595: fi ;;
! 5596: [\\/]* | ?:[\\/]* ) # Absolute path.
! 5597: ac_srcdir=$srcdir$ac_dir_suffix;
! 5598: ac_top_srcdir=$srcdir ;;
! 5599: *) # Relative path.
! 5600: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
! 5601: ac_top_srcdir=$ac_top_builddir$srcdir ;;
! 5602: esac
! 5603: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
! 5604: # absolute.
! 5605: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
! 5606: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
! 5607: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
! 5608: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
! 5609:
! 5610:
! 5611: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
! 5612: echo "$as_me: executing $ac_dest commands" >&6;}
! 5613: case $ac_dest in
! 5614: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
! 5615: # Strip MF so we end up with the name of the file.
! 5616: mf=`echo "$mf" | sed -e 's/:.*$//'`
! 5617: # Check whether this is an Automake generated Makefile or not.
! 5618: # We used to match only the files named `Makefile.in', but
! 5619: # some people rename them; so instead we look at the file content.
! 5620: # Grep'ing the first line is not enough: some people post-process
! 5621: # each Makefile.in and add a new line on top of each file to say so.
! 5622: # So let's grep whole file.
! 5623: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
! 5624: dirpart=`(dirname "$mf") 2>/dev/null ||
! 5625: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 5626: X"$mf" : 'X\(//\)[^/]' \| \
! 5627: X"$mf" : 'X\(//\)$' \| \
! 5628: X"$mf" : 'X\(/\)' \| \
! 5629: . : '\(.\)' 2>/dev/null ||
! 5630: echo X"$mf" |
! 5631: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 5632: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 5633: /^X\(\/\/\)$/{ s//\1/; q; }
! 5634: /^X\(\/\).*/{ s//\1/; q; }
! 5635: s/.*/./; q'`
! 5636: else
! 5637: continue
! 5638: fi
! 5639: grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
! 5640: # Extract the definition of DEP_FILES from the Makefile without
! 5641: # running `make'.
! 5642: DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
! 5643: test -z "$DEPDIR" && continue
! 5644: # When using ansi2knr, U may be empty or an underscore; expand it
! 5645: U=`sed -n -e '/^U = / s///p' < "$mf"`
! 5646: test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
! 5647: # We invoke sed twice because it is the simplest approach to
! 5648: # changing $(DEPDIR) to its actual value in the expansion.
! 5649: for file in `sed -n -e '
! 5650: /^DEP_FILES = .*\\\\$/ {
! 5651: s/^DEP_FILES = //
! 5652: :loop
! 5653: s/\\\\$//
! 5654: p
! 5655: n
! 5656: /\\\\$/ b loop
! 5657: p
! 5658: }
! 5659: /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
! 5660: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
! 5661: # Make sure the directory exists.
! 5662: test -f "$dirpart/$file" && continue
! 5663: fdir=`(dirname "$file") 2>/dev/null ||
! 5664: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 5665: X"$file" : 'X\(//\)[^/]' \| \
! 5666: X"$file" : 'X\(//\)$' \| \
! 5667: X"$file" : 'X\(/\)' \| \
! 5668: . : '\(.\)' 2>/dev/null ||
! 5669: echo X"$file" |
! 5670: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 5671: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 5672: /^X\(\/\/\)$/{ s//\1/; q; }
! 5673: /^X\(\/\).*/{ s//\1/; q; }
! 5674: s/.*/./; q'`
! 5675: { if $as_mkdir_p; then
! 5676: mkdir -p $dirpart/$fdir
! 5677: else
! 5678: as_dir=$dirpart/$fdir
! 5679: as_dirs=
! 5680: while test ! -d "$as_dir"; do
! 5681: as_dirs="$as_dir $as_dirs"
! 5682: as_dir=`(dirname "$as_dir") 2>/dev/null ||
! 5683: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 5684: X"$as_dir" : 'X\(//\)[^/]' \| \
! 5685: X"$as_dir" : 'X\(//\)$' \| \
! 5686: X"$as_dir" : 'X\(/\)' \| \
! 5687: . : '\(.\)' 2>/dev/null ||
! 5688: echo X"$as_dir" |
! 5689: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 5690: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 5691: /^X\(\/\/\)$/{ s//\1/; q; }
! 5692: /^X\(\/\).*/{ s//\1/; q; }
! 5693: s/.*/./; q'`
! 5694: done
! 5695: test ! -n "$as_dirs" || mkdir $as_dirs
! 5696: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
! 5697: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
! 5698: { (exit 1); exit 1; }; }; }
1.1 paf 5699:
1.2 ! paf 5700: # echo "creating $dirpart/$file"
! 5701: echo '# dummy' > "$dirpart/$file"
! 5702: done
! 5703: done
! 5704: ;;
! 5705: esac
! 5706: done
! 5707: _ACEOF
1.1 paf 5708:
1.2 ! paf 5709: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 paf 5710:
1.2 ! paf 5711: { (exit 0); exit 0; }
! 5712: _ACEOF
1.1 paf 5713: chmod +x $CONFIG_STATUS
1.2 ! paf 5714: ac_clean_files=$ac_clean_files_save
! 5715:
! 5716:
! 5717: # configure is writing to config.log, and then calls config.status.
! 5718: # config.status does its own redirection, appending to config.log.
! 5719: # Unfortunately, on DOS this fails, as config.log is still kept open
! 5720: # by configure, so config.status won't be able to write to it; its
! 5721: # output is simply discarded. So we exec the FD to /dev/null,
! 5722: # effectively closing config.log, so it can be properly (re)opened and
! 5723: # appended to by config.status. When coming back to configure, we
! 5724: # need to make the FD available again.
! 5725: if test "$no_create" != yes; then
! 5726: ac_cs_success=:
! 5727: ac_config_status_args=
! 5728: test "$silent" = yes &&
! 5729: ac_config_status_args="$ac_config_status_args --quiet"
! 5730: exec 5>/dev/null
! 5731: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
! 5732: exec 5>>config.log
! 5733: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
! 5734: # would make configure fail if this is the last instruction.
! 5735: $ac_cs_success || { (exit 1); exit 1; }
! 5736: fi
1.1 paf 5737:
5738:
5739: # Local Variables:
5740: # mode:shell-script
5741: # sh-indentation:2
5742: # End:
E-mail: