Annotation of OpenXM_contrib2/asir2000/gc/configure, Revision 1.3
1.1 noro 1: #! /bin/sh
1.3 ! noro 2: # From configure.in Revision: 1.2 .
1.1 noro 3: # Guess values for system-dependent variables and create Makefiles.
1.3 ! noro 4: # Generated by GNU Autoconf 2.53 for gc 6.2alpha6.
1.1 noro 5: #
1.3 ! noro 6: # Report bugs to <Hans.Boehm@hp.com>.
1.1 noro 7: #
1.3 ! noro 8: # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1.1 noro 9: # Free Software Foundation, Inc.
10: # This configure script is free software; the Free Software Foundation
11: # gives unlimited permission to copy, distribute and modify it.
12:
13: # Find the correct PATH separator. Usually this is `:', but
14: # DJGPP uses `;' like DOS.
15: if test "X${PATH_SEPARATOR+set}" != Xset; then
16: UNAME=${UNAME-`uname 2>/dev/null`}
17: case X$UNAME in
18: *-DOS) lt_cv_sys_path_separator=';' ;;
19: *) lt_cv_sys_path_separator=':' ;;
20: esac
21: PATH_SEPARATOR=$lt_cv_sys_path_separator
22: fi
23:
1.3 ! noro 24:
1.1 noro 25: # Check that we are running under the correct shell.
26: SHELL=${CONFIG_SHELL-/bin/sh}
27:
28: case X$ECHO in
29: X*--fallback-echo)
30: # Remove one level of quotation (which was required for Make).
31: ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
32: ;;
33: esac
34:
35: echo=${ECHO-echo}
36: if test "X$1" = X--no-reexec; then
37: # Discard the --no-reexec flag, and continue.
38: shift
39: elif test "X$1" = X--fallback-echo; then
40: # Avoid inline document here, it may be left over
41: :
42: elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
43: # Yippee, $echo works!
44: :
45: else
46: # Restart under the correct shell.
47: exec $SHELL "$0" --no-reexec ${1+"$@"}
48: fi
49:
50: if test "X$1" = X--fallback-echo; then
51: # used as fallback echo
52: shift
53: cat <<EOF
54:
55: EOF
56: exit 0
57: fi
58:
59: # The HP-UX ksh and POSIX shell print the target directory to stdout
60: # if CDPATH is set.
61: if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
62:
63: if test -z "$ECHO"; then
64: if test "X${echo_test_string+set}" != Xset; then
65: # find a string as large as possible, as long as the shell can cope with it
66: for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
67: # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
68: if (echo_test_string="`eval $cmd`") 2>/dev/null &&
69: echo_test_string="`eval $cmd`" &&
70: (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
71: then
72: break
73: fi
74: done
75: fi
76:
77: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
78: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
79: test "X$echo_testing_string" = "X$echo_test_string"; then
80: :
81: else
82: # The Solaris, AIX, and Digital Unix default echo programs unquote
83: # backslashes. This makes it impossible to quote backslashes using
84: # echo "$something" | sed 's/\\/\\\\/g'
85: #
86: # So, first we look for a working echo in the user's PATH.
87:
88: IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
89: for dir in $PATH /usr/ucb; do
90: if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
91: test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
92: echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
93: test "X$echo_testing_string" = "X$echo_test_string"; then
94: echo="$dir/echo"
95: break
96: fi
97: done
98: IFS="$save_ifs"
99:
100: if test "X$echo" = Xecho; then
101: # We didn't find a better echo, so look for alternatives.
102: if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
103: echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
104: test "X$echo_testing_string" = "X$echo_test_string"; then
105: # This shell has a builtin print -r that does the trick.
106: echo='print -r'
107: elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
108: test "X$CONFIG_SHELL" != X/bin/ksh; then
109: # If we have ksh, try running configure again with it.
110: ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
111: export ORIGINAL_CONFIG_SHELL
112: CONFIG_SHELL=/bin/ksh
113: export CONFIG_SHELL
114: exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
115: else
116: # Try using printf.
117: echo='printf %s\n'
118: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
119: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
120: test "X$echo_testing_string" = "X$echo_test_string"; then
121: # Cool, printf works
122: :
123: elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
124: test "X$echo_testing_string" = 'X\t' &&
125: echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
126: test "X$echo_testing_string" = "X$echo_test_string"; then
127: CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
128: export CONFIG_SHELL
129: SHELL="$CONFIG_SHELL"
130: export SHELL
131: echo="$CONFIG_SHELL $0 --fallback-echo"
132: elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
133: test "X$echo_testing_string" = 'X\t' &&
134: echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
135: test "X$echo_testing_string" = "X$echo_test_string"; then
136: echo="$CONFIG_SHELL $0 --fallback-echo"
137: else
138: # maybe with a smaller string...
139: prev=:
140:
141: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
142: if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
143: then
144: break
145: fi
146: prev="$cmd"
147: done
148:
149: if test "$prev" != 'sed 50q "$0"'; then
150: echo_test_string=`eval $prev`
151: export echo_test_string
152: exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
153: else
154: # Oops. We lost completely, so just stick with echo.
155: echo=echo
156: fi
157: fi
158: fi
159: fi
160: fi
161: fi
162:
163: # Copy echo and quote the copy suitably for passing to libtool from
164: # the Makefile, instead of quoting the original, which is used later.
165: ECHO=$echo
166: if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
167: ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
168: fi
169:
170:
171:
1.3 ! noro 172: if expr a : '\(a\)' >/dev/null 2>&1; then
! 173: as_expr=expr
! 174: else
! 175: as_expr=false
! 176: fi
! 177:
! 178:
! 179: ## --------------------- ##
! 180: ## M4sh Initialization. ##
! 181: ## --------------------- ##
1.1 noro 182:
183: # Be Bourne compatible
184: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
185: emulate sh
186: NULLCMD=:
187: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
188: set -o posix
189: fi
190:
1.3 ! noro 191: # NLS nuisances.
! 192: # Support unset when possible.
! 193: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
! 194: as_unset=unset
! 195: else
! 196: as_unset=false
! 197: fi
! 198:
! 199: (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
! 200: { $as_unset LANG || test "${LANG+set}" != set; } ||
! 201: { LANG=C; export LANG; }
! 202: (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
! 203: { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
! 204: { LC_ALL=C; export LC_ALL; }
! 205: (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
! 206: { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
! 207: { LC_TIME=C; export LC_TIME; }
! 208: (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
! 209: { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
! 210: { LC_CTYPE=C; export LC_CTYPE; }
! 211: (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
! 212: { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
! 213: { LANGUAGE=C; export LANGUAGE; }
! 214: (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
! 215: { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
! 216: { LC_COLLATE=C; export LC_COLLATE; }
! 217: (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
! 218: { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
! 219: { LC_NUMERIC=C; export LC_NUMERIC; }
! 220: (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
! 221: { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
! 222: { LC_MESSAGES=C; export LC_MESSAGES; }
! 223:
! 224:
1.1 noro 225: # Name of the executable.
1.3 ! noro 226: as_me=`(basename "$0") 2>/dev/null ||
! 227: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
! 228: X"$0" : 'X\(//\)$' \| \
! 229: X"$0" : 'X\(/\)$' \| \
! 230: . : '\(.\)' 2>/dev/null ||
! 231: echo X/"$0" |
! 232: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
! 233: /^X\/\(\/\/\)$/{ s//\1/; q; }
! 234: /^X\/\(\/\).*/{ s//\1/; q; }
! 235: s/.*/./; q'`
! 236:
! 237: # PATH needs CR, and LINENO needs CR and PATH.
! 238: # Avoid depending upon Character Ranges.
! 239: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
! 240: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
! 241: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
! 242: as_cr_digits='0123456789'
! 243: as_cr_alnum=$as_cr_Letters$as_cr_digits
! 244:
! 245: # The user is always right.
! 246: if test "${PATH_SEPARATOR+set}" != set; then
! 247: echo "#! /bin/sh" >conftest.sh
! 248: echo "exit 0" >>conftest.sh
! 249: chmod +x conftest.sh
! 250: if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
! 251: PATH_SEPARATOR=';'
! 252: else
! 253: PATH_SEPARATOR=:
! 254: fi
! 255: rm -f conftest.sh
! 256: fi
! 257:
! 258:
! 259: as_lineno_1=$LINENO
! 260: as_lineno_2=$LINENO
! 261: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
! 262: test "x$as_lineno_1" != "x$as_lineno_2" &&
! 263: test "x$as_lineno_3" = "x$as_lineno_2" || {
! 264: # Find who we are. Look in the path if we contain no path at all
! 265: # relative or not.
! 266: case $0 in
! 267: *[\\/]* ) as_myself=$0 ;;
! 268: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 269: for as_dir in $PATH
! 270: do
! 271: IFS=$as_save_IFS
! 272: test -z "$as_dir" && as_dir=.
! 273: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
! 274: done
! 275:
! 276: ;;
! 277: esac
! 278: # We did not find ourselves, most probably we were run as `sh COMMAND'
! 279: # in which case we are not to be found in the path.
! 280: if test "x$as_myself" = x; then
! 281: as_myself=$0
! 282: fi
! 283: if test ! -f "$as_myself"; then
! 284: { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
! 285: { (exit 1); exit 1; }; }
! 286: fi
! 287: case $CONFIG_SHELL in
! 288: '')
! 289: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 290: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
! 291: do
! 292: IFS=$as_save_IFS
! 293: test -z "$as_dir" && as_dir=.
! 294: for as_base in sh bash ksh sh5; do
! 295: case $as_dir in
! 296: /*)
! 297: if ("$as_dir/$as_base" -c '
! 298: as_lineno_1=$LINENO
! 299: as_lineno_2=$LINENO
! 300: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
! 301: test "x$as_lineno_1" != "x$as_lineno_2" &&
! 302: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
! 303: CONFIG_SHELL=$as_dir/$as_base
! 304: export CONFIG_SHELL
! 305: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
! 306: fi;;
! 307: esac
! 308: done
! 309: done
! 310: ;;
! 311: esac
! 312:
! 313: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
! 314: # uniformly replaced by the line number. The first 'sed' inserts a
! 315: # line-number line before each line; the second 'sed' does the real
! 316: # work. The second script uses 'N' to pair each line-number line
! 317: # with the numbered line, and appends trailing '-' during
! 318: # substitution so that $LINENO is not a special case at line end.
! 319: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
! 320: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
! 321: sed '=' <$as_myself |
! 322: sed '
! 323: N
! 324: s,$,-,
! 325: : loop
! 326: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
! 327: t loop
! 328: s,-$,,
! 329: s,^['$as_cr_digits']*\n,,
! 330: ' >$as_me.lineno &&
! 331: chmod +x $as_me.lineno ||
! 332: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
! 333: { (exit 1); exit 1; }; }
! 334:
! 335: # Don't try to exec as it changes $[0], causing all sort of problems
! 336: # (the dirname of $[0] is not the place where we might find the
! 337: # original and so on. Autoconf is especially sensible to this).
! 338: . ./$as_me.lineno
! 339: # Exit status is that of the last command.
! 340: exit
! 341: }
! 342:
! 343:
! 344: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
! 345: *c*,-n*) ECHO_N= ECHO_C='
! 346: ' ECHO_T=' ' ;;
! 347: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
! 348: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
! 349: esac
1.1 noro 350:
351: if expr a : '\(a\)' >/dev/null 2>&1; then
352: as_expr=expr
353: else
354: as_expr=false
355: fi
356:
357: rm -f conf$$ conf$$.exe conf$$.file
358: echo >conf$$.file
359: if ln -s conf$$.file conf$$ 2>/dev/null; then
360: # We could just check for DJGPP; but this test a) works b) is more generic
361: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
362: if test -f conf$$.exe; then
363: # Don't use ln at all; we don't have any links
364: as_ln_s='cp -p'
365: else
366: as_ln_s='ln -s'
367: fi
368: elif ln conf$$.file conf$$ 2>/dev/null; then
369: as_ln_s=ln
370: else
371: as_ln_s='cp -p'
372: fi
373: rm -f conf$$ conf$$.exe conf$$.file
374:
375: as_executable_p="test -f"
376:
1.3 ! noro 377: # Sed expression to map a string onto a valid CPP name.
! 378: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
! 379:
! 380: # Sed expression to map a string onto a valid variable name.
! 381: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
1.1 noro 382:
383:
384: # IFS
385: # We need space, tab and new line, in precisely that order.
386: as_nl='
387: '
388: IFS=" $as_nl"
389:
390: # CDPATH.
1.3 ! noro 391: $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
! 392:
1.1 noro 393:
394: # Name of the host.
395: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
396: # so uname gets run too.
397: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
398:
399: exec 6>&1
400:
401: #
402: # Initializations.
403: #
404: ac_default_prefix=/usr/local
405: cross_compiling=no
406: subdirs=
1.3 ! noro 407: MFLAGS=
! 408: MAKEFLAGS=
1.1 noro 409: SHELL=${CONFIG_SHELL-/bin/sh}
410:
411: # Maximum number of lines to put in a shell here document.
412: # This variable seems obsolete. It should probably be removed, and
413: # only ac_max_sed_lines should be used.
414: : ${ac_max_here_lines=38}
415:
1.3 ! noro 416: # Identity of this package.
! 417: PACKAGE_NAME='gc'
! 418: PACKAGE_TARNAME='gc'
! 419: PACKAGE_VERSION='6.2alpha6'
! 420: PACKAGE_STRING='gc 6.2alpha6'
! 421: PACKAGE_BUGREPORT='Hans.Boehm@hp.com'
! 422:
1.1 noro 423: ac_unique_file="gcj_mlc.c"
1.3 ! noro 424: # Factoring default headers for most tests.
! 425: ac_includes_default="\
! 426: #include <stdio.h>
! 427: #if HAVE_SYS_TYPES_H
! 428: # include <sys/types.h>
! 429: #endif
! 430: #if HAVE_SYS_STAT_H
! 431: # include <sys/stat.h>
! 432: #endif
! 433: #if STDC_HEADERS
! 434: # include <stdlib.h>
! 435: # include <stddef.h>
! 436: #else
! 437: # if HAVE_STDLIB_H
! 438: # include <stdlib.h>
! 439: # endif
! 440: #endif
! 441: #if HAVE_STRING_H
! 442: # if !STDC_HEADERS && HAVE_MEMORY_H
! 443: # include <memory.h>
! 444: # endif
! 445: # include <string.h>
! 446: #endif
! 447: #if HAVE_STRINGS_H
! 448: # include <strings.h>
! 449: #endif
! 450: #if HAVE_INTTYPES_H
! 451: # include <inttypes.h>
! 452: #else
! 453: # if HAVE_STDINT_H
! 454: # include <stdint.h>
! 455: # endif
! 456: #endif
! 457: #if HAVE_UNISTD_H
! 458: # include <unistd.h>
! 459: #endif"
! 460:
1.1 noro 461:
462: # Initialize some variables set by options.
463: ac_init_help=
464: ac_init_version=false
465: # The variables have the same names as the options, with
466: # dashes changed to underlines.
467: cache_file=/dev/null
468: exec_prefix=NONE
469: no_create=
470: no_recursion=
471: prefix=NONE
472: program_prefix=NONE
473: program_suffix=NONE
474: program_transform_name=s,x,x,
475: silent=
476: site=
477: srcdir=
478: verbose=
479: x_includes=NONE
480: x_libraries=NONE
481:
482: # Installation directory options.
483: # These are left unexpanded so users can "make install exec_prefix=/foo"
484: # and all the variables that are supposed to be based on exec_prefix
485: # by default will actually change.
486: # Use braces instead of parens because sh, perl, etc. also accept them.
487: bindir='${exec_prefix}/bin'
488: sbindir='${exec_prefix}/sbin'
489: libexecdir='${exec_prefix}/libexec'
490: datadir='${prefix}/share'
491: sysconfdir='${prefix}/etc'
492: sharedstatedir='${prefix}/com'
493: localstatedir='${prefix}/var'
494: libdir='${exec_prefix}/lib'
495: includedir='${prefix}/include'
496: oldincludedir='/usr/include'
497: infodir='${prefix}/info'
498: mandir='${prefix}/man'
499:
500: ac_prev=
501: for ac_option
502: do
503: # If the previous option needs an argument, assign it.
504: if test -n "$ac_prev"; then
505: eval "$ac_prev=\$ac_option"
506: ac_prev=
507: continue
508: fi
509:
510: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
511:
512: # Accept the important Cygnus configure options, so we can diagnose typos.
513:
514: case $ac_option in
515:
516: -bindir | --bindir | --bindi | --bind | --bin | --bi)
517: ac_prev=bindir ;;
518: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
519: bindir=$ac_optarg ;;
520:
521: -build | --build | --buil | --bui | --bu)
522: ac_prev=build_alias ;;
523: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
524: build_alias=$ac_optarg ;;
525:
526: -cache-file | --cache-file | --cache-fil | --cache-fi \
527: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
528: ac_prev=cache_file ;;
529: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
530: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
531: cache_file=$ac_optarg ;;
532:
533: --config-cache | -C)
534: cache_file=config.cache ;;
535:
536: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
537: ac_prev=datadir ;;
538: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
539: | --da=*)
540: datadir=$ac_optarg ;;
541:
542: -disable-* | --disable-*)
543: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
544: # Reject names that are not valid shell variable names.
545: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
546: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
547: { (exit 1); exit 1; }; }
548: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
549: eval "enable_$ac_feature=no" ;;
550:
551: -enable-* | --enable-*)
552: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
553: # Reject names that are not valid shell variable names.
554: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556: { (exit 1); exit 1; }; }
557: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558: case $ac_option in
559: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
560: *) ac_optarg=yes ;;
561: esac
562: eval "enable_$ac_feature='$ac_optarg'" ;;
563:
564: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
565: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
566: | --exec | --exe | --ex)
567: ac_prev=exec_prefix ;;
568: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
569: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
570: | --exec=* | --exe=* | --ex=*)
571: exec_prefix=$ac_optarg ;;
572:
573: -gas | --gas | --ga | --g)
574: # Obsolete; use --with-gas.
575: with_gas=yes ;;
576:
577: -help | --help | --hel | --he | -h)
578: ac_init_help=long ;;
579: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
580: ac_init_help=recursive ;;
581: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
582: ac_init_help=short ;;
583:
584: -host | --host | --hos | --ho)
585: ac_prev=host_alias ;;
586: -host=* | --host=* | --hos=* | --ho=*)
587: host_alias=$ac_optarg ;;
588:
589: -includedir | --includedir | --includedi | --included | --include \
590: | --includ | --inclu | --incl | --inc)
591: ac_prev=includedir ;;
592: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
593: | --includ=* | --inclu=* | --incl=* | --inc=*)
594: includedir=$ac_optarg ;;
595:
596: -infodir | --infodir | --infodi | --infod | --info | --inf)
597: ac_prev=infodir ;;
598: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
599: infodir=$ac_optarg ;;
600:
601: -libdir | --libdir | --libdi | --libd)
602: ac_prev=libdir ;;
603: -libdir=* | --libdir=* | --libdi=* | --libd=*)
604: libdir=$ac_optarg ;;
605:
606: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
607: | --libexe | --libex | --libe)
608: ac_prev=libexecdir ;;
609: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
610: | --libexe=* | --libex=* | --libe=*)
611: libexecdir=$ac_optarg ;;
612:
613: -localstatedir | --localstatedir | --localstatedi | --localstated \
614: | --localstate | --localstat | --localsta | --localst \
615: | --locals | --local | --loca | --loc | --lo)
616: ac_prev=localstatedir ;;
617: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
618: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
619: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
620: localstatedir=$ac_optarg ;;
621:
622: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
623: ac_prev=mandir ;;
624: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
625: mandir=$ac_optarg ;;
626:
627: -nfp | --nfp | --nf)
628: # Obsolete; use --without-fp.
629: with_fp=no ;;
630:
631: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.3 ! noro 632: | --no-cr | --no-c | -n)
1.1 noro 633: no_create=yes ;;
634:
635: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
636: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
637: no_recursion=yes ;;
638:
639: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
640: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
641: | --oldin | --oldi | --old | --ol | --o)
642: ac_prev=oldincludedir ;;
643: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
644: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
645: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
646: oldincludedir=$ac_optarg ;;
647:
648: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
649: ac_prev=prefix ;;
650: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
651: prefix=$ac_optarg ;;
652:
653: -program-prefix | --program-prefix | --program-prefi | --program-pref \
654: | --program-pre | --program-pr | --program-p)
655: ac_prev=program_prefix ;;
656: -program-prefix=* | --program-prefix=* | --program-prefi=* \
657: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
658: program_prefix=$ac_optarg ;;
659:
660: -program-suffix | --program-suffix | --program-suffi | --program-suff \
661: | --program-suf | --program-su | --program-s)
662: ac_prev=program_suffix ;;
663: -program-suffix=* | --program-suffix=* | --program-suffi=* \
664: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
665: program_suffix=$ac_optarg ;;
666:
667: -program-transform-name | --program-transform-name \
668: | --program-transform-nam | --program-transform-na \
669: | --program-transform-n | --program-transform- \
670: | --program-transform | --program-transfor \
671: | --program-transfo | --program-transf \
672: | --program-trans | --program-tran \
673: | --progr-tra | --program-tr | --program-t)
674: ac_prev=program_transform_name ;;
675: -program-transform-name=* | --program-transform-name=* \
676: | --program-transform-nam=* | --program-transform-na=* \
677: | --program-transform-n=* | --program-transform-=* \
678: | --program-transform=* | --program-transfor=* \
679: | --program-transfo=* | --program-transf=* \
680: | --program-trans=* | --program-tran=* \
681: | --progr-tra=* | --program-tr=* | --program-t=*)
682: program_transform_name=$ac_optarg ;;
683:
684: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
685: | -silent | --silent | --silen | --sile | --sil)
686: silent=yes ;;
687:
688: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
689: ac_prev=sbindir ;;
690: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
691: | --sbi=* | --sb=*)
692: sbindir=$ac_optarg ;;
693:
694: -sharedstatedir | --sharedstatedir | --sharedstatedi \
695: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
696: | --sharedst | --shareds | --shared | --share | --shar \
697: | --sha | --sh)
698: ac_prev=sharedstatedir ;;
699: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
700: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
701: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
702: | --sha=* | --sh=*)
703: sharedstatedir=$ac_optarg ;;
704:
705: -site | --site | --sit)
706: ac_prev=site ;;
707: -site=* | --site=* | --sit=*)
708: site=$ac_optarg ;;
709:
710: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
711: ac_prev=srcdir ;;
712: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
713: srcdir=$ac_optarg ;;
714:
715: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
716: | --syscon | --sysco | --sysc | --sys | --sy)
717: ac_prev=sysconfdir ;;
718: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
719: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
720: sysconfdir=$ac_optarg ;;
721:
722: -target | --target | --targe | --targ | --tar | --ta | --t)
723: ac_prev=target_alias ;;
724: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
725: target_alias=$ac_optarg ;;
726:
727: -v | -verbose | --verbose | --verbos | --verbo | --verb)
728: verbose=yes ;;
729:
730: -version | --version | --versio | --versi | --vers | -V)
731: ac_init_version=: ;;
732:
733: -with-* | --with-*)
734: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
735: # Reject names that are not valid shell variable names.
736: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
737: { echo "$as_me: error: invalid package name: $ac_package" >&2
738: { (exit 1); exit 1; }; }
739: ac_package=`echo $ac_package| sed 's/-/_/g'`
740: case $ac_option in
741: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
742: *) ac_optarg=yes ;;
743: esac
744: eval "with_$ac_package='$ac_optarg'" ;;
745:
746: -without-* | --without-*)
747: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
748: # Reject names that are not valid shell variable names.
749: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
750: { echo "$as_me: error: invalid package name: $ac_package" >&2
751: { (exit 1); exit 1; }; }
752: ac_package=`echo $ac_package | sed 's/-/_/g'`
753: eval "with_$ac_package=no" ;;
754:
755: --x)
756: # Obsolete; use --with-x.
757: with_x=yes ;;
758:
759: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
760: | --x-incl | --x-inc | --x-in | --x-i)
761: ac_prev=x_includes ;;
762: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
763: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
764: x_includes=$ac_optarg ;;
765:
766: -x-libraries | --x-libraries | --x-librarie | --x-librari \
767: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
768: ac_prev=x_libraries ;;
769: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
770: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
771: x_libraries=$ac_optarg ;;
772:
773: -*) { echo "$as_me: error: unrecognized option: $ac_option
774: Try \`$0 --help' for more information." >&2
775: { (exit 1); exit 1; }; }
776: ;;
777:
778: *=*)
779: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
780: # Reject names that are not valid shell variable names.
781: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
782: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
783: { (exit 1); exit 1; }; }
784: ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
785: eval "$ac_envvar='$ac_optarg'"
786: export $ac_envvar ;;
787:
788: *)
789: # FIXME: should be removed in autoconf 3.0.
790: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
791: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
792: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
793: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
794: ;;
795:
796: esac
797: done
798:
799: if test -n "$ac_prev"; then
800: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
801: { echo "$as_me: error: missing argument to $ac_option" >&2
802: { (exit 1); exit 1; }; }
803: fi
804:
805: # Be sure to have absolute paths.
806: for ac_var in exec_prefix prefix
807: do
808: eval ac_val=$`echo $ac_var`
809: case $ac_val in
810: [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
1.3 ! noro 811: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1.1 noro 812: { (exit 1); exit 1; }; };;
813: esac
814: done
815:
816: # Be sure to have absolute paths.
817: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
818: localstatedir libdir includedir oldincludedir infodir mandir
819: do
820: eval ac_val=$`echo $ac_var`
821: case $ac_val in
822: [\\/$]* | ?:[\\/]* ) ;;
1.3 ! noro 823: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1.1 noro 824: { (exit 1); exit 1; }; };;
825: esac
826: done
827:
828: # There might be people who depend on the old broken behavior: `$host'
829: # used to hold the argument of --host etc.
1.3 ! noro 830: # FIXME: To remove some day.
1.1 noro 831: build=$build_alias
832: host=$host_alias
833: target=$target_alias
834:
1.3 ! noro 835: # FIXME: To remove some day.
1.1 noro 836: if test "x$host_alias" != x; then
837: if test "x$build_alias" = x; then
838: cross_compiling=maybe
839: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
840: If a cross compiler is detected then cross compile mode will be used." >&2
841: elif test "x$build_alias" != "x$host_alias"; then
842: cross_compiling=yes
843: fi
844: fi
845:
846: ac_tool_prefix=
847: test -n "$host_alias" && ac_tool_prefix=$host_alias-
848:
849: test "$silent" = yes && exec 6>/dev/null
850:
1.3 ! noro 851:
1.1 noro 852: # Find the source files, if location was not specified.
853: if test -z "$srcdir"; then
854: ac_srcdir_defaulted=yes
855: # Try the directory containing this script, then its parent.
1.3 ! noro 856: ac_confdir=`(dirname "$0") 2>/dev/null ||
! 857: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 858: X"$0" : 'X\(//\)[^/]' \| \
! 859: X"$0" : 'X\(//\)$' \| \
! 860: X"$0" : 'X\(/\)' \| \
! 861: . : '\(.\)' 2>/dev/null ||
! 862: echo X"$0" |
! 863: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 864: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 865: /^X\(\/\/\)$/{ s//\1/; q; }
! 866: /^X\(\/\).*/{ s//\1/; q; }
! 867: s/.*/./; q'`
1.1 noro 868: srcdir=$ac_confdir
869: if test ! -r $srcdir/$ac_unique_file; then
870: srcdir=..
871: fi
872: else
873: ac_srcdir_defaulted=no
874: fi
875: if test ! -r $srcdir/$ac_unique_file; then
876: if test "$ac_srcdir_defaulted" = yes; then
1.3 ! noro 877: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
1.1 noro 878: { (exit 1); exit 1; }; }
879: else
1.3 ! noro 880: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1.1 noro 881: { (exit 1); exit 1; }; }
882: fi
883: fi
884: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
885: ac_env_build_alias_set=${build_alias+set}
886: ac_env_build_alias_value=$build_alias
887: ac_cv_env_build_alias_set=${build_alias+set}
888: ac_cv_env_build_alias_value=$build_alias
889: ac_env_host_alias_set=${host_alias+set}
890: ac_env_host_alias_value=$host_alias
891: ac_cv_env_host_alias_set=${host_alias+set}
892: ac_cv_env_host_alias_value=$host_alias
893: ac_env_target_alias_set=${target_alias+set}
894: ac_env_target_alias_value=$target_alias
895: ac_cv_env_target_alias_set=${target_alias+set}
896: ac_cv_env_target_alias_value=$target_alias
897: ac_env_CC_set=${CC+set}
898: ac_env_CC_value=$CC
899: ac_cv_env_CC_set=${CC+set}
900: ac_cv_env_CC_value=$CC
901: ac_env_CFLAGS_set=${CFLAGS+set}
902: ac_env_CFLAGS_value=$CFLAGS
903: ac_cv_env_CFLAGS_set=${CFLAGS+set}
904: ac_cv_env_CFLAGS_value=$CFLAGS
905: ac_env_LDFLAGS_set=${LDFLAGS+set}
906: ac_env_LDFLAGS_value=$LDFLAGS
907: ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
908: ac_cv_env_LDFLAGS_value=$LDFLAGS
909: ac_env_CPPFLAGS_set=${CPPFLAGS+set}
910: ac_env_CPPFLAGS_value=$CPPFLAGS
911: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
912: ac_cv_env_CPPFLAGS_value=$CPPFLAGS
913: ac_env_CXX_set=${CXX+set}
914: ac_env_CXX_value=$CXX
915: ac_cv_env_CXX_set=${CXX+set}
916: ac_cv_env_CXX_value=$CXX
917: ac_env_CXXFLAGS_set=${CXXFLAGS+set}
918: ac_env_CXXFLAGS_value=$CXXFLAGS
919: ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
920: ac_cv_env_CXXFLAGS_value=$CXXFLAGS
921: ac_env_CPP_set=${CPP+set}
922: ac_env_CPP_value=$CPP
923: ac_cv_env_CPP_set=${CPP+set}
924: ac_cv_env_CPP_value=$CPP
925:
926: #
927: # Report the --help message.
928: #
929: if test "$ac_init_help" = "long"; then
930: # Omit some internal or obsolete options to make the list less imposing.
931: # This message is too long to be a string in the A/UX 3.1 sh.
1.3 ! noro 932: cat <<_ACEOF
! 933: \`configure' configures gc 6.2alpha6 to adapt to many kinds of systems.
1.1 noro 934:
935: Usage: $0 [OPTION]... [VAR=VALUE]...
936:
937: To assign environment variables (e.g., CC, CFLAGS...), specify them as
938: VAR=VALUE. See below for descriptions of some of the useful variables.
939:
940: Defaults for the options are specified in brackets.
941:
942: Configuration:
943: -h, --help display this help and exit
944: --help=short display options specific to this package
945: --help=recursive display the short help of all the included packages
946: -V, --version display version information and exit
947: -q, --quiet, --silent do not print \`checking...' messages
948: --cache-file=FILE cache test results in FILE [disabled]
949: -C, --config-cache alias for \`--cache-file=config.cache'
950: -n, --no-create do not create output files
951: --srcdir=DIR find the sources in DIR [configure dir or \`..']
952:
1.3 ! noro 953: _ACEOF
1.1 noro 954:
1.3 ! noro 955: cat <<_ACEOF
1.1 noro 956: Installation directories:
957: --prefix=PREFIX install architecture-independent files in PREFIX
958: [$ac_default_prefix]
959: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
960: [PREFIX]
961:
962: By default, \`make install' will install all the files in
963: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
964: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
965: for instance \`--prefix=\$HOME'.
966:
967: For better control, use the options below.
968:
969: Fine tuning of the installation directories:
970: --bindir=DIR user executables [EPREFIX/bin]
971: --sbindir=DIR system admin executables [EPREFIX/sbin]
972: --libexecdir=DIR program executables [EPREFIX/libexec]
973: --datadir=DIR read-only architecture-independent data [PREFIX/share]
974: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
975: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
976: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
977: --libdir=DIR object code libraries [EPREFIX/lib]
978: --includedir=DIR C header files [PREFIX/include]
979: --oldincludedir=DIR C header files for non-gcc [/usr/include]
980: --infodir=DIR info documentation [PREFIX/info]
981: --mandir=DIR man documentation [PREFIX/man]
1.3 ! noro 982: _ACEOF
1.1 noro 983:
1.3 ! noro 984: cat <<\_ACEOF
1.1 noro 985:
986: Program names:
987: --program-prefix=PREFIX prepend PREFIX to installed program names
988: --program-suffix=SUFFIX append SUFFIX to installed program names
989: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
990:
991: System types:
992: --build=BUILD configure for building on BUILD [guessed]
1.3 ! noro 993: --host=HOST cross-compile to build programs to run on HOST [BUILD]
! 994: --target=TARGET configure for building compilers for TARGET [HOST]
! 995: _ACEOF
1.1 noro 996: fi
997:
998: if test -n "$ac_init_help"; then
999: case $ac_init_help in
1.3 ! noro 1000: short | recursive ) echo "Configuration of gc 6.2alpha6:";;
1.1 noro 1001: esac
1.3 ! noro 1002: cat <<\_ACEOF
1.1 noro 1003:
1004: Optional Features:
1005: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1006: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1007: --disable-dependency-tracking Speeds up one-time builds
1008: --enable-dependency-tracking Do not reject slow dependency extractors
1009: --enable-maintainer-mode enable make rules and dependencies not useful
1010: (and sometimes confusing) to the casual installer
1011: --enable-threads=TYPE choose threading package
1012: --enable-parallel-mark parallelize marking and free list construction
1.3 ! noro 1013: --enable-cplusplus install C++ support
1.1 noro 1014: --enable-shared=PKGS build shared libraries default=yes
1015: --enable-static=PKGS build static libraries default=yes
1016: --enable-fast-install=PKGS optimize for fast installation default=yes
1017: --disable-libtool-lock avoid locking (might break parallel builds)
1018: --enable-full-debug include full support for pointer backtracing etc.
1019: --enable-redirect-malloc redirect malloc and friends to GC routines
1.3 ! noro 1020: --enable-gc-assertions collector-internal assertion checking
1.1 noro 1021:
1022: Optional Packages:
1023: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1024: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1025: --with-ecos enable runtime eCos target support
1026: --with-gnu-ld assume the C compiler uses GNU ld default=no
1027: --with-pic try to use only PIC/non-PIC objects default=use both
1028: --with-target-subdir=SUBDIR
1029: configuring with a cross compiler
1030: --with-cross-host=HOST configuring with a cross compiler
1031:
1032: Some influential environment variables:
1033: CC C compiler command
1034: CFLAGS C compiler flags
1035: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1036: nonstandard directory <lib dir>
1037: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1038: headers in a nonstandard directory <include dir>
1039: CXX C++ compiler command
1040: CXXFLAGS C++ compiler flags
1041: CPP C preprocessor
1042:
1043: Use these variables to override the choices made by `configure' or to help
1044: it to find libraries and programs with nonstandard names/locations.
1045:
1.3 ! noro 1046: Report bugs to <Hans.Boehm@hp.com>.
! 1047: _ACEOF
1.1 noro 1048: fi
1049:
1050: if test "$ac_init_help" = "recursive"; then
1051: # If there are subdirs, report their specific --help.
1052: ac_popdir=`pwd`
1.3 ! noro 1053: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
! 1054: test -d $ac_dir || continue
! 1055: ac_builddir=.
! 1056:
! 1057: if test "$ac_dir" != .; then
! 1058: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
! 1059: # A "../" for each directory in $ac_dir_suffix.
! 1060: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
! 1061: else
! 1062: ac_dir_suffix= ac_top_builddir=
! 1063: fi
! 1064:
! 1065: case $srcdir in
! 1066: .) # No --srcdir option. We are building in place.
! 1067: ac_srcdir=.
! 1068: if test -z "$ac_top_builddir"; then
! 1069: ac_top_srcdir=.
! 1070: else
! 1071: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
! 1072: fi ;;
! 1073: [\\/]* | ?:[\\/]* ) # Absolute path.
! 1074: ac_srcdir=$srcdir$ac_dir_suffix;
! 1075: ac_top_srcdir=$srcdir ;;
! 1076: *) # Relative path.
! 1077: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
! 1078: ac_top_srcdir=$ac_top_builddir$srcdir ;;
! 1079: esac
! 1080: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
! 1081: # absolute.
! 1082: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
! 1083: ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
! 1084: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
! 1085: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1.1 noro 1086:
1.3 ! noro 1087: cd $ac_dir
1.1 noro 1088: # Check for guested configure; otherwise get Cygnus style configure.
1.3 ! noro 1089: if test -f $ac_srcdir/configure.gnu; then
1.1 noro 1090: echo
1.3 ! noro 1091: $SHELL $ac_srcdir/configure.gnu --help=recursive
! 1092: elif test -f $ac_srcdir/configure; then
1.1 noro 1093: echo
1.3 ! noro 1094: $SHELL $ac_srcdir/configure --help=recursive
! 1095: elif test -f $ac_srcdir/configure.ac ||
! 1096: test -f $ac_srcdir/configure.in; then
1.1 noro 1097: echo
1098: $ac_configure --help
1099: else
1.3 ! noro 1100: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.1 noro 1101: fi
1102: cd $ac_popdir
1103: done
1104: fi
1105:
1106: test -n "$ac_init_help" && exit 0
1107: if $ac_init_version; then
1.3 ! noro 1108: cat <<\_ACEOF
! 1109: gc configure 6.2alpha6
! 1110: generated by GNU Autoconf 2.53
1.1 noro 1111:
1.3 ! noro 1112: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1.1 noro 1113: Free Software Foundation, Inc.
1114: This configure script is free software; the Free Software Foundation
1115: gives unlimited permission to copy, distribute and modify it.
1.3 ! noro 1116: _ACEOF
1.1 noro 1117: exit 0
1118: fi
1119: exec 5>config.log
1.3 ! noro 1120: cat >&5 <<_ACEOF
1.1 noro 1121: This file contains any messages produced by compilers while
1122: running configure, to aid debugging if configure makes a mistake.
1123:
1.3 ! noro 1124: It was created by gc $as_me 6.2alpha6, which was
! 1125: generated by GNU Autoconf 2.53. Invocation command line was
1.1 noro 1126:
1127: $ $0 $@
1128:
1.3 ! noro 1129: _ACEOF
1.1 noro 1130: {
1131: cat <<_ASUNAME
1.3 ! noro 1132: ## --------- ##
! 1133: ## Platform. ##
! 1134: ## --------- ##
1.1 noro 1135:
1136: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1137: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1138: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1139: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1140: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1141:
1142: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1143: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1144:
1145: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1146: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1147: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1148: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1149: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1150: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1151: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1152:
1.3 ! noro 1153: _ASUNAME
! 1154:
! 1155: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 1156: for as_dir in $PATH
! 1157: do
! 1158: IFS=$as_save_IFS
! 1159: test -z "$as_dir" && as_dir=.
! 1160: echo "PATH: $as_dir"
! 1161: done
1.1 noro 1162:
1163: } >&5
1164:
1.3 ! noro 1165: cat >&5 <<_ACEOF
! 1166:
! 1167:
! 1168: ## ----------- ##
! 1169: ## Core tests. ##
! 1170: ## ----------- ##
! 1171:
! 1172: _ACEOF
1.1 noro 1173:
1174:
1175: # Keep a trace of the command line.
1176: # Strip out --no-create and --no-recursion so they do not pile up.
1177: # Also quote any args containing shell meta-characters.
1178: ac_configure_args=
1179: ac_sep=
1180: for ac_arg
1181: do
1182: case $ac_arg in
1183: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.3 ! noro 1184: | --no-cr | --no-c | -n ) continue ;;
1.1 noro 1185: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1.3 ! noro 1186: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
! 1187: continue ;;
1.1 noro 1188: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1.3 ! noro 1189: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
! 1190: esac
! 1191: case " $ac_configure_args " in
! 1192: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
! 1193: *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
! 1194: ac_sep=" " ;;
1.1 noro 1195: esac
1196: # Get rid of the leading space.
1197: done
1198:
1199: # When interrupted or exit'd, cleanup temporary files, and complete
1200: # config.log. We remove comments because anyway the quotes in there
1201: # would cause problems or look ugly.
1.3 ! noro 1202: # WARNING: Be sure not to use single quotes in there, as some shells,
! 1203: # such as our DU 5.0 friend, will then `close' the trap.
1.1 noro 1204: trap 'exit_status=$?
1205: # Save into config.log some information that might help in debugging.
1.3 ! noro 1206: {
! 1207: echo
! 1208: cat <<\_ASBOX
! 1209: ## ---------------- ##
! 1210: ## Cache variables. ##
! 1211: ## ---------------- ##
! 1212: _ASBOX
! 1213: echo
! 1214: # The following way of writing the cache mishandles newlines in values,
1.1 noro 1215: {
1216: (set) 2>&1 |
1217: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1218: *ac_space=\ *)
1219: sed -n \
1220: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1221: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1222: ;;
1223: *)
1224: sed -n \
1225: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1226: ;;
1227: esac;
1.3 ! noro 1228: }
! 1229: echo
! 1230: if test -s confdefs.h; then
! 1231: cat <<\_ASBOX
! 1232: ## ----------- ##
! 1233: ## confdefs.h. ##
! 1234: ## ----------- ##
! 1235: _ASBOX
! 1236: echo
! 1237: sed "/^$/d" confdefs.h
! 1238: echo
! 1239: fi
! 1240: test "$ac_signal" != 0 &&
! 1241: echo "$as_me: caught signal $ac_signal"
! 1242: echo "$as_me: exit $exit_status"
! 1243: } >&5
! 1244: rm -f core core.* *.core &&
! 1245: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1.1 noro 1246: exit $exit_status
1247: ' 0
1248: for ac_signal in 1 2 13 15; do
1249: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1250: done
1251: ac_signal=0
1252:
1253: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1254: rm -rf conftest* confdefs.h
1255: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1256: echo >confdefs.h
1257:
1.3 ! noro 1258: # Predefined preprocessor variables.
! 1259:
! 1260: cat >>confdefs.h <<_ACEOF
! 1261: #define PACKAGE_NAME "$PACKAGE_NAME"
! 1262: _ACEOF
! 1263:
! 1264:
! 1265: cat >>confdefs.h <<_ACEOF
! 1266: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
! 1267: _ACEOF
! 1268:
! 1269:
! 1270: cat >>confdefs.h <<_ACEOF
! 1271: #define PACKAGE_VERSION "$PACKAGE_VERSION"
! 1272: _ACEOF
! 1273:
! 1274:
! 1275: cat >>confdefs.h <<_ACEOF
! 1276: #define PACKAGE_STRING "$PACKAGE_STRING"
! 1277: _ACEOF
! 1278:
! 1279:
! 1280: cat >>confdefs.h <<_ACEOF
! 1281: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
! 1282: _ACEOF
! 1283:
! 1284:
1.1 noro 1285: # Let the site file select an alternate cache file if it wants to.
1286: # Prefer explicitly selected file to automatically selected ones.
1287: if test -z "$CONFIG_SITE"; then
1288: if test "x$prefix" != xNONE; then
1289: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1290: else
1291: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1292: fi
1293: fi
1294: for ac_site_file in $CONFIG_SITE; do
1295: if test -r "$ac_site_file"; then
1.3 ! noro 1296: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1.1 noro 1297: echo "$as_me: loading site script $ac_site_file" >&6;}
1.3 ! noro 1298: sed 's/^/| /' "$ac_site_file" >&5
1.1 noro 1299: . "$ac_site_file"
1300: fi
1301: done
1302:
1303: if test -r "$cache_file"; then
1304: # Some versions of bash will fail to source /dev/null (special
1305: # files actually), so we avoid doing that.
1306: if test -f "$cache_file"; then
1.3 ! noro 1307: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1.1 noro 1308: echo "$as_me: loading cache $cache_file" >&6;}
1309: case $cache_file in
1310: [\\/]* | ?:[\\/]* ) . $cache_file;;
1311: *) . ./$cache_file;;
1312: esac
1313: fi
1314: else
1.3 ! noro 1315: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1.1 noro 1316: echo "$as_me: creating cache $cache_file" >&6;}
1317: >$cache_file
1318: fi
1319:
1320: # Check that the precious variables saved in the cache have kept the same
1321: # value.
1322: ac_cache_corrupted=false
1323: for ac_var in `(set) 2>&1 |
1324: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1325: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1326: eval ac_new_set=\$ac_env_${ac_var}_set
1327: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1328: eval ac_new_val="\$ac_env_${ac_var}_value"
1329: case $ac_old_set,$ac_new_set in
1330: set,)
1.3 ! noro 1331: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1.1 noro 1332: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1333: ac_cache_corrupted=: ;;
1334: ,set)
1.3 ! noro 1335: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1.1 noro 1336: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1337: ac_cache_corrupted=: ;;
1338: ,);;
1339: *)
1340: if test "x$ac_old_val" != "x$ac_new_val"; then
1.3 ! noro 1341: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1.1 noro 1342: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.3 ! noro 1343: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1.1 noro 1344: echo "$as_me: former value: $ac_old_val" >&2;}
1.3 ! noro 1345: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1.1 noro 1346: echo "$as_me: current value: $ac_new_val" >&2;}
1347: ac_cache_corrupted=:
1348: fi;;
1349: esac
1.3 ! noro 1350: # Pass precious variables to config.status.
1.1 noro 1351: if test "$ac_new_set" = set; then
1352: case $ac_new_val in
1353: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1.3 ! noro 1354: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
! 1355: *) ac_arg=$ac_var=$ac_new_val ;;
! 1356: esac
! 1357: case " $ac_configure_args " in
! 1358: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
! 1359: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1.1 noro 1360: esac
1361: fi
1362: done
1363: if $ac_cache_corrupted; then
1.3 ! noro 1364: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1.1 noro 1365: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1.3 ! noro 1366: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1.1 noro 1367: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1368: { (exit 1); exit 1; }; }
1369: fi
1370:
1371: ac_ext=c
1372: ac_cpp='$CPP $CPPFLAGS'
1373: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1374: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1375: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1376:
1377:
1.3 ! noro 1378:
! 1379:
! 1380:
! 1381:
! 1382:
! 1383:
! 1384:
! 1385:
! 1386:
! 1387:
! 1388:
! 1389:
! 1390:
! 1391:
! 1392:
! 1393:
! 1394:
! 1395:
! 1396:
! 1397:
! 1398:
! 1399:
! 1400:
! 1401:
! 1402: ## version must conform to [0-9]+[.][0-9]+(alpha[0-9]+)?
! 1403:
1.1 noro 1404: ac_aux_dir=
1405: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1406: if test -f $ac_dir/install-sh; then
1407: ac_aux_dir=$ac_dir
1408: ac_install_sh="$ac_aux_dir/install-sh -c"
1409: break
1410: elif test -f $ac_dir/install.sh; then
1411: ac_aux_dir=$ac_dir
1412: ac_install_sh="$ac_aux_dir/install.sh -c"
1413: break
1414: elif test -f $ac_dir/shtool; then
1415: ac_aux_dir=$ac_dir
1416: ac_install_sh="$ac_aux_dir/shtool install -c"
1417: break
1418: fi
1419: done
1420: if test -z "$ac_aux_dir"; then
1.3 ! noro 1421: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1.1 noro 1422: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1423: { (exit 1); exit 1; }; }
1424: fi
1425: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1426: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1427: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1428:
1.3 ! noro 1429: # Make sure we can run config.sub.
! 1430: $ac_config_sub sun4 >/dev/null 2>&1 ||
! 1431: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
! 1432: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
! 1433: { (exit 1); exit 1; }; }
! 1434:
! 1435: echo "$as_me:$LINENO: checking build system type" >&5
! 1436: echo $ECHO_N "checking build system type... $ECHO_C" >&6
! 1437: if test "${ac_cv_build+set}" = set; then
1.1 noro 1438: echo $ECHO_N "(cached) $ECHO_C" >&6
1439: else
1.3 ! noro 1440: ac_cv_build_alias=$build_alias
! 1441: test -z "$ac_cv_build_alias" &&
! 1442: ac_cv_build_alias=`$ac_config_guess`
! 1443: test -z "$ac_cv_build_alias" &&
! 1444: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
! 1445: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
! 1446: { (exit 1); exit 1; }; }
! 1447: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
! 1448: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
! 1449: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
! 1450: { (exit 1); exit 1; }; }
1.1 noro 1451:
1452: fi
1.3 ! noro 1453: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
! 1454: echo "${ECHO_T}$ac_cv_build" >&6
! 1455: build=$ac_cv_build
! 1456: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
! 1457: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
! 1458: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1.1 noro 1459:
1.3 ! noro 1460:
! 1461: echo "$as_me:$LINENO: checking host system type" >&5
! 1462: echo $ECHO_N "checking host system type... $ECHO_C" >&6
! 1463: if test "${ac_cv_host+set}" = set; then
! 1464: echo $ECHO_N "(cached) $ECHO_C" >&6
! 1465: else
! 1466: ac_cv_host_alias=$host_alias
! 1467: test -z "$ac_cv_host_alias" &&
! 1468: ac_cv_host_alias=$ac_cv_build_alias
! 1469: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
! 1470: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
! 1471: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
! 1472: { (exit 1); exit 1; }; }
! 1473:
! 1474: fi
! 1475: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
! 1476: echo "${ECHO_T}$ac_cv_host" >&6
! 1477: host=$ac_cv_host
! 1478: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
! 1479: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
! 1480: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
! 1481:
! 1482:
! 1483: echo "$as_me:$LINENO: checking target system type" >&5
! 1484: echo $ECHO_N "checking target system type... $ECHO_C" >&6
! 1485: if test "${ac_cv_target+set}" = set; then
! 1486: echo $ECHO_N "(cached) $ECHO_C" >&6
! 1487: else
! 1488: ac_cv_target_alias=$target_alias
! 1489: test "x$ac_cv_target_alias" = "x" &&
! 1490: ac_cv_target_alias=$ac_cv_host_alias
! 1491: ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
! 1492: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
! 1493: echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
! 1494: { (exit 1); exit 1; }; }
! 1495:
! 1496: fi
! 1497: echo "$as_me:$LINENO: result: $ac_cv_target" >&5
! 1498: echo "${ECHO_T}$ac_cv_target" >&6
! 1499: target=$ac_cv_target
! 1500: target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
! 1501: target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
! 1502: target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
! 1503:
! 1504:
! 1505: # The aliases save the names the user supplied, while $host etc.
! 1506: # will get canonicalized.
! 1507: test -n "$target_alias" &&
! 1508: test "$program_prefix$program_suffix$program_transform_name" = \
! 1509: NONENONEs,x,x, &&
! 1510: program_prefix=${target_alias}-
! 1511:
! 1512:
! 1513:
! 1514: echo "$as_me:$LINENO: checking GC version numbers" >&5
! 1515: echo $ECHO_N "checking GC version numbers... $ECHO_C" >&6
! 1516: GC_VERSION_MAJOR=`echo $PACKAGE_VERSION | sed 's/^\([0-9][0-9]*\)[.].*$/\1/g'`
! 1517: GC_VERSION_MINOR=`echo $PACKAGE_VERSION | sed 's/^[^.]*[.]\([0-9][0-9]*\).*$/\1/g'`
! 1518: GC_ALPHA_VERSION=`echo $PACKAGE_VERSION | sed 's/^[^.]*[.][0-9]*//'`
! 1519:
! 1520: case "$GC_ALPHA_VERSION" in
! 1521: alpha*)
! 1522: GC_ALPHA_VERSION=`echo $GC_ALPHA_VERSION \
! 1523: | sed 's/alpha\([0-9][0-9]*\)/\1/'` ;;
! 1524: *) GC_VERSION_MAJOR='' ;;
! 1525: esac
! 1526:
! 1527: if test :$GC_VERSION_MAJOR: = :: \
! 1528: -o :$GC_VERSION_MINOR: = :: ;
! 1529: then
! 1530: echo "$as_me:$LINENO: result: invalid" >&5
! 1531: echo "${ECHO_T}invalid" >&6
! 1532: { { echo "$as_me:$LINENO: error: nonconforming PACKAGE_VERSION='$PACKAGE_VERSION'" >&5
! 1533: echo "$as_me: error: nonconforming PACKAGE_VERSION='$PACKAGE_VERSION'" >&2;}
! 1534: { (exit 1); exit 1; }; }
! 1535: fi
! 1536:
! 1537: cat >>confdefs.h <<_ACEOF
! 1538: #define GC_VERSION_MAJOR $GC_VERSION_MAJOR
! 1539: _ACEOF
! 1540:
! 1541: cat >>confdefs.h <<_ACEOF
! 1542: #define GC_VERSION_MINOR $GC_VERSION_MINOR
! 1543: _ACEOF
! 1544:
! 1545: if test :$GC_ALPHA_VERSION: != :: ; then
! 1546: cat >>confdefs.h <<_ACEOF
! 1547: #define GC_ALPHA_VERSION $GC_ALPHA_VERSION
! 1548: _ACEOF
! 1549:
! 1550: fi
! 1551: echo "$as_me:$LINENO: result: major=$GC_VERSION_MAJOR minor=$GC_VERSION_MINOR \
! 1552: ${GC_ALPHA_VERSION:+alpha=}$GC_ALPHA_VERSION" >&5
! 1553: echo "${ECHO_T}major=$GC_VERSION_MAJOR minor=$GC_VERSION_MINOR \
! 1554: ${GC_ALPHA_VERSION:+alpha=}$GC_ALPHA_VERSION" >&6
! 1555:
! 1556: am__api_version="1.6"
! 1557: # Find a good install program. We prefer a C program (faster),
! 1558: # so one script is as good as another. But avoid the broken or
! 1559: # incompatible versions:
! 1560: # SysV /etc/install, /usr/sbin/install
! 1561: # SunOS /usr/etc/install
! 1562: # IRIX /sbin/install
! 1563: # AIX /bin/install
! 1564: # AmigaOS /C/install, which installs bootblocks on floppy discs
! 1565: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
! 1566: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
! 1567: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
! 1568: # ./install, which can be erroneously created by make from ./install.sh.
! 1569: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
! 1570: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
! 1571: if test -z "$INSTALL"; then
! 1572: if test "${ac_cv_path_install+set}" = set; then
! 1573: echo $ECHO_N "(cached) $ECHO_C" >&6
! 1574: else
! 1575: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 1576: for as_dir in $PATH
! 1577: do
! 1578: IFS=$as_save_IFS
! 1579: test -z "$as_dir" && as_dir=.
! 1580: # Account for people who put trailing slashes in PATH elements.
! 1581: case $as_dir/ in
! 1582: ./ | .// | /cC/* | \
! 1583: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
! 1584: /usr/ucb/* ) ;;
! 1585: *)
! 1586: # OSF1 and SCO ODT 3.0 have their own names for install.
! 1587: # Don't use installbsd from OSF since it installs stuff as root
! 1588: # by default.
! 1589: for ac_prog in ginstall scoinst install; do
! 1590: for ac_exec_ext in '' $ac_executable_extensions; do
! 1591: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
! 1592: if test $ac_prog = install &&
! 1593: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
! 1594: # AIX install. It has an incompatible calling convention.
! 1595: :
! 1596: elif test $ac_prog = install &&
! 1597: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
! 1598: # program-specific install script used by HP pwplus--don't use.
! 1599: :
! 1600: else
! 1601: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
! 1602: break 3
! 1603: fi
! 1604: fi
! 1605: done
! 1606: done
! 1607: ;;
! 1608: esac
! 1609: done
! 1610:
! 1611:
! 1612: fi
! 1613: if test "${ac_cv_path_install+set}" = set; then
! 1614: INSTALL=$ac_cv_path_install
! 1615: else
! 1616: # As a last resort, use the slow shell script. We don't cache a
! 1617: # path for INSTALL within a source directory, because that will
! 1618: # break other packages using the cache if that directory is
! 1619: # removed, or if the path is relative.
! 1620: INSTALL=$ac_install_sh
! 1621: fi
! 1622: fi
! 1623: echo "$as_me:$LINENO: result: $INSTALL" >&5
! 1624: echo "${ECHO_T}$INSTALL" >&6
! 1625:
! 1626: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
! 1627: # It thinks the first close brace ends the variable substitution.
! 1628: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1.1 noro 1629:
1630: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1631:
1632: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1633:
1.3 ! noro 1634: echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1.1 noro 1635: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1636: # Just in case
1637: sleep 1
1638: echo timestamp > conftest.file
1639: # Do `set' in a subshell so we don't clobber the current shell's
1640: # arguments. Must try -L first in case configure is actually a
1641: # symlink; some systems play weird games with the mod time of symlinks
1642: # (eg FreeBSD returns the mod time of the symlink's containing
1643: # directory).
1644: if (
1645: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1646: if test "$*" = "X"; then
1647: # -L didn't work.
1648: set X `ls -t $srcdir/configure conftest.file`
1649: fi
1650: rm -f conftest.file
1651: if test "$*" != "X $srcdir/configure conftest.file" \
1652: && test "$*" != "X conftest.file $srcdir/configure"; then
1653:
1654: # If neither matched, then we have a broken ls. This can happen
1655: # if, for instance, CONFIG_SHELL is bash and it inherits a
1656: # broken ls alias from the environment. This has actually
1657: # happened. Such a system could not be considered "sane".
1.3 ! noro 1658: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1.1 noro 1659: alias in your environment" >&5
1660: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1661: alias in your environment" >&2;}
1662: { (exit 1); exit 1; }; }
1663: fi
1664:
1665: test "$2" = conftest.file
1666: )
1667: then
1668: # Ok.
1669: :
1670: else
1.3 ! noro 1671: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1.1 noro 1672: Check your system clock" >&5
1673: echo "$as_me: error: newly created file is older than distributed files!
1674: Check your system clock" >&2;}
1675: { (exit 1); exit 1; }; }
1676: fi
1.3 ! noro 1677: echo "$as_me:$LINENO: result: yes" >&5
1.1 noro 1678: echo "${ECHO_T}yes" >&6
1679: test "$program_prefix" != NONE &&
1680: program_transform_name="s,^,$program_prefix,;$program_transform_name"
1681: # Use a double $ so make ignores it.
1682: test "$program_suffix" != NONE &&
1683: program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1684: # Double any \ or $. echo might interpret backslashes.
1685: # By default was `s,x,x', remove it if useless.
1686: cat <<\_ACEOF >conftest.sed
1687: s/[\\$]/&&/g;s/;s,x,x,$//
1688: _ACEOF
1689: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1690: rm conftest.sed
1691:
1.3 ! noro 1692:
1.1 noro 1693: # expand $ac_aux_dir to an absolute path
1694: am_aux_dir=`cd $ac_aux_dir && pwd`
1695:
1696: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1697: # Use eval to expand $SHELL
1698: if eval "$MISSING --run true"; then
1699: am_missing_run="$MISSING --run "
1700: else
1701: am_missing_run=
1.3 ! noro 1702: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1.1 noro 1703: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1704: fi
1705:
1.3 ! noro 1706: for ac_prog in gawk mawk nawk awk
1.1 noro 1707: do
1708: # Extract the first word of "$ac_prog", so it can be a program name with args.
1709: set dummy $ac_prog; ac_word=$2
1.3 ! noro 1710: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.1 noro 1711: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1712: if test "${ac_cv_prog_AWK+set}" = set; then
1713: echo $ECHO_N "(cached) $ECHO_C" >&6
1714: else
1715: if test -n "$AWK"; then
1716: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1717: else
1.3 ! noro 1718: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 1719: for as_dir in $PATH
! 1720: do
! 1721: IFS=$as_save_IFS
! 1722: test -z "$as_dir" && as_dir=.
! 1723: for ac_exec_ext in '' $ac_executable_extensions; do
! 1724: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 1725: ac_cv_prog_AWK="$ac_prog"
! 1726: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 1727: break 2
! 1728: fi
! 1729: done
1.1 noro 1730: done
1731:
1732: fi
1733: fi
1734: AWK=$ac_cv_prog_AWK
1735: if test -n "$AWK"; then
1.3 ! noro 1736: echo "$as_me:$LINENO: result: $AWK" >&5
1.1 noro 1737: echo "${ECHO_T}$AWK" >&6
1738: else
1.3 ! noro 1739: echo "$as_me:$LINENO: result: no" >&5
1.1 noro 1740: echo "${ECHO_T}no" >&6
1741: fi
1742:
1743: test -n "$AWK" && break
1744: done
1745:
1.3 ! noro 1746: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1.1 noro 1747: echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1748: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1749: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1750: echo $ECHO_N "(cached) $ECHO_C" >&6
1751: else
1.3 ! noro 1752: cat >conftest.make <<\_ACEOF
1.1 noro 1753: all:
1754: @echo 'ac_maketemp="${MAKE}"'
1.3 ! noro 1755: _ACEOF
1.1 noro 1756: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1757: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1758: if test -n "$ac_maketemp"; then
1759: eval ac_cv_prog_make_${ac_make}_set=yes
1760: else
1761: eval ac_cv_prog_make_${ac_make}_set=no
1762: fi
1763: rm -f conftest.make
1764: fi
1765: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1.3 ! noro 1766: echo "$as_me:$LINENO: result: yes" >&5
1.1 noro 1767: echo "${ECHO_T}yes" >&6
1768: SET_MAKE=
1769: else
1.3 ! noro 1770: echo "$as_me:$LINENO: result: no" >&5
1.1 noro 1771: echo "${ECHO_T}no" >&6
1772: SET_MAKE="MAKE=${MAKE-make}"
1773: fi
1774:
1775: # test to see if srcdir already configured
1776: if test "`cd $srcdir && pwd`" != "`pwd`" &&
1777: test -f $srcdir/config.status; then
1.3 ! noro 1778: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1.1 noro 1779: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1780: { (exit 1); exit 1; }; }
1781: fi
1782:
1783: # Define the identity of the package.
1784: PACKAGE=gc
1.3 ! noro 1785: VERSION=6.2alpha6
! 1786:
! 1787:
! 1788: cat >>confdefs.h <<_ACEOF
! 1789: #define PACKAGE "$PACKAGE"
! 1790: _ACEOF
! 1791:
! 1792:
! 1793: cat >>confdefs.h <<_ACEOF
! 1794: #define VERSION "$VERSION"
! 1795: _ACEOF
1.1 noro 1796:
1797: # Some tools Automake needs.
1798:
1799: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1800:
1.3 ! noro 1801:
1.1 noro 1802: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1803:
1.3 ! noro 1804:
1.1 noro 1805: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1806:
1.3 ! noro 1807:
1.1 noro 1808: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1809:
1.3 ! noro 1810:
1.1 noro 1811: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1812:
1.3 ! noro 1813:
1.1 noro 1814: AMTAR=${AMTAR-"${am_missing_run}tar"}
1815:
1816: install_sh=${install_sh-"$am_aux_dir/install-sh"}
1817:
1818: # Installed binaries are usually stripped using `strip' when the user
1819: # run `make install-strip'. However `strip' might not be the right
1820: # tool to use in cross-compilation environments, therefore Automake
1821: # will honor the `STRIP' environment variable to overrule this program.
1822: if test "$cross_compiling" != no; then
1823: if test -n "$ac_tool_prefix"; then
1824: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1825: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.3 ! noro 1826: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.1 noro 1827: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1828: if test "${ac_cv_prog_STRIP+set}" = set; then
1829: echo $ECHO_N "(cached) $ECHO_C" >&6
1830: else
1831: if test -n "$STRIP"; then
1832: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1833: else
1.3 ! noro 1834: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 1835: for as_dir in $PATH
! 1836: do
! 1837: IFS=$as_save_IFS
! 1838: test -z "$as_dir" && as_dir=.
! 1839: for ac_exec_ext in '' $ac_executable_extensions; do
! 1840: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 1841: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
! 1842: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 1843: break 2
! 1844: fi
! 1845: done
1.1 noro 1846: done
1847:
1848: fi
1849: fi
1850: STRIP=$ac_cv_prog_STRIP
1851: if test -n "$STRIP"; then
1.3 ! noro 1852: echo "$as_me:$LINENO: result: $STRIP" >&5
1.1 noro 1853: echo "${ECHO_T}$STRIP" >&6
1854: else
1.3 ! noro 1855: echo "$as_me:$LINENO: result: no" >&5
1.1 noro 1856: echo "${ECHO_T}no" >&6
1857: fi
1858:
1859: fi
1860: if test -z "$ac_cv_prog_STRIP"; then
1861: ac_ct_STRIP=$STRIP
1862: # Extract the first word of "strip", so it can be a program name with args.
1863: set dummy strip; ac_word=$2
1.3 ! noro 1864: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.1 noro 1865: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1866: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1867: echo $ECHO_N "(cached) $ECHO_C" >&6
1868: else
1869: if test -n "$ac_ct_STRIP"; then
1870: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1871: else
1.3 ! noro 1872: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 1873: for as_dir in $PATH
! 1874: do
! 1875: IFS=$as_save_IFS
! 1876: test -z "$as_dir" && as_dir=.
! 1877: for ac_exec_ext in '' $ac_executable_extensions; do
! 1878: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 1879: ac_cv_prog_ac_ct_STRIP="strip"
! 1880: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 1881: break 2
! 1882: fi
! 1883: done
1.1 noro 1884: done
1885:
1886: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1887: fi
1888: fi
1889: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1890: if test -n "$ac_ct_STRIP"; then
1.3 ! noro 1891: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1.1 noro 1892: echo "${ECHO_T}$ac_ct_STRIP" >&6
1893: else
1.3 ! noro 1894: echo "$as_me:$LINENO: result: no" >&5
1.1 noro 1895: echo "${ECHO_T}no" >&6
1896: fi
1897:
1898: STRIP=$ac_ct_STRIP
1899: else
1900: STRIP="$ac_cv_prog_STRIP"
1901: fi
1902:
1903: fi
1904: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1905:
1906: # We need awk for the "check" target. The system "awk" is bad on
1907: # some platforms.
1908:
1909:
1910:
1911:
1912:
1.3 ! noro 1913:
1.1 noro 1914:
1915: ac_ext=c
1916: ac_cpp='$CPP $CPPFLAGS'
1917: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1918: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1919: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1920: if test -n "$ac_tool_prefix"; then
1921: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1922: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.3 ! noro 1923: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.1 noro 1924: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1925: if test "${ac_cv_prog_CC+set}" = set; then
1926: echo $ECHO_N "(cached) $ECHO_C" >&6
1927: else
1928: if test -n "$CC"; then
1929: ac_cv_prog_CC="$CC" # Let the user override the test.
1930: else
1.3 ! noro 1931: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 1932: for as_dir in $PATH
! 1933: do
! 1934: IFS=$as_save_IFS
! 1935: test -z "$as_dir" && as_dir=.
! 1936: for ac_exec_ext in '' $ac_executable_extensions; do
! 1937: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 1938: ac_cv_prog_CC="${ac_tool_prefix}gcc"
! 1939: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 1940: break 2
! 1941: fi
! 1942: done
1.1 noro 1943: done
1944:
1945: fi
1946: fi
1947: CC=$ac_cv_prog_CC
1948: if test -n "$CC"; then
1.3 ! noro 1949: echo "$as_me:$LINENO: result: $CC" >&5
1.1 noro 1950: echo "${ECHO_T}$CC" >&6
1951: else
1.3 ! noro 1952: echo "$as_me:$LINENO: result: no" >&5
1.1 noro 1953: echo "${ECHO_T}no" >&6
1954: fi
1955:
1956: fi
1957: if test -z "$ac_cv_prog_CC"; then
1958: ac_ct_CC=$CC
1959: # Extract the first word of "gcc", so it can be a program name with args.
1960: set dummy gcc; ac_word=$2
1.3 ! noro 1961: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.1 noro 1962: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1963: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1964: echo $ECHO_N "(cached) $ECHO_C" >&6
1965: else
1966: if test -n "$ac_ct_CC"; then
1967: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1968: else
1.3 ! noro 1969: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 1970: for as_dir in $PATH
! 1971: do
! 1972: IFS=$as_save_IFS
! 1973: test -z "$as_dir" && as_dir=.
! 1974: for ac_exec_ext in '' $ac_executable_extensions; do
! 1975: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 1976: ac_cv_prog_ac_ct_CC="gcc"
! 1977: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 1978: break 2
! 1979: fi
! 1980: done
1.1 noro 1981: done
1982:
1983: fi
1984: fi
1985: ac_ct_CC=$ac_cv_prog_ac_ct_CC
1986: if test -n "$ac_ct_CC"; then
1.3 ! noro 1987: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.1 noro 1988: echo "${ECHO_T}$ac_ct_CC" >&6
1989: else
1.3 ! noro 1990: echo "$as_me:$LINENO: result: no" >&5
1.1 noro 1991: echo "${ECHO_T}no" >&6
1992: fi
1993:
1994: CC=$ac_ct_CC
1995: else
1996: CC="$ac_cv_prog_CC"
1997: fi
1998:
1999: if test -z "$CC"; then
2000: if test -n "$ac_tool_prefix"; then
2001: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2002: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.3 ! noro 2003: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.1 noro 2004: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2005: if test "${ac_cv_prog_CC+set}" = set; then
2006: echo $ECHO_N "(cached) $ECHO_C" >&6
2007: else
2008: if test -n "$CC"; then
2009: ac_cv_prog_CC="$CC" # Let the user override the test.
2010: else
1.3 ! noro 2011: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 2012: for as_dir in $PATH
! 2013: do
! 2014: IFS=$as_save_IFS
! 2015: test -z "$as_dir" && as_dir=.
! 2016: for ac_exec_ext in '' $ac_executable_extensions; do
! 2017: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 2018: ac_cv_prog_CC="${ac_tool_prefix}cc"
! 2019: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 2020: break 2
! 2021: fi
! 2022: done
1.1 noro 2023: done
2024:
2025: fi
2026: fi
2027: CC=$ac_cv_prog_CC
2028: if test -n "$CC"; then
1.3 ! noro 2029: echo "$as_me:$LINENO: result: $CC" >&5
1.1 noro 2030: echo "${ECHO_T}$CC" >&6
2031: else
1.3 ! noro 2032: echo "$as_me:$LINENO: result: no" >&5
1.1 noro 2033: echo "${ECHO_T}no" >&6
2034: fi
2035:
2036: fi
2037: if test -z "$ac_cv_prog_CC"; then
2038: ac_ct_CC=$CC
2039: # Extract the first word of "cc", so it can be a program name with args.
2040: set dummy cc; ac_word=$2
1.3 ! noro 2041: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.1 noro 2042: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2043: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2044: echo $ECHO_N "(cached) $ECHO_C" >&6
2045: else
2046: if test -n "$ac_ct_CC"; then
2047: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2048: else
1.3 ! noro 2049: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 2050: for as_dir in $PATH
! 2051: do
! 2052: IFS=$as_save_IFS
! 2053: test -z "$as_dir" && as_dir=.
! 2054: for ac_exec_ext in '' $ac_executable_extensions; do
! 2055: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 2056: ac_cv_prog_ac_ct_CC="cc"
! 2057: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 2058: break 2
! 2059: fi
! 2060: done
1.1 noro 2061: done
2062:
2063: fi
2064: fi
2065: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2066: if test -n "$ac_ct_CC"; then
1.3 ! noro 2067: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.1 noro 2068: echo "${ECHO_T}$ac_ct_CC" >&6
2069: else
1.3 ! noro 2070: echo "$as_me:$LINENO: result: no" >&5
1.1 noro 2071: echo "${ECHO_T}no" >&6
2072: fi
2073:
2074: CC=$ac_ct_CC
2075: else
2076: CC="$ac_cv_prog_CC"
2077: fi
2078:
2079: fi
2080: if test -z "$CC"; then
2081: # Extract the first word of "cc", so it can be a program name with args.
2082: set dummy cc; ac_word=$2
1.3 ! noro 2083: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.1 noro 2084: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2085: if test "${ac_cv_prog_CC+set}" = set; then
2086: echo $ECHO_N "(cached) $ECHO_C" >&6
2087: else
2088: if test -n "$CC"; then
2089: ac_cv_prog_CC="$CC" # Let the user override the test.
2090: else
2091: ac_prog_rejected=no
1.3 ! noro 2092: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 2093: for as_dir in $PATH
! 2094: do
! 2095: IFS=$as_save_IFS
! 2096: test -z "$as_dir" && as_dir=.
! 2097: for ac_exec_ext in '' $ac_executable_extensions; do
! 2098: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 2099: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
! 2100: ac_prog_rejected=yes
! 2101: continue
! 2102: fi
! 2103: ac_cv_prog_CC="cc"
! 2104: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 2105: break 2
! 2106: fi
! 2107: done
1.1 noro 2108: done
2109:
2110: if test $ac_prog_rejected = yes; then
2111: # We found a bogon in the path, so make sure we never use it.
2112: set dummy $ac_cv_prog_CC
2113: shift
2114: if test $# != 0; then
2115: # We chose a different compiler from the bogus one.
2116: # However, it has the same basename, so the bogon will be chosen
2117: # first if we set CC to just the basename; use the full file name.
2118: shift
1.3 ! noro 2119: set dummy "$as_dir/$ac_word" ${1+"$@"}
1.1 noro 2120: shift
2121: ac_cv_prog_CC="$@"
2122: fi
2123: fi
2124: fi
2125: fi
2126: CC=$ac_cv_prog_CC
2127: if test -n "$CC"; then
1.3 ! noro 2128: echo "$as_me:$LINENO: result: $CC" >&5
1.1 noro 2129: echo "${ECHO_T}$CC" >&6
2130: else
1.3 ! noro 2131: echo "$as_me:$LINENO: result: no" >&5
1.1 noro 2132: echo "${ECHO_T}no" >&6
2133: fi
2134:
2135: fi
2136: if test -z "$CC"; then
2137: if test -n "$ac_tool_prefix"; then
2138: for ac_prog in cl
2139: do
2140: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2141: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.3 ! noro 2142: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.1 noro 2143: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2144: if test "${ac_cv_prog_CC+set}" = set; then
2145: echo $ECHO_N "(cached) $ECHO_C" >&6
2146: else
2147: if test -n "$CC"; then
2148: ac_cv_prog_CC="$CC" # Let the user override the test.
2149: else
1.3 ! noro 2150: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 2151: for as_dir in $PATH
! 2152: do
! 2153: IFS=$as_save_IFS
! 2154: test -z "$as_dir" && as_dir=.
! 2155: for ac_exec_ext in '' $ac_executable_extensions; do
! 2156: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 2157: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
! 2158: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 2159: break 2
! 2160: fi
! 2161: done
1.1 noro 2162: done
2163:
2164: fi
2165: fi
2166: CC=$ac_cv_prog_CC
2167: if test -n "$CC"; then
1.3 ! noro 2168: echo "$as_me:$LINENO: result: $CC" >&5
1.1 noro 2169: echo "${ECHO_T}$CC" >&6
2170: else
1.3 ! noro 2171: echo "$as_me:$LINENO: result: no" >&5
1.1 noro 2172: echo "${ECHO_T}no" >&6
2173: fi
2174:
2175: test -n "$CC" && break
2176: done
2177: fi
2178: if test -z "$CC"; then
2179: ac_ct_CC=$CC
2180: for ac_prog in cl
2181: do
2182: # Extract the first word of "$ac_prog", so it can be a program name with args.
2183: set dummy $ac_prog; ac_word=$2
1.3 ! noro 2184: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.1 noro 2185: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2186: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2187: echo $ECHO_N "(cached) $ECHO_C" >&6
2188: else
2189: if test -n "$ac_ct_CC"; then
2190: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2191: else
1.3 ! noro 2192: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 2193: for as_dir in $PATH
! 2194: do
! 2195: IFS=$as_save_IFS
! 2196: test -z "$as_dir" && as_dir=.
! 2197: for ac_exec_ext in '' $ac_executable_extensions; do
! 2198: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 2199: ac_cv_prog_ac_ct_CC="$ac_prog"
! 2200: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 2201: break 2
! 2202: fi
! 2203: done
1.1 noro 2204: done
2205:
2206: fi
2207: fi
2208: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2209: if test -n "$ac_ct_CC"; then
1.3 ! noro 2210: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.1 noro 2211: echo "${ECHO_T}$ac_ct_CC" >&6
2212: else
1.3 ! noro 2213: echo "$as_me:$LINENO: result: no" >&5
1.1 noro 2214: echo "${ECHO_T}no" >&6
2215: fi
2216:
2217: test -n "$ac_ct_CC" && break
2218: done
2219:
2220: CC=$ac_ct_CC
2221: fi
2222:
2223: fi
2224:
1.3 ! noro 2225:
! 2226: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
! 2227: echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1.1 noro 2228: { (exit 1); exit 1; }; }
2229:
2230: # Provide some information about the compiler.
1.3 ! noro 2231: echo "$as_me:$LINENO:" \
1.1 noro 2232: "checking for C compiler version" >&5
2233: ac_compiler=`set X $ac_compile; echo $2`
1.3 ! noro 2234: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1.1 noro 2235: (eval $ac_compiler --version </dev/null >&5) 2>&5
2236: ac_status=$?
1.3 ! noro 2237: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 2238: (exit $ac_status); }
1.3 ! noro 2239: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1.1 noro 2240: (eval $ac_compiler -v </dev/null >&5) 2>&5
2241: ac_status=$?
1.3 ! noro 2242: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 2243: (exit $ac_status); }
1.3 ! noro 2244: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1.1 noro 2245: (eval $ac_compiler -V </dev/null >&5) 2>&5
2246: ac_status=$?
1.3 ! noro 2247: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 2248: (exit $ac_status); }
2249:
2250: cat >conftest.$ac_ext <<_ACEOF
1.3 ! noro 2251: #line $LINENO "configure"
1.1 noro 2252: #include "confdefs.h"
2253:
1.3 ! noro 2254: #ifdef F77_DUMMY_MAIN
! 2255: # ifdef __cplusplus
! 2256: extern "C"
! 2257: # endif
! 2258: int F77_DUMMY_MAIN() { return 1; }
! 2259: #endif
1.1 noro 2260: int
2261: main ()
2262: {
2263:
2264: ;
2265: return 0;
2266: }
2267: _ACEOF
2268: ac_clean_files_save=$ac_clean_files
2269: ac_clean_files="$ac_clean_files a.out a.exe"
2270: # Try to create an executable without -o first, disregard a.out.
2271: # It will help us diagnose broken compilers, and finding out an intuition
2272: # of exeext.
1.3 ! noro 2273: echo "$as_me:$LINENO: checking for C compiler default output" >&5
1.1 noro 2274: echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2275: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.3 ! noro 2276: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1.1 noro 2277: (eval $ac_link_default) 2>&5
2278: ac_status=$?
1.3 ! noro 2279: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 2280: (exit $ac_status); }; then
2281: # Find the output, starting from the most likely. This scheme is
2282: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2283: # resort.
1.3 ! noro 2284:
! 2285: # Be careful to initialize this variable, since it used to be cached.
! 2286: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
! 2287: ac_cv_exeext=
! 2288: for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1.1 noro 2289: ls a.out conftest 2>/dev/null;
2290: ls a.* conftest.* 2>/dev/null`; do
2291: case $ac_file in
1.3 ! noro 2292: *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1.1 noro 2293: a.out ) # We found the default executable, but exeext='' is most
2294: # certainly right.
2295: break;;
2296: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2297: # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2298: export ac_cv_exeext
2299: break;;
2300: * ) break;;
2301: esac
2302: done
2303: else
2304: echo "$as_me: failed program was:" >&5
2305: cat conftest.$ac_ext >&5
1.3 ! noro 2306: { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1.1 noro 2307: echo "$as_me: error: C compiler cannot create executables" >&2;}
2308: { (exit 77); exit 77; }; }
2309: fi
2310:
2311: ac_exeext=$ac_cv_exeext
1.3 ! noro 2312: echo "$as_me:$LINENO: result: $ac_file" >&5
1.1 noro 2313: echo "${ECHO_T}$ac_file" >&6
2314:
2315: # Check the compiler produces executables we can run. If not, either
2316: # the compiler is broken, or we cross compile.
1.3 ! noro 2317: echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1.1 noro 2318: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2319: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2320: # If not cross compiling, check that we can run a simple program.
2321: if test "$cross_compiling" != yes; then
2322: if { ac_try='./$ac_file'
1.3 ! noro 2323: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.1 noro 2324: (eval $ac_try) 2>&5
2325: ac_status=$?
1.3 ! noro 2326: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 2327: (exit $ac_status); }; }; then
2328: cross_compiling=no
2329: else
2330: if test "$cross_compiling" = maybe; then
2331: cross_compiling=yes
2332: else
1.3 ! noro 2333: { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1.1 noro 2334: If you meant to cross compile, use \`--host'." >&5
2335: echo "$as_me: error: cannot run C compiled programs.
2336: If you meant to cross compile, use \`--host'." >&2;}
2337: { (exit 1); exit 1; }; }
2338: fi
2339: fi
2340: fi
1.3 ! noro 2341: echo "$as_me:$LINENO: result: yes" >&5
1.1 noro 2342: echo "${ECHO_T}yes" >&6
2343:
2344: rm -f a.out a.exe conftest$ac_cv_exeext
2345: ac_clean_files=$ac_clean_files_save
2346: # Check the compiler produces executables we can run. If not, either
2347: # the compiler is broken, or we cross compile.
1.3 ! noro 2348: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1.1 noro 2349: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1.3 ! noro 2350: echo "$as_me:$LINENO: result: $cross_compiling" >&5
1.1 noro 2351: echo "${ECHO_T}$cross_compiling" >&6
2352:
1.3 ! noro 2353: echo "$as_me:$LINENO: checking for suffix of executables" >&5
! 2354: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
! 2355: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.1 noro 2356: (eval $ac_link) 2>&5
2357: ac_status=$?
1.3 ! noro 2358: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 2359: (exit $ac_status); }; then
2360: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2361: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2362: # work properly (i.e., refer to `conftest.exe'), while it won't with
2363: # `rm'.
2364: for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2365: case $ac_file in
2366: *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2367: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2368: export ac_cv_exeext
2369: break;;
2370: * ) break;;
2371: esac
2372: done
2373: else
1.3 ! noro 2374: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
! 2375: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1.1 noro 2376: { (exit 1); exit 1; }; }
2377: fi
2378:
2379: rm -f conftest$ac_cv_exeext
1.3 ! noro 2380: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1.1 noro 2381: echo "${ECHO_T}$ac_cv_exeext" >&6
2382:
2383: rm -f conftest.$ac_ext
2384: EXEEXT=$ac_cv_exeext
2385: ac_exeext=$EXEEXT
1.3 ! noro 2386: echo "$as_me:$LINENO: checking for suffix of object files" >&5
! 2387: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1.1 noro 2388: if test "${ac_cv_objext+set}" = set; then
2389: echo $ECHO_N "(cached) $ECHO_C" >&6
2390: else
2391: cat >conftest.$ac_ext <<_ACEOF
1.3 ! noro 2392: #line $LINENO "configure"
1.1 noro 2393: #include "confdefs.h"
2394:
1.3 ! noro 2395: #ifdef F77_DUMMY_MAIN
! 2396: # ifdef __cplusplus
! 2397: extern "C"
! 2398: # endif
! 2399: int F77_DUMMY_MAIN() { return 1; }
! 2400: #endif
1.1 noro 2401: int
2402: main ()
2403: {
2404:
2405: ;
2406: return 0;
2407: }
2408: _ACEOF
2409: rm -f conftest.o conftest.obj
1.3 ! noro 2410: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.1 noro 2411: (eval $ac_compile) 2>&5
2412: ac_status=$?
1.3 ! noro 2413: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 2414: (exit $ac_status); }; then
2415: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2416: case $ac_file in
2417: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2418: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2419: break;;
2420: esac
2421: done
2422: else
2423: echo "$as_me: failed program was:" >&5
2424: cat conftest.$ac_ext >&5
1.3 ! noro 2425: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
! 2426: echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1.1 noro 2427: { (exit 1); exit 1; }; }
2428: fi
2429:
2430: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2431: fi
1.3 ! noro 2432: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1.1 noro 2433: echo "${ECHO_T}$ac_cv_objext" >&6
2434: OBJEXT=$ac_cv_objext
2435: ac_objext=$OBJEXT
1.3 ! noro 2436: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1.1 noro 2437: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2438: if test "${ac_cv_c_compiler_gnu+set}" = set; then
2439: echo $ECHO_N "(cached) $ECHO_C" >&6
2440: else
2441: cat >conftest.$ac_ext <<_ACEOF
1.3 ! noro 2442: #line $LINENO "configure"
1.1 noro 2443: #include "confdefs.h"
2444:
1.3 ! noro 2445: #ifdef F77_DUMMY_MAIN
! 2446: # ifdef __cplusplus
! 2447: extern "C"
! 2448: # endif
! 2449: int F77_DUMMY_MAIN() { return 1; }
! 2450: #endif
1.1 noro 2451: int
2452: main ()
2453: {
2454: #ifndef __GNUC__
2455: choke me
2456: #endif
2457:
2458: ;
2459: return 0;
2460: }
2461: _ACEOF
2462: rm -f conftest.$ac_objext
1.3 ! noro 2463: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.1 noro 2464: (eval $ac_compile) 2>&5
2465: ac_status=$?
1.3 ! noro 2466: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 2467: (exit $ac_status); } &&
2468: { ac_try='test -s conftest.$ac_objext'
1.3 ! noro 2469: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.1 noro 2470: (eval $ac_try) 2>&5
2471: ac_status=$?
1.3 ! noro 2472: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 2473: (exit $ac_status); }; }; then
2474: ac_compiler_gnu=yes
2475: else
2476: echo "$as_me: failed program was:" >&5
2477: cat conftest.$ac_ext >&5
2478: ac_compiler_gnu=no
2479: fi
2480: rm -f conftest.$ac_objext conftest.$ac_ext
2481: ac_cv_c_compiler_gnu=$ac_compiler_gnu
2482:
2483: fi
1.3 ! noro 2484: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1.1 noro 2485: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2486: GCC=`test $ac_compiler_gnu = yes && echo yes`
2487: ac_test_CFLAGS=${CFLAGS+set}
2488: ac_save_CFLAGS=$CFLAGS
2489: CFLAGS="-g"
1.3 ! noro 2490: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1.1 noro 2491: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2492: if test "${ac_cv_prog_cc_g+set}" = set; then
2493: echo $ECHO_N "(cached) $ECHO_C" >&6
2494: else
2495: cat >conftest.$ac_ext <<_ACEOF
1.3 ! noro 2496: #line $LINENO "configure"
1.1 noro 2497: #include "confdefs.h"
2498:
1.3 ! noro 2499: #ifdef F77_DUMMY_MAIN
! 2500: # ifdef __cplusplus
! 2501: extern "C"
! 2502: # endif
! 2503: int F77_DUMMY_MAIN() { return 1; }
! 2504: #endif
1.1 noro 2505: int
2506: main ()
2507: {
2508:
2509: ;
2510: return 0;
2511: }
2512: _ACEOF
2513: rm -f conftest.$ac_objext
1.3 ! noro 2514: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.1 noro 2515: (eval $ac_compile) 2>&5
2516: ac_status=$?
1.3 ! noro 2517: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 2518: (exit $ac_status); } &&
2519: { ac_try='test -s conftest.$ac_objext'
1.3 ! noro 2520: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.1 noro 2521: (eval $ac_try) 2>&5
2522: ac_status=$?
1.3 ! noro 2523: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 2524: (exit $ac_status); }; }; then
2525: ac_cv_prog_cc_g=yes
2526: else
2527: echo "$as_me: failed program was:" >&5
2528: cat conftest.$ac_ext >&5
2529: ac_cv_prog_cc_g=no
2530: fi
2531: rm -f conftest.$ac_objext conftest.$ac_ext
2532: fi
1.3 ! noro 2533: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1.1 noro 2534: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2535: if test "$ac_test_CFLAGS" = set; then
2536: CFLAGS=$ac_save_CFLAGS
2537: elif test $ac_cv_prog_cc_g = yes; then
2538: if test "$GCC" = yes; then
2539: CFLAGS="-g -O2"
2540: else
2541: CFLAGS="-g"
2542: fi
2543: else
2544: if test "$GCC" = yes; then
2545: CFLAGS="-O2"
2546: else
2547: CFLAGS=
2548: fi
2549: fi
2550: # Some people use a C++ compiler to compile C. Since we use `exit',
2551: # in C++ we need to declare it. In case someone uses the same compiler
2552: # for both compiling C and C++ we need to have the C++ compiler decide
2553: # the declaration of exit, since it's the most demanding environment.
2554: cat >conftest.$ac_ext <<_ACEOF
2555: #ifndef __cplusplus
2556: choke me
2557: #endif
2558: _ACEOF
2559: rm -f conftest.$ac_objext
1.3 ! noro 2560: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.1 noro 2561: (eval $ac_compile) 2>&5
2562: ac_status=$?
1.3 ! noro 2563: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 2564: (exit $ac_status); } &&
2565: { ac_try='test -s conftest.$ac_objext'
1.3 ! noro 2566: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.1 noro 2567: (eval $ac_try) 2>&5
2568: ac_status=$?
1.3 ! noro 2569: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 2570: (exit $ac_status); }; }; then
2571: for ac_declaration in \
2572: ''\
2573: '#include <stdlib.h>' \
2574: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2575: 'extern "C" void std::exit (int); using std::exit;' \
2576: 'extern "C" void exit (int) throw ();' \
2577: 'extern "C" void exit (int);' \
2578: 'void exit (int);'
2579: do
2580: cat >conftest.$ac_ext <<_ACEOF
1.3 ! noro 2581: #line $LINENO "configure"
1.1 noro 2582: #include "confdefs.h"
2583: #include <stdlib.h>
2584: $ac_declaration
1.3 ! noro 2585: #ifdef F77_DUMMY_MAIN
! 2586: # ifdef __cplusplus
! 2587: extern "C"
! 2588: # endif
! 2589: int F77_DUMMY_MAIN() { return 1; }
! 2590: #endif
1.1 noro 2591: int
2592: main ()
2593: {
2594: exit (42);
2595: ;
2596: return 0;
2597: }
2598: _ACEOF
2599: rm -f conftest.$ac_objext
1.3 ! noro 2600: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.1 noro 2601: (eval $ac_compile) 2>&5
2602: ac_status=$?
1.3 ! noro 2603: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 2604: (exit $ac_status); } &&
2605: { ac_try='test -s conftest.$ac_objext'
1.3 ! noro 2606: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.1 noro 2607: (eval $ac_try) 2>&5
2608: ac_status=$?
1.3 ! noro 2609: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 2610: (exit $ac_status); }; }; then
2611: :
2612: else
2613: echo "$as_me: failed program was:" >&5
2614: cat conftest.$ac_ext >&5
2615: continue
2616: fi
2617: rm -f conftest.$ac_objext conftest.$ac_ext
2618: cat >conftest.$ac_ext <<_ACEOF
1.3 ! noro 2619: #line $LINENO "configure"
1.1 noro 2620: #include "confdefs.h"
2621: $ac_declaration
1.3 ! noro 2622: #ifdef F77_DUMMY_MAIN
! 2623: # ifdef __cplusplus
! 2624: extern "C"
! 2625: # endif
! 2626: int F77_DUMMY_MAIN() { return 1; }
! 2627: #endif
1.1 noro 2628: int
2629: main ()
2630: {
2631: exit (42);
2632: ;
2633: return 0;
2634: }
2635: _ACEOF
2636: rm -f conftest.$ac_objext
1.3 ! noro 2637: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.1 noro 2638: (eval $ac_compile) 2>&5
2639: ac_status=$?
1.3 ! noro 2640: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 2641: (exit $ac_status); } &&
2642: { ac_try='test -s conftest.$ac_objext'
1.3 ! noro 2643: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.1 noro 2644: (eval $ac_try) 2>&5
2645: ac_status=$?
1.3 ! noro 2646: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 2647: (exit $ac_status); }; }; then
2648: break
2649: else
2650: echo "$as_me: failed program was:" >&5
2651: cat conftest.$ac_ext >&5
2652: fi
2653: rm -f conftest.$ac_objext conftest.$ac_ext
2654: done
2655: rm -f conftest*
2656: if test -n "$ac_declaration"; then
2657: echo '#ifdef __cplusplus' >>confdefs.h
2658: echo $ac_declaration >>confdefs.h
2659: echo '#endif' >>confdefs.h
2660: fi
2661:
2662: else
2663: echo "$as_me: failed program was:" >&5
2664: cat conftest.$ac_ext >&5
2665: fi
2666: rm -f conftest.$ac_objext conftest.$ac_ext
2667: ac_ext=c
2668: ac_cpp='$CPP $CPPFLAGS'
2669: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2670: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2671: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2672: rm -f .deps 2>/dev/null
2673: mkdir .deps 2>/dev/null
2674: if test -d .deps; then
2675: DEPDIR=.deps
2676: else
2677: # MS-DOS does not allow filenames that begin with a dot.
2678: DEPDIR=_deps
2679: fi
2680: rmdir .deps 2>/dev/null
2681:
1.3 ! noro 2682:
1.1 noro 2683: ac_config_commands="$ac_config_commands depfiles"
2684:
1.3 ! noro 2685:
1.1 noro 2686: am_make=${MAKE-make}
2687: cat > confinc << 'END'
2688: doit:
2689: @echo done
2690: END
2691: # If we don't find an include directive, just comment out the code.
1.3 ! noro 2692: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1.1 noro 2693: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2694: am__include="#"
2695: am__quote=
2696: _am_result=none
2697: # First try GNU make style include.
2698: echo "include confinc" > confmf
2699: # We grep out `Entering directory' and `Leaving directory'
2700: # messages which can occur if `w' ends up in MAKEFLAGS.
2701: # In particular we don't look at `^make:' because GNU make might
2702: # be invoked under some other name (usually "gmake"), in which
2703: # case it prints its new name instead of `make'.
2704: if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2705: am__include=include
2706: am__quote=
2707: _am_result=GNU
2708: fi
2709: # Now try BSD make style include.
2710: if test "$am__include" = "#"; then
2711: echo '.include "confinc"' > confmf
2712: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2713: am__include=.include
2714: am__quote="\""
2715: _am_result=BSD
2716: fi
2717: fi
2718:
1.3 ! noro 2719:
! 2720: echo "$as_me:$LINENO: result: $_am_result" >&5
1.1 noro 2721: echo "${ECHO_T}$_am_result" >&6
2722: rm -f confinc confmf
2723:
2724: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2725: if test "${enable_dependency_tracking+set}" = set; then
2726: enableval="$enable_dependency_tracking"
2727:
2728: fi;
2729: if test "x$enable_dependency_tracking" != xno; then
2730: am_depcomp="$ac_aux_dir/depcomp"
2731: AMDEPBACKSLASH='\'
2732: fi
2733:
1.3 ! noro 2734:
1.1 noro 2735: if test "x$enable_dependency_tracking" != xno; then
2736: AMDEP_TRUE=
2737: AMDEP_FALSE='#'
2738: else
2739: AMDEP_TRUE='#'
2740: AMDEP_FALSE=
2741: fi
2742:
1.3 ! noro 2743:
! 2744:
! 2745:
1.1 noro 2746: depcc="$CC" am_compiler_list=
2747:
1.3 ! noro 2748: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
1.1 noro 2749: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2750: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2751: echo $ECHO_N "(cached) $ECHO_C" >&6
2752: else
2753: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2754: # We make a subdir and do the tests there. Otherwise we can end up
2755: # making bogus files that we don't know about and never remove. For
2756: # instance it was reported that on HP-UX the gcc test will end up
2757: # making a dummy file named `D' -- because `-MD' means `put the output
2758: # in D'.
2759: mkdir conftest.dir
2760: # Copy depcomp to subdir because otherwise we won't find it if we're
2761: # using a relative directory.
2762: cp "$am_depcomp" conftest.dir
2763: cd conftest.dir
2764:
2765: am_cv_CC_dependencies_compiler_type=none
2766: if test "$am_compiler_list" = ""; then
2767: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2768: fi
2769: for depmode in $am_compiler_list; do
2770: # We need to recreate these files for each test, as the compiler may
2771: # overwrite some of them when testing with obscure command lines.
2772: # This happens at least with the AIX C compiler.
2773: echo '#include "conftest.h"' > conftest.c
2774: echo 'int i;' > conftest.h
2775: echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2776:
2777: case $depmode in
2778: nosideeffect)
2779: # after this tag, mechanisms are not by side-effect, so they'll
2780: # only be used when explicitly requested
2781: if test "x$enable_dependency_tracking" = xyes; then
2782: continue
2783: else
2784: break
2785: fi
2786: ;;
2787: none) break ;;
2788: esac
2789: # We check with `-c' and `-o' for the sake of the "dashmstdout"
2790: # mode. It turns out that the SunPro C++ compiler does not properly
2791: # handle `-M -o', and we need to detect this.
2792: if depmode=$depmode \
2793: source=conftest.c object=conftest.o \
2794: depfile=conftest.Po tmpdepfile=conftest.TPo \
2795: $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2796: grep conftest.h conftest.Po > /dev/null 2>&1 &&
2797: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2798: am_cv_CC_dependencies_compiler_type=$depmode
2799: break
2800: fi
2801: done
2802:
2803: cd ..
2804: rm -rf conftest.dir
2805: else
2806: am_cv_CC_dependencies_compiler_type=none
2807: fi
2808:
2809: fi
1.3 ! noro 2810: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
1.1 noro 2811: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2812: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2813:
1.3 ! noro 2814:
1.1 noro 2815: ac_ext=cc
2816: ac_cpp='$CXXCPP $CPPFLAGS'
2817: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2818: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2819: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2820: if test -n "$ac_tool_prefix"; then
2821: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2822: do
2823: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2824: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.3 ! noro 2825: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.1 noro 2826: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2827: if test "${ac_cv_prog_CXX+set}" = set; then
2828: echo $ECHO_N "(cached) $ECHO_C" >&6
2829: else
2830: if test -n "$CXX"; then
2831: ac_cv_prog_CXX="$CXX" # Let the user override the test.
2832: else
1.3 ! noro 2833: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 2834: for as_dir in $PATH
! 2835: do
! 2836: IFS=$as_save_IFS
! 2837: test -z "$as_dir" && as_dir=.
! 2838: for ac_exec_ext in '' $ac_executable_extensions; do
! 2839: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 2840: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
! 2841: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 2842: break 2
! 2843: fi
! 2844: done
1.1 noro 2845: done
2846:
2847: fi
2848: fi
2849: CXX=$ac_cv_prog_CXX
2850: if test -n "$CXX"; then
1.3 ! noro 2851: echo "$as_me:$LINENO: result: $CXX" >&5
1.1 noro 2852: echo "${ECHO_T}$CXX" >&6
2853: else
1.3 ! noro 2854: echo "$as_me:$LINENO: result: no" >&5
1.1 noro 2855: echo "${ECHO_T}no" >&6
2856: fi
2857:
2858: test -n "$CXX" && break
2859: done
2860: fi
2861: if test -z "$CXX"; then
2862: ac_ct_CXX=$CXX
2863: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2864: do
2865: # Extract the first word of "$ac_prog", so it can be a program name with args.
2866: set dummy $ac_prog; ac_word=$2
1.3 ! noro 2867: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.1 noro 2868: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2869: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2870: echo $ECHO_N "(cached) $ECHO_C" >&6
2871: else
2872: if test -n "$ac_ct_CXX"; then
2873: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2874: else
1.3 ! noro 2875: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 2876: for as_dir in $PATH
! 2877: do
! 2878: IFS=$as_save_IFS
! 2879: test -z "$as_dir" && as_dir=.
! 2880: for ac_exec_ext in '' $ac_executable_extensions; do
! 2881: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 2882: ac_cv_prog_ac_ct_CXX="$ac_prog"
! 2883: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 2884: break 2
! 2885: fi
! 2886: done
1.1 noro 2887: done
2888:
2889: fi
2890: fi
2891: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2892: if test -n "$ac_ct_CXX"; then
1.3 ! noro 2893: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1.1 noro 2894: echo "${ECHO_T}$ac_ct_CXX" >&6
2895: else
1.3 ! noro 2896: echo "$as_me:$LINENO: result: no" >&5
1.1 noro 2897: echo "${ECHO_T}no" >&6
2898: fi
2899:
2900: test -n "$ac_ct_CXX" && break
2901: done
2902: test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2903:
2904: CXX=$ac_ct_CXX
2905: fi
2906:
1.3 ! noro 2907:
1.1 noro 2908: # Provide some information about the compiler.
1.3 ! noro 2909: echo "$as_me:$LINENO:" \
1.1 noro 2910: "checking for C++ compiler version" >&5
2911: ac_compiler=`set X $ac_compile; echo $2`
1.3 ! noro 2912: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1.1 noro 2913: (eval $ac_compiler --version </dev/null >&5) 2>&5
2914: ac_status=$?
1.3 ! noro 2915: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 2916: (exit $ac_status); }
1.3 ! noro 2917: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1.1 noro 2918: (eval $ac_compiler -v </dev/null >&5) 2>&5
2919: ac_status=$?
1.3 ! noro 2920: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 2921: (exit $ac_status); }
1.3 ! noro 2922: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1.1 noro 2923: (eval $ac_compiler -V </dev/null >&5) 2>&5
2924: ac_status=$?
1.3 ! noro 2925: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 2926: (exit $ac_status); }
2927:
1.3 ! noro 2928: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1.1 noro 2929: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2930: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2931: echo $ECHO_N "(cached) $ECHO_C" >&6
2932: else
2933: cat >conftest.$ac_ext <<_ACEOF
1.3 ! noro 2934: #line $LINENO "configure"
1.1 noro 2935: #include "confdefs.h"
2936:
1.3 ! noro 2937: #ifdef F77_DUMMY_MAIN
! 2938: # ifdef __cplusplus
! 2939: extern "C"
! 2940: # endif
! 2941: int F77_DUMMY_MAIN() { return 1; }
! 2942: #endif
1.1 noro 2943: int
2944: main ()
2945: {
2946: #ifndef __GNUC__
2947: choke me
2948: #endif
2949:
2950: ;
2951: return 0;
2952: }
2953: _ACEOF
2954: rm -f conftest.$ac_objext
1.3 ! noro 2955: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.1 noro 2956: (eval $ac_compile) 2>&5
2957: ac_status=$?
1.3 ! noro 2958: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 2959: (exit $ac_status); } &&
2960: { ac_try='test -s conftest.$ac_objext'
1.3 ! noro 2961: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.1 noro 2962: (eval $ac_try) 2>&5
2963: ac_status=$?
1.3 ! noro 2964: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 2965: (exit $ac_status); }; }; then
2966: ac_compiler_gnu=yes
2967: else
2968: echo "$as_me: failed program was:" >&5
2969: cat conftest.$ac_ext >&5
2970: ac_compiler_gnu=no
2971: fi
2972: rm -f conftest.$ac_objext conftest.$ac_ext
2973: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2974:
2975: fi
1.3 ! noro 2976: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1.1 noro 2977: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2978: GXX=`test $ac_compiler_gnu = yes && echo yes`
2979: ac_test_CXXFLAGS=${CXXFLAGS+set}
2980: ac_save_CXXFLAGS=$CXXFLAGS
2981: CXXFLAGS="-g"
1.3 ! noro 2982: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1.1 noro 2983: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2984: if test "${ac_cv_prog_cxx_g+set}" = set; then
2985: echo $ECHO_N "(cached) $ECHO_C" >&6
2986: else
2987: cat >conftest.$ac_ext <<_ACEOF
1.3 ! noro 2988: #line $LINENO "configure"
1.1 noro 2989: #include "confdefs.h"
2990:
1.3 ! noro 2991: #ifdef F77_DUMMY_MAIN
! 2992: # ifdef __cplusplus
! 2993: extern "C"
! 2994: # endif
! 2995: int F77_DUMMY_MAIN() { return 1; }
! 2996: #endif
1.1 noro 2997: int
2998: main ()
2999: {
3000:
3001: ;
3002: return 0;
3003: }
3004: _ACEOF
3005: rm -f conftest.$ac_objext
1.3 ! noro 3006: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.1 noro 3007: (eval $ac_compile) 2>&5
3008: ac_status=$?
1.3 ! noro 3009: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 3010: (exit $ac_status); } &&
3011: { ac_try='test -s conftest.$ac_objext'
1.3 ! noro 3012: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.1 noro 3013: (eval $ac_try) 2>&5
3014: ac_status=$?
1.3 ! noro 3015: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 3016: (exit $ac_status); }; }; then
3017: ac_cv_prog_cxx_g=yes
3018: else
3019: echo "$as_me: failed program was:" >&5
3020: cat conftest.$ac_ext >&5
3021: ac_cv_prog_cxx_g=no
3022: fi
3023: rm -f conftest.$ac_objext conftest.$ac_ext
3024: fi
1.3 ! noro 3025: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1.1 noro 3026: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3027: if test "$ac_test_CXXFLAGS" = set; then
3028: CXXFLAGS=$ac_save_CXXFLAGS
3029: elif test $ac_cv_prog_cxx_g = yes; then
3030: if test "$GXX" = yes; then
3031: CXXFLAGS="-g -O2"
3032: else
3033: CXXFLAGS="-g"
3034: fi
3035: else
3036: if test "$GXX" = yes; then
3037: CXXFLAGS="-O2"
3038: else
3039: CXXFLAGS=
3040: fi
3041: fi
3042: for ac_declaration in \
3043: ''\
3044: '#include <stdlib.h>' \
3045: 'extern "C" void std::exit (int) throw (); using std::exit;' \
3046: 'extern "C" void std::exit (int); using std::exit;' \
3047: 'extern "C" void exit (int) throw ();' \
3048: 'extern "C" void exit (int);' \
3049: 'void exit (int);'
3050: do
3051: cat >conftest.$ac_ext <<_ACEOF
1.3 ! noro 3052: #line $LINENO "configure"
1.1 noro 3053: #include "confdefs.h"
3054: #include <stdlib.h>
3055: $ac_declaration
1.3 ! noro 3056: #ifdef F77_DUMMY_MAIN
! 3057: # ifdef __cplusplus
! 3058: extern "C"
! 3059: # endif
! 3060: int F77_DUMMY_MAIN() { return 1; }
! 3061: #endif
1.1 noro 3062: int
3063: main ()
3064: {
3065: exit (42);
3066: ;
3067: return 0;
3068: }
3069: _ACEOF
3070: rm -f conftest.$ac_objext
1.3 ! noro 3071: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.1 noro 3072: (eval $ac_compile) 2>&5
3073: ac_status=$?
1.3 ! noro 3074: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 3075: (exit $ac_status); } &&
3076: { ac_try='test -s conftest.$ac_objext'
1.3 ! noro 3077: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.1 noro 3078: (eval $ac_try) 2>&5
3079: ac_status=$?
1.3 ! noro 3080: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 3081: (exit $ac_status); }; }; then
3082: :
3083: else
3084: echo "$as_me: failed program was:" >&5
3085: cat conftest.$ac_ext >&5
3086: continue
3087: fi
3088: rm -f conftest.$ac_objext conftest.$ac_ext
3089: cat >conftest.$ac_ext <<_ACEOF
1.3 ! noro 3090: #line $LINENO "configure"
1.1 noro 3091: #include "confdefs.h"
3092: $ac_declaration
1.3 ! noro 3093: #ifdef F77_DUMMY_MAIN
! 3094: # ifdef __cplusplus
! 3095: extern "C"
! 3096: # endif
! 3097: int F77_DUMMY_MAIN() { return 1; }
! 3098: #endif
1.1 noro 3099: int
3100: main ()
3101: {
3102: exit (42);
3103: ;
3104: return 0;
3105: }
3106: _ACEOF
3107: rm -f conftest.$ac_objext
1.3 ! noro 3108: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.1 noro 3109: (eval $ac_compile) 2>&5
3110: ac_status=$?
1.3 ! noro 3111: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 3112: (exit $ac_status); } &&
3113: { ac_try='test -s conftest.$ac_objext'
1.3 ! noro 3114: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.1 noro 3115: (eval $ac_try) 2>&5
3116: ac_status=$?
1.3 ! noro 3117: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 3118: (exit $ac_status); }; }; then
3119: break
3120: else
3121: echo "$as_me: failed program was:" >&5
3122: cat conftest.$ac_ext >&5
3123: fi
3124: rm -f conftest.$ac_objext conftest.$ac_ext
3125: done
3126: rm -f conftest*
3127: if test -n "$ac_declaration"; then
3128: echo '#ifdef __cplusplus' >>confdefs.h
3129: echo $ac_declaration >>confdefs.h
3130: echo '#endif' >>confdefs.h
3131: fi
3132:
3133: ac_ext=c
3134: ac_cpp='$CPP $CPPFLAGS'
3135: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3136: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3137: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3138:
3139: depcc="$CXX" am_compiler_list=
3140:
1.3 ! noro 3141: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
1.1 noro 3142: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3143: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3144: echo $ECHO_N "(cached) $ECHO_C" >&6
3145: else
3146: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3147: # We make a subdir and do the tests there. Otherwise we can end up
3148: # making bogus files that we don't know about and never remove. For
3149: # instance it was reported that on HP-UX the gcc test will end up
3150: # making a dummy file named `D' -- because `-MD' means `put the output
3151: # in D'.
3152: mkdir conftest.dir
3153: # Copy depcomp to subdir because otherwise we won't find it if we're
3154: # using a relative directory.
3155: cp "$am_depcomp" conftest.dir
3156: cd conftest.dir
3157:
3158: am_cv_CXX_dependencies_compiler_type=none
3159: if test "$am_compiler_list" = ""; then
3160: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3161: fi
3162: for depmode in $am_compiler_list; do
3163: # We need to recreate these files for each test, as the compiler may
3164: # overwrite some of them when testing with obscure command lines.
3165: # This happens at least with the AIX C compiler.
3166: echo '#include "conftest.h"' > conftest.c
3167: echo 'int i;' > conftest.h
3168: echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3169:
3170: case $depmode in
3171: nosideeffect)
3172: # after this tag, mechanisms are not by side-effect, so they'll
3173: # only be used when explicitly requested
3174: if test "x$enable_dependency_tracking" = xyes; then
3175: continue
3176: else
3177: break
3178: fi
3179: ;;
3180: none) break ;;
3181: esac
3182: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3183: # mode. It turns out that the SunPro C++ compiler does not properly
3184: # handle `-M -o', and we need to detect this.
3185: if depmode=$depmode \
3186: source=conftest.c object=conftest.o \
3187: depfile=conftest.Po tmpdepfile=conftest.TPo \
3188: $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3189: grep conftest.h conftest.Po > /dev/null 2>&1 &&
3190: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3191: am_cv_CXX_dependencies_compiler_type=$depmode
3192: break
3193: fi
3194: done
3195:
3196: cd ..
3197: rm -rf conftest.dir
3198: else
3199: am_cv_CXX_dependencies_compiler_type=none
3200: fi
3201:
3202: fi
1.3 ! noro 3203: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
1.1 noro 3204: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3205: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3206:
1.3 ! noro 3207:
! 3208:
1.1 noro 3209: # By default we simply use the C compiler to build assembly code.
3210:
3211: : ${CCAS='$(CC)'}
3212: # Set ASFLAGS if not already set.
3213: : ${CCASFLAGS='$(CFLAGS)'}
3214:
1.3 ! noro 3215:
1.1 noro 3216: if test -n "$ac_tool_prefix"; then
3217: # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3218: set dummy ${ac_tool_prefix}ar; ac_word=$2
1.3 ! noro 3219: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.1 noro 3220: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3221: if test "${ac_cv_prog_AR+set}" = set; then
3222: echo $ECHO_N "(cached) $ECHO_C" >&6
3223: else
3224: if test -n "$AR"; then
3225: ac_cv_prog_AR="$AR" # Let the user override the test.
3226: else
1.3 ! noro 3227: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 3228: for as_dir in $PATH
! 3229: do
! 3230: IFS=$as_save_IFS
! 3231: test -z "$as_dir" && as_dir=.
! 3232: for ac_exec_ext in '' $ac_executable_extensions; do
! 3233: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 3234: ac_cv_prog_AR="${ac_tool_prefix}ar"
! 3235: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 3236: break 2
! 3237: fi
! 3238: done
1.1 noro 3239: done
3240:
3241: fi
3242: fi
3243: AR=$ac_cv_prog_AR
3244: if test -n "$AR"; then
1.3 ! noro 3245: echo "$as_me:$LINENO: result: $AR" >&5
1.1 noro 3246: echo "${ECHO_T}$AR" >&6
3247: else
1.3 ! noro 3248: echo "$as_me:$LINENO: result: no" >&5
1.1 noro 3249: echo "${ECHO_T}no" >&6
3250: fi
3251:
3252: fi
3253: if test -z "$ac_cv_prog_AR"; then
3254: ac_ct_AR=$AR
3255: # Extract the first word of "ar", so it can be a program name with args.
3256: set dummy ar; ac_word=$2
1.3 ! noro 3257: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.1 noro 3258: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3259: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3260: echo $ECHO_N "(cached) $ECHO_C" >&6
3261: else
3262: if test -n "$ac_ct_AR"; then
3263: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3264: else
1.3 ! noro 3265: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 3266: for as_dir in $PATH
! 3267: do
! 3268: IFS=$as_save_IFS
! 3269: test -z "$as_dir" && as_dir=.
! 3270: for ac_exec_ext in '' $ac_executable_extensions; do
! 3271: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 3272: ac_cv_prog_ac_ct_AR="ar"
! 3273: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 3274: break 2
! 3275: fi
! 3276: done
1.1 noro 3277: done
3278:
3279: fi
3280: fi
3281: ac_ct_AR=$ac_cv_prog_ac_ct_AR
3282: if test -n "$ac_ct_AR"; then
1.3 ! noro 3283: echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
1.1 noro 3284: echo "${ECHO_T}$ac_ct_AR" >&6
3285: else
1.3 ! noro 3286: echo "$as_me:$LINENO: result: no" >&5
1.1 noro 3287: echo "${ECHO_T}no" >&6
3288: fi
3289:
3290: AR=$ac_ct_AR
3291: else
3292: AR="$ac_cv_prog_AR"
3293: fi
3294:
3295: if test -n "$ac_tool_prefix"; then
3296: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3297: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.3 ! noro 3298: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.1 noro 3299: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3300: if test "${ac_cv_prog_RANLIB+set}" = set; then
3301: echo $ECHO_N "(cached) $ECHO_C" >&6
3302: else
3303: if test -n "$RANLIB"; then
3304: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3305: else
1.3 ! noro 3306: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 3307: for as_dir in $PATH
! 3308: do
! 3309: IFS=$as_save_IFS
! 3310: test -z "$as_dir" && as_dir=.
! 3311: for ac_exec_ext in '' $ac_executable_extensions; do
! 3312: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 3313: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
! 3314: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 3315: break 2
! 3316: fi
! 3317: done
1.1 noro 3318: done
3319:
3320: fi
3321: fi
3322: RANLIB=$ac_cv_prog_RANLIB
3323: if test -n "$RANLIB"; then
1.3 ! noro 3324: echo "$as_me:$LINENO: result: $RANLIB" >&5
1.1 noro 3325: echo "${ECHO_T}$RANLIB" >&6
3326: else
1.3 ! noro 3327: echo "$as_me:$LINENO: result: no" >&5
1.1 noro 3328: echo "${ECHO_T}no" >&6
3329: fi
3330:
3331: fi
3332: if test -z "$ac_cv_prog_RANLIB"; then
3333: ac_ct_RANLIB=$RANLIB
3334: # Extract the first word of "ranlib", so it can be a program name with args.
3335: set dummy ranlib; ac_word=$2
1.3 ! noro 3336: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.1 noro 3337: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3338: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3339: echo $ECHO_N "(cached) $ECHO_C" >&6
3340: else
3341: if test -n "$ac_ct_RANLIB"; then
3342: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3343: else
1.3 ! noro 3344: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 3345: for as_dir in $PATH
! 3346: do
! 3347: IFS=$as_save_IFS
! 3348: test -z "$as_dir" && as_dir=.
! 3349: for ac_exec_ext in '' $ac_executable_extensions; do
! 3350: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 3351: ac_cv_prog_ac_ct_RANLIB="ranlib"
! 3352: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 3353: break 2
! 3354: fi
! 3355: done
1.1 noro 3356: done
3357:
3358: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3359: fi
3360: fi
3361: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3362: if test -n "$ac_ct_RANLIB"; then
1.3 ! noro 3363: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1.1 noro 3364: echo "${ECHO_T}$ac_ct_RANLIB" >&6
3365: else
1.3 ! noro 3366: echo "$as_me:$LINENO: result: no" >&5
1.1 noro 3367: echo "${ECHO_T}no" >&6
3368: fi
3369:
3370: RANLIB=$ac_ct_RANLIB
3371: else
3372: RANLIB="$ac_cv_prog_RANLIB"
3373: fi
1.3 ! noro 3374: # :)
1.1 noro 3375:
3376: # Find a good install program. We prefer a C program (faster),
3377: # so one script is as good as another. But avoid the broken or
3378: # incompatible versions:
3379: # SysV /etc/install, /usr/sbin/install
3380: # SunOS /usr/etc/install
3381: # IRIX /sbin/install
3382: # AIX /bin/install
3383: # AmigaOS /C/install, which installs bootblocks on floppy discs
3384: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3385: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3386: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3387: # ./install, which can be erroneously created by make from ./install.sh.
1.3 ! noro 3388: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
! 3389: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 noro 3390: if test -z "$INSTALL"; then
3391: if test "${ac_cv_path_install+set}" = set; then
3392: echo $ECHO_N "(cached) $ECHO_C" >&6
3393: else
1.3 ! noro 3394: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 3395: for as_dir in $PATH
! 3396: do
! 3397: IFS=$as_save_IFS
! 3398: test -z "$as_dir" && as_dir=.
! 3399: # Account for people who put trailing slashes in PATH elements.
! 3400: case $as_dir/ in
! 3401: ./ | .// | /cC/* | \
! 3402: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
! 3403: /usr/ucb/* ) ;;
! 3404: *)
! 3405: # OSF1 and SCO ODT 3.0 have their own names for install.
! 3406: # Don't use installbsd from OSF since it installs stuff as root
! 3407: # by default.
! 3408: for ac_prog in ginstall scoinst install; do
! 3409: for ac_exec_ext in '' $ac_executable_extensions; do
! 3410: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
! 3411: if test $ac_prog = install &&
! 3412: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
! 3413: # AIX install. It has an incompatible calling convention.
! 3414: :
! 3415: elif test $ac_prog = install &&
! 3416: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
! 3417: # program-specific install script used by HP pwplus--don't use.
! 3418: :
! 3419: else
! 3420: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
! 3421: break 3
! 3422: fi
! 3423: fi
1.1 noro 3424: done
1.3 ! noro 3425: done
! 3426: ;;
! 3427: esac
! 3428: done
! 3429:
1.1 noro 3430:
3431: fi
3432: if test "${ac_cv_path_install+set}" = set; then
3433: INSTALL=$ac_cv_path_install
3434: else
3435: # As a last resort, use the slow shell script. We don't cache a
3436: # path for INSTALL within a source directory, because that will
3437: # break other packages using the cache if that directory is
3438: # removed, or if the path is relative.
3439: INSTALL=$ac_install_sh
3440: fi
3441: fi
1.3 ! noro 3442: echo "$as_me:$LINENO: result: $INSTALL" >&5
1.1 noro 3443: echo "${ECHO_T}$INSTALL" >&6
3444:
3445: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3446: # It thinks the first close brace ends the variable substitution.
3447: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3448:
3449: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3450:
3451: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3452:
1.3 ! noro 3453:
! 3454: echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1.1 noro 3455: echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3456: # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3457: if test "${enable_maintainer_mode+set}" = set; then
3458: enableval="$enable_maintainer_mode"
3459: USE_MAINTAINER_MODE=$enableval
3460: else
3461: USE_MAINTAINER_MODE=no
3462: fi;
1.3 ! noro 3463: echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1.1 noro 3464: echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3465:
1.3 ! noro 3466:
1.1 noro 3467: if test $USE_MAINTAINER_MODE = yes; then
3468: MAINTAINER_MODE_TRUE=
3469: MAINTAINER_MODE_FALSE='#'
3470: else
3471: MAINTAINER_MODE_TRUE='#'
3472: MAINTAINER_MODE_FALSE=
3473: fi
3474:
3475: MAINT=$MAINTAINER_MODE_TRUE
3476:
3477:
1.3 ! noro 3478:
1.1 noro 3479: . ${srcdir}/configure.host
3480:
3481: GC_CFLAGS=${gc_cflags}
3482:
1.3 ! noro 3483:
1.1 noro 3484: # Check whether --enable-threads or --disable-threads was given.
3485: if test "${enable_threads+set}" = set; then
3486: enableval="$enable_threads"
3487: THREADS=$enableval
3488: else
1.3 ! noro 3489: echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
1.1 noro 3490: echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
3491: THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3492: if test -z "$THREADS"; then
3493: THREADS=no
3494: fi
1.3 ! noro 3495: echo "$as_me:$LINENO: result: $THREADS" >&5
1.1 noro 3496: echo "${ECHO_T}$THREADS" >&6
3497: fi;
3498:
3499: # Check whether --enable-parallel-mark or --disable-parallel-mark was given.
3500: if test "${enable_parallel_mark+set}" = set; then
3501: enableval="$enable_parallel_mark"
3502: case "$THREADS" in
3503: no | none | single)
1.3 ! noro 3504: { { echo "$as_me:$LINENO: error: Parallel mark requires --enable-threads=x spec" >&5
1.1 noro 3505: echo "$as_me: error: Parallel mark requires --enable-threads=x spec" >&2;}
3506: { (exit 1); exit 1; }; }
3507: ;;
3508: esac
3509:
3510: fi;
3511:
1.3 ! noro 3512: # Check whether --enable-cplusplus or --disable-cplusplus was given.
! 3513: if test "${enable_cplusplus+set}" = set; then
! 3514: enableval="$enable_cplusplus"
! 3515:
! 3516: fi;
! 3517:
1.1 noro 3518: INCLUDES=-I${srcdir}/include
3519: THREADLIBS=
3520: case "$THREADS" in
3521: no | none | single)
3522: THREADS=none
3523: ;;
3524: posix | pthreads)
3525: THREADS=posix
3526: THREADLIBS=-lpthread
3527: case "$host" in
1.3 ! noro 3528: x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux*)
! 3529: cat >>confdefs.h <<\_ACEOF
1.1 noro 3530: #define GC_LINUX_THREADS 1
1.3 ! noro 3531: _ACEOF
1.1 noro 3532:
1.3 ! noro 3533: cat >>confdefs.h <<\_ACEOF
1.1 noro 3534: #define _REENTRANT 1
1.3 ! noro 3535: _ACEOF
1.1 noro 3536:
3537: if test "${enable_parallel_mark}" = yes; then
1.3 ! noro 3538: cat >>confdefs.h <<\_ACEOF
1.1 noro 3539: #define PARALLEL_MARK 1
1.3 ! noro 3540: _ACEOF
1.1 noro 3541:
3542: fi
1.3 ! noro 3543: cat >>confdefs.h <<\_ACEOF
1.1 noro 3544: #define THREAD_LOCAL_ALLOC 1
1.3 ! noro 3545: _ACEOF
1.1 noro 3546:
3547: ;;
3548: *-*-linux*)
1.3 ! noro 3549: cat >>confdefs.h <<\_ACEOF
1.1 noro 3550: #define GC_LINUX_THREADS 1
1.3 ! noro 3551: _ACEOF
! 3552:
! 3553: cat >>confdefs.h <<\_ACEOF
! 3554: #define _REENTRANT 1
! 3555: _ACEOF
! 3556:
! 3557: ;;
! 3558: *-*-aix*)
! 3559: cat >>confdefs.h <<\_ACEOF
! 3560: #define GC_AIX_THREADS 1
! 3561: _ACEOF
1.1 noro 3562:
1.3 ! noro 3563: cat >>confdefs.h <<\_ACEOF
1.1 noro 3564: #define _REENTRANT 1
1.3 ! noro 3565: _ACEOF
1.1 noro 3566:
3567: ;;
3568: *-*-hpux*)
1.3 ! noro 3569: { echo "$as_me:$LINENO: WARNING: \"Only HP/UX 11 threads are supported.\"" >&5
1.1 noro 3570: echo "$as_me: WARNING: \"Only HP/UX 11 threads are supported.\"" >&2;}
1.3 ! noro 3571: cat >>confdefs.h <<\_ACEOF
1.1 noro 3572: #define GC_HPUX_THREADS 1
1.3 ! noro 3573: _ACEOF
1.1 noro 3574:
1.3 ! noro 3575: cat >>confdefs.h <<\_ACEOF
1.1 noro 3576: #define _POSIX_C_SOURCE 199506L
1.3 ! noro 3577: _ACEOF
1.1 noro 3578:
3579: if test "${enable_parallel_mark}" = yes; then
1.3 ! noro 3580: cat >>confdefs.h <<\_ACEOF
1.1 noro 3581: #define PARALLEL_MARK 1
1.3 ! noro 3582: _ACEOF
1.1 noro 3583:
3584: fi
1.3 ! noro 3585: cat >>confdefs.h <<\_ACEOF
1.1 noro 3586: #define THREAD_LOCAL_ALLOC 1
1.3 ! noro 3587: _ACEOF
1.1 noro 3588:
3589: THREADLIBS="-lpthread -lrt"
3590: ;;
3591: *-*-freebsd*)
1.3 ! noro 3592: { echo "$as_me:$LINENO: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
1.1 noro 3593: echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
1.3 ! noro 3594: cat >>confdefs.h <<\_ACEOF
1.1 noro 3595: #define GC_FREEBSD_THREADS 1
1.3 ! noro 3596: _ACEOF
1.1 noro 3597:
3598: INCLUDES="$INCLUDES -pthread"
3599: THREADLIBS=-pthread
3600: ;;
3601: *-*-solaris*)
1.3 ! noro 3602: cat >>confdefs.h <<\_ACEOF
1.1 noro 3603: #define GC_SOLARIS_THREADS 1
1.3 ! noro 3604: _ACEOF
1.1 noro 3605:
1.3 ! noro 3606: cat >>confdefs.h <<\_ACEOF
1.1 noro 3607: #define GC_SOLARIS_PTHREADS 1
1.3 ! noro 3608: _ACEOF
1.1 noro 3609:
3610: ;;
3611: *-*-irix*)
1.3 ! noro 3612: cat >>confdefs.h <<\_ACEOF
1.1 noro 3613: #define GC_IRIX_THREADS 1
1.3 ! noro 3614: _ACEOF
1.1 noro 3615:
3616: ;;
3617: *-*-cygwin*)
1.3 ! noro 3618: cat >>confdefs.h <<\_ACEOF
1.1 noro 3619: #define GC_WIN32_THREADS 1
1.3 ! noro 3620: _ACEOF
! 3621:
! 3622: ;;
! 3623: *-*-darwin*)
! 3624: cat >>confdefs.h <<\_ACEOF
! 3625: #define GC_DARWIN_THREADS 1
! 3626: _ACEOF
! 3627:
! 3628: cat >>confdefs.h <<\_ACEOF
! 3629: #define THREAD_LOCAL_ALLOC 1
! 3630: _ACEOF
! 3631:
! 3632: if test "${enable_parallel_mark}" = yes; then
! 3633: cat >>confdefs.h <<\_ACEOF
! 3634: #define PARALLEL_MARK 1
! 3635: _ACEOF
! 3636:
! 3637: fi
! 3638: ;;
! 3639: *-*-osf*)
! 3640: cat >>confdefs.h <<\_ACEOF
! 3641: #define GC_OSF1_THREADS 1
! 3642: _ACEOF
! 3643:
! 3644: if test "${enable_parallel_mark}" = yes; then
! 3645: cat >>confdefs.h <<\_ACEOF
! 3646: #define PARALLEL_MARK 1
! 3647: _ACEOF
! 3648:
! 3649: cat >>confdefs.h <<\_ACEOF
! 3650: #define THREAD_LOCAL_ALLOC 1
! 3651: _ACEOF
1.1 noro 3652:
1.3 ! noro 3653: # May want to enable it in other cases, too.
! 3654: # Measurements havent yet been done.
! 3655: fi
! 3656: INCLUDES="$INCLUDES -pthread"
! 3657: THREADLIBS="-lpthread -lrt"
1.1 noro 3658: ;;
3659: esac
3660: ;;
3661: win32)
1.3 ! noro 3662: cat >>confdefs.h <<\_ACEOF
1.1 noro 3663: #define GC_WIN32_THREADS 1
1.3 ! noro 3664: _ACEOF
1.1 noro 3665:
1.3 ! noro 3666: cat >>confdefs.h <<\_ACEOF
1.1 noro 3667: #define NO_GETENV 1
1.3 ! noro 3668: _ACEOF
1.1 noro 3669:
3670: ;;
3671: dgux386)
3672: THREADS=dgux386
1.3 ! noro 3673: echo "$as_me:$LINENO: result: $THREADLIBS" >&5
! 3674: echo "${ECHO_T}$THREADLIBS" >&6
1.1 noro 3675: # Use pthread GCC switch
3676: THREADLIBS=-pthread
3677: if test "${enable_parallel_mark}" = yes; then
1.3 ! noro 3678: cat >>confdefs.h <<\_ACEOF
1.1 noro 3679: #define PARALLEL_MARK 1
1.3 ! noro 3680: _ACEOF
1.1 noro 3681:
3682: fi
1.3 ! noro 3683: cat >>confdefs.h <<\_ACEOF
1.1 noro 3684: #define THREAD_LOCAL_ALLOC 1
1.3 ! noro 3685: _ACEOF
1.1 noro 3686:
1.3 ! noro 3687: cat >>confdefs.h <<\_ACEOF
1.1 noro 3688: #define GC_DGUX386_THREADS 1
1.3 ! noro 3689: _ACEOF
1.1 noro 3690:
1.3 ! noro 3691: cat >>confdefs.h <<\_ACEOF
1.1 noro 3692: #define DGUX_THREADS 1
1.3 ! noro 3693: _ACEOF
1.1 noro 3694:
3695: # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
3696: INCLUDES="-pthread $INCLUDES"
3697: ;;
3698: decosf1 | irix | mach | os2 | solaris | dce | vxworks)
1.3 ! noro 3699: { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
1.1 noro 3700: echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
3701: { (exit 1); exit 1; }; }
3702: ;;
3703: *)
1.3 ! noro 3704: { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
1.1 noro 3705: echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
3706: { (exit 1); exit 1; }; }
3707: ;;
3708: esac
3709:
1.3 ! noro 3710:
! 3711: case "$host" in
! 3712: powerpc-*-darwin*)
! 3713: powerpc_darwin=true
! 3714: ;;
! 3715: esac
! 3716:
! 3717:
! 3718: if test x$powerpc_darwin = xtrue; then
! 3719: POWERPC_DARWIN_TRUE=
! 3720: POWERPC_DARWIN_FALSE='#'
! 3721: else
! 3722: POWERPC_DARWIN_TRUE='#'
! 3723: POWERPC_DARWIN_FALSE=
! 3724: fi
! 3725:
! 3726:
! 3727: # We never want libdl on darwin. It is a fake libdl that just ends up making
! 3728: # dyld calls anyway
! 3729: case "$host" in
! 3730: *-*-darwin*) ;;
! 3731: *)
! 3732:
! 3733: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
1.1 noro 3734: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
3735: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
3736: echo $ECHO_N "(cached) $ECHO_C" >&6
3737: else
3738: ac_check_lib_save_LIBS=$LIBS
3739: LIBS="-ldl $LIBS"
3740: cat >conftest.$ac_ext <<_ACEOF
1.3 ! noro 3741: #line $LINENO "configure"
1.1 noro 3742: #include "confdefs.h"
3743:
3744: /* Override any gcc2 internal prototype to avoid an error. */
3745: #ifdef __cplusplus
3746: extern "C"
3747: #endif
3748: /* We use char because int might match the return type of a gcc2
3749: builtin and then its argument prototype would still apply. */
3750: char dlopen ();
1.3 ! noro 3751: #ifdef F77_DUMMY_MAIN
! 3752: # ifdef __cplusplus
! 3753: extern "C"
! 3754: # endif
! 3755: int F77_DUMMY_MAIN() { return 1; }
! 3756: #endif
1.1 noro 3757: int
3758: main ()
3759: {
3760: dlopen ();
3761: ;
3762: return 0;
3763: }
3764: _ACEOF
3765: rm -f conftest.$ac_objext conftest$ac_exeext
1.3 ! noro 3766: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.1 noro 3767: (eval $ac_link) 2>&5
3768: ac_status=$?
1.3 ! noro 3769: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 3770: (exit $ac_status); } &&
3771: { ac_try='test -s conftest$ac_exeext'
1.3 ! noro 3772: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.1 noro 3773: (eval $ac_try) 2>&5
3774: ac_status=$?
1.3 ! noro 3775: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 3776: (exit $ac_status); }; }; then
3777: ac_cv_lib_dl_dlopen=yes
3778: else
3779: echo "$as_me: failed program was:" >&5
3780: cat conftest.$ac_ext >&5
3781: ac_cv_lib_dl_dlopen=no
3782: fi
3783: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3784: LIBS=$ac_check_lib_save_LIBS
3785: fi
1.3 ! noro 3786: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
1.1 noro 3787: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
3788: if test $ac_cv_lib_dl_dlopen = yes; then
3789: EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
3790: fi
3791:
1.3 ! noro 3792: ;;
! 3793: esac
! 3794:
! 3795:
! 3796:
1.1 noro 3797: target_all=libgc.la
3798:
1.3 ! noro 3799:
1.1 noro 3800: TARGET_ECOS="no"
3801:
3802: # Check whether --with-ecos or --without-ecos was given.
3803: if test "${with_ecos+set}" = set; then
3804: withval="$with_ecos"
3805: TARGET_ECOS="$with_ecos"
3806:
3807: fi;
3808:
3809: addobjs=
1.3 ! noro 3810: addlibs=
! 3811: addincludes=
! 3812: addtests=
1.1 noro 3813: CXXINCLUDES=
3814: case "$TARGET_ECOS" in
3815: no)
3816: ;;
3817: *)
1.3 ! noro 3818: cat >>confdefs.h <<\_ACEOF
1.1 noro 3819: #define ECOS 1
1.3 ! noro 3820: _ACEOF
1.1 noro 3821:
3822: CXXINCLUDES="-I${TARGET_ECOS}/include"
3823: addobjs="$addobjs ecos.lo"
3824: ;;
3825: esac
3826:
1.3 ! noro 3827: if test "${enable_cplusplus}" = yes; then
! 3828: addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h"
! 3829: addtests="$addtests test_cpp"
! 3830: fi
! 3831:
! 3832:
! 3833:
! 3834: if test "${enable_cplusplus}" = yes; then
! 3835: CPLUSPLUS_TRUE=
! 3836: CPLUSPLUS_FALSE='#'
! 3837: else
! 3838: CPLUSPLUS_TRUE='#'
! 3839: CPLUSPLUS_FALSE=
! 3840: fi
! 3841:
! 3842:
! 3843:
! 3844:
! 3845:
! 3846:
1.1 noro 3847:
1.3 ! noro 3848: # Configuration of shared libraries
! 3849: #
! 3850: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
! 3851: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
! 3852: # Check whether --enable-shared or --disable-shared was given.
1.1 noro 3853: if test "${enable_shared+set}" = set; then
3854: enableval="$enable_shared"
3855: p=${PACKAGE-default}
3856: case $enableval in
3857: yes) enable_shared=yes ;;
3858: no) enable_shared=no ;;
3859: *)
3860: enable_shared=no
3861: # Look at the argument we got. We use all the common list separators.
3862: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3863: for pkg in $enableval; do
3864: if test "X$pkg" = "X$p"; then
3865: enable_shared=yes
3866: fi
3867: done
3868: IFS="$ac_save_ifs"
3869: ;;
3870: esac
3871: else
1.3 ! noro 3872: enable_shared=yes
1.1 noro 3873: fi;
1.3 ! noro 3874:
! 3875: case "$host" in
! 3876: alpha-*-openbsd*)
! 3877: enable_shared=no
! 3878: echo "$as_me:$LINENO: result: no" >&5
! 3879: echo "${ECHO_T}no" >&6
1.1 noro 3880: ;;
3881: *)
1.3 ! noro 3882: echo "$as_me:$LINENO: result: yes" >&5
! 3883: echo "${ECHO_T}yes" >&6
1.1 noro 3884: ;;
3885: esac
3886:
1.3 ! noro 3887: # Configuration of machine-dependent code
! 3888: #
! 3889: echo "$as_me:$LINENO: checking which machine-dependent code should be used" >&5
! 3890: echo $ECHO_N "checking which machine-dependent code should be used... $ECHO_C" >&6
! 3891: machdep=
1.1 noro 3892: case "$host" in
3893: alpha-*-openbsd*)
3894: machdep="alpha_mach_dep.lo"
3895: if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
1.3 ! noro 3896: { echo "$as_me:$LINENO: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5
1.1 noro 3897: echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
3898: fi
3899: ;;
1.3 ! noro 3900: alpha*-*-linux*)
1.1 noro 3901: machdep="alpha_mach_dep.lo"
3902: ;;
3903: i?86-*-solaris2.[89]*)
1.3 ! noro 3904: cat >>confdefs.h <<\_ACEOF
1.1 noro 3905: #define SOLARIS25_PROC_VDB_BUG_FIXED 1
1.3 ! noro 3906: _ACEOF
1.1 noro 3907:
3908: ;;
3909: mipstx39-*-elf*)
3910: machdep="mips_ultrix_mach_dep.lo"
1.3 ! noro 3911: cat >>confdefs.h <<\_ACEOF
1.1 noro 3912: #define STACKBASE __stackbase
1.3 ! noro 3913: _ACEOF
1.1 noro 3914:
1.3 ! noro 3915: cat >>confdefs.h <<\_ACEOF
1.1 noro 3916: #define DATASTART_IS_ETEXT 1
1.3 ! noro 3917: _ACEOF
1.1 noro 3918:
3919: ;;
3920: mips-dec-ultrix*)
3921: machdep="mips_ultrix_mach-dep.lo"
3922: ;;
3923: mips-nec-sysv*|mips-unknown-sysv*)
3924: ;;
1.3 ! noro 3925: mips*-*-linux*)
! 3926: ;;
1.1 noro 3927: mips-*-*)
3928: machdep="mips_sgi_mach_dep.lo"
1.3 ! noro 3929: cat >>confdefs.h <<\_ACEOF
1.1 noro 3930: #define NO_EXECUTE_PERMISSION 1
1.3 ! noro 3931: _ACEOF
1.1 noro 3932:
3933: ;;
3934: sparc-*-netbsd*)
3935: machdep="sparc_netbsd_mach_dep.lo"
3936: ;;
3937: sparc-sun-solaris2.3*)
3938: machdep="sparc_mach_dep.lo"
1.3 ! noro 3939: cat >>confdefs.h <<\_ACEOF
1.1 noro 3940: #define SUNOS53_SHARED_LIB 1
1.3 ! noro 3941: _ACEOF
1.1 noro 3942:
3943: ;;
3944: sparc-sun-solaris2.*)
3945: machdep="sparc_mach_dep.lo"
3946: ;;
3947: ia64-*-*)
3948: machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
3949: ;;
3950: esac
3951: if test x"$machdep" = x; then
1.3 ! noro 3952: echo "$as_me:$LINENO: result: $machdep" >&5
! 3953: echo "${ECHO_T}$machdep" >&6
1.1 noro 3954: machdep="mach_dep.lo"
3955: fi
3956: addobjs="$addobjs $machdep"
3957:
1.3 ! noro 3958:
! 3959:
! 3960:
! 3961:
1.1 noro 3962: # Check whether --enable-static or --disable-static was given.
3963: if test "${enable_static+set}" = set; then
3964: enableval="$enable_static"
3965: p=${PACKAGE-default}
3966: case $enableval in
3967: yes) enable_static=yes ;;
3968: no) enable_static=no ;;
3969: *)
3970: enable_static=no
3971: # Look at the argument we got. We use all the common list separators.
3972: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3973: for pkg in $enableval; do
3974: if test "X$pkg" = "X$p"; then
3975: enable_static=yes
3976: fi
3977: done
3978: IFS="$ac_save_ifs"
3979: ;;
3980: esac
3981: else
3982: enable_static=yes
3983: fi;
3984: # Check whether --enable-fast-install or --disable-fast-install was given.
3985: if test "${enable_fast_install+set}" = set; then
3986: enableval="$enable_fast_install"
3987: p=${PACKAGE-default}
3988: case $enableval in
3989: yes) enable_fast_install=yes ;;
3990: no) enable_fast_install=no ;;
3991: *)
3992: enable_fast_install=no
3993: # Look at the argument we got. We use all the common list separators.
3994: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3995: for pkg in $enableval; do
3996: if test "X$pkg" = "X$p"; then
3997: enable_fast_install=yes
3998: fi
3999: done
4000: IFS="$ac_save_ifs"
4001: ;;
4002: esac
4003: else
4004: enable_fast_install=yes
4005: fi;
4006: # Find the correct PATH separator. Usually this is `:', but
4007: # DJGPP uses `;' like DOS.
4008: if test "X${PATH_SEPARATOR+set}" != Xset; then
4009: UNAME=${UNAME-`uname 2>/dev/null`}
4010: case X$UNAME in
4011: *-DOS) lt_cv_sys_path_separator=';' ;;
4012: *) lt_cv_sys_path_separator=':' ;;
4013: esac
4014: PATH_SEPARATOR=$lt_cv_sys_path_separator
4015: fi
4016:
1.3 ! noro 4017:
1.1 noro 4018: # Check whether --with-gnu-ld or --without-gnu-ld was given.
4019: if test "${with_gnu_ld+set}" = set; then
4020: withval="$with_gnu_ld"
4021: test "$withval" = no || with_gnu_ld=yes
4022: else
4023: with_gnu_ld=no
4024: fi;
4025: ac_prog=ld
4026: if test "$GCC" = yes; then
4027: # Check if gcc -print-prog-name=ld gives a path.
1.3 ! noro 4028: echo "$as_me:$LINENO: checking for ld used by GCC" >&5
1.1 noro 4029: echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4030: case $host in
4031: *-*-mingw*)
4032: # gcc leaves a trailing carriage return which upsets mingw
4033: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4034: *)
4035: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4036: esac
4037: case $ac_prog in
4038: # Accept absolute paths.
4039: [\\/]* | [A-Za-z]:[\\/]*)
4040: re_direlt='/[^/][^/]*/\.\./'
4041: # Canonicalize the path of ld
4042: ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4043: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4044: ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4045: done
4046: test -z "$LD" && LD="$ac_prog"
4047: ;;
4048: "")
4049: # If it fails, then pretend we aren't using GCC.
4050: ac_prog=ld
4051: ;;
4052: *)
4053: # If it is relative, then search for the first ld in PATH.
4054: with_gnu_ld=unknown
4055: ;;
4056: esac
4057: elif test "$with_gnu_ld" = yes; then
1.3 ! noro 4058: echo "$as_me:$LINENO: checking for GNU ld" >&5
1.1 noro 4059: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4060: else
1.3 ! noro 4061: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
1.1 noro 4062: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4063: fi
4064: if test "${lt_cv_path_LD+set}" = set; then
4065: echo $ECHO_N "(cached) $ECHO_C" >&6
4066: else
4067: if test -z "$LD"; then
4068: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4069: for ac_dir in $PATH; do
4070: test -z "$ac_dir" && ac_dir=.
4071: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4072: lt_cv_path_LD="$ac_dir/$ac_prog"
4073: # Check to see if the program is GNU ld. I'd rather use --version,
4074: # but apparently some GNU ld's only accept -v.
4075: # Break only if it was the GNU/non-GNU ld that we prefer.
4076: if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4077: test "$with_gnu_ld" != no && break
4078: else
4079: test "$with_gnu_ld" != yes && break
4080: fi
4081: fi
4082: done
4083: IFS="$ac_save_ifs"
4084: else
4085: lt_cv_path_LD="$LD" # Let the user override the test with a path.
4086: fi
4087: fi
4088:
4089: LD="$lt_cv_path_LD"
4090: if test -n "$LD"; then
1.3 ! noro 4091: echo "$as_me:$LINENO: result: $LD" >&5
1.1 noro 4092: echo "${ECHO_T}$LD" >&6
4093: else
1.3 ! noro 4094: echo "$as_me:$LINENO: result: no" >&5
1.1 noro 4095: echo "${ECHO_T}no" >&6
4096: fi
1.3 ! noro 4097: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
1.1 noro 4098: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4099: { (exit 1); exit 1; }; }
1.3 ! noro 4100: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
1.1 noro 4101: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4102: if test "${lt_cv_prog_gnu_ld+set}" = set; then
4103: echo $ECHO_N "(cached) $ECHO_C" >&6
4104: else
4105: # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4106: if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4107: lt_cv_prog_gnu_ld=yes
4108: else
4109: lt_cv_prog_gnu_ld=no
4110: fi
4111: fi
1.3 ! noro 4112: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
1.1 noro 4113: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4114: with_gnu_ld=$lt_cv_prog_gnu_ld
4115:
1.3 ! noro 4116:
! 4117: echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
1.1 noro 4118: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4119: if test "${lt_cv_ld_reload_flag+set}" = set; then
4120: echo $ECHO_N "(cached) $ECHO_C" >&6
4121: else
4122: lt_cv_ld_reload_flag='-r'
4123: fi
1.3 ! noro 4124: echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
1.1 noro 4125: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4126: reload_flag=$lt_cv_ld_reload_flag
4127: test -n "$reload_flag" && reload_flag=" $reload_flag"
4128:
1.3 ! noro 4129: echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
1.1 noro 4130: echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4131: if test "${lt_cv_path_NM+set}" = set; then
4132: echo $ECHO_N "(cached) $ECHO_C" >&6
4133: else
4134: if test -n "$NM"; then
4135: # Let the user override the test.
4136: lt_cv_path_NM="$NM"
4137: else
4138: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4139: for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4140: test -z "$ac_dir" && ac_dir=.
4141: tmp_nm=$ac_dir/${ac_tool_prefix}nm
4142: if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4143: # Check to see if the nm accepts a BSD-compat flag.
4144: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4145: # nm: unknown option "B" ignored
4146: # Tru64's nm complains that /dev/null is an invalid object file
4147: if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4148: lt_cv_path_NM="$tmp_nm -B"
4149: break
4150: elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4151: lt_cv_path_NM="$tmp_nm -p"
4152: break
4153: else
4154: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4155: continue # so that we can try to find one that supports BSD flags
4156: fi
4157: fi
4158: done
4159: IFS="$ac_save_ifs"
4160: test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4161: fi
4162: fi
4163:
4164: NM="$lt_cv_path_NM"
1.3 ! noro 4165: echo "$as_me:$LINENO: result: $NM" >&5
1.1 noro 4166: echo "${ECHO_T}$NM" >&6
4167:
1.3 ! noro 4168: echo "$as_me:$LINENO: checking whether ln -s works" >&5
1.1 noro 4169: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4170: LN_S=$as_ln_s
4171: if test "$LN_S" = "ln -s"; then
1.3 ! noro 4172: echo "$as_me:$LINENO: result: yes" >&5
1.1 noro 4173: echo "${ECHO_T}yes" >&6
4174: else
1.3 ! noro 4175: echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1.1 noro 4176: echo "${ECHO_T}no, using $LN_S" >&6
4177: fi
4178:
1.3 ! noro 4179: echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
1.1 noro 4180: echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4181: if test "${lt_cv_deplibs_check_method+set}" = set; then
4182: echo $ECHO_N "(cached) $ECHO_C" >&6
4183: else
4184: lt_cv_file_magic_cmd='$MAGIC_CMD'
4185: lt_cv_file_magic_test_file=
4186: lt_cv_deplibs_check_method='unknown'
4187: # Need to set the preceding variable on all platforms that support
4188: # interlibrary dependencies.
4189: # 'none' -- dependencies not supported.
4190: # `unknown' -- same as none, but documents that we really don't know.
4191: # 'pass_all' -- all dependencies passed with no checks.
4192: # 'test_compile' -- check by making test program.
4193: # 'file_magic [[regex]]' -- check by looking for files in library path
4194: # which responds to the $file_magic_cmd with a given egrep regex.
4195: # If you have `file' or equivalent on your system and you're not sure
4196: # whether `pass_all' will *always* work, you probably want this one.
4197:
4198: case $host_os in
4199: aix4* | aix5*)
4200: lt_cv_deplibs_check_method=pass_all
4201: ;;
4202:
4203: beos*)
4204: lt_cv_deplibs_check_method=pass_all
4205: ;;
4206:
4207: bsdi4*)
4208: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4209: lt_cv_file_magic_cmd='/usr/bin/file -L'
4210: lt_cv_file_magic_test_file=/shlib/libc.so
4211: ;;
4212:
4213: cygwin* | mingw* | pw32*)
4214: lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4215: lt_cv_file_magic_cmd='$OBJDUMP -f'
4216: ;;
4217:
4218: darwin* | rhapsody*)
4219: lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4220: lt_cv_file_magic_cmd='/usr/bin/file -L'
4221: case "$host_os" in
4222: rhapsody* | darwin1.[012])
4223: lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4224: ;;
4225: *) # Darwin 1.3 on
4226: lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4227: ;;
4228: esac
4229: ;;
4230:
4231: freebsd*)
4232: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4233: case $host_cpu in
4234: i*86 )
4235: # Not sure whether the presence of OpenBSD here was a mistake.
4236: # Let's accept both of them until this is cleared up.
4237: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4238: lt_cv_file_magic_cmd=/usr/bin/file
4239: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4240: ;;
4241: esac
4242: else
4243: lt_cv_deplibs_check_method=pass_all
4244: fi
4245: ;;
4246:
4247: gnu*)
4248: lt_cv_deplibs_check_method=pass_all
4249: ;;
4250:
4251: hpux10.20*|hpux11*)
4252: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4253: lt_cv_file_magic_cmd=/usr/bin/file
4254: lt_cv_file_magic_test_file=/usr/lib/libc.sl
4255: ;;
4256:
4257: irix5* | irix6*)
4258: case $host_os in
4259: irix5*)
4260: # this will be overridden with pass_all, but let us keep it just in case
4261: lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4262: ;;
4263: *)
4264: case $LD in
4265: *-32|*"-32 ") libmagic=32-bit;;
4266: *-n32|*"-n32 ") libmagic=N32;;
4267: *-64|*"-64 ") libmagic=64-bit;;
4268: *) libmagic=never-match;;
4269: esac
4270: # this will be overridden with pass_all, but let us keep it just in case
4271: lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4272: ;;
4273: esac
4274: lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4275: lt_cv_deplibs_check_method=pass_all
4276: ;;
4277:
4278: # This must be Linux ELF.
4279: linux-gnu*)
4280: case $host_cpu in
1.3 ! noro 4281: alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* )
1.1 noro 4282: lt_cv_deplibs_check_method=pass_all ;;
4283: *)
4284: # glibc up to 2.1.1 does not perform some relocations on ARM
4285: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4286: esac
4287: lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4288: ;;
4289:
4290: netbsd*)
4291: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4292: lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4293: else
4294: lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4295: fi
4296: ;;
4297:
4298: newos6*)
4299: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4300: lt_cv_file_magic_cmd=/usr/bin/file
4301: lt_cv_file_magic_test_file=/usr/lib/libnls.so
4302: ;;
4303:
4304: openbsd*)
4305: lt_cv_file_magic_cmd=/usr/bin/file
4306: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4307: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4308: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4309: else
4310: lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4311: fi
4312: ;;
4313:
4314: osf3* | osf4* | osf5*)
4315: # this will be overridden with pass_all, but let us keep it just in case
4316: lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4317: lt_cv_file_magic_test_file=/shlib/libc.so
4318: lt_cv_deplibs_check_method=pass_all
4319: ;;
4320:
4321: sco3.2v5*)
4322: lt_cv_deplibs_check_method=pass_all
4323: ;;
4324:
4325: solaris*)
4326: lt_cv_deplibs_check_method=pass_all
4327: lt_cv_file_magic_test_file=/lib/libc.so
4328: ;;
4329:
4330: sysv5uw[78]* | sysv4*uw2*)
4331: lt_cv_deplibs_check_method=pass_all
4332: ;;
4333:
4334: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4335: case $host_vendor in
4336: motorola)
4337: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4338: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4339: ;;
4340: ncr)
4341: lt_cv_deplibs_check_method=pass_all
4342: ;;
4343: sequent)
4344: lt_cv_file_magic_cmd='/bin/file'
4345: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4346: ;;
4347: sni)
4348: lt_cv_file_magic_cmd='/bin/file'
4349: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4350: lt_cv_file_magic_test_file=/lib/libc.so
4351: ;;
4352: esac
4353: ;;
4354: esac
4355:
4356: fi
1.3 ! noro 4357: echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
1.1 noro 4358: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4359: file_magic_cmd=$lt_cv_file_magic_cmd
4360: deplibs_check_method=$lt_cv_deplibs_check_method
4361:
1.3 ! noro 4362:
! 4363:
! 4364:
! 4365:
! 4366:
! 4367:
1.1 noro 4368: # Check for command to grab the raw symbol name followed by C symbol from nm.
1.3 ! noro 4369: echo "$as_me:$LINENO: checking command to parse $NM output" >&5
1.1 noro 4370: echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4371: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4372: echo $ECHO_N "(cached) $ECHO_C" >&6
4373: else
4374:
4375: # These are sane defaults that work on at least a few old systems.
4376: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4377:
4378: # Character class describing NM global symbol codes.
4379: symcode='[BCDEGRST]'
4380:
4381: # Regexp to match symbols that can be accessed directly from C.
4382: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4383:
4384: # Transform the above into a raw symbol and a C symbol.
4385: symxfrm='\1 \2\3 \3'
4386:
4387: # Transform an extracted symbol line into a proper C declaration
4388: lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4389:
4390: # Transform an extracted symbol line into symbol name and symbol address
4391: lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4392:
4393: # Define system-specific variables.
4394: case $host_os in
4395: aix*)
4396: symcode='[BCDT]'
4397: ;;
4398: cygwin* | mingw* | pw32*)
4399: symcode='[ABCDGISTW]'
4400: ;;
4401: hpux*) # Its linker distinguishes data from code symbols
4402: lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4403: lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4404: ;;
4405: irix*)
4406: symcode='[BCDEGRST]'
4407: ;;
4408: solaris* | sysv5*)
4409: symcode='[BDT]'
4410: ;;
4411: sysv4)
4412: symcode='[DFNSTU]'
4413: ;;
4414: esac
4415:
4416: # Handle CRLF in mingw tool chain
4417: opt_cr=
4418: case $host_os in
4419: mingw*)
4420: opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4421: ;;
4422: esac
4423:
4424: # If we're using GNU nm, then use its standard symbol codes.
4425: if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4426: symcode='[ABCDGISTW]'
4427: fi
4428:
4429: # Try without a prefix undercore, then with it.
4430: for ac_symprfx in "" "_"; do
4431:
4432: # Write the raw and C identifiers.
4433: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4434:
4435: # Check to see that the pipe works correctly.
4436: pipe_works=no
4437: rm -f conftest*
4438: cat > conftest.$ac_ext <<EOF
4439: #ifdef __cplusplus
4440: extern "C" {
4441: #endif
4442: char nm_test_var;
4443: void nm_test_func(){}
4444: #ifdef __cplusplus
4445: }
4446: #endif
4447: int main(){nm_test_var='a';nm_test_func();return(0);}
4448: EOF
4449:
1.3 ! noro 4450: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.1 noro 4451: (eval $ac_compile) 2>&5
4452: ac_status=$?
1.3 ! noro 4453: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 4454: (exit $ac_status); }; then
4455: # Now try to grab the symbols.
4456: nlist=conftest.nm
1.3 ! noro 4457: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
1.1 noro 4458: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4459: ac_status=$?
1.3 ! noro 4460: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 4461: (exit $ac_status); } && test -s "$nlist"; then
4462: # Try sorting and uniquifying the output.
4463: if sort "$nlist" | uniq > "$nlist"T; then
4464: mv -f "$nlist"T "$nlist"
4465: else
4466: rm -f "$nlist"T
4467: fi
4468:
4469: # Make sure that we snagged all the symbols we need.
4470: if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4471: if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4472: cat <<EOF > conftest.$ac_ext
4473: #ifdef __cplusplus
4474: extern "C" {
4475: #endif
4476:
4477: EOF
4478: # Now generate the symbol file.
4479: eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4480:
4481: cat <<EOF >> conftest.$ac_ext
4482: #if defined (__STDC__) && __STDC__
4483: # define lt_ptr void *
4484: #else
4485: # define lt_ptr char *
4486: # define const
4487: #endif
4488:
4489: /* The mapping between symbol names and symbols. */
4490: const struct {
4491: const char *name;
4492: lt_ptr address;
4493: }
4494: lt_preloaded_symbols[] =
4495: {
4496: EOF
4497: sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4498: cat <<\EOF >> conftest.$ac_ext
4499: {0, (lt_ptr) 0}
4500: };
4501:
4502: #ifdef __cplusplus
4503: }
4504: #endif
4505: EOF
4506: # Now try linking the two files.
4507: mv conftest.$ac_objext conftstm.$ac_objext
4508: save_LIBS="$LIBS"
4509: save_CFLAGS="$CFLAGS"
4510: LIBS="conftstm.$ac_objext"
4511: CFLAGS="$CFLAGS$no_builtin_flag"
1.3 ! noro 4512: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.1 noro 4513: (eval $ac_link) 2>&5
4514: ac_status=$?
1.3 ! noro 4515: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 4516: (exit $ac_status); } && test -s conftest; then
4517: pipe_works=yes
4518: fi
4519: LIBS="$save_LIBS"
4520: CFLAGS="$save_CFLAGS"
4521: else
4522: echo "cannot find nm_test_func in $nlist" >&5
4523: fi
4524: else
4525: echo "cannot find nm_test_var in $nlist" >&5
4526: fi
4527: else
4528: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4529: fi
4530: else
4531: echo "$progname: failed program was:" >&5
4532: cat conftest.$ac_ext >&5
4533: fi
4534: rm -f conftest* conftst*
4535:
4536: # Do not use the global_symbol_pipe unless it works.
4537: if test "$pipe_works" = yes; then
4538: break
4539: else
4540: lt_cv_sys_global_symbol_pipe=
4541: fi
4542: done
4543:
4544: fi
4545:
4546: global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4547: if test -z "$lt_cv_sys_global_symbol_pipe"; then
4548: global_symbol_to_cdecl=
4549: global_symbol_to_c_name_address=
4550: else
4551: global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4552: global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4553: fi
4554: if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4555: then
1.3 ! noro 4556: echo "$as_me:$LINENO: result: failed" >&5
1.1 noro 4557: echo "${ECHO_T}failed" >&6
4558: else
1.3 ! noro 4559: echo "$as_me:$LINENO: result: ok" >&5
1.1 noro 4560: echo "${ECHO_T}ok" >&6
4561: fi
4562:
4563: ac_ext=c
4564: ac_cpp='$CPP $CPPFLAGS'
4565: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4566: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4567: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.3 ! noro 4568: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
1.1 noro 4569: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4570: # On Suns, sometimes $CPP names a directory.
4571: if test -n "$CPP" && test -d "$CPP"; then
4572: CPP=
4573: fi
4574: if test -z "$CPP"; then
4575: if test "${ac_cv_prog_CPP+set}" = set; then
4576: echo $ECHO_N "(cached) $ECHO_C" >&6
4577: else
4578: # Double quotes because CPP needs to be expanded
4579: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4580: do
4581: ac_preproc_ok=false
4582: for ac_c_preproc_warn_flag in '' yes
4583: do
4584: # Use a header file that comes with gcc, so configuring glibc
4585: # with a fresh cross-compiler works.
4586: # On the NeXT, cc -E runs the code through the compiler's parser,
4587: # not just through cpp. "Syntax error" is here to catch this case.
4588: cat >conftest.$ac_ext <<_ACEOF
1.3 ! noro 4589: #line $LINENO "configure"
1.1 noro 4590: #include "confdefs.h"
4591: #include <assert.h>
4592: Syntax error
4593: _ACEOF
1.3 ! noro 4594: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.1 noro 4595: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4596: ac_status=$?
4597: egrep -v '^ *\+' conftest.er1 >conftest.err
4598: rm -f conftest.er1
4599: cat conftest.err >&5
1.3 ! noro 4600: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 4601: (exit $ac_status); } >/dev/null; then
4602: if test -s conftest.err; then
4603: ac_cpp_err=$ac_c_preproc_warn_flag
4604: else
4605: ac_cpp_err=
4606: fi
4607: else
4608: ac_cpp_err=yes
4609: fi
4610: if test -z "$ac_cpp_err"; then
4611: :
4612: else
4613: echo "$as_me: failed program was:" >&5
4614: cat conftest.$ac_ext >&5
4615: # Broken: fails on valid input.
4616: continue
4617: fi
4618: rm -f conftest.err conftest.$ac_ext
4619:
4620: # OK, works on sane cases. Now check whether non-existent headers
4621: # can be detected and how.
4622: cat >conftest.$ac_ext <<_ACEOF
1.3 ! noro 4623: #line $LINENO "configure"
1.1 noro 4624: #include "confdefs.h"
4625: #include <ac_nonexistent.h>
4626: _ACEOF
1.3 ! noro 4627: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.1 noro 4628: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4629: ac_status=$?
4630: egrep -v '^ *\+' conftest.er1 >conftest.err
4631: rm -f conftest.er1
4632: cat conftest.err >&5
1.3 ! noro 4633: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 4634: (exit $ac_status); } >/dev/null; then
4635: if test -s conftest.err; then
4636: ac_cpp_err=$ac_c_preproc_warn_flag
4637: else
4638: ac_cpp_err=
4639: fi
4640: else
4641: ac_cpp_err=yes
4642: fi
4643: if test -z "$ac_cpp_err"; then
4644: # Broken: success on invalid input.
4645: continue
4646: else
4647: echo "$as_me: failed program was:" >&5
4648: cat conftest.$ac_ext >&5
4649: # Passes both tests.
4650: ac_preproc_ok=:
4651: break
4652: fi
4653: rm -f conftest.err conftest.$ac_ext
4654:
4655: done
4656: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4657: rm -f conftest.err conftest.$ac_ext
4658: if $ac_preproc_ok; then
4659: break
4660: fi
4661:
4662: done
4663: ac_cv_prog_CPP=$CPP
4664:
4665: fi
4666: CPP=$ac_cv_prog_CPP
4667: else
4668: ac_cv_prog_CPP=$CPP
4669: fi
1.3 ! noro 4670: echo "$as_me:$LINENO: result: $CPP" >&5
1.1 noro 4671: echo "${ECHO_T}$CPP" >&6
4672: ac_preproc_ok=false
4673: for ac_c_preproc_warn_flag in '' yes
4674: do
4675: # Use a header file that comes with gcc, so configuring glibc
4676: # with a fresh cross-compiler works.
4677: # On the NeXT, cc -E runs the code through the compiler's parser,
4678: # not just through cpp. "Syntax error" is here to catch this case.
4679: cat >conftest.$ac_ext <<_ACEOF
1.3 ! noro 4680: #line $LINENO "configure"
1.1 noro 4681: #include "confdefs.h"
4682: #include <assert.h>
4683: Syntax error
4684: _ACEOF
1.3 ! noro 4685: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.1 noro 4686: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4687: ac_status=$?
4688: egrep -v '^ *\+' conftest.er1 >conftest.err
4689: rm -f conftest.er1
4690: cat conftest.err >&5
1.3 ! noro 4691: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 4692: (exit $ac_status); } >/dev/null; then
4693: if test -s conftest.err; then
4694: ac_cpp_err=$ac_c_preproc_warn_flag
4695: else
4696: ac_cpp_err=
4697: fi
4698: else
4699: ac_cpp_err=yes
4700: fi
4701: if test -z "$ac_cpp_err"; then
4702: :
4703: else
4704: echo "$as_me: failed program was:" >&5
4705: cat conftest.$ac_ext >&5
4706: # Broken: fails on valid input.
4707: continue
4708: fi
4709: rm -f conftest.err conftest.$ac_ext
4710:
4711: # OK, works on sane cases. Now check whether non-existent headers
4712: # can be detected and how.
4713: cat >conftest.$ac_ext <<_ACEOF
1.3 ! noro 4714: #line $LINENO "configure"
1.1 noro 4715: #include "confdefs.h"
4716: #include <ac_nonexistent.h>
4717: _ACEOF
1.3 ! noro 4718: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.1 noro 4719: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4720: ac_status=$?
4721: egrep -v '^ *\+' conftest.er1 >conftest.err
4722: rm -f conftest.er1
4723: cat conftest.err >&5
1.3 ! noro 4724: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 4725: (exit $ac_status); } >/dev/null; then
4726: if test -s conftest.err; then
4727: ac_cpp_err=$ac_c_preproc_warn_flag
4728: else
4729: ac_cpp_err=
4730: fi
4731: else
4732: ac_cpp_err=yes
4733: fi
4734: if test -z "$ac_cpp_err"; then
4735: # Broken: success on invalid input.
4736: continue
4737: else
4738: echo "$as_me: failed program was:" >&5
4739: cat conftest.$ac_ext >&5
4740: # Passes both tests.
4741: ac_preproc_ok=:
4742: break
4743: fi
4744: rm -f conftest.err conftest.$ac_ext
4745:
4746: done
4747: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4748: rm -f conftest.err conftest.$ac_ext
4749: if $ac_preproc_ok; then
4750: :
4751: else
1.3 ! noro 4752: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
1.1 noro 4753: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
4754: { (exit 1); exit 1; }; }
4755: fi
4756:
4757: ac_ext=c
4758: ac_cpp='$CPP $CPPFLAGS'
4759: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4760: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4761: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4762:
1.3 ! noro 4763:
! 4764: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
! 4765: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
! 4766: if test "${ac_cv_header_stdc+set}" = set; then
1.1 noro 4767: echo $ECHO_N "(cached) $ECHO_C" >&6
4768: else
4769: cat >conftest.$ac_ext <<_ACEOF
1.3 ! noro 4770: #line $LINENO "configure"
1.1 noro 4771: #include "confdefs.h"
1.3 ! noro 4772: #include <stdlib.h>
! 4773: #include <stdarg.h>
! 4774: #include <string.h>
! 4775: #include <float.h>
! 4776:
1.1 noro 4777: _ACEOF
1.3 ! noro 4778: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.1 noro 4779: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4780: ac_status=$?
4781: egrep -v '^ *\+' conftest.er1 >conftest.err
4782: rm -f conftest.er1
4783: cat conftest.err >&5
1.3 ! noro 4784: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 4785: (exit $ac_status); } >/dev/null; then
4786: if test -s conftest.err; then
4787: ac_cpp_err=$ac_c_preproc_warn_flag
4788: else
4789: ac_cpp_err=
4790: fi
4791: else
4792: ac_cpp_err=yes
4793: fi
4794: if test -z "$ac_cpp_err"; then
1.3 ! noro 4795: ac_cv_header_stdc=yes
1.1 noro 4796: else
4797: echo "$as_me: failed program was:" >&5
4798: cat conftest.$ac_ext >&5
1.3 ! noro 4799: ac_cv_header_stdc=no
1.1 noro 4800: fi
4801: rm -f conftest.err conftest.$ac_ext
1.3 ! noro 4802:
! 4803: if test $ac_cv_header_stdc = yes; then
! 4804: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
! 4805: cat >conftest.$ac_ext <<_ACEOF
! 4806: #line $LINENO "configure"
! 4807: #include "confdefs.h"
! 4808: #include <string.h>
! 4809:
! 4810: _ACEOF
! 4811: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 4812: egrep "memchr" >/dev/null 2>&1; then
! 4813: :
! 4814: else
! 4815: ac_cv_header_stdc=no
1.1 noro 4816: fi
1.3 ! noro 4817: rm -f conftest*
1.1 noro 4818:
4819: fi
4820:
1.3 ! noro 4821: if test $ac_cv_header_stdc = yes; then
! 4822: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
! 4823: cat >conftest.$ac_ext <<_ACEOF
! 4824: #line $LINENO "configure"
! 4825: #include "confdefs.h"
! 4826: #include <stdlib.h>
! 4827:
! 4828: _ACEOF
! 4829: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 4830: egrep "free" >/dev/null 2>&1; then
! 4831: :
1.1 noro 4832: else
1.3 ! noro 4833: ac_cv_header_stdc=no
! 4834: fi
! 4835: rm -f conftest*
! 4836:
! 4837: fi
1.1 noro 4838:
1.3 ! noro 4839: if test $ac_cv_header_stdc = yes; then
! 4840: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
! 4841: if test "$cross_compiling" = yes; then
! 4842: :
! 4843: else
! 4844: cat >conftest.$ac_ext <<_ACEOF
! 4845: #line $LINENO "configure"
! 4846: #include "confdefs.h"
! 4847: #include <ctype.h>
! 4848: #if ((' ' & 0x0FF) == 0x020)
! 4849: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
! 4850: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
! 4851: #else
! 4852: # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
! 4853: || ('j' <= (c) && (c) <= 'r') \
! 4854: || ('s' <= (c) && (c) <= 'z'))
! 4855: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
! 4856: #endif
! 4857:
! 4858: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
! 4859: int
! 4860: main ()
! 4861: {
! 4862: int i;
! 4863: for (i = 0; i < 256; i++)
! 4864: if (XOR (islower (i), ISLOWER (i))
! 4865: || toupper (i) != TOUPPER (i))
! 4866: exit(2);
! 4867: exit (0);
! 4868: }
! 4869: _ACEOF
! 4870: rm -f conftest$ac_exeext
! 4871: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 4872: (eval $ac_link) 2>&5
! 4873: ac_status=$?
! 4874: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4875: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 4876: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4877: (eval $ac_try) 2>&5
! 4878: ac_status=$?
! 4879: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4880: (exit $ac_status); }; }; then
! 4881: :
! 4882: else
! 4883: echo "$as_me: program exited with status $ac_status" >&5
! 4884: echo "$as_me: failed program was:" >&5
! 4885: cat conftest.$ac_ext >&5
! 4886: ( exit $ac_status )
! 4887: ac_cv_header_stdc=no
! 4888: fi
! 4889: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 4890: fi
! 4891: fi
! 4892: fi
! 4893: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
! 4894: echo "${ECHO_T}$ac_cv_header_stdc" >&6
! 4895: if test $ac_cv_header_stdc = yes; then
! 4896:
! 4897: cat >>confdefs.h <<\_ACEOF
! 4898: #define STDC_HEADERS 1
! 4899: _ACEOF
! 4900:
! 4901: fi
! 4902:
! 4903: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
! 4904:
! 4905:
! 4906:
! 4907:
! 4908:
! 4909:
! 4910:
! 4911:
! 4912:
! 4913: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
! 4914: inttypes.h stdint.h unistd.h
! 4915: do
! 4916: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 4917: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 4918: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 4919: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 4920: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4921: else
! 4922: cat >conftest.$ac_ext <<_ACEOF
! 4923: #line $LINENO "configure"
! 4924: #include "confdefs.h"
! 4925: $ac_includes_default
! 4926:
! 4927: #include <$ac_header>
! 4928: _ACEOF
! 4929: rm -f conftest.$ac_objext
! 4930: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 4931: (eval $ac_compile) 2>&5
! 4932: ac_status=$?
! 4933: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4934: (exit $ac_status); } &&
! 4935: { ac_try='test -s conftest.$ac_objext'
! 4936: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4937: (eval $ac_try) 2>&5
! 4938: ac_status=$?
! 4939: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4940: (exit $ac_status); }; }; then
! 4941: eval "$as_ac_Header=yes"
! 4942: else
! 4943: echo "$as_me: failed program was:" >&5
! 4944: cat conftest.$ac_ext >&5
! 4945: eval "$as_ac_Header=no"
! 4946: fi
! 4947: rm -f conftest.$ac_objext conftest.$ac_ext
! 4948: fi
! 4949: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 4950: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 4951: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 4952: cat >>confdefs.h <<_ACEOF
! 4953: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 4954: _ACEOF
! 4955:
! 4956: fi
! 4957:
! 4958: done
! 4959:
! 4960:
! 4961:
! 4962: for ac_header in dlfcn.h
! 4963: do
! 4964: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 4965: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 4966: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 4967: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 4968: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 4969: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4970: fi
! 4971: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 4972: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 4973: else
! 4974: # Is the header compilable?
! 4975: echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 4976: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
! 4977: cat >conftest.$ac_ext <<_ACEOF
! 4978: #line $LINENO "configure"
! 4979: #include "confdefs.h"
! 4980: $ac_includes_default
! 4981: #include <$ac_header>
! 4982: _ACEOF
! 4983: rm -f conftest.$ac_objext
! 4984: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 4985: (eval $ac_compile) 2>&5
! 4986: ac_status=$?
! 4987: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4988: (exit $ac_status); } &&
! 4989: { ac_try='test -s conftest.$ac_objext'
! 4990: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4991: (eval $ac_try) 2>&5
! 4992: ac_status=$?
! 4993: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4994: (exit $ac_status); }; }; then
! 4995: ac_header_compiler=yes
! 4996: else
! 4997: echo "$as_me: failed program was:" >&5
! 4998: cat conftest.$ac_ext >&5
! 4999: ac_header_compiler=no
! 5000: fi
! 5001: rm -f conftest.$ac_objext conftest.$ac_ext
! 5002: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 5003: echo "${ECHO_T}$ac_header_compiler" >&6
! 5004:
! 5005: # Is the header present?
! 5006: echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 5007: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
! 5008: cat >conftest.$ac_ext <<_ACEOF
! 5009: #line $LINENO "configure"
! 5010: #include "confdefs.h"
! 5011: #include <$ac_header>
! 5012: _ACEOF
! 5013: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 5014: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 5015: ac_status=$?
! 5016: egrep -v '^ *\+' conftest.er1 >conftest.err
! 5017: rm -f conftest.er1
! 5018: cat conftest.err >&5
! 5019: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5020: (exit $ac_status); } >/dev/null; then
! 5021: if test -s conftest.err; then
! 5022: ac_cpp_err=$ac_c_preproc_warn_flag
! 5023: else
! 5024: ac_cpp_err=
! 5025: fi
! 5026: else
! 5027: ac_cpp_err=yes
! 5028: fi
! 5029: if test -z "$ac_cpp_err"; then
! 5030: ac_header_preproc=yes
! 5031: else
! 5032: echo "$as_me: failed program was:" >&5
! 5033: cat conftest.$ac_ext >&5
! 5034: ac_header_preproc=no
! 5035: fi
! 5036: rm -f conftest.err conftest.$ac_ext
! 5037: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 5038: echo "${ECHO_T}$ac_header_preproc" >&6
! 5039:
! 5040: # So? What about this header?
! 5041: case $ac_header_compiler:$ac_header_preproc in
! 5042: yes:no )
! 5043: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 5044: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 5045: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 5046: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
! 5047: no:yes )
! 5048: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 5049: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 5050: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 5051: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 5052: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 5053: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
! 5054: esac
! 5055: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 5056: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 5057: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 5058: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5059: else
! 5060: eval "$as_ac_Header=$ac_header_preproc"
! 5061: fi
! 5062: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 5063: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 5064:
! 5065: fi
! 5066: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 5067: cat >>confdefs.h <<_ACEOF
! 5068: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 5069: _ACEOF
! 5070:
! 5071: fi
! 5072:
! 5073: done
! 5074:
! 5075:
! 5076:
! 5077:
! 5078:
! 5079: # Only perform the check for file, if the check method requires it
! 5080: case $deplibs_check_method in
! 5081: file_magic*)
! 5082: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
! 5083: echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
! 5084: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
! 5085: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
! 5086: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5087: else
! 5088: case $MAGIC_CMD in
! 5089: /*)
! 5090: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
! 5091: ;;
! 5092: ?:/*)
! 5093: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
! 5094: ;;
! 5095: *)
! 5096: ac_save_MAGIC_CMD="$MAGIC_CMD"
! 5097: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
! 5098: ac_dummy="/usr/bin:$PATH"
! 5099: for ac_dir in $ac_dummy; do
! 5100: test -z "$ac_dir" && ac_dir=.
! 5101: if test -f $ac_dir/${ac_tool_prefix}file; then
! 5102: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
! 5103: if test -n "$file_magic_test_file"; then
! 5104: case $deplibs_check_method in
! 5105: "file_magic "*)
! 5106: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
! 5107: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
! 5108: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
! 5109: egrep "$file_magic_regex" > /dev/null; then
! 5110: :
! 5111: else
! 5112: cat <<EOF 1>&2
! 5113:
! 5114: *** Warning: the command libtool uses to detect shared libraries,
! 5115: *** $file_magic_cmd, produces output that libtool cannot recognize.
! 5116: *** The result is that libtool may fail to recognize shared libraries
! 5117: *** as such. This will affect the creation of libtool libraries that
! 5118: *** depend on shared libraries, but programs linked with such libtool
! 5119: *** libraries will work regardless of this problem. Nevertheless, you
! 5120: *** may want to report the problem to your system manager and/or to
! 5121: *** bug-libtool@gnu.org
1.1 noro 5122:
5123: EOF
5124: fi ;;
5125: esac
5126: fi
5127: break
5128: fi
5129: done
5130: IFS="$ac_save_ifs"
5131: MAGIC_CMD="$ac_save_MAGIC_CMD"
5132: ;;
5133: esac
5134: fi
5135:
5136: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5137: if test -n "$MAGIC_CMD"; then
1.3 ! noro 5138: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
1.1 noro 5139: echo "${ECHO_T}$MAGIC_CMD" >&6
5140: else
1.3 ! noro 5141: echo "$as_me:$LINENO: result: no" >&5
1.1 noro 5142: echo "${ECHO_T}no" >&6
5143: fi
5144:
5145: if test -z "$lt_cv_path_MAGIC_CMD"; then
5146: if test -n "$ac_tool_prefix"; then
1.3 ! noro 5147: echo "$as_me:$LINENO: checking for file" >&5
1.1 noro 5148: echo $ECHO_N "checking for file... $ECHO_C" >&6
5149: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5150: echo $ECHO_N "(cached) $ECHO_C" >&6
5151: else
5152: case $MAGIC_CMD in
5153: /*)
5154: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5155: ;;
5156: ?:/*)
5157: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5158: ;;
5159: *)
5160: ac_save_MAGIC_CMD="$MAGIC_CMD"
5161: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5162: ac_dummy="/usr/bin:$PATH"
5163: for ac_dir in $ac_dummy; do
5164: test -z "$ac_dir" && ac_dir=.
5165: if test -f $ac_dir/file; then
5166: lt_cv_path_MAGIC_CMD="$ac_dir/file"
5167: if test -n "$file_magic_test_file"; then
5168: case $deplibs_check_method in
5169: "file_magic "*)
5170: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5171: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5172: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5173: egrep "$file_magic_regex" > /dev/null; then
5174: :
5175: else
5176: cat <<EOF 1>&2
5177:
5178: *** Warning: the command libtool uses to detect shared libraries,
5179: *** $file_magic_cmd, produces output that libtool cannot recognize.
5180: *** The result is that libtool may fail to recognize shared libraries
5181: *** as such. This will affect the creation of libtool libraries that
5182: *** depend on shared libraries, but programs linked with such libtool
5183: *** libraries will work regardless of this problem. Nevertheless, you
5184: *** may want to report the problem to your system manager and/or to
5185: *** bug-libtool@gnu.org
5186:
5187: EOF
5188: fi ;;
5189: esac
5190: fi
5191: break
5192: fi
5193: done
5194: IFS="$ac_save_ifs"
5195: MAGIC_CMD="$ac_save_MAGIC_CMD"
5196: ;;
5197: esac
5198: fi
5199:
5200: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5201: if test -n "$MAGIC_CMD"; then
1.3 ! noro 5202: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
1.1 noro 5203: echo "${ECHO_T}$MAGIC_CMD" >&6
5204: else
1.3 ! noro 5205: echo "$as_me:$LINENO: result: no" >&5
1.1 noro 5206: echo "${ECHO_T}no" >&6
5207: fi
5208:
5209: else
5210: MAGIC_CMD=:
5211: fi
5212: fi
5213:
5214: fi
5215: ;;
5216: esac
5217:
5218: if test -n "$ac_tool_prefix"; then
5219: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5220: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.3 ! noro 5221: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.1 noro 5222: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5223: if test "${ac_cv_prog_RANLIB+set}" = set; then
5224: echo $ECHO_N "(cached) $ECHO_C" >&6
5225: else
5226: if test -n "$RANLIB"; then
5227: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5228: else
1.3 ! noro 5229: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 5230: for as_dir in $PATH
! 5231: do
! 5232: IFS=$as_save_IFS
! 5233: test -z "$as_dir" && as_dir=.
! 5234: for ac_exec_ext in '' $ac_executable_extensions; do
! 5235: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 5236: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
! 5237: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 5238: break 2
! 5239: fi
! 5240: done
1.1 noro 5241: done
5242:
5243: fi
5244: fi
5245: RANLIB=$ac_cv_prog_RANLIB
5246: if test -n "$RANLIB"; then
1.3 ! noro 5247: echo "$as_me:$LINENO: result: $RANLIB" >&5
1.1 noro 5248: echo "${ECHO_T}$RANLIB" >&6
5249: else
1.3 ! noro 5250: echo "$as_me:$LINENO: result: no" >&5
1.1 noro 5251: echo "${ECHO_T}no" >&6
5252: fi
5253:
5254: fi
5255: if test -z "$ac_cv_prog_RANLIB"; then
5256: ac_ct_RANLIB=$RANLIB
5257: # Extract the first word of "ranlib", so it can be a program name with args.
5258: set dummy ranlib; ac_word=$2
1.3 ! noro 5259: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.1 noro 5260: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5261: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5262: echo $ECHO_N "(cached) $ECHO_C" >&6
5263: else
5264: if test -n "$ac_ct_RANLIB"; then
5265: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5266: else
1.3 ! noro 5267: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 5268: for as_dir in $PATH
! 5269: do
! 5270: IFS=$as_save_IFS
! 5271: test -z "$as_dir" && as_dir=.
! 5272: for ac_exec_ext in '' $ac_executable_extensions; do
! 5273: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 5274: ac_cv_prog_ac_ct_RANLIB="ranlib"
! 5275: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 5276: break 2
! 5277: fi
! 5278: done
1.1 noro 5279: done
5280:
5281: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5282: fi
5283: fi
5284: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5285: if test -n "$ac_ct_RANLIB"; then
1.3 ! noro 5286: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1.1 noro 5287: echo "${ECHO_T}$ac_ct_RANLIB" >&6
5288: else
1.3 ! noro 5289: echo "$as_me:$LINENO: result: no" >&5
1.1 noro 5290: echo "${ECHO_T}no" >&6
5291: fi
5292:
5293: RANLIB=$ac_ct_RANLIB
5294: else
5295: RANLIB="$ac_cv_prog_RANLIB"
5296: fi
5297:
5298: if test -n "$ac_tool_prefix"; then
5299: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5300: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.3 ! noro 5301: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.1 noro 5302: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5303: if test "${ac_cv_prog_STRIP+set}" = set; then
5304: echo $ECHO_N "(cached) $ECHO_C" >&6
5305: else
5306: if test -n "$STRIP"; then
5307: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5308: else
1.3 ! noro 5309: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 5310: for as_dir in $PATH
! 5311: do
! 5312: IFS=$as_save_IFS
! 5313: test -z "$as_dir" && as_dir=.
! 5314: for ac_exec_ext in '' $ac_executable_extensions; do
! 5315: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 5316: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
! 5317: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 5318: break 2
! 5319: fi
! 5320: done
1.1 noro 5321: done
5322:
5323: fi
5324: fi
5325: STRIP=$ac_cv_prog_STRIP
5326: if test -n "$STRIP"; then
1.3 ! noro 5327: echo "$as_me:$LINENO: result: $STRIP" >&5
1.1 noro 5328: echo "${ECHO_T}$STRIP" >&6
5329: else
1.3 ! noro 5330: echo "$as_me:$LINENO: result: no" >&5
1.1 noro 5331: echo "${ECHO_T}no" >&6
5332: fi
5333:
5334: fi
5335: if test -z "$ac_cv_prog_STRIP"; then
5336: ac_ct_STRIP=$STRIP
5337: # Extract the first word of "strip", so it can be a program name with args.
5338: set dummy strip; ac_word=$2
1.3 ! noro 5339: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.1 noro 5340: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5341: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5342: echo $ECHO_N "(cached) $ECHO_C" >&6
5343: else
5344: if test -n "$ac_ct_STRIP"; then
5345: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5346: else
1.3 ! noro 5347: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 5348: for as_dir in $PATH
! 5349: do
! 5350: IFS=$as_save_IFS
! 5351: test -z "$as_dir" && as_dir=.
! 5352: for ac_exec_ext in '' $ac_executable_extensions; do
! 5353: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 5354: ac_cv_prog_ac_ct_STRIP="strip"
! 5355: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 5356: break 2
! 5357: fi
! 5358: done
1.1 noro 5359: done
5360:
5361: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5362: fi
5363: fi
5364: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5365: if test -n "$ac_ct_STRIP"; then
1.3 ! noro 5366: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1.1 noro 5367: echo "${ECHO_T}$ac_ct_STRIP" >&6
5368: else
1.3 ! noro 5369: echo "$as_me:$LINENO: result: no" >&5
1.1 noro 5370: echo "${ECHO_T}no" >&6
5371: fi
5372:
5373: STRIP=$ac_ct_STRIP
5374: else
5375: STRIP="$ac_cv_prog_STRIP"
5376: fi
5377:
1.3 ! noro 5378:
1.1 noro 5379: enable_dlopen=no
5380: enable_win32_dll=no
5381:
5382: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5383: if test "${enable_libtool_lock+set}" = set; then
5384: enableval="$enable_libtool_lock"
5385:
5386: fi;
5387: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5388:
5389: # Some flags need to be propagated to the compiler or linker for good
5390: # libtool support.
5391: case $host in
5392: *-*-irix6*)
5393: # Find out which ABI we are using.
1.3 ! noro 5394: echo '#line 5394 "configure"' > conftest.$ac_ext
! 5395: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.1 noro 5396: (eval $ac_compile) 2>&5
5397: ac_status=$?
1.3 ! noro 5398: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 5399: (exit $ac_status); }; then
5400: case `/usr/bin/file conftest.$ac_objext` in
5401: *32-bit*)
5402: LD="${LD-ld} -32"
5403: ;;
5404: *N32*)
5405: LD="${LD-ld} -n32"
5406: ;;
5407: *64-bit*)
5408: LD="${LD-ld} -64"
5409: ;;
5410: esac
5411: fi
5412: rm -rf conftest*
5413: ;;
5414:
5415: *-*-sco3.2v5*)
5416: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5417: SAVE_CFLAGS="$CFLAGS"
5418: CFLAGS="$CFLAGS -belf"
1.3 ! noro 5419: echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
1.1 noro 5420: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5421: if test "${lt_cv_cc_needs_belf+set}" = set; then
5422: echo $ECHO_N "(cached) $ECHO_C" >&6
5423: else
5424:
1.3 ! noro 5425:
1.1 noro 5426: ac_ext=c
5427: ac_cpp='$CPP $CPPFLAGS'
5428: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5429: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5430: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5431:
5432: cat >conftest.$ac_ext <<_ACEOF
1.3 ! noro 5433: #line $LINENO "configure"
1.1 noro 5434: #include "confdefs.h"
5435:
1.3 ! noro 5436: #ifdef F77_DUMMY_MAIN
! 5437: # ifdef __cplusplus
! 5438: extern "C"
! 5439: # endif
! 5440: int F77_DUMMY_MAIN() { return 1; }
! 5441: #endif
1.1 noro 5442: int
5443: main ()
5444: {
5445:
5446: ;
5447: return 0;
5448: }
5449: _ACEOF
5450: rm -f conftest.$ac_objext conftest$ac_exeext
1.3 ! noro 5451: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.1 noro 5452: (eval $ac_link) 2>&5
5453: ac_status=$?
1.3 ! noro 5454: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 5455: (exit $ac_status); } &&
5456: { ac_try='test -s conftest$ac_exeext'
1.3 ! noro 5457: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.1 noro 5458: (eval $ac_try) 2>&5
5459: ac_status=$?
1.3 ! noro 5460: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 5461: (exit $ac_status); }; }; then
5462: lt_cv_cc_needs_belf=yes
5463: else
5464: echo "$as_me: failed program was:" >&5
5465: cat conftest.$ac_ext >&5
5466: lt_cv_cc_needs_belf=no
5467: fi
5468: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5469: ac_ext=c
5470: ac_cpp='$CPP $CPPFLAGS'
5471: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5472: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5473: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5474:
5475: fi
1.3 ! noro 5476: echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
1.1 noro 5477: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5478: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5479: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5480: CFLAGS="$SAVE_CFLAGS"
5481: fi
5482: ;;
5483:
1.3 ! noro 5484:
1.1 noro 5485: esac
5486:
5487: # Sed substitution that helps us do robust quoting. It backslashifies
5488: # metacharacters that are still active within double-quoted strings.
5489: Xsed='sed -e s/^X//'
5490: sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5491:
5492: # Same as above, but do not quote variable references.
5493: double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5494:
5495: # Sed substitution to delay expansion of an escaped shell variable in a
5496: # double_quote_subst'ed string.
5497: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5498:
5499: # Constants:
5500: rm="rm -f"
5501:
5502: # Global variables:
5503: default_ofile=libtool
5504: can_build_shared=yes
5505:
5506: # All known linkers require a `.a' archive for static linking (except M$VC,
5507: # which needs '.lib').
5508: libext=a
5509: ltmain="$ac_aux_dir/ltmain.sh"
5510: ofile="$default_ofile"
5511: with_gnu_ld="$lt_cv_prog_gnu_ld"
5512: need_locks="$enable_libtool_lock"
5513:
5514: old_CC="$CC"
5515: old_CFLAGS="$CFLAGS"
5516:
5517: # Set sane defaults for various variables
5518: test -z "$AR" && AR=ar
5519: test -z "$AR_FLAGS" && AR_FLAGS=cru
5520: test -z "$AS" && AS=as
5521: test -z "$CC" && CC=cc
5522: test -z "$DLLTOOL" && DLLTOOL=dlltool
5523: test -z "$LD" && LD=ld
5524: test -z "$LN_S" && LN_S="ln -s"
5525: test -z "$MAGIC_CMD" && MAGIC_CMD=file
5526: test -z "$NM" && NM=nm
5527: test -z "$OBJDUMP" && OBJDUMP=objdump
5528: test -z "$RANLIB" && RANLIB=:
5529: test -z "$STRIP" && STRIP=:
5530: test -z "$ac_objext" && ac_objext=o
5531:
5532: if test x"$host" != x"$build"; then
5533: ac_tool_prefix=${host_alias}-
5534: else
5535: ac_tool_prefix=
5536: fi
5537:
5538: # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5539: case $host_os in
5540: linux-gnu*) ;;
5541: linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5542: esac
5543:
5544: case $host_os in
5545: aix3*)
5546: # AIX sometimes has problems with the GCC collect2 program. For some
5547: # reason, if we set the COLLECT_NAMES environment variable, the problems
5548: # vanish in a puff of smoke.
5549: if test "X${COLLECT_NAMES+set}" != Xset; then
5550: COLLECT_NAMES=
5551: export COLLECT_NAMES
5552: fi
5553: ;;
5554: esac
5555:
5556: # Determine commands to create old-style static archives.
5557: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5558: old_postinstall_cmds='chmod 644 $oldlib'
5559: old_postuninstall_cmds=
5560:
5561: if test -n "$RANLIB"; then
5562: case $host_os in
5563: openbsd*)
5564: old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5565: ;;
5566: *)
5567: old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5568: ;;
5569: esac
5570: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5571: fi
5572:
5573: # Allow CC to be a program name with arguments.
5574: set dummy $CC
5575: compiler="$2"
5576:
1.3 ! noro 5577: echo "$as_me:$LINENO: checking for objdir" >&5
1.1 noro 5578: echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5579: rm -f .libs 2>/dev/null
5580: mkdir .libs 2>/dev/null
5581: if test -d .libs; then
5582: objdir=.libs
5583: else
5584: # MS-DOS does not allow filenames that begin with a dot.
5585: objdir=_libs
5586: fi
5587: rmdir .libs 2>/dev/null
1.3 ! noro 5588: echo "$as_me:$LINENO: result: $objdir" >&5
1.1 noro 5589: echo "${ECHO_T}$objdir" >&6
5590:
1.3 ! noro 5591:
1.1 noro 5592:
5593: # Check whether --with-pic or --without-pic was given.
5594: if test "${with_pic+set}" = set; then
5595: withval="$with_pic"
5596: pic_mode="$withval"
5597: else
5598: pic_mode=default
5599: fi;
5600: test -z "$pic_mode" && pic_mode=default
5601:
5602: # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5603: # in isolation, and that seeing it set (from the cache) indicates that
5604: # the associated values are set (in the cache) correctly too.
1.3 ! noro 5605: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
1.1 noro 5606: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5607: if test "${lt_cv_prog_cc_pic+set}" = set; then
5608: echo $ECHO_N "(cached) $ECHO_C" >&6
5609: else
5610: lt_cv_prog_cc_pic=
5611: lt_cv_prog_cc_shlib=
5612: lt_cv_prog_cc_wl=
5613: lt_cv_prog_cc_static=
5614: lt_cv_prog_cc_no_builtin=
5615: lt_cv_prog_cc_can_build_shared=$can_build_shared
5616:
5617: if test "$GCC" = yes; then
5618: lt_cv_prog_cc_wl='-Wl,'
5619: lt_cv_prog_cc_static='-static'
5620:
5621: case $host_os in
5622: aix*)
5623: # Below there is a dirty hack to force normal static linking with -ldl
5624: # The problem is because libdl dynamically linked with both libc and
5625: # libC (AIX C++ library), which obviously doesn't included in libraries
5626: # list by gcc. This cause undefined symbols with -static flags.
5627: # This hack allows C programs to be linked with "-static -ldl", but
5628: # not sure about C++ programs.
5629: lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5630: ;;
5631: amigaos*)
5632: # FIXME: we need at least 68020 code to build shared libraries, but
5633: # adding the `-m68020' flag to GCC prevents building anything better,
5634: # like `-m68040'.
5635: lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5636: ;;
5637: beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
5638: # PIC is the default for these OSes.
5639: ;;
5640: darwin* | rhapsody*)
5641: # PIC is the default on this platform
5642: # Common symbols not allowed in MH_DYLIB files
5643: lt_cv_prog_cc_pic='-fno-common'
5644: ;;
5645: cygwin* | mingw* | pw32* | os2*)
5646: # This hack is so that the source file can tell whether it is being
5647: # built for inclusion in a dll (and should export symbols for example).
5648: lt_cv_prog_cc_pic='-DDLL_EXPORT'
5649: ;;
5650: sysv4*MP*)
5651: if test -d /usr/nec; then
5652: lt_cv_prog_cc_pic=-Kconform_pic
5653: fi
5654: ;;
5655: *)
5656: lt_cv_prog_cc_pic='-fPIC'
5657: ;;
5658: esac
5659: else
5660: # PORTME Check for PIC flags for the system compiler.
5661: case $host_os in
5662: aix3* | aix4* | aix5*)
5663: lt_cv_prog_cc_wl='-Wl,'
5664: # All AIX code is PIC.
5665: if test "$host_cpu" = ia64; then
5666: # AIX 5 now supports IA64 processor
5667: lt_cv_prog_cc_static='-Bstatic'
5668: else
5669: lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5670: fi
5671: ;;
5672:
5673: hpux9* | hpux10* | hpux11*)
5674: # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5675: lt_cv_prog_cc_wl='-Wl,'
5676: lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5677: lt_cv_prog_cc_pic='+Z'
5678: ;;
5679:
5680: irix5* | irix6*)
5681: lt_cv_prog_cc_wl='-Wl,'
5682: lt_cv_prog_cc_static='-non_shared'
5683: # PIC (with -KPIC) is the default.
5684: ;;
5685:
5686: cygwin* | mingw* | pw32* | os2*)
5687: # This hack is so that the source file can tell whether it is being
5688: # built for inclusion in a dll (and should export symbols for example).
5689: lt_cv_prog_cc_pic='-DDLL_EXPORT'
5690: ;;
5691:
5692: newsos6)
5693: lt_cv_prog_cc_pic='-KPIC'
5694: lt_cv_prog_cc_static='-Bstatic'
5695: ;;
5696:
5697: osf3* | osf4* | osf5*)
5698: # All OSF/1 code is PIC.
5699: lt_cv_prog_cc_wl='-Wl,'
5700: lt_cv_prog_cc_static='-non_shared'
5701: ;;
5702:
5703: sco3.2v5*)
5704: lt_cv_prog_cc_pic='-Kpic'
5705: lt_cv_prog_cc_static='-dn'
5706: lt_cv_prog_cc_shlib='-belf'
5707: ;;
5708:
5709: solaris*)
5710: lt_cv_prog_cc_pic='-KPIC'
5711: lt_cv_prog_cc_static='-Bstatic'
5712: lt_cv_prog_cc_wl='-Wl,'
5713: ;;
5714:
5715: sunos4*)
5716: lt_cv_prog_cc_pic='-PIC'
5717: lt_cv_prog_cc_static='-Bstatic'
5718: lt_cv_prog_cc_wl='-Qoption ld '
5719: ;;
5720:
5721: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5722: lt_cv_prog_cc_pic='-KPIC'
5723: lt_cv_prog_cc_static='-Bstatic'
5724: if test "x$host_vendor" = xsni; then
5725: lt_cv_prog_cc_wl='-LD'
5726: else
5727: lt_cv_prog_cc_wl='-Wl,'
5728: fi
5729: ;;
5730:
5731: uts4*)
5732: lt_cv_prog_cc_pic='-pic'
5733: lt_cv_prog_cc_static='-Bstatic'
5734: ;;
5735:
5736: sysv4*MP*)
5737: if test -d /usr/nec ;then
5738: lt_cv_prog_cc_pic='-Kconform_pic'
5739: lt_cv_prog_cc_static='-Bstatic'
5740: fi
5741: ;;
5742:
5743: *)
5744: lt_cv_prog_cc_can_build_shared=no
5745: ;;
5746: esac
5747: fi
5748:
5749: fi
5750:
5751: if test -z "$lt_cv_prog_cc_pic"; then
1.3 ! noro 5752: echo "$as_me:$LINENO: result: none" >&5
1.1 noro 5753: echo "${ECHO_T}none" >&6
5754: else
1.3 ! noro 5755: echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
1.1 noro 5756: echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5757:
5758: # Check to make sure the pic_flag actually works.
1.3 ! noro 5759: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
1.1 noro 5760: echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5761: if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5762: echo $ECHO_N "(cached) $ECHO_C" >&6
5763: else
5764: save_CFLAGS="$CFLAGS"
5765: CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5766: cat >conftest.$ac_ext <<_ACEOF
1.3 ! noro 5767: #line $LINENO "configure"
1.1 noro 5768: #include "confdefs.h"
5769:
1.3 ! noro 5770: #ifdef F77_DUMMY_MAIN
! 5771: # ifdef __cplusplus
! 5772: extern "C"
! 5773: # endif
! 5774: int F77_DUMMY_MAIN() { return 1; }
! 5775: #endif
1.1 noro 5776: int
5777: main ()
5778: {
5779:
5780: ;
5781: return 0;
5782: }
5783: _ACEOF
5784: rm -f conftest.$ac_objext
1.3 ! noro 5785: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.1 noro 5786: (eval $ac_compile) 2>&5
5787: ac_status=$?
1.3 ! noro 5788: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 5789: (exit $ac_status); } &&
5790: { ac_try='test -s conftest.$ac_objext'
1.3 ! noro 5791: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.1 noro 5792: (eval $ac_try) 2>&5
5793: ac_status=$?
1.3 ! noro 5794: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 5795: (exit $ac_status); }; }; then
5796: case $host_os in
5797: hpux9* | hpux10* | hpux11*)
5798: # On HP-UX, both CC and GCC only warn that PIC is supported... then
5799: # they create non-PIC objects. So, if there were any warnings, we
5800: # assume that PIC is not supported.
5801: if test -s conftest.err; then
5802: lt_cv_prog_cc_pic_works=no
5803: else
5804: lt_cv_prog_cc_pic_works=yes
5805: fi
5806: ;;
5807: *)
5808: lt_cv_prog_cc_pic_works=yes
5809: ;;
5810: esac
5811:
5812: else
5813: echo "$as_me: failed program was:" >&5
5814: cat conftest.$ac_ext >&5
5815: lt_cv_prog_cc_pic_works=no
5816:
5817: fi
5818: rm -f conftest.$ac_objext conftest.$ac_ext
5819: CFLAGS="$save_CFLAGS"
5820:
5821: fi
5822:
1.3 ! noro 5823:
1.1 noro 5824: if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5825: lt_cv_prog_cc_pic=
5826: lt_cv_prog_cc_can_build_shared=no
5827: else
5828: lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5829: fi
5830:
1.3 ! noro 5831: echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
1.1 noro 5832: echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5833: fi
5834:
5835: # Check for any special shared library compilation flags.
5836: if test -n "$lt_cv_prog_cc_shlib"; then
1.3 ! noro 5837: { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
1.1 noro 5838: echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5839: if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5840: else
1.3 ! noro 5841: { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
1.1 noro 5842: echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5843: lt_cv_prog_cc_can_build_shared=no
5844: fi
5845: fi
5846:
1.3 ! noro 5847: echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
1.1 noro 5848: echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5849: if test "${lt_cv_prog_cc_static_works+set}" = set; then
5850: echo $ECHO_N "(cached) $ECHO_C" >&6
5851: else
5852: lt_cv_prog_cc_static_works=no
5853: save_LDFLAGS="$LDFLAGS"
5854: LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5855: cat >conftest.$ac_ext <<_ACEOF
1.3 ! noro 5856: #line $LINENO "configure"
1.1 noro 5857: #include "confdefs.h"
5858:
1.3 ! noro 5859: #ifdef F77_DUMMY_MAIN
! 5860: # ifdef __cplusplus
! 5861: extern "C"
! 5862: # endif
! 5863: int F77_DUMMY_MAIN() { return 1; }
! 5864: #endif
1.1 noro 5865: int
5866: main ()
5867: {
5868:
5869: ;
5870: return 0;
5871: }
5872: _ACEOF
5873: rm -f conftest.$ac_objext conftest$ac_exeext
1.3 ! noro 5874: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.1 noro 5875: (eval $ac_link) 2>&5
5876: ac_status=$?
1.3 ! noro 5877: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 5878: (exit $ac_status); } &&
5879: { ac_try='test -s conftest$ac_exeext'
1.3 ! noro 5880: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.1 noro 5881: (eval $ac_try) 2>&5
5882: ac_status=$?
1.3 ! noro 5883: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 5884: (exit $ac_status); }; }; then
5885: lt_cv_prog_cc_static_works=yes
5886: else
5887: echo "$as_me: failed program was:" >&5
5888: cat conftest.$ac_ext >&5
5889: fi
5890: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5891: LDFLAGS="$save_LDFLAGS"
5892:
5893: fi
5894:
1.3 ! noro 5895:
1.1 noro 5896: # Belt *and* braces to stop my trousers falling down:
5897: test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
1.3 ! noro 5898: echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
1.1 noro 5899: echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5900:
5901: pic_flag="$lt_cv_prog_cc_pic"
5902: special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5903: wl="$lt_cv_prog_cc_wl"
5904: link_static_flag="$lt_cv_prog_cc_static"
5905: no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5906: can_build_shared="$lt_cv_prog_cc_can_build_shared"
5907:
1.3 ! noro 5908:
1.1 noro 5909: # Check to see if options -o and -c are simultaneously supported by compiler
1.3 ! noro 5910: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
1.1 noro 5911: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5912: if test "${lt_cv_compiler_c_o+set}" = set; then
5913: echo $ECHO_N "(cached) $ECHO_C" >&6
5914: else
5915:
5916: $rm -r conftest 2>/dev/null
5917: mkdir conftest
5918: cd conftest
5919: echo "int some_variable = 0;" > conftest.$ac_ext
5920: mkdir out
5921: # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5922: # that will create temporary files in the current directory regardless of
5923: # the output directory. Thus, making CWD read-only will cause this test
5924: # to fail, enabling locking or at least warning the user not to do parallel
5925: # builds.
5926: chmod -w .
5927: save_CFLAGS="$CFLAGS"
5928: CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5929: compiler_c_o=no
1.3 ! noro 5930: if { (eval echo configure:5930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
1.1 noro 5931: # The compiler can only warn and ignore the option if not recognized
5932: # So say no if there are warnings
5933: if test -s out/conftest.err; then
5934: lt_cv_compiler_c_o=no
5935: else
5936: lt_cv_compiler_c_o=yes
5937: fi
5938: else
5939: # Append any errors to the config.log.
5940: cat out/conftest.err 1>&5
5941: lt_cv_compiler_c_o=no
5942: fi
5943: CFLAGS="$save_CFLAGS"
5944: chmod u+w .
5945: $rm conftest* out/*
5946: rmdir out
5947: cd ..
5948: rmdir conftest
5949: $rm -r conftest 2>/dev/null
5950:
5951: fi
5952:
5953: compiler_c_o=$lt_cv_compiler_c_o
1.3 ! noro 5954: echo "$as_me:$LINENO: result: $compiler_c_o" >&5
1.1 noro 5955: echo "${ECHO_T}$compiler_c_o" >&6
5956:
5957: if test x"$compiler_c_o" = x"yes"; then
5958: # Check to see if we can write to a .lo
1.3 ! noro 5959: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
1.1 noro 5960: echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5961: if test "${lt_cv_compiler_o_lo+set}" = set; then
5962: echo $ECHO_N "(cached) $ECHO_C" >&6
5963: else
5964:
5965: lt_cv_compiler_o_lo=no
5966: save_CFLAGS="$CFLAGS"
5967: CFLAGS="$CFLAGS -c -o conftest.lo"
5968: save_objext="$ac_objext"
5969: ac_objext=lo
5970: cat >conftest.$ac_ext <<_ACEOF
1.3 ! noro 5971: #line $LINENO "configure"
1.1 noro 5972: #include "confdefs.h"
5973:
1.3 ! noro 5974: #ifdef F77_DUMMY_MAIN
! 5975: # ifdef __cplusplus
! 5976: extern "C"
! 5977: # endif
! 5978: int F77_DUMMY_MAIN() { return 1; }
! 5979: #endif
1.1 noro 5980: int
5981: main ()
5982: {
5983: int some_variable = 0;
5984: ;
5985: return 0;
5986: }
5987: _ACEOF
5988: rm -f conftest.$ac_objext
1.3 ! noro 5989: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.1 noro 5990: (eval $ac_compile) 2>&5
5991: ac_status=$?
1.3 ! noro 5992: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 5993: (exit $ac_status); } &&
5994: { ac_try='test -s conftest.$ac_objext'
1.3 ! noro 5995: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.1 noro 5996: (eval $ac_try) 2>&5
5997: ac_status=$?
1.3 ! noro 5998: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 5999: (exit $ac_status); }; }; then
6000: # The compiler can only warn and ignore the option if not recognized
6001: # So say no if there are warnings
6002: if test -s conftest.err; then
6003: lt_cv_compiler_o_lo=no
6004: else
6005: lt_cv_compiler_o_lo=yes
6006: fi
6007:
6008: else
6009: echo "$as_me: failed program was:" >&5
6010: cat conftest.$ac_ext >&5
6011: fi
6012: rm -f conftest.$ac_objext conftest.$ac_ext
6013: ac_objext="$save_objext"
6014: CFLAGS="$save_CFLAGS"
6015:
6016: fi
6017:
6018: compiler_o_lo=$lt_cv_compiler_o_lo
1.3 ! noro 6019: echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
1.1 noro 6020: echo "${ECHO_T}$compiler_o_lo" >&6
6021: else
6022: compiler_o_lo=no
6023: fi
6024:
6025: # Check to see if we can do hard links to lock some files if needed
6026: hard_links="nottested"
6027: if test "$compiler_c_o" = no && test "$need_locks" != no; then
6028: # do not overwrite the value of need_locks provided by the user
1.3 ! noro 6029: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
1.1 noro 6030: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6031: hard_links=yes
6032: $rm conftest*
6033: ln conftest.a conftest.b 2>/dev/null && hard_links=no
6034: touch conftest.a
6035: ln conftest.a conftest.b 2>&5 || hard_links=no
6036: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.3 ! noro 6037: echo "$as_me:$LINENO: result: $hard_links" >&5
1.1 noro 6038: echo "${ECHO_T}$hard_links" >&6
6039: if test "$hard_links" = no; then
1.3 ! noro 6040: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
1.1 noro 6041: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6042: need_locks=warn
6043: fi
6044: else
6045: need_locks=no
6046: fi
6047:
6048: if test "$GCC" = yes; then
6049: # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
1.3 ! noro 6050: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
1.1 noro 6051: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6052: echo "int some_variable = 0;" > conftest.$ac_ext
6053: save_CFLAGS="$CFLAGS"
6054: CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
6055: compiler_rtti_exceptions=no
6056: cat >conftest.$ac_ext <<_ACEOF
1.3 ! noro 6057: #line $LINENO "configure"
1.1 noro 6058: #include "confdefs.h"
6059:
1.3 ! noro 6060: #ifdef F77_DUMMY_MAIN
! 6061: # ifdef __cplusplus
! 6062: extern "C"
! 6063: # endif
! 6064: int F77_DUMMY_MAIN() { return 1; }
! 6065: #endif
1.1 noro 6066: int
6067: main ()
6068: {
6069: int some_variable = 0;
6070: ;
6071: return 0;
6072: }
6073: _ACEOF
6074: rm -f conftest.$ac_objext
1.3 ! noro 6075: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.1 noro 6076: (eval $ac_compile) 2>&5
6077: ac_status=$?
1.3 ! noro 6078: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 6079: (exit $ac_status); } &&
6080: { ac_try='test -s conftest.$ac_objext'
1.3 ! noro 6081: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.1 noro 6082: (eval $ac_try) 2>&5
6083: ac_status=$?
1.3 ! noro 6084: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 6085: (exit $ac_status); }; }; then
6086: # The compiler can only warn and ignore the option if not recognized
6087: # So say no if there are warnings
6088: if test -s conftest.err; then
6089: compiler_rtti_exceptions=no
6090: else
6091: compiler_rtti_exceptions=yes
6092: fi
6093:
6094: else
6095: echo "$as_me: failed program was:" >&5
6096: cat conftest.$ac_ext >&5
6097: fi
6098: rm -f conftest.$ac_objext conftest.$ac_ext
6099: CFLAGS="$save_CFLAGS"
1.3 ! noro 6100: echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
1.1 noro 6101: echo "${ECHO_T}$compiler_rtti_exceptions" >&6
6102:
6103: if test "$compiler_rtti_exceptions" = "yes"; then
6104: no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
6105: else
6106: no_builtin_flag=' -fno-builtin'
6107: fi
6108: fi
6109:
6110: # See if the linker supports building shared libraries.
1.3 ! noro 6111: echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
1.1 noro 6112: echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
6113:
6114: allow_undefined_flag=
6115: no_undefined_flag=
6116: need_lib_prefix=unknown
6117: need_version=unknown
6118: # when you set need_version to no, make sure it does not cause -set_version
6119: # flags to be left without arguments
6120: archive_cmds=
6121: archive_expsym_cmds=
6122: old_archive_from_new_cmds=
6123: old_archive_from_expsyms_cmds=
6124: export_dynamic_flag_spec=
6125: whole_archive_flag_spec=
6126: thread_safe_flag_spec=
6127: hardcode_into_libs=no
6128: hardcode_libdir_flag_spec=
6129: hardcode_libdir_separator=
6130: hardcode_direct=no
6131: hardcode_minus_L=no
6132: hardcode_shlibpath_var=unsupported
6133: runpath_var=
6134: link_all_deplibs=unknown
6135: always_export_symbols=no
6136: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6137: # include_expsyms should be a list of space-separated symbols to be *always*
6138: # included in the symbol list
6139: include_expsyms=
6140: # exclude_expsyms can be an egrep regular expression of symbols to exclude
6141: # it will be wrapped by ` (' and `)$', so one must not match beginning or
6142: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6143: # as well as any symbol that contains `d'.
6144: exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6145: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6146: # platforms (ab)use it in PIC code, but their linkers get confused if
6147: # the symbol is explicitly referenced. Since portable code cannot
6148: # rely on this symbol name, it's probably fine to never include it in
6149: # preloaded symbol tables.
6150: extract_expsyms_cmds=
6151:
6152: case $host_os in
6153: cygwin* | mingw* | pw32*)
6154: # FIXME: the MSVC++ port hasn't been tested in a loooong time
6155: # When not using gcc, we currently assume that we are using
6156: # Microsoft Visual C++.
6157: if test "$GCC" != yes; then
6158: with_gnu_ld=no
6159: fi
6160: ;;
6161: openbsd*)
6162: with_gnu_ld=no
6163: ;;
6164: esac
6165:
6166: ld_shlibs=yes
6167: if test "$with_gnu_ld" = yes; then
6168: # If archive_cmds runs LD, not CC, wlarc should be empty
6169: wlarc='${wl}'
6170:
6171: # See if GNU ld supports shared libraries.
6172: case $host_os in
6173: aix3* | aix4* | aix5*)
6174: # On AIX, the GNU linker is very broken
6175: # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
6176: ld_shlibs=no
6177: cat <<EOF 1>&2
6178:
6179: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6180: *** to be unable to reliably create shared libraries on AIX.
6181: *** Therefore, libtool is disabling shared libraries support. If you
6182: *** really care for shared libraries, you may want to modify your PATH
6183: *** so that a non-GNU linker is found, and then restart.
6184:
6185: EOF
6186: ;;
6187:
6188: amigaos*)
6189: archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6190: hardcode_libdir_flag_spec='-L$libdir'
6191: hardcode_minus_L=yes
6192:
6193: # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6194: # that the semantics of dynamic libraries on AmigaOS, at least up
6195: # to version 4, is to share data among multiple programs linked
6196: # with the same dynamic library. Since this doesn't match the
6197: # behavior of shared libraries on other platforms, we can use
6198: # them.
6199: ld_shlibs=no
6200: ;;
6201:
6202: beos*)
6203: if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6204: allow_undefined_flag=unsupported
6205: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6206: # support --undefined. This deserves some investigation. FIXME
6207: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6208: else
6209: ld_shlibs=no
6210: fi
6211: ;;
6212:
6213: cygwin* | mingw* | pw32*)
6214: # hardcode_libdir_flag_spec is actually meaningless, as there is
6215: # no search path for DLLs.
6216: hardcode_libdir_flag_spec='-L$libdir'
6217: allow_undefined_flag=unsupported
6218: always_export_symbols=yes
6219:
6220: extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6221: sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6222: test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6223: if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6224: else $CC -o impgen impgen.c ; fi)~
6225: $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6226:
6227: old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6228:
6229: # cygwin and mingw dlls have different entry points and sets of symbols
6230: # to exclude.
6231: # FIXME: what about values for MSVC?
6232: dll_entry=__cygwin_dll_entry@12
6233: dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6234: case $host_os in
6235: mingw*)
6236: # mingw values
6237: dll_entry=_DllMainCRTStartup@12
6238: dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6239: ;;
6240: esac
6241:
6242: # mingw and cygwin differ, and it's simplest to just exclude the union
6243: # of the two symbol sets.
6244: dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6245:
6246: # recent cygwin and mingw systems supply a stub DllMain which the user
6247: # can override, but on older systems we have to supply one (in ltdll.c)
6248: if test "x$lt_cv_need_dllmain" = "xyes"; then
6249: ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6250: ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
6251: test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6252: else
6253: ltdll_obj=
6254: ltdll_cmds=
6255: fi
6256:
6257: # Extract the symbol export list from an `--export-all' def file,
6258: # then regenerate the def file from the symbol export list, so that
6259: # the compiled dll only exports the symbol export list.
6260: # Be careful not to strip the DATA tag left be newer dlltools.
6261: export_symbols_cmds="$ltdll_cmds"'
6262: $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6263: sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6264:
6265: # If the export-symbols file already is a .def file (1st line
6266: # is EXPORTS), use it as is.
6267: # If DATA tags from a recent dlltool are present, honour them!
6268: archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
6269: cp $export_symbols $output_objdir/$soname-def;
6270: else
6271: echo EXPORTS > $output_objdir/$soname-def;
6272: _lt_hint=1;
6273: cat $export_symbols | while read symbol; do
6274: set dummy \$symbol;
6275: case \$# in
6276: 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6277: *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6278: esac;
6279: _lt_hint=`expr 1 + \$_lt_hint`;
6280: done;
6281: fi~
6282: '"$ltdll_cmds"'
6283: $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6284: $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6285: $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6286: $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
6287: $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6288: ;;
6289:
6290: netbsd*)
6291: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6292: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6293: wlarc=
6294: else
6295: archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6296: archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6297: fi
6298: ;;
6299:
6300: solaris* | sysv5*)
6301: if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6302: ld_shlibs=no
6303: cat <<EOF 1>&2
6304:
6305: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6306: *** create shared libraries on Solaris systems. Therefore, libtool
6307: *** is disabling shared libraries support. We urge you to upgrade GNU
6308: *** binutils to release 2.9.1 or newer. Another option is to modify
6309: *** your PATH or compiler configuration so that the native linker is
6310: *** used, and then restart.
6311:
6312: EOF
6313: elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6314: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6315: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6316: else
6317: ld_shlibs=no
6318: fi
6319: ;;
6320:
6321: sunos4*)
6322: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6323: wlarc=
6324: hardcode_direct=yes
6325: hardcode_shlibpath_var=no
6326: ;;
6327:
6328: *)
6329: if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6330: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6331: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6332: else
6333: ld_shlibs=no
6334: fi
6335: ;;
6336: esac
6337:
6338: if test "$ld_shlibs" = yes; then
6339: runpath_var=LD_RUN_PATH
6340: hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6341: export_dynamic_flag_spec='${wl}--export-dynamic'
6342: case $host_os in
6343: cygwin* | mingw* | pw32*)
6344: # dlltool doesn't understand --whole-archive et. al.
6345: whole_archive_flag_spec=
6346: ;;
6347: *)
6348: # ancient GNU ld didn't support --whole-archive et. al.
6349: if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6350: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6351: else
6352: whole_archive_flag_spec=
6353: fi
6354: ;;
6355: esac
6356: fi
6357: else
6358: # PORTME fill in a description of your system's linker (not GNU ld)
6359: case $host_os in
6360: aix3*)
6361: allow_undefined_flag=unsupported
6362: always_export_symbols=yes
6363: archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6364: # Note: this linker hardcodes the directories in LIBPATH if there
6365: # are no directories specified by -L.
6366: hardcode_minus_L=yes
6367: if test "$GCC" = yes && test -z "$link_static_flag"; then
6368: # Neither direct hardcoding nor static linking is supported with a
6369: # broken collect2.
6370: hardcode_direct=unsupported
6371: fi
6372: ;;
6373:
6374: aix4* | aix5*)
6375: if test "$host_cpu" = ia64; then
6376: # On IA64, the linker does run time linking by default, so we don't
6377: # have to do anything special.
6378: aix_use_runtimelinking=no
6379: exp_sym_flag='-Bexport'
6380: no_entry_flag=""
6381: else
6382: aix_use_runtimelinking=no
6383:
6384: # Test if we are trying to use run time linking or normal
6385: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6386: # need to do runtime linking.
6387: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6388: for ld_flag in $LDFLAGS; do
6389: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6390: aix_use_runtimelinking=yes
6391: break
6392: fi
6393: done
6394: esac
6395:
6396: exp_sym_flag='-bexport'
6397: no_entry_flag='-bnoentry'
6398: fi
6399:
6400: # When large executables or shared objects are built, AIX ld can
6401: # have problems creating the table of contents. If linking a library
6402: # or program results in "error TOC overflow" add -mminimal-toc to
6403: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6404: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6405:
6406: hardcode_direct=yes
6407: archive_cmds=''
6408: hardcode_libdir_separator=':'
6409: if test "$GCC" = yes; then
6410: case $host_os in aix4.[012]|aix4.[012].*)
6411: collect2name=`${CC} -print-prog-name=collect2`
6412: if test -f "$collect2name" && \
6413: strings "$collect2name" | grep resolve_lib_name >/dev/null
6414: then
6415: # We have reworked collect2
6416: hardcode_direct=yes
6417: else
6418: # We have old collect2
6419: hardcode_direct=unsupported
6420: # It fails to find uninstalled libraries when the uninstalled
6421: # path is not listed in the libpath. Setting hardcode_minus_L
6422: # to unsupported forces relinking
6423: hardcode_minus_L=yes
6424: hardcode_libdir_flag_spec='-L$libdir'
6425: hardcode_libdir_separator=
6426: fi
6427: esac
6428:
6429: shared_flag='-shared'
6430: else
6431: # not using gcc
6432: if test "$host_cpu" = ia64; then
6433: shared_flag='${wl}-G'
6434: else
6435: if test "$aix_use_runtimelinking" = yes; then
6436: shared_flag='${wl}-G'
6437: else
6438: shared_flag='${wl}-bM:SRE'
6439: fi
6440: fi
6441: fi
6442:
6443: # It seems that -bexpall can do strange things, so it is better to
6444: # generate a list of symbols to export.
6445: always_export_symbols=yes
6446: if test "$aix_use_runtimelinking" = yes; then
6447: # Warning - without using the other runtime loading flags (-brtl),
6448: # -berok will link without error, but may produce a broken library.
6449: allow_undefined_flag='-berok'
6450: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6451: archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6452: else
6453: if test "$host_cpu" = ia64; then
6454: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6455: allow_undefined_flag="-z nodefs"
6456: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6457: else
6458: hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6459: # Warning - without using the other run time loading flags,
6460: # -berok will link without error, but may produce a broken library.
6461: allow_undefined_flag='${wl}-berok'
6462: # This is a bit strange, but is similar to how AIX traditionally builds
6463: # it's shared libraries.
6464: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
6465: fi
6466: fi
6467: ;;
6468:
6469: amigaos*)
6470: archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6471: hardcode_libdir_flag_spec='-L$libdir'
6472: hardcode_minus_L=yes
6473: # see comment about different semantics on the GNU ld section
6474: ld_shlibs=no
6475: ;;
6476:
6477: cygwin* | mingw* | pw32*)
6478: # When not using gcc, we currently assume that we are using
6479: # Microsoft Visual C++.
6480: # hardcode_libdir_flag_spec is actually meaningless, as there is
6481: # no search path for DLLs.
6482: hardcode_libdir_flag_spec=' '
6483: allow_undefined_flag=unsupported
6484: # Tell ltmain to make .lib files, not .a files.
6485: libext=lib
6486: # FIXME: Setting linknames here is a bad hack.
6487: archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6488: # The linker will automatically build a .lib file if we build a DLL.
6489: old_archive_from_new_cmds='true'
6490: # FIXME: Should let the user specify the lib program.
6491: old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6492: fix_srcfile_path='`cygpath -w "$srcfile"`'
6493: ;;
6494:
6495: darwin* | rhapsody*)
6496: case "$host_os" in
6497: rhapsody* | darwin1.[012])
6498: allow_undefined_flag='-undefined suppress'
6499: ;;
6500: *) # Darwin 1.3 on
6501: allow_undefined_flag='-flat_namespace -undefined suppress'
6502: ;;
6503: esac
6504: # FIXME: Relying on posixy $() will cause problems for
6505: # cross-compilation, but unfortunately the echo tests do not
6506: # yet detect zsh echo's removal of \ escapes.
6507: archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
6508: # We need to add '_' to the symbols in $export_symbols first
6509: #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6510: hardcode_direct=yes
6511: hardcode_shlibpath_var=no
6512: whole_archive_flag_spec='-all_load $convenience'
6513: ;;
6514:
6515: freebsd1*)
6516: ld_shlibs=no
6517: ;;
6518:
6519: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6520: # support. Future versions do this automatically, but an explicit c++rt0.o
6521: # does not break anything, and helps significantly (at the cost of a little
6522: # extra space).
6523: freebsd2.2*)
6524: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6525: hardcode_libdir_flag_spec='-R$libdir'
6526: hardcode_direct=yes
6527: hardcode_shlibpath_var=no
6528: ;;
6529:
6530: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6531: freebsd2*)
6532: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6533: hardcode_direct=yes
6534: hardcode_minus_L=yes
6535: hardcode_shlibpath_var=no
6536: ;;
6537:
6538: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6539: freebsd*)
6540: archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6541: hardcode_libdir_flag_spec='-R$libdir'
6542: hardcode_direct=yes
6543: hardcode_shlibpath_var=no
6544: ;;
6545:
6546: hpux9* | hpux10* | hpux11*)
6547: case $host_os in
6548: hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
6549: *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6550: esac
6551: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6552: hardcode_libdir_separator=:
6553: hardcode_direct=yes
6554: hardcode_minus_L=yes # Not in the search PATH, but as the default
6555: # location of the library.
6556: export_dynamic_flag_spec='${wl}-E'
6557: ;;
6558:
6559: irix5* | irix6*)
6560: if test "$GCC" = yes; then
6561: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6562: else
6563: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6564: fi
6565: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6566: hardcode_libdir_separator=:
6567: link_all_deplibs=yes
6568: ;;
6569:
6570: netbsd*)
6571: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6572: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6573: else
6574: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6575: fi
6576: hardcode_libdir_flag_spec='-R$libdir'
6577: hardcode_direct=yes
6578: hardcode_shlibpath_var=no
6579: ;;
6580:
6581: newsos6)
6582: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6583: hardcode_direct=yes
6584: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6585: hardcode_libdir_separator=:
6586: hardcode_shlibpath_var=no
6587: ;;
6588:
6589: openbsd*)
6590: hardcode_direct=yes
6591: hardcode_shlibpath_var=no
6592: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6593: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6594: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6595: export_dynamic_flag_spec='${wl}-E'
6596: else
6597: case "$host_os" in
6598: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6599: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6600: hardcode_libdir_flag_spec='-R$libdir'
6601: ;;
6602: *)
6603: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6604: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6605: ;;
6606: esac
6607: fi
6608: ;;
6609:
6610: os2*)
6611: hardcode_libdir_flag_spec='-L$libdir'
6612: hardcode_minus_L=yes
6613: allow_undefined_flag=unsupported
6614: archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6615: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6616: ;;
6617:
6618: osf3*)
6619: if test "$GCC" = yes; then
6620: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6621: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6622: else
6623: allow_undefined_flag=' -expect_unresolved \*'
6624: archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6625: fi
6626: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6627: hardcode_libdir_separator=:
6628: ;;
6629:
6630: osf4* | osf5*) # as osf3* with the addition of -msym flag
6631: if test "$GCC" = yes; then
6632: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6633: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6634: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6635: else
6636: allow_undefined_flag=' -expect_unresolved \*'
6637: archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6638: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6639: $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6640:
6641: #Both c and cxx compiler support -rpath directly
6642: hardcode_libdir_flag_spec='-rpath $libdir'
6643: fi
6644: hardcode_libdir_separator=:
6645: ;;
6646:
6647: sco3.2v5*)
6648: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6649: hardcode_shlibpath_var=no
6650: runpath_var=LD_RUN_PATH
6651: hardcode_runpath_var=yes
6652: export_dynamic_flag_spec='${wl}-Bexport'
6653: ;;
6654:
6655: solaris*)
6656: # gcc --version < 3.0 without binutils cannot create self contained
6657: # shared libraries reliably, requiring libgcc.a to resolve some of
6658: # the object symbols generated in some cases. Libraries that use
6659: # assert need libgcc.a to resolve __eprintf, for example. Linking
6660: # a copy of libgcc.a into every shared library to guarantee resolving
6661: # such symbols causes other problems: According to Tim Van Holder
6662: # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6663: # (to the application) exception stack for one thing.
6664: no_undefined_flag=' -z defs'
6665: if test "$GCC" = yes; then
6666: case `$CC --version 2>/dev/null` in
6667: [12].*)
6668: cat <<EOF 1>&2
6669:
6670: *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6671: *** create self contained shared libraries on Solaris systems, without
6672: *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6673: *** -no-undefined support, which will at least allow you to build shared
6674: *** libraries. However, you may find that when you link such libraries
6675: *** into an application without using GCC, you have to manually add
6676: *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6677: *** upgrade to a newer version of GCC. Another option is to rebuild your
6678: *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6679:
6680: EOF
6681: no_undefined_flag=
6682: ;;
6683: esac
6684: fi
6685: # $CC -shared without GNU ld will not create a library from C++
6686: # object files and a static libstdc++, better avoid it by now
6687: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6688: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6689: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6690: hardcode_libdir_flag_spec='-R$libdir'
6691: hardcode_shlibpath_var=no
6692: case $host_os in
6693: solaris2.[0-5] | solaris2.[0-5].*) ;;
6694: *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6695: whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6696: esac
6697: link_all_deplibs=yes
6698: ;;
6699:
6700: sunos4*)
6701: if test "x$host_vendor" = xsequent; then
6702: # Use $CC to link under sequent, because it throws in some extra .o
6703: # files that make .init and .fini sections work.
6704: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6705: else
6706: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6707: fi
6708: hardcode_libdir_flag_spec='-L$libdir'
6709: hardcode_direct=yes
6710: hardcode_minus_L=yes
6711: hardcode_shlibpath_var=no
6712: ;;
6713:
6714: sysv4)
6715: if test "x$host_vendor" = xsno; then
6716: archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
6717: hardcode_direct=yes # is this really true???
6718: else
6719: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6720: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6721: fi
6722: runpath_var='LD_RUN_PATH'
6723: hardcode_shlibpath_var=no
6724: ;;
6725:
6726: sysv4.3*)
6727: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6728: hardcode_shlibpath_var=no
6729: export_dynamic_flag_spec='-Bexport'
6730: ;;
6731:
6732: sysv5*)
6733: no_undefined_flag=' -z text'
6734: # $CC -shared without GNU ld will not create a library from C++
6735: # object files and a static libstdc++, better avoid it by now
6736: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6737: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6738: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6739: hardcode_libdir_flag_spec=
6740: hardcode_shlibpath_var=no
6741: runpath_var='LD_RUN_PATH'
6742: ;;
6743:
6744: uts4*)
6745: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6746: hardcode_libdir_flag_spec='-L$libdir'
6747: hardcode_shlibpath_var=no
6748: ;;
6749:
6750: dgux*)
6751: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6752: hardcode_libdir_flag_spec='-L$libdir'
6753: hardcode_shlibpath_var=no
6754: ;;
6755:
6756: sysv4*MP*)
6757: if test -d /usr/nec; then
6758: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6759: hardcode_shlibpath_var=no
6760: runpath_var=LD_RUN_PATH
6761: hardcode_runpath_var=yes
6762: ld_shlibs=yes
6763: fi
6764: ;;
6765:
6766: sysv4.2uw2*)
6767: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6768: hardcode_direct=yes
6769: hardcode_minus_L=no
6770: hardcode_shlibpath_var=no
6771: hardcode_runpath_var=yes
6772: runpath_var=LD_RUN_PATH
6773: ;;
6774:
6775: sysv5uw7* | unixware7*)
6776: no_undefined_flag='${wl}-z ${wl}text'
6777: if test "$GCC" = yes; then
6778: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6779: else
6780: archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6781: fi
6782: runpath_var='LD_RUN_PATH'
6783: hardcode_shlibpath_var=no
6784: ;;
6785:
6786: *)
6787: ld_shlibs=no
6788: ;;
6789: esac
6790: fi
1.3 ! noro 6791: echo "$as_me:$LINENO: result: $ld_shlibs" >&5
1.1 noro 6792: echo "${ECHO_T}$ld_shlibs" >&6
6793: test "$ld_shlibs" = no && can_build_shared=no
6794:
6795: # Check hardcoding attributes.
1.3 ! noro 6796: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
1.1 noro 6797: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6798: hardcode_action=
6799: if test -n "$hardcode_libdir_flag_spec" || \
6800: test -n "$runpath_var"; then
6801:
6802: # We can hardcode non-existant directories.
6803: if test "$hardcode_direct" != no &&
6804: # If the only mechanism to avoid hardcoding is shlibpath_var, we
6805: # have to relink, otherwise we might link with an installed library
6806: # when we should be linking with a yet-to-be-installed one
6807: ## test "$hardcode_shlibpath_var" != no &&
6808: test "$hardcode_minus_L" != no; then
6809: # Linking always hardcodes the temporary library directory.
6810: hardcode_action=relink
6811: else
6812: # We can link without hardcoding, and we can hardcode nonexisting dirs.
6813: hardcode_action=immediate
6814: fi
6815: else
6816: # We cannot hardcode anything, or else we can only hardcode existing
6817: # directories.
6818: hardcode_action=unsupported
6819: fi
1.3 ! noro 6820: echo "$as_me:$LINENO: result: $hardcode_action" >&5
1.1 noro 6821: echo "${ECHO_T}$hardcode_action" >&6
6822:
6823: striplib=
6824: old_striplib=
1.3 ! noro 6825: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
1.1 noro 6826: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6827: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6828: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6829: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1.3 ! noro 6830: echo "$as_me:$LINENO: result: yes" >&5
1.1 noro 6831: echo "${ECHO_T}yes" >&6
6832: else
1.3 ! noro 6833: echo "$as_me:$LINENO: result: no" >&5
1.1 noro 6834: echo "${ECHO_T}no" >&6
6835: fi
6836:
6837: reload_cmds='$LD$reload_flag -o $output$reload_objs'
6838: test -z "$deplibs_check_method" && deplibs_check_method=unknown
6839:
6840: # PORTME Fill in your ld.so characteristics
1.3 ! noro 6841: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
1.1 noro 6842: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6843: library_names_spec=
6844: libname_spec='lib$name'
6845: soname_spec=
6846: postinstall_cmds=
6847: postuninstall_cmds=
6848: finish_cmds=
6849: finish_eval=
6850: shlibpath_var=
6851: shlibpath_overrides_runpath=unknown
6852: version_type=none
6853: dynamic_linker="$host_os ld.so"
6854: sys_lib_dlsearch_path_spec="/lib /usr/lib"
6855: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6856:
6857: case $host_os in
6858: aix3*)
6859: version_type=linux
6860: library_names_spec='${libname}${release}.so$versuffix $libname.a'
6861: shlibpath_var=LIBPATH
6862:
6863: # AIX has no versioning support, so we append a major version to the name.
6864: soname_spec='${libname}${release}.so$major'
6865: ;;
6866:
6867: aix4* | aix5*)
6868: version_type=linux
6869: if test "$host_cpu" = ia64; then
6870: # AIX 5 supports IA64
6871: library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6872: shlibpath_var=LD_LIBRARY_PATH
6873: else
6874: # With GCC up to 2.95.x, collect2 would create an import file
6875: # for dependence libraries. The import file would start with
6876: # the line `#! .'. This would cause the generated library to
6877: # depend on `.', always an invalid library. This was fixed in
6878: # development snapshots of GCC prior to 3.0.
6879: case $host_os in
6880: aix4 | aix4.[01] | aix4.[01].*)
6881: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6882: echo ' yes '
6883: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6884: :
6885: else
6886: can_build_shared=no
6887: fi
6888: ;;
6889: esac
6890: # AIX (on Power*) has no versioning support, so currently we can
6891: # not hardcode correct soname into executable. Probably we can
6892: # add versioning support to collect2, so additional links can
6893: # be useful in future.
6894: if test "$aix_use_runtimelinking" = yes; then
6895: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6896: # instead of lib<name>.a to let people know that these are not
6897: # typical AIX shared libraries.
6898: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6899: else
6900: # We preserve .a as extension for shared libraries through AIX4.2
6901: # and later when we are not doing run time linking.
6902: library_names_spec='${libname}${release}.a $libname.a'
6903: soname_spec='${libname}${release}.so$major'
6904: fi
6905: shlibpath_var=LIBPATH
6906: fi
6907: ;;
6908:
6909: amigaos*)
6910: library_names_spec='$libname.ixlibrary $libname.a'
6911: # Create ${libname}_ixlibrary.a entries in /sys/libs.
6912: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
6913: ;;
6914:
6915: beos*)
6916: library_names_spec='${libname}.so'
6917: dynamic_linker="$host_os ld.so"
6918: shlibpath_var=LIBRARY_PATH
6919: ;;
6920:
6921: bsdi4*)
6922: version_type=linux
6923: need_version=no
6924: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6925: soname_spec='${libname}${release}.so$major'
6926: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6927: shlibpath_var=LD_LIBRARY_PATH
6928: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6929: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6930: export_dynamic_flag_spec=-rdynamic
6931: # the default ld.so.conf also contains /usr/contrib/lib and
6932: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6933: # libtool to hard-code these into programs
6934: ;;
6935:
6936: cygwin* | mingw* | pw32*)
6937: version_type=windows
6938: need_version=no
6939: need_lib_prefix=no
6940: case $GCC,$host_os in
6941: yes,cygwin*)
6942: library_names_spec='$libname.dll.a'
6943: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6944: postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6945: dldir=$destdir/`dirname \$dlpath`~
6946: test -d \$dldir || mkdir -p \$dldir~
6947: $install_prog .libs/$dlname \$dldir/$dlname'
6948: postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6949: dlpath=$dir/\$dldll~
6950: $rm \$dlpath'
6951: ;;
6952: yes,mingw*)
6953: library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6954: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
6955: ;;
6956: yes,pw32*)
6957: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6958: ;;
6959: *)
6960: library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6961: ;;
6962: esac
6963: dynamic_linker='Win32 ld.exe'
6964: # FIXME: first we should search . and the directory the executable is in
6965: shlibpath_var=PATH
6966: ;;
6967:
6968: darwin* | rhapsody*)
6969: dynamic_linker="$host_os dyld"
6970: version_type=darwin
6971: need_lib_prefix=no
6972: need_version=no
6973: # FIXME: Relying on posixy $() will cause problems for
6974: # cross-compilation, but unfortunately the echo tests do not
6975: # yet detect zsh echo's removal of \ escapes.
6976: library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
6977: soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6978: shlibpath_overrides_runpath=yes
6979: shlibpath_var=DYLD_LIBRARY_PATH
6980: ;;
6981:
6982: freebsd1*)
6983: dynamic_linker=no
6984: ;;
6985:
6986: freebsd*)
6987: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6988: version_type=freebsd-$objformat
6989: case $version_type in
6990: freebsd-elf*)
6991: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6992: need_version=no
6993: need_lib_prefix=no
6994: ;;
6995: freebsd-*)
6996: library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6997: need_version=yes
6998: ;;
6999: esac
7000: shlibpath_var=LD_LIBRARY_PATH
7001: case $host_os in
7002: freebsd2*)
7003: shlibpath_overrides_runpath=yes
7004: ;;
7005: *)
7006: shlibpath_overrides_runpath=no
7007: hardcode_into_libs=yes
7008: ;;
7009: esac
7010: ;;
7011:
7012: gnu*)
7013: version_type=linux
7014: need_lib_prefix=no
7015: need_version=no
7016: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
7017: soname_spec='${libname}${release}.so$major'
7018: shlibpath_var=LD_LIBRARY_PATH
7019: hardcode_into_libs=yes
7020: ;;
7021:
7022: hpux9* | hpux10* | hpux11*)
7023: # Give a soname corresponding to the major version so that dld.sl refuses to
7024: # link against other versions.
7025: dynamic_linker="$host_os dld.sl"
7026: version_type=sunos
7027: need_lib_prefix=no
7028: need_version=no
7029: shlibpath_var=SHLIB_PATH
7030: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7031: library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
7032: soname_spec='${libname}${release}.sl$major'
7033: # HP-UX runs *really* slowly unless shared libraries are mode 555.
7034: postinstall_cmds='chmod 555 $lib'
7035: ;;
7036:
7037: irix5* | irix6*)
7038: version_type=irix
7039: need_lib_prefix=no
7040: need_version=no
7041: soname_spec='${libname}${release}.so$major'
7042: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
7043: case $host_os in
7044: irix5*)
7045: libsuff= shlibsuff=
7046: ;;
7047: *)
7048: case $LD in # libtool.m4 will add one of these switches to LD
7049: *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
7050: *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
7051: *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
7052: *) libsuff= shlibsuff= libmagic=never-match;;
7053: esac
7054: ;;
7055: esac
7056: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7057: shlibpath_overrides_runpath=no
7058: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7059: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7060: ;;
7061:
7062: # No shared lib support for Linux oldld, aout, or coff.
7063: linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
7064: dynamic_linker=no
7065: ;;
7066:
7067: # This must be Linux ELF.
7068: linux-gnu*)
7069: version_type=linux
7070: need_lib_prefix=no
7071: need_version=no
7072: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7073: soname_spec='${libname}${release}.so$major'
7074: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7075: shlibpath_var=LD_LIBRARY_PATH
7076: shlibpath_overrides_runpath=no
7077: # This implies no fast_install, which is unacceptable.
7078: # Some rework will be needed to allow for fast_install
7079: # before this can be enabled.
7080: hardcode_into_libs=yes
7081:
7082: # We used to test for /lib/ld.so.1 and disable shared libraries on
7083: # powerpc, because MkLinux only supported shared libraries with the
7084: # GNU dynamic linker. Since this was broken with cross compilers,
7085: # most powerpc-linux boxes support dynamic linking these days and
7086: # people can always --disable-shared, the test was removed, and we
7087: # assume the GNU/Linux dynamic linker is in use.
7088: dynamic_linker='GNU/Linux ld.so'
7089: ;;
7090:
7091: netbsd*)
7092: version_type=sunos
7093: need_lib_prefix=no
7094: need_version=no
7095: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7096: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7097: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7098: dynamic_linker='NetBSD (a.out) ld.so'
7099: else
7100: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
7101: soname_spec='${libname}${release}.so$major'
7102: dynamic_linker='NetBSD ld.elf_so'
7103: fi
7104: shlibpath_var=LD_LIBRARY_PATH
7105: shlibpath_overrides_runpath=yes
7106: hardcode_into_libs=yes
7107: ;;
7108:
7109: newsos6)
7110: version_type=linux
7111: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7112: shlibpath_var=LD_LIBRARY_PATH
7113: shlibpath_overrides_runpath=yes
7114: ;;
7115:
7116: openbsd*)
7117: version_type=sunos
7118: need_lib_prefix=no
7119: need_version=no
7120: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7121: case "$host_os" in
7122: openbsd2.[89] | openbsd2.[89].*)
7123: shlibpath_overrides_runpath=no
7124: ;;
7125: *)
7126: shlibpath_overrides_runpath=yes
7127: ;;
7128: esac
7129: else
7130: shlibpath_overrides_runpath=yes
7131: fi
7132: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7133: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7134: shlibpath_var=LD_LIBRARY_PATH
7135: ;;
7136:
7137: os2*)
7138: libname_spec='$name'
7139: need_lib_prefix=no
7140: library_names_spec='$libname.dll $libname.a'
7141: dynamic_linker='OS/2 ld.exe'
7142: shlibpath_var=LIBPATH
7143: ;;
7144:
7145: osf3* | osf4* | osf5*)
7146: version_type=osf
7147: need_version=no
7148: soname_spec='${libname}${release}.so'
7149: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7150: shlibpath_var=LD_LIBRARY_PATH
7151: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7152: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7153: ;;
7154:
7155: sco3.2v5*)
7156: version_type=osf
7157: soname_spec='${libname}${release}.so$major'
7158: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7159: shlibpath_var=LD_LIBRARY_PATH
7160: ;;
7161:
7162: solaris*)
7163: version_type=linux
7164: need_lib_prefix=no
7165: need_version=no
7166: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7167: soname_spec='${libname}${release}.so$major'
7168: shlibpath_var=LD_LIBRARY_PATH
7169: shlibpath_overrides_runpath=yes
7170: hardcode_into_libs=yes
7171: # ldd complains unless libraries are executable
7172: postinstall_cmds='chmod +x $lib'
7173: ;;
7174:
7175: sunos4*)
7176: version_type=sunos
7177: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7178: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7179: shlibpath_var=LD_LIBRARY_PATH
7180: shlibpath_overrides_runpath=yes
7181: if test "$with_gnu_ld" = yes; then
7182: need_lib_prefix=no
7183: fi
7184: need_version=yes
7185: ;;
7186:
7187: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7188: version_type=linux
7189: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7190: soname_spec='${libname}${release}.so$major'
7191: shlibpath_var=LD_LIBRARY_PATH
7192: case $host_vendor in
7193: sni)
7194: shlibpath_overrides_runpath=no
7195: ;;
7196: motorola)
7197: need_lib_prefix=no
7198: need_version=no
7199: shlibpath_overrides_runpath=no
7200: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7201: ;;
7202: esac
7203: ;;
7204:
7205: uts4*)
7206: version_type=linux
7207: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7208: soname_spec='${libname}${release}.so$major'
7209: shlibpath_var=LD_LIBRARY_PATH
7210: ;;
7211:
7212: dgux*)
7213: version_type=linux
7214: need_lib_prefix=no
7215: need_version=no
7216: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7217: soname_spec='${libname}${release}.so$major'
7218: shlibpath_var=LD_LIBRARY_PATH
7219: ;;
7220:
7221: sysv4*MP*)
7222: if test -d /usr/nec ;then
7223: version_type=linux
7224: library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7225: soname_spec='$libname.so.$major'
7226: shlibpath_var=LD_LIBRARY_PATH
7227: fi
7228: ;;
7229:
7230: *)
7231: dynamic_linker=no
7232: ;;
7233: esac
1.3 ! noro 7234: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
1.1 noro 7235: echo "${ECHO_T}$dynamic_linker" >&6
7236: test "$dynamic_linker" = no && can_build_shared=no
7237:
7238: # Report the final consequences.
1.3 ! noro 7239: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
1.1 noro 7240: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
1.3 ! noro 7241: echo "$as_me:$LINENO: result: $can_build_shared" >&5
1.1 noro 7242: echo "${ECHO_T}$can_build_shared" >&6
7243:
1.3 ! noro 7244: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
1.1 noro 7245: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
7246: test "$can_build_shared" = "no" && enable_shared=no
7247:
7248: # On AIX, shared libraries and static libraries use the same namespace, and
7249: # are all built from PIC.
7250: case "$host_os" in
7251: aix3*)
7252: test "$enable_shared" = yes && enable_static=no
7253: if test -n "$RANLIB"; then
7254: archive_cmds="$archive_cmds~\$RANLIB \$lib"
7255: postinstall_cmds='$RANLIB $lib'
7256: fi
7257: ;;
7258:
7259: aix4*)
7260: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7261: test "$enable_shared" = yes && enable_static=no
7262: fi
7263: ;;
7264: esac
1.3 ! noro 7265: echo "$as_me:$LINENO: result: $enable_shared" >&5
1.1 noro 7266: echo "${ECHO_T}$enable_shared" >&6
7267:
1.3 ! noro 7268: echo "$as_me:$LINENO: checking whether to build static libraries" >&5
1.1 noro 7269: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
7270: # Make sure either enable_shared or enable_static is yes.
7271: test "$enable_shared" = yes || enable_static=yes
1.3 ! noro 7272: echo "$as_me:$LINENO: result: $enable_static" >&5
1.1 noro 7273: echo "${ECHO_T}$enable_static" >&6
7274:
7275: if test "$hardcode_action" = relink; then
7276: # Fast installation is not supported
7277: enable_fast_install=no
7278: elif test "$shlibpath_overrides_runpath" = yes ||
7279: test "$enable_shared" = no; then
7280: # Fast installation is not necessary
7281: enable_fast_install=needless
7282: fi
7283:
7284: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7285: if test "$GCC" = yes; then
7286: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7287: fi
7288:
7289: if test "x$enable_dlopen" != xyes; then
7290: enable_dlopen=unknown
7291: enable_dlopen_self=unknown
7292: enable_dlopen_self_static=unknown
7293: else
7294: lt_cv_dlopen=no
7295: lt_cv_dlopen_libs=
7296:
7297: case $host_os in
7298: beos*)
7299: lt_cv_dlopen="load_add_on"
7300: lt_cv_dlopen_libs=
7301: lt_cv_dlopen_self=yes
7302: ;;
7303:
7304: cygwin* | mingw* | pw32*)
7305: lt_cv_dlopen="LoadLibrary"
7306: lt_cv_dlopen_libs=
7307: ;;
7308:
7309: *)
1.3 ! noro 7310: echo "$as_me:$LINENO: checking for shl_load" >&5
1.1 noro 7311: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7312: if test "${ac_cv_func_shl_load+set}" = set; then
7313: echo $ECHO_N "(cached) $ECHO_C" >&6
7314: else
7315: cat >conftest.$ac_ext <<_ACEOF
1.3 ! noro 7316: #line $LINENO "configure"
1.1 noro 7317: #include "confdefs.h"
7318: /* System header to define __stub macros and hopefully few prototypes,
7319: which can conflict with char shl_load (); below. */
7320: #include <assert.h>
7321: /* Override any gcc2 internal prototype to avoid an error. */
7322: #ifdef __cplusplus
7323: extern "C"
7324: #endif
7325: /* We use char because int might match the return type of a gcc2
7326: builtin and then its argument prototype would still apply. */
7327: char shl_load ();
7328: char (*f) ();
7329:
1.3 ! noro 7330: #ifdef F77_DUMMY_MAIN
! 7331: # ifdef __cplusplus
! 7332: extern "C"
! 7333: # endif
! 7334: int F77_DUMMY_MAIN() { return 1; }
! 7335: #endif
1.1 noro 7336: int
7337: main ()
7338: {
7339: /* The GNU C library defines this for functions which it implements
7340: to always fail with ENOSYS. Some functions are actually named
7341: something starting with __ and the normal name is an alias. */
7342: #if defined (__stub_shl_load) || defined (__stub___shl_load)
7343: choke me
7344: #else
7345: f = shl_load;
7346: #endif
7347:
7348: ;
7349: return 0;
7350: }
7351: _ACEOF
7352: rm -f conftest.$ac_objext conftest$ac_exeext
1.3 ! noro 7353: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.1 noro 7354: (eval $ac_link) 2>&5
7355: ac_status=$?
1.3 ! noro 7356: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 7357: (exit $ac_status); } &&
7358: { ac_try='test -s conftest$ac_exeext'
1.3 ! noro 7359: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.1 noro 7360: (eval $ac_try) 2>&5
7361: ac_status=$?
1.3 ! noro 7362: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 7363: (exit $ac_status); }; }; then
7364: ac_cv_func_shl_load=yes
7365: else
7366: echo "$as_me: failed program was:" >&5
7367: cat conftest.$ac_ext >&5
7368: ac_cv_func_shl_load=no
7369: fi
7370: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7371: fi
1.3 ! noro 7372: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
1.1 noro 7373: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7374: if test $ac_cv_func_shl_load = yes; then
7375: lt_cv_dlopen="shl_load"
7376: else
1.3 ! noro 7377: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
1.1 noro 7378: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7379: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7380: echo $ECHO_N "(cached) $ECHO_C" >&6
7381: else
7382: ac_check_lib_save_LIBS=$LIBS
7383: LIBS="-ldld $LIBS"
7384: cat >conftest.$ac_ext <<_ACEOF
1.3 ! noro 7385: #line $LINENO "configure"
1.1 noro 7386: #include "confdefs.h"
7387:
7388: /* Override any gcc2 internal prototype to avoid an error. */
7389: #ifdef __cplusplus
7390: extern "C"
7391: #endif
7392: /* We use char because int might match the return type of a gcc2
7393: builtin and then its argument prototype would still apply. */
7394: char shl_load ();
1.3 ! noro 7395: #ifdef F77_DUMMY_MAIN
! 7396: # ifdef __cplusplus
! 7397: extern "C"
! 7398: # endif
! 7399: int F77_DUMMY_MAIN() { return 1; }
! 7400: #endif
1.1 noro 7401: int
7402: main ()
7403: {
7404: shl_load ();
7405: ;
7406: return 0;
7407: }
7408: _ACEOF
7409: rm -f conftest.$ac_objext conftest$ac_exeext
1.3 ! noro 7410: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.1 noro 7411: (eval $ac_link) 2>&5
7412: ac_status=$?
1.3 ! noro 7413: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 7414: (exit $ac_status); } &&
7415: { ac_try='test -s conftest$ac_exeext'
1.3 ! noro 7416: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.1 noro 7417: (eval $ac_try) 2>&5
7418: ac_status=$?
1.3 ! noro 7419: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 7420: (exit $ac_status); }; }; then
7421: ac_cv_lib_dld_shl_load=yes
7422: else
7423: echo "$as_me: failed program was:" >&5
7424: cat conftest.$ac_ext >&5
7425: ac_cv_lib_dld_shl_load=no
7426: fi
7427: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7428: LIBS=$ac_check_lib_save_LIBS
7429: fi
1.3 ! noro 7430: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
1.1 noro 7431: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7432: if test $ac_cv_lib_dld_shl_load = yes; then
7433: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7434: else
1.3 ! noro 7435: echo "$as_me:$LINENO: checking for dlopen" >&5
1.1 noro 7436: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7437: if test "${ac_cv_func_dlopen+set}" = set; then
7438: echo $ECHO_N "(cached) $ECHO_C" >&6
7439: else
7440: cat >conftest.$ac_ext <<_ACEOF
1.3 ! noro 7441: #line $LINENO "configure"
1.1 noro 7442: #include "confdefs.h"
7443: /* System header to define __stub macros and hopefully few prototypes,
7444: which can conflict with char dlopen (); below. */
7445: #include <assert.h>
7446: /* Override any gcc2 internal prototype to avoid an error. */
7447: #ifdef __cplusplus
7448: extern "C"
7449: #endif
7450: /* We use char because int might match the return type of a gcc2
7451: builtin and then its argument prototype would still apply. */
7452: char dlopen ();
7453: char (*f) ();
7454:
1.3 ! noro 7455: #ifdef F77_DUMMY_MAIN
! 7456: # ifdef __cplusplus
! 7457: extern "C"
! 7458: # endif
! 7459: int F77_DUMMY_MAIN() { return 1; }
! 7460: #endif
1.1 noro 7461: int
7462: main ()
7463: {
7464: /* The GNU C library defines this for functions which it implements
7465: to always fail with ENOSYS. Some functions are actually named
7466: something starting with __ and the normal name is an alias. */
7467: #if defined (__stub_dlopen) || defined (__stub___dlopen)
7468: choke me
7469: #else
7470: f = dlopen;
7471: #endif
7472:
7473: ;
7474: return 0;
7475: }
7476: _ACEOF
7477: rm -f conftest.$ac_objext conftest$ac_exeext
1.3 ! noro 7478: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.1 noro 7479: (eval $ac_link) 2>&5
7480: ac_status=$?
1.3 ! noro 7481: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 7482: (exit $ac_status); } &&
7483: { ac_try='test -s conftest$ac_exeext'
1.3 ! noro 7484: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.1 noro 7485: (eval $ac_try) 2>&5
7486: ac_status=$?
1.3 ! noro 7487: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 7488: (exit $ac_status); }; }; then
7489: ac_cv_func_dlopen=yes
7490: else
7491: echo "$as_me: failed program was:" >&5
7492: cat conftest.$ac_ext >&5
7493: ac_cv_func_dlopen=no
7494: fi
7495: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7496: fi
1.3 ! noro 7497: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
1.1 noro 7498: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7499: if test $ac_cv_func_dlopen = yes; then
7500: lt_cv_dlopen="dlopen"
7501: else
1.3 ! noro 7502: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
1.1 noro 7503: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7504: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7505: echo $ECHO_N "(cached) $ECHO_C" >&6
7506: else
7507: ac_check_lib_save_LIBS=$LIBS
7508: LIBS="-ldl $LIBS"
7509: cat >conftest.$ac_ext <<_ACEOF
1.3 ! noro 7510: #line $LINENO "configure"
1.1 noro 7511: #include "confdefs.h"
7512:
7513: /* Override any gcc2 internal prototype to avoid an error. */
7514: #ifdef __cplusplus
7515: extern "C"
7516: #endif
7517: /* We use char because int might match the return type of a gcc2
7518: builtin and then its argument prototype would still apply. */
7519: char dlopen ();
1.3 ! noro 7520: #ifdef F77_DUMMY_MAIN
! 7521: # ifdef __cplusplus
! 7522: extern "C"
! 7523: # endif
! 7524: int F77_DUMMY_MAIN() { return 1; }
! 7525: #endif
1.1 noro 7526: int
7527: main ()
7528: {
7529: dlopen ();
7530: ;
7531: return 0;
7532: }
7533: _ACEOF
7534: rm -f conftest.$ac_objext conftest$ac_exeext
1.3 ! noro 7535: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.1 noro 7536: (eval $ac_link) 2>&5
7537: ac_status=$?
1.3 ! noro 7538: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 7539: (exit $ac_status); } &&
7540: { ac_try='test -s conftest$ac_exeext'
1.3 ! noro 7541: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.1 noro 7542: (eval $ac_try) 2>&5
7543: ac_status=$?
1.3 ! noro 7544: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 7545: (exit $ac_status); }; }; then
7546: ac_cv_lib_dl_dlopen=yes
7547: else
7548: echo "$as_me: failed program was:" >&5
7549: cat conftest.$ac_ext >&5
7550: ac_cv_lib_dl_dlopen=no
7551: fi
7552: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7553: LIBS=$ac_check_lib_save_LIBS
7554: fi
1.3 ! noro 7555: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
1.1 noro 7556: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7557: if test $ac_cv_lib_dl_dlopen = yes; then
7558: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7559: else
1.3 ! noro 7560: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
1.1 noro 7561: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7562: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7563: echo $ECHO_N "(cached) $ECHO_C" >&6
7564: else
7565: ac_check_lib_save_LIBS=$LIBS
7566: LIBS="-lsvld $LIBS"
7567: cat >conftest.$ac_ext <<_ACEOF
1.3 ! noro 7568: #line $LINENO "configure"
1.1 noro 7569: #include "confdefs.h"
7570:
7571: /* Override any gcc2 internal prototype to avoid an error. */
7572: #ifdef __cplusplus
7573: extern "C"
7574: #endif
7575: /* We use char because int might match the return type of a gcc2
7576: builtin and then its argument prototype would still apply. */
7577: char dlopen ();
1.3 ! noro 7578: #ifdef F77_DUMMY_MAIN
! 7579: # ifdef __cplusplus
! 7580: extern "C"
! 7581: # endif
! 7582: int F77_DUMMY_MAIN() { return 1; }
! 7583: #endif
1.1 noro 7584: int
7585: main ()
7586: {
7587: dlopen ();
7588: ;
7589: return 0;
7590: }
7591: _ACEOF
7592: rm -f conftest.$ac_objext conftest$ac_exeext
1.3 ! noro 7593: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.1 noro 7594: (eval $ac_link) 2>&5
7595: ac_status=$?
1.3 ! noro 7596: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 7597: (exit $ac_status); } &&
7598: { ac_try='test -s conftest$ac_exeext'
1.3 ! noro 7599: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.1 noro 7600: (eval $ac_try) 2>&5
7601: ac_status=$?
1.3 ! noro 7602: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 7603: (exit $ac_status); }; }; then
7604: ac_cv_lib_svld_dlopen=yes
7605: else
7606: echo "$as_me: failed program was:" >&5
7607: cat conftest.$ac_ext >&5
7608: ac_cv_lib_svld_dlopen=no
7609: fi
7610: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7611: LIBS=$ac_check_lib_save_LIBS
7612: fi
1.3 ! noro 7613: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
1.1 noro 7614: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7615: if test $ac_cv_lib_svld_dlopen = yes; then
7616: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7617: else
1.3 ! noro 7618: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
1.1 noro 7619: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7620: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7621: echo $ECHO_N "(cached) $ECHO_C" >&6
7622: else
7623: ac_check_lib_save_LIBS=$LIBS
7624: LIBS="-ldld $LIBS"
7625: cat >conftest.$ac_ext <<_ACEOF
1.3 ! noro 7626: #line $LINENO "configure"
1.1 noro 7627: #include "confdefs.h"
7628:
7629: /* Override any gcc2 internal prototype to avoid an error. */
7630: #ifdef __cplusplus
7631: extern "C"
7632: #endif
7633: /* We use char because int might match the return type of a gcc2
7634: builtin and then its argument prototype would still apply. */
7635: char dld_link ();
1.3 ! noro 7636: #ifdef F77_DUMMY_MAIN
! 7637: # ifdef __cplusplus
! 7638: extern "C"
! 7639: # endif
! 7640: int F77_DUMMY_MAIN() { return 1; }
! 7641: #endif
1.1 noro 7642: int
7643: main ()
7644: {
7645: dld_link ();
7646: ;
7647: return 0;
7648: }
7649: _ACEOF
7650: rm -f conftest.$ac_objext conftest$ac_exeext
1.3 ! noro 7651: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.1 noro 7652: (eval $ac_link) 2>&5
7653: ac_status=$?
1.3 ! noro 7654: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 7655: (exit $ac_status); } &&
7656: { ac_try='test -s conftest$ac_exeext'
1.3 ! noro 7657: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.1 noro 7658: (eval $ac_try) 2>&5
7659: ac_status=$?
1.3 ! noro 7660: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 7661: (exit $ac_status); }; }; then
7662: ac_cv_lib_dld_dld_link=yes
7663: else
7664: echo "$as_me: failed program was:" >&5
7665: cat conftest.$ac_ext >&5
7666: ac_cv_lib_dld_dld_link=no
7667: fi
7668: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7669: LIBS=$ac_check_lib_save_LIBS
7670: fi
1.3 ! noro 7671: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
1.1 noro 7672: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7673: if test $ac_cv_lib_dld_dld_link = yes; then
7674: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7675: fi
7676:
1.3 ! noro 7677:
1.1 noro 7678: fi
7679:
1.3 ! noro 7680:
1.1 noro 7681: fi
7682:
1.3 ! noro 7683:
1.1 noro 7684: fi
7685:
1.3 ! noro 7686:
1.1 noro 7687: fi
7688:
1.3 ! noro 7689:
1.1 noro 7690: fi
7691:
7692: ;;
7693: esac
7694:
7695: if test "x$lt_cv_dlopen" != xno; then
7696: enable_dlopen=yes
7697: else
7698: enable_dlopen=no
7699: fi
7700:
7701: case $lt_cv_dlopen in
7702: dlopen)
7703: save_CPPFLAGS="$CPPFLAGS"
7704: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7705:
7706: save_LDFLAGS="$LDFLAGS"
7707: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7708:
7709: save_LIBS="$LIBS"
7710: LIBS="$lt_cv_dlopen_libs $LIBS"
7711:
1.3 ! noro 7712: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
1.1 noro 7713: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7714: if test "${lt_cv_dlopen_self+set}" = set; then
7715: echo $ECHO_N "(cached) $ECHO_C" >&6
7716: else
7717: if test "$cross_compiling" = yes; then :
7718: lt_cv_dlopen_self=cross
7719: else
7720: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7721: lt_status=$lt_dlunknown
7722: cat > conftest.$ac_ext <<EOF
1.3 ! noro 7723: #line 7723 "configure"
1.1 noro 7724: #include "confdefs.h"
7725:
7726: #if HAVE_DLFCN_H
7727: #include <dlfcn.h>
7728: #endif
7729:
7730: #include <stdio.h>
7731:
7732: #ifdef RTLD_GLOBAL
7733: # define LT_DLGLOBAL RTLD_GLOBAL
7734: #else
7735: # ifdef DL_GLOBAL
7736: # define LT_DLGLOBAL DL_GLOBAL
7737: # else
7738: # define LT_DLGLOBAL 0
7739: # endif
7740: #endif
7741:
7742: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7743: find out it does not work in some platform. */
7744: #ifndef LT_DLLAZY_OR_NOW
7745: # ifdef RTLD_LAZY
7746: # define LT_DLLAZY_OR_NOW RTLD_LAZY
7747: # else
7748: # ifdef DL_LAZY
7749: # define LT_DLLAZY_OR_NOW DL_LAZY
7750: # else
7751: # ifdef RTLD_NOW
7752: # define LT_DLLAZY_OR_NOW RTLD_NOW
7753: # else
7754: # ifdef DL_NOW
7755: # define LT_DLLAZY_OR_NOW DL_NOW
7756: # else
7757: # define LT_DLLAZY_OR_NOW 0
7758: # endif
7759: # endif
7760: # endif
7761: # endif
7762: #endif
7763:
7764: #ifdef __cplusplus
7765: extern "C" void exit (int);
7766: #endif
7767:
7768: void fnord() { int i=42;}
7769: int main ()
7770: {
7771: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7772: int status = $lt_dlunknown;
7773:
7774: if (self)
7775: {
7776: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7777: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7778: /* dlclose (self); */
7779: }
7780:
7781: exit (status);
7782: }
7783: EOF
1.3 ! noro 7784: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.1 noro 7785: (eval $ac_link) 2>&5
7786: ac_status=$?
1.3 ! noro 7787: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 7788: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7789: (./conftest; exit; ) 2>/dev/null
7790: lt_status=$?
7791: case x$lt_status in
7792: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7793: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7794: x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7795: esac
7796: else :
7797: # compilation failed
7798: lt_cv_dlopen_self=no
7799: fi
7800: fi
7801: rm -fr conftest*
7802:
1.3 ! noro 7803:
1.1 noro 7804: fi
1.3 ! noro 7805: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
1.1 noro 7806: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7807:
7808: if test "x$lt_cv_dlopen_self" = xyes; then
7809: LDFLAGS="$LDFLAGS $link_static_flag"
1.3 ! noro 7810: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
1.1 noro 7811: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7812: if test "${lt_cv_dlopen_self_static+set}" = set; then
7813: echo $ECHO_N "(cached) $ECHO_C" >&6
7814: else
7815: if test "$cross_compiling" = yes; then :
7816: lt_cv_dlopen_self_static=cross
7817: else
7818: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7819: lt_status=$lt_dlunknown
7820: cat > conftest.$ac_ext <<EOF
1.3 ! noro 7821: #line 7821 "configure"
1.1 noro 7822: #include "confdefs.h"
7823:
7824: #if HAVE_DLFCN_H
7825: #include <dlfcn.h>
7826: #endif
7827:
7828: #include <stdio.h>
7829:
7830: #ifdef RTLD_GLOBAL
7831: # define LT_DLGLOBAL RTLD_GLOBAL
7832: #else
7833: # ifdef DL_GLOBAL
7834: # define LT_DLGLOBAL DL_GLOBAL
7835: # else
7836: # define LT_DLGLOBAL 0
7837: # endif
7838: #endif
7839:
7840: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7841: find out it does not work in some platform. */
7842: #ifndef LT_DLLAZY_OR_NOW
7843: # ifdef RTLD_LAZY
7844: # define LT_DLLAZY_OR_NOW RTLD_LAZY
7845: # else
7846: # ifdef DL_LAZY
7847: # define LT_DLLAZY_OR_NOW DL_LAZY
7848: # else
7849: # ifdef RTLD_NOW
7850: # define LT_DLLAZY_OR_NOW RTLD_NOW
7851: # else
7852: # ifdef DL_NOW
7853: # define LT_DLLAZY_OR_NOW DL_NOW
7854: # else
7855: # define LT_DLLAZY_OR_NOW 0
7856: # endif
7857: # endif
7858: # endif
7859: # endif
7860: #endif
7861:
7862: #ifdef __cplusplus
7863: extern "C" void exit (int);
7864: #endif
7865:
7866: void fnord() { int i=42;}
7867: int main ()
7868: {
7869: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7870: int status = $lt_dlunknown;
7871:
7872: if (self)
7873: {
7874: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7875: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7876: /* dlclose (self); */
7877: }
7878:
7879: exit (status);
7880: }
7881: EOF
1.3 ! noro 7882: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.1 noro 7883: (eval $ac_link) 2>&5
7884: ac_status=$?
1.3 ! noro 7885: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 7886: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7887: (./conftest; exit; ) 2>/dev/null
7888: lt_status=$?
7889: case x$lt_status in
7890: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7891: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7892: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7893: esac
7894: else :
7895: # compilation failed
7896: lt_cv_dlopen_self_static=no
7897: fi
7898: fi
7899: rm -fr conftest*
7900:
1.3 ! noro 7901:
1.1 noro 7902: fi
1.3 ! noro 7903: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
1.1 noro 7904: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7905: fi
7906:
7907: CPPFLAGS="$save_CPPFLAGS"
7908: LDFLAGS="$save_LDFLAGS"
7909: LIBS="$save_LIBS"
7910: ;;
7911: esac
7912:
7913: case $lt_cv_dlopen_self in
7914: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7915: *) enable_dlopen_self=unknown ;;
7916: esac
7917:
7918: case $lt_cv_dlopen_self_static in
7919: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7920: *) enable_dlopen_self_static=unknown ;;
7921: esac
7922: fi
7923:
1.3 ! noro 7924:
1.1 noro 7925: if test "$enable_shared" = yes && test "$GCC" = yes; then
7926: case $archive_cmds in
7927: *'~'*)
7928: # FIXME: we may have to deal with multi-command sequences.
7929: ;;
7930: '$CC '*)
7931: # Test whether the compiler implicitly links with -lc since on some
7932: # systems, -lgcc has to come before -lc. If gcc already passes -lc
7933: # to ld, don't add -lc before -lgcc.
1.3 ! noro 7934: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
1.1 noro 7935: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7936: if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7937: echo $ECHO_N "(cached) $ECHO_C" >&6
7938: else
7939: $rm conftest*
7940: echo 'static int dummy;' > conftest.$ac_ext
7941:
1.3 ! noro 7942: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.1 noro 7943: (eval $ac_compile) 2>&5
7944: ac_status=$?
1.3 ! noro 7945: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 7946: (exit $ac_status); }; then
7947: soname=conftest
7948: lib=conftest
7949: libobjs=conftest.$ac_objext
7950: deplibs=
7951: wl=$lt_cv_prog_cc_wl
7952: compiler_flags=-v
7953: linker_flags=-v
7954: verstring=
7955: output_objdir=.
7956: libname=conftest
7957: save_allow_undefined_flag=$allow_undefined_flag
7958: allow_undefined_flag=
1.3 ! noro 7959: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
1.1 noro 7960: (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7961: ac_status=$?
1.3 ! noro 7962: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 7963: (exit $ac_status); }
7964: then
7965: lt_cv_archive_cmds_need_lc=no
7966: else
7967: lt_cv_archive_cmds_need_lc=yes
7968: fi
7969: allow_undefined_flag=$save_allow_undefined_flag
7970: else
7971: cat conftest.err 1>&5
7972: fi
7973: fi
7974:
1.3 ! noro 7975: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
1.1 noro 7976: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7977: ;;
7978: esac
7979: fi
7980: need_lc=${lt_cv_archive_cmds_need_lc-yes}
7981:
7982: # The second clause should only fire when bootstrapping the
7983: # libtool distribution, otherwise you forgot to ship ltmain.sh
7984: # with your package, and you will get complaints that there are
7985: # no rules to generate ltmain.sh.
7986: if test -f "$ltmain"; then
7987: :
7988: else
7989: # If there is no Makefile yet, we rely on a make rule to execute
7990: # `config.status --recheck' to rerun these tests and create the
7991: # libtool script then.
7992: test -f Makefile && make "$ltmain"
7993: fi
7994:
7995: if test -f "$ltmain"; then
7996: trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7997: $rm -f "${ofile}T"
7998:
7999: echo creating $ofile
8000:
8001: # Now quote all the things that may contain metacharacters while being
8002: # careful not to overquote the AC_SUBSTed values. We take copies of the
8003: # variables and quote the copies for generation of the libtool script.
8004: for var in echo old_CC old_CFLAGS \
8005: AR AR_FLAGS CC LD LN_S NM SHELL \
8006: reload_flag reload_cmds wl \
8007: pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
8008: thread_safe_flag_spec whole_archive_flag_spec libname_spec \
8009: library_names_spec soname_spec \
8010: RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
8011: old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
8012: postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
8013: old_striplib striplib file_magic_cmd export_symbols_cmds \
8014: deplibs_check_method allow_undefined_flag no_undefined_flag \
8015: finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
8016: global_symbol_to_c_name_address \
8017: hardcode_libdir_flag_spec hardcode_libdir_separator \
8018: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8019: compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
8020:
8021: case $var in
8022: reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
8023: old_postinstall_cmds | old_postuninstall_cmds | \
8024: export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
8025: extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
8026: postinstall_cmds | postuninstall_cmds | \
8027: finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8028: # Double-quote double-evaled strings.
8029: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8030: ;;
8031: *)
8032: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8033: ;;
8034: esac
8035: done
8036:
8037: cat <<__EOF__ > "${ofile}T"
8038: #! $SHELL
8039:
8040: # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8041: # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8042: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8043: #
8044: # Copyright (C) 1996-2000 Free Software Foundation, Inc.
8045: # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8046: #
8047: # This program is free software; you can redistribute it and/or modify
8048: # it under the terms of the GNU General Public License as published by
8049: # the Free Software Foundation; either version 2 of the License, or
8050: # (at your option) any later version.
8051: #
8052: # This program is distributed in the hope that it will be useful, but
8053: # WITHOUT ANY WARRANTY; without even the implied warranty of
8054: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8055: # General Public License for more details.
8056: #
8057: # You should have received a copy of the GNU General Public License
8058: # along with this program; if not, write to the Free Software
8059: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8060: #
8061: # As a special exception to the GNU General Public License, if you
8062: # distribute this file as part of a program that contains a
8063: # configuration script generated by Autoconf, you may include it under
8064: # the same distribution terms that you use for the rest of that program.
8065:
8066: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8067: Xsed="sed -e s/^X//"
8068:
8069: # The HP-UX ksh and POSIX shell print the target directory to stdout
8070: # if CDPATH is set.
8071: if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8072:
8073: # ### BEGIN LIBTOOL CONFIG
8074:
8075: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8076:
8077: # Shell to use when invoking shell scripts.
8078: SHELL=$lt_SHELL
8079:
8080: # Whether or not to build shared libraries.
8081: build_libtool_libs=$enable_shared
8082:
8083: # Whether or not to build static libraries.
8084: build_old_libs=$enable_static
8085:
8086: # Whether or not to add -lc for building shared libraries.
8087: build_libtool_need_lc=$need_lc
8088:
8089: # Whether or not to optimize for fast installation.
8090: fast_install=$enable_fast_install
8091:
8092: # The host system.
8093: host_alias=$host_alias
8094: host=$host
8095:
8096: # An echo program that does not interpret backslashes.
8097: echo=$lt_echo
8098:
8099: # The archiver.
8100: AR=$lt_AR
8101: AR_FLAGS=$lt_AR_FLAGS
8102:
8103: # The default C compiler.
8104: CC=$lt_CC
8105:
8106: # Is the compiler the GNU C compiler?
8107: with_gcc=$GCC
8108:
8109: # The linker used to build libraries.
8110: LD=$lt_LD
8111:
8112: # Whether we need hard or soft links.
8113: LN_S=$lt_LN_S
8114:
8115: # A BSD-compatible nm program.
8116: NM=$lt_NM
8117:
8118: # A symbol stripping program
8119: STRIP=$STRIP
8120:
8121: # Used to examine libraries when file_magic_cmd begins "file"
8122: MAGIC_CMD=$MAGIC_CMD
8123:
8124: # Used on cygwin: DLL creation program.
8125: DLLTOOL="$DLLTOOL"
8126:
8127: # Used on cygwin: object dumper.
8128: OBJDUMP="$OBJDUMP"
8129:
8130: # Used on cygwin: assembler.
8131: AS="$AS"
8132:
8133: # The name of the directory that contains temporary libtool files.
8134: objdir=$objdir
8135:
8136: # How to create reloadable object files.
8137: reload_flag=$lt_reload_flag
8138: reload_cmds=$lt_reload_cmds
8139:
8140: # How to pass a linker flag through the compiler.
8141: wl=$lt_wl
8142:
8143: # Object file suffix (normally "o").
8144: objext="$ac_objext"
8145:
8146: # Old archive suffix (normally "a").
8147: libext="$libext"
8148:
8149: # Executable file suffix (normally "").
8150: exeext="$exeext"
8151:
8152: # Additional compiler flags for building library objects.
8153: pic_flag=$lt_pic_flag
8154: pic_mode=$pic_mode
8155:
8156: # Does compiler simultaneously support -c and -o options?
8157: compiler_c_o=$lt_compiler_c_o
8158:
8159: # Can we write directly to a .lo ?
8160: compiler_o_lo=$lt_compiler_o_lo
8161:
8162: # Must we lock files when doing compilation ?
8163: need_locks=$lt_need_locks
8164:
8165: # Do we need the lib prefix for modules?
8166: need_lib_prefix=$need_lib_prefix
8167:
8168: # Do we need a version for libraries?
8169: need_version=$need_version
8170:
8171: # Whether dlopen is supported.
8172: dlopen_support=$enable_dlopen
8173:
8174: # Whether dlopen of programs is supported.
8175: dlopen_self=$enable_dlopen_self
8176:
8177: # Whether dlopen of statically linked programs is supported.
8178: dlopen_self_static=$enable_dlopen_self_static
8179:
8180: # Compiler flag to prevent dynamic linking.
8181: link_static_flag=$lt_link_static_flag
8182:
8183: # Compiler flag to turn off builtin functions.
8184: no_builtin_flag=$lt_no_builtin_flag
8185:
8186: # Compiler flag to allow reflexive dlopens.
8187: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8188:
8189: # Compiler flag to generate shared objects directly from archives.
8190: whole_archive_flag_spec=$lt_whole_archive_flag_spec
8191:
8192: # Compiler flag to generate thread-safe objects.
8193: thread_safe_flag_spec=$lt_thread_safe_flag_spec
8194:
8195: # Library versioning type.
8196: version_type=$version_type
8197:
8198: # Format of library name prefix.
8199: libname_spec=$lt_libname_spec
8200:
8201: # List of archive names. First name is the real one, the rest are links.
8202: # The last name is the one that the linker finds with -lNAME.
8203: library_names_spec=$lt_library_names_spec
8204:
8205: # The coded name of the library, if different from the real name.
8206: soname_spec=$lt_soname_spec
8207:
8208: # Commands used to build and install an old-style archive.
8209: RANLIB=$lt_RANLIB
8210: old_archive_cmds=$lt_old_archive_cmds
8211: old_postinstall_cmds=$lt_old_postinstall_cmds
8212: old_postuninstall_cmds=$lt_old_postuninstall_cmds
8213:
8214: # Create an old-style archive from a shared archive.
8215: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8216:
8217: # Create a temporary old-style archive to link instead of a shared archive.
8218: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8219:
8220: # Commands used to build and install a shared archive.
8221: archive_cmds=$lt_archive_cmds
8222: archive_expsym_cmds=$lt_archive_expsym_cmds
8223: postinstall_cmds=$lt_postinstall_cmds
8224: postuninstall_cmds=$lt_postuninstall_cmds
8225:
8226: # Commands to strip libraries.
8227: old_striplib=$lt_old_striplib
8228: striplib=$lt_striplib
8229:
8230: # Method to check whether dependent libraries are shared objects.
8231: deplibs_check_method=$lt_deplibs_check_method
8232:
8233: # Command to use when deplibs_check_method == file_magic.
8234: file_magic_cmd=$lt_file_magic_cmd
8235:
8236: # Flag that allows shared libraries with undefined symbols to be built.
8237: allow_undefined_flag=$lt_allow_undefined_flag
8238:
8239: # Flag that forces no undefined symbols.
8240: no_undefined_flag=$lt_no_undefined_flag
8241:
8242: # Commands used to finish a libtool library installation in a directory.
8243: finish_cmds=$lt_finish_cmds
8244:
8245: # Same as above, but a single script fragment to be evaled but not shown.
8246: finish_eval=$lt_finish_eval
8247:
8248: # Take the output of nm and produce a listing of raw symbols and C names.
8249: global_symbol_pipe=$lt_global_symbol_pipe
8250:
8251: # Transform the output of nm in a proper C declaration
8252: global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8253:
8254: # Transform the output of nm in a C name address pair
8255: global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8256:
8257: # This is the shared library runtime path variable.
8258: runpath_var=$runpath_var
8259:
8260: # This is the shared library path variable.
8261: shlibpath_var=$shlibpath_var
8262:
8263: # Is shlibpath searched before the hard-coded library search path?
8264: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8265:
8266: # How to hardcode a shared library path into an executable.
8267: hardcode_action=$hardcode_action
8268:
8269: # Whether we should hardcode library paths into libraries.
8270: hardcode_into_libs=$hardcode_into_libs
8271:
8272: # Flag to hardcode \$libdir into a binary during linking.
8273: # This must work even if \$libdir does not exist.
8274: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8275:
8276: # Whether we need a single -rpath flag with a separated argument.
8277: hardcode_libdir_separator=$lt_hardcode_libdir_separator
8278:
8279: # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8280: # resulting binary.
8281: hardcode_direct=$hardcode_direct
8282:
8283: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8284: # resulting binary.
8285: hardcode_minus_L=$hardcode_minus_L
8286:
8287: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8288: # the resulting binary.
8289: hardcode_shlibpath_var=$hardcode_shlibpath_var
8290:
8291: # Variables whose values should be saved in libtool wrapper scripts and
8292: # restored at relink time.
8293: variables_saved_for_relink="$variables_saved_for_relink"
8294:
8295: # Whether libtool must link a program against all its dependency libraries.
8296: link_all_deplibs=$link_all_deplibs
8297:
8298: # Compile-time system search path for libraries
8299: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8300:
8301: # Run-time system search path for libraries
8302: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8303:
8304: # Fix the shell variable \$srcfile for the compiler.
8305: fix_srcfile_path="$fix_srcfile_path"
8306:
8307: # Set to yes if exported symbols are required.
8308: always_export_symbols=$always_export_symbols
8309:
8310: # The commands to list exported symbols.
8311: export_symbols_cmds=$lt_export_symbols_cmds
8312:
8313: # The commands to extract the exported symbol list from a shared archive.
8314: extract_expsyms_cmds=$lt_extract_expsyms_cmds
8315:
8316: # Symbols that should not be listed in the preloaded symbols.
8317: exclude_expsyms=$lt_exclude_expsyms
8318:
8319: # Symbols that must always be exported.
8320: include_expsyms=$lt_include_expsyms
8321:
8322: # ### END LIBTOOL CONFIG
8323:
8324: __EOF__
8325:
8326: case $host_os in
8327: aix3*)
8328: cat <<\EOF >> "${ofile}T"
8329:
8330: # AIX sometimes has problems with the GCC collect2 program. For some
8331: # reason, if we set the COLLECT_NAMES environment variable, the problems
8332: # vanish in a puff of smoke.
8333: if test "X${COLLECT_NAMES+set}" != Xset; then
8334: COLLECT_NAMES=
8335: export COLLECT_NAMES
8336: fi
8337: EOF
8338: ;;
8339: esac
8340:
8341: case $host_os in
8342: cygwin* | mingw* | pw32* | os2*)
8343: cat <<'EOF' >> "${ofile}T"
8344: # This is a source program that is used to create dlls on Windows
8345: # Don't remove nor modify the starting and closing comments
8346: # /* ltdll.c starts here */
8347: # #define WIN32_LEAN_AND_MEAN
8348: # #include <windows.h>
8349: # #undef WIN32_LEAN_AND_MEAN
8350: # #include <stdio.h>
8351: #
8352: # #ifndef __CYGWIN__
8353: # # ifdef __CYGWIN32__
8354: # # define __CYGWIN__ __CYGWIN32__
8355: # # endif
8356: # #endif
8357: #
8358: # #ifdef __cplusplus
8359: # extern "C" {
8360: # #endif
8361: # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8362: # #ifdef __cplusplus
8363: # }
8364: # #endif
8365: #
8366: # #ifdef __CYGWIN__
8367: # #include <cygwin/cygwin_dll.h>
8368: # DECLARE_CYGWIN_DLL( DllMain );
8369: # #endif
8370: # HINSTANCE __hDllInstance_base;
8371: #
8372: # BOOL APIENTRY
8373: # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8374: # {
8375: # __hDllInstance_base = hInst;
8376: # return TRUE;
8377: # }
8378: # /* ltdll.c ends here */
8379: # This is a source program that is used to create import libraries
8380: # on Windows for dlls which lack them. Don't remove nor modify the
8381: # starting and closing comments
8382: # /* impgen.c starts here */
8383: # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8384: #
8385: # This file is part of GNU libtool.
8386: #
8387: # This program is free software; you can redistribute it and/or modify
8388: # it under the terms of the GNU General Public License as published by
8389: # the Free Software Foundation; either version 2 of the License, or
8390: # (at your option) any later version.
8391: #
8392: # This program is distributed in the hope that it will be useful,
8393: # but WITHOUT ANY WARRANTY; without even the implied warranty of
8394: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8395: # GNU General Public License for more details.
8396: #
8397: # You should have received a copy of the GNU General Public License
8398: # along with this program; if not, write to the Free Software
8399: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8400: # */
8401: #
8402: # #include <stdio.h> /* for printf() */
8403: # #include <unistd.h> /* for open(), lseek(), read() */
8404: # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8405: # #include <string.h> /* for strdup() */
8406: #
8407: # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8408: # #ifndef O_BINARY
8409: # #define O_BINARY 0
8410: # #endif
8411: #
8412: # static unsigned int
8413: # pe_get16 (fd, offset)
8414: # int fd;
8415: # int offset;
8416: # {
8417: # unsigned char b[2];
8418: # lseek (fd, offset, SEEK_SET);
8419: # read (fd, b, 2);
8420: # return b[0] + (b[1]<<8);
8421: # }
8422: #
8423: # static unsigned int
8424: # pe_get32 (fd, offset)
8425: # int fd;
8426: # int offset;
8427: # {
8428: # unsigned char b[4];
8429: # lseek (fd, offset, SEEK_SET);
8430: # read (fd, b, 4);
8431: # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8432: # }
8433: #
8434: # static unsigned int
8435: # pe_as32 (ptr)
8436: # void *ptr;
8437: # {
8438: # unsigned char *b = ptr;
8439: # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8440: # }
8441: #
8442: # int
8443: # main (argc, argv)
8444: # int argc;
8445: # char *argv[];
8446: # {
8447: # int dll;
8448: # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8449: # unsigned long export_rva, export_size, nsections, secptr, expptr;
8450: # unsigned long name_rvas, nexp;
8451: # unsigned char *expdata, *erva;
8452: # char *filename, *dll_name;
8453: #
8454: # filename = argv[1];
8455: #
8456: # dll = open(filename, O_RDONLY|O_BINARY);
8457: # if (dll < 1)
8458: # return 1;
8459: #
8460: # dll_name = filename;
8461: #
8462: # for (i=0; filename[i]; i++)
8463: # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8464: # dll_name = filename + i +1;
8465: #
8466: # pe_header_offset = pe_get32 (dll, 0x3c);
8467: # opthdr_ofs = pe_header_offset + 4 + 20;
8468: # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8469: #
8470: # if (num_entries < 1) /* no exports */
8471: # return 1;
8472: #
8473: # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8474: # export_size = pe_get32 (dll, opthdr_ofs + 100);
8475: # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8476: # secptr = (pe_header_offset + 4 + 20 +
8477: # pe_get16 (dll, pe_header_offset + 4 + 16));
8478: #
8479: # expptr = 0;
8480: # for (i = 0; i < nsections; i++)
8481: # {
8482: # char sname[8];
8483: # unsigned long secptr1 = secptr + 40 * i;
8484: # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8485: # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8486: # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8487: # lseek(dll, secptr1, SEEK_SET);
8488: # read(dll, sname, 8);
8489: # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8490: # {
8491: # expptr = fptr + (export_rva - vaddr);
8492: # if (export_rva + export_size > vaddr + vsize)
8493: # export_size = vsize - (export_rva - vaddr);
8494: # break;
8495: # }
8496: # }
8497: #
8498: # expdata = (unsigned char*)malloc(export_size);
8499: # lseek (dll, expptr, SEEK_SET);
8500: # read (dll, expdata, export_size);
8501: # erva = expdata - export_rva;
8502: #
8503: # nexp = pe_as32 (expdata+24);
8504: # name_rvas = pe_as32 (expdata+32);
8505: #
8506: # printf ("EXPORTS\n");
8507: # for (i = 0; i<nexp; i++)
8508: # {
8509: # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8510: # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8511: # }
8512: #
8513: # return 0;
8514: # }
8515: # /* impgen.c ends here */
8516:
8517: EOF
8518: ;;
8519: esac
8520:
8521: # We use sed instead of cat because bash on DJGPP gets confused if
8522: # if finds mixed CR/LF and LF-only lines. Since sed operates in
8523: # text mode, it properly converts lines to CR/LF. This bash problem
8524: # is reportedly fixed, but why not run on old versions too?
8525: sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8526:
8527: mv -f "${ofile}T" "$ofile" || \
8528: (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8529: chmod +x "$ofile"
8530: fi
1.3 ! noro 8531:
! 8532:
! 8533:
! 8534:
1.1 noro 8535:
8536: # This can be used to rebuild libtool when needed
8537: LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8538:
8539: # Always use our own libtool.
8540: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8541:
8542: # Prevent multiple expansion
8543:
1.3 ! noro 8544:
! 8545:
! 8546: #
! 8547: # Check for AViiON Machines running DGUX
! 8548: #
! 8549: echo "$as_me:$LINENO: checking if host is AViiON running DGUX" >&5
1.1 noro 8550: echo $ECHO_N "checking if host is AViiON running DGUX... $ECHO_C" >&6
8551: ac_is_dgux=no
1.3 ! noro 8552: if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
! 8553: echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
1.1 noro 8554: echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
8555: if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
8556: echo $ECHO_N "(cached) $ECHO_C" >&6
1.3 ! noro 8557: fi
! 8558: echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
! 8559: echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
1.1 noro 8560: else
1.3 ! noro 8561: # Is the header compilable?
! 8562: echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
! 8563: echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
! 8564: cat >conftest.$ac_ext <<_ACEOF
! 8565: #line $LINENO "configure"
1.1 noro 8566: #include "confdefs.h"
1.3 ! noro 8567: $ac_includes_default
1.1 noro 8568: #include <sys/dg_sys_info.h>
8569: _ACEOF
1.3 ! noro 8570: rm -f conftest.$ac_objext
! 8571: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 8572: (eval $ac_compile) 2>&5
! 8573: ac_status=$?
! 8574: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8575: (exit $ac_status); } &&
! 8576: { ac_try='test -s conftest.$ac_objext'
! 8577: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 8578: (eval $ac_try) 2>&5
! 8579: ac_status=$?
! 8580: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8581: (exit $ac_status); }; }; then
! 8582: ac_header_compiler=yes
! 8583: else
! 8584: echo "$as_me: failed program was:" >&5
! 8585: cat conftest.$ac_ext >&5
! 8586: ac_header_compiler=no
! 8587: fi
! 8588: rm -f conftest.$ac_objext conftest.$ac_ext
! 8589: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 8590: echo "${ECHO_T}$ac_header_compiler" >&6
! 8591:
! 8592: # Is the header present?
! 8593: echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
! 8594: echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
! 8595: cat >conftest.$ac_ext <<_ACEOF
! 8596: #line $LINENO "configure"
! 8597: #include "confdefs.h"
! 8598: #include <sys/dg_sys_info.h>
! 8599: _ACEOF
! 8600: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 8601: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.1 noro 8602: ac_status=$?
8603: egrep -v '^ *\+' conftest.er1 >conftest.err
8604: rm -f conftest.er1
8605: cat conftest.err >&5
1.3 ! noro 8606: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1 noro 8607: (exit $ac_status); } >/dev/null; then
8608: if test -s conftest.err; then
8609: ac_cpp_err=$ac_c_preproc_warn_flag
8610: else
8611: ac_cpp_err=
8612: fi
8613: else
8614: ac_cpp_err=yes
8615: fi
8616: if test -z "$ac_cpp_err"; then
1.3 ! noro 8617: ac_header_preproc=yes
1.1 noro 8618: else
8619: echo "$as_me: failed program was:" >&5
8620: cat conftest.$ac_ext >&5
1.3 ! noro 8621: ac_header_preproc=no
1.1 noro 8622: fi
8623: rm -f conftest.err conftest.$ac_ext
1.3 ! noro 8624: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 8625: echo "${ECHO_T}$ac_header_preproc" >&6
! 8626:
! 8627: # So? What about this header?
! 8628: case $ac_header_compiler:$ac_header_preproc in
! 8629: yes:no )
! 8630: { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
! 8631: echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 8632: { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
! 8633: echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
! 8634: no:yes )
! 8635: { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
! 8636: echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
! 8637: { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
! 8638: echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
! 8639: { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
! 8640: echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
! 8641: esac
! 8642: echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
! 8643: echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
! 8644: if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
! 8645: echo $ECHO_N "(cached) $ECHO_C" >&6
! 8646: else
! 8647: ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
1.1 noro 8648: fi
1.3 ! noro 8649: echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
1.1 noro 8650: echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
1.3 ! noro 8651:
! 8652: fi
1.1 noro 8653: if test $ac_cv_header_sys_dg_sys_info_h = yes; then
8654: ac_is_dgux=yes;
8655: fi
8656:
1.3 ! noro 8657:
! 8658:
! 8659: echo "$as_me:$LINENO: result: $ac_is_dgux" >&5
! 8660: echo "${ECHO_T}$ac_is_dgux" >&6
! 8661: ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
1.1 noro 8662: if test $ac_is_dgux = yes; then
1.3 ! noro 8663: if test "$enable_full_debug" = "yes"; then
1.1 noro 8664: CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
8665: CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
1.3 ! noro 8666: else
1.1 noro 8667: CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
8668: CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
1.3 ! noro 8669: fi
! 8670:
1.1 noro 8671:
8672: fi
8673:
1.3 ! noro 8674:
1.1 noro 8675: # Check whether --with-target-subdir or --without-target-subdir was given.
8676: if test "${with_target_subdir+set}" = set; then
8677: withval="$with_target_subdir"
8678:
8679: fi;
8680:
8681: # Check whether --with-cross-host or --without-cross-host was given.
8682: if test "${with_cross_host+set}" = set; then
8683: withval="$with_cross_host"
8684:
8685: fi;
8686:
8687: # automake wants to see AC_EXEEXT. But we don't need it. And having
8688: # it is actually a problem, because the compiler we're passed can't
8689: # necessarily do a full link. So we fool automake here.
8690: if false; then
8691: # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
8692: # to nothing, so nothing would remain between `then' and `fi' if it
8693: # were not for the `:' below.
8694: :
8695:
8696: fi
8697:
1.3 ! noro 8698: echo "$as_me:$LINENO: checking whether Solaris gcc optimization fix is necessary" >&5
! 8699: echo $ECHO_N "checking whether Solaris gcc optimization fix is necessary... $ECHO_C" >&6
1.1 noro 8700: case "$host" in
8701: sparc-sun-solaris2*)
8702: if test "$GCC" = yes; then
1.3 ! noro 8703: echo "$as_me:$LINENO: result: yes" >&5
! 8704: echo "${ECHO_T}yes" >&6
1.1 noro 8705: new_CFLAGS=
8706: for i in $CFLAGS; do
8707: case "$i" in
8708: -O*)
8709: ;;
8710: *)
8711: new_CFLAGS="$new_CFLAGS $i"
8712: ;;
8713: esac
8714: done
8715: CFLAGS="$new_CFLAGS"
1.3 ! noro 8716: else
! 8717: echo "$as_me:$LINENO: result: no" >&5
! 8718: echo "${ECHO_T}no" >&6
1.1 noro 8719: fi
8720: ;;
1.3 ! noro 8721: *) echo "$as_me:$LINENO: result: no" >&5
! 8722: echo "${ECHO_T}no" >&6 ;;
1.1 noro 8723: esac
8724:
8725: MY_CFLAGS="$CFLAGS"
8726:
1.3 ! noro 8727:
! 8728: cat >>confdefs.h <<\_ACEOF
1.1 noro 8729: #define SILENT 1
1.3 ! noro 8730: _ACEOF
1.1 noro 8731:
1.3 ! noro 8732: #cat >>confdefs.h <<\_ACEOF
1.2 noro 8733: ##define NO_SIGNALS 1
1.3 ! noro 8734: #_ACEOF
1.1 noro 8735:
1.3 ! noro 8736: cat >>confdefs.h <<\_ACEOF
1.1 noro 8737: #define NO_EXECUTE_PERMISSION 1
1.3 ! noro 8738: _ACEOF
1.1 noro 8739:
1.3 ! noro 8740: cat >>confdefs.h <<\_ACEOF
1.1 noro 8741: #define ALL_INTERIOR_POINTERS 1
1.3 ! noro 8742: _ACEOF
! 8743:
1.1 noro 8744:
1.3 ! noro 8745: cat >>confdefs.h <<\_ACEOF
1.1 noro 8746: #define JAVA_FINALIZATION 1
1.3 ! noro 8747: _ACEOF
1.1 noro 8748:
1.3 ! noro 8749: cat >>confdefs.h <<\_ACEOF
1.1 noro 8750: #define GC_GCJ_SUPPORT 1
1.3 ! noro 8751: _ACEOF
1.1 noro 8752:
1.3 ! noro 8753: cat >>confdefs.h <<\_ACEOF
1.1 noro 8754: #define ATOMIC_UNCOLLECTABLE 1
1.3 ! noro 8755: _ACEOF
! 8756:
1.1 noro 8757:
8758: if test -n "${with_cross_host}"; then
1.3 ! noro 8759: cat >>confdefs.h <<\_ACEOF
1.1 noro 8760: #define NO_SIGSET 1
1.3 ! noro 8761: _ACEOF
1.1 noro 8762:
1.3 ! noro 8763: cat >>confdefs.h <<\_ACEOF
1.1 noro 8764: #define NO_CLOCK 1
1.3 ! noro 8765: _ACEOF
1.1 noro 8766:
1.3 ! noro 8767: cat >>confdefs.h <<\_ACEOF
1.1 noro 8768: #define SMALL_CONFIG 1
1.3 ! noro 8769: _ACEOF
1.1 noro 8770:
1.3 ! noro 8771: cat >>confdefs.h <<\_ACEOF
1.1 noro 8772: #define NO_DEBUGGING 1
1.3 ! noro 8773: _ACEOF
1.1 noro 8774:
8775: fi
8776:
8777: # Check whether --enable-full-debug or --disable-full-debug was given.
8778: if test "${enable_full_debug+set}" = set; then
8779: enableval="$enable_full_debug"
8780: if test "$enable_full_debug" = "yes"; then
1.3 ! noro 8781: { echo "$as_me:$LINENO: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&5
1.1 noro 8782: echo "$as_me: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&2;}
1.3 ! noro 8783: cat >>confdefs.h <<\_ACEOF
1.1 noro 8784: #define KEEP_BACK_PTRS 1
1.3 ! noro 8785: _ACEOF
1.1 noro 8786:
1.3 ! noro 8787: cat >>confdefs.h <<\_ACEOF
1.1 noro 8788: #define DBG_HDRS_ALL 1
1.3 ! noro 8789: _ACEOF
1.1 noro 8790:
8791: case $host in
8792: ia64-*-linux* )
1.3 ! noro 8793: cat >>confdefs.h <<\_ACEOF
1.1 noro 8794: #define MAKE_BACK_GRAPH 1
1.3 ! noro 8795: _ACEOF
1.1 noro 8796:
8797: ;;
1.3 ! noro 8798: x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
! 8799: cat >>confdefs.h <<\_ACEOF
1.1 noro 8800: #define MAKE_BACK_GRAPH 1
1.3 ! noro 8801: _ACEOF
1.1 noro 8802:
1.3 ! noro 8803: { echo "$as_me:$LINENO: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
1.1 noro 8804: echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
1.3 ! noro 8805: cat >>confdefs.h <<\_ACEOF
1.1 noro 8806: #define SAVE_CALL_COUNT 8
1.3 ! noro 8807: _ACEOF
1.1 noro 8808:
8809: ;;
8810: i345686-*-dgux*)
1.3 ! noro 8811: cat >>confdefs.h <<\_ACEOF
1.1 noro 8812: #define MAKE_BACK_GRAPH 1
1.3 ! noro 8813: _ACEOF
1.1 noro 8814:
8815: ;;
8816: esac
8817: fi
8818: fi;
8819:
8820: # Check whether --enable-redirect-malloc or --disable-redirect-malloc was given.
8821: if test "${enable_redirect_malloc+set}" = set; then
8822: enableval="$enable_redirect_malloc"
8823:
8824: fi;
8825:
8826: if test "${enable_redirect_malloc}" = yes; then
8827: if test "${enable_full_debug}" = yes; then
1.3 ! noro 8828: cat >>confdefs.h <<\_ACEOF
1.1 noro 8829: #define REDIRECT_MALLOC GC_debug_malloc_replacement
1.3 ! noro 8830: _ACEOF
1.1 noro 8831:
1.3 ! noro 8832: cat >>confdefs.h <<\_ACEOF
1.1 noro 8833: #define REDIRECT_REALLOC GC_debug_realloc_replacement
1.3 ! noro 8834: _ACEOF
! 8835:
! 8836: cat >>confdefs.h <<\_ACEOF
! 8837: #define REDIRECT_FREE GC_debug_free
! 8838: _ACEOF
1.1 noro 8839:
8840: else
1.3 ! noro 8841: cat >>confdefs.h <<\_ACEOF
1.1 noro 8842: #define REDIRECT_MALLOC GC_malloc
1.3 ! noro 8843: _ACEOF
1.1 noro 8844:
8845: fi
8846: fi
8847:
1.3 ! noro 8848: # Check whether --enable-gc-assertions or --disable-gc-assertions was given.
! 8849: if test "${enable_gc_assertions+set}" = set; then
! 8850: enableval="$enable_gc_assertions"
! 8851:
! 8852: fi;
! 8853: if test "${enable_gc_assertions}" = yes; then
! 8854: cat >>confdefs.h <<\_ACEOF
! 8855: #define GC_ASSERTIONS 1
! 8856: _ACEOF
! 8857:
! 8858: fi
! 8859:
! 8860:
! 8861:
1.1 noro 8862: if test -z "$with_cross_host"; then
8863: USE_LIBDIR_TRUE=
8864: USE_LIBDIR_FALSE='#'
8865: else
8866: USE_LIBDIR_TRUE='#'
8867: USE_LIBDIR_FALSE=
8868: fi
8869:
8870:
1.3 ! noro 8871: ac_config_files="$ac_config_files Makefile doc/Makefile include/Makefile"
1.1 noro 8872: ac_config_commands="$ac_config_commands default"
8873: cat >confcache <<\_ACEOF
8874: # This file is a shell script that caches the results of configure
8875: # tests run on this system so they can be shared between configure
8876: # scripts and configure runs, see configure's option --config-cache.
8877: # It is not useful on other systems. If it contains results you don't
8878: # want to keep, you may remove or edit it.
8879: #
8880: # config.status only pays attention to the cache file if you give it
8881: # the --recheck option to rerun configure.
8882: #
8883: # `ac_cv_env_foo' variables (set or unset) will be overriden when
8884: # loading this file, other *unset* `ac_cv_foo' will be assigned the
8885: # following values.
8886:
8887: _ACEOF
8888:
8889: # The following way of writing the cache mishandles newlines in values,
8890: # but we know of no workaround that is simple, portable, and efficient.
8891: # So, don't put newlines in cache variables' values.
8892: # Ultrix sh set writes to stderr and can't be redirected directly,
8893: # and sets the high bit in the cache file unless we assign to the vars.
8894: {
8895: (set) 2>&1 |
8896: case `(ac_space=' '; set | grep ac_space) 2>&1` in
8897: *ac_space=\ *)
8898: # `set' does not quote correctly, so add quotes (double-quote
8899: # substitution turns \\\\ into \\, and sed turns \\ into \).
8900: sed -n \
8901: "s/'/'\\\\''/g;
8902: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8903: ;;
8904: *)
8905: # `set' quotes correctly as required by POSIX, so do not add quotes.
8906: sed -n \
8907: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8908: ;;
8909: esac;
8910: } |
8911: sed '
8912: t clear
8913: : clear
8914: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8915: t end
8916: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8917: : end' >>confcache
8918: if cmp -s $cache_file confcache; then :; else
8919: if test -w $cache_file; then
8920: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8921: cat confcache >$cache_file
8922: else
8923: echo "not updating unwritable cache $cache_file"
8924: fi
8925: fi
8926: rm -f confcache
8927:
8928: test "x$prefix" = xNONE && prefix=$ac_default_prefix
8929: # Let make expand exec_prefix.
8930: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8931:
8932: # VPATH may cause trouble with some makes, so we remove $(srcdir),
8933: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8934: # trailing colons and then remove the whole line if VPATH becomes empty
8935: # (actually we leave an empty line to preserve line numbers).
8936: if test "x$srcdir" = x.; then
8937: ac_vpsub='/^[ ]*VPATH[ ]*=/{
8938: s/:*\$(srcdir):*/:/;
8939: s/:*\${srcdir}:*/:/;
8940: s/:*@srcdir@:*/:/;
8941: s/^\([^=]*=[ ]*\):*/\1/;
8942: s/:*$//;
8943: s/^[^=]*=[ ]*$//;
8944: }'
8945: fi
8946:
8947: # Transform confdefs.h into DEFS.
8948: # Protect against shell expansion while executing Makefile rules.
8949: # Protect against Makefile macro expansion.
8950: #
8951: # If the first sed substitution is executed (which looks for macros that
8952: # take arguments), then we branch to the quote section. Otherwise,
8953: # look for a macro that doesn't take arguments.
1.3 ! noro 8954: cat >confdef2opt.sed <<\_ACEOF
1.1 noro 8955: t clear
8956: : clear
8957: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
8958: t quote
8959: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
8960: t quote
8961: d
8962: : quote
8963: s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
8964: s,\[,\\&,g
8965: s,\],\\&,g
8966: s,\$,$$,g
8967: p
1.3 ! noro 8968: _ACEOF
1.1 noro 8969: # We use echo to avoid assuming a particular line-breaking character.
8970: # The extra dot is to prevent the shell from consuming trailing
8971: # line-breaks from the sub-command output. A line-break within
8972: # single-quotes doesn't work because, if this script is created in a
8973: # platform that uses two characters for line-breaks (e.g., DOS), tr
8974: # would break.
8975: ac_LF_and_DOT=`echo; echo .`
8976: DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
8977: rm -f confdef2opt.sed
8978:
1.3 ! noro 8979:
1.1 noro 8980: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.3 ! noro 8981: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
1.1 noro 8982: Usually this means the macro was only invoked conditionally." >&5
8983: echo "$as_me: error: conditional \"AMDEP\" was never defined.
8984: Usually this means the macro was only invoked conditionally." >&2;}
8985: { (exit 1); exit 1; }; }
8986: fi
8987: if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
1.3 ! noro 8988: { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
1.1 noro 8989: Usually this means the macro was only invoked conditionally." >&5
8990: echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
8991: Usually this means the macro was only invoked conditionally." >&2;}
8992: { (exit 1); exit 1; }; }
8993: fi
1.3 ! noro 8994: if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
! 8995: { { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
! 8996: Usually this means the macro was only invoked conditionally." >&5
! 8997: echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
! 8998: Usually this means the macro was only invoked conditionally." >&2;}
! 8999: { (exit 1); exit 1; }; }
! 9000: fi
! 9001: if test -z "${CPLUSPLUS_TRUE}" && test -z "${CPLUSPLUS_FALSE}"; then
! 9002: { { echo "$as_me:$LINENO: error: conditional \"CPLUSPLUS\" was never defined.
1.1 noro 9003: Usually this means the macro was only invoked conditionally." >&5
1.3 ! noro 9004: echo "$as_me: error: conditional \"CPLUSPLUS\" was never defined.
1.1 noro 9005: Usually this means the macro was only invoked conditionally." >&2;}
9006: { (exit 1); exit 1; }; }
9007: fi
9008: if test -z "${USE_LIBDIR_TRUE}" && test -z "${USE_LIBDIR_FALSE}"; then
1.3 ! noro 9009: { { echo "$as_me:$LINENO: error: conditional \"USE_LIBDIR\" was never defined.
1.1 noro 9010: Usually this means the macro was only invoked conditionally." >&5
9011: echo "$as_me: error: conditional \"USE_LIBDIR\" was never defined.
9012: Usually this means the macro was only invoked conditionally." >&2;}
9013: { (exit 1); exit 1; }; }
9014: fi
9015:
9016: : ${CONFIG_STATUS=./config.status}
9017: ac_clean_files_save=$ac_clean_files
9018: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.3 ! noro 9019: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
1.1 noro 9020: echo "$as_me: creating $CONFIG_STATUS" >&6;}
9021: cat >$CONFIG_STATUS <<_ACEOF
9022: #! $SHELL
1.3 ! noro 9023: # Generated by $as_me.
1.1 noro 9024: # Run this file to recreate the current configuration.
9025: # Compiler output produced by configure, useful for debugging
9026: # configure, is in config.log if it exists.
9027:
9028: debug=false
9029: SHELL=\${CONFIG_SHELL-$SHELL}
9030: _ACEOF
9031:
9032: cat >>$CONFIG_STATUS <<\_ACEOF
1.3 ! noro 9033:
! 9034: ## --------------------- ##
! 9035: ## M4sh Initialization. ##
! 9036: ## --------------------- ##
! 9037:
1.1 noro 9038: # Be Bourne compatible
9039: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9040: emulate sh
9041: NULLCMD=:
9042: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9043: set -o posix
9044: fi
9045:
1.3 ! noro 9046: # NLS nuisances.
! 9047: # Support unset when possible.
! 9048: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
! 9049: as_unset=unset
! 9050: else
! 9051: as_unset=false
! 9052: fi
! 9053:
! 9054: (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
! 9055: { $as_unset LANG || test "${LANG+set}" != set; } ||
! 9056: { LANG=C; export LANG; }
! 9057: (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
! 9058: { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
! 9059: { LC_ALL=C; export LC_ALL; }
! 9060: (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
! 9061: { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
! 9062: { LC_TIME=C; export LC_TIME; }
! 9063: (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
! 9064: { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
! 9065: { LC_CTYPE=C; export LC_CTYPE; }
! 9066: (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
! 9067: { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
! 9068: { LANGUAGE=C; export LANGUAGE; }
! 9069: (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
! 9070: { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
! 9071: { LC_COLLATE=C; export LC_COLLATE; }
! 9072: (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
! 9073: { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
! 9074: { LC_NUMERIC=C; export LC_NUMERIC; }
! 9075: (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
! 9076: { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
! 9077: { LC_MESSAGES=C; export LC_MESSAGES; }
! 9078:
! 9079:
1.1 noro 9080: # Name of the executable.
1.3 ! noro 9081: as_me=`(basename "$0") 2>/dev/null ||
! 9082: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
! 9083: X"$0" : 'X\(//\)$' \| \
! 9084: X"$0" : 'X\(/\)$' \| \
! 9085: . : '\(.\)' 2>/dev/null ||
! 9086: echo X/"$0" |
! 9087: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
! 9088: /^X\/\(\/\/\)$/{ s//\1/; q; }
! 9089: /^X\/\(\/\).*/{ s//\1/; q; }
! 9090: s/.*/./; q'`
! 9091:
! 9092: # PATH needs CR, and LINENO needs CR and PATH.
! 9093: # Avoid depending upon Character Ranges.
! 9094: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
! 9095: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
! 9096: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
! 9097: as_cr_digits='0123456789'
! 9098: as_cr_alnum=$as_cr_Letters$as_cr_digits
! 9099:
! 9100: # The user is always right.
! 9101: if test "${PATH_SEPARATOR+set}" != set; then
! 9102: echo "#! /bin/sh" >conftest.sh
! 9103: echo "exit 0" >>conftest.sh
! 9104: chmod +x conftest.sh
! 9105: if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
! 9106: PATH_SEPARATOR=';'
! 9107: else
! 9108: PATH_SEPARATOR=:
! 9109: fi
! 9110: rm -f conftest.sh
! 9111: fi
! 9112:
! 9113:
! 9114: as_lineno_1=$LINENO
! 9115: as_lineno_2=$LINENO
! 9116: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
! 9117: test "x$as_lineno_1" != "x$as_lineno_2" &&
! 9118: test "x$as_lineno_3" = "x$as_lineno_2" || {
! 9119: # Find who we are. Look in the path if we contain no path at all
! 9120: # relative or not.
! 9121: case $0 in
! 9122: *[\\/]* ) as_myself=$0 ;;
! 9123: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 9124: for as_dir in $PATH
! 9125: do
! 9126: IFS=$as_save_IFS
! 9127: test -z "$as_dir" && as_dir=.
! 9128: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
! 9129: done
! 9130:
! 9131: ;;
! 9132: esac
! 9133: # We did not find ourselves, most probably we were run as `sh COMMAND'
! 9134: # in which case we are not to be found in the path.
! 9135: if test "x$as_myself" = x; then
! 9136: as_myself=$0
! 9137: fi
! 9138: if test ! -f "$as_myself"; then
! 9139: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
! 9140: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
! 9141: { (exit 1); exit 1; }; }
! 9142: fi
! 9143: case $CONFIG_SHELL in
! 9144: '')
! 9145: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 9146: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
! 9147: do
! 9148: IFS=$as_save_IFS
! 9149: test -z "$as_dir" && as_dir=.
! 9150: for as_base in sh bash ksh sh5; do
! 9151: case $as_dir in
! 9152: /*)
! 9153: if ("$as_dir/$as_base" -c '
! 9154: as_lineno_1=$LINENO
! 9155: as_lineno_2=$LINENO
! 9156: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
! 9157: test "x$as_lineno_1" != "x$as_lineno_2" &&
! 9158: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
! 9159: CONFIG_SHELL=$as_dir/$as_base
! 9160: export CONFIG_SHELL
! 9161: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
! 9162: fi;;
! 9163: esac
! 9164: done
! 9165: done
! 9166: ;;
! 9167: esac
! 9168:
! 9169: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
! 9170: # uniformly replaced by the line number. The first 'sed' inserts a
! 9171: # line-number line before each line; the second 'sed' does the real
! 9172: # work. The second script uses 'N' to pair each line-number line
! 9173: # with the numbered line, and appends trailing '-' during
! 9174: # substitution so that $LINENO is not a special case at line end.
! 9175: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
! 9176: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
! 9177: sed '=' <$as_myself |
! 9178: sed '
! 9179: N
! 9180: s,$,-,
! 9181: : loop
! 9182: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
! 9183: t loop
! 9184: s,-$,,
! 9185: s,^['$as_cr_digits']*\n,,
! 9186: ' >$as_me.lineno &&
! 9187: chmod +x $as_me.lineno ||
! 9188: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
! 9189: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
! 9190: { (exit 1); exit 1; }; }
! 9191:
! 9192: # Don't try to exec as it changes $[0], causing all sort of problems
! 9193: # (the dirname of $[0] is not the place where we might find the
! 9194: # original and so on. Autoconf is especially sensible to this).
! 9195: . ./$as_me.lineno
! 9196: # Exit status is that of the last command.
! 9197: exit
! 9198: }
! 9199:
! 9200:
! 9201: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
! 9202: *c*,-n*) ECHO_N= ECHO_C='
! 9203: ' ECHO_T=' ' ;;
! 9204: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
! 9205: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
! 9206: esac
1.1 noro 9207:
9208: if expr a : '\(a\)' >/dev/null 2>&1; then
9209: as_expr=expr
9210: else
9211: as_expr=false
9212: fi
9213:
9214: rm -f conf$$ conf$$.exe conf$$.file
9215: echo >conf$$.file
9216: if ln -s conf$$.file conf$$ 2>/dev/null; then
9217: # We could just check for DJGPP; but this test a) works b) is more generic
9218: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9219: if test -f conf$$.exe; then
9220: # Don't use ln at all; we don't have any links
9221: as_ln_s='cp -p'
9222: else
9223: as_ln_s='ln -s'
9224: fi
9225: elif ln conf$$.file conf$$ 2>/dev/null; then
9226: as_ln_s=ln
9227: else
9228: as_ln_s='cp -p'
9229: fi
9230: rm -f conf$$ conf$$.exe conf$$.file
9231:
9232: as_executable_p="test -f"
9233:
1.3 ! noro 9234: # Sed expression to map a string onto a valid CPP name.
! 9235: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
! 9236:
! 9237: # Sed expression to map a string onto a valid variable name.
! 9238: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
1.1 noro 9239:
9240:
9241: # IFS
9242: # We need space, tab and new line, in precisely that order.
9243: as_nl='
9244: '
9245: IFS=" $as_nl"
9246:
9247: # CDPATH.
1.3 ! noro 9248: $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
1.1 noro 9249:
9250: exec 6>&1
9251:
1.3 ! noro 9252: # Open the log real soon, to keep \$[0] and so on meaningful, and to
! 9253: # report actual input values of CONFIG_FILES etc. instead of their
! 9254: # values after options handling. Logging --version etc. is OK.
! 9255: exec 5>>config.log
! 9256: {
! 9257: echo
! 9258: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
! 9259: ## Running $as_me. ##
! 9260: _ASBOX
! 9261: } >&5
! 9262: cat >&5 <<_CSEOF
! 9263:
! 9264: This file was extended by gc $as_me 6.2alpha6, which was
! 9265: generated by GNU Autoconf 2.53. Invocation command line was
! 9266:
! 9267: CONFIG_FILES = $CONFIG_FILES
! 9268: CONFIG_HEADERS = $CONFIG_HEADERS
! 9269: CONFIG_LINKS = $CONFIG_LINKS
! 9270: CONFIG_COMMANDS = $CONFIG_COMMANDS
! 9271: $ $0 $@
! 9272:
! 9273: _CSEOF
! 9274: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
! 9275: echo >&5
1.1 noro 9276: _ACEOF
9277:
9278: # Files that config.status was made for.
9279: if test -n "$ac_config_files"; then
9280: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9281: fi
9282:
9283: if test -n "$ac_config_headers"; then
9284: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9285: fi
9286:
9287: if test -n "$ac_config_links"; then
9288: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9289: fi
9290:
9291: if test -n "$ac_config_commands"; then
9292: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9293: fi
9294:
1.3 ! noro 9295: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 noro 9296:
9297: ac_cs_usage="\
9298: \`$as_me' instantiates files from templates according to the
9299: current configuration.
9300:
9301: Usage: $0 [OPTIONS] [FILE]...
9302:
9303: -h, --help print this help, then exit
9304: -V, --version print version number, then exit
9305: -d, --debug don't remove temporary files
9306: --recheck update $as_me by reconfiguring in the same conditions
9307: --file=FILE[:TEMPLATE]
9308: instantiate the configuration file FILE
9309:
9310: Configuration files:
9311: $config_files
9312:
9313: Configuration commands:
9314: $config_commands
9315:
9316: Report bugs to <bug-autoconf@gnu.org>."
1.3 ! noro 9317: _ACEOF
1.1 noro 9318:
1.3 ! noro 9319: cat >>$CONFIG_STATUS <<_ACEOF
1.1 noro 9320: ac_cs_version="\\
1.3 ! noro 9321: gc config.status 6.2alpha6
! 9322: configured by $0, generated by GNU Autoconf 2.53,
1.1 noro 9323: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9324:
9325: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9326: Free Software Foundation, Inc.
9327: This config.status script is free software; the Free Software Foundation
9328: gives unlimited permission to copy, distribute and modify it."
9329: srcdir=$srcdir
9330: INSTALL="$INSTALL"
1.3 ! noro 9331: _ACEOF
1.1 noro 9332:
1.3 ! noro 9333: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 noro 9334: # If no file are specified by the user, then we need to provide default
9335: # value. By we need to know if files were specified by the user.
9336: ac_need_defaults=:
9337: while test $# != 0
9338: do
9339: case $1 in
9340: --*=*)
9341: ac_option=`expr "x$1" : 'x\([^=]*\)='`
9342: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9343: shift
9344: set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
9345: shift
9346: ;;
9347: -*);;
9348: *) # This is not an option, so the user has probably given explicit
9349: # arguments.
9350: ac_need_defaults=false;;
9351: esac
9352:
9353: case $1 in
9354: # Handling of the options.
1.3 ! noro 9355: _ACEOF
! 9356: cat >>$CONFIG_STATUS <<_ACEOF
1.1 noro 9357: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9358: echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
9359: exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
1.3 ! noro 9360: _ACEOF
! 9361: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 noro 9362: --version | --vers* | -V )
9363: echo "$ac_cs_version"; exit 0 ;;
9364: --he | --h)
9365: # Conflict between --help and --header
1.3 ! noro 9366: { { echo "$as_me:$LINENO: error: ambiguous option: $1
1.1 noro 9367: Try \`$0 --help' for more information." >&5
9368: echo "$as_me: error: ambiguous option: $1
9369: Try \`$0 --help' for more information." >&2;}
9370: { (exit 1); exit 1; }; };;
9371: --help | --hel | -h )
9372: echo "$ac_cs_usage"; exit 0 ;;
9373: --debug | --d* | -d )
9374: debug=: ;;
9375: --file | --fil | --fi | --f )
9376: shift
9377: CONFIG_FILES="$CONFIG_FILES $1"
9378: ac_need_defaults=false;;
9379: --header | --heade | --head | --hea )
9380: shift
9381: CONFIG_HEADERS="$CONFIG_HEADERS $1"
9382: ac_need_defaults=false;;
9383:
9384: # This is an error.
1.3 ! noro 9385: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
1.1 noro 9386: Try \`$0 --help' for more information." >&5
9387: echo "$as_me: error: unrecognized option: $1
9388: Try \`$0 --help' for more information." >&2;}
9389: { (exit 1); exit 1; }; } ;;
9390:
9391: *) ac_config_targets="$ac_config_targets $1" ;;
9392:
9393: esac
9394: shift
9395: done
9396:
9397: _ACEOF
9398:
1.3 ! noro 9399: cat >>$CONFIG_STATUS <<_ACEOF
1.1 noro 9400: #
9401: # INIT-COMMANDS section.
9402: #
9403:
9404: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9405: srcdir=${srcdir}
9406: host=${host}
9407: CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
9408: CC="${CC}"
9409: DEFS="$DEFS"
9410:
9411:
1.3 ! noro 9412: _ACEOF
! 9413:
! 9414:
! 9415:
! 9416: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 noro 9417: for ac_config_target in $ac_config_targets
9418: do
9419: case "$ac_config_target" in
9420: # Handling of arguments.
9421: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1.3 ! noro 9422: "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
! 9423: "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
1.1 noro 9424: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9425: "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
1.3 ! noro 9426: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
1.1 noro 9427: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9428: { (exit 1); exit 1; }; };;
9429: esac
9430: done
9431:
9432: # If the user did not use the arguments to specify the items to instantiate,
9433: # then the envvar interface is used. Set only those that are not.
9434: # We use the long form for the default assignment because of an extremely
9435: # bizarre bug on SunOS 4.1.3.
9436: if $ac_need_defaults; then
9437: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9438: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9439: fi
9440:
9441: # Create a temporary directory, and hook for its removal unless debugging.
9442: $debug ||
9443: {
9444: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9445: trap '{ (exit 1); exit 1; }' 1 2 13 15
9446: }
9447:
9448: # Create a (secure) tmp directory for tmp files.
9449: : ${TMPDIR=/tmp}
9450: {
9451: tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9452: test -n "$tmp" && test -d "$tmp"
9453: } ||
9454: {
9455: tmp=$TMPDIR/cs$$-$RANDOM
9456: (umask 077 && mkdir $tmp)
9457: } ||
9458: {
9459: echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9460: { (exit 1); exit 1; }
9461: }
9462:
1.3 ! noro 9463: _ACEOF
1.1 noro 9464:
1.3 ! noro 9465: cat >>$CONFIG_STATUS <<_ACEOF
1.1 noro 9466:
9467: #
9468: # CONFIG_FILES section.
9469: #
9470:
9471: # No need to generate the scripts if there are no CONFIG_FILES.
9472: # This happens for instance when ./config.status config.h
9473: if test -n "\$CONFIG_FILES"; then
9474: # Protect against being on the right side of a sed subst in config.status.
9475: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9476: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9477: s,@SHELL@,$SHELL,;t t
1.3 ! noro 9478: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
! 9479: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
! 9480: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
! 9481: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
! 9482: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
! 9483: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
1.1 noro 9484: s,@exec_prefix@,$exec_prefix,;t t
9485: s,@prefix@,$prefix,;t t
9486: s,@program_transform_name@,$program_transform_name,;t t
9487: s,@bindir@,$bindir,;t t
9488: s,@sbindir@,$sbindir,;t t
9489: s,@libexecdir@,$libexecdir,;t t
9490: s,@datadir@,$datadir,;t t
9491: s,@sysconfdir@,$sysconfdir,;t t
9492: s,@sharedstatedir@,$sharedstatedir,;t t
9493: s,@localstatedir@,$localstatedir,;t t
9494: s,@libdir@,$libdir,;t t
9495: s,@includedir@,$includedir,;t t
9496: s,@oldincludedir@,$oldincludedir,;t t
9497: s,@infodir@,$infodir,;t t
9498: s,@mandir@,$mandir,;t t
9499: s,@build_alias@,$build_alias,;t t
9500: s,@host_alias@,$host_alias,;t t
9501: s,@target_alias@,$target_alias,;t t
1.3 ! noro 9502: s,@DEFS@,$DEFS,;t t
1.1 noro 9503: s,@ECHO_C@,$ECHO_C,;t t
9504: s,@ECHO_N@,$ECHO_N,;t t
9505: s,@ECHO_T@,$ECHO_T,;t t
9506: s,@LIBS@,$LIBS,;t t
1.3 ! noro 9507: s,@build@,$build,;t t
! 9508: s,@build_cpu@,$build_cpu,;t t
! 9509: s,@build_vendor@,$build_vendor,;t t
! 9510: s,@build_os@,$build_os,;t t
! 9511: s,@host@,$host,;t t
! 9512: s,@host_cpu@,$host_cpu,;t t
! 9513: s,@host_vendor@,$host_vendor,;t t
! 9514: s,@host_os@,$host_os,;t t
! 9515: s,@target@,$target,;t t
! 9516: s,@target_cpu@,$target_cpu,;t t
! 9517: s,@target_vendor@,$target_vendor,;t t
! 9518: s,@target_os@,$target_os,;t t
1.1 noro 9519: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9520: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9521: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9522: s,@PACKAGE@,$PACKAGE,;t t
9523: s,@VERSION@,$VERSION,;t t
9524: s,@ACLOCAL@,$ACLOCAL,;t t
9525: s,@AUTOCONF@,$AUTOCONF,;t t
9526: s,@AUTOMAKE@,$AUTOMAKE,;t t
9527: s,@AUTOHEADER@,$AUTOHEADER,;t t
9528: s,@MAKEINFO@,$MAKEINFO,;t t
9529: s,@AMTAR@,$AMTAR,;t t
9530: s,@install_sh@,$install_sh,;t t
9531: s,@STRIP@,$STRIP,;t t
9532: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9533: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9534: s,@AWK@,$AWK,;t t
9535: s,@SET_MAKE@,$SET_MAKE,;t t
1.3 ! noro 9536: s,@GC_VERSION@,$GC_VERSION,;t t
1.1 noro 9537: s,@CC@,$CC,;t t
9538: s,@CFLAGS@,$CFLAGS,;t t
9539: s,@LDFLAGS@,$LDFLAGS,;t t
9540: s,@CPPFLAGS@,$CPPFLAGS,;t t
9541: s,@ac_ct_CC@,$ac_ct_CC,;t t
9542: s,@EXEEXT@,$EXEEXT,;t t
9543: s,@OBJEXT@,$OBJEXT,;t t
9544: s,@DEPDIR@,$DEPDIR,;t t
9545: s,@am__include@,$am__include,;t t
9546: s,@am__quote@,$am__quote,;t t
9547: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9548: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9549: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9550: s,@CCDEPMODE@,$CCDEPMODE,;t t
9551: s,@CXX@,$CXX,;t t
9552: s,@CXXFLAGS@,$CXXFLAGS,;t t
9553: s,@ac_ct_CXX@,$ac_ct_CXX,;t t
9554: s,@CXXDEPMODE@,$CXXDEPMODE,;t t
9555: s,@CCAS@,$CCAS,;t t
9556: s,@CCASFLAGS@,$CCASFLAGS,;t t
9557: s,@AR@,$AR,;t t
9558: s,@ac_ct_AR@,$ac_ct_AR,;t t
9559: s,@RANLIB@,$RANLIB,;t t
9560: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9561: s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
9562: s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
9563: s,@MAINT@,$MAINT,;t t
9564: s,@GC_CFLAGS@,$GC_CFLAGS,;t t
9565: s,@THREADLIBS@,$THREADLIBS,;t t
1.3 ! noro 9566: s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
! 9567: s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
1.1 noro 9568: s,@EXTRA_TEST_LIBS@,$EXTRA_TEST_LIBS,;t t
9569: s,@target_all@,$target_all,;t t
1.3 ! noro 9570: s,@CPLUSPLUS_TRUE@,$CPLUSPLUS_TRUE,;t t
! 9571: s,@CPLUSPLUS_FALSE@,$CPLUSPLUS_FALSE,;t t
1.1 noro 9572: s,@INCLUDES@,$INCLUDES,;t t
9573: s,@CXXINCLUDES@,$CXXINCLUDES,;t t
9574: s,@addobjs@,$addobjs,;t t
1.3 ! noro 9575: s,@addincludes@,$addincludes,;t t
! 9576: s,@addlibs@,$addlibs,;t t
! 9577: s,@addtests@,$addtests,;t t
1.1 noro 9578: s,@LN_S@,$LN_S,;t t
9579: s,@ECHO@,$ECHO,;t t
9580: s,@CPP@,$CPP,;t t
9581: s,@LIBTOOL@,$LIBTOOL,;t t
9582: s,@MY_CFLAGS@,$MY_CFLAGS,;t t
9583: s,@USE_LIBDIR_TRUE@,$USE_LIBDIR_TRUE,;t t
9584: s,@USE_LIBDIR_FALSE@,$USE_LIBDIR_FALSE,;t t
9585: CEOF
9586:
1.3 ! noro 9587: _ACEOF
1.1 noro 9588:
1.3 ! noro 9589: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 noro 9590: # Split the substitutions into bite-sized pieces for seds with
9591: # small command number limits, like on Digital OSF/1 and HP-UX.
9592: ac_max_sed_lines=48
9593: ac_sed_frag=1 # Number of current file.
9594: ac_beg=1 # First line for current file.
9595: ac_end=$ac_max_sed_lines # Line after last line for current file.
9596: ac_more_lines=:
9597: ac_sed_cmds=
9598: while $ac_more_lines; do
9599: if test $ac_beg -gt 1; then
9600: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9601: else
9602: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9603: fi
9604: if test ! -s $tmp/subs.frag; then
9605: ac_more_lines=false
9606: else
9607: # The purpose of the label and of the branching condition is to
9608: # speed up the sed processing (if there are no `@' at all, there
9609: # is no need to browse any of the substitutions).
9610: # These are the two extra sed commands mentioned above.
9611: (echo ':t
9612: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9613: if test -z "$ac_sed_cmds"; then
9614: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9615: else
9616: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9617: fi
9618: ac_sed_frag=`expr $ac_sed_frag + 1`
9619: ac_beg=$ac_end
9620: ac_end=`expr $ac_end + $ac_max_sed_lines`
9621: fi
9622: done
9623: if test -z "$ac_sed_cmds"; then
9624: ac_sed_cmds=cat
9625: fi
9626: fi # test -n "$CONFIG_FILES"
9627:
1.3 ! noro 9628: _ACEOF
! 9629: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 noro 9630: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9631: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9632: case $ac_file in
9633: - | *:- | *:-:* ) # input from stdin
9634: cat >$tmp/stdin
9635: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9636: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9637: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9638: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9639: * ) ac_file_in=$ac_file.in ;;
9640: esac
9641:
9642: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
1.3 ! noro 9643: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
! 9644: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.1 noro 9645: X"$ac_file" : 'X\(//\)[^/]' \| \
9646: X"$ac_file" : 'X\(//\)$' \| \
9647: X"$ac_file" : 'X\(/\)' \| \
9648: . : '\(.\)' 2>/dev/null ||
9649: echo X"$ac_file" |
9650: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9651: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9652: /^X\(\/\/\)$/{ s//\1/; q; }
9653: /^X\(\/\).*/{ s//\1/; q; }
9654: s/.*/./; q'`
1.3 ! noro 9655: { case "$ac_dir" in
1.1 noro 9656: [\\/]* | ?:[\\/]* ) as_incr_dir=;;
9657: *) as_incr_dir=.;;
9658: esac
9659: as_dummy="$ac_dir"
9660: for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9661: case $as_mkdir_dir in
9662: # Skip DOS drivespec
9663: ?:) as_incr_dir=$as_mkdir_dir ;;
9664: *)
9665: as_incr_dir=$as_incr_dir/$as_mkdir_dir
1.3 ! noro 9666: test -d "$as_incr_dir" ||
! 9667: mkdir "$as_incr_dir" ||
! 9668: { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
! 9669: echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
! 9670: { (exit 1); exit 1; }; }
1.1 noro 9671: ;;
9672: esac
9673: done; }
9674:
1.3 ! noro 9675: ac_builddir=.
! 9676:
! 9677: if test "$ac_dir" != .; then
! 9678: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
! 9679: # A "../" for each directory in $ac_dir_suffix.
! 9680: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
! 9681: else
! 9682: ac_dir_suffix= ac_top_builddir=
! 9683: fi
1.1 noro 9684:
1.3 ! noro 9685: case $srcdir in
! 9686: .) # No --srcdir option. We are building in place.
! 9687: ac_srcdir=.
! 9688: if test -z "$ac_top_builddir"; then
! 9689: ac_top_srcdir=.
! 9690: else
! 9691: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
! 9692: fi ;;
! 9693: [\\/]* | ?:[\\/]* ) # Absolute path.
! 9694: ac_srcdir=$srcdir$ac_dir_suffix;
! 9695: ac_top_srcdir=$srcdir ;;
1.1 noro 9696: *) # Relative path.
1.3 ! noro 9697: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
! 9698: ac_top_srcdir=$ac_top_builddir$srcdir ;;
! 9699: esac
! 9700: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
! 9701: # absolute.
! 9702: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
! 9703: ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
! 9704: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
! 9705: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
! 9706:
1.1 noro 9707:
9708: case $INSTALL in
9709: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.3 ! noro 9710: *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
1.1 noro 9711: esac
9712:
9713: if test x"$ac_file" != x-; then
1.3 ! noro 9714: { echo "$as_me:$LINENO: creating $ac_file" >&5
1.1 noro 9715: echo "$as_me: creating $ac_file" >&6;}
9716: rm -f "$ac_file"
9717: fi
9718: # Let's still pretend it is `configure' which instantiates (i.e., don't
9719: # use $as_me), people would be surprised to read:
1.3 ! noro 9720: # /* config.h. Generated by config.status. */
! 9721: if test x"$ac_file" = x-; then
! 9722: configure_input=
! 9723: else
! 9724: configure_input="$ac_file. "
! 9725: fi
! 9726: configure_input=$configure_input"Generated from `echo $ac_file_in |
! 9727: sed 's,.*/,,'` by configure."
1.1 noro 9728:
9729: # First look for the input files in the build tree, otherwise in the
9730: # src tree.
9731: ac_file_inputs=`IFS=:
9732: for f in $ac_file_in; do
9733: case $f in
9734: -) echo $tmp/stdin ;;
9735: [\\/$]*)
9736: # Absolute (can't be DOS-style, as IFS=:)
1.3 ! noro 9737: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.1 noro 9738: echo "$as_me: error: cannot find input file: $f" >&2;}
9739: { (exit 1); exit 1; }; }
9740: echo $f;;
9741: *) # Relative
9742: if test -f "$f"; then
9743: # Build tree
9744: echo $f
9745: elif test -f "$srcdir/$f"; then
9746: # Source tree
9747: echo $srcdir/$f
9748: else
9749: # /dev/null tree
1.3 ! noro 9750: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.1 noro 9751: echo "$as_me: error: cannot find input file: $f" >&2;}
9752: { (exit 1); exit 1; }; }
9753: fi;;
9754: esac
9755: done` || { (exit 1); exit 1; }
1.3 ! noro 9756: _ACEOF
! 9757: cat >>$CONFIG_STATUS <<_ACEOF
1.1 noro 9758: sed "$ac_vpsub
9759: $extrasub
1.3 ! noro 9760: _ACEOF
! 9761: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 noro 9762: :t
9763: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9764: s,@configure_input@,$configure_input,;t t
9765: s,@srcdir@,$ac_srcdir,;t t
1.3 ! noro 9766: s,@abs_srcdir@,$ac_abs_srcdir,;t t
1.1 noro 9767: s,@top_srcdir@,$ac_top_srcdir,;t t
1.3 ! noro 9768: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
! 9769: s,@builddir@,$ac_builddir,;t t
! 9770: s,@abs_builddir@,$ac_abs_builddir,;t t
! 9771: s,@top_builddir@,$ac_top_builddir,;t t
! 9772: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
1.1 noro 9773: s,@INSTALL@,$ac_INSTALL,;t t
9774: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9775: rm -f $tmp/stdin
9776: if test x"$ac_file" != x-; then
9777: mv $tmp/out $ac_file
9778: else
9779: cat $tmp/out
9780: rm -f $tmp/out
9781: fi
9782:
9783: done
1.3 ! noro 9784: _ACEOF
! 9785: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 noro 9786:
9787: #
9788: # CONFIG_COMMANDS section.
9789: #
9790: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9791: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9792: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
1.3 ! noro 9793: ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
! 9794: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 9795: X"$ac_dest" : 'X\(//\)[^/]' \| \
! 9796: X"$ac_dest" : 'X\(//\)$' \| \
! 9797: X"$ac_dest" : 'X\(/\)' \| \
! 9798: . : '\(.\)' 2>/dev/null ||
! 9799: echo X"$ac_dest" |
! 9800: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 9801: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 9802: /^X\(\/\/\)$/{ s//\1/; q; }
! 9803: /^X\(\/\).*/{ s//\1/; q; }
! 9804: s/.*/./; q'`
! 9805: ac_builddir=.
! 9806:
! 9807: if test "$ac_dir" != .; then
! 9808: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
! 9809: # A "../" for each directory in $ac_dir_suffix.
! 9810: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
! 9811: else
! 9812: ac_dir_suffix= ac_top_builddir=
! 9813: fi
! 9814:
! 9815: case $srcdir in
! 9816: .) # No --srcdir option. We are building in place.
! 9817: ac_srcdir=.
! 9818: if test -z "$ac_top_builddir"; then
! 9819: ac_top_srcdir=.
! 9820: else
! 9821: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
! 9822: fi ;;
! 9823: [\\/]* | ?:[\\/]* ) # Absolute path.
! 9824: ac_srcdir=$srcdir$ac_dir_suffix;
! 9825: ac_top_srcdir=$srcdir ;;
! 9826: *) # Relative path.
! 9827: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
! 9828: ac_top_srcdir=$ac_top_builddir$srcdir ;;
! 9829: esac
! 9830: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
! 9831: # absolute.
! 9832: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
! 9833: ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
! 9834: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
! 9835: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
! 9836:
1.1 noro 9837:
1.3 ! noro 9838: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
! 9839: echo "$as_me: executing $ac_dest commands" >&6;}
1.1 noro 9840: case $ac_dest in
9841: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9842: # Strip MF so we end up with the name of the file.
9843: mf=`echo "$mf" | sed -e 's/:.*$//'`
1.3 ! noro 9844: # Check whether this is an Automake generated Makefile or not.
! 9845: # We used to match only the files named `Makefile.in', but
! 9846: # some people rename them; so instead we look at the file content.
! 9847: # Grep'ing the first line is not enough: some people post-process
! 9848: # each Makefile.in and add a new line on top of each file to say so.
! 9849: # So let's grep whole file.
! 9850: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
! 9851: dirpart=`(dirname "$mf") 2>/dev/null ||
! 9852: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.1 noro 9853: X"$mf" : 'X\(//\)[^/]' \| \
9854: X"$mf" : 'X\(//\)$' \| \
9855: X"$mf" : 'X\(/\)' \| \
9856: . : '\(.\)' 2>/dev/null ||
9857: echo X"$mf" |
9858: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9859: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9860: /^X\(\/\/\)$/{ s//\1/; q; }
9861: /^X\(\/\).*/{ s//\1/; q; }
9862: s/.*/./; q'`
9863: else
9864: continue
9865: fi
9866: grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
9867: # Extract the definition of DEP_FILES from the Makefile without
9868: # running `make'.
9869: DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
9870: test -z "$DEPDIR" && continue
9871: # When using ansi2knr, U may be empty or an underscore; expand it
9872: U=`sed -n -e '/^U = / s///p' < "$mf"`
9873: test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9874: # We invoke sed twice because it is the simplest approach to
9875: # changing $(DEPDIR) to its actual value in the expansion.
9876: for file in `sed -n -e '
9877: /^DEP_FILES = .*\\\\$/ {
9878: s/^DEP_FILES = //
9879: :loop
9880: s/\\\\$//
9881: p
9882: n
9883: /\\\\$/ b loop
9884: p
9885: }
9886: /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9887: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9888: # Make sure the directory exists.
9889: test -f "$dirpart/$file" && continue
1.3 ! noro 9890: fdir=`(dirname "$file") 2>/dev/null ||
! 9891: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.1 noro 9892: X"$file" : 'X\(//\)[^/]' \| \
9893: X"$file" : 'X\(//\)$' \| \
9894: X"$file" : 'X\(/\)' \| \
9895: . : '\(.\)' 2>/dev/null ||
9896: echo X"$file" |
9897: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9898: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9899: /^X\(\/\/\)$/{ s//\1/; q; }
9900: /^X\(\/\).*/{ s//\1/; q; }
9901: s/.*/./; q'`
9902: { case $dirpart/$fdir in
9903: [\\/]* | ?:[\\/]* ) as_incr_dir=;;
9904: *) as_incr_dir=.;;
9905: esac
9906: as_dummy=$dirpart/$fdir
9907: for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9908: case $as_mkdir_dir in
9909: # Skip DOS drivespec
9910: ?:) as_incr_dir=$as_mkdir_dir ;;
9911: *)
9912: as_incr_dir=$as_incr_dir/$as_mkdir_dir
1.3 ! noro 9913: test -d "$as_incr_dir" ||
! 9914: mkdir "$as_incr_dir" ||
! 9915: { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
! 9916: echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
! 9917: { (exit 1); exit 1; }; }
1.1 noro 9918: ;;
9919: esac
9920: done; }
9921:
9922: # echo "creating $dirpart/$file"
9923: echo '# dummy' > "$dirpart/$file"
9924: done
9925: done
9926: ;;
9927: esac
9928: done
1.3 ! noro 9929: _ACEOF
1.1 noro 9930:
1.3 ! noro 9931: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 noro 9932:
9933: { (exit 0); exit 0; }
1.3 ! noro 9934: _ACEOF
1.1 noro 9935: chmod +x $CONFIG_STATUS
9936: ac_clean_files=$ac_clean_files_save
1.3 ! noro 9937:
1.1 noro 9938:
9939: # configure is writing to config.log, and then calls config.status.
9940: # config.status does its own redirection, appending to config.log.
9941: # Unfortunately, on DOS this fails, as config.log is still kept open
9942: # by configure, so config.status won't be able to write to it; its
9943: # output is simply discarded. So we exec the FD to /dev/null,
9944: # effectively closing config.log, so it can be properly (re)opened and
9945: # appended to by config.status. When coming back to configure, we
9946: # need to make the FD available again.
9947: if test "$no_create" != yes; then
9948: ac_cs_success=:
9949: exec 5>/dev/null
9950: $SHELL $CONFIG_STATUS || ac_cs_success=false
9951: exec 5>>config.log
9952: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9953: # would make configure fail if this is the last instruction.
9954: $ac_cs_success || { (exit 1); exit 1; }
9955: fi
9956:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>