Annotation of OpenXM/src/ox_toolkit/configure, Revision 1.11
1.1 ohara 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.10 ohara 3: # Generated by GNU Autoconf 2.68.
4: #
1.1 ohara 5: #
1.9 ohara 6: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1.10 ohara 7: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8: # Foundation, Inc.
9: #
10: #
1.1 ohara 11: # This configure script is free software; the Free Software Foundation
12: # gives unlimited permission to copy, distribute and modify it.
1.10 ohara 13: ## -------------------- ##
14: ## M4sh Initialization. ##
15: ## -------------------- ##
1.4 takayama 16:
1.9 ohara 17: # Be more Bourne compatible
18: DUALCASE=1; export DUALCASE # for MKS sh
1.10 ohara 19: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.4 takayama 20: emulate sh
21: NULLCMD=:
1.10 ohara 22: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.9 ohara 23: # is contrary to our usage. Disable this feature.
24: alias -g '${1+"$@"}'='"$@"'
25: setopt NO_GLOB_SUBST
26: else
1.10 ohara 27: case `(set -o) 2>/dev/null` in #(
28: *posix*) :
29: set -o posix ;; #(
30: *) :
31: ;;
1.9 ohara 32: esac
1.4 takayama 33: fi
34:
35:
1.10 ohara 36: as_nl='
37: '
38: export as_nl
39: # Printing a long string crashes Solaris 7 /usr/bin/printf.
40: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43: # Prefer a ksh shell builtin over an external printf program on Solaris,
44: # but without wasting forks for bash or zsh.
45: if test -z "$BASH_VERSION$ZSH_VERSION" \
46: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47: as_echo='print -r --'
48: as_echo_n='print -rn --'
49: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50: as_echo='printf %s\n'
51: as_echo_n='printf %s'
52: else
53: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55: as_echo_n='/usr/ucb/echo -n'
56: else
57: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58: as_echo_n_body='eval
59: arg=$1;
60: case $arg in #(
61: *"$as_nl"*)
62: expr "X$arg" : "X\\(.*\\)$as_nl";
63: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64: esac;
65: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66: '
67: export as_echo_n_body
68: as_echo_n='sh -c $as_echo_n_body as_echo'
69: fi
70: export as_echo_body
71: as_echo='sh -c $as_echo_body as_echo'
72: fi
1.4 takayama 73:
74: # The user is always right.
75: if test "${PATH_SEPARATOR+set}" != set; then
1.10 ohara 76: PATH_SEPARATOR=:
77: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79: PATH_SEPARATOR=';'
80: }
1.4 takayama 81: fi
82:
83:
1.9 ohara 84: # IFS
85: # We need space, tab and new line, in precisely that order. Quoting is
86: # there to prevent editors from complaining about space-tab.
87: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88: # splitting by setting IFS to empty value.)
89: IFS=" "" $as_nl"
90:
91: # Find who we are. Look in the path if we contain no directory separator.
1.10 ohara 92: as_myself=
93: case $0 in #((
1.9 ohara 94: *[\\/]* ) as_myself=$0 ;;
95: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.4 takayama 96: for as_dir in $PATH
97: do
98: IFS=$as_save_IFS
99: test -z "$as_dir" && as_dir=.
1.10 ohara 100: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101: done
1.9 ohara 102: IFS=$as_save_IFS
103:
104: ;;
105: esac
106: # We did not find ourselves, most probably we were run as `sh COMMAND'
107: # in which case we are not to be found in the path.
108: if test "x$as_myself" = x; then
109: as_myself=$0
110: fi
111: if test ! -f "$as_myself"; then
1.10 ohara 112: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113: exit 1
1.9 ohara 114: fi
115:
1.10 ohara 116: # Unset variables that we do not need and which cause bugs (e.g. in
117: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118: # suppresses any "Segmentation fault" message there. '((' could
119: # trigger a bug in pdksh 5.2.14.
120: for as_var in BASH_ENV ENV MAIL MAILPATH
121: do eval test x\${$as_var+set} = xset \
122: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.9 ohara 123: done
124: PS1='$ '
125: PS2='> '
126: PS4='+ '
1.4 takayama 127:
1.9 ohara 128: # NLS nuisances.
1.10 ohara 129: LC_ALL=C
130: export LC_ALL
131: LANGUAGE=C
132: export LANGUAGE
133:
134: # CDPATH.
135: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136:
137: if test "x$CONFIG_SHELL" = x; then
138: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139: emulate sh
140: NULLCMD=:
141: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142: # is contrary to our usage. Disable this feature.
143: alias -g '\${1+\"\$@\"}'='\"\$@\"'
144: setopt NO_GLOB_SUBST
145: else
146: case \`(set -o) 2>/dev/null\` in #(
147: *posix*) :
148: set -o posix ;; #(
149: *) :
150: ;;
151: esac
152: fi
153: "
154: as_required="as_fn_return () { (exit \$1); }
155: as_fn_success () { as_fn_return 0; }
156: as_fn_failure () { as_fn_return 1; }
157: as_fn_ret_success () { return 0; }
158: as_fn_ret_failure () { return 1; }
159:
160: exitcode=0
161: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166:
167: else
168: exitcode=1; echo positional parameters were not saved.
169: fi
170: test x\$exitcode = x0 || exit 1"
171: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175:
176: test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180: PATH=/empty FPATH=/empty; export PATH FPATH
181: test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182: || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183: test \$(( 1 + 1 )) = 2 || exit 1"
184: if (eval "$as_required") 2>/dev/null; then :
185: as_have_required=yes
186: else
187: as_have_required=no
188: fi
189: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190:
191: else
192: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193: as_found=false
194: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1.9 ohara 195: do
1.10 ohara 196: IFS=$as_save_IFS
197: test -z "$as_dir" && as_dir=.
198: as_found=:
199: case $as_dir in #(
200: /*)
201: for as_base in sh bash ksh sh5; do
202: # Try only shells that exist, to save several forks.
203: as_shell=$as_dir/$as_base
204: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206: CONFIG_SHELL=$as_shell as_have_required=yes
207: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208: break 2
209: fi
210: fi
211: done;;
212: esac
213: as_found=false
214: done
215: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217: CONFIG_SHELL=$SHELL as_have_required=yes
218: fi; }
219: IFS=$as_save_IFS
220:
221:
222: if test "x$CONFIG_SHELL" != x; then :
223: # We cannot yet assume a decent shell, so we have to provide a
224: # neutralization value for shells without unset; and this also
225: # works around shells that cannot unset nonexistent variables.
226: # Preserve -v and -x to the replacement shell.
227: BASH_ENV=/dev/null
228: ENV=/dev/null
229: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230: export CONFIG_SHELL
231: case $- in # ((((
232: *v*x* | *x*v* ) as_opts=-vx ;;
233: *v* ) as_opts=-v ;;
234: *x* ) as_opts=-x ;;
235: * ) as_opts= ;;
236: esac
237: exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238: fi
239:
240: if test x$as_have_required = xno; then :
241: $as_echo "$0: This script requires a shell more modern than all"
242: $as_echo "$0: the shells that I found on your system."
243: if test x${ZSH_VERSION+set} = xset ; then
244: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246: else
247: $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248: $0: including any error possibly output before this
249: $0: message. Then install a modern shell, or manually run
250: $0: the script under such a shell if you do have one."
1.4 takayama 251: fi
1.10 ohara 252: exit 1
253: fi
254: fi
255: fi
256: SHELL=${CONFIG_SHELL-/bin/sh}
257: export SHELL
258: # Unset more variables known to interfere with behavior of common tools.
259: CLICOLOR_FORCE= GREP_OPTIONS=
260: unset CLICOLOR_FORCE GREP_OPTIONS
261:
262: ## --------------------- ##
263: ## M4sh Shell Functions. ##
264: ## --------------------- ##
265: # as_fn_unset VAR
266: # ---------------
267: # Portably unset VAR.
268: as_fn_unset ()
269: {
270: { eval $1=; unset $1;}
271: }
272: as_unset=as_fn_unset
273:
274: # as_fn_set_status STATUS
275: # -----------------------
276: # Set $? to STATUS, without forking.
277: as_fn_set_status ()
278: {
279: return $1
280: } # as_fn_set_status
281:
282: # as_fn_exit STATUS
283: # -----------------
284: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285: as_fn_exit ()
286: {
287: set +e
288: as_fn_set_status $1
289: exit $1
290: } # as_fn_exit
291:
292: # as_fn_mkdir_p
293: # -------------
294: # Create "$as_dir" as a directory, including parents if necessary.
295: as_fn_mkdir_p ()
296: {
297:
298: case $as_dir in #(
299: -*) as_dir=./$as_dir;;
300: esac
301: test -d "$as_dir" || eval $as_mkdir_p || {
302: as_dirs=
303: while :; do
304: case $as_dir in #(
305: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306: *) as_qdir=$as_dir;;
307: esac
308: as_dirs="'$as_qdir' $as_dirs"
309: as_dir=`$as_dirname -- "$as_dir" ||
310: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311: X"$as_dir" : 'X\(//\)[^/]' \| \
312: X"$as_dir" : 'X\(//\)$' \| \
313: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314: $as_echo X"$as_dir" |
315: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316: s//\1/
317: q
318: }
319: /^X\(\/\/\)[^/].*/{
320: s//\1/
321: q
322: }
323: /^X\(\/\/\)$/{
324: s//\1/
325: q
326: }
327: /^X\(\/\).*/{
328: s//\1/
329: q
330: }
331: s/.*/./; q'`
332: test -d "$as_dir" && break
333: done
334: test -z "$as_dirs" || eval "mkdir $as_dirs"
335: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336:
337:
338: } # as_fn_mkdir_p
339: # as_fn_append VAR VALUE
340: # ----------------------
341: # Append the text in VALUE to the end of the definition contained in VAR. Take
342: # advantage of any shell optimizations that allow amortized linear growth over
343: # repeated appends, instead of the typical quadratic growth present in naive
344: # implementations.
345: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346: eval 'as_fn_append ()
347: {
348: eval $1+=\$2
349: }'
350: else
351: as_fn_append ()
352: {
353: eval $1=\$$1\$2
354: }
355: fi # as_fn_append
356:
357: # as_fn_arith ARG...
358: # ------------------
359: # Perform arithmetic evaluation on the ARGs, and store the result in the
360: # global $as_val. Take advantage of shells that can avoid forks. The arguments
361: # must be portable across $(()) and expr.
362: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363: eval 'as_fn_arith ()
364: {
365: as_val=$(( $* ))
366: }'
367: else
368: as_fn_arith ()
369: {
370: as_val=`expr "$@" || test $? -eq 1`
371: }
372: fi # as_fn_arith
373:
374:
375: # as_fn_error STATUS ERROR [LINENO LOG_FD]
376: # ----------------------------------------
377: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379: # script with STATUS, using 1 if that was 0.
380: as_fn_error ()
381: {
382: as_status=$1; test $as_status -eq 0 && as_status=1
383: if test "$4"; then
384: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386: fi
387: $as_echo "$as_me: error: $2" >&2
388: as_fn_exit $as_status
389: } # as_fn_error
1.9 ohara 390:
391: if expr a : '\(a\)' >/dev/null 2>&1 &&
392: test "X`expr 00001 : '.*\(...\)'`" = X001; then
393: as_expr=expr
394: else
395: as_expr=false
396: fi
397:
398: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399: as_basename=basename
400: else
401: as_basename=false
402: fi
403:
1.10 ohara 404: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405: as_dirname=dirname
406: else
407: as_dirname=false
408: fi
1.9 ohara 409:
410: as_me=`$as_basename -- "$0" ||
411: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412: X"$0" : 'X\(//\)$' \| \
413: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.10 ohara 414: $as_echo X/"$0" |
1.9 ohara 415: sed '/^.*\/\([^/][^/]*\)\/*$/{
416: s//\1/
417: q
418: }
419: /^X\/\(\/\/\)$/{
420: s//\1/
421: q
422: }
423: /^X\/\(\/\).*/{
424: s//\1/
425: q
426: }
427: s/.*/./; q'`
428:
1.10 ohara 429: # Avoid depending upon Character Ranges.
430: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433: as_cr_digits='0123456789'
434: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.9 ohara 435:
436:
1.10 ohara 437: as_lineno_1=$LINENO as_lineno_1a=$LINENO
438: as_lineno_2=$LINENO as_lineno_2a=$LINENO
439: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
442: sed -n '
443: p
444: /[$]LINENO/=
445: ' <$as_myself |
446: sed '
447: s/[$]LINENO.*/&-/
448: t lineno
449: b
450: :lineno
451: N
452: :loop
453: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454: t loop
455: s/-\n.*//
456: ' >$as_me.lineno &&
457: chmod +x "$as_me.lineno" ||
458: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1.9 ohara 459:
1.10 ohara 460: # Don't try to exec as it changes $[0], causing all sort of problems
461: # (the dirname of $[0] is not the place where we might find the
462: # original and so on. Autoconf is especially sensitive to this).
463: . "./$as_me.lineno"
464: # Exit status is that of the last command.
465: exit
1.9 ohara 466: }
467:
1.10 ohara 468: ECHO_C= ECHO_N= ECHO_T=
469: case `echo -n x` in #(((((
470: -n*)
471: case `echo 'xy\c'` in
472: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473: xy) ECHO_C='\c';;
474: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
475: ECHO_T=' ';;
476: esac;;
477: *)
478: ECHO_N='-n';;
479: esac
480:
481: rm -f conf$$ conf$$.exe conf$$.file
482: if test -d conf$$.dir; then
483: rm -f conf$$.dir/conf$$.file
1.9 ohara 484: else
1.10 ohara 485: rm -f conf$$.dir
486: mkdir conf$$.dir 2>/dev/null
1.9 ohara 487: fi
1.10 ohara 488: if (echo >conf$$.file) 2>/dev/null; then
489: if ln -s conf$$.file conf$$ 2>/dev/null; then
490: as_ln_s='ln -s'
491: # ... but there are two gotchas:
492: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494: # In both cases, we have to default to `cp -p'.
495: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496: as_ln_s='cp -p'
497: elif ln conf$$.file conf$$ 2>/dev/null; then
498: as_ln_s=ln
499: else
500: as_ln_s='cp -p'
501: fi
502: else
503: as_ln_s='cp -p'
1.9 ohara 504: fi
1.10 ohara 505: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506: rmdir conf$$.dir 2>/dev/null
1.9 ohara 507:
1.10 ohara 508: if mkdir -p . 2>/dev/null; then
509: as_mkdir_p='mkdir -p "$as_dir"'
1.9 ohara 510: else
1.10 ohara 511: test -d ./-p && rmdir ./-p
512: as_mkdir_p=false
1.9 ohara 513: fi
514:
1.10 ohara 515: if test -x / >/dev/null 2>&1; then
516: as_test_x='test -x'
517: else
518: if ls -dL / >/dev/null 2>&1; then
519: as_ls_L_option=L
520: else
521: as_ls_L_option=
522: fi
523: as_test_x='
524: eval sh -c '\''
525: if test -d "$1"; then
526: test -d "$1/.";
527: else
528: case $1 in #(
529: -*)set "./$1";;
530: esac;
531: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532: ???[sx]*):;;*)false;;esac;fi
533: '\'' sh
534: '
1.9 ohara 535: fi
1.10 ohara 536: as_executable_p=$as_test_x
1.9 ohara 537:
1.10 ohara 538: # Sed expression to map a string onto a valid CPP name.
539: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.9 ohara 540:
1.10 ohara 541: # Sed expression to map a string onto a valid variable name.
542: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.9 ohara 543:
1.10 ohara 544: SHELL=${CONFIG_SHELL-/bin/sh}
1.9 ohara 545:
546:
1.10 ohara 547: test -n "$DJDIR" || exec 7<&0 </dev/null
548: exec 6>&1
1.9 ohara 549:
1.10 ohara 550: # Name of the host.
551: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552: # so uname gets run too.
553: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
1.9 ohara 554:
1.10 ohara 555: #
556: # Initializations.
557: #
558: ac_default_prefix=/usr/local
559: ac_clean_files=
560: ac_config_libobj_dir=.
561: LIBOBJS=
562: cross_compiling=no
563: subdirs=
564: MFLAGS=
565: MAKEFLAGS=
1.9 ohara 566:
1.10 ohara 567: # Identity of this package.
568: PACKAGE_NAME=
569: PACKAGE_TARNAME=
1.9 ohara 570: PACKAGE_VERSION=
571: PACKAGE_STRING=
572: PACKAGE_BUGREPORT=
1.10 ohara 573: PACKAGE_URL=
1.9 ohara 574:
1.10 ohara 575: ac_unique_file="mysocket.c"
576: # Factoring default headers for most tests.
577: ac_includes_default="\
578: #include <stdio.h>
579: #ifdef HAVE_SYS_TYPES_H
580: # include <sys/types.h>
581: #endif
582: #ifdef HAVE_SYS_STAT_H
583: # include <sys/stat.h>
584: #endif
585: #ifdef STDC_HEADERS
586: # include <stdlib.h>
587: # include <stddef.h>
588: #else
589: # ifdef HAVE_STDLIB_H
590: # include <stdlib.h>
591: # endif
592: #endif
593: #ifdef HAVE_STRING_H
594: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595: # include <memory.h>
596: # endif
597: # include <string.h>
598: #endif
599: #ifdef HAVE_STRINGS_H
600: # include <strings.h>
601: #endif
602: #ifdef HAVE_INTTYPES_H
603: # include <inttypes.h>
604: #endif
605: #ifdef HAVE_STDINT_H
606: # include <stdint.h>
607: #endif
608: #ifdef HAVE_UNISTD_H
609: # include <unistd.h>
610: #endif"
1.7 ohara 611:
1.10 ohara 612: ac_subst_vars='am__EXEEXT_FALSE
613: am__EXEEXT_TRUE
614: LTLIBOBJS
615: LIBOBJS
616: X_EXTRA_LIBS
617: X_LIBS
618: X_PRE_LIBS
619: X_CFLAGS
620: XMKMF
621: CPP
622: OTOOL64
623: OTOOL
624: LIPO
625: NMEDIT
626: DSYMUTIL
627: MANIFEST_TOOL
628: RANLIB
629: ac_ct_AR
630: AR
631: DLLTOOL
632: OBJDUMP
633: LN_S
634: NM
635: ac_ct_DUMPBIN
636: DUMPBIN
637: LD
638: FGREP
639: EGREP
640: GREP
641: SED
642: LIBTOOL
643: am__fastdepCC_FALSE
644: am__fastdepCC_TRUE
645: CCDEPMODE
646: AMDEPBACKSLASH
647: AMDEP_FALSE
648: AMDEP_TRUE
649: am__quote
650: am__include
651: DEPDIR
652: OBJEXT
653: EXEEXT
654: ac_ct_CC
655: CPPFLAGS
656: LDFLAGS
657: CFLAGS
658: CC
659: target_os
660: target_vendor
661: target_cpu
662: target
663: host_os
664: host_vendor
665: host_cpu
666: host
667: build_os
668: build_vendor
669: build_cpu
670: build
671: MAINT
672: MAINTAINER_MODE_FALSE
673: MAINTAINER_MODE_TRUE
674: am__untar
675: am__tar
676: AMTAR
677: am__leading_dot
678: SET_MAKE
679: AWK
680: mkdir_p
681: MKDIR_P
682: INSTALL_STRIP_PROGRAM
683: STRIP
684: install_sh
685: MAKEINFO
686: AUTOHEADER
687: AUTOMAKE
688: AUTOCONF
689: ACLOCAL
690: VERSION
691: PACKAGE
692: CYGPATH_W
693: am__isrc
694: INSTALL_DATA
695: INSTALL_SCRIPT
696: INSTALL_PROGRAM
697: target_alias
698: host_alias
699: build_alias
700: LIBS
701: ECHO_T
702: ECHO_N
703: ECHO_C
704: DEFS
705: mandir
706: localedir
707: libdir
708: psdir
709: pdfdir
710: dvidir
711: htmldir
712: infodir
713: docdir
714: oldincludedir
715: includedir
716: localstatedir
717: sharedstatedir
718: sysconfdir
719: datadir
720: datarootdir
721: libexecdir
722: sbindir
723: bindir
724: program_transform_name
725: prefix
726: exec_prefix
727: PACKAGE_URL
728: PACKAGE_BUGREPORT
729: PACKAGE_STRING
730: PACKAGE_VERSION
731: PACKAGE_TARNAME
732: PACKAGE_NAME
733: PATH_SEPARATOR
734: SHELL'
735: ac_subst_files=''
736: ac_user_opts='
737: enable_option_checking
738: enable_maintainer_mode
739: enable_dependency_tracking
740: enable_shared
741: enable_static
742: with_pic
743: enable_fast_install
744: with_gnu_ld
745: with_sysroot
746: enable_libtool_lock
747: with_x
748: '
749: ac_precious_vars='build_alias
750: host_alias
751: target_alias
752: CC
753: CFLAGS
754: LDFLAGS
755: LIBS
756: CPPFLAGS
757: CPP
758: XMKMF'
1.9 ohara 759:
760:
1.10 ohara 761: # Initialize some variables set by options.
762: ac_init_help=
763: ac_init_version=false
764: ac_unrecognized_opts=
765: ac_unrecognized_sep=
766: # The variables have the same names as the options, with
767: # dashes changed to underlines.
768: cache_file=/dev/null
769: exec_prefix=NONE
770: no_create=
771: no_recursion=
772: prefix=NONE
773: program_prefix=NONE
774: program_suffix=NONE
775: program_transform_name=s,x,x,
776: silent=
777: site=
778: srcdir=
779: verbose=
780: x_includes=NONE
781: x_libraries=NONE
1.9 ohara 782:
1.10 ohara 783: # Installation directory options.
784: # These are left unexpanded so users can "make install exec_prefix=/foo"
785: # and all the variables that are supposed to be based on exec_prefix
786: # by default will actually change.
787: # Use braces instead of parens because sh, perl, etc. also accept them.
788: # (The list follows the same order as the GNU Coding Standards.)
789: bindir='${exec_prefix}/bin'
790: sbindir='${exec_prefix}/sbin'
791: libexecdir='${exec_prefix}/libexec'
792: datarootdir='${prefix}/share'
793: datadir='${datarootdir}'
794: sysconfdir='${prefix}/etc'
795: sharedstatedir='${prefix}/com'
796: localstatedir='${prefix}/var'
797: includedir='${prefix}/include'
798: oldincludedir='/usr/include'
799: docdir='${datarootdir}/doc/${PACKAGE}'
800: infodir='${datarootdir}/info'
801: htmldir='${docdir}'
802: dvidir='${docdir}'
803: pdfdir='${docdir}'
804: psdir='${docdir}'
805: libdir='${exec_prefix}/lib'
806: localedir='${datarootdir}/locale'
807: mandir='${datarootdir}/man'
1.9 ohara 808:
1.10 ohara 809: ac_prev=
810: ac_dashdash=
811: for ac_option
1.9 ohara 812: do
1.10 ohara 813: # If the previous option needs an argument, assign it.
814: if test -n "$ac_prev"; then
815: eval $ac_prev=\$ac_option
816: ac_prev=
817: continue
818: fi
1.9 ohara 819:
1.10 ohara 820: case $ac_option in
821: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
822: *=) ac_optarg= ;;
823: *) ac_optarg=yes ;;
824: esac
1.9 ohara 825:
1.10 ohara 826: # Accept the important Cygnus configure options, so we can diagnose typos.
1.9 ohara 827:
1.10 ohara 828: case $ac_dashdash$ac_option in
829: --)
830: ac_dashdash=yes ;;
1.9 ohara 831:
1.10 ohara 832: -bindir | --bindir | --bindi | --bind | --bin | --bi)
833: ac_prev=bindir ;;
834: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
835: bindir=$ac_optarg ;;
1.9 ohara 836:
1.10 ohara 837: -build | --build | --buil | --bui | --bu)
838: ac_prev=build_alias ;;
839: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
840: build_alias=$ac_optarg ;;
1.9 ohara 841:
1.10 ohara 842: -cache-file | --cache-file | --cache-fil | --cache-fi \
843: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
844: ac_prev=cache_file ;;
845: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
846: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
847: cache_file=$ac_optarg ;;
1.9 ohara 848:
1.10 ohara 849: --config-cache | -C)
850: cache_file=config.cache ;;
1.9 ohara 851:
1.10 ohara 852: -datadir | --datadir | --datadi | --datad)
853: ac_prev=datadir ;;
854: -datadir=* | --datadir=* | --datadi=* | --datad=*)
855: datadir=$ac_optarg ;;
1.9 ohara 856:
1.10 ohara 857: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
858: | --dataroo | --dataro | --datar)
859: ac_prev=datarootdir ;;
860: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
861: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
862: datarootdir=$ac_optarg ;;
1.9 ohara 863:
1.10 ohara 864: -disable-* | --disable-*)
865: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
866: # Reject names that are not valid shell variable names.
867: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
868: as_fn_error $? "invalid feature name: $ac_useropt"
869: ac_useropt_orig=$ac_useropt
870: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
871: case $ac_user_opts in
872: *"
873: "enable_$ac_useropt"
874: "*) ;;
875: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
876: ac_unrecognized_sep=', ';;
877: esac
878: eval enable_$ac_useropt=no ;;
1.9 ohara 879:
1.10 ohara 880: -docdir | --docdir | --docdi | --doc | --do)
881: ac_prev=docdir ;;
882: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
883: docdir=$ac_optarg ;;
1.9 ohara 884:
1.10 ohara 885: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
886: ac_prev=dvidir ;;
887: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
888: dvidir=$ac_optarg ;;
1.9 ohara 889:
1.10 ohara 890: -enable-* | --enable-*)
891: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
892: # Reject names that are not valid shell variable names.
893: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894: as_fn_error $? "invalid feature name: $ac_useropt"
895: ac_useropt_orig=$ac_useropt
896: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897: case $ac_user_opts in
898: *"
899: "enable_$ac_useropt"
900: "*) ;;
901: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
902: ac_unrecognized_sep=', ';;
903: esac
904: eval enable_$ac_useropt=\$ac_optarg ;;
1.9 ohara 905:
1.10 ohara 906: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
907: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
908: | --exec | --exe | --ex)
909: ac_prev=exec_prefix ;;
910: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
911: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
912: | --exec=* | --exe=* | --ex=*)
913: exec_prefix=$ac_optarg ;;
1.9 ohara 914:
1.10 ohara 915: -gas | --gas | --ga | --g)
916: # Obsolete; use --with-gas.
917: with_gas=yes ;;
1.9 ohara 918:
1.10 ohara 919: -help | --help | --hel | --he | -h)
920: ac_init_help=long ;;
921: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
922: ac_init_help=recursive ;;
923: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
924: ac_init_help=short ;;
1.9 ohara 925:
1.10 ohara 926: -host | --host | --hos | --ho)
927: ac_prev=host_alias ;;
928: -host=* | --host=* | --hos=* | --ho=*)
929: host_alias=$ac_optarg ;;
1.9 ohara 930:
1.10 ohara 931: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
932: ac_prev=htmldir ;;
933: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
934: | --ht=*)
935: htmldir=$ac_optarg ;;
1.9 ohara 936:
1.10 ohara 937: -includedir | --includedir | --includedi | --included | --include \
938: | --includ | --inclu | --incl | --inc)
939: ac_prev=includedir ;;
940: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
941: | --includ=* | --inclu=* | --incl=* | --inc=*)
942: includedir=$ac_optarg ;;
1.9 ohara 943:
1.10 ohara 944: -infodir | --infodir | --infodi | --infod | --info | --inf)
945: ac_prev=infodir ;;
946: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
947: infodir=$ac_optarg ;;
1.9 ohara 948:
1.10 ohara 949: -libdir | --libdir | --libdi | --libd)
950: ac_prev=libdir ;;
951: -libdir=* | --libdir=* | --libdi=* | --libd=*)
952: libdir=$ac_optarg ;;
1.9 ohara 953:
1.10 ohara 954: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
955: | --libexe | --libex | --libe)
956: ac_prev=libexecdir ;;
957: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
958: | --libexe=* | --libex=* | --libe=*)
959: libexecdir=$ac_optarg ;;
1.9 ohara 960:
1.10 ohara 961: -localedir | --localedir | --localedi | --localed | --locale)
962: ac_prev=localedir ;;
963: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
964: localedir=$ac_optarg ;;
1.9 ohara 965:
1.10 ohara 966: -localstatedir | --localstatedir | --localstatedi | --localstated \
967: | --localstate | --localstat | --localsta | --localst | --locals)
968: ac_prev=localstatedir ;;
969: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
970: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
971: localstatedir=$ac_optarg ;;
1.9 ohara 972:
1.10 ohara 973: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
974: ac_prev=mandir ;;
975: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
976: mandir=$ac_optarg ;;
1.9 ohara 977:
1.10 ohara 978: -nfp | --nfp | --nf)
979: # Obsolete; use --without-fp.
980: with_fp=no ;;
1.9 ohara 981:
1.10 ohara 982: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
983: | --no-cr | --no-c | -n)
984: no_create=yes ;;
1.9 ohara 985:
1.10 ohara 986: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
987: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
988: no_recursion=yes ;;
1.9 ohara 989:
1.10 ohara 990: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
991: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
992: | --oldin | --oldi | --old | --ol | --o)
993: ac_prev=oldincludedir ;;
994: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
995: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
996: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
997: oldincludedir=$ac_optarg ;;
1.9 ohara 998:
1.10 ohara 999: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1000: ac_prev=prefix ;;
1001: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1002: prefix=$ac_optarg ;;
1.9 ohara 1003:
1.10 ohara 1004: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1005: | --program-pre | --program-pr | --program-p)
1006: ac_prev=program_prefix ;;
1007: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1008: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1009: program_prefix=$ac_optarg ;;
1.9 ohara 1010:
1.10 ohara 1011: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1012: | --program-suf | --program-su | --program-s)
1013: ac_prev=program_suffix ;;
1014: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1015: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1016: program_suffix=$ac_optarg ;;
1.9 ohara 1017:
1.10 ohara 1018: -program-transform-name | --program-transform-name \
1019: | --program-transform-nam | --program-transform-na \
1020: | --program-transform-n | --program-transform- \
1021: | --program-transform | --program-transfor \
1022: | --program-transfo | --program-transf \
1023: | --program-trans | --program-tran \
1024: | --progr-tra | --program-tr | --program-t)
1025: ac_prev=program_transform_name ;;
1026: -program-transform-name=* | --program-transform-name=* \
1027: | --program-transform-nam=* | --program-transform-na=* \
1028: | --program-transform-n=* | --program-transform-=* \
1029: | --program-transform=* | --program-transfor=* \
1030: | --program-transfo=* | --program-transf=* \
1031: | --program-trans=* | --program-tran=* \
1032: | --progr-tra=* | --program-tr=* | --program-t=*)
1033: program_transform_name=$ac_optarg ;;
1.9 ohara 1034:
1.10 ohara 1035: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1036: ac_prev=pdfdir ;;
1037: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1038: pdfdir=$ac_optarg ;;
1.9 ohara 1039:
1.10 ohara 1040: -psdir | --psdir | --psdi | --psd | --ps)
1041: ac_prev=psdir ;;
1042: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1043: psdir=$ac_optarg ;;
1.9 ohara 1044:
1.10 ohara 1045: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1046: | -silent | --silent | --silen | --sile | --sil)
1047: silent=yes ;;
1.9 ohara 1048:
1.10 ohara 1049: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1050: ac_prev=sbindir ;;
1051: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1052: | --sbi=* | --sb=*)
1053: sbindir=$ac_optarg ;;
1.9 ohara 1054:
1.10 ohara 1055: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1056: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1057: | --sharedst | --shareds | --shared | --share | --shar \
1058: | --sha | --sh)
1059: ac_prev=sharedstatedir ;;
1060: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1061: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1062: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1063: | --sha=* | --sh=*)
1064: sharedstatedir=$ac_optarg ;;
1.9 ohara 1065:
1.10 ohara 1066: -site | --site | --sit)
1067: ac_prev=site ;;
1068: -site=* | --site=* | --sit=*)
1069: site=$ac_optarg ;;
1.9 ohara 1070:
1.10 ohara 1071: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1072: ac_prev=srcdir ;;
1073: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1074: srcdir=$ac_optarg ;;
1.9 ohara 1075:
1.10 ohara 1076: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1077: | --syscon | --sysco | --sysc | --sys | --sy)
1078: ac_prev=sysconfdir ;;
1079: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1080: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1081: sysconfdir=$ac_optarg ;;
1.9 ohara 1082:
1.10 ohara 1083: -target | --target | --targe | --targ | --tar | --ta | --t)
1084: ac_prev=target_alias ;;
1085: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1086: target_alias=$ac_optarg ;;
1.9 ohara 1087:
1.10 ohara 1088: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1089: verbose=yes ;;
1.9 ohara 1090:
1.10 ohara 1091: -version | --version | --versio | --versi | --vers | -V)
1092: ac_init_version=: ;;
1.9 ohara 1093:
1.10 ohara 1094: -with-* | --with-*)
1095: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1096: # Reject names that are not valid shell variable names.
1097: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098: as_fn_error $? "invalid package name: $ac_useropt"
1099: ac_useropt_orig=$ac_useropt
1100: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101: case $ac_user_opts in
1102: *"
1103: "with_$ac_useropt"
1104: "*) ;;
1105: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1106: ac_unrecognized_sep=', ';;
1107: esac
1108: eval with_$ac_useropt=\$ac_optarg ;;
1.9 ohara 1109:
1.10 ohara 1110: -without-* | --without-*)
1111: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1112: # Reject names that are not valid shell variable names.
1113: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114: as_fn_error $? "invalid package name: $ac_useropt"
1115: ac_useropt_orig=$ac_useropt
1116: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117: case $ac_user_opts in
1118: *"
1119: "with_$ac_useropt"
1120: "*) ;;
1121: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1122: ac_unrecognized_sep=', ';;
1123: esac
1124: eval with_$ac_useropt=no ;;
1.9 ohara 1125:
1.10 ohara 1126: --x)
1127: # Obsolete; use --with-x.
1128: with_x=yes ;;
1.9 ohara 1129:
1.10 ohara 1130: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1131: | --x-incl | --x-inc | --x-in | --x-i)
1132: ac_prev=x_includes ;;
1133: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1134: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1135: x_includes=$ac_optarg ;;
1.9 ohara 1136:
1.10 ohara 1137: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1138: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1139: ac_prev=x_libraries ;;
1140: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1141: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1142: x_libraries=$ac_optarg ;;
1.9 ohara 1143:
1.10 ohara 1144: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1145: Try \`$0 --help' for more information"
1146: ;;
1.9 ohara 1147:
1.10 ohara 1148: *=*)
1149: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1150: # Reject names that are not valid shell variable names.
1151: case $ac_envvar in #(
1152: '' | [0-9]* | *[!_$as_cr_alnum]* )
1153: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1154: esac
1155: eval $ac_envvar=\$ac_optarg
1156: export $ac_envvar ;;
1.9 ohara 1157:
1.10 ohara 1158: *)
1159: # FIXME: should be removed in autoconf 3.0.
1160: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1161: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1162: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1163: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.9 ohara 1164: ;;
1165:
1.10 ohara 1166: esac
1167: done
1.9 ohara 1168:
1.10 ohara 1169: if test -n "$ac_prev"; then
1170: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1171: as_fn_error $? "missing argument to $ac_option"
1.9 ohara 1172: fi
1173:
1.10 ohara 1174: if test -n "$ac_unrecognized_opts"; then
1175: case $enable_option_checking in
1176: no) ;;
1177: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1178: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1179: esac
1.9 ohara 1180: fi
1181:
1.10 ohara 1182: # Check all directory arguments for consistency.
1183: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1184: datadir sysconfdir sharedstatedir localstatedir includedir \
1185: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1186: libdir localedir mandir
1187: do
1188: eval ac_val=\$$ac_var
1189: # Remove trailing slashes.
1190: case $ac_val in
1191: */ )
1192: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1193: eval $ac_var=\$ac_val;;
1194: esac
1195: # Be sure to have absolute directory names.
1196: case $ac_val in
1197: [\\/$]* | ?:[\\/]* ) continue;;
1198: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1199: esac
1200: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.9 ohara 1201: done
1202:
1.10 ohara 1203: # There might be people who depend on the old broken behavior: `$host'
1204: # used to hold the argument of --host etc.
1205: # FIXME: To remove some day.
1206: build=$build_alias
1207: host=$host_alias
1208: target=$target_alias
1209:
1210: # FIXME: To remove some day.
1211: if test "x$host_alias" != x; then
1212: if test "x$build_alias" = x; then
1213: cross_compiling=maybe
1214: $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1215: If a cross compiler is detected then cross compile mode will be used" >&2
1216: elif test "x$build_alias" != "x$host_alias"; then
1217: cross_compiling=yes
1.9 ohara 1218: fi
1219: fi
1220:
1.10 ohara 1221: ac_tool_prefix=
1222: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.9 ohara 1223:
1.10 ohara 1224: test "$silent" = yes && exec 6>/dev/null
1.9 ohara 1225:
1226:
1.10 ohara 1227: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1228: ac_ls_di=`ls -di .` &&
1229: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1230: as_fn_error $? "working directory cannot be determined"
1231: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1232: as_fn_error $? "pwd does not report name of working directory"
1.9 ohara 1233:
1234:
1.10 ohara 1235: # Find the source files, if location was not specified.
1236: if test -z "$srcdir"; then
1237: ac_srcdir_defaulted=yes
1238: # Try the directory containing this script, then the parent directory.
1239: ac_confdir=`$as_dirname -- "$as_myself" ||
1240: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1241: X"$as_myself" : 'X\(//\)[^/]' \| \
1242: X"$as_myself" : 'X\(//\)$' \| \
1243: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1244: $as_echo X"$as_myself" |
1245: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1246: s//\1/
1247: q
1248: }
1249: /^X\(\/\/\)[^/].*/{
1250: s//\1/
1251: q
1252: }
1253: /^X\(\/\/\)$/{
1254: s//\1/
1255: q
1256: }
1257: /^X\(\/\).*/{
1258: s//\1/
1259: q
1260: }
1261: s/.*/./; q'`
1262: srcdir=$ac_confdir
1263: if test ! -r "$srcdir/$ac_unique_file"; then
1264: srcdir=..
1.9 ohara 1265: fi
1.10 ohara 1266: else
1267: ac_srcdir_defaulted=no
1.9 ohara 1268: fi
1.10 ohara 1269: if test ! -r "$srcdir/$ac_unique_file"; then
1270: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1271: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1272: fi
1273: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1274: ac_abs_confdir=`(
1275: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1276: pwd)`
1277: # When building in place, set srcdir=.
1278: if test "$ac_abs_confdir" = "$ac_pwd"; then
1279: srcdir=.
1.9 ohara 1280: fi
1.10 ohara 1281: # Remove unnecessary trailing slashes from srcdir.
1282: # Double slashes in file names in object file debugging info
1283: # mess up M-x gdb in Emacs.
1284: case $srcdir in
1285: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1.9 ohara 1286: esac
1.10 ohara 1287: for ac_var in $ac_precious_vars; do
1288: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1289: eval ac_env_${ac_var}_value=\$${ac_var}
1290: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1291: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1292: done
1293:
1294: #
1295: # Report the --help message.
1296: #
1297: if test "$ac_init_help" = "long"; then
1298: # Omit some internal or obsolete options to make the list less imposing.
1299: # This message is too long to be a string in the A/UX 3.1 sh.
1300: cat <<_ACEOF
1301: \`configure' configures this package to adapt to many kinds of systems.
1.9 ohara 1302:
1.10 ohara 1303: Usage: $0 [OPTION]... [VAR=VALUE]...
1.9 ohara 1304:
1.10 ohara 1305: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1306: VAR=VALUE. See below for descriptions of some of the useful variables.
1.9 ohara 1307:
1.10 ohara 1308: Defaults for the options are specified in brackets.
1.9 ohara 1309:
1.10 ohara 1310: Configuration:
1311: -h, --help display this help and exit
1312: --help=short display options specific to this package
1313: --help=recursive display the short help of all the included packages
1314: -V, --version display version information and exit
1315: -q, --quiet, --silent do not print \`checking ...' messages
1316: --cache-file=FILE cache test results in FILE [disabled]
1317: -C, --config-cache alias for \`--cache-file=config.cache'
1318: -n, --no-create do not create output files
1319: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1.9 ohara 1320:
1.10 ohara 1321: Installation directories:
1322: --prefix=PREFIX install architecture-independent files in PREFIX
1323: [$ac_default_prefix]
1324: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1325: [PREFIX]
1.9 ohara 1326:
1.10 ohara 1327: By default, \`make install' will install all the files in
1328: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1329: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1330: for instance \`--prefix=\$HOME'.
1.9 ohara 1331:
1.10 ohara 1332: For better control, use the options below.
1.9 ohara 1333:
1.10 ohara 1334: Fine tuning of the installation directories:
1335: --bindir=DIR user executables [EPREFIX/bin]
1336: --sbindir=DIR system admin executables [EPREFIX/sbin]
1337: --libexecdir=DIR program executables [EPREFIX/libexec]
1338: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1339: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1340: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1341: --libdir=DIR object code libraries [EPREFIX/lib]
1342: --includedir=DIR C header files [PREFIX/include]
1343: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1344: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1345: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1346: --infodir=DIR info documentation [DATAROOTDIR/info]
1347: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1348: --mandir=DIR man documentation [DATAROOTDIR/man]
1349: --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1350: --htmldir=DIR html documentation [DOCDIR]
1351: --dvidir=DIR dvi documentation [DOCDIR]
1352: --pdfdir=DIR pdf documentation [DOCDIR]
1353: --psdir=DIR ps documentation [DOCDIR]
1.9 ohara 1354: _ACEOF
1355:
1.10 ohara 1356: cat <<\_ACEOF
1.9 ohara 1357:
1.10 ohara 1358: Program names:
1359: --program-prefix=PREFIX prepend PREFIX to installed program names
1360: --program-suffix=SUFFIX append SUFFIX to installed program names
1361: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1.9 ohara 1362:
1.10 ohara 1363: X features:
1364: --x-includes=DIR X include files are in DIR
1365: --x-libraries=DIR X library files are in DIR
1.9 ohara 1366:
1.10 ohara 1367: System types:
1368: --build=BUILD configure for building on BUILD [guessed]
1369: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1370: --target=TARGET configure for building compilers for TARGET [HOST]
1.9 ohara 1371: _ACEOF
1.10 ohara 1372: fi
1.9 ohara 1373:
1.10 ohara 1374: if test -n "$ac_init_help"; then
1.9 ohara 1375:
1.10 ohara 1376: cat <<\_ACEOF
1.9 ohara 1377:
1.10 ohara 1378: Optional Features:
1379: --disable-option-checking ignore unrecognized --enable/--with options
1380: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1381: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1382: --enable-maintainer-mode enable make rules and dependencies not useful
1383: (and sometimes confusing) to the casual installer
1384: --disable-dependency-tracking speeds up one-time build
1385: --enable-dependency-tracking do not reject slow dependency extractors
1386: --enable-shared[=PKGS] build shared libraries [default=yes]
1387: --enable-static[=PKGS] build static libraries [default=yes]
1388: --enable-fast-install[=PKGS]
1389: optimize for fast installation [default=yes]
1390: --disable-libtool-lock avoid locking (might break parallel builds)
1.9 ohara 1391:
1.10 ohara 1392: Optional Packages:
1393: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1394: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1395: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1396: both]
1397: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1398: --with-sysroot=DIR Search for dependent libraries within DIR
1399: (or the compiler's sysroot if not specified).
1400: --with-x use the X Window System
1.9 ohara 1401:
1.10 ohara 1402: Some influential environment variables:
1403: CC C compiler command
1404: CFLAGS C compiler flags
1405: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1406: nonstandard directory <lib dir>
1407: LIBS libraries to pass to the linker, e.g. -l<library>
1408: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1409: you have headers in a nonstandard directory <include dir>
1410: CPP C preprocessor
1411: XMKMF Path to xmkmf, Makefile generator for X Window System
1.9 ohara 1412:
1.10 ohara 1413: Use these variables to override the choices made by `configure' or to help
1414: it to find libraries and programs with nonstandard names/locations.
1.9 ohara 1415:
1.10 ohara 1416: Report bugs to the package provider.
1417: _ACEOF
1418: ac_status=$?
1.9 ohara 1419: fi
1420:
1.10 ohara 1421: if test "$ac_init_help" = "recursive"; then
1422: # If there are subdirs, report their specific --help.
1423: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1424: test -d "$ac_dir" ||
1425: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1426: continue
1427: ac_builddir=.
1.9 ohara 1428:
1.10 ohara 1429: case "$ac_dir" in
1430: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1431: *)
1432: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1433: # A ".." for each directory in $ac_dir_suffix.
1434: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1435: case $ac_top_builddir_sub in
1436: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1438: esac ;;
1439: esac
1440: ac_abs_top_builddir=$ac_pwd
1441: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1442: # for backward compatibility:
1443: ac_top_builddir=$ac_top_build_prefix
1.9 ohara 1444:
1.10 ohara 1445: case $srcdir in
1446: .) # We are building in place.
1447: ac_srcdir=.
1448: ac_top_srcdir=$ac_top_builddir_sub
1449: ac_abs_top_srcdir=$ac_pwd ;;
1450: [\\/]* | ?:[\\/]* ) # Absolute name.
1451: ac_srcdir=$srcdir$ac_dir_suffix;
1452: ac_top_srcdir=$srcdir
1453: ac_abs_top_srcdir=$srcdir ;;
1454: *) # Relative name.
1455: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1456: ac_top_srcdir=$ac_top_build_prefix$srcdir
1457: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1458: esac
1459: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.9 ohara 1460:
1.10 ohara 1461: cd "$ac_dir" || { ac_status=$?; continue; }
1462: # Check for guested configure.
1463: if test -f "$ac_srcdir/configure.gnu"; then
1464: echo &&
1465: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1466: elif test -f "$ac_srcdir/configure"; then
1467: echo &&
1468: $SHELL "$ac_srcdir/configure" --help=recursive
1469: else
1470: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1471: fi || ac_status=$?
1472: cd "$ac_pwd" || { ac_status=$?; break; }
1.9 ohara 1473: done
1474: fi
1475:
1.10 ohara 1476: test -n "$ac_init_help" && exit $ac_status
1477: if $ac_init_version; then
1478: cat <<\_ACEOF
1479: configure
1480: generated by GNU Autoconf 2.68
1.9 ohara 1481:
1.10 ohara 1482: Copyright (C) 2010 Free Software Foundation, Inc.
1483: This configure script is free software; the Free Software Foundation
1484: gives unlimited permission to copy, distribute and modify it.
1485: _ACEOF
1486: exit
1.9 ohara 1487: fi
1488:
1.10 ohara 1489: ## ------------------------ ##
1490: ## Autoconf initialization. ##
1491: ## ------------------------ ##
1492:
1493: # ac_fn_c_try_compile LINENO
1494: # --------------------------
1495: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1496: ac_fn_c_try_compile ()
1497: {
1498: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1499: rm -f conftest.$ac_objext
1500: if { { ac_try="$ac_compile"
1.9 ohara 1501: case "(($ac_try" in
1502: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1503: *) ac_try_echo=$ac_try;;
1504: esac
1.10 ohara 1505: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1506: $as_echo "$ac_try_echo"; } >&5
1507: (eval "$ac_compile") 2>conftest.err
1.9 ohara 1508: ac_status=$?
1.10 ohara 1509: if test -s conftest.err; then
1510: grep -v '^ *+' conftest.err >conftest.er1
1511: cat conftest.er1 >&5
1512: mv -f conftest.er1 conftest.err
1513: fi
1514: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1515: test $ac_status = 0; } && {
1516: test -z "$ac_c_werror_flag" ||
1.9 ohara 1517: test ! -s conftest.err
1.10 ohara 1518: } && test -s conftest.$ac_objext; then :
1519: ac_retval=0
1.9 ohara 1520: else
1.10 ohara 1521: $as_echo "$as_me: failed program was:" >&5
1.9 ohara 1522: sed 's/^/| /' conftest.$ac_ext >&5
1523:
1.10 ohara 1524: ac_retval=1
1.9 ohara 1525: fi
1.10 ohara 1526: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1527: as_fn_set_status $ac_retval
1.9 ohara 1528:
1.10 ohara 1529: } # ac_fn_c_try_compile
1.9 ohara 1530:
1.10 ohara 1531: # ac_fn_c_try_link LINENO
1532: # -----------------------
1533: # Try to link conftest.$ac_ext, and return whether this succeeded.
1534: ac_fn_c_try_link ()
1535: {
1536: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537: rm -f conftest.$ac_objext conftest$ac_exeext
1538: if { { ac_try="$ac_link"
1.9 ohara 1539: case "(($ac_try" in
1540: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541: *) ac_try_echo=$ac_try;;
1542: esac
1.10 ohara 1543: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544: $as_echo "$ac_try_echo"; } >&5
1545: (eval "$ac_link") 2>conftest.err
1.9 ohara 1546: ac_status=$?
1.10 ohara 1547: if test -s conftest.err; then
1548: grep -v '^ *+' conftest.err >conftest.er1
1549: cat conftest.er1 >&5
1550: mv -f conftest.er1 conftest.err
1551: fi
1552: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553: test $ac_status = 0; } && {
1554: test -z "$ac_c_werror_flag" ||
1.9 ohara 1555: test ! -s conftest.err
1.10 ohara 1556: } && test -s conftest$ac_exeext && {
1557: test "$cross_compiling" = yes ||
1558: $as_test_x conftest$ac_exeext
1559: }; then :
1560: ac_retval=0
1.9 ohara 1561: else
1.10 ohara 1562: $as_echo "$as_me: failed program was:" >&5
1.9 ohara 1563: sed 's/^/| /' conftest.$ac_ext >&5
1564:
1.10 ohara 1565: ac_retval=1
1.9 ohara 1566: fi
1.10 ohara 1567: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1568: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1569: # interfere with the next link command; also delete a directory that is
1570: # left behind by Apple's compiler. We do this before executing the actions.
1571: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1572: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1573: as_fn_set_status $ac_retval
1.9 ohara 1574:
1.10 ohara 1575: } # ac_fn_c_try_link
1.9 ohara 1576:
1.10 ohara 1577: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1578: # -------------------------------------------------------
1579: # Tests whether HEADER exists and can be compiled using the include files in
1580: # INCLUDES, setting the cache variable VAR accordingly.
1581: ac_fn_c_check_header_compile ()
1582: {
1583: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1585: $as_echo_n "checking for $2... " >&6; }
1586: if eval \${$3+:} false; then :
1587: $as_echo_n "(cached) " >&6
1588: else
1589: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1590: /* end confdefs.h. */
1591: $4
1592: #include <$2>
1593: _ACEOF
1594: if ac_fn_c_try_compile "$LINENO"; then :
1595: eval "$3=yes"
1596: else
1597: eval "$3=no"
1598: fi
1599: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9 ohara 1600: fi
1.10 ohara 1601: eval ac_res=\$$3
1602: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1603: $as_echo "$ac_res" >&6; }
1604: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.9 ohara 1605:
1.10 ohara 1606: } # ac_fn_c_check_header_compile
1.9 ohara 1607:
1.10 ohara 1608: # ac_fn_c_try_cpp LINENO
1609: # ----------------------
1610: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1611: ac_fn_c_try_cpp ()
1612: {
1613: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614: if { { ac_try="$ac_cpp conftest.$ac_ext"
1.9 ohara 1615: case "(($ac_try" in
1616: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617: *) ac_try_echo=$ac_try;;
1618: esac
1.10 ohara 1619: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620: $as_echo "$ac_try_echo"; } >&5
1621: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1.9 ohara 1622: ac_status=$?
1.10 ohara 1623: if test -s conftest.err; then
1624: grep -v '^ *+' conftest.err >conftest.er1
1625: cat conftest.er1 >&5
1626: mv -f conftest.er1 conftest.err
1627: fi
1628: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629: test $ac_status = 0; } > conftest.i && {
1630: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.9 ohara 1631: test ! -s conftest.err
1.10 ohara 1632: }; then :
1633: ac_retval=0
1.9 ohara 1634: else
1.10 ohara 1635: $as_echo "$as_me: failed program was:" >&5
1.9 ohara 1636: sed 's/^/| /' conftest.$ac_ext >&5
1637:
1.10 ohara 1638: ac_retval=1
1.9 ohara 1639: fi
1.10 ohara 1640: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641: as_fn_set_status $ac_retval
1.9 ohara 1642:
1.10 ohara 1643: } # ac_fn_c_try_cpp
1.9 ohara 1644:
1.10 ohara 1645: # ac_fn_c_try_run LINENO
1646: # ----------------------
1647: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1648: # that executables *can* be run.
1649: ac_fn_c_try_run ()
1650: {
1651: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652: if { { ac_try="$ac_link"
1.9 ohara 1653: case "(($ac_try" in
1654: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655: *) ac_try_echo=$ac_try;;
1656: esac
1.10 ohara 1657: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658: $as_echo "$ac_try_echo"; } >&5
1659: (eval "$ac_link") 2>&5
1660: ac_status=$?
1661: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1663: { { case "(($ac_try" in
1664: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665: *) ac_try_echo=$ac_try;;
1666: esac
1667: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668: $as_echo "$ac_try_echo"; } >&5
1669: (eval "$ac_try") 2>&5
1.9 ohara 1670: ac_status=$?
1.10 ohara 1671: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672: test $ac_status = 0; }; }; then :
1673: ac_retval=0
1.9 ohara 1674: else
1.10 ohara 1675: $as_echo "$as_me: program exited with status $ac_status" >&5
1676: $as_echo "$as_me: failed program was:" >&5
1.9 ohara 1677: sed 's/^/| /' conftest.$ac_ext >&5
1678:
1.10 ohara 1679: ac_retval=$ac_status
1.9 ohara 1680: fi
1.10 ohara 1681: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1682: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683: as_fn_set_status $ac_retval
1.9 ohara 1684:
1.10 ohara 1685: } # ac_fn_c_try_run
1.9 ohara 1686:
1.10 ohara 1687: # ac_fn_c_check_func LINENO FUNC VAR
1688: # ----------------------------------
1689: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1690: ac_fn_c_check_func ()
1691: {
1692: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1694: $as_echo_n "checking for $2... " >&6; }
1695: if eval \${$3+:} false; then :
1696: $as_echo_n "(cached) " >&6
1.9 ohara 1697: else
1.10 ohara 1698: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1699: /* end confdefs.h. */
1700: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1701: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1702: #define $2 innocuous_$2
1.9 ohara 1703:
1.10 ohara 1704: /* System header to define __stub macros and hopefully few prototypes,
1705: which can conflict with char $2 (); below.
1706: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1707: <limits.h> exists even on freestanding compilers. */
1.9 ohara 1708:
1.10 ohara 1709: #ifdef __STDC__
1710: # include <limits.h>
1711: #else
1712: # include <assert.h>
1713: #endif
1.9 ohara 1714:
1.10 ohara 1715: #undef $2
1.9 ohara 1716:
1.10 ohara 1717: /* Override any GCC internal prototype to avoid an error.
1718: Use char because int might match the return type of a GCC
1719: builtin and then its argument prototype would still apply. */
1720: #ifdef __cplusplus
1721: extern "C"
1722: #endif
1723: char $2 ();
1724: /* The GNU C library defines this for functions which it implements
1725: to always fail with ENOSYS. Some functions are actually named
1726: something starting with __ and the normal name is an alias. */
1727: #if defined __stub_$2 || defined __stub___$2
1728: choke me
1729: #endif
1.9 ohara 1730:
1.10 ohara 1731: int
1732: main ()
1733: {
1734: return $2 ();
1735: ;
1736: return 0;
1737: }
1.9 ohara 1738: _ACEOF
1.10 ohara 1739: if ac_fn_c_try_link "$LINENO"; then :
1740: eval "$3=yes"
1.9 ohara 1741: else
1.10 ohara 1742: eval "$3=no"
1743: fi
1744: rm -f core conftest.err conftest.$ac_objext \
1745: conftest$ac_exeext conftest.$ac_ext
1746: fi
1747: eval ac_res=\$$3
1748: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1749: $as_echo "$ac_res" >&6; }
1750: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.9 ohara 1751:
1.10 ohara 1752: } # ac_fn_c_check_func
1753: cat >config.log <<_ACEOF
1754: This file contains any messages produced by compilers while
1755: running configure, to aid debugging if configure makes a mistake.
1.9 ohara 1756:
1.10 ohara 1757: It was created by $as_me, which was
1758: generated by GNU Autoconf 2.68. Invocation command line was
1.9 ohara 1759:
1.10 ohara 1760: $ $0 $@
1.9 ohara 1761:
1762: _ACEOF
1.10 ohara 1763: exec 5>>config.log
1764: {
1765: cat <<_ASUNAME
1766: ## --------- ##
1767: ## Platform. ##
1768: ## --------- ##
1.9 ohara 1769:
1.10 ohara 1770: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1771: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1772: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1773: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1774: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1.9 ohara 1775:
1.10 ohara 1776: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1777: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1.9 ohara 1778:
1.10 ohara 1779: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1780: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1781: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1782: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1783: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1784: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1785: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1.9 ohara 1786:
1.10 ohara 1787: _ASUNAME
1.9 ohara 1788:
1.10 ohara 1789: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1790: for as_dir in $PATH
1791: do
1792: IFS=$as_save_IFS
1793: test -z "$as_dir" && as_dir=.
1794: $as_echo "PATH: $as_dir"
1795: done
1796: IFS=$as_save_IFS
1.9 ohara 1797:
1.10 ohara 1798: } >&5
1.9 ohara 1799:
1.10 ohara 1800: cat >&5 <<_ACEOF
1.9 ohara 1801:
1802:
1.10 ohara 1803: ## ----------- ##
1804: ## Core tests. ##
1805: ## ----------- ##
1.9 ohara 1806:
1.10 ohara 1807: _ACEOF
1.9 ohara 1808:
1809:
1.10 ohara 1810: # Keep a trace of the command line.
1811: # Strip out --no-create and --no-recursion so they do not pile up.
1812: # Strip out --silent because we don't want to record it for future runs.
1813: # Also quote any args containing shell meta-characters.
1814: # Make two passes to allow for proper duplicate-argument suppression.
1815: ac_configure_args=
1816: ac_configure_args0=
1817: ac_configure_args1=
1818: ac_must_keep_next=false
1819: for ac_pass in 1 2
1820: do
1821: for ac_arg
1822: do
1823: case $ac_arg in
1824: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1825: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1826: | -silent | --silent | --silen | --sile | --sil)
1827: continue ;;
1828: *\'*)
1829: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1830: esac
1831: case $ac_pass in
1832: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1833: 2)
1834: as_fn_append ac_configure_args1 " '$ac_arg'"
1835: if test $ac_must_keep_next = true; then
1836: ac_must_keep_next=false # Got value, back to normal.
1837: else
1838: case $ac_arg in
1839: *=* | --config-cache | -C | -disable-* | --disable-* \
1840: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1841: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1842: | -with-* | --with-* | -without-* | --without-* | --x)
1843: case "$ac_configure_args0 " in
1844: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1845: esac
1846: ;;
1847: -* ) ac_must_keep_next=true ;;
1848: esac
1849: fi
1850: as_fn_append ac_configure_args " '$ac_arg'"
1851: ;;
1852: esac
1853: done
1854: done
1855: { ac_configure_args0=; unset ac_configure_args0;}
1856: { ac_configure_args1=; unset ac_configure_args1;}
1.9 ohara 1857:
1.10 ohara 1858: # When interrupted or exit'd, cleanup temporary files, and complete
1859: # config.log. We remove comments because anyway the quotes in there
1860: # would cause problems or look ugly.
1861: # WARNING: Use '\'' to represent an apostrophe within the trap.
1862: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1863: trap 'exit_status=$?
1864: # Save into config.log some information that might help in debugging.
1865: {
1866: echo
1.9 ohara 1867:
1.10 ohara 1868: $as_echo "## ---------------- ##
1869: ## Cache variables. ##
1870: ## ---------------- ##"
1871: echo
1872: # The following way of writing the cache mishandles newlines in values,
1873: (
1874: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1875: eval ac_val=\$$ac_var
1876: case $ac_val in #(
1877: *${as_nl}*)
1878: case $ac_var in #(
1879: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1880: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1881: esac
1882: case $ac_var in #(
1883: _ | IFS | as_nl) ;; #(
1884: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1885: *) { eval $ac_var=; unset $ac_var;} ;;
1886: esac ;;
1887: esac
1888: done
1889: (set) 2>&1 |
1890: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1891: *${as_nl}ac_space=\ *)
1892: sed -n \
1893: "s/'\''/'\''\\\\'\'''\''/g;
1894: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1895: ;; #(
1896: *)
1897: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1898: ;;
1899: esac |
1900: sort
1901: )
1902: echo
1.9 ohara 1903:
1.10 ohara 1904: $as_echo "## ----------------- ##
1905: ## Output variables. ##
1906: ## ----------------- ##"
1907: echo
1908: for ac_var in $ac_subst_vars
1909: do
1910: eval ac_val=\$$ac_var
1911: case $ac_val in
1912: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1.9 ohara 1913: esac
1.10 ohara 1914: $as_echo "$ac_var='\''$ac_val'\''"
1915: done | sort
1916: echo
1917:
1918: if test -n "$ac_subst_files"; then
1919: $as_echo "## ------------------- ##
1920: ## File substitutions. ##
1921: ## ------------------- ##"
1922: echo
1923: for ac_var in $ac_subst_files
1924: do
1925: eval ac_val=\$$ac_var
1926: case $ac_val in
1927: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1928: esac
1929: $as_echo "$ac_var='\''$ac_val'\''"
1930: done | sort
1931: echo
1932: fi
1933:
1934: if test -s confdefs.h; then
1935: $as_echo "## ----------- ##
1936: ## confdefs.h. ##
1937: ## ----------- ##"
1938: echo
1939: cat confdefs.h
1940: echo
1.9 ohara 1941: fi
1.10 ohara 1942: test "$ac_signal" != 0 &&
1943: $as_echo "$as_me: caught signal $ac_signal"
1944: $as_echo "$as_me: exit $exit_status"
1945: } >&5
1946: rm -f core *.core core.conftest.* &&
1947: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1948: exit $exit_status
1949: ' 0
1950: for ac_signal in 1 2 13 15; do
1951: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1952: done
1953: ac_signal=0
1.9 ohara 1954:
1.10 ohara 1955: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1956: rm -f -r conftest* confdefs.h
1.9 ohara 1957:
1.10 ohara 1958: $as_echo "/* confdefs.h */" > confdefs.h
1.9 ohara 1959:
1.10 ohara 1960: # Predefined preprocessor variables.
1.9 ohara 1961:
1.10 ohara 1962: cat >>confdefs.h <<_ACEOF
1963: #define PACKAGE_NAME "$PACKAGE_NAME"
1964: _ACEOF
1.9 ohara 1965:
1.10 ohara 1966: cat >>confdefs.h <<_ACEOF
1967: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1968: _ACEOF
1.9 ohara 1969:
1.10 ohara 1970: cat >>confdefs.h <<_ACEOF
1971: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1972: _ACEOF
1.9 ohara 1973:
1.10 ohara 1974: cat >>confdefs.h <<_ACEOF
1975: #define PACKAGE_STRING "$PACKAGE_STRING"
1976: _ACEOF
1.9 ohara 1977:
1.10 ohara 1978: cat >>confdefs.h <<_ACEOF
1979: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1980: _ACEOF
1.9 ohara 1981:
1.10 ohara 1982: cat >>confdefs.h <<_ACEOF
1983: #define PACKAGE_URL "$PACKAGE_URL"
1984: _ACEOF
1.9 ohara 1985:
1986:
1.10 ohara 1987: # Let the site file select an alternate cache file if it wants to.
1988: # Prefer an explicitly selected file to automatically selected ones.
1989: ac_site_file1=NONE
1990: ac_site_file2=NONE
1991: if test -n "$CONFIG_SITE"; then
1992: # We do not want a PATH search for config.site.
1993: case $CONFIG_SITE in #((
1994: -*) ac_site_file1=./$CONFIG_SITE;;
1995: */*) ac_site_file1=$CONFIG_SITE;;
1996: *) ac_site_file1=./$CONFIG_SITE;;
1997: esac
1998: elif test "x$prefix" != xNONE; then
1999: ac_site_file1=$prefix/share/config.site
2000: ac_site_file2=$prefix/etc/config.site
2001: else
2002: ac_site_file1=$ac_default_prefix/share/config.site
2003: ac_site_file2=$ac_default_prefix/etc/config.site
2004: fi
2005: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2006: do
2007: test "x$ac_site_file" = xNONE && continue
2008: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2009: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2010: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2011: sed 's/^/| /' "$ac_site_file" >&5
2012: . "$ac_site_file" \
2013: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2014: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2015: as_fn_error $? "failed to load site script $ac_site_file
2016: See \`config.log' for more details" "$LINENO" 5; }
2017: fi
2018: done
1.9 ohara 2019:
1.10 ohara 2020: if test -r "$cache_file"; then
2021: # Some versions of bash will fail to source /dev/null (special files
2022: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2023: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2024: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2025: $as_echo "$as_me: loading cache $cache_file" >&6;}
2026: case $cache_file in
2027: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2028: *) . "./$cache_file";;
2029: esac
1.9 ohara 2030: fi
1.10 ohara 2031: else
2032: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2033: $as_echo "$as_me: creating cache $cache_file" >&6;}
2034: >$cache_file
2035: fi
2036:
2037: # Check that the precious variables saved in the cache have kept the same
2038: # value.
2039: ac_cache_corrupted=false
2040: for ac_var in $ac_precious_vars; do
2041: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2042: eval ac_new_set=\$ac_env_${ac_var}_set
2043: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2044: eval ac_new_val=\$ac_env_${ac_var}_value
2045: case $ac_old_set,$ac_new_set in
2046: set,)
2047: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2048: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2049: ac_cache_corrupted=: ;;
2050: ,set)
2051: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2052: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2053: ac_cache_corrupted=: ;;
2054: ,);;
2055: *)
2056: if test "x$ac_old_val" != "x$ac_new_val"; then
2057: # differences in whitespace do not lead to failure.
2058: ac_old_val_w=`echo x $ac_old_val`
2059: ac_new_val_w=`echo x $ac_new_val`
2060: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2061: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2062: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2063: ac_cache_corrupted=:
2064: else
2065: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2066: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2067: eval $ac_var=\$ac_old_val
2068: fi
2069: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2070: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2071: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2072: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2073: fi;;
2074: esac
2075: # Pass precious variables to config.status.
2076: if test "$ac_new_set" = set; then
2077: case $ac_new_val in
2078: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2079: *) ac_arg=$ac_var=$ac_new_val ;;
2080: esac
2081: case " $ac_configure_args " in
2082: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2083: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2084: esac
1.9 ohara 2085: fi
1.10 ohara 2086: done
2087: if $ac_cache_corrupted; then
2088: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2089: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2090: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2091: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2092: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2093: fi
2094: ## -------------------- ##
2095: ## Main body of script. ##
2096: ## -------------------- ##
1.9 ohara 2097:
1.10 ohara 2098: ac_ext=c
2099: ac_cpp='$CPP $CPPFLAGS'
2100: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2101: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2102: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.9 ohara 2103:
2104:
2105:
1.10 ohara 2106: am__api_version='1.11'
1.9 ohara 2107:
1.10 ohara 2108: ac_aux_dir=
2109: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2110: if test -f "$ac_dir/install-sh"; then
2111: ac_aux_dir=$ac_dir
2112: ac_install_sh="$ac_aux_dir/install-sh -c"
2113: break
2114: elif test -f "$ac_dir/install.sh"; then
2115: ac_aux_dir=$ac_dir
2116: ac_install_sh="$ac_aux_dir/install.sh -c"
2117: break
2118: elif test -f "$ac_dir/shtool"; then
2119: ac_aux_dir=$ac_dir
2120: ac_install_sh="$ac_aux_dir/shtool install -c"
2121: break
2122: fi
2123: done
2124: if test -z "$ac_aux_dir"; then
2125: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2126: fi
1.9 ohara 2127:
1.10 ohara 2128: # These three variables are undocumented and unsupported,
2129: # and are intended to be withdrawn in a future Autoconf release.
2130: # They can cause serious problems if a builder's source tree is in a directory
2131: # whose full name contains unusual characters.
2132: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2133: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2134: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1.9 ohara 2135:
2136:
1.10 ohara 2137: # Find a good install program. We prefer a C program (faster),
2138: # so one script is as good as another. But avoid the broken or
2139: # incompatible versions:
2140: # SysV /etc/install, /usr/sbin/install
2141: # SunOS /usr/etc/install
2142: # IRIX /sbin/install
2143: # AIX /bin/install
2144: # AmigaOS /C/install, which installs bootblocks on floppy discs
2145: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2146: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2147: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2148: # OS/2's system install, which has a completely different semantic
2149: # ./install, which can be erroneously created by make from ./install.sh.
2150: # Reject install programs that cannot install multiple files.
2151: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2152: $as_echo_n "checking for a BSD-compatible install... " >&6; }
2153: if test -z "$INSTALL"; then
2154: if ${ac_cv_path_install+:} false; then :
2155: $as_echo_n "(cached) " >&6
2156: else
2157: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2158: for as_dir in $PATH
2159: do
2160: IFS=$as_save_IFS
2161: test -z "$as_dir" && as_dir=.
2162: # Account for people who put trailing slashes in PATH elements.
2163: case $as_dir/ in #((
2164: ./ | .// | /[cC]/* | \
2165: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2166: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2167: /usr/ucb/* ) ;;
2168: *)
2169: # OSF1 and SCO ODT 3.0 have their own names for install.
2170: # Don't use installbsd from OSF since it installs stuff as root
2171: # by default.
2172: for ac_prog in ginstall scoinst install; do
2173: for ac_exec_ext in '' $ac_executable_extensions; do
2174: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2175: if test $ac_prog = install &&
2176: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2177: # AIX install. It has an incompatible calling convention.
2178: :
2179: elif test $ac_prog = install &&
2180: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2181: # program-specific install script used by HP pwplus--don't use.
2182: :
2183: else
2184: rm -rf conftest.one conftest.two conftest.dir
2185: echo one > conftest.one
2186: echo two > conftest.two
2187: mkdir conftest.dir
2188: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2189: test -s conftest.one && test -s conftest.two &&
2190: test -s conftest.dir/conftest.one &&
2191: test -s conftest.dir/conftest.two
2192: then
2193: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2194: break 3
2195: fi
1.9 ohara 2196: fi
2197: fi
1.10 ohara 2198: done
2199: done
2200: ;;
2201: esac
1.9 ohara 2202:
1.10 ohara 2203: done
2204: IFS=$as_save_IFS
1.9 ohara 2205:
1.10 ohara 2206: rm -rf conftest.one conftest.two conftest.dir
1.9 ohara 2207:
2208: fi
1.10 ohara 2209: if test "${ac_cv_path_install+set}" = set; then
2210: INSTALL=$ac_cv_path_install
2211: else
2212: # As a last resort, use the slow shell script. Don't cache a
2213: # value for INSTALL within a source directory, because that will
2214: # break other packages using the cache if that directory is
2215: # removed, or if the value is a relative name.
2216: INSTALL=$ac_install_sh
2217: fi
1.9 ohara 2218: fi
1.10 ohara 2219: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2220: $as_echo "$INSTALL" >&6; }
1.9 ohara 2221:
1.10 ohara 2222: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2223: # It thinks the first close brace ends the variable substitution.
2224: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1.9 ohara 2225:
1.10 ohara 2226: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.9 ohara 2227:
1.10 ohara 2228: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1.9 ohara 2229:
1.10 ohara 2230: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2231: $as_echo_n "checking whether build environment is sane... " >&6; }
2232: # Just in case
2233: sleep 1
2234: echo timestamp > conftest.file
2235: # Reject unsafe characters in $srcdir or the absolute working directory
2236: # name. Accept space and tab only in the latter.
2237: am_lf='
2238: '
2239: case `pwd` in
2240: *[\\\"\#\$\&\'\`$am_lf]*)
2241: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2242: esac
2243: case $srcdir in
2244: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2245: as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
1.9 ohara 2246: esac
2247:
1.10 ohara 2248: # Do `set' in a subshell so we don't clobber the current shell's
2249: # arguments. Must try -L first in case configure is actually a
2250: # symlink; some systems play weird games with the mod time of symlinks
2251: # (eg FreeBSD returns the mod time of the symlink's containing
2252: # directory).
2253: if (
2254: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2255: if test "$*" = "X"; then
2256: # -L didn't work.
2257: set X `ls -t "$srcdir/configure" conftest.file`
2258: fi
2259: rm -f conftest.file
2260: if test "$*" != "X $srcdir/configure conftest.file" \
2261: && test "$*" != "X conftest.file $srcdir/configure"; then
1.9 ohara 2262:
1.10 ohara 2263: # If neither matched, then we have a broken ls. This can happen
2264: # if, for instance, CONFIG_SHELL is bash and it inherits a
2265: # broken ls alias from the environment. This has actually
2266: # happened. Such a system could not be considered "sane".
2267: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2268: alias in your environment" "$LINENO" 5
2269: fi
1.9 ohara 2270:
1.10 ohara 2271: test "$2" = conftest.file
2272: )
2273: then
2274: # Ok.
2275: :
2276: else
2277: as_fn_error $? "newly created file is older than distributed files!
2278: Check your system clock" "$LINENO" 5
2279: fi
2280: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2281: $as_echo "yes" >&6; }
2282: test "$program_prefix" != NONE &&
2283: program_transform_name="s&^&$program_prefix&;$program_transform_name"
2284: # Use a double $ so make ignores it.
2285: test "$program_suffix" != NONE &&
2286: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2287: # Double any \ or $.
2288: # By default was `s,x,x', remove it if useless.
2289: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2290: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1.9 ohara 2291:
1.10 ohara 2292: # expand $ac_aux_dir to an absolute path
2293: am_aux_dir=`cd $ac_aux_dir && pwd`
1.9 ohara 2294:
1.10 ohara 2295: if test x"${MISSING+set}" != xset; then
2296: case $am_aux_dir in
2297: *\ * | *\ *)
2298: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2299: *)
2300: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2301: esac
2302: fi
2303: # Use eval to expand $SHELL
2304: if eval "$MISSING --run true"; then
2305: am_missing_run="$MISSING --run "
2306: else
2307: am_missing_run=
2308: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2309: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2310: fi
1.9 ohara 2311:
1.10 ohara 2312: if test x"${install_sh}" != xset; then
2313: case $am_aux_dir in
2314: *\ * | *\ *)
2315: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2316: *)
2317: install_sh="\${SHELL} $am_aux_dir/install-sh"
2318: esac
2319: fi
1.9 ohara 2320:
1.10 ohara 2321: # Installed binaries are usually stripped using `strip' when the user
2322: # run `make install-strip'. However `strip' might not be the right
2323: # tool to use in cross-compilation environments, therefore Automake
2324: # will honor the `STRIP' environment variable to overrule this program.
2325: if test "$cross_compiling" != no; then
2326: if test -n "$ac_tool_prefix"; then
2327: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2328: set dummy ${ac_tool_prefix}strip; ac_word=$2
2329: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2330: $as_echo_n "checking for $ac_word... " >&6; }
2331: if ${ac_cv_prog_STRIP+:} false; then :
2332: $as_echo_n "(cached) " >&6
1.9 ohara 2333: else
1.10 ohara 2334: if test -n "$STRIP"; then
2335: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1.9 ohara 2336: else
2337: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338: for as_dir in $PATH
2339: do
2340: IFS=$as_save_IFS
2341: test -z "$as_dir" && as_dir=.
1.10 ohara 2342: for ac_exec_ext in '' $ac_executable_extensions; do
1.9 ohara 2343: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.10 ohara 2344: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2345: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.9 ohara 2346: break 2
2347: fi
2348: done
1.10 ohara 2349: done
1.9 ohara 2350: IFS=$as_save_IFS
2351:
2352: fi
2353: fi
1.10 ohara 2354: STRIP=$ac_cv_prog_STRIP
2355: if test -n "$STRIP"; then
2356: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2357: $as_echo "$STRIP" >&6; }
1.9 ohara 2358: else
1.10 ohara 2359: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2360: $as_echo "no" >&6; }
1.9 ohara 2361: fi
2362:
2363:
2364: fi
1.10 ohara 2365: if test -z "$ac_cv_prog_STRIP"; then
2366: ac_ct_STRIP=$STRIP
2367: # Extract the first word of "strip", so it can be a program name with args.
2368: set dummy strip; ac_word=$2
2369: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2370: $as_echo_n "checking for $ac_word... " >&6; }
2371: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2372: $as_echo_n "(cached) " >&6
1.9 ohara 2373: else
1.10 ohara 2374: if test -n "$ac_ct_STRIP"; then
2375: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.9 ohara 2376: else
2377: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378: for as_dir in $PATH
2379: do
2380: IFS=$as_save_IFS
2381: test -z "$as_dir" && as_dir=.
1.10 ohara 2382: for ac_exec_ext in '' $ac_executable_extensions; do
1.9 ohara 2383: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.10 ohara 2384: ac_cv_prog_ac_ct_STRIP="strip"
2385: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.9 ohara 2386: break 2
2387: fi
2388: done
1.10 ohara 2389: done
1.9 ohara 2390: IFS=$as_save_IFS
2391:
2392: fi
2393: fi
1.10 ohara 2394: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2395: if test -n "$ac_ct_STRIP"; then
2396: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2397: $as_echo "$ac_ct_STRIP" >&6; }
1.9 ohara 2398: else
1.10 ohara 2399: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2400: $as_echo "no" >&6; }
1.9 ohara 2401: fi
2402:
1.10 ohara 2403: if test "x$ac_ct_STRIP" = x; then
2404: STRIP=":"
1.9 ohara 2405: else
2406: case $cross_compiling:$ac_tool_warned in
2407: yes:)
1.10 ohara 2408: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2409: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.9 ohara 2410: ac_tool_warned=yes ;;
2411: esac
1.10 ohara 2412: STRIP=$ac_ct_STRIP
1.9 ohara 2413: fi
2414: else
1.10 ohara 2415: STRIP="$ac_cv_prog_STRIP"
1.9 ohara 2416: fi
2417:
2418: fi
1.10 ohara 2419: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1.9 ohara 2420:
1.10 ohara 2421: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2422: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2423: if test -z "$MKDIR_P"; then
2424: if ${ac_cv_path_mkdir+:} false; then :
2425: $as_echo_n "(cached) " >&6
1.9 ohara 2426: else
1.10 ohara 2427: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1.9 ohara 2429: do
2430: IFS=$as_save_IFS
2431: test -z "$as_dir" && as_dir=.
1.10 ohara 2432: for ac_prog in mkdir gmkdir; do
2433: for ac_exec_ext in '' $ac_executable_extensions; do
2434: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2435: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2436: 'mkdir (GNU coreutils) '* | \
2437: 'mkdir (coreutils) '* | \
2438: 'mkdir (fileutils) '4.1*)
2439: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2440: break 3;;
2441: esac
2442: done
2443: done
2444: done
1.9 ohara 2445: IFS=$as_save_IFS
2446:
2447: fi
2448:
1.10 ohara 2449: test -d ./--version && rmdir ./--version
2450: if test "${ac_cv_path_mkdir+set}" = set; then
2451: MKDIR_P="$ac_cv_path_mkdir -p"
1.9 ohara 2452: else
1.10 ohara 2453: # As a last resort, use the slow shell script. Don't cache a
2454: # value for MKDIR_P within a source directory, because that will
2455: # break other packages using the cache if that directory is
2456: # removed, or if the value is a relative name.
2457: MKDIR_P="$ac_install_sh -d"
1.9 ohara 2458: fi
2459: fi
1.10 ohara 2460: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2461: $as_echo "$MKDIR_P" >&6; }
2462:
2463: mkdir_p="$MKDIR_P"
2464: case $mkdir_p in
2465: [\\/$]* | ?:[\\/]*) ;;
2466: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2467: esac
1.9 ohara 2468:
1.10 ohara 2469: for ac_prog in gawk mawk nawk awk
2470: do
2471: # Extract the first word of "$ac_prog", so it can be a program name with args.
2472: set dummy $ac_prog; ac_word=$2
2473: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2474: $as_echo_n "checking for $ac_word... " >&6; }
2475: if ${ac_cv_prog_AWK+:} false; then :
2476: $as_echo_n "(cached) " >&6
1.9 ohara 2477: else
1.10 ohara 2478: if test -n "$AWK"; then
2479: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1.9 ohara 2480: else
2481: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482: for as_dir in $PATH
2483: do
2484: IFS=$as_save_IFS
2485: test -z "$as_dir" && as_dir=.
1.10 ohara 2486: for ac_exec_ext in '' $ac_executable_extensions; do
1.9 ohara 2487: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.10 ohara 2488: ac_cv_prog_AWK="$ac_prog"
2489: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.9 ohara 2490: break 2
2491: fi
2492: done
1.10 ohara 2493: done
1.9 ohara 2494: IFS=$as_save_IFS
2495:
2496: fi
2497: fi
1.10 ohara 2498: AWK=$ac_cv_prog_AWK
2499: if test -n "$AWK"; then
2500: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2501: $as_echo "$AWK" >&6; }
1.9 ohara 2502: else
1.10 ohara 2503: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2504: $as_echo "no" >&6; }
1.9 ohara 2505: fi
2506:
2507:
1.10 ohara 2508: test -n "$AWK" && break
1.9 ohara 2509: done
2510:
1.10 ohara 2511: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2512: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2513: set x ${MAKE-make}
2514: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2515: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2516: $as_echo_n "(cached) " >&6
2517: else
2518: cat >conftest.make <<\_ACEOF
2519: SHELL = /bin/sh
2520: all:
2521: @echo '@@@%%%=$(MAKE)=@@@%%%'
2522: _ACEOF
2523: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2524: case `${MAKE-make} -f conftest.make 2>/dev/null` in
2525: *@@@%%%=?*=@@@%%%*)
2526: eval ac_cv_prog_make_${ac_make}_set=yes;;
2527: *)
2528: eval ac_cv_prog_make_${ac_make}_set=no;;
2529: esac
2530: rm -f conftest.make
1.9 ohara 2531: fi
1.10 ohara 2532: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2533: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2534: $as_echo "yes" >&6; }
2535: SET_MAKE=
2536: else
2537: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2538: $as_echo "no" >&6; }
2539: SET_MAKE="MAKE=${MAKE-make}"
1.9 ohara 2540: fi
1.10 ohara 2541:
2542: rm -rf .tst 2>/dev/null
2543: mkdir .tst 2>/dev/null
2544: if test -d .tst; then
2545: am__leading_dot=.
1.9 ohara 2546: else
1.10 ohara 2547: am__leading_dot=_
2548: fi
2549: rmdir .tst 2>/dev/null
2550:
2551: if test "`cd $srcdir && pwd`" != "`pwd`"; then
2552: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2553: # is not polluted with repeated "-I."
2554: am__isrc=' -I$(srcdir)'
2555: # test to see if srcdir already configured
2556: if test -f $srcdir/config.status; then
2557: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2558: fi
1.9 ohara 2559: fi
2560:
1.10 ohara 2561: # test whether we have cygpath
2562: if test -z "$CYGPATH_W"; then
2563: if (cygpath --version) >/dev/null 2>/dev/null; then
2564: CYGPATH_W='cygpath -w'
1.9 ohara 2565: else
1.10 ohara 2566: CYGPATH_W=echo
1.9 ohara 2567: fi
2568: fi
2569:
2570:
1.10 ohara 2571: # Define the identity of the package.
2572: PACKAGE=ox_toolkit
2573: VERSION=20040628
2574:
2575:
2576: cat >>confdefs.h <<_ACEOF
2577: #define PACKAGE "$PACKAGE"
2578: _ACEOF
2579:
2580:
2581: cat >>confdefs.h <<_ACEOF
2582: #define VERSION "$VERSION"
2583: _ACEOF
2584:
2585: # Some tools Automake needs.
2586:
2587: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2588:
2589:
2590: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2591:
2592:
2593: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2594:
1.9 ohara 2595:
1.10 ohara 2596: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1.9 ohara 2597:
2598:
1.10 ohara 2599: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.9 ohara 2600:
1.10 ohara 2601: # We need awk for the "check" target. The system "awk" is bad on
2602: # some platforms.
2603: # Always define AMTAR for backward compatibility.
1.9 ohara 2604:
1.10 ohara 2605: AMTAR=${AMTAR-"${am_missing_run}tar"}
1.9 ohara 2606:
1.10 ohara 2607: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1.9 ohara 2608:
2609:
2610:
2611:
2612:
2613:
1.10 ohara 2614: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2615: $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2616: # Check whether --enable-maintainer-mode was given.
2617: if test "${enable_maintainer_mode+set}" = set; then :
2618: enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2619: else
2620: USE_MAINTAINER_MODE=no
1.9 ohara 2621: fi
2622:
1.10 ohara 2623: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2624: $as_echo "$USE_MAINTAINER_MODE" >&6; }
2625: if test $USE_MAINTAINER_MODE = yes; then
2626: MAINTAINER_MODE_TRUE=
2627: MAINTAINER_MODE_FALSE='#'
1.9 ohara 2628: else
1.10 ohara 2629: MAINTAINER_MODE_TRUE='#'
2630: MAINTAINER_MODE_FALSE=
1.9 ohara 2631: fi
2632:
1.10 ohara 2633: MAINT=$MAINTAINER_MODE_TRUE
2634:
2635:
2636: # Make sure we can run config.sub.
2637: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2638: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2639:
2640: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2641: $as_echo_n "checking build system type... " >&6; }
2642: if ${ac_cv_build+:} false; then :
2643: $as_echo_n "(cached) " >&6
2644: else
2645: ac_build_alias=$build_alias
2646: test "x$ac_build_alias" = x &&
2647: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2648: test "x$ac_build_alias" = x &&
2649: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2650: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2651: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2652:
1.9 ohara 2653: fi
1.10 ohara 2654: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2655: $as_echo "$ac_cv_build" >&6; }
2656: case $ac_cv_build in
2657: *-*-*) ;;
2658: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1.9 ohara 2659: esac
1.10 ohara 2660: build=$ac_cv_build
2661: ac_save_IFS=$IFS; IFS='-'
2662: set x $ac_cv_build
2663: shift
2664: build_cpu=$1
2665: build_vendor=$2
2666: shift; shift
2667: # Remember, the first character of IFS is used to create $*,
2668: # except with old shells:
2669: build_os=$*
2670: IFS=$ac_save_IFS
2671: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1.9 ohara 2672:
2673:
1.10 ohara 2674: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2675: $as_echo_n "checking host system type... " >&6; }
2676: if ${ac_cv_host+:} false; then :
2677: $as_echo_n "(cached) " >&6
2678: else
2679: if test "x$host_alias" = x; then
2680: ac_cv_host=$ac_cv_build
2681: else
2682: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2683: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.9 ohara 2684: fi
2685:
1.10 ohara 2686: fi
2687: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2688: $as_echo "$ac_cv_host" >&6; }
2689: case $ac_cv_host in
2690: *-*-*) ;;
2691: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2692: esac
2693: host=$ac_cv_host
2694: ac_save_IFS=$IFS; IFS='-'
2695: set x $ac_cv_host
2696: shift
2697: host_cpu=$1
2698: host_vendor=$2
2699: shift; shift
2700: # Remember, the first character of IFS is used to create $*,
2701: # except with old shells:
2702: host_os=$*
2703: IFS=$ac_save_IFS
2704: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.9 ohara 2705:
2706:
1.10 ohara 2707: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2708: $as_echo_n "checking target system type... " >&6; }
2709: if ${ac_cv_target+:} false; then :
2710: $as_echo_n "(cached) " >&6
2711: else
2712: if test "x$target_alias" = x; then
2713: ac_cv_target=$ac_cv_host
1.9 ohara 2714: else
1.10 ohara 2715: ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2716: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2717: fi
2718:
1.9 ohara 2719: fi
1.10 ohara 2720: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2721: $as_echo "$ac_cv_target" >&6; }
2722: case $ac_cv_target in
2723: *-*-*) ;;
2724: *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2725: esac
2726: target=$ac_cv_target
2727: ac_save_IFS=$IFS; IFS='-'
2728: set x $ac_cv_target
2729: shift
2730: target_cpu=$1
2731: target_vendor=$2
2732: shift; shift
2733: # Remember, the first character of IFS is used to create $*,
2734: # except with old shells:
2735: target_os=$*
2736: IFS=$ac_save_IFS
2737: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2738:
1.9 ohara 2739:
1.10 ohara 2740: # The aliases save the names the user supplied, while $host etc.
2741: # will get canonicalized.
2742: test -n "$target_alias" &&
2743: test "$program_prefix$program_suffix$program_transform_name" = \
2744: NONENONEs,x,x, &&
2745: program_prefix=${target_alias}-
1.9 ohara 2746:
2747: ac_ext=c
2748: ac_cpp='$CPP $CPPFLAGS'
2749: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2750: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2751: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.10 ohara 2752: if test -n "$ac_tool_prefix"; then
2753: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2754: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2755: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2756: $as_echo_n "checking for $ac_word... " >&6; }
2757: if ${ac_cv_prog_CC+:} false; then :
2758: $as_echo_n "(cached) " >&6
2759: else
2760: if test -n "$CC"; then
2761: ac_cv_prog_CC="$CC" # Let the user override the test.
2762: else
2763: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764: for as_dir in $PATH
2765: do
2766: IFS=$as_save_IFS
2767: test -z "$as_dir" && as_dir=.
2768: for ac_exec_ext in '' $ac_executable_extensions; do
2769: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2770: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2771: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2772: break 2
2773: fi
2774: done
2775: done
2776: IFS=$as_save_IFS
1.9 ohara 2777:
1.10 ohara 2778: fi
2779: fi
2780: CC=$ac_cv_prog_CC
2781: if test -n "$CC"; then
2782: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2783: $as_echo "$CC" >&6; }
2784: else
2785: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2786: $as_echo "no" >&6; }
2787: fi
1.9 ohara 2788:
2789:
1.10 ohara 2790: fi
2791: if test -z "$ac_cv_prog_CC"; then
2792: ac_ct_CC=$CC
2793: # Extract the first word of "gcc", so it can be a program name with args.
2794: set dummy gcc; ac_word=$2
2795: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2796: $as_echo_n "checking for $ac_word... " >&6; }
2797: if ${ac_cv_prog_ac_ct_CC+:} false; then :
2798: $as_echo_n "(cached) " >&6
2799: else
2800: if test -n "$ac_ct_CC"; then
2801: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2802: else
2803: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804: for as_dir in $PATH
2805: do
2806: IFS=$as_save_IFS
2807: test -z "$as_dir" && as_dir=.
2808: for ac_exec_ext in '' $ac_executable_extensions; do
2809: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2810: ac_cv_prog_ac_ct_CC="gcc"
2811: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2812: break 2
2813: fi
2814: done
2815: done
2816: IFS=$as_save_IFS
1.9 ohara 2817:
1.10 ohara 2818: fi
2819: fi
2820: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2821: if test -n "$ac_ct_CC"; then
2822: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2823: $as_echo "$ac_ct_CC" >&6; }
2824: else
2825: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826: $as_echo "no" >&6; }
2827: fi
1.9 ohara 2828:
1.10 ohara 2829: if test "x$ac_ct_CC" = x; then
2830: CC=""
2831: else
2832: case $cross_compiling:$ac_tool_warned in
2833: yes:)
2834: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2835: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2836: ac_tool_warned=yes ;;
2837: esac
2838: CC=$ac_ct_CC
2839: fi
2840: else
2841: CC="$ac_cv_prog_CC"
2842: fi
1.9 ohara 2843:
1.10 ohara 2844: if test -z "$CC"; then
2845: if test -n "$ac_tool_prefix"; then
2846: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2847: set dummy ${ac_tool_prefix}cc; ac_word=$2
2848: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2849: $as_echo_n "checking for $ac_word... " >&6; }
2850: if ${ac_cv_prog_CC+:} false; then :
2851: $as_echo_n "(cached) " >&6
2852: else
2853: if test -n "$CC"; then
2854: ac_cv_prog_CC="$CC" # Let the user override the test.
2855: else
2856: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857: for as_dir in $PATH
2858: do
2859: IFS=$as_save_IFS
2860: test -z "$as_dir" && as_dir=.
2861: for ac_exec_ext in '' $ac_executable_extensions; do
2862: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2863: ac_cv_prog_CC="${ac_tool_prefix}cc"
2864: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2865: break 2
2866: fi
2867: done
2868: done
2869: IFS=$as_save_IFS
1.9 ohara 2870:
1.10 ohara 2871: fi
2872: fi
2873: CC=$ac_cv_prog_CC
2874: if test -n "$CC"; then
2875: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2876: $as_echo "$CC" >&6; }
2877: else
2878: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2879: $as_echo "no" >&6; }
2880: fi
1.9 ohara 2881:
2882:
1.10 ohara 2883: fi
2884: fi
2885: if test -z "$CC"; then
2886: # Extract the first word of "cc", so it can be a program name with args.
2887: set dummy cc; ac_word=$2
2888: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2889: $as_echo_n "checking for $ac_word... " >&6; }
2890: if ${ac_cv_prog_CC+:} false; then :
2891: $as_echo_n "(cached) " >&6
2892: else
2893: if test -n "$CC"; then
2894: ac_cv_prog_CC="$CC" # Let the user override the test.
1.9 ohara 2895: else
1.10 ohara 2896: ac_prog_rejected=no
2897: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898: for as_dir in $PATH
2899: do
2900: IFS=$as_save_IFS
2901: test -z "$as_dir" && as_dir=.
2902: for ac_exec_ext in '' $ac_executable_extensions; do
2903: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2904: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2905: ac_prog_rejected=yes
2906: continue
1.9 ohara 2907: fi
1.10 ohara 2908: ac_cv_prog_CC="cc"
2909: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2910: break 2
2911: fi
2912: done
2913: done
2914: IFS=$as_save_IFS
1.9 ohara 2915:
1.10 ohara 2916: if test $ac_prog_rejected = yes; then
2917: # We found a bogon in the path, so make sure we never use it.
2918: set dummy $ac_cv_prog_CC
2919: shift
2920: if test $# != 0; then
2921: # We chose a different compiler from the bogus one.
2922: # However, it has the same basename, so the bogon will be chosen
2923: # first if we set CC to just the basename; use the full file name.
2924: shift
2925: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2926: fi
1.9 ohara 2927: fi
1.10 ohara 2928: fi
2929: fi
2930: CC=$ac_cv_prog_CC
2931: if test -n "$CC"; then
2932: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2933: $as_echo "$CC" >&6; }
1.9 ohara 2934: else
1.10 ohara 2935: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936: $as_echo "no" >&6; }
1.9 ohara 2937: fi
2938:
1.10 ohara 2939:
1.9 ohara 2940: fi
1.10 ohara 2941: if test -z "$CC"; then
2942: if test -n "$ac_tool_prefix"; then
2943: for ac_prog in cl.exe
2944: do
2945: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2946: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2947: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948: $as_echo_n "checking for $ac_word... " >&6; }
2949: if ${ac_cv_prog_CC+:} false; then :
2950: $as_echo_n "(cached) " >&6
2951: else
2952: if test -n "$CC"; then
2953: ac_cv_prog_CC="$CC" # Let the user override the test.
2954: else
2955: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956: for as_dir in $PATH
2957: do
2958: IFS=$as_save_IFS
2959: test -z "$as_dir" && as_dir=.
2960: for ac_exec_ext in '' $ac_executable_extensions; do
2961: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2962: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2963: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2964: break 2
2965: fi
2966: done
2967: done
2968: IFS=$as_save_IFS
1.9 ohara 2969:
1.10 ohara 2970: fi
2971: fi
2972: CC=$ac_cv_prog_CC
2973: if test -n "$CC"; then
2974: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2975: $as_echo "$CC" >&6; }
2976: else
2977: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978: $as_echo "no" >&6; }
2979: fi
1.9 ohara 2980:
2981:
1.10 ohara 2982: test -n "$CC" && break
2983: done
2984: fi
2985: if test -z "$CC"; then
2986: ac_ct_CC=$CC
2987: for ac_prog in cl.exe
2988: do
2989: # Extract the first word of "$ac_prog", so it can be a program name with args.
2990: set dummy $ac_prog; ac_word=$2
2991: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2992: $as_echo_n "checking for $ac_word... " >&6; }
2993: if ${ac_cv_prog_ac_ct_CC+:} false; then :
2994: $as_echo_n "(cached) " >&6
2995: else
2996: if test -n "$ac_ct_CC"; then
2997: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2998: else
2999: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000: for as_dir in $PATH
3001: do
3002: IFS=$as_save_IFS
3003: test -z "$as_dir" && as_dir=.
3004: for ac_exec_ext in '' $ac_executable_extensions; do
3005: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3006: ac_cv_prog_ac_ct_CC="$ac_prog"
3007: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3008: break 2
3009: fi
3010: done
3011: done
3012: IFS=$as_save_IFS
1.9 ohara 3013:
1.10 ohara 3014: fi
3015: fi
3016: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3017: if test -n "$ac_ct_CC"; then
3018: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3019: $as_echo "$ac_ct_CC" >&6; }
3020: else
3021: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022: $as_echo "no" >&6; }
3023: fi
1.9 ohara 3024:
3025:
1.10 ohara 3026: test -n "$ac_ct_CC" && break
3027: done
1.9 ohara 3028:
1.10 ohara 3029: if test "x$ac_ct_CC" = x; then
3030: CC=""
1.9 ohara 3031: else
1.10 ohara 3032: case $cross_compiling:$ac_tool_warned in
3033: yes:)
3034: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3035: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3036: ac_tool_warned=yes ;;
3037: esac
3038: CC=$ac_ct_CC
3039: fi
3040: fi
1.9 ohara 3041:
1.10 ohara 3042: fi
1.9 ohara 3043:
3044:
1.10 ohara 3045: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3046: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3047: as_fn_error $? "no acceptable C compiler found in \$PATH
3048: See \`config.log' for more details" "$LINENO" 5; }
1.9 ohara 3049:
1.10 ohara 3050: # Provide some information about the compiler.
3051: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3052: set X $ac_compile
3053: ac_compiler=$2
3054: for ac_option in --version -v -V -qversion; do
3055: { { ac_try="$ac_compiler $ac_option >&5"
3056: case "(($ac_try" in
3057: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058: *) ac_try_echo=$ac_try;;
3059: esac
3060: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3061: $as_echo "$ac_try_echo"; } >&5
3062: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3063: ac_status=$?
3064: if test -s conftest.err; then
3065: sed '10a\
3066: ... rest of stderr output deleted ...
3067: 10q' conftest.err >conftest.er1
3068: cat conftest.er1 >&5
3069: fi
3070: rm -f conftest.er1 conftest.err
3071: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3072: test $ac_status = 0; }
3073: done
1.9 ohara 3074:
1.10 ohara 3075: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3076: /* end confdefs.h. */
1.9 ohara 3077:
1.10 ohara 3078: int
3079: main ()
3080: {
1.9 ohara 3081:
1.10 ohara 3082: ;
3083: return 0;
3084: }
3085: _ACEOF
3086: ac_clean_files_save=$ac_clean_files
3087: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3088: # Try to create an executable without -o first, disregard a.out.
3089: # It will help us diagnose broken compilers, and finding out an intuition
3090: # of exeext.
3091: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3092: $as_echo_n "checking whether the C compiler works... " >&6; }
3093: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.9 ohara 3094:
1.10 ohara 3095: # The possible output files:
3096: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
1.9 ohara 3097:
1.10 ohara 3098: ac_rmfiles=
3099: for ac_file in $ac_files
3100: do
3101: case $ac_file in
3102: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3103: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3104: esac
3105: done
3106: rm -f $ac_rmfiles
1.9 ohara 3107:
1.10 ohara 3108: if { { ac_try="$ac_link_default"
3109: case "(($ac_try" in
3110: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111: *) ac_try_echo=$ac_try;;
3112: esac
3113: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3114: $as_echo "$ac_try_echo"; } >&5
3115: (eval "$ac_link_default") 2>&5
3116: ac_status=$?
3117: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3118: test $ac_status = 0; }; then :
3119: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3120: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3121: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3122: # so that the user can short-circuit this test for compilers unknown to
3123: # Autoconf.
3124: for ac_file in $ac_files ''
3125: do
3126: test -f "$ac_file" || continue
3127: case $ac_file in
3128: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3129: ;;
3130: [ab].out )
3131: # We found the default executable, but exeext='' is most
3132: # certainly right.
3133: break;;
3134: *.* )
3135: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3136: then :; else
3137: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3138: fi
3139: # We set ac_cv_exeext here because the later test for it is not
3140: # safe: cross compilers may not add the suffix if given an `-o'
3141: # argument, so we may need to know it at that point already.
3142: # Even if this section looks crufty: it has the advantage of
3143: # actually working.
3144: break;;
3145: * )
3146: break;;
3147: esac
3148: done
3149: test "$ac_cv_exeext" = no && ac_cv_exeext=
1.9 ohara 3150:
1.10 ohara 3151: else
3152: ac_file=''
3153: fi
3154: if test -z "$ac_file"; then :
3155: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3156: $as_echo "no" >&6; }
3157: $as_echo "$as_me: failed program was:" >&5
3158: sed 's/^/| /' conftest.$ac_ext >&5
3159:
3160: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3161: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3162: as_fn_error 77 "C compiler cannot create executables
3163: See \`config.log' for more details" "$LINENO" 5; }
3164: else
3165: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3166: $as_echo "yes" >&6; }
3167: fi
3168: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3169: $as_echo_n "checking for C compiler default output file name... " >&6; }
3170: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3171: $as_echo "$ac_file" >&6; }
3172: ac_exeext=$ac_cv_exeext
1.9 ohara 3173:
1.10 ohara 3174: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3175: ac_clean_files=$ac_clean_files_save
3176: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3177: $as_echo_n "checking for suffix of executables... " >&6; }
3178: if { { ac_try="$ac_link"
3179: case "(($ac_try" in
3180: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181: *) ac_try_echo=$ac_try;;
3182: esac
3183: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3184: $as_echo "$ac_try_echo"; } >&5
3185: (eval "$ac_link") 2>&5
3186: ac_status=$?
3187: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3188: test $ac_status = 0; }; then :
3189: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3190: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3191: # work properly (i.e., refer to `conftest.exe'), while it won't with
3192: # `rm'.
3193: for ac_file in conftest.exe conftest conftest.*; do
3194: test -f "$ac_file" || continue
3195: case $ac_file in
3196: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3197: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3198: break;;
3199: * ) break;;
3200: esac
3201: done
3202: else
3203: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3204: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3205: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3206: See \`config.log' for more details" "$LINENO" 5; }
3207: fi
3208: rm -f conftest conftest$ac_cv_exeext
3209: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3210: $as_echo "$ac_cv_exeext" >&6; }
1.9 ohara 3211:
1.10 ohara 3212: rm -f conftest.$ac_ext
3213: EXEEXT=$ac_cv_exeext
3214: ac_exeext=$EXEEXT
3215: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3216: /* end confdefs.h. */
3217: #include <stdio.h>
3218: int
3219: main ()
3220: {
3221: FILE *f = fopen ("conftest.out", "w");
3222: return ferror (f) || fclose (f) != 0;
1.9 ohara 3223:
1.10 ohara 3224: ;
3225: return 0;
3226: }
3227: _ACEOF
3228: ac_clean_files="$ac_clean_files conftest.out"
3229: # Check that the compiler produces executables we can run. If not, either
3230: # the compiler is broken, or we cross compile.
3231: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3232: $as_echo_n "checking whether we are cross compiling... " >&6; }
3233: if test "$cross_compiling" != yes; then
3234: { { ac_try="$ac_link"
3235: case "(($ac_try" in
3236: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237: *) ac_try_echo=$ac_try;;
3238: esac
3239: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3240: $as_echo "$ac_try_echo"; } >&5
3241: (eval "$ac_link") 2>&5
3242: ac_status=$?
3243: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3244: test $ac_status = 0; }
3245: if { ac_try='./conftest$ac_cv_exeext'
3246: { { case "(($ac_try" in
3247: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248: *) ac_try_echo=$ac_try;;
3249: esac
3250: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3251: $as_echo "$ac_try_echo"; } >&5
3252: (eval "$ac_try") 2>&5
3253: ac_status=$?
3254: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3255: test $ac_status = 0; }; }; then
3256: cross_compiling=no
3257: else
3258: if test "$cross_compiling" = maybe; then
3259: cross_compiling=yes
3260: else
3261: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3262: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3263: as_fn_error $? "cannot run C compiled programs.
3264: If you meant to cross compile, use \`--host'.
3265: See \`config.log' for more details" "$LINENO" 5; }
3266: fi
1.9 ohara 3267: fi
1.10 ohara 3268: fi
3269: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3270: $as_echo "$cross_compiling" >&6; }
1.9 ohara 3271:
1.10 ohara 3272: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3273: ac_clean_files=$ac_clean_files_save
3274: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3275: $as_echo_n "checking for suffix of object files... " >&6; }
3276: if ${ac_cv_objext+:} false; then :
3277: $as_echo_n "(cached) " >&6
3278: else
3279: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3280: /* end confdefs.h. */
1.9 ohara 3281:
1.10 ohara 3282: int
3283: main ()
3284: {
1.9 ohara 3285:
1.10 ohara 3286: ;
3287: return 0;
3288: }
3289: _ACEOF
3290: rm -f conftest.o conftest.obj
3291: if { { ac_try="$ac_compile"
3292: case "(($ac_try" in
3293: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294: *) ac_try_echo=$ac_try;;
3295: esac
3296: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3297: $as_echo "$ac_try_echo"; } >&5
3298: (eval "$ac_compile") 2>&5
3299: ac_status=$?
3300: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3301: test $ac_status = 0; }; then :
3302: for ac_file in conftest.o conftest.obj conftest.*; do
3303: test -f "$ac_file" || continue;
3304: case $ac_file in
3305: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3306: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3307: break;;
3308: esac
3309: done
3310: else
3311: $as_echo "$as_me: failed program was:" >&5
3312: sed 's/^/| /' conftest.$ac_ext >&5
1.9 ohara 3313:
1.10 ohara 3314: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3315: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3316: as_fn_error $? "cannot compute suffix of object files: cannot compile
3317: See \`config.log' for more details" "$LINENO" 5; }
1.9 ohara 3318: fi
1.10 ohara 3319: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3320: fi
3321: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3322: $as_echo "$ac_cv_objext" >&6; }
3323: OBJEXT=$ac_cv_objext
3324: ac_objext=$OBJEXT
3325: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3326: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3327: if ${ac_cv_c_compiler_gnu+:} false; then :
3328: $as_echo_n "(cached) " >&6
3329: else
3330: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3331: /* end confdefs.h. */
3332:
3333: int
3334: main ()
3335: {
3336: #ifndef __GNUC__
3337: choke me
3338: #endif
1.9 ohara 3339:
1.10 ohara 3340: ;
3341: return 0;
3342: }
3343: _ACEOF
3344: if ac_fn_c_try_compile "$LINENO"; then :
3345: ac_compiler_gnu=yes
1.9 ohara 3346: else
1.10 ohara 3347: ac_compiler_gnu=no
1.9 ohara 3348: fi
1.10 ohara 3349: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3350: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.9 ohara 3351:
3352: fi
1.10 ohara 3353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3354: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3355: if test $ac_compiler_gnu = yes; then
3356: GCC=yes
3357: else
3358: GCC=
3359: fi
3360: ac_test_CFLAGS=${CFLAGS+set}
3361: ac_save_CFLAGS=$CFLAGS
3362: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3363: $as_echo_n "checking whether $CC accepts -g... " >&6; }
3364: if ${ac_cv_prog_cc_g+:} false; then :
3365: $as_echo_n "(cached) " >&6
1.9 ohara 3366: else
1.10 ohara 3367: ac_save_c_werror_flag=$ac_c_werror_flag
3368: ac_c_werror_flag=yes
3369: ac_cv_prog_cc_g=no
3370: CFLAGS="-g"
3371: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372: /* end confdefs.h. */
1.9 ohara 3373:
1.10 ohara 3374: int
3375: main ()
3376: {
1.9 ohara 3377:
1.10 ohara 3378: ;
3379: return 0;
3380: }
3381: _ACEOF
3382: if ac_fn_c_try_compile "$LINENO"; then :
3383: ac_cv_prog_cc_g=yes
1.9 ohara 3384: else
1.10 ohara 3385: CFLAGS=""
3386: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387: /* end confdefs.h. */
3388:
3389: int
3390: main ()
3391: {
1.9 ohara 3392:
1.10 ohara 3393: ;
3394: return 0;
3395: }
3396: _ACEOF
3397: if ac_fn_c_try_compile "$LINENO"; then :
1.9 ohara 3398:
3399: else
1.10 ohara 3400: ac_c_werror_flag=$ac_save_c_werror_flag
3401: CFLAGS="-g"
3402: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403: /* end confdefs.h. */
1.9 ohara 3404:
1.10 ohara 3405: int
3406: main ()
3407: {
1.9 ohara 3408:
1.10 ohara 3409: ;
3410: return 0;
3411: }
3412: _ACEOF
3413: if ac_fn_c_try_compile "$LINENO"; then :
3414: ac_cv_prog_cc_g=yes
3415: fi
3416: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3417: fi
3418: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9 ohara 3419: fi
1.10 ohara 3420: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3421: ac_c_werror_flag=$ac_save_c_werror_flag
3422: fi
3423: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3424: $as_echo "$ac_cv_prog_cc_g" >&6; }
3425: if test "$ac_test_CFLAGS" = set; then
3426: CFLAGS=$ac_save_CFLAGS
3427: elif test $ac_cv_prog_cc_g = yes; then
3428: if test "$GCC" = yes; then
3429: CFLAGS="-g -O2"
3430: else
3431: CFLAGS="-g"
1.9 ohara 3432: fi
3433: else
1.10 ohara 3434: if test "$GCC" = yes; then
3435: CFLAGS="-O2"
3436: else
3437: CFLAGS=
3438: fi
1.9 ohara 3439: fi
1.10 ohara 3440: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3441: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3442: if ${ac_cv_prog_cc_c89+:} false; then :
3443: $as_echo_n "(cached) " >&6
3444: else
3445: ac_cv_prog_cc_c89=no
3446: ac_save_CC=$CC
3447: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3448: /* end confdefs.h. */
3449: #include <stdarg.h>
3450: #include <stdio.h>
3451: #include <sys/types.h>
3452: #include <sys/stat.h>
3453: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3454: struct buf { int x; };
3455: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3456: static char *e (p, i)
3457: char **p;
3458: int i;
3459: {
3460: return p[i];
3461: }
3462: static char *f (char * (*g) (char **, int), char **p, ...)
3463: {
3464: char *s;
3465: va_list v;
3466: va_start (v,p);
3467: s = g (p, va_arg (v,int));
3468: va_end (v);
3469: return s;
3470: }
3471:
3472: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3473: function prototypes and stuff, but not '\xHH' hex character constants.
3474: These don't provoke an error unfortunately, instead are silently treated
3475: as 'x'. The following induces an error, until -std is added to get
3476: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3477: array size at least. It's necessary to write '\x00'==0 to get something
3478: that's true only with -std. */
3479: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.9 ohara 3480:
1.10 ohara 3481: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3482: inside strings and character constants. */
3483: #define FOO(x) 'x'
3484: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
1.9 ohara 3485:
1.10 ohara 3486: int test (int i, double x);
3487: struct s1 {int (*f) (int a);};
3488: struct s2 {int (*f) (double a);};
3489: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3490: int argc;
3491: char **argv;
3492: int
3493: main ()
3494: {
3495: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3496: ;
3497: return 0;
3498: }
3499: _ACEOF
3500: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3501: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3502: do
3503: CC="$ac_save_CC $ac_arg"
3504: if ac_fn_c_try_compile "$LINENO"; then :
3505: ac_cv_prog_cc_c89=$ac_arg
3506: fi
3507: rm -f core conftest.err conftest.$ac_objext
3508: test "x$ac_cv_prog_cc_c89" != "xno" && break
1.9 ohara 3509: done
1.10 ohara 3510: rm -f conftest.$ac_ext
3511: CC=$ac_save_CC
1.9 ohara 3512:
1.10 ohara 3513: fi
3514: # AC_CACHE_VAL
3515: case "x$ac_cv_prog_cc_c89" in
3516: x)
3517: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3518: $as_echo "none needed" >&6; } ;;
3519: xno)
3520: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3521: $as_echo "unsupported" >&6; } ;;
3522: *)
3523: CC="$CC $ac_cv_prog_cc_c89"
3524: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3525: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3526: esac
3527: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.9 ohara 3528:
1.10 ohara 3529: fi
1.9 ohara 3530:
1.10 ohara 3531: ac_ext=c
3532: ac_cpp='$CPP $CPPFLAGS'
3533: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3534: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3535: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3536: DEPDIR="${am__leading_dot}deps"
1.9 ohara 3537:
1.10 ohara 3538: ac_config_commands="$ac_config_commands depfiles"
1.9 ohara 3539:
3540:
1.10 ohara 3541: am_make=${MAKE-make}
3542: cat > confinc << 'END'
3543: am__doit:
3544: @echo this is the am__doit target
3545: .PHONY: am__doit
3546: END
3547: # If we don't find an include directive, just comment out the code.
3548: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3549: $as_echo_n "checking for style of include used by $am_make... " >&6; }
3550: am__include="#"
3551: am__quote=
3552: _am_result=none
3553: # First try GNU make style include.
3554: echo "include confinc" > confmf
3555: # Ignore all kinds of additional output from `make'.
3556: case `$am_make -s -f confmf 2> /dev/null` in #(
3557: *the\ am__doit\ target*)
3558: am__include=include
3559: am__quote=
3560: _am_result=GNU
3561: ;;
3562: esac
3563: # Now try BSD make style include.
3564: if test "$am__include" = "#"; then
3565: echo '.include "confinc"' > confmf
3566: case `$am_make -s -f confmf 2> /dev/null` in #(
3567: *the\ am__doit\ target*)
3568: am__include=.include
3569: am__quote="\""
3570: _am_result=BSD
3571: ;;
3572: esac
3573: fi
1.9 ohara 3574:
3575:
1.10 ohara 3576: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3577: $as_echo "$_am_result" >&6; }
3578: rm -f confinc confmf
1.9 ohara 3579:
1.10 ohara 3580: # Check whether --enable-dependency-tracking was given.
3581: if test "${enable_dependency_tracking+set}" = set; then :
3582: enableval=$enable_dependency_tracking;
3583: fi
1.9 ohara 3584:
1.10 ohara 3585: if test "x$enable_dependency_tracking" != xno; then
3586: am_depcomp="$ac_aux_dir/depcomp"
3587: AMDEPBACKSLASH='\'
3588: fi
3589: if test "x$enable_dependency_tracking" != xno; then
3590: AMDEP_TRUE=
3591: AMDEP_FALSE='#'
3592: else
3593: AMDEP_TRUE='#'
3594: AMDEP_FALSE=
3595: fi
1.9 ohara 3596:
3597:
3598:
1.10 ohara 3599: depcc="$CC" am_compiler_list=
1.9 ohara 3600:
1.10 ohara 3601: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3602: $as_echo_n "checking dependency style of $depcc... " >&6; }
3603: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3604: $as_echo_n "(cached) " >&6
3605: else
3606: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3607: # We make a subdir and do the tests there. Otherwise we can end up
3608: # making bogus files that we don't know about and never remove. For
3609: # instance it was reported that on HP-UX the gcc test will end up
3610: # making a dummy file named `D' -- because `-MD' means `put the output
3611: # in D'.
3612: mkdir conftest.dir
3613: # Copy depcomp to subdir because otherwise we won't find it if we're
3614: # using a relative directory.
3615: cp "$am_depcomp" conftest.dir
3616: cd conftest.dir
3617: # We will build objects and dependencies in a subdirectory because
3618: # it helps to detect inapplicable dependency modes. For instance
3619: # both Tru64's cc and ICC support -MD to output dependencies as a
3620: # side effect of compilation, but ICC will put the dependencies in
3621: # the current directory while Tru64 will put them in the object
3622: # directory.
3623: mkdir sub
1.9 ohara 3624:
1.10 ohara 3625: am_cv_CC_dependencies_compiler_type=none
3626: if test "$am_compiler_list" = ""; then
3627: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3628: fi
3629: am__universal=false
3630: case " $depcc " in #(
3631: *\ -arch\ *\ -arch\ *) am__universal=true ;;
3632: esac
1.9 ohara 3633:
1.10 ohara 3634: for depmode in $am_compiler_list; do
3635: # Setup a source with many dependencies, because some compilers
3636: # like to wrap large dependency lists on column 80 (with \), and
3637: # we should not choose a depcomp mode which is confused by this.
3638: #
3639: # We need to recreate these files for each test, as the compiler may
3640: # overwrite some of them when testing with obscure command lines.
3641: # This happens at least with the AIX C compiler.
3642: : > sub/conftest.c
3643: for i in 1 2 3 4 5 6; do
3644: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3645: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3646: # Solaris 8's {/usr,}/bin/sh.
3647: touch sub/conftst$i.h
3648: done
3649: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.9 ohara 3650:
1.10 ohara 3651: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3652: # mode. It turns out that the SunPro C++ compiler does not properly
3653: # handle `-M -o', and we need to detect this. Also, some Intel
3654: # versions had trouble with output in subdirs
3655: am__obj=sub/conftest.${OBJEXT-o}
3656: am__minus_obj="-o $am__obj"
3657: case $depmode in
3658: gcc)
3659: # This depmode causes a compiler race in universal mode.
3660: test "$am__universal" = false || continue
1.9 ohara 3661: ;;
1.10 ohara 3662: nosideeffect)
3663: # after this tag, mechanisms are not by side-effect, so they'll
3664: # only be used when explicitly requested
3665: if test "x$enable_dependency_tracking" = xyes; then
3666: continue
1.9 ohara 3667: else
1.10 ohara 3668: break
1.9 ohara 3669: fi
3670: ;;
1.10 ohara 3671: msvisualcpp | msvcmsys)
3672: # This compiler won't grok `-c -o', but also, the minuso test has
3673: # not run yet. These depmodes are late enough in the game, and
3674: # so weak that their functioning should not be impacted.
3675: am__obj=conftest.${OBJEXT-o}
3676: am__minus_obj=
3677: ;;
3678: none) break ;;
1.9 ohara 3679: esac
1.10 ohara 3680: if depmode=$depmode \
3681: source=sub/conftest.c object=$am__obj \
3682: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3683: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3684: >/dev/null 2>conftest.err &&
3685: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3686: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3687: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3688: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3689: # icc doesn't choke on unknown options, it will just issue warnings
3690: # or remarks (even with -Werror). So we grep stderr for any message
3691: # that says an option was ignored or not supported.
3692: # When given -MP, icc 7.0 and 7.1 complain thusly:
3693: # icc: Command line warning: ignoring option '-M'; no argument required
3694: # The diagnosis changed in icc 8.0:
3695: # icc: Command line remark: option '-MP' not supported
3696: if (grep 'ignoring option' conftest.err ||
3697: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3698: am_cv_CC_dependencies_compiler_type=$depmode
3699: break
1.9 ohara 3700: fi
1.10 ohara 3701: fi
3702: done
1.9 ohara 3703:
1.10 ohara 3704: cd ..
3705: rm -rf conftest.dir
3706: else
3707: am_cv_CC_dependencies_compiler_type=none
3708: fi
1.9 ohara 3709:
1.10 ohara 3710: fi
3711: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3712: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3713: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1.9 ohara 3714:
1.10 ohara 3715: if
3716: test "x$enable_dependency_tracking" != xno \
3717: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3718: am__fastdepCC_TRUE=
3719: am__fastdepCC_FALSE='#'
3720: else
3721: am__fastdepCC_TRUE='#'
3722: am__fastdepCC_FALSE=
3723: fi
1.9 ohara 3724:
3725:
3726:
1.10 ohara 3727: case `pwd` in
3728: *\ * | *\ *)
3729: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3730: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1.9 ohara 3731: esac
3732:
3733:
3734:
1.10 ohara 3735: macro_version='2.4.2'
3736: macro_revision='1.3337'
3737:
3738:
1.9 ohara 3739:
3740:
3741:
3742:
3743:
3744:
3745:
3746:
3747:
3748:
3749:
1.10 ohara 3750: ltmain="$ac_aux_dir/ltmain.sh"
1.9 ohara 3751:
1.10 ohara 3752: # Backslashify metacharacters that are still active within
3753: # double-quoted strings.
3754: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
1.9 ohara 3755:
1.10 ohara 3756: # Same as above, but do not quote variable references.
3757: double_quote_subst='s/\(["`\\]\)/\\\1/g'
1.9 ohara 3758:
1.10 ohara 3759: # Sed substitution to delay expansion of an escaped shell variable in a
3760: # double_quote_subst'ed string.
3761: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1.9 ohara 3762:
1.10 ohara 3763: # Sed substitution to delay expansion of an escaped single quote.
3764: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1.9 ohara 3765:
1.10 ohara 3766: # Sed substitution to avoid accidental globbing in evaled expressions
3767: no_glob_subst='s/\*/\\\*/g'
1.9 ohara 3768:
1.10 ohara 3769: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3770: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3771: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3772:
3773: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3774: $as_echo_n "checking how to print strings... " >&6; }
3775: # Test print first, because it will be a builtin if present.
3776: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3777: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3778: ECHO='print -r --'
3779: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3780: ECHO='printf %s\n'
3781: else
3782: # Use this function as a fallback that always works.
3783: func_fallback_echo ()
3784: {
3785: eval 'cat <<_LTECHO_EOF
3786: $1
3787: _LTECHO_EOF'
3788: }
3789: ECHO='func_fallback_echo'
3790: fi
1.9 ohara 3791:
1.10 ohara 3792: # func_echo_all arg...
3793: # Invoke $ECHO with all args, space-separated.
3794: func_echo_all ()
3795: {
3796: $ECHO ""
3797: }
1.9 ohara 3798:
1.10 ohara 3799: case "$ECHO" in
3800: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3801: $as_echo "printf" >&6; } ;;
3802: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3803: $as_echo "print -r" >&6; } ;;
3804: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3805: $as_echo "cat" >&6; } ;;
3806: esac
1.9 ohara 3807:
3808:
3809:
3810:
3811:
3812:
3813:
3814:
3815:
3816:
3817:
3818:
3819:
3820:
1.10 ohara 3821: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3822: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3823: if ${ac_cv_path_SED+:} false; then :
3824: $as_echo_n "(cached) " >&6
3825: else
3826: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3827: for ac_i in 1 2 3 4 5 6 7; do
3828: ac_script="$ac_script$as_nl$ac_script"
3829: done
3830: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3831: { ac_script=; unset ac_script;}
3832: if test -z "$SED"; then
3833: ac_path_SED_found=false
3834: # Loop through the user's path and test for each of PROGNAME-LIST
3835: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836: for as_dir in $PATH
3837: do
3838: IFS=$as_save_IFS
3839: test -z "$as_dir" && as_dir=.
3840: for ac_prog in sed gsed; do
3841: for ac_exec_ext in '' $ac_executable_extensions; do
3842: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3843: { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3844: # Check for GNU ac_path_SED and select it if it is found.
3845: # Check for GNU $ac_path_SED
3846: case `"$ac_path_SED" --version 2>&1` in
3847: *GNU*)
3848: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3849: *)
3850: ac_count=0
3851: $as_echo_n 0123456789 >"conftest.in"
3852: while :
3853: do
3854: cat "conftest.in" "conftest.in" >"conftest.tmp"
3855: mv "conftest.tmp" "conftest.in"
3856: cp "conftest.in" "conftest.nl"
3857: $as_echo '' >> "conftest.nl"
3858: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3859: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3860: as_fn_arith $ac_count + 1 && ac_count=$as_val
3861: if test $ac_count -gt ${ac_path_SED_max-0}; then
3862: # Best one so far, save it but keep looking for a better one
3863: ac_cv_path_SED="$ac_path_SED"
3864: ac_path_SED_max=$ac_count
3865: fi
3866: # 10*(2^10) chars as input seems more than enough
3867: test $ac_count -gt 10 && break
3868: done
3869: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3870: esac
1.9 ohara 3871:
1.10 ohara 3872: $ac_path_SED_found && break 3
3873: done
3874: done
3875: done
3876: IFS=$as_save_IFS
3877: if test -z "$ac_cv_path_SED"; then
3878: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3879: fi
3880: else
3881: ac_cv_path_SED=$SED
3882: fi
1.9 ohara 3883:
1.10 ohara 3884: fi
3885: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3886: $as_echo "$ac_cv_path_SED" >&6; }
3887: SED="$ac_cv_path_SED"
3888: rm -f conftest.sed
1.9 ohara 3889:
1.10 ohara 3890: test -z "$SED" && SED=sed
3891: Xsed="$SED -e 1s/^X//"
1.9 ohara 3892:
3893:
3894:
3895:
3896:
3897:
3898:
3899:
3900:
3901:
3902:
1.10 ohara 3903: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3904: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3905: if ${ac_cv_path_GREP+:} false; then :
3906: $as_echo_n "(cached) " >&6
3907: else
3908: if test -z "$GREP"; then
3909: ac_path_GREP_found=false
3910: # Loop through the user's path and test for each of PROGNAME-LIST
3911: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3913: do
3914: IFS=$as_save_IFS
3915: test -z "$as_dir" && as_dir=.
3916: for ac_prog in grep ggrep; do
3917: for ac_exec_ext in '' $ac_executable_extensions; do
3918: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3919: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3920: # Check for GNU ac_path_GREP and select it if it is found.
3921: # Check for GNU $ac_path_GREP
3922: case `"$ac_path_GREP" --version 2>&1` in
3923: *GNU*)
3924: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3925: *)
3926: ac_count=0
3927: $as_echo_n 0123456789 >"conftest.in"
3928: while :
3929: do
3930: cat "conftest.in" "conftest.in" >"conftest.tmp"
3931: mv "conftest.tmp" "conftest.in"
3932: cp "conftest.in" "conftest.nl"
3933: $as_echo 'GREP' >> "conftest.nl"
3934: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3935: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3936: as_fn_arith $ac_count + 1 && ac_count=$as_val
3937: if test $ac_count -gt ${ac_path_GREP_max-0}; then
3938: # Best one so far, save it but keep looking for a better one
3939: ac_cv_path_GREP="$ac_path_GREP"
3940: ac_path_GREP_max=$ac_count
3941: fi
3942: # 10*(2^10) chars as input seems more than enough
3943: test $ac_count -gt 10 && break
3944: done
3945: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3946: esac
1.9 ohara 3947:
1.10 ohara 3948: $ac_path_GREP_found && break 3
3949: done
3950: done
3951: done
3952: IFS=$as_save_IFS
3953: if test -z "$ac_cv_path_GREP"; then
3954: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.9 ohara 3955: fi
3956: else
1.10 ohara 3957: ac_cv_path_GREP=$GREP
1.9 ohara 3958: fi
3959:
1.10 ohara 3960: fi
3961: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3962: $as_echo "$ac_cv_path_GREP" >&6; }
3963: GREP="$ac_cv_path_GREP"
1.9 ohara 3964:
3965:
1.10 ohara 3966: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3967: $as_echo_n "checking for egrep... " >&6; }
3968: if ${ac_cv_path_EGREP+:} false; then :
3969: $as_echo_n "(cached) " >&6
3970: else
3971: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3972: then ac_cv_path_EGREP="$GREP -E"
3973: else
3974: if test -z "$EGREP"; then
3975: ac_path_EGREP_found=false
3976: # Loop through the user's path and test for each of PROGNAME-LIST
3977: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3979: do
3980: IFS=$as_save_IFS
3981: test -z "$as_dir" && as_dir=.
3982: for ac_prog in egrep; do
3983: for ac_exec_ext in '' $ac_executable_extensions; do
3984: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3985: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3986: # Check for GNU ac_path_EGREP and select it if it is found.
3987: # Check for GNU $ac_path_EGREP
3988: case `"$ac_path_EGREP" --version 2>&1` in
3989: *GNU*)
3990: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3991: *)
3992: ac_count=0
3993: $as_echo_n 0123456789 >"conftest.in"
3994: while :
3995: do
3996: cat "conftest.in" "conftest.in" >"conftest.tmp"
3997: mv "conftest.tmp" "conftest.in"
3998: cp "conftest.in" "conftest.nl"
3999: $as_echo 'EGREP' >> "conftest.nl"
4000: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4001: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4002: as_fn_arith $ac_count + 1 && ac_count=$as_val
4003: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4004: # Best one so far, save it but keep looking for a better one
4005: ac_cv_path_EGREP="$ac_path_EGREP"
4006: ac_path_EGREP_max=$ac_count
4007: fi
4008: # 10*(2^10) chars as input seems more than enough
4009: test $ac_count -gt 10 && break
4010: done
4011: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4012: esac
1.9 ohara 4013:
1.10 ohara 4014: $ac_path_EGREP_found && break 3
4015: done
4016: done
4017: done
4018: IFS=$as_save_IFS
4019: if test -z "$ac_cv_path_EGREP"; then
4020: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.9 ohara 4021: fi
1.10 ohara 4022: else
4023: ac_cv_path_EGREP=$EGREP
4024: fi
1.9 ohara 4025:
1.10 ohara 4026: fi
4027: fi
4028: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4029: $as_echo "$ac_cv_path_EGREP" >&6; }
4030: EGREP="$ac_cv_path_EGREP"
1.9 ohara 4031:
4032:
1.10 ohara 4033: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4034: $as_echo_n "checking for fgrep... " >&6; }
4035: if ${ac_cv_path_FGREP+:} false; then :
4036: $as_echo_n "(cached) " >&6
4037: else
4038: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4039: then ac_cv_path_FGREP="$GREP -F"
4040: else
4041: if test -z "$FGREP"; then
4042: ac_path_FGREP_found=false
4043: # Loop through the user's path and test for each of PROGNAME-LIST
4044: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4046: do
4047: IFS=$as_save_IFS
4048: test -z "$as_dir" && as_dir=.
4049: for ac_prog in fgrep; do
4050: for ac_exec_ext in '' $ac_executable_extensions; do
4051: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4052: { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4053: # Check for GNU ac_path_FGREP and select it if it is found.
4054: # Check for GNU $ac_path_FGREP
4055: case `"$ac_path_FGREP" --version 2>&1` in
4056: *GNU*)
4057: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4058: *)
4059: ac_count=0
4060: $as_echo_n 0123456789 >"conftest.in"
4061: while :
4062: do
4063: cat "conftest.in" "conftest.in" >"conftest.tmp"
4064: mv "conftest.tmp" "conftest.in"
4065: cp "conftest.in" "conftest.nl"
4066: $as_echo 'FGREP' >> "conftest.nl"
4067: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4068: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4069: as_fn_arith $ac_count + 1 && ac_count=$as_val
4070: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4071: # Best one so far, save it but keep looking for a better one
4072: ac_cv_path_FGREP="$ac_path_FGREP"
4073: ac_path_FGREP_max=$ac_count
4074: fi
4075: # 10*(2^10) chars as input seems more than enough
4076: test $ac_count -gt 10 && break
4077: done
4078: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4079: esac
1.9 ohara 4080:
1.10 ohara 4081: $ac_path_FGREP_found && break 3
4082: done
4083: done
4084: done
4085: IFS=$as_save_IFS
4086: if test -z "$ac_cv_path_FGREP"; then
4087: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4088: fi
4089: else
4090: ac_cv_path_FGREP=$FGREP
4091: fi
1.9 ohara 4092:
1.10 ohara 4093: fi
4094: fi
4095: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4096: $as_echo "$ac_cv_path_FGREP" >&6; }
4097: FGREP="$ac_cv_path_FGREP"
1.9 ohara 4098:
4099:
1.10 ohara 4100: test -z "$GREP" && GREP=grep
1.9 ohara 4101:
4102:
4103:
4104:
4105:
4106:
4107:
4108:
4109:
4110:
4111:
4112:
4113:
4114:
4115:
4116:
4117:
4118:
4119:
1.10 ohara 4120: # Check whether --with-gnu-ld was given.
4121: if test "${with_gnu_ld+set}" = set; then :
4122: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4123: else
4124: with_gnu_ld=no
4125: fi
1.9 ohara 4126:
1.10 ohara 4127: ac_prog=ld
4128: if test "$GCC" = yes; then
4129: # Check if gcc -print-prog-name=ld gives a path.
4130: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4131: $as_echo_n "checking for ld used by $CC... " >&6; }
4132: case $host in
4133: *-*-mingw*)
4134: # gcc leaves a trailing carriage return which upsets mingw
4135: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4136: *)
4137: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4138: esac
4139: case $ac_prog in
4140: # Accept absolute paths.
4141: [\\/]* | ?:[\\/]*)
4142: re_direlt='/[^/][^/]*/\.\./'
4143: # Canonicalize the pathname of ld
4144: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4145: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4146: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4147: done
4148: test -z "$LD" && LD="$ac_prog"
1.9 ohara 4149: ;;
1.10 ohara 4150: "")
4151: # If it fails, then pretend we aren't using GCC.
4152: ac_prog=ld
4153: ;;
4154: *)
4155: # If it is relative, then search for the first ld in PATH.
4156: with_gnu_ld=unknown
4157: ;;
1.9 ohara 4158: esac
1.10 ohara 4159: elif test "$with_gnu_ld" = yes; then
4160: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4161: $as_echo_n "checking for GNU ld... " >&6; }
4162: else
4163: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4164: $as_echo_n "checking for non-GNU ld... " >&6; }
4165: fi
4166: if ${lt_cv_path_LD+:} false; then :
4167: $as_echo_n "(cached) " >&6
4168: else
4169: if test -z "$LD"; then
4170: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4171: for ac_dir in $PATH; do
4172: IFS="$lt_save_ifs"
4173: test -z "$ac_dir" && ac_dir=.
4174: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4175: lt_cv_path_LD="$ac_dir/$ac_prog"
4176: # Check to see if the program is GNU ld. I'd rather use --version,
4177: # but apparently some variants of GNU ld only accept -v.
4178: # Break only if it was the GNU/non-GNU ld that we prefer.
4179: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4180: *GNU* | *'with BFD'*)
4181: test "$with_gnu_ld" != no && break
4182: ;;
4183: *)
4184: test "$with_gnu_ld" != yes && break
1.9 ohara 4185: ;;
1.10 ohara 4186: esac
4187: fi
4188: done
4189: IFS="$lt_save_ifs"
4190: else
4191: lt_cv_path_LD="$LD" # Let the user override the test with a path.
4192: fi
4193: fi
1.9 ohara 4194:
1.10 ohara 4195: LD="$lt_cv_path_LD"
4196: if test -n "$LD"; then
4197: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4198: $as_echo "$LD" >&6; }
4199: else
4200: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4201: $as_echo "no" >&6; }
4202: fi
4203: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4204: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4205: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4206: if ${lt_cv_prog_gnu_ld+:} false; then :
4207: $as_echo_n "(cached) " >&6
4208: else
4209: # I'd rather use --version here, but apparently some GNU lds only accept -v.
4210: case `$LD -v 2>&1 </dev/null` in
4211: *GNU* | *'with BFD'*)
4212: lt_cv_prog_gnu_ld=yes
1.9 ohara 4213: ;;
4214: *)
1.10 ohara 4215: lt_cv_prog_gnu_ld=no
1.9 ohara 4216: ;;
4217: esac
4218: fi
1.10 ohara 4219: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4220: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4221: with_gnu_ld=$lt_cv_prog_gnu_ld
1.9 ohara 4222:
4223:
4224:
4225:
4226:
4227:
4228:
4229:
4230:
1.10 ohara 4231: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4232: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4233: if ${lt_cv_path_NM+:} false; then :
4234: $as_echo_n "(cached) " >&6
4235: else
4236: if test -n "$NM"; then
4237: # Let the user override the test.
4238: lt_cv_path_NM="$NM"
4239: else
4240: lt_nm_to_check="${ac_tool_prefix}nm"
4241: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4242: lt_nm_to_check="$lt_nm_to_check nm"
4243: fi
4244: for lt_tmp_nm in $lt_nm_to_check; do
4245: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4246: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4247: IFS="$lt_save_ifs"
4248: test -z "$ac_dir" && ac_dir=.
4249: tmp_nm="$ac_dir/$lt_tmp_nm"
4250: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4251: # Check to see if the nm accepts a BSD-compat flag.
4252: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4253: # nm: unknown option "B" ignored
4254: # Tru64's nm complains that /dev/null is an invalid object file
4255: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4256: */dev/null* | *'Invalid file or object type'*)
4257: lt_cv_path_NM="$tmp_nm -B"
4258: break
4259: ;;
4260: *)
4261: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4262: */dev/null*)
4263: lt_cv_path_NM="$tmp_nm -p"
4264: break
4265: ;;
4266: *)
4267: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4268: continue # so that we can try to find one that supports BSD flags
4269: ;;
4270: esac
4271: ;;
4272: esac
4273: fi
4274: done
4275: IFS="$lt_save_ifs"
4276: done
4277: : ${lt_cv_path_NM=no}
4278: fi
4279: fi
4280: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4281: $as_echo "$lt_cv_path_NM" >&6; }
4282: if test "$lt_cv_path_NM" != "no"; then
4283: NM="$lt_cv_path_NM"
4284: else
4285: # Didn't find any BSD compatible name lister, look for dumpbin.
4286: if test -n "$DUMPBIN"; then :
4287: # Let the user override the test.
4288: else
4289: if test -n "$ac_tool_prefix"; then
4290: for ac_prog in dumpbin "link -dump"
4291: do
4292: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4293: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4294: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4295: $as_echo_n "checking for $ac_word... " >&6; }
4296: if ${ac_cv_prog_DUMPBIN+:} false; then :
4297: $as_echo_n "(cached) " >&6
4298: else
4299: if test -n "$DUMPBIN"; then
4300: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
1.9 ohara 4301: else
1.10 ohara 4302: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303: for as_dir in $PATH
4304: do
4305: IFS=$as_save_IFS
4306: test -z "$as_dir" && as_dir=.
4307: for ac_exec_ext in '' $ac_executable_extensions; do
4308: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4309: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4310: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4311: break 2
4312: fi
4313: done
4314: done
4315: IFS=$as_save_IFS
1.9 ohara 4316:
1.10 ohara 4317: fi
4318: fi
4319: DUMPBIN=$ac_cv_prog_DUMPBIN
4320: if test -n "$DUMPBIN"; then
4321: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4322: $as_echo "$DUMPBIN" >&6; }
1.9 ohara 4323: else
1.10 ohara 4324: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4325: $as_echo "no" >&6; }
4326: fi
4327:
1.9 ohara 4328:
1.10 ohara 4329: test -n "$DUMPBIN" && break
4330: done
1.9 ohara 4331: fi
1.10 ohara 4332: if test -z "$DUMPBIN"; then
4333: ac_ct_DUMPBIN=$DUMPBIN
4334: for ac_prog in dumpbin "link -dump"
4335: do
4336: # Extract the first word of "$ac_prog", so it can be a program name with args.
4337: set dummy $ac_prog; ac_word=$2
4338: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4339: $as_echo_n "checking for $ac_word... " >&6; }
4340: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4341: $as_echo_n "(cached) " >&6
4342: else
4343: if test -n "$ac_ct_DUMPBIN"; then
4344: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4345: else
4346: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347: for as_dir in $PATH
4348: do
4349: IFS=$as_save_IFS
4350: test -z "$as_dir" && as_dir=.
4351: for ac_exec_ext in '' $ac_executable_extensions; do
4352: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4353: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4354: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4355: break 2
4356: fi
4357: done
4358: done
4359: IFS=$as_save_IFS
1.9 ohara 4360:
4361: fi
1.10 ohara 4362: fi
4363: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4364: if test -n "$ac_ct_DUMPBIN"; then
4365: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4366: $as_echo "$ac_ct_DUMPBIN" >&6; }
1.9 ohara 4367: else
1.10 ohara 4368: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4369: $as_echo "no" >&6; }
4370: fi
4371:
1.9 ohara 4372:
1.10 ohara 4373: test -n "$ac_ct_DUMPBIN" && break
4374: done
1.9 ohara 4375:
1.10 ohara 4376: if test "x$ac_ct_DUMPBIN" = x; then
4377: DUMPBIN=":"
4378: else
4379: case $cross_compiling:$ac_tool_warned in
4380: yes:)
4381: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4382: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4383: ac_tool_warned=yes ;;
4384: esac
4385: DUMPBIN=$ac_ct_DUMPBIN
4386: fi
1.9 ohara 4387: fi
4388:
1.10 ohara 4389: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4390: *COFF*)
4391: DUMPBIN="$DUMPBIN -symbols"
4392: ;;
4393: *)
4394: DUMPBIN=:
4395: ;;
4396: esac
4397: fi
1.9 ohara 4398:
1.10 ohara 4399: if test "$DUMPBIN" != ":"; then
4400: NM="$DUMPBIN"
4401: fi
4402: fi
4403: test -z "$NM" && NM=nm
1.9 ohara 4404:
4405:
4406:
4407:
4408:
4409:
1.10 ohara 4410: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4411: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4412: if ${lt_cv_nm_interface+:} false; then :
4413: $as_echo_n "(cached) " >&6
4414: else
4415: lt_cv_nm_interface="BSD nm"
4416: echo "int some_variable = 0;" > conftest.$ac_ext
4417: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4418: (eval "$ac_compile" 2>conftest.err)
4419: cat conftest.err >&5
4420: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4421: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4422: cat conftest.err >&5
4423: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4424: cat conftest.out >&5
4425: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4426: lt_cv_nm_interface="MS dumpbin"
4427: fi
4428: rm -f conftest*
1.9 ohara 4429: fi
1.10 ohara 4430: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4431: $as_echo "$lt_cv_nm_interface" >&6; }
1.9 ohara 4432:
1.10 ohara 4433: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4434: $as_echo_n "checking whether ln -s works... " >&6; }
4435: LN_S=$as_ln_s
4436: if test "$LN_S" = "ln -s"; then
4437: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4438: $as_echo "yes" >&6; }
4439: else
4440: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4441: $as_echo "no, using $LN_S" >&6; }
1.9 ohara 4442: fi
1.10 ohara 4443:
4444: # find the maximum length of command line arguments
4445: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4446: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4447: if ${lt_cv_sys_max_cmd_len+:} false; then :
4448: $as_echo_n "(cached) " >&6
1.9 ohara 4449: else
1.10 ohara 4450: i=0
4451: teststring="ABCD"
4452:
4453: case $build_os in
4454: msdosdjgpp*)
4455: # On DJGPP, this test can blow up pretty badly due to problems in libc
4456: # (any single argument exceeding 2000 bytes causes a buffer overrun
4457: # during glob expansion). Even if it were fixed, the result of this
4458: # check would be larger than it should be.
4459: lt_cv_sys_max_cmd_len=12288; # 12K is about right
4460: ;;
1.9 ohara 4461:
1.10 ohara 4462: gnu*)
4463: # Under GNU Hurd, this test is not required because there is
4464: # no limit to the length of command line arguments.
4465: # Libtool will interpret -1 as no limit whatsoever
4466: lt_cv_sys_max_cmd_len=-1;
4467: ;;
1.9 ohara 4468:
1.10 ohara 4469: cygwin* | mingw* | cegcc*)
4470: # On Win9x/ME, this test blows up -- it succeeds, but takes
4471: # about 5 minutes as the teststring grows exponentially.
4472: # Worse, since 9x/ME are not pre-emptively multitasking,
4473: # you end up with a "frozen" computer, even though with patience
4474: # the test eventually succeeds (with a max line length of 256k).
4475: # Instead, let's just punt: use the minimum linelength reported by
4476: # all of the supported platforms: 8192 (on NT/2K/XP).
4477: lt_cv_sys_max_cmd_len=8192;
4478: ;;
1.9 ohara 4479:
1.10 ohara 4480: mint*)
4481: # On MiNT this can take a long time and run out of memory.
4482: lt_cv_sys_max_cmd_len=8192;
4483: ;;
1.9 ohara 4484:
1.10 ohara 4485: amigaos*)
4486: # On AmigaOS with pdksh, this test takes hours, literally.
4487: # So we just punt and use a minimum line length of 8192.
4488: lt_cv_sys_max_cmd_len=8192;
4489: ;;
1.9 ohara 4490:
1.10 ohara 4491: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4492: # This has been around since 386BSD, at least. Likely further.
4493: if test -x /sbin/sysctl; then
4494: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4495: elif test -x /usr/sbin/sysctl; then
4496: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4497: else
4498: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4499: fi
4500: # And add a safety zone
4501: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4502: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4503: ;;
1.9 ohara 4504:
1.10 ohara 4505: interix*)
4506: # We know the value 262144 and hardcode it with a safety zone (like BSD)
4507: lt_cv_sys_max_cmd_len=196608
4508: ;;
1.9 ohara 4509:
1.10 ohara 4510: os2*)
4511: # The test takes a long time on OS/2.
4512: lt_cv_sys_max_cmd_len=8192
4513: ;;
1.9 ohara 4514:
1.10 ohara 4515: osf*)
4516: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4517: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4518: # nice to cause kernel panics so lets avoid the loop below.
4519: # First set a reasonable default.
4520: lt_cv_sys_max_cmd_len=16384
4521: #
4522: if test -x /sbin/sysconfig; then
4523: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4524: *1*) lt_cv_sys_max_cmd_len=-1 ;;
4525: esac
4526: fi
4527: ;;
4528: sco3.2v5*)
4529: lt_cv_sys_max_cmd_len=102400
4530: ;;
4531: sysv5* | sco5v6* | sysv4.2uw2*)
4532: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4533: if test -n "$kargmax"; then
4534: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4535: else
4536: lt_cv_sys_max_cmd_len=32768
4537: fi
4538: ;;
4539: *)
4540: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4541: if test -n "$lt_cv_sys_max_cmd_len"; then
4542: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4543: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4544: else
4545: # Make teststring a little bigger before we do anything with it.
4546: # a 1K string should be a reasonable start.
4547: for i in 1 2 3 4 5 6 7 8 ; do
4548: teststring=$teststring$teststring
4549: done
4550: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4551: # If test is not a shell built-in, we'll probably end up computing a
4552: # maximum length that is only half of the actual maximum length, but
4553: # we can't tell.
4554: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4555: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4556: test $i != 17 # 1/2 MB should be enough
4557: do
4558: i=`expr $i + 1`
4559: teststring=$teststring$teststring
4560: done
4561: # Only check the string length outside the loop.
4562: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4563: teststring=
4564: # Add a significant safety factor because C++ compilers can tack on
4565: # massive amounts of additional arguments before passing them to the
4566: # linker. It appears as though 1/2 is a usable value.
4567: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4568: fi
4569: ;;
4570: esac
1.9 ohara 4571:
4572: fi
4573:
1.10 ohara 4574: if test -n $lt_cv_sys_max_cmd_len ; then
4575: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4576: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4577: else
4578: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4579: $as_echo "none" >&6; }
1.9 ohara 4580: fi
1.10 ohara 4581: max_cmd_len=$lt_cv_sys_max_cmd_len
4582:
4583:
1.9 ohara 4584:
4585:
4586:
4587:
1.10 ohara 4588: : ${CP="cp -f"}
4589: : ${MV="mv -f"}
4590: : ${RM="rm -f"}
4591:
4592: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4593: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4594: # Try some XSI features
4595: xsi_shell=no
4596: ( _lt_dummy="a/b/c"
4597: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4598: = c,a/b,b/c, \
4599: && eval 'test $(( 1 + 1 )) -eq 2 \
4600: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4601: && xsi_shell=yes
4602: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4603: $as_echo "$xsi_shell" >&6; }
4604:
4605:
4606: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4607: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4608: lt_shell_append=no
4609: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4610: >/dev/null 2>&1 \
4611: && lt_shell_append=yes
4612: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4613: $as_echo "$lt_shell_append" >&6; }
1.9 ohara 4614:
4615:
1.10 ohara 4616: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4617: lt_unset=unset
4618: else
4619: lt_unset=false
1.9 ohara 4620: fi
4621:
4622:
4623:
4624:
4625:
1.10 ohara 4626: # test EBCDIC or ASCII
4627: case `echo X|tr X '\101'` in
4628: A) # ASCII based system
4629: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4630: lt_SP2NL='tr \040 \012'
4631: lt_NL2SP='tr \015\012 \040\040'
4632: ;;
4633: *) # EBCDIC based system
4634: lt_SP2NL='tr \100 \n'
4635: lt_NL2SP='tr \r\n \100\100'
4636: ;;
4637: esac
1.9 ohara 4638:
4639:
4640:
4641:
4642:
4643:
4644:
4645:
4646:
1.10 ohara 4647: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4648: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4649: if ${lt_cv_to_host_file_cmd+:} false; then :
4650: $as_echo_n "(cached) " >&6
4651: else
4652: case $host in
4653: *-*-mingw* )
4654: case $build in
4655: *-*-mingw* ) # actually msys
4656: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4657: ;;
4658: *-*-cygwin* )
4659: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4660: ;;
4661: * ) # otherwise, assume *nix
4662: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4663: ;;
4664: esac
4665: ;;
4666: *-*-cygwin* )
4667: case $build in
4668: *-*-mingw* ) # actually msys
4669: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4670: ;;
4671: *-*-cygwin* )
4672: lt_cv_to_host_file_cmd=func_convert_file_noop
4673: ;;
4674: * ) # otherwise, assume *nix
4675: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4676: ;;
4677: esac
1.9 ohara 4678: ;;
1.10 ohara 4679: * ) # unhandled hosts (and "normal" native builds)
4680: lt_cv_to_host_file_cmd=func_convert_file_noop
4681: ;;
4682: esac
1.9 ohara 4683:
1.10 ohara 4684: fi
1.9 ohara 4685:
1.10 ohara 4686: to_host_file_cmd=$lt_cv_to_host_file_cmd
4687: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4688: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
1.9 ohara 4689:
4690:
4691:
4692:
4693:
1.10 ohara 4694: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4695: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4696: if ${lt_cv_to_tool_file_cmd+:} false; then :
4697: $as_echo_n "(cached) " >&6
4698: else
4699: #assume ordinary cross tools, or native build.
4700: lt_cv_to_tool_file_cmd=func_convert_file_noop
4701: case $host in
4702: *-*-mingw* )
4703: case $build in
4704: *-*-mingw* ) # actually msys
4705: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4706: ;;
4707: esac
4708: ;;
4709: esac
1.9 ohara 4710:
1.10 ohara 4711: fi
1.9 ohara 4712:
1.10 ohara 4713: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4714: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4715: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
1.9 ohara 4716:
4717:
4718:
4719:
4720:
1.10 ohara 4721: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4722: $as_echo_n "checking for $LD option to reload object files... " >&6; }
4723: if ${lt_cv_ld_reload_flag+:} false; then :
4724: $as_echo_n "(cached) " >&6
4725: else
4726: lt_cv_ld_reload_flag='-r'
1.9 ohara 4727: fi
1.10 ohara 4728: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4729: $as_echo "$lt_cv_ld_reload_flag" >&6; }
4730: reload_flag=$lt_cv_ld_reload_flag
4731: case $reload_flag in
4732: "" | " "*) ;;
4733: *) reload_flag=" $reload_flag" ;;
4734: esac
4735: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4736: case $host_os in
4737: cygwin* | mingw* | pw32* | cegcc*)
4738: if test "$GCC" != yes; then
4739: reload_cmds=false
4740: fi
4741: ;;
4742: darwin*)
4743: if test "$GCC" = yes; then
4744: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4745: else
4746: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4747: fi
4748: ;;
4749: esac
1.9 ohara 4750:
4751:
4752:
4753:
4754:
4755:
4756:
4757:
4758:
1.10 ohara 4759: if test -n "$ac_tool_prefix"; then
4760: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4761: set dummy ${ac_tool_prefix}objdump; ac_word=$2
4762: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4763: $as_echo_n "checking for $ac_word... " >&6; }
4764: if ${ac_cv_prog_OBJDUMP+:} false; then :
4765: $as_echo_n "(cached) " >&6
4766: else
4767: if test -n "$OBJDUMP"; then
4768: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4769: else
4770: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771: for as_dir in $PATH
4772: do
4773: IFS=$as_save_IFS
4774: test -z "$as_dir" && as_dir=.
4775: for ac_exec_ext in '' $ac_executable_extensions; do
4776: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4777: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4778: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4779: break 2
1.9 ohara 4780: fi
1.10 ohara 4781: done
4782: done
4783: IFS=$as_save_IFS
4784:
4785: fi
4786: fi
4787: OBJDUMP=$ac_cv_prog_OBJDUMP
4788: if test -n "$OBJDUMP"; then
4789: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4790: $as_echo "$OBJDUMP" >&6; }
4791: else
4792: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4793: $as_echo "no" >&6; }
1.9 ohara 4794: fi
4795:
4796:
4797: fi
1.10 ohara 4798: if test -z "$ac_cv_prog_OBJDUMP"; then
4799: ac_ct_OBJDUMP=$OBJDUMP
4800: # Extract the first word of "objdump", so it can be a program name with args.
4801: set dummy objdump; ac_word=$2
4802: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4803: $as_echo_n "checking for $ac_word... " >&6; }
4804: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4805: $as_echo_n "(cached) " >&6
4806: else
4807: if test -n "$ac_ct_OBJDUMP"; then
4808: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4809: else
4810: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811: for as_dir in $PATH
4812: do
4813: IFS=$as_save_IFS
4814: test -z "$as_dir" && as_dir=.
4815: for ac_exec_ext in '' $ac_executable_extensions; do
4816: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4817: ac_cv_prog_ac_ct_OBJDUMP="objdump"
4818: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4819: break 2
4820: fi
4821: done
4822: done
4823: IFS=$as_save_IFS
1.9 ohara 4824:
1.10 ohara 4825: fi
4826: fi
4827: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4828: if test -n "$ac_ct_OBJDUMP"; then
4829: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4830: $as_echo "$ac_ct_OBJDUMP" >&6; }
4831: else
4832: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4833: $as_echo "no" >&6; }
4834: fi
1.9 ohara 4835:
1.10 ohara 4836: if test "x$ac_ct_OBJDUMP" = x; then
4837: OBJDUMP="false"
4838: else
4839: case $cross_compiling:$ac_tool_warned in
4840: yes:)
4841: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4842: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4843: ac_tool_warned=yes ;;
4844: esac
4845: OBJDUMP=$ac_ct_OBJDUMP
4846: fi
4847: else
4848: OBJDUMP="$ac_cv_prog_OBJDUMP"
4849: fi
1.9 ohara 4850:
1.10 ohara 4851: test -z "$OBJDUMP" && OBJDUMP=objdump
1.9 ohara 4852:
4853:
4854:
4855:
4856:
4857:
4858:
4859:
4860:
1.10 ohara 4861: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4862: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4863: if ${lt_cv_deplibs_check_method+:} false; then :
4864: $as_echo_n "(cached) " >&6
4865: else
4866: lt_cv_file_magic_cmd='$MAGIC_CMD'
4867: lt_cv_file_magic_test_file=
4868: lt_cv_deplibs_check_method='unknown'
4869: # Need to set the preceding variable on all platforms that support
4870: # interlibrary dependencies.
4871: # 'none' -- dependencies not supported.
4872: # `unknown' -- same as none, but documents that we really don't know.
4873: # 'pass_all' -- all dependencies passed with no checks.
4874: # 'test_compile' -- check by making test program.
4875: # 'file_magic [[regex]]' -- check by looking for files in library path
4876: # which responds to the $file_magic_cmd with a given extended regex.
4877: # If you have `file' or equivalent on your system and you're not sure
4878: # whether `pass_all' will *always* work, you probably want this one.
1.9 ohara 4879:
1.10 ohara 4880: case $host_os in
4881: aix[4-9]*)
4882: lt_cv_deplibs_check_method=pass_all
4883: ;;
1.9 ohara 4884:
1.10 ohara 4885: beos*)
4886: lt_cv_deplibs_check_method=pass_all
4887: ;;
1.9 ohara 4888:
1.10 ohara 4889: bsdi[45]*)
4890: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4891: lt_cv_file_magic_cmd='/usr/bin/file -L'
4892: lt_cv_file_magic_test_file=/shlib/libc.so
4893: ;;
1.9 ohara 4894:
1.10 ohara 4895: cygwin*)
4896: # func_win32_libid is a shell function defined in ltmain.sh
4897: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4898: lt_cv_file_magic_cmd='func_win32_libid'
4899: ;;
1.9 ohara 4900:
1.10 ohara 4901: mingw* | pw32*)
4902: # Base MSYS/MinGW do not provide the 'file' command needed by
4903: # func_win32_libid shell function, so use a weaker test based on 'objdump',
4904: # unless we find 'file', for example because we are cross-compiling.
4905: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4906: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4907: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4908: lt_cv_file_magic_cmd='func_win32_libid'
4909: else
4910: # Keep this pattern in sync with the one in func_win32_libid.
4911: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4912: lt_cv_file_magic_cmd='$OBJDUMP -f'
4913: fi
4914: ;;
1.9 ohara 4915:
1.10 ohara 4916: cegcc*)
4917: # use the weaker test based on 'objdump'. See mingw*.
4918: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4919: lt_cv_file_magic_cmd='$OBJDUMP -f'
4920: ;;
1.9 ohara 4921:
1.10 ohara 4922: darwin* | rhapsody*)
4923: lt_cv_deplibs_check_method=pass_all
4924: ;;
1.9 ohara 4925:
1.10 ohara 4926: freebsd* | dragonfly*)
4927: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4928: case $host_cpu in
4929: i*86 )
4930: # Not sure whether the presence of OpenBSD here was a mistake.
4931: # Let's accept both of them until this is cleared up.
4932: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4933: lt_cv_file_magic_cmd=/usr/bin/file
4934: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4935: ;;
4936: esac
4937: else
4938: lt_cv_deplibs_check_method=pass_all
4939: fi
4940: ;;
1.9 ohara 4941:
1.10 ohara 4942: gnu*)
4943: lt_cv_deplibs_check_method=pass_all
4944: ;;
1.9 ohara 4945:
1.10 ohara 4946: haiku*)
4947: lt_cv_deplibs_check_method=pass_all
4948: ;;
1.9 ohara 4949:
1.10 ohara 4950: hpux10.20* | hpux11*)
4951: lt_cv_file_magic_cmd=/usr/bin/file
4952: case $host_cpu in
4953: ia64*)
4954: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4955: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4956: ;;
4957: hppa*64*)
4958: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
4959: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4960: ;;
4961: *)
4962: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4963: lt_cv_file_magic_test_file=/usr/lib/libc.sl
4964: ;;
4965: esac
4966: ;;
1.9 ohara 4967:
1.10 ohara 4968: interix[3-9]*)
4969: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4970: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4971: ;;
1.9 ohara 4972:
1.10 ohara 4973: irix5* | irix6* | nonstopux*)
4974: case $LD in
4975: *-32|*"-32 ") libmagic=32-bit;;
4976: *-n32|*"-n32 ") libmagic=N32;;
4977: *-64|*"-64 ") libmagic=64-bit;;
4978: *) libmagic=never-match;;
4979: esac
4980: lt_cv_deplibs_check_method=pass_all
4981: ;;
1.9 ohara 4982:
1.10 ohara 4983: # This must be glibc/ELF.
4984: linux* | k*bsd*-gnu | kopensolaris*-gnu)
4985: lt_cv_deplibs_check_method=pass_all
4986: ;;
1.9 ohara 4987:
1.10 ohara 4988: netbsd*)
4989: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4990: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4991: else
4992: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4993: fi
4994: ;;
1.9 ohara 4995:
1.10 ohara 4996: newos6*)
4997: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4998: lt_cv_file_magic_cmd=/usr/bin/file
4999: lt_cv_file_magic_test_file=/usr/lib/libnls.so
5000: ;;
1.9 ohara 5001:
1.10 ohara 5002: *nto* | *qnx*)
5003: lt_cv_deplibs_check_method=pass_all
5004: ;;
1.9 ohara 5005:
1.10 ohara 5006: openbsd*)
5007: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5008: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5009: else
5010: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5011: fi
5012: ;;
1.9 ohara 5013:
1.10 ohara 5014: osf3* | osf4* | osf5*)
5015: lt_cv_deplibs_check_method=pass_all
5016: ;;
1.9 ohara 5017:
1.10 ohara 5018: rdos*)
5019: lt_cv_deplibs_check_method=pass_all
5020: ;;
1.9 ohara 5021:
1.10 ohara 5022: solaris*)
5023: lt_cv_deplibs_check_method=pass_all
5024: ;;
1.9 ohara 5025:
1.10 ohara 5026: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5027: lt_cv_deplibs_check_method=pass_all
5028: ;;
1.9 ohara 5029:
1.10 ohara 5030: sysv4 | sysv4.3*)
5031: case $host_vendor in
5032: motorola)
5033: 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]'
5034: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5035: ;;
5036: ncr)
5037: lt_cv_deplibs_check_method=pass_all
5038: ;;
5039: sequent)
5040: lt_cv_file_magic_cmd='/bin/file'
5041: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5042: ;;
5043: sni)
5044: lt_cv_file_magic_cmd='/bin/file'
5045: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5046: lt_cv_file_magic_test_file=/lib/libc.so
5047: ;;
5048: siemens)
5049: lt_cv_deplibs_check_method=pass_all
5050: ;;
5051: pc)
5052: lt_cv_deplibs_check_method=pass_all
5053: ;;
5054: esac
5055: ;;
1.9 ohara 5056:
1.10 ohara 5057: tpf*)
5058: lt_cv_deplibs_check_method=pass_all
5059: ;;
5060: esac
1.9 ohara 5061:
1.10 ohara 5062: fi
5063: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5064: $as_echo "$lt_cv_deplibs_check_method" >&6; }
1.9 ohara 5065:
1.10 ohara 5066: file_magic_glob=
5067: want_nocaseglob=no
5068: if test "$build" = "$host"; then
5069: case $host_os in
5070: mingw* | pw32*)
5071: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5072: want_nocaseglob=yes
5073: else
5074: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5075: fi
5076: ;;
5077: esac
5078: fi
1.9 ohara 5079:
1.10 ohara 5080: file_magic_cmd=$lt_cv_file_magic_cmd
5081: deplibs_check_method=$lt_cv_deplibs_check_method
5082: test -z "$deplibs_check_method" && deplibs_check_method=unknown
1.9 ohara 5083:
5084:
5085:
5086:
5087:
5088:
5089:
5090:
5091:
5092:
5093:
5094:
5095:
5096:
5097:
5098:
5099:
5100:
5101:
5102:
5103:
5104:
1.10 ohara 5105: if test -n "$ac_tool_prefix"; then
5106: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5107: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5108: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5109: $as_echo_n "checking for $ac_word... " >&6; }
5110: if ${ac_cv_prog_DLLTOOL+:} false; then :
5111: $as_echo_n "(cached) " >&6
5112: else
5113: if test -n "$DLLTOOL"; then
5114: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5115: else
5116: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117: for as_dir in $PATH
5118: do
5119: IFS=$as_save_IFS
5120: test -z "$as_dir" && as_dir=.
5121: for ac_exec_ext in '' $ac_executable_extensions; do
5122: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5123: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5124: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5125: break 2
5126: fi
5127: done
5128: done
5129: IFS=$as_save_IFS
1.9 ohara 5130:
1.10 ohara 5131: fi
5132: fi
5133: DLLTOOL=$ac_cv_prog_DLLTOOL
5134: if test -n "$DLLTOOL"; then
5135: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5136: $as_echo "$DLLTOOL" >&6; }
5137: else
5138: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5139: $as_echo "no" >&6; }
5140: fi
1.9 ohara 5141:
5142:
1.10 ohara 5143: fi
5144: if test -z "$ac_cv_prog_DLLTOOL"; then
5145: ac_ct_DLLTOOL=$DLLTOOL
5146: # Extract the first word of "dlltool", so it can be a program name with args.
5147: set dummy dlltool; ac_word=$2
5148: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5149: $as_echo_n "checking for $ac_word... " >&6; }
5150: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5151: $as_echo_n "(cached) " >&6
5152: else
5153: if test -n "$ac_ct_DLLTOOL"; then
5154: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5155: else
5156: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157: for as_dir in $PATH
5158: do
5159: IFS=$as_save_IFS
5160: test -z "$as_dir" && as_dir=.
5161: for ac_exec_ext in '' $ac_executable_extensions; do
5162: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5163: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5164: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165: break 2
5166: fi
5167: done
5168: done
5169: IFS=$as_save_IFS
1.9 ohara 5170:
1.10 ohara 5171: fi
5172: fi
5173: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5174: if test -n "$ac_ct_DLLTOOL"; then
5175: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5176: $as_echo "$ac_ct_DLLTOOL" >&6; }
5177: else
5178: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179: $as_echo "no" >&6; }
5180: fi
1.9 ohara 5181:
1.10 ohara 5182: if test "x$ac_ct_DLLTOOL" = x; then
5183: DLLTOOL="false"
5184: else
5185: case $cross_compiling:$ac_tool_warned in
5186: yes:)
5187: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5188: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5189: ac_tool_warned=yes ;;
5190: esac
5191: DLLTOOL=$ac_ct_DLLTOOL
5192: fi
5193: else
5194: DLLTOOL="$ac_cv_prog_DLLTOOL"
5195: fi
1.9 ohara 5196:
1.10 ohara 5197: test -z "$DLLTOOL" && DLLTOOL=dlltool
1.9 ohara 5198:
5199:
5200:
5201:
5202:
5203:
5204:
5205:
5206:
5207:
1.10 ohara 5208: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5209: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5210: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5211: $as_echo_n "(cached) " >&6
5212: else
5213: lt_cv_sharedlib_from_linklib_cmd='unknown'
1.9 ohara 5214:
1.10 ohara 5215: case $host_os in
5216: cygwin* | mingw* | pw32* | cegcc*)
5217: # two different shell functions defined in ltmain.sh
5218: # decide which to use based on capabilities of $DLLTOOL
5219: case `$DLLTOOL --help 2>&1` in
5220: *--identify-strict*)
5221: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5222: ;;
5223: *)
5224: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5225: ;;
5226: esac
5227: ;;
5228: *)
5229: # fallback: assume linklib IS sharedlib
5230: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5231: ;;
5232: esac
1.9 ohara 5233:
1.10 ohara 5234: fi
5235: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5236: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5237: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5238: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
1.9 ohara 5239:
5240:
5241:
5242:
5243:
5244:
5245:
5246:
1.10 ohara 5247: if test -n "$ac_tool_prefix"; then
5248: for ac_prog in ar
5249: do
5250: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5251: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5252: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253: $as_echo_n "checking for $ac_word... " >&6; }
5254: if ${ac_cv_prog_AR+:} false; then :
5255: $as_echo_n "(cached) " >&6
5256: else
5257: if test -n "$AR"; then
5258: ac_cv_prog_AR="$AR" # Let the user override the test.
5259: else
5260: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261: for as_dir in $PATH
5262: do
5263: IFS=$as_save_IFS
5264: test -z "$as_dir" && as_dir=.
5265: for ac_exec_ext in '' $ac_executable_extensions; do
5266: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5267: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5268: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5269: break 2
5270: fi
5271: done
5272: done
5273: IFS=$as_save_IFS
1.9 ohara 5274:
1.10 ohara 5275: fi
5276: fi
5277: AR=$ac_cv_prog_AR
5278: if test -n "$AR"; then
5279: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5280: $as_echo "$AR" >&6; }
5281: else
5282: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283: $as_echo "no" >&6; }
5284: fi
1.9 ohara 5285:
5286:
1.10 ohara 5287: test -n "$AR" && break
5288: done
5289: fi
5290: if test -z "$AR"; then
5291: ac_ct_AR=$AR
5292: for ac_prog in ar
5293: do
5294: # Extract the first word of "$ac_prog", so it can be a program name with args.
5295: set dummy $ac_prog; ac_word=$2
5296: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5297: $as_echo_n "checking for $ac_word... " >&6; }
5298: if ${ac_cv_prog_ac_ct_AR+:} false; then :
5299: $as_echo_n "(cached) " >&6
5300: else
5301: if test -n "$ac_ct_AR"; then
5302: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5303: else
5304: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305: for as_dir in $PATH
5306: do
5307: IFS=$as_save_IFS
5308: test -z "$as_dir" && as_dir=.
5309: for ac_exec_ext in '' $ac_executable_extensions; do
5310: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5311: ac_cv_prog_ac_ct_AR="$ac_prog"
5312: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5313: break 2
5314: fi
5315: done
5316: done
5317: IFS=$as_save_IFS
1.9 ohara 5318:
1.10 ohara 5319: fi
5320: fi
5321: ac_ct_AR=$ac_cv_prog_ac_ct_AR
5322: if test -n "$ac_ct_AR"; then
5323: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5324: $as_echo "$ac_ct_AR" >&6; }
5325: else
5326: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327: $as_echo "no" >&6; }
5328: fi
1.9 ohara 5329:
5330:
1.10 ohara 5331: test -n "$ac_ct_AR" && break
5332: done
1.9 ohara 5333:
1.10 ohara 5334: if test "x$ac_ct_AR" = x; then
5335: AR="false"
5336: else
5337: case $cross_compiling:$ac_tool_warned in
5338: yes:)
5339: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5340: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5341: ac_tool_warned=yes ;;
5342: esac
5343: AR=$ac_ct_AR
5344: fi
5345: fi
1.9 ohara 5346:
1.10 ohara 5347: : ${AR=ar}
5348: : ${AR_FLAGS=cru}
1.9 ohara 5349:
5350:
5351:
5352:
5353:
5354:
5355:
5356:
5357:
5358:
5359:
1.10 ohara 5360: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5361: $as_echo_n "checking for archiver @FILE support... " >&6; }
5362: if ${lt_cv_ar_at_file+:} false; then :
5363: $as_echo_n "(cached) " >&6
5364: else
5365: lt_cv_ar_at_file=no
5366: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367: /* end confdefs.h. */
1.9 ohara 5368:
1.10 ohara 5369: int
5370: main ()
5371: {
1.9 ohara 5372:
1.10 ohara 5373: ;
5374: return 0;
5375: }
5376: _ACEOF
5377: if ac_fn_c_try_compile "$LINENO"; then :
5378: echo conftest.$ac_objext > conftest.lst
5379: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5380: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5381: (eval $lt_ar_try) 2>&5
5382: ac_status=$?
5383: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5384: test $ac_status = 0; }
5385: if test "$ac_status" -eq 0; then
5386: # Ensure the archiver fails upon bogus file names.
5387: rm -f conftest.$ac_objext libconftest.a
5388: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5389: (eval $lt_ar_try) 2>&5
5390: ac_status=$?
5391: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5392: test $ac_status = 0; }
5393: if test "$ac_status" -ne 0; then
5394: lt_cv_ar_at_file=@
5395: fi
5396: fi
5397: rm -f conftest.* libconftest.a
1.9 ohara 5398:
5399: fi
1.10 ohara 5400: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9 ohara 5401:
1.10 ohara 5402: fi
5403: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5404: $as_echo "$lt_cv_ar_at_file" >&6; }
1.9 ohara 5405:
1.10 ohara 5406: if test "x$lt_cv_ar_at_file" = xno; then
5407: archiver_list_spec=
1.9 ohara 5408: else
1.10 ohara 5409: archiver_list_spec=$lt_cv_ar_at_file
1.9 ohara 5410: fi
5411:
5412:
5413:
5414:
5415:
5416:
5417:
1.10 ohara 5418: if test -n "$ac_tool_prefix"; then
5419: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5420: set dummy ${ac_tool_prefix}strip; ac_word=$2
5421: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5422: $as_echo_n "checking for $ac_word... " >&6; }
5423: if ${ac_cv_prog_STRIP+:} false; then :
5424: $as_echo_n "(cached) " >&6
5425: else
5426: if test -n "$STRIP"; then
5427: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5428: else
5429: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430: for as_dir in $PATH
5431: do
5432: IFS=$as_save_IFS
5433: test -z "$as_dir" && as_dir=.
5434: for ac_exec_ext in '' $ac_executable_extensions; do
5435: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5436: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5437: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5438: break 2
1.9 ohara 5439: fi
1.10 ohara 5440: done
5441: done
5442: IFS=$as_save_IFS
1.9 ohara 5443:
1.10 ohara 5444: fi
5445: fi
5446: STRIP=$ac_cv_prog_STRIP
5447: if test -n "$STRIP"; then
5448: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5449: $as_echo "$STRIP" >&6; }
5450: else
5451: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5452: $as_echo "no" >&6; }
5453: fi
1.9 ohara 5454:
5455:
1.10 ohara 5456: fi
5457: if test -z "$ac_cv_prog_STRIP"; then
5458: ac_ct_STRIP=$STRIP
5459: # Extract the first word of "strip", so it can be a program name with args.
5460: set dummy strip; ac_word=$2
5461: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5462: $as_echo_n "checking for $ac_word... " >&6; }
5463: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5464: $as_echo_n "(cached) " >&6
5465: else
5466: if test -n "$ac_ct_STRIP"; then
5467: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5468: else
5469: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470: for as_dir in $PATH
5471: do
5472: IFS=$as_save_IFS
5473: test -z "$as_dir" && as_dir=.
5474: for ac_exec_ext in '' $ac_executable_extensions; do
5475: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5476: ac_cv_prog_ac_ct_STRIP="strip"
5477: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5478: break 2
5479: fi
5480: done
5481: done
5482: IFS=$as_save_IFS
1.9 ohara 5483:
1.10 ohara 5484: fi
5485: fi
5486: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5487: if test -n "$ac_ct_STRIP"; then
5488: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5489: $as_echo "$ac_ct_STRIP" >&6; }
5490: else
5491: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492: $as_echo "no" >&6; }
5493: fi
1.9 ohara 5494:
1.10 ohara 5495: if test "x$ac_ct_STRIP" = x; then
5496: STRIP=":"
5497: else
5498: case $cross_compiling:$ac_tool_warned in
5499: yes:)
5500: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5501: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5502: ac_tool_warned=yes ;;
5503: esac
5504: STRIP=$ac_ct_STRIP
5505: fi
5506: else
5507: STRIP="$ac_cv_prog_STRIP"
5508: fi
1.9 ohara 5509:
1.10 ohara 5510: test -z "$STRIP" && STRIP=:
1.9 ohara 5511:
5512:
5513:
5514:
5515:
5516:
1.10 ohara 5517: if test -n "$ac_tool_prefix"; then
5518: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5519: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5520: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5521: $as_echo_n "checking for $ac_word... " >&6; }
5522: if ${ac_cv_prog_RANLIB+:} false; then :
5523: $as_echo_n "(cached) " >&6
5524: else
5525: if test -n "$RANLIB"; then
5526: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5527: else
5528: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529: for as_dir in $PATH
5530: do
5531: IFS=$as_save_IFS
5532: test -z "$as_dir" && as_dir=.
5533: for ac_exec_ext in '' $ac_executable_extensions; do
5534: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5535: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5536: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5537: break 2
5538: fi
5539: done
5540: done
5541: IFS=$as_save_IFS
1.9 ohara 5542:
1.10 ohara 5543: fi
5544: fi
5545: RANLIB=$ac_cv_prog_RANLIB
5546: if test -n "$RANLIB"; then
5547: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5548: $as_echo "$RANLIB" >&6; }
5549: else
5550: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5551: $as_echo "no" >&6; }
5552: fi
1.9 ohara 5553:
5554:
5555: fi
1.10 ohara 5556: if test -z "$ac_cv_prog_RANLIB"; then
5557: ac_ct_RANLIB=$RANLIB
5558: # Extract the first word of "ranlib", so it can be a program name with args.
5559: set dummy ranlib; ac_word=$2
5560: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5561: $as_echo_n "checking for $ac_word... " >&6; }
5562: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5563: $as_echo_n "(cached) " >&6
5564: else
5565: if test -n "$ac_ct_RANLIB"; then
5566: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1.9 ohara 5567: else
1.10 ohara 5568: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569: for as_dir in $PATH
5570: do
5571: IFS=$as_save_IFS
5572: test -z "$as_dir" && as_dir=.
5573: for ac_exec_ext in '' $ac_executable_extensions; do
5574: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5575: ac_cv_prog_ac_ct_RANLIB="ranlib"
5576: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5577: break 2
5578: fi
1.9 ohara 5579: done
1.10 ohara 5580: done
5581: IFS=$as_save_IFS
1.9 ohara 5582:
1.10 ohara 5583: fi
5584: fi
5585: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5586: if test -n "$ac_ct_RANLIB"; then
5587: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5588: $as_echo "$ac_ct_RANLIB" >&6; }
5589: else
5590: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5591: $as_echo "no" >&6; }
5592: fi
1.9 ohara 5593:
1.10 ohara 5594: if test "x$ac_ct_RANLIB" = x; then
5595: RANLIB=":"
5596: else
5597: case $cross_compiling:$ac_tool_warned in
5598: yes:)
5599: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5600: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5601: ac_tool_warned=yes ;;
5602: esac
5603: RANLIB=$ac_ct_RANLIB
5604: fi
1.9 ohara 5605: else
1.10 ohara 5606: RANLIB="$ac_cv_prog_RANLIB"
1.9 ohara 5607: fi
5608:
1.10 ohara 5609: test -z "$RANLIB" && RANLIB=:
5610:
5611:
5612:
5613:
1.9 ohara 5614:
5615:
1.10 ohara 5616: # Determine commands to create old-style static archives.
5617: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5618: old_postinstall_cmds='chmod 644 $oldlib'
5619: old_postuninstall_cmds=
1.9 ohara 5620:
1.10 ohara 5621: if test -n "$RANLIB"; then
5622: case $host_os in
5623: openbsd*)
5624: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1.9 ohara 5625: ;;
5626: *)
1.10 ohara 5627: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1.9 ohara 5628: ;;
5629: esac
1.10 ohara 5630: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1.9 ohara 5631: fi
5632:
1.10 ohara 5633: case $host_os in
5634: darwin*)
5635: lock_old_archive_extraction=yes ;;
5636: *)
5637: lock_old_archive_extraction=no ;;
1.9 ohara 5638: esac
5639:
5640:
5641:
5642:
5643:
5644:
5645:
5646:
5647:
5648:
5649:
5650:
5651:
5652:
5653:
5654:
5655:
5656:
5657:
5658:
5659:
5660:
5661:
5662:
5663:
5664:
5665:
5666:
5667:
5668:
5669:
5670:
5671:
5672:
5673:
5674:
5675:
5676:
5677:
1.10 ohara 5678: # If no C compiler was specified, use CC.
5679: LTCC=${LTCC-"$CC"}
5680:
5681: # If no C compiler flags were specified, use CFLAGS.
5682: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.9 ohara 5683:
1.10 ohara 5684: # Allow CC to be a program name with arguments.
5685: compiler=$CC
1.9 ohara 5686:
5687:
1.10 ohara 5688: # Check for command to grab the raw symbol name followed by C symbol from nm.
5689: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5690: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5691: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5692: $as_echo_n "(cached) " >&6
5693: else
1.9 ohara 5694:
1.10 ohara 5695: # These are sane defaults that work on at least a few old systems.
5696: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
1.9 ohara 5697:
1.10 ohara 5698: # Character class describing NM global symbol codes.
5699: symcode='[BCDEGRST]'
1.9 ohara 5700:
1.10 ohara 5701: # Regexp to match symbols that can be accessed directly from C.
5702: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1.9 ohara 5703:
1.10 ohara 5704: # Define system-specific variables.
5705: case $host_os in
5706: aix*)
5707: symcode='[BCDT]'
5708: ;;
5709: cygwin* | mingw* | pw32* | cegcc*)
5710: symcode='[ABCDGISTW]'
5711: ;;
5712: hpux*)
5713: if test "$host_cpu" = ia64; then
5714: symcode='[ABCDEGRST]'
5715: fi
5716: ;;
5717: irix* | nonstopux*)
5718: symcode='[BCDEGRST]'
5719: ;;
5720: osf*)
5721: symcode='[BCDEGQRST]'
5722: ;;
5723: solaris*)
5724: symcode='[BDRT]'
5725: ;;
5726: sco3.2v5*)
5727: symcode='[DT]'
5728: ;;
5729: sysv4.2uw2*)
5730: symcode='[DT]'
5731: ;;
5732: sysv5* | sco5v6* | unixware* | OpenUNIX*)
5733: symcode='[ABDT]'
5734: ;;
5735: sysv4)
5736: symcode='[DFNSTU]'
5737: ;;
5738: esac
1.9 ohara 5739:
1.10 ohara 5740: # If we're using GNU nm, then use its standard symbol codes.
5741: case `$NM -V 2>&1` in
5742: *GNU* | *'with BFD'*)
5743: symcode='[ABCDGIRSTW]' ;;
5744: esac
1.9 ohara 5745:
1.10 ohara 5746: # Transform an extracted symbol line into a proper C declaration.
5747: # Some systems (esp. on ia64) link data and code symbols differently,
5748: # so use this general approach.
5749: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1.9 ohara 5750:
1.10 ohara 5751: # Transform an extracted symbol line into symbol name and symbol address
5752: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5753: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
1.9 ohara 5754:
1.10 ohara 5755: # Handle CRLF in mingw tool chain
5756: opt_cr=
5757: case $build_os in
5758: mingw*)
5759: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5760: ;;
1.9 ohara 5761: esac
5762:
1.10 ohara 5763: # Try without a prefix underscore, then with it.
5764: for ac_symprfx in "" "_"; do
5765:
5766: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5767: symxfrm="\\1 $ac_symprfx\\2 \\2"
5768:
5769: # Write the raw and C identifiers.
5770: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5771: # Fake it for dumpbin and say T for any non-static function
5772: # and D for any global variable.
5773: # Also find C++ and __fastcall symbols from MSVC++,
5774: # which start with @ or ?.
5775: lt_cv_sys_global_symbol_pipe="$AWK '"\
5776: " {last_section=section; section=\$ 3};"\
5777: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5778: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5779: " \$ 0!~/External *\|/{next};"\
5780: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5781: " {if(hide[section]) next};"\
5782: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5783: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5784: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5785: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5786: " ' prfx=^$ac_symprfx"
5787: else
5788: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5789: fi
5790: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
1.9 ohara 5791:
1.10 ohara 5792: # Check to see that the pipe works correctly.
5793: pipe_works=no
1.9 ohara 5794:
1.10 ohara 5795: rm -f conftest*
5796: cat > conftest.$ac_ext <<_LT_EOF
5797: #ifdef __cplusplus
5798: extern "C" {
5799: #endif
5800: char nm_test_var;
5801: void nm_test_func(void);
5802: void nm_test_func(void){}
5803: #ifdef __cplusplus
5804: }
5805: #endif
5806: int main(){nm_test_var='a';nm_test_func();return(0);}
5807: _LT_EOF
1.9 ohara 5808:
1.10 ohara 5809: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.9 ohara 5810: (eval $ac_compile) 2>&5
5811: ac_status=$?
1.10 ohara 5812: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5813: test $ac_status = 0; }; then
5814: # Now try to grab the symbols.
5815: nlist=conftest.nm
5816: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5817: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5818: ac_status=$?
5819: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5820: test $ac_status = 0; } && test -s "$nlist"; then
5821: # Try sorting and uniquifying the output.
5822: if sort "$nlist" | uniq > "$nlist"T; then
5823: mv -f "$nlist"T "$nlist"
5824: else
5825: rm -f "$nlist"T
5826: fi
5827:
5828: # Make sure that we snagged all the symbols we need.
5829: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5830: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5831: cat <<_LT_EOF > conftest.$ac_ext
5832: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5833: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5834: /* DATA imports from DLLs on WIN32 con't be const, because runtime
5835: relocations are performed -- see ld's documentation on pseudo-relocs. */
5836: # define LT_DLSYM_CONST
5837: #elif defined(__osf__)
5838: /* This system does not cope well with relocations in const data. */
5839: # define LT_DLSYM_CONST
5840: #else
5841: # define LT_DLSYM_CONST const
5842: #endif
5843:
5844: #ifdef __cplusplus
5845: extern "C" {
5846: #endif
5847:
5848: _LT_EOF
5849: # Now generate the symbol file.
5850: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5851:
5852: cat <<_LT_EOF >> conftest.$ac_ext
1.9 ohara 5853:
1.10 ohara 5854: /* The mapping between symbol names and symbols. */
5855: LT_DLSYM_CONST struct {
5856: const char *name;
5857: void *address;
5858: }
5859: lt__PROGRAM__LTX_preloaded_symbols[] =
5860: {
5861: { "@PROGRAM@", (void *) 0 },
5862: _LT_EOF
5863: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5864: cat <<\_LT_EOF >> conftest.$ac_ext
5865: {0, (void *) 0}
5866: };
1.9 ohara 5867:
1.10 ohara 5868: /* This works around a problem in FreeBSD linker */
5869: #ifdef FREEBSD_WORKAROUND
5870: static const void *lt_preloaded_setup() {
5871: return lt__PROGRAM__LTX_preloaded_symbols;
5872: }
5873: #endif
1.9 ohara 5874:
1.10 ohara 5875: #ifdef __cplusplus
5876: }
5877: #endif
5878: _LT_EOF
5879: # Now try linking the two files.
5880: mv conftest.$ac_objext conftstm.$ac_objext
5881: lt_globsym_save_LIBS=$LIBS
5882: lt_globsym_save_CFLAGS=$CFLAGS
5883: LIBS="conftstm.$ac_objext"
5884: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5885: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5886: (eval $ac_link) 2>&5
5887: ac_status=$?
5888: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5889: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5890: pipe_works=yes
5891: fi
5892: LIBS=$lt_globsym_save_LIBS
5893: CFLAGS=$lt_globsym_save_CFLAGS
5894: else
5895: echo "cannot find nm_test_func in $nlist" >&5
5896: fi
5897: else
5898: echo "cannot find nm_test_var in $nlist" >&5
5899: fi
5900: else
5901: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5902: fi
5903: else
5904: echo "$progname: failed program was:" >&5
5905: cat conftest.$ac_ext >&5
5906: fi
5907: rm -rf conftest* conftst*
1.9 ohara 5908:
1.10 ohara 5909: # Do not use the global_symbol_pipe unless it works.
5910: if test "$pipe_works" = yes; then
5911: break
5912: else
5913: lt_cv_sys_global_symbol_pipe=
5914: fi
5915: done
1.9 ohara 5916:
1.10 ohara 5917: fi
1.9 ohara 5918:
1.10 ohara 5919: if test -z "$lt_cv_sys_global_symbol_pipe"; then
5920: lt_cv_sys_global_symbol_to_cdecl=
5921: fi
5922: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5923: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5924: $as_echo "failed" >&6; }
1.9 ohara 5925: else
1.10 ohara 5926: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5927: $as_echo "ok" >&6; }
1.9 ohara 5928: fi
5929:
1.10 ohara 5930: # Response file support.
5931: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5932: nm_file_list_spec='@'
5933: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5934: nm_file_list_spec='@'
5935: fi
1.9 ohara 5936:
5937:
5938:
5939:
5940:
5941:
5942:
5943:
5944:
5945:
5946:
5947:
5948:
5949:
5950:
5951:
5952:
5953:
5954:
5955:
5956:
5957:
5958:
5959:
5960:
5961:
5962:
1.10 ohara 5963: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5964: $as_echo_n "checking for sysroot... " >&6; }
1.9 ohara 5965:
1.10 ohara 5966: # Check whether --with-sysroot was given.
5967: if test "${with_sysroot+set}" = set; then :
5968: withval=$with_sysroot;
1.9 ohara 5969: else
1.10 ohara 5970: with_sysroot=no
1.9 ohara 5971: fi
5972:
5973:
1.10 ohara 5974: lt_sysroot=
5975: case ${with_sysroot} in #(
5976: yes)
5977: if test "$GCC" = yes; then
5978: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5979: fi
5980: ;; #(
5981: /*)
5982: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5983: ;; #(
5984: no|'')
5985: ;; #(
5986: *)
5987: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5988: $as_echo "${with_sysroot}" >&6; }
5989: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5990: ;;
5991: esac
5992:
5993: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5994: $as_echo "${lt_sysroot:-no}" >&6; }
5995:
5996:
5997:
5998:
5999:
6000: # Check whether --enable-libtool-lock was given.
6001: if test "${enable_libtool_lock+set}" = set; then :
6002: enableval=$enable_libtool_lock;
6003: fi
1.9 ohara 6004:
1.10 ohara 6005: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1.9 ohara 6006:
1.10 ohara 6007: # Some flags need to be propagated to the compiler or linker for good
6008: # libtool support.
6009: case $host in
6010: ia64-*-hpux*)
6011: # Find out which ABI we are using.
6012: echo 'int i;' > conftest.$ac_ext
6013: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6014: (eval $ac_compile) 2>&5
6015: ac_status=$?
6016: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6017: test $ac_status = 0; }; then
6018: case `/usr/bin/file conftest.$ac_objext` in
6019: *ELF-32*)
6020: HPUX_IA64_MODE="32"
6021: ;;
6022: *ELF-64*)
6023: HPUX_IA64_MODE="64"
6024: ;;
1.9 ohara 6025: esac
1.10 ohara 6026: fi
6027: rm -rf conftest*
6028: ;;
6029: *-*-irix6*)
6030: # Find out which ABI we are using.
6031: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6032: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6033: (eval $ac_compile) 2>&5
6034: ac_status=$?
6035: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6036: test $ac_status = 0; }; then
6037: if test "$lt_cv_prog_gnu_ld" = yes; then
6038: case `/usr/bin/file conftest.$ac_objext` in
6039: *32-bit*)
6040: LD="${LD-ld} -melf32bsmip"
6041: ;;
6042: *N32*)
6043: LD="${LD-ld} -melf32bmipn32"
6044: ;;
6045: *64-bit*)
6046: LD="${LD-ld} -melf64bmip"
6047: ;;
6048: esac
1.9 ohara 6049: else
1.10 ohara 6050: case `/usr/bin/file conftest.$ac_objext` in
6051: *32-bit*)
6052: LD="${LD-ld} -32"
6053: ;;
6054: *N32*)
6055: LD="${LD-ld} -n32"
6056: ;;
6057: *64-bit*)
6058: LD="${LD-ld} -64"
6059: ;;
6060: esac
1.9 ohara 6061: fi
6062: fi
1.10 ohara 6063: rm -rf conftest*
1.9 ohara 6064: ;;
6065:
1.10 ohara 6066: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6067: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6068: # Find out which ABI we are using.
6069: echo 'int i;' > conftest.$ac_ext
6070: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6071: (eval $ac_compile) 2>&5
6072: ac_status=$?
6073: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6074: test $ac_status = 0; }; then
6075: case `/usr/bin/file conftest.o` in
6076: *32-bit*)
6077: case $host in
6078: x86_64-*kfreebsd*-gnu)
6079: LD="${LD-ld} -m elf_i386_fbsd"
6080: ;;
6081: x86_64-*linux*)
6082: LD="${LD-ld} -m elf_i386"
6083: ;;
6084: ppc64-*linux*|powerpc64-*linux*)
6085: LD="${LD-ld} -m elf32ppclinux"
6086: ;;
6087: s390x-*linux*)
6088: LD="${LD-ld} -m elf_s390"
6089: ;;
6090: sparc64-*linux*)
6091: LD="${LD-ld} -m elf32_sparc"
6092: ;;
6093: esac
6094: ;;
6095: *64-bit*)
6096: case $host in
6097: x86_64-*kfreebsd*-gnu)
6098: LD="${LD-ld} -m elf_x86_64_fbsd"
6099: ;;
6100: x86_64-*linux*)
6101: LD="${LD-ld} -m elf_x86_64"
6102: ;;
6103: ppc*-*linux*|powerpc*-*linux*)
6104: LD="${LD-ld} -m elf64ppc"
6105: ;;
6106: s390*-*linux*|s390*-*tpf*)
6107: LD="${LD-ld} -m elf64_s390"
6108: ;;
6109: sparc*-*linux*)
6110: LD="${LD-ld} -m elf64_sparc"
6111: ;;
6112: esac
6113: ;;
6114: esac
6115: fi
6116: rm -rf conftest*
1.9 ohara 6117: ;;
6118:
1.10 ohara 6119: *-*-sco3.2v5*)
6120: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6121: SAVE_CFLAGS="$CFLAGS"
6122: CFLAGS="$CFLAGS -belf"
6123: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6124: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6125: if ${lt_cv_cc_needs_belf+:} false; then :
6126: $as_echo_n "(cached) " >&6
6127: else
6128: ac_ext=c
6129: ac_cpp='$CPP $CPPFLAGS'
6130: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6131: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6132: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.9 ohara 6133:
1.10 ohara 6134: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6135: /* end confdefs.h. */
1.9 ohara 6136:
1.10 ohara 6137: int
6138: main ()
6139: {
1.9 ohara 6140:
1.10 ohara 6141: ;
6142: return 0;
6143: }
6144: _ACEOF
6145: if ac_fn_c_try_link "$LINENO"; then :
6146: lt_cv_cc_needs_belf=yes
6147: else
6148: lt_cv_cc_needs_belf=no
6149: fi
6150: rm -f core conftest.err conftest.$ac_objext \
6151: conftest$ac_exeext conftest.$ac_ext
6152: ac_ext=c
6153: ac_cpp='$CPP $CPPFLAGS'
6154: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6155: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6156: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.9 ohara 6157:
1.10 ohara 6158: fi
6159: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6160: $as_echo "$lt_cv_cc_needs_belf" >&6; }
6161: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6162: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6163: CFLAGS="$SAVE_CFLAGS"
6164: fi
6165: ;;
6166: *-*solaris*)
6167: # Find out which ABI we are using.
6168: echo 'int i;' > conftest.$ac_ext
6169: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6170: (eval $ac_compile) 2>&5
6171: ac_status=$?
6172: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6173: test $ac_status = 0; }; then
6174: case `/usr/bin/file conftest.o` in
6175: *64-bit*)
6176: case $lt_cv_prog_gnu_ld in
6177: yes*)
6178: case $host in
6179: i?86-*-solaris*)
6180: LD="${LD-ld} -m elf_x86_64"
6181: ;;
6182: sparc*-*-solaris*)
6183: LD="${LD-ld} -m elf64_sparc"
6184: ;;
6185: esac
6186: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6187: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6188: LD="${LD-ld}_sol2"
6189: fi
6190: ;;
6191: *)
6192: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6193: LD="${LD-ld} -64"
6194: fi
6195: ;;
6196: esac
1.9 ohara 6197: ;;
6198: esac
1.10 ohara 6199: fi
6200: rm -rf conftest*
6201: ;;
6202: esac
1.9 ohara 6203:
1.10 ohara 6204: need_locks="$enable_libtool_lock"
1.9 ohara 6205:
1.10 ohara 6206: if test -n "$ac_tool_prefix"; then
6207: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6208: set dummy ${ac_tool_prefix}mt; ac_word=$2
6209: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6210: $as_echo_n "checking for $ac_word... " >&6; }
6211: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6212: $as_echo_n "(cached) " >&6
6213: else
6214: if test -n "$MANIFEST_TOOL"; then
6215: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6216: else
6217: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218: for as_dir in $PATH
6219: do
6220: IFS=$as_save_IFS
6221: test -z "$as_dir" && as_dir=.
6222: for ac_exec_ext in '' $ac_executable_extensions; do
6223: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6224: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6225: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6226: break 2
1.9 ohara 6227: fi
1.10 ohara 6228: done
6229: done
6230: IFS=$as_save_IFS
6231:
6232: fi
6233: fi
6234: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6235: if test -n "$MANIFEST_TOOL"; then
6236: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6237: $as_echo "$MANIFEST_TOOL" >&6; }
6238: else
6239: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6240: $as_echo "no" >&6; }
6241: fi
1.9 ohara 6242:
6243:
1.10 ohara 6244: fi
6245: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6246: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6247: # Extract the first word of "mt", so it can be a program name with args.
6248: set dummy mt; ac_word=$2
6249: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6250: $as_echo_n "checking for $ac_word... " >&6; }
6251: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6252: $as_echo_n "(cached) " >&6
6253: else
6254: if test -n "$ac_ct_MANIFEST_TOOL"; then
6255: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6256: else
6257: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258: for as_dir in $PATH
6259: do
6260: IFS=$as_save_IFS
6261: test -z "$as_dir" && as_dir=.
6262: for ac_exec_ext in '' $ac_executable_extensions; do
6263: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6264: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6265: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6266: break 2
6267: fi
6268: done
6269: done
6270: IFS=$as_save_IFS
1.9 ohara 6271:
1.10 ohara 6272: fi
6273: fi
6274: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6275: if test -n "$ac_ct_MANIFEST_TOOL"; then
6276: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6277: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6278: else
6279: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6280: $as_echo "no" >&6; }
6281: fi
1.9 ohara 6282:
1.10 ohara 6283: if test "x$ac_ct_MANIFEST_TOOL" = x; then
6284: MANIFEST_TOOL=":"
1.9 ohara 6285: else
1.10 ohara 6286: case $cross_compiling:$ac_tool_warned in
6287: yes:)
6288: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6289: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6290: ac_tool_warned=yes ;;
6291: esac
6292: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6293: fi
6294: else
6295: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6296: fi
6297:
6298: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6299: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6300: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6301: if ${lt_cv_path_mainfest_tool+:} false; then :
6302: $as_echo_n "(cached) " >&6
6303: else
6304: lt_cv_path_mainfest_tool=no
6305: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6306: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6307: cat conftest.err >&5
6308: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6309: lt_cv_path_mainfest_tool=yes
1.9 ohara 6310: fi
1.10 ohara 6311: rm -f conftest*
6312: fi
6313: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6314: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6315: if test "x$lt_cv_path_mainfest_tool" != xyes; then
6316: MANIFEST_TOOL=:
6317: fi
6318:
6319:
1.9 ohara 6320:
6321:
6322:
6323:
6324: case $host_os in
1.10 ohara 6325: rhapsody* | darwin*)
6326: if test -n "$ac_tool_prefix"; then
6327: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6328: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6329: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6330: $as_echo_n "checking for $ac_word... " >&6; }
6331: if ${ac_cv_prog_DSYMUTIL+:} false; then :
6332: $as_echo_n "(cached) " >&6
6333: else
6334: if test -n "$DSYMUTIL"; then
6335: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6336: else
6337: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338: for as_dir in $PATH
6339: do
6340: IFS=$as_save_IFS
6341: test -z "$as_dir" && as_dir=.
6342: for ac_exec_ext in '' $ac_executable_extensions; do
6343: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6344: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6345: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6346: break 2
6347: fi
6348: done
6349: done
6350: IFS=$as_save_IFS
6351:
6352: fi
6353: fi
6354: DSYMUTIL=$ac_cv_prog_DSYMUTIL
6355: if test -n "$DSYMUTIL"; then
6356: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6357: $as_echo "$DSYMUTIL" >&6; }
6358: else
6359: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360: $as_echo "no" >&6; }
6361: fi
6362:
6363:
6364: fi
6365: if test -z "$ac_cv_prog_DSYMUTIL"; then
6366: ac_ct_DSYMUTIL=$DSYMUTIL
6367: # Extract the first word of "dsymutil", so it can be a program name with args.
6368: set dummy dsymutil; ac_word=$2
6369: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6370: $as_echo_n "checking for $ac_word... " >&6; }
6371: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6372: $as_echo_n "(cached) " >&6
6373: else
6374: if test -n "$ac_ct_DSYMUTIL"; then
6375: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6376: else
6377: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378: for as_dir in $PATH
6379: do
6380: IFS=$as_save_IFS
6381: test -z "$as_dir" && as_dir=.
6382: for ac_exec_ext in '' $ac_executable_extensions; do
6383: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6384: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6385: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6386: break 2
6387: fi
6388: done
6389: done
6390: IFS=$as_save_IFS
1.9 ohara 6391:
1.10 ohara 6392: fi
6393: fi
6394: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6395: if test -n "$ac_ct_DSYMUTIL"; then
6396: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6397: $as_echo "$ac_ct_DSYMUTIL" >&6; }
6398: else
6399: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6400: $as_echo "no" >&6; }
6401: fi
1.9 ohara 6402:
1.10 ohara 6403: if test "x$ac_ct_DSYMUTIL" = x; then
6404: DSYMUTIL=":"
6405: else
6406: case $cross_compiling:$ac_tool_warned in
6407: yes:)
6408: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6409: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6410: ac_tool_warned=yes ;;
6411: esac
6412: DSYMUTIL=$ac_ct_DSYMUTIL
6413: fi
6414: else
6415: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6416: fi
1.9 ohara 6417:
1.10 ohara 6418: if test -n "$ac_tool_prefix"; then
6419: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6420: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6421: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6422: $as_echo_n "checking for $ac_word... " >&6; }
6423: if ${ac_cv_prog_NMEDIT+:} false; then :
6424: $as_echo_n "(cached) " >&6
6425: else
6426: if test -n "$NMEDIT"; then
6427: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6428: else
6429: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430: for as_dir in $PATH
6431: do
6432: IFS=$as_save_IFS
6433: test -z "$as_dir" && as_dir=.
6434: for ac_exec_ext in '' $ac_executable_extensions; do
6435: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6436: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6437: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6438: break 2
1.9 ohara 6439: fi
1.10 ohara 6440: done
6441: done
6442: IFS=$as_save_IFS
6443:
6444: fi
6445: fi
6446: NMEDIT=$ac_cv_prog_NMEDIT
6447: if test -n "$NMEDIT"; then
6448: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6449: $as_echo "$NMEDIT" >&6; }
6450: else
6451: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452: $as_echo "no" >&6; }
6453: fi
6454:
1.9 ohara 6455:
1.10 ohara 6456: fi
6457: if test -z "$ac_cv_prog_NMEDIT"; then
6458: ac_ct_NMEDIT=$NMEDIT
6459: # Extract the first word of "nmedit", so it can be a program name with args.
6460: set dummy nmedit; ac_word=$2
6461: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6462: $as_echo_n "checking for $ac_word... " >&6; }
6463: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6464: $as_echo_n "(cached) " >&6
6465: else
6466: if test -n "$ac_ct_NMEDIT"; then
6467: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6468: else
6469: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470: for as_dir in $PATH
6471: do
6472: IFS=$as_save_IFS
6473: test -z "$as_dir" && as_dir=.
6474: for ac_exec_ext in '' $ac_executable_extensions; do
6475: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6476: ac_cv_prog_ac_ct_NMEDIT="nmedit"
6477: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6478: break 2
6479: fi
6480: done
6481: done
6482: IFS=$as_save_IFS
1.9 ohara 6483:
1.10 ohara 6484: fi
6485: fi
6486: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6487: if test -n "$ac_ct_NMEDIT"; then
6488: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6489: $as_echo "$ac_ct_NMEDIT" >&6; }
6490: else
6491: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492: $as_echo "no" >&6; }
6493: fi
1.9 ohara 6494:
1.10 ohara 6495: if test "x$ac_ct_NMEDIT" = x; then
6496: NMEDIT=":"
1.9 ohara 6497: else
1.10 ohara 6498: case $cross_compiling:$ac_tool_warned in
6499: yes:)
6500: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6501: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6502: ac_tool_warned=yes ;;
6503: esac
6504: NMEDIT=$ac_ct_NMEDIT
6505: fi
6506: else
6507: NMEDIT="$ac_cv_prog_NMEDIT"
6508: fi
6509:
6510: if test -n "$ac_tool_prefix"; then
6511: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6512: set dummy ${ac_tool_prefix}lipo; ac_word=$2
6513: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6514: $as_echo_n "checking for $ac_word... " >&6; }
6515: if ${ac_cv_prog_LIPO+:} false; then :
6516: $as_echo_n "(cached) " >&6
6517: else
6518: if test -n "$LIPO"; then
6519: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6520: else
6521: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522: for as_dir in $PATH
6523: do
6524: IFS=$as_save_IFS
6525: test -z "$as_dir" && as_dir=.
6526: for ac_exec_ext in '' $ac_executable_extensions; do
6527: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6528: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6529: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6530: break 2
1.9 ohara 6531: fi
1.10 ohara 6532: done
6533: done
6534: IFS=$as_save_IFS
6535:
6536: fi
6537: fi
6538: LIPO=$ac_cv_prog_LIPO
6539: if test -n "$LIPO"; then
6540: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6541: $as_echo "$LIPO" >&6; }
6542: else
6543: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544: $as_echo "no" >&6; }
6545: fi
6546:
1.9 ohara 6547:
1.10 ohara 6548: fi
6549: if test -z "$ac_cv_prog_LIPO"; then
6550: ac_ct_LIPO=$LIPO
6551: # Extract the first word of "lipo", so it can be a program name with args.
6552: set dummy lipo; ac_word=$2
6553: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6554: $as_echo_n "checking for $ac_word... " >&6; }
6555: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6556: $as_echo_n "(cached) " >&6
6557: else
6558: if test -n "$ac_ct_LIPO"; then
6559: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6560: else
6561: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562: for as_dir in $PATH
6563: do
6564: IFS=$as_save_IFS
6565: test -z "$as_dir" && as_dir=.
6566: for ac_exec_ext in '' $ac_executable_extensions; do
6567: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6568: ac_cv_prog_ac_ct_LIPO="lipo"
6569: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6570: break 2
6571: fi
6572: done
6573: done
6574: IFS=$as_save_IFS
1.9 ohara 6575:
1.10 ohara 6576: fi
6577: fi
6578: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6579: if test -n "$ac_ct_LIPO"; then
6580: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6581: $as_echo "$ac_ct_LIPO" >&6; }
6582: else
6583: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6584: $as_echo "no" >&6; }
6585: fi
1.9 ohara 6586:
1.10 ohara 6587: if test "x$ac_ct_LIPO" = x; then
6588: LIPO=":"
1.9 ohara 6589: else
1.10 ohara 6590: case $cross_compiling:$ac_tool_warned in
6591: yes:)
6592: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6593: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6594: ac_tool_warned=yes ;;
6595: esac
6596: LIPO=$ac_ct_LIPO
1.9 ohara 6597: fi
1.10 ohara 6598: else
6599: LIPO="$ac_cv_prog_LIPO"
6600: fi
1.9 ohara 6601:
1.10 ohara 6602: if test -n "$ac_tool_prefix"; then
6603: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6604: set dummy ${ac_tool_prefix}otool; ac_word=$2
6605: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6606: $as_echo_n "checking for $ac_word... " >&6; }
6607: if ${ac_cv_prog_OTOOL+:} false; then :
6608: $as_echo_n "(cached) " >&6
6609: else
6610: if test -n "$OTOOL"; then
6611: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6612: else
6613: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614: for as_dir in $PATH
6615: do
6616: IFS=$as_save_IFS
6617: test -z "$as_dir" && as_dir=.
6618: for ac_exec_ext in '' $ac_executable_extensions; do
6619: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6620: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6621: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6622: break 2
6623: fi
6624: done
6625: done
6626: IFS=$as_save_IFS
1.9 ohara 6627:
1.10 ohara 6628: fi
6629: fi
6630: OTOOL=$ac_cv_prog_OTOOL
6631: if test -n "$OTOOL"; then
6632: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6633: $as_echo "$OTOOL" >&6; }
6634: else
6635: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6636: $as_echo "no" >&6; }
6637: fi
1.9 ohara 6638:
6639:
1.10 ohara 6640: fi
6641: if test -z "$ac_cv_prog_OTOOL"; then
6642: ac_ct_OTOOL=$OTOOL
6643: # Extract the first word of "otool", so it can be a program name with args.
6644: set dummy otool; ac_word=$2
6645: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6646: $as_echo_n "checking for $ac_word... " >&6; }
6647: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6648: $as_echo_n "(cached) " >&6
6649: else
6650: if test -n "$ac_ct_OTOOL"; then
6651: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6652: else
6653: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654: for as_dir in $PATH
6655: do
6656: IFS=$as_save_IFS
6657: test -z "$as_dir" && as_dir=.
6658: for ac_exec_ext in '' $ac_executable_extensions; do
6659: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6660: ac_cv_prog_ac_ct_OTOOL="otool"
6661: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6662: break 2
1.9 ohara 6663: fi
1.10 ohara 6664: done
6665: done
6666: IFS=$as_save_IFS
1.9 ohara 6667:
1.10 ohara 6668: fi
6669: fi
6670: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6671: if test -n "$ac_ct_OTOOL"; then
6672: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6673: $as_echo "$ac_ct_OTOOL" >&6; }
6674: else
6675: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6676: $as_echo "no" >&6; }
6677: fi
1.9 ohara 6678:
1.10 ohara 6679: if test "x$ac_ct_OTOOL" = x; then
6680: OTOOL=":"
6681: else
6682: case $cross_compiling:$ac_tool_warned in
6683: yes:)
6684: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6685: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6686: ac_tool_warned=yes ;;
6687: esac
6688: OTOOL=$ac_ct_OTOOL
1.9 ohara 6689: fi
1.10 ohara 6690: else
6691: OTOOL="$ac_cv_prog_OTOOL"
6692: fi
1.9 ohara 6693:
1.10 ohara 6694: if test -n "$ac_tool_prefix"; then
6695: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6696: set dummy ${ac_tool_prefix}otool64; ac_word=$2
6697: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6698: $as_echo_n "checking for $ac_word... " >&6; }
6699: if ${ac_cv_prog_OTOOL64+:} false; then :
6700: $as_echo_n "(cached) " >&6
6701: else
6702: if test -n "$OTOOL64"; then
6703: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6704: else
6705: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706: for as_dir in $PATH
6707: do
6708: IFS=$as_save_IFS
6709: test -z "$as_dir" && as_dir=.
6710: for ac_exec_ext in '' $ac_executable_extensions; do
6711: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6712: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6713: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6714: break 2
1.9 ohara 6715: fi
1.10 ohara 6716: done
6717: done
6718: IFS=$as_save_IFS
1.9 ohara 6719:
1.10 ohara 6720: fi
6721: fi
6722: OTOOL64=$ac_cv_prog_OTOOL64
6723: if test -n "$OTOOL64"; then
6724: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6725: $as_echo "$OTOOL64" >&6; }
6726: else
6727: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6728: $as_echo "no" >&6; }
6729: fi
1.9 ohara 6730:
6731:
6732: fi
1.10 ohara 6733: if test -z "$ac_cv_prog_OTOOL64"; then
6734: ac_ct_OTOOL64=$OTOOL64
6735: # Extract the first word of "otool64", so it can be a program name with args.
6736: set dummy otool64; ac_word=$2
6737: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6738: $as_echo_n "checking for $ac_word... " >&6; }
6739: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6740: $as_echo_n "(cached) " >&6
6741: else
6742: if test -n "$ac_ct_OTOOL64"; then
6743: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6744: else
6745: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746: for as_dir in $PATH
6747: do
6748: IFS=$as_save_IFS
6749: test -z "$as_dir" && as_dir=.
6750: for ac_exec_ext in '' $ac_executable_extensions; do
6751: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6752: ac_cv_prog_ac_ct_OTOOL64="otool64"
6753: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6754: break 2
6755: fi
6756: done
6757: done
6758: IFS=$as_save_IFS
1.9 ohara 6759:
1.10 ohara 6760: fi
6761: fi
6762: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6763: if test -n "$ac_ct_OTOOL64"; then
6764: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6765: $as_echo "$ac_ct_OTOOL64" >&6; }
6766: else
6767: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6768: $as_echo "no" >&6; }
6769: fi
1.9 ohara 6770:
1.10 ohara 6771: if test "x$ac_ct_OTOOL64" = x; then
6772: OTOOL64=":"
1.9 ohara 6773: else
1.10 ohara 6774: case $cross_compiling:$ac_tool_warned in
6775: yes:)
6776: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6777: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6778: ac_tool_warned=yes ;;
6779: esac
6780: OTOOL64=$ac_ct_OTOOL64
1.9 ohara 6781: fi
6782: else
1.10 ohara 6783: OTOOL64="$ac_cv_prog_OTOOL64"
1.9 ohara 6784: fi
6785:
6786:
6787:
6788:
6789:
6790:
6791:
6792:
6793:
6794:
6795:
6796:
6797:
6798:
6799:
6800:
6801:
6802:
6803:
6804:
6805:
6806:
6807:
6808:
6809:
6810:
6811:
1.10 ohara 6812: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6813: $as_echo_n "checking for -single_module linker flag... " >&6; }
6814: if ${lt_cv_apple_cc_single_mod+:} false; then :
6815: $as_echo_n "(cached) " >&6
6816: else
6817: lt_cv_apple_cc_single_mod=no
6818: if test -z "${LT_MULTI_MODULE}"; then
6819: # By default we will add the -single_module flag. You can override
6820: # by either setting the environment variable LT_MULTI_MODULE
6821: # non-empty at configure time, or by adding -multi_module to the
6822: # link flags.
6823: rm -rf libconftest.dylib*
6824: echo "int foo(void){return 1;}" > conftest.c
6825: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6826: -dynamiclib -Wl,-single_module conftest.c" >&5
6827: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6828: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6829: _lt_result=$?
6830: # If there is a non-empty error log, and "single_module"
6831: # appears in it, assume the flag caused a linker warning
6832: if test -s conftest.err && $GREP single_module conftest.err; then
6833: cat conftest.err >&5
6834: # Otherwise, if the output was created with a 0 exit code from
6835: # the compiler, it worked.
6836: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6837: lt_cv_apple_cc_single_mod=yes
6838: else
6839: cat conftest.err >&5
6840: fi
6841: rm -rf libconftest.dylib*
6842: rm -f conftest.*
6843: fi
6844: fi
6845: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6846: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6847:
6848: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6849: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6850: if ${lt_cv_ld_exported_symbols_list+:} false; then :
6851: $as_echo_n "(cached) " >&6
6852: else
6853: lt_cv_ld_exported_symbols_list=no
6854: save_LDFLAGS=$LDFLAGS
6855: echo "_main" > conftest.sym
6856: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6857: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858: /* end confdefs.h. */
6859:
6860: int
6861: main ()
6862: {
6863:
6864: ;
6865: return 0;
6866: }
6867: _ACEOF
6868: if ac_fn_c_try_link "$LINENO"; then :
6869: lt_cv_ld_exported_symbols_list=yes
6870: else
6871: lt_cv_ld_exported_symbols_list=no
6872: fi
6873: rm -f core conftest.err conftest.$ac_objext \
6874: conftest$ac_exeext conftest.$ac_ext
6875: LDFLAGS="$save_LDFLAGS"
6876:
6877: fi
6878: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6879: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6880:
6881: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6882: $as_echo_n "checking for -force_load linker flag... " >&6; }
6883: if ${lt_cv_ld_force_load+:} false; then :
6884: $as_echo_n "(cached) " >&6
6885: else
6886: lt_cv_ld_force_load=no
6887: cat > conftest.c << _LT_EOF
6888: int forced_loaded() { return 2;}
6889: _LT_EOF
6890: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6891: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6892: echo "$AR cru libconftest.a conftest.o" >&5
6893: $AR cru libconftest.a conftest.o 2>&5
6894: echo "$RANLIB libconftest.a" >&5
6895: $RANLIB libconftest.a 2>&5
6896: cat > conftest.c << _LT_EOF
6897: int main() { return 0;}
6898: _LT_EOF
6899: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6900: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6901: _lt_result=$?
6902: if test -s conftest.err && $GREP force_load conftest.err; then
6903: cat conftest.err >&5
6904: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6905: lt_cv_ld_force_load=yes
6906: else
6907: cat conftest.err >&5
6908: fi
6909: rm -f conftest.err libconftest.a conftest conftest.c
6910: rm -rf conftest.dSYM
6911:
6912: fi
6913: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6914: $as_echo "$lt_cv_ld_force_load" >&6; }
6915: case $host_os in
6916: rhapsody* | darwin1.[012])
6917: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6918: darwin1.*)
6919: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6920: darwin*) # darwin 5.x on
6921: # if running on 10.5 or later, the deployment target defaults
6922: # to the OS version, if on x86, and 10.4, the deployment
6923: # target defaults to 10.4. Don't you love it?
6924: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6925: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6926: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6927: 10.[012]*)
6928: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6929: 10.*)
6930: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6931: esac
6932: ;;
6933: esac
6934: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6935: _lt_dar_single_mod='$single_module'
6936: fi
6937: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6938: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6939: else
6940: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6941: fi
6942: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6943: _lt_dsymutil='~$DSYMUTIL $lib || :'
6944: else
6945: _lt_dsymutil=
6946: fi
6947: ;;
6948: esac
6949:
6950: ac_ext=c
6951: ac_cpp='$CPP $CPPFLAGS'
6952: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6953: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6954: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6955: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6956: $as_echo_n "checking how to run the C preprocessor... " >&6; }
6957: # On Suns, sometimes $CPP names a directory.
6958: if test -n "$CPP" && test -d "$CPP"; then
6959: CPP=
6960: fi
6961: if test -z "$CPP"; then
6962: if ${ac_cv_prog_CPP+:} false; then :
6963: $as_echo_n "(cached) " >&6
6964: else
6965: # Double quotes because CPP needs to be expanded
6966: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6967: do
6968: ac_preproc_ok=false
6969: for ac_c_preproc_warn_flag in '' yes
6970: do
6971: # Use a header file that comes with gcc, so configuring glibc
6972: # with a fresh cross-compiler works.
6973: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6974: # <limits.h> exists even on freestanding compilers.
6975: # On the NeXT, cc -E runs the code through the compiler's parser,
6976: # not just through cpp. "Syntax error" is here to catch this case.
6977: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6978: /* end confdefs.h. */
6979: #ifdef __STDC__
6980: # include <limits.h>
6981: #else
6982: # include <assert.h>
6983: #endif
6984: Syntax error
6985: _ACEOF
6986: if ac_fn_c_try_cpp "$LINENO"; then :
6987:
6988: else
6989: # Broken: fails on valid input.
6990: continue
6991: fi
6992: rm -f conftest.err conftest.i conftest.$ac_ext
6993:
6994: # OK, works on sane cases. Now check whether nonexistent headers
6995: # can be detected and how.
6996: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6997: /* end confdefs.h. */
6998: #include <ac_nonexistent.h>
6999: _ACEOF
7000: if ac_fn_c_try_cpp "$LINENO"; then :
7001: # Broken: success on invalid input.
7002: continue
7003: else
7004: # Passes both tests.
7005: ac_preproc_ok=:
7006: break
7007: fi
7008: rm -f conftest.err conftest.i conftest.$ac_ext
7009:
7010: done
7011: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7012: rm -f conftest.i conftest.err conftest.$ac_ext
7013: if $ac_preproc_ok; then :
7014: break
7015: fi
7016:
7017: done
7018: ac_cv_prog_CPP=$CPP
7019:
7020: fi
7021: CPP=$ac_cv_prog_CPP
7022: else
7023: ac_cv_prog_CPP=$CPP
7024: fi
7025: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7026: $as_echo "$CPP" >&6; }
7027: ac_preproc_ok=false
7028: for ac_c_preproc_warn_flag in '' yes
7029: do
7030: # Use a header file that comes with gcc, so configuring glibc
7031: # with a fresh cross-compiler works.
7032: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7033: # <limits.h> exists even on freestanding compilers.
7034: # On the NeXT, cc -E runs the code through the compiler's parser,
7035: # not just through cpp. "Syntax error" is here to catch this case.
7036: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7037: /* end confdefs.h. */
7038: #ifdef __STDC__
7039: # include <limits.h>
7040: #else
7041: # include <assert.h>
7042: #endif
7043: Syntax error
7044: _ACEOF
7045: if ac_fn_c_try_cpp "$LINENO"; then :
7046:
7047: else
7048: # Broken: fails on valid input.
7049: continue
7050: fi
7051: rm -f conftest.err conftest.i conftest.$ac_ext
7052:
7053: # OK, works on sane cases. Now check whether nonexistent headers
7054: # can be detected and how.
7055: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7056: /* end confdefs.h. */
7057: #include <ac_nonexistent.h>
7058: _ACEOF
7059: if ac_fn_c_try_cpp "$LINENO"; then :
7060: # Broken: success on invalid input.
7061: continue
7062: else
7063: # Passes both tests.
7064: ac_preproc_ok=:
7065: break
7066: fi
7067: rm -f conftest.err conftest.i conftest.$ac_ext
7068:
7069: done
7070: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7071: rm -f conftest.i conftest.err conftest.$ac_ext
7072: if $ac_preproc_ok; then :
7073:
7074: else
7075: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7076: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7077: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7078: See \`config.log' for more details" "$LINENO" 5; }
7079: fi
7080:
7081: ac_ext=c
7082: ac_cpp='$CPP $CPPFLAGS'
7083: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7084: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7085: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.9 ohara 7086:
7087:
1.10 ohara 7088: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7089: $as_echo_n "checking for ANSI C header files... " >&6; }
7090: if ${ac_cv_header_stdc+:} false; then :
7091: $as_echo_n "(cached) " >&6
7092: else
7093: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7094: /* end confdefs.h. */
7095: #include <stdlib.h>
7096: #include <stdarg.h>
7097: #include <string.h>
7098: #include <float.h>
1.9 ohara 7099:
1.10 ohara 7100: int
7101: main ()
7102: {
1.9 ohara 7103:
1.10 ohara 7104: ;
7105: return 0;
7106: }
7107: _ACEOF
7108: if ac_fn_c_try_compile "$LINENO"; then :
7109: ac_cv_header_stdc=yes
7110: else
7111: ac_cv_header_stdc=no
7112: fi
7113: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9 ohara 7114:
1.10 ohara 7115: if test $ac_cv_header_stdc = yes; then
7116: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7117: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7118: /* end confdefs.h. */
7119: #include <string.h>
1.9 ohara 7120:
1.10 ohara 7121: _ACEOF
7122: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7123: $EGREP "memchr" >/dev/null 2>&1; then :
1.9 ohara 7124:
1.10 ohara 7125: else
7126: ac_cv_header_stdc=no
7127: fi
7128: rm -f conftest*
1.9 ohara 7129:
1.10 ohara 7130: fi
1.9 ohara 7131:
1.10 ohara 7132: if test $ac_cv_header_stdc = yes; then
7133: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7134: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135: /* end confdefs.h. */
7136: #include <stdlib.h>
1.9 ohara 7137:
1.10 ohara 7138: _ACEOF
7139: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7140: $EGREP "free" >/dev/null 2>&1; then :
1.9 ohara 7141:
1.10 ohara 7142: else
7143: ac_cv_header_stdc=no
7144: fi
7145: rm -f conftest*
1.9 ohara 7146:
1.10 ohara 7147: fi
1.9 ohara 7148:
1.10 ohara 7149: if test $ac_cv_header_stdc = yes; then
7150: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7151: if test "$cross_compiling" = yes; then :
7152: :
7153: else
7154: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7155: /* end confdefs.h. */
7156: #include <ctype.h>
7157: #include <stdlib.h>
7158: #if ((' ' & 0x0FF) == 0x020)
7159: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7160: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7161: #else
7162: # define ISLOWER(c) \
7163: (('a' <= (c) && (c) <= 'i') \
7164: || ('j' <= (c) && (c) <= 'r') \
7165: || ('s' <= (c) && (c) <= 'z'))
7166: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7167: #endif
1.9 ohara 7168:
1.10 ohara 7169: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7170: int
7171: main ()
7172: {
7173: int i;
7174: for (i = 0; i < 256; i++)
7175: if (XOR (islower (i), ISLOWER (i))
7176: || toupper (i) != TOUPPER (i))
7177: return 2;
7178: return 0;
7179: }
7180: _ACEOF
7181: if ac_fn_c_try_run "$LINENO"; then :
1.9 ohara 7182:
1.10 ohara 7183: else
7184: ac_cv_header_stdc=no
7185: fi
7186: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7187: conftest.$ac_objext conftest.beam conftest.$ac_ext
7188: fi
1.9 ohara 7189:
1.10 ohara 7190: fi
7191: fi
7192: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7193: $as_echo "$ac_cv_header_stdc" >&6; }
7194: if test $ac_cv_header_stdc = yes; then
1.9 ohara 7195:
1.10 ohara 7196: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.9 ohara 7197:
1.10 ohara 7198: fi
1.9 ohara 7199:
1.10 ohara 7200: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7201: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7202: inttypes.h stdint.h unistd.h
7203: do :
7204: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7205: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7206: "
7207: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7208: cat >>confdefs.h <<_ACEOF
7209: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7210: _ACEOF
1.9 ohara 7211:
1.10 ohara 7212: fi
1.9 ohara 7213:
1.10 ohara 7214: done
1.9 ohara 7215:
7216:
1.10 ohara 7217: for ac_header in dlfcn.h
7218: do :
7219: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7220: "
7221: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7222: cat >>confdefs.h <<_ACEOF
7223: #define HAVE_DLFCN_H 1
7224: _ACEOF
1.9 ohara 7225:
1.10 ohara 7226: fi
1.9 ohara 7227:
1.10 ohara 7228: done
1.9 ohara 7229:
7230:
7231:
7232:
7233:
1.10 ohara 7234: # Set options
1.9 ohara 7235:
7236:
7237:
1.10 ohara 7238: enable_dlopen=no
1.9 ohara 7239:
7240:
1.10 ohara 7241: enable_win32_dll=no
1.9 ohara 7242:
7243:
1.10 ohara 7244: # Check whether --enable-shared was given.
7245: if test "${enable_shared+set}" = set; then :
7246: enableval=$enable_shared; p=${PACKAGE-default}
7247: case $enableval in
7248: yes) enable_shared=yes ;;
7249: no) enable_shared=no ;;
7250: *)
7251: enable_shared=no
7252: # Look at the argument we got. We use all the common list separators.
7253: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7254: for pkg in $enableval; do
7255: IFS="$lt_save_ifs"
7256: if test "X$pkg" = "X$p"; then
7257: enable_shared=yes
7258: fi
7259: done
7260: IFS="$lt_save_ifs"
7261: ;;
7262: esac
7263: else
7264: enable_shared=yes
7265: fi
1.9 ohara 7266:
7267:
7268:
7269:
7270:
7271:
7272:
7273:
7274:
1.10 ohara 7275: # Check whether --enable-static was given.
7276: if test "${enable_static+set}" = set; then :
7277: enableval=$enable_static; p=${PACKAGE-default}
7278: case $enableval in
7279: yes) enable_static=yes ;;
7280: no) enable_static=no ;;
7281: *)
7282: enable_static=no
7283: # Look at the argument we got. We use all the common list separators.
7284: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7285: for pkg in $enableval; do
7286: IFS="$lt_save_ifs"
7287: if test "X$pkg" = "X$p"; then
7288: enable_static=yes
7289: fi
7290: done
7291: IFS="$lt_save_ifs"
7292: ;;
7293: esac
7294: else
7295: enable_static=yes
7296: fi
1.9 ohara 7297:
7298:
7299:
7300:
7301:
7302:
7303:
7304:
7305:
7306:
1.10 ohara 7307: # Check whether --with-pic was given.
7308: if test "${with_pic+set}" = set; then :
7309: withval=$with_pic; lt_p=${PACKAGE-default}
7310: case $withval in
7311: yes|no) pic_mode=$withval ;;
7312: *)
7313: pic_mode=default
7314: # Look at the argument we got. We use all the common list separators.
7315: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7316: for lt_pkg in $withval; do
7317: IFS="$lt_save_ifs"
7318: if test "X$lt_pkg" = "X$lt_p"; then
7319: pic_mode=yes
7320: fi
7321: done
7322: IFS="$lt_save_ifs"
7323: ;;
7324: esac
7325: else
7326: pic_mode=default
7327: fi
1.9 ohara 7328:
7329:
1.10 ohara 7330: test -z "$pic_mode" && pic_mode=default
1.9 ohara 7331:
7332:
7333:
7334:
7335:
7336:
7337:
1.10 ohara 7338: # Check whether --enable-fast-install was given.
7339: if test "${enable_fast_install+set}" = set; then :
7340: enableval=$enable_fast_install; p=${PACKAGE-default}
7341: case $enableval in
7342: yes) enable_fast_install=yes ;;
7343: no) enable_fast_install=no ;;
7344: *)
7345: enable_fast_install=no
7346: # Look at the argument we got. We use all the common list separators.
7347: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7348: for pkg in $enableval; do
7349: IFS="$lt_save_ifs"
7350: if test "X$pkg" = "X$p"; then
7351: enable_fast_install=yes
7352: fi
7353: done
7354: IFS="$lt_save_ifs"
7355: ;;
7356: esac
1.9 ohara 7357: else
1.10 ohara 7358: enable_fast_install=yes
1.9 ohara 7359: fi
7360:
7361:
7362:
7363:
7364:
7365:
7366:
7367:
7368:
7369:
7370:
1.10 ohara 7371: # This can be used to rebuild libtool when needed
7372: LIBTOOL_DEPS="$ltmain"
1.9 ohara 7373:
1.10 ohara 7374: # Always use our own libtool.
7375: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1.9 ohara 7376:
7377:
7378:
7379:
7380:
7381:
7382:
7383:
7384:
7385:
7386:
7387:
7388:
7389:
7390:
7391:
7392:
7393:
7394:
7395:
7396:
7397:
7398:
7399:
7400:
7401:
7402:
7403:
7404:
7405:
1.10 ohara 7406: test -z "$LN_S" && LN_S="ln -s"
1.9 ohara 7407:
7408:
7409:
7410:
7411:
7412:
7413:
7414:
7415:
7416:
7417:
7418:
7419:
7420:
1.10 ohara 7421: if test -n "${ZSH_VERSION+set}" ; then
7422: setopt NO_GLOB_SUBST
1.9 ohara 7423: fi
7424:
1.10 ohara 7425: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7426: $as_echo_n "checking for objdir... " >&6; }
7427: if ${lt_cv_objdir+:} false; then :
7428: $as_echo_n "(cached) " >&6
7429: else
7430: rm -f .libs 2>/dev/null
7431: mkdir .libs 2>/dev/null
7432: if test -d .libs; then
7433: lt_cv_objdir=.libs
1.9 ohara 7434: else
1.10 ohara 7435: # MS-DOS does not allow filenames that begin with a dot.
7436: lt_cv_objdir=_libs
7437: fi
7438: rmdir .libs 2>/dev/null
1.9 ohara 7439: fi
1.10 ohara 7440: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7441: $as_echo "$lt_cv_objdir" >&6; }
7442: objdir=$lt_cv_objdir
7443:
7444:
1.9 ohara 7445:
7446:
7447:
1.10 ohara 7448: cat >>confdefs.h <<_ACEOF
7449: #define LT_OBJDIR "$lt_cv_objdir/"
7450: _ACEOF
7451:
1.9 ohara 7452:
7453:
7454:
1.10 ohara 7455: case $host_os in
7456: aix3*)
7457: # AIX sometimes has problems with the GCC collect2 program. For some
7458: # reason, if we set the COLLECT_NAMES environment variable, the problems
7459: # vanish in a puff of smoke.
7460: if test "X${COLLECT_NAMES+set}" != Xset; then
7461: COLLECT_NAMES=
7462: export COLLECT_NAMES
1.9 ohara 7463: fi
1.10 ohara 7464: ;;
7465: esac
7466:
7467: # Global variables:
7468: ofile=libtool
7469: can_build_shared=yes
7470:
7471: # All known linkers require a `.a' archive for static linking (except MSVC,
7472: # which needs '.lib').
7473: libext=a
7474:
7475: with_gnu_ld="$lt_cv_prog_gnu_ld"
7476:
7477: old_CC="$CC"
7478: old_CFLAGS="$CFLAGS"
1.9 ohara 7479:
1.10 ohara 7480: # Set sane defaults for various variables
7481: test -z "$CC" && CC=cc
7482: test -z "$LTCC" && LTCC=$CC
7483: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7484: test -z "$LD" && LD=ld
7485: test -z "$ac_objext" && ac_objext=o
1.9 ohara 7486:
1.10 ohara 7487: for cc_temp in $compiler""; do
1.9 ohara 7488: case $cc_temp in
7489: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7490: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7491: \-*) ;;
7492: *) break;;
7493: esac
7494: done
1.10 ohara 7495: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7496:
7497:
7498: # Only perform the check for file, if the check method requires it
7499: test -z "$MAGIC_CMD" && MAGIC_CMD=file
7500: case $deplibs_check_method in
7501: file_magic*)
7502: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7503: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7504: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7505: if ${lt_cv_path_MAGIC_CMD+:} false; then :
7506: $as_echo_n "(cached) " >&6
7507: else
7508: case $MAGIC_CMD in
7509: [\\/*] | ?:[\\/]*)
7510: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7511: ;;
7512: *)
7513: lt_save_MAGIC_CMD="$MAGIC_CMD"
7514: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7515: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7516: for ac_dir in $ac_dummy; do
7517: IFS="$lt_save_ifs"
7518: test -z "$ac_dir" && ac_dir=.
7519: if test -f $ac_dir/${ac_tool_prefix}file; then
7520: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7521: if test -n "$file_magic_test_file"; then
7522: case $deplibs_check_method in
7523: "file_magic "*)
7524: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7525: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7526: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7527: $EGREP "$file_magic_regex" > /dev/null; then
7528: :
7529: else
7530: cat <<_LT_EOF 1>&2
7531:
7532: *** Warning: the command libtool uses to detect shared libraries,
7533: *** $file_magic_cmd, produces output that libtool cannot recognize.
7534: *** The result is that libtool may fail to recognize shared libraries
7535: *** as such. This will affect the creation of libtool libraries that
7536: *** depend on shared libraries, but programs linked with such libtool
7537: *** libraries will work regardless of this problem. Nevertheless, you
7538: *** may want to report the problem to your system manager and/or to
7539: *** bug-libtool@gnu.org
1.9 ohara 7540:
1.10 ohara 7541: _LT_EOF
7542: fi ;;
7543: esac
7544: fi
7545: break
1.9 ohara 7546: fi
1.10 ohara 7547: done
7548: IFS="$lt_save_ifs"
7549: MAGIC_CMD="$lt_save_MAGIC_CMD"
7550: ;;
7551: esac
7552: fi
7553:
7554: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7555: if test -n "$MAGIC_CMD"; then
7556: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7557: $as_echo "$MAGIC_CMD" >&6; }
7558: else
7559: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7560: $as_echo "no" >&6; }
7561: fi
7562:
7563:
7564:
7565:
7566:
7567: if test -z "$lt_cv_path_MAGIC_CMD"; then
7568: if test -n "$ac_tool_prefix"; then
7569: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7570: $as_echo_n "checking for file... " >&6; }
7571: if ${lt_cv_path_MAGIC_CMD+:} false; then :
7572: $as_echo_n "(cached) " >&6
7573: else
7574: case $MAGIC_CMD in
7575: [\\/*] | ?:[\\/]*)
7576: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7577: ;;
7578: *)
7579: lt_save_MAGIC_CMD="$MAGIC_CMD"
7580: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7581: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7582: for ac_dir in $ac_dummy; do
7583: IFS="$lt_save_ifs"
7584: test -z "$ac_dir" && ac_dir=.
7585: if test -f $ac_dir/file; then
7586: lt_cv_path_MAGIC_CMD="$ac_dir/file"
7587: if test -n "$file_magic_test_file"; then
7588: case $deplibs_check_method in
7589: "file_magic "*)
7590: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7591: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7592: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7593: $EGREP "$file_magic_regex" > /dev/null; then
7594: :
7595: else
7596: cat <<_LT_EOF 1>&2
1.9 ohara 7597:
1.10 ohara 7598: *** Warning: the command libtool uses to detect shared libraries,
7599: *** $file_magic_cmd, produces output that libtool cannot recognize.
7600: *** The result is that libtool may fail to recognize shared libraries
7601: *** as such. This will affect the creation of libtool libraries that
7602: *** depend on shared libraries, but programs linked with such libtool
7603: *** libraries will work regardless of this problem. Nevertheless, you
7604: *** may want to report the problem to your system manager and/or to
7605: *** bug-libtool@gnu.org
1.9 ohara 7606:
1.10 ohara 7607: _LT_EOF
7608: fi ;;
7609: esac
7610: fi
7611: break
1.9 ohara 7612: fi
1.10 ohara 7613: done
7614: IFS="$lt_save_ifs"
7615: MAGIC_CMD="$lt_save_MAGIC_CMD"
7616: ;;
7617: esac
7618: fi
7619:
7620: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7621: if test -n "$MAGIC_CMD"; then
7622: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7623: $as_echo "$MAGIC_CMD" >&6; }
7624: else
7625: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626: $as_echo "no" >&6; }
7627: fi
1.9 ohara 7628:
7629:
1.10 ohara 7630: else
7631: MAGIC_CMD=:
7632: fi
7633: fi
1.9 ohara 7634:
1.10 ohara 7635: fi
7636: ;;
7637: esac
1.9 ohara 7638:
1.10 ohara 7639: # Use C for the default configuration in the libtool script
1.9 ohara 7640:
1.10 ohara 7641: lt_save_CC="$CC"
7642: ac_ext=c
7643: ac_cpp='$CPP $CPPFLAGS'
7644: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7645: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7646: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.9 ohara 7647:
7648:
1.10 ohara 7649: # Source file extension for C test sources.
7650: ac_ext=c
1.9 ohara 7651:
1.10 ohara 7652: # Object file extension for compiled C test sources.
7653: objext=o
7654: objext=$objext
1.9 ohara 7655:
1.10 ohara 7656: # Code to be used in simple compile tests
7657: lt_simple_compile_test_code="int some_variable = 0;"
1.9 ohara 7658:
1.10 ohara 7659: # Code to be used in simple link tests
7660: lt_simple_link_test_code='int main(){return(0);}'
1.9 ohara 7661:
7662:
7663:
7664:
7665:
7666:
7667:
1.10 ohara 7668: # If no C compiler was specified, use CC.
7669: LTCC=${LTCC-"$CC"}
1.9 ohara 7670:
1.10 ohara 7671: # If no C compiler flags were specified, use CFLAGS.
7672: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.9 ohara 7673:
1.10 ohara 7674: # Allow CC to be a program name with arguments.
7675: compiler=$CC
1.9 ohara 7676:
1.10 ohara 7677: # Save the default compiler, since it gets overwritten when the other
7678: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7679: compiler_DEFAULT=$CC
1.9 ohara 7680:
1.10 ohara 7681: # save warnings/boilerplate of simple test code
7682: ac_outfile=conftest.$ac_objext
7683: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7684: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7685: _lt_compiler_boilerplate=`cat conftest.err`
7686: $RM conftest*
1.9 ohara 7687:
1.10 ohara 7688: ac_outfile=conftest.$ac_objext
7689: echo "$lt_simple_link_test_code" >conftest.$ac_ext
7690: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7691: _lt_linker_boilerplate=`cat conftest.err`
7692: $RM -r conftest*
1.9 ohara 7693:
7694:
1.10 ohara 7695: if test -n "$compiler"; then
1.9 ohara 7696:
1.10 ohara 7697: lt_prog_compiler_no_builtin_flag=
1.9 ohara 7698:
1.10 ohara 7699: if test "$GCC" = yes; then
7700: case $cc_basename in
7701: nvcc*)
7702: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7703: *)
7704: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7705: esac
1.9 ohara 7706:
1.10 ohara 7707: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7708: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7709: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7710: $as_echo_n "(cached) " >&6
7711: else
7712: lt_cv_prog_compiler_rtti_exceptions=no
7713: ac_outfile=conftest.$ac_objext
7714: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7715: lt_compiler_flag="-fno-rtti -fno-exceptions"
7716: # Insert the option either (1) after the last *FLAGS variable, or
7717: # (2) before a word containing "conftest.", or (3) at the end.
7718: # Note that $ac_compile itself does not contain backslashes and begins
7719: # with a dollar sign (not a hyphen), so the echo should work correctly.
7720: # The option is referenced via a variable to avoid confusing sed.
7721: lt_compile=`echo "$ac_compile" | $SED \
7722: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7723: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7724: -e 's:$: $lt_compiler_flag:'`
7725: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7726: (eval "$lt_compile" 2>conftest.err)
7727: ac_status=$?
7728: cat conftest.err >&5
7729: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730: if (exit $ac_status) && test -s "$ac_outfile"; then
7731: # The compiler can only warn and ignore the option if not recognized
7732: # So say no if there are warnings other than the usual output.
7733: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7734: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7735: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7736: lt_cv_prog_compiler_rtti_exceptions=yes
7737: fi
7738: fi
7739: $RM conftest*
1.9 ohara 7740:
1.10 ohara 7741: fi
7742: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7743: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.9 ohara 7744:
1.10 ohara 7745: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7746: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
1.9 ohara 7747: else
1.10 ohara 7748: :
7749: fi
7750:
7751: fi
1.9 ohara 7752:
7753:
7754:
7755:
7756:
7757:
1.10 ohara 7758: lt_prog_compiler_wl=
7759: lt_prog_compiler_pic=
7760: lt_prog_compiler_static=
1.9 ohara 7761:
7762:
1.10 ohara 7763: if test "$GCC" = yes; then
7764: lt_prog_compiler_wl='-Wl,'
7765: lt_prog_compiler_static='-static'
1.9 ohara 7766:
1.10 ohara 7767: case $host_os in
7768: aix*)
7769: # All AIX code is PIC.
7770: if test "$host_cpu" = ia64; then
7771: # AIX 5 now supports IA64 processor
7772: lt_prog_compiler_static='-Bstatic'
1.9 ohara 7773: fi
7774: ;;
7775:
7776: amigaos*)
1.10 ohara 7777: case $host_cpu in
7778: powerpc)
7779: # see comment about AmigaOS4 .so support
7780: lt_prog_compiler_pic='-fPIC'
7781: ;;
7782: m68k)
7783: # FIXME: we need at least 68020 code to build shared libraries, but
7784: # adding the `-m68020' flag to GCC prevents building anything better,
7785: # like `-m68040'.
7786: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7787: ;;
7788: esac
1.9 ohara 7789: ;;
7790:
1.10 ohara 7791: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7792: # PIC is the default for these OSes.
1.9 ohara 7793: ;;
7794:
1.10 ohara 7795: mingw* | cygwin* | pw32* | os2* | cegcc*)
7796: # This hack is so that the source file can tell whether it is being
7797: # built for inclusion in a dll (and should export symbols for example).
7798: # Although the cygwin gcc ignores -fPIC, still need this for old-style
7799: # (--disable-auto-import) libraries
7800: lt_prog_compiler_pic='-DDLL_EXPORT'
1.9 ohara 7801: ;;
7802:
7803: darwin* | rhapsody*)
1.10 ohara 7804: # PIC is the default on this platform
7805: # Common symbols not allowed in MH_DYLIB files
7806: lt_prog_compiler_pic='-fno-common'
1.9 ohara 7807: ;;
7808:
1.10 ohara 7809: haiku*)
7810: # PIC is the default for Haiku.
7811: # The "-static" flag exists, but is broken.
7812: lt_prog_compiler_static=
1.9 ohara 7813: ;;
7814:
1.10 ohara 7815: hpux*)
7816: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7817: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7818: # sets the default TLS model and affects inlining.
7819: case $host_cpu in
7820: hppa*64*)
7821: # +Z the default
7822: ;;
7823: *)
7824: lt_prog_compiler_pic='-fPIC'
7825: ;;
7826: esac
1.9 ohara 7827: ;;
7828:
1.10 ohara 7829: interix[3-9]*)
7830: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7831: # Instead, we relocate shared libraries at runtime.
1.9 ohara 7832: ;;
7833:
1.10 ohara 7834: msdosdjgpp*)
7835: # Just because we use GCC doesn't mean we suddenly get shared libraries
7836: # on systems that don't support them.
7837: lt_prog_compiler_can_build_shared=no
7838: enable_shared=no
1.9 ohara 7839: ;;
7840:
1.10 ohara 7841: *nto* | *qnx*)
7842: # QNX uses GNU C++, but need to define -shared option too, otherwise
7843: # it will coredump.
7844: lt_prog_compiler_pic='-fPIC -shared'
1.9 ohara 7845: ;;
7846:
1.10 ohara 7847: sysv4*MP*)
7848: if test -d /usr/nec; then
7849: lt_prog_compiler_pic=-Kconform_pic
1.9 ohara 7850: fi
1.10 ohara 7851: ;;
1.9 ohara 7852:
1.10 ohara 7853: *)
7854: lt_prog_compiler_pic='-fPIC'
1.9 ohara 7855: ;;
1.10 ohara 7856: esac
1.9 ohara 7857:
1.10 ohara 7858: case $cc_basename in
7859: nvcc*) # Cuda Compiler Driver 2.2
7860: lt_prog_compiler_wl='-Xlinker '
7861: if test -n "$lt_prog_compiler_pic"; then
7862: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
1.9 ohara 7863: fi
7864: ;;
1.10 ohara 7865: esac
7866: else
7867: # PORTME Check for flag to pass linker flags through the system compiler.
7868: case $host_os in
7869: aix*)
7870: lt_prog_compiler_wl='-Wl,'
7871: if test "$host_cpu" = ia64; then
7872: # AIX 5 now supports IA64 processor
7873: lt_prog_compiler_static='-Bstatic'
1.9 ohara 7874: else
1.10 ohara 7875: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
1.9 ohara 7876: fi
1.10 ohara 7877: ;;
1.9 ohara 7878:
1.10 ohara 7879: mingw* | cygwin* | pw32* | os2* | cegcc*)
7880: # This hack is so that the source file can tell whether it is being
7881: # built for inclusion in a dll (and should export symbols for example).
7882: lt_prog_compiler_pic='-DDLL_EXPORT'
7883: ;;
1.9 ohara 7884:
1.10 ohara 7885: hpux9* | hpux10* | hpux11*)
7886: lt_prog_compiler_wl='-Wl,'
7887: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7888: # not for PA HP-UX.
7889: case $host_cpu in
7890: hppa*64*|ia64*)
7891: # +Z the default
7892: ;;
7893: *)
7894: lt_prog_compiler_pic='+Z'
7895: ;;
7896: esac
7897: # Is there a better lt_prog_compiler_static that works with the bundled CC?
7898: lt_prog_compiler_static='${wl}-a ${wl}archive'
1.9 ohara 7899: ;;
7900:
7901: irix5* | irix6* | nonstopux*)
1.10 ohara 7902: lt_prog_compiler_wl='-Wl,'
7903: # PIC (with -KPIC) is the default.
7904: lt_prog_compiler_static='-non_shared'
1.9 ohara 7905: ;;
7906:
1.10 ohara 7907: linux* | k*bsd*-gnu | kopensolaris*-gnu)
7908: case $cc_basename in
7909: # old Intel for x86_64 which still supported -KPIC.
7910: ecc*)
7911: lt_prog_compiler_wl='-Wl,'
7912: lt_prog_compiler_pic='-KPIC'
7913: lt_prog_compiler_static='-static'
7914: ;;
7915: # icc used to be incompatible with GCC.
7916: # ICC 10 doesn't accept -KPIC any more.
7917: icc* | ifort*)
7918: lt_prog_compiler_wl='-Wl,'
7919: lt_prog_compiler_pic='-fPIC'
7920: lt_prog_compiler_static='-static'
7921: ;;
7922: # Lahey Fortran 8.1.
7923: lf95*)
7924: lt_prog_compiler_wl='-Wl,'
7925: lt_prog_compiler_pic='--shared'
7926: lt_prog_compiler_static='--static'
7927: ;;
7928: nagfor*)
7929: # NAG Fortran compiler
7930: lt_prog_compiler_wl='-Wl,-Wl,,'
7931: lt_prog_compiler_pic='-PIC'
7932: lt_prog_compiler_static='-Bstatic'
7933: ;;
7934: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7935: # Portland Group compilers (*not* the Pentium gcc compiler,
7936: # which looks to be a dead project)
7937: lt_prog_compiler_wl='-Wl,'
7938: lt_prog_compiler_pic='-fpic'
7939: lt_prog_compiler_static='-Bstatic'
7940: ;;
7941: ccc*)
7942: lt_prog_compiler_wl='-Wl,'
7943: # All Alpha code is PIC.
7944: lt_prog_compiler_static='-non_shared'
7945: ;;
7946: xl* | bgxl* | bgf* | mpixl*)
7947: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7948: lt_prog_compiler_wl='-Wl,'
7949: lt_prog_compiler_pic='-qpic'
7950: lt_prog_compiler_static='-qstaticlink'
7951: ;;
7952: *)
7953: case `$CC -V 2>&1 | sed 5q` in
7954: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7955: # Sun Fortran 8.3 passes all unrecognized flags to the linker
7956: lt_prog_compiler_pic='-KPIC'
7957: lt_prog_compiler_static='-Bstatic'
7958: lt_prog_compiler_wl=''
7959: ;;
7960: *Sun\ F* | *Sun*Fortran*)
7961: lt_prog_compiler_pic='-KPIC'
7962: lt_prog_compiler_static='-Bstatic'
7963: lt_prog_compiler_wl='-Qoption ld '
7964: ;;
7965: *Sun\ C*)
7966: # Sun C 5.9
7967: lt_prog_compiler_pic='-KPIC'
7968: lt_prog_compiler_static='-Bstatic'
7969: lt_prog_compiler_wl='-Wl,'
7970: ;;
7971: *Intel*\ [CF]*Compiler*)
7972: lt_prog_compiler_wl='-Wl,'
7973: lt_prog_compiler_pic='-fPIC'
7974: lt_prog_compiler_static='-static'
7975: ;;
7976: *Portland\ Group*)
7977: lt_prog_compiler_wl='-Wl,'
7978: lt_prog_compiler_pic='-fpic'
7979: lt_prog_compiler_static='-Bstatic'
7980: ;;
7981: esac
7982: ;;
7983: esac
1.9 ohara 7984: ;;
7985:
7986: newsos6)
1.10 ohara 7987: lt_prog_compiler_pic='-KPIC'
7988: lt_prog_compiler_static='-Bstatic'
1.9 ohara 7989: ;;
7990:
1.10 ohara 7991: *nto* | *qnx*)
7992: # QNX uses GNU C++, but need to define -shared option too, otherwise
7993: # it will coredump.
7994: lt_prog_compiler_pic='-fPIC -shared'
1.9 ohara 7995: ;;
7996:
1.10 ohara 7997: osf3* | osf4* | osf5*)
7998: lt_prog_compiler_wl='-Wl,'
7999: # All OSF/1 code is PIC.
8000: lt_prog_compiler_static='-non_shared'
1.9 ohara 8001: ;;
8002:
1.10 ohara 8003: rdos*)
8004: lt_prog_compiler_static='-non_shared'
1.9 ohara 8005: ;;
8006:
8007: solaris*)
1.10 ohara 8008: lt_prog_compiler_pic='-KPIC'
8009: lt_prog_compiler_static='-Bstatic'
8010: case $cc_basename in
8011: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8012: lt_prog_compiler_wl='-Qoption ld ';;
1.9 ohara 8013: *)
1.10 ohara 8014: lt_prog_compiler_wl='-Wl,';;
1.9 ohara 8015: esac
8016: ;;
8017:
8018: sunos4*)
1.10 ohara 8019: lt_prog_compiler_wl='-Qoption ld '
8020: lt_prog_compiler_pic='-PIC'
8021: lt_prog_compiler_static='-Bstatic'
1.9 ohara 8022: ;;
8023:
1.10 ohara 8024: sysv4 | sysv4.2uw2* | sysv4.3*)
8025: lt_prog_compiler_wl='-Wl,'
8026: lt_prog_compiler_pic='-KPIC'
8027: lt_prog_compiler_static='-Bstatic'
1.9 ohara 8028: ;;
8029:
8030: sysv4*MP*)
1.10 ohara 8031: if test -d /usr/nec ;then
8032: lt_prog_compiler_pic='-Kconform_pic'
8033: lt_prog_compiler_static='-Bstatic'
1.9 ohara 8034: fi
8035: ;;
8036:
1.10 ohara 8037: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8038: lt_prog_compiler_wl='-Wl,'
8039: lt_prog_compiler_pic='-KPIC'
8040: lt_prog_compiler_static='-Bstatic'
1.9 ohara 8041: ;;
8042:
1.10 ohara 8043: unicos*)
8044: lt_prog_compiler_wl='-Wl,'
8045: lt_prog_compiler_can_build_shared=no
1.9 ohara 8046: ;;
8047:
8048: uts4*)
1.10 ohara 8049: lt_prog_compiler_pic='-pic'
8050: lt_prog_compiler_static='-Bstatic'
1.9 ohara 8051: ;;
8052:
8053: *)
1.10 ohara 8054: lt_prog_compiler_can_build_shared=no
1.9 ohara 8055: ;;
8056: esac
8057: fi
8058:
1.10 ohara 8059: case $host_os in
8060: # For platforms which do not support PIC, -DPIC is meaningless:
8061: *djgpp*)
8062: lt_prog_compiler_pic=
8063: ;;
8064: *)
8065: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8066: ;;
8067: esac
8068:
8069: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8070: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8071: if ${lt_cv_prog_compiler_pic+:} false; then :
8072: $as_echo_n "(cached) " >&6
8073: else
8074: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8075: fi
8076: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8077: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8078: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
1.9 ohara 8079:
8080: #
1.10 ohara 8081: # Check to make sure the PIC flag actually works.
1.9 ohara 8082: #
1.10 ohara 8083: if test -n "$lt_prog_compiler_pic"; then
8084: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8085: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8086: if ${lt_cv_prog_compiler_pic_works+:} false; then :
8087: $as_echo_n "(cached) " >&6
8088: else
8089: lt_cv_prog_compiler_pic_works=no
8090: ac_outfile=conftest.$ac_objext
8091: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8092: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8093: # Insert the option either (1) after the last *FLAGS variable, or
8094: # (2) before a word containing "conftest.", or (3) at the end.
8095: # Note that $ac_compile itself does not contain backslashes and begins
8096: # with a dollar sign (not a hyphen), so the echo should work correctly.
8097: # The option is referenced via a variable to avoid confusing sed.
8098: lt_compile=`echo "$ac_compile" | $SED \
8099: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8100: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8101: -e 's:$: $lt_compiler_flag:'`
8102: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8103: (eval "$lt_compile" 2>conftest.err)
8104: ac_status=$?
8105: cat conftest.err >&5
8106: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107: if (exit $ac_status) && test -s "$ac_outfile"; then
8108: # The compiler can only warn and ignore the option if not recognized
8109: # So say no if there are warnings other than the usual output.
8110: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8111: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8112: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8113: lt_cv_prog_compiler_pic_works=yes
8114: fi
8115: fi
8116: $RM conftest*
8117:
8118: fi
8119: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8120: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8121:
8122: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8123: case $lt_prog_compiler_pic in
8124: "" | " "*) ;;
8125: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8126: esac
8127: else
8128: lt_prog_compiler_pic=
8129: lt_prog_compiler_can_build_shared=no
8130: fi
8131:
8132: fi
8133:
8134:
8135:
8136:
8137:
8138:
8139:
8140:
1.9 ohara 8141:
8142:
8143:
1.10 ohara 8144: #
8145: # Check to make sure the static flag actually works.
8146: #
8147: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8148: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8149: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8150: if ${lt_cv_prog_compiler_static_works+:} false; then :
8151: $as_echo_n "(cached) " >&6
1.9 ohara 8152: else
1.10 ohara 8153: lt_cv_prog_compiler_static_works=no
8154: save_LDFLAGS="$LDFLAGS"
8155: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8156: echo "$lt_simple_link_test_code" > conftest.$ac_ext
8157: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8158: # The linker can only warn and ignore the option if not recognized
8159: # So say no if there are warnings
8160: if test -s conftest.err; then
8161: # Append any errors to the config.log.
8162: cat conftest.err 1>&5
8163: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8164: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8165: if diff conftest.exp conftest.er2 >/dev/null; then
8166: lt_cv_prog_compiler_static_works=yes
8167: fi
8168: else
8169: lt_cv_prog_compiler_static_works=yes
8170: fi
8171: fi
8172: $RM -r conftest*
8173: LDFLAGS="$save_LDFLAGS"
8174:
1.9 ohara 8175: fi
1.10 ohara 8176: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8177: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1.9 ohara 8178:
1.10 ohara 8179: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8180: :
8181: else
8182: lt_prog_compiler_static=
8183: fi
1.9 ohara 8184:
8185:
8186:
8187:
8188:
8189:
8190:
1.10 ohara 8191: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8192: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8193: if ${lt_cv_prog_compiler_c_o+:} false; then :
8194: $as_echo_n "(cached) " >&6
8195: else
8196: lt_cv_prog_compiler_c_o=no
8197: $RM -r conftest 2>/dev/null
8198: mkdir conftest
8199: cd conftest
8200: mkdir out
8201: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.9 ohara 8202:
1.10 ohara 8203: lt_compiler_flag="-o out/conftest2.$ac_objext"
8204: # Insert the option either (1) after the last *FLAGS variable, or
8205: # (2) before a word containing "conftest.", or (3) at the end.
8206: # Note that $ac_compile itself does not contain backslashes and begins
8207: # with a dollar sign (not a hyphen), so the echo should work correctly.
8208: lt_compile=`echo "$ac_compile" | $SED \
8209: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8210: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8211: -e 's:$: $lt_compiler_flag:'`
8212: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8213: (eval "$lt_compile" 2>out/conftest.err)
8214: ac_status=$?
8215: cat out/conftest.err >&5
8216: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8218: then
8219: # The compiler can only warn and ignore the option if not recognized
8220: # So say no if there are warnings
8221: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8222: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8223: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8224: lt_cv_prog_compiler_c_o=yes
8225: fi
8226: fi
8227: chmod u+w . 2>&5
8228: $RM conftest*
8229: # SGI C++ compiler will create directory out/ii_files/ for
8230: # template instantiation
8231: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8232: $RM out/* && rmdir out
8233: cd ..
8234: $RM -r conftest
8235: $RM conftest*
1.9 ohara 8236:
1.10 ohara 8237: fi
8238: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8239: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.9 ohara 8240:
8241:
8242:
8243:
8244:
8245:
1.10 ohara 8246: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8247: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8248: if ${lt_cv_prog_compiler_c_o+:} false; then :
8249: $as_echo_n "(cached) " >&6
8250: else
8251: lt_cv_prog_compiler_c_o=no
8252: $RM -r conftest 2>/dev/null
8253: mkdir conftest
8254: cd conftest
8255: mkdir out
8256: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.9 ohara 8257:
1.10 ohara 8258: lt_compiler_flag="-o out/conftest2.$ac_objext"
8259: # Insert the option either (1) after the last *FLAGS variable, or
8260: # (2) before a word containing "conftest.", or (3) at the end.
8261: # Note that $ac_compile itself does not contain backslashes and begins
8262: # with a dollar sign (not a hyphen), so the echo should work correctly.
8263: lt_compile=`echo "$ac_compile" | $SED \
8264: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8265: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8266: -e 's:$: $lt_compiler_flag:'`
8267: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8268: (eval "$lt_compile" 2>out/conftest.err)
8269: ac_status=$?
8270: cat out/conftest.err >&5
8271: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8273: then
8274: # The compiler can only warn and ignore the option if not recognized
8275: # So say no if there are warnings
8276: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8277: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8278: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8279: lt_cv_prog_compiler_c_o=yes
8280: fi
8281: fi
8282: chmod u+w . 2>&5
8283: $RM conftest*
8284: # SGI C++ compiler will create directory out/ii_files/ for
8285: # template instantiation
8286: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8287: $RM out/* && rmdir out
8288: cd ..
8289: $RM -r conftest
8290: $RM conftest*
1.9 ohara 8291:
1.10 ohara 8292: fi
8293: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8294: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.9 ohara 8295:
8296:
8297:
8298:
1.10 ohara 8299: hard_links="nottested"
8300: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8301: # do not overwrite the value of need_locks provided by the user
8302: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8303: $as_echo_n "checking if we can lock with hard links... " >&6; }
8304: hard_links=yes
8305: $RM conftest*
8306: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8307: touch conftest.a
8308: ln conftest.a conftest.b 2>&5 || hard_links=no
8309: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8310: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8311: $as_echo "$hard_links" >&6; }
8312: if test "$hard_links" = no; then
8313: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8314: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8315: need_locks=warn
1.9 ohara 8316: fi
1.10 ohara 8317: else
8318: need_locks=no
8319: fi
8320:
8321:
1.9 ohara 8322:
8323:
8324:
8325:
1.10 ohara 8326: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8327: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.9 ohara 8328:
1.10 ohara 8329: runpath_var=
8330: allow_undefined_flag=
8331: always_export_symbols=no
8332: archive_cmds=
8333: archive_expsym_cmds=
8334: compiler_needs_object=no
8335: enable_shared_with_static_runtimes=no
8336: export_dynamic_flag_spec=
8337: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8338: hardcode_automatic=no
8339: hardcode_direct=no
8340: hardcode_direct_absolute=no
8341: hardcode_libdir_flag_spec=
8342: hardcode_libdir_separator=
8343: hardcode_minus_L=no
8344: hardcode_shlibpath_var=unsupported
8345: inherit_rpath=no
8346: link_all_deplibs=unknown
8347: module_cmds=
8348: module_expsym_cmds=
8349: old_archive_from_new_cmds=
8350: old_archive_from_expsyms_cmds=
8351: thread_safe_flag_spec=
8352: whole_archive_flag_spec=
8353: # include_expsyms should be a list of space-separated symbols to be *always*
8354: # included in the symbol list
8355: include_expsyms=
8356: # exclude_expsyms can be an extended regexp of symbols to exclude
8357: # it will be wrapped by ` (' and `)$', so one must not match beginning or
8358: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8359: # as well as any symbol that contains `d'.
8360: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8361: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8362: # platforms (ab)use it in PIC code, but their linkers get confused if
8363: # the symbol is explicitly referenced. Since portable code cannot
8364: # rely on this symbol name, it's probably fine to never include it in
8365: # preloaded symbol tables.
8366: # Exclude shared library initialization/finalization symbols.
8367: extract_expsyms_cmds=
1.9 ohara 8368:
8369: case $host_os in
1.10 ohara 8370: cygwin* | mingw* | pw32* | cegcc*)
8371: # FIXME: the MSVC++ port hasn't been tested in a loooong time
8372: # When not using gcc, we currently assume that we are using
8373: # Microsoft Visual C++.
8374: if test "$GCC" != yes; then
8375: with_gnu_ld=no
8376: fi
8377: ;;
8378: interix*)
8379: # we just hope/assume this is gcc and not c89 (= MSVC++)
8380: with_gnu_ld=yes
8381: ;;
8382: openbsd*)
8383: with_gnu_ld=no
8384: ;;
1.9 ohara 8385: esac
1.10 ohara 8386:
8387: ld_shlibs=yes
8388:
8389: # On some targets, GNU ld is compatible enough with the native linker
8390: # that we're better off using the native interface for both.
8391: lt_use_gnu_ld_interface=no
8392: if test "$with_gnu_ld" = yes; then
1.9 ohara 8393: case $host_os in
1.10 ohara 8394: aix*)
8395: # The AIX port of GNU ld has always aspired to compatibility
8396: # with the native linker. However, as the warning in the GNU ld
8397: # block says, versions before 2.19.5* couldn't really create working
8398: # shared libraries, regardless of the interface used.
8399: case `$LD -v 2>&1` in
8400: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8401: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8402: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8403: *)
8404: lt_use_gnu_ld_interface=yes
8405: ;;
8406: esac
1.9 ohara 8407: ;;
8408: *)
1.10 ohara 8409: lt_use_gnu_ld_interface=yes
1.9 ohara 8410: ;;
1.10 ohara 8411: esac
1.9 ohara 8412: fi
8413:
1.10 ohara 8414: if test "$lt_use_gnu_ld_interface" = yes; then
8415: # If archive_cmds runs LD, not CC, wlarc should be empty
8416: wlarc='${wl}'
8417:
8418: # Set some defaults for GNU ld with shared library support. These
8419: # are reset later if shared libraries are not supported. Putting them
8420: # here allows them to be overridden if necessary.
8421: runpath_var=LD_RUN_PATH
8422: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8423: export_dynamic_flag_spec='${wl}--export-dynamic'
8424: # ancient GNU ld didn't support --whole-archive et. al.
8425: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8426: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8427: else
8428: whole_archive_flag_spec=
8429: fi
8430: supports_anon_versioning=no
8431: case `$LD -v 2>&1` in
8432: *GNU\ gold*) supports_anon_versioning=yes ;;
8433: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8434: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8435: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8436: *\ 2.11.*) ;; # other 2.11 versions
8437: *) supports_anon_versioning=yes ;;
8438: esac
8439:
8440: # See if GNU ld supports shared libraries.
8441: case $host_os in
8442: aix[3-9]*)
8443: # On AIX/PPC, the GNU linker is very broken
8444: if test "$host_cpu" != ia64; then
8445: ld_shlibs=no
8446: cat <<_LT_EOF 1>&2
8447:
8448: *** Warning: the GNU linker, at least up to release 2.19, is reported
8449: *** to be unable to reliably create shared libraries on AIX.
8450: *** Therefore, libtool is disabling shared libraries support. If you
8451: *** really care for shared libraries, you may want to install binutils
8452: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8453: *** You will then need to restart the configuration process.
8454:
8455: _LT_EOF
8456: fi
8457: ;;
1.9 ohara 8458:
1.10 ohara 8459: amigaos*)
8460: case $host_cpu in
8461: powerpc)
8462: # see comment about AmigaOS4 .so support
8463: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8464: archive_expsym_cmds=''
8465: ;;
8466: m68k)
8467: 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)'
8468: hardcode_libdir_flag_spec='-L$libdir'
8469: hardcode_minus_L=yes
8470: ;;
8471: esac
8472: ;;
1.9 ohara 8473:
1.10 ohara 8474: beos*)
8475: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8476: allow_undefined_flag=unsupported
8477: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8478: # support --undefined. This deserves some investigation. FIXME
8479: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8480: else
8481: ld_shlibs=no
8482: fi
8483: ;;
1.9 ohara 8484:
1.10 ohara 8485: cygwin* | mingw* | pw32* | cegcc*)
8486: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8487: # as there is no search path for DLLs.
8488: hardcode_libdir_flag_spec='-L$libdir'
8489: export_dynamic_flag_spec='${wl}--export-all-symbols'
8490: allow_undefined_flag=unsupported
8491: always_export_symbols=no
8492: enable_shared_with_static_runtimes=yes
8493: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8494: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
1.9 ohara 8495:
1.10 ohara 8496: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8497: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8498: # If the export-symbols file already is a .def file (1st line
8499: # is EXPORTS), use it as is; otherwise, prepend...
8500: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8501: cp $export_symbols $output_objdir/$soname.def;
8502: else
8503: echo EXPORTS > $output_objdir/$soname.def;
8504: cat $export_symbols >> $output_objdir/$soname.def;
8505: fi~
8506: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8507: else
8508: ld_shlibs=no
8509: fi
1.9 ohara 8510: ;;
1.10 ohara 8511:
8512: haiku*)
8513: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8514: link_all_deplibs=yes
1.9 ohara 8515: ;;
1.10 ohara 8516:
8517: interix[3-9]*)
8518: hardcode_direct=no
8519: hardcode_shlibpath_var=no
8520: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8521: export_dynamic_flag_spec='${wl}-E'
8522: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8523: # Instead, shared libraries are loaded at an image base (0x10000000 by
8524: # default) and relocated if they conflict, which is a slow very memory
8525: # consuming and fragmenting process. To avoid this, we pick a random,
8526: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8527: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8528: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8529: archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
1.9 ohara 8530: ;;
8531:
1.10 ohara 8532: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8533: tmp_diet=no
8534: if test "$host_os" = linux-dietlibc; then
8535: case $cc_basename in
8536: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8537: esac
8538: fi
8539: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8540: && test "$tmp_diet" = no
8541: then
8542: tmp_addflag=' $pic_flag'
8543: tmp_sharedflag='-shared'
8544: case $cc_basename,$host_cpu in
8545: pgcc*) # Portland Group C compiler
8546: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8547: tmp_addflag=' $pic_flag'
8548: ;;
8549: pgf77* | pgf90* | pgf95* | pgfortran*)
8550: # Portland Group f77 and f90 compilers
8551: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8552: tmp_addflag=' $pic_flag -Mnomain' ;;
8553: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8554: tmp_addflag=' -i_dynamic' ;;
8555: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8556: tmp_addflag=' -i_dynamic -nofor_main' ;;
8557: ifc* | ifort*) # Intel Fortran compiler
8558: tmp_addflag=' -nofor_main' ;;
8559: lf95*) # Lahey Fortran 8.1
8560: whole_archive_flag_spec=
8561: tmp_sharedflag='--shared' ;;
8562: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8563: tmp_sharedflag='-qmkshrobj'
8564: tmp_addflag= ;;
8565: nvcc*) # Cuda Compiler Driver 2.2
8566: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8567: compiler_needs_object=yes
8568: ;;
8569: esac
8570: case `$CC -V 2>&1 | sed 5q` in
8571: *Sun\ C*) # Sun C 5.9
8572: whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8573: compiler_needs_object=yes
8574: tmp_sharedflag='-G' ;;
8575: *Sun\ F*) # Sun Fortran 8.3
8576: tmp_sharedflag='-G' ;;
8577: esac
8578: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8579:
8580: if test "x$supports_anon_versioning" = xyes; then
8581: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8582: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8583: echo "local: *; };" >> $output_objdir/$libname.ver~
8584: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8585: fi
8586:
8587: case $cc_basename in
8588: xlf* | bgf* | bgxlf* | mpixlf*)
8589: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8590: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8591: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8592: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8593: if test "x$supports_anon_versioning" = xyes; then
8594: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8595: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8596: echo "local: *; };" >> $output_objdir/$libname.ver~
8597: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8598: fi
8599: ;;
8600: esac
8601: else
8602: ld_shlibs=no
8603: fi
8604: ;;
1.9 ohara 8605:
1.10 ohara 8606: netbsd*)
8607: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8608: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8609: wlarc=
8610: else
8611: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8612: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8613: fi
8614: ;;
1.9 ohara 8615:
1.10 ohara 8616: solaris*)
8617: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8618: ld_shlibs=no
8619: cat <<_LT_EOF 1>&2
1.9 ohara 8620:
1.10 ohara 8621: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8622: *** create shared libraries on Solaris systems. Therefore, libtool
8623: *** is disabling shared libraries support. We urge you to upgrade GNU
8624: *** binutils to release 2.9.1 or newer. Another option is to modify
8625: *** your PATH or compiler configuration so that the native linker is
8626: *** used, and then restart.
1.9 ohara 8627:
1.10 ohara 8628: _LT_EOF
8629: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8630: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8631: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8632: else
8633: ld_shlibs=no
8634: fi
8635: ;;
1.9 ohara 8636:
1.10 ohara 8637: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8638: case `$LD -v 2>&1` in
8639: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8640: ld_shlibs=no
8641: cat <<_LT_EOF 1>&2
1.9 ohara 8642:
1.10 ohara 8643: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8644: *** reliably create shared libraries on SCO systems. Therefore, libtool
8645: *** is disabling shared libraries support. We urge you to upgrade GNU
8646: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8647: *** your PATH or compiler configuration so that the native linker is
8648: *** used, and then restart.
1.9 ohara 8649:
1.10 ohara 8650: _LT_EOF
8651: ;;
8652: *)
8653: # For security reasons, it is highly recommended that you always
8654: # use absolute paths for naming shared libraries, and exclude the
8655: # DT_RUNPATH tag from executables and libraries. But doing so
8656: # requires that you compile everything twice, which is a pain.
8657: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8658: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8659: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8660: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8661: else
8662: ld_shlibs=no
8663: fi
8664: ;;
8665: esac
8666: ;;
1.9 ohara 8667:
1.10 ohara 8668: sunos4*)
8669: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8670: wlarc=
8671: hardcode_direct=yes
8672: hardcode_shlibpath_var=no
8673: ;;
1.9 ohara 8674:
8675: *)
1.10 ohara 8676: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8677: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8678: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8679: else
8680: ld_shlibs=no
8681: fi
1.9 ohara 8682: ;;
8683: esac
8684:
1.10 ohara 8685: if test "$ld_shlibs" = no; then
8686: runpath_var=
8687: hardcode_libdir_flag_spec=
8688: export_dynamic_flag_spec=
8689: whole_archive_flag_spec=
8690: fi
8691: else
8692: # PORTME fill in a description of your system's linker (not GNU ld)
8693: case $host_os in
8694: aix3*)
8695: allow_undefined_flag=unsupported
8696: always_export_symbols=yes
8697: 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'
8698: # Note: this linker hardcodes the directories in LIBPATH if there
8699: # are no directories specified by -L.
8700: hardcode_minus_L=yes
8701: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8702: # Neither direct hardcoding nor static linking is supported with a
8703: # broken collect2.
8704: hardcode_direct=unsupported
8705: fi
8706: ;;
1.9 ohara 8707:
1.10 ohara 8708: aix[4-9]*)
8709: if test "$host_cpu" = ia64; then
8710: # On IA64, the linker does run time linking by default, so we don't
8711: # have to do anything special.
8712: aix_use_runtimelinking=no
8713: exp_sym_flag='-Bexport'
8714: no_entry_flag=""
8715: else
8716: # If we're using GNU nm, then we don't want the "-C" option.
8717: # -C means demangle to AIX nm, but means don't demangle with GNU nm
8718: # Also, AIX nm treats weak defined symbols like other global
8719: # defined symbols, whereas GNU nm marks them as "W".
8720: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8721: export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8722: else
8723: export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8724: fi
8725: aix_use_runtimelinking=no
1.9 ohara 8726:
1.10 ohara 8727: # Test if we are trying to use run time linking or normal
8728: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8729: # need to do runtime linking.
8730: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8731: for ld_flag in $LDFLAGS; do
8732: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8733: aix_use_runtimelinking=yes
8734: break
8735: fi
8736: done
8737: ;;
8738: esac
1.9 ohara 8739:
1.10 ohara 8740: exp_sym_flag='-bexport'
8741: no_entry_flag='-bnoentry'
8742: fi
1.9 ohara 8743:
1.10 ohara 8744: # When large executables or shared objects are built, AIX ld can
8745: # have problems creating the table of contents. If linking a library
8746: # or program results in "error TOC overflow" add -mminimal-toc to
8747: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8748: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
1.9 ohara 8749:
1.10 ohara 8750: archive_cmds=''
8751: hardcode_direct=yes
8752: hardcode_direct_absolute=yes
8753: hardcode_libdir_separator=':'
8754: link_all_deplibs=yes
8755: file_list_spec='${wl}-f,'
1.9 ohara 8756:
1.10 ohara 8757: if test "$GCC" = yes; then
8758: case $host_os in aix4.[012]|aix4.[012].*)
8759: # We only want to do this on AIX 4.2 and lower, the check
8760: # below for broken collect2 doesn't work under 4.3+
8761: collect2name=`${CC} -print-prog-name=collect2`
8762: if test -f "$collect2name" &&
8763: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8764: then
8765: # We have reworked collect2
8766: :
8767: else
8768: # We have old collect2
8769: hardcode_direct=unsupported
8770: # It fails to find uninstalled libraries when the uninstalled
8771: # path is not listed in the libpath. Setting hardcode_minus_L
8772: # to unsupported forces relinking
8773: hardcode_minus_L=yes
8774: hardcode_libdir_flag_spec='-L$libdir'
8775: hardcode_libdir_separator=
8776: fi
8777: ;;
8778: esac
8779: shared_flag='-shared'
8780: if test "$aix_use_runtimelinking" = yes; then
8781: shared_flag="$shared_flag "'${wl}-G'
8782: fi
8783: else
8784: # not using gcc
8785: if test "$host_cpu" = ia64; then
8786: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8787: # chokes on -Wl,-G. The following line is correct:
8788: shared_flag='-G'
8789: else
8790: if test "$aix_use_runtimelinking" = yes; then
8791: shared_flag='${wl}-G'
8792: else
8793: shared_flag='${wl}-bM:SRE'
8794: fi
8795: fi
8796: fi
1.9 ohara 8797:
1.10 ohara 8798: export_dynamic_flag_spec='${wl}-bexpall'
8799: # It seems that -bexpall does not export symbols beginning with
8800: # underscore (_), so it is better to generate a list of symbols to export.
8801: always_export_symbols=yes
8802: if test "$aix_use_runtimelinking" = yes; then
8803: # Warning - without using the other runtime loading flags (-brtl),
8804: # -berok will link without error, but may produce a broken library.
8805: allow_undefined_flag='-berok'
8806: # Determine the default libpath from the value encoded in an
8807: # empty executable.
8808: if test "${lt_cv_aix_libpath+set}" = set; then
8809: aix_libpath=$lt_cv_aix_libpath
8810: else
8811: if ${lt_cv_aix_libpath_+:} false; then :
8812: $as_echo_n "(cached) " >&6
8813: else
8814: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8815: /* end confdefs.h. */
1.9 ohara 8816:
1.10 ohara 8817: int
8818: main ()
8819: {
1.9 ohara 8820:
1.10 ohara 8821: ;
8822: return 0;
8823: }
8824: _ACEOF
8825: if ac_fn_c_try_link "$LINENO"; then :
1.9 ohara 8826:
1.10 ohara 8827: lt_aix_libpath_sed='
8828: /Import File Strings/,/^$/ {
8829: /^0/ {
8830: s/^0 *\([^ ]*\) *$/\1/
8831: p
8832: }
8833: }'
8834: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8835: # Check for a 64-bit object if we didn't find anything.
8836: if test -z "$lt_cv_aix_libpath_"; then
8837: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8838: fi
8839: fi
8840: rm -f core conftest.err conftest.$ac_objext \
8841: conftest$ac_exeext conftest.$ac_ext
8842: if test -z "$lt_cv_aix_libpath_"; then
8843: lt_cv_aix_libpath_="/usr/lib:/lib"
8844: fi
1.9 ohara 8845:
1.10 ohara 8846: fi
1.9 ohara 8847:
1.10 ohara 8848: aix_libpath=$lt_cv_aix_libpath_
8849: fi
1.9 ohara 8850:
1.10 ohara 8851: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8852: archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8853: else
8854: if test "$host_cpu" = ia64; then
8855: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8856: allow_undefined_flag="-z nodefs"
8857: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8858: else
8859: # Determine the default libpath from the value encoded in an
8860: # empty executable.
8861: if test "${lt_cv_aix_libpath+set}" = set; then
8862: aix_libpath=$lt_cv_aix_libpath
8863: else
8864: if ${lt_cv_aix_libpath_+:} false; then :
8865: $as_echo_n "(cached) " >&6
8866: else
8867: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8868: /* end confdefs.h. */
1.9 ohara 8869:
1.10 ohara 8870: int
8871: main ()
8872: {
1.9 ohara 8873:
1.10 ohara 8874: ;
8875: return 0;
8876: }
8877: _ACEOF
8878: if ac_fn_c_try_link "$LINENO"; then :
1.9 ohara 8879:
1.10 ohara 8880: lt_aix_libpath_sed='
8881: /Import File Strings/,/^$/ {
8882: /^0/ {
8883: s/^0 *\([^ ]*\) *$/\1/
8884: p
8885: }
8886: }'
8887: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8888: # Check for a 64-bit object if we didn't find anything.
8889: if test -z "$lt_cv_aix_libpath_"; then
8890: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8891: fi
8892: fi
8893: rm -f core conftest.err conftest.$ac_objext \
8894: conftest$ac_exeext conftest.$ac_ext
8895: if test -z "$lt_cv_aix_libpath_"; then
8896: lt_cv_aix_libpath_="/usr/lib:/lib"
8897: fi
1.9 ohara 8898:
1.10 ohara 8899: fi
1.9 ohara 8900:
1.10 ohara 8901: aix_libpath=$lt_cv_aix_libpath_
8902: fi
1.9 ohara 8903:
1.10 ohara 8904: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8905: # Warning - without using the other run time loading flags,
8906: # -berok will link without error, but may produce a broken library.
8907: no_undefined_flag=' ${wl}-bernotok'
8908: allow_undefined_flag=' ${wl}-berok'
8909: if test "$with_gnu_ld" = yes; then
8910: # We only use this code for GNU lds that support --whole-archive.
8911: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8912: else
8913: # Exported symbols can be pulled into shared objects from archives
8914: whole_archive_flag_spec='$convenience'
8915: fi
8916: archive_cmds_need_lc=yes
8917: # This is similar to how AIX traditionally builds its shared libraries.
8918: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8919: fi
8920: fi
8921: ;;
1.9 ohara 8922:
1.10 ohara 8923: amigaos*)
8924: case $host_cpu in
8925: powerpc)
8926: # see comment about AmigaOS4 .so support
8927: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8928: archive_expsym_cmds=''
8929: ;;
8930: m68k)
8931: 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)'
8932: hardcode_libdir_flag_spec='-L$libdir'
8933: hardcode_minus_L=yes
8934: ;;
8935: esac
8936: ;;
1.9 ohara 8937:
1.10 ohara 8938: bsdi[45]*)
8939: export_dynamic_flag_spec=-rdynamic
8940: ;;
1.9 ohara 8941:
1.10 ohara 8942: cygwin* | mingw* | pw32* | cegcc*)
8943: # When not using gcc, we currently assume that we are using
8944: # Microsoft Visual C++.
8945: # hardcode_libdir_flag_spec is actually meaningless, as there is
8946: # no search path for DLLs.
8947: case $cc_basename in
8948: cl*)
8949: # Native MSVC
8950: hardcode_libdir_flag_spec=' '
8951: allow_undefined_flag=unsupported
8952: always_export_symbols=yes
8953: file_list_spec='@'
8954: # Tell ltmain to make .lib files, not .a files.
8955: libext=lib
8956: # Tell ltmain to make .dll files, not .so files.
8957: shrext_cmds=".dll"
8958: # FIXME: Setting linknames here is a bad hack.
8959: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8960: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8961: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8962: else
8963: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8964: fi~
8965: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8966: linknames='
8967: # The linker will not automatically build a static lib if we build a DLL.
8968: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8969: enable_shared_with_static_runtimes=yes
8970: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8971: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8972: # Don't use ranlib
8973: old_postinstall_cmds='chmod 644 $oldlib'
8974: postlink_cmds='lt_outputfile="@OUTPUT@"~
8975: lt_tool_outputfile="@TOOL_OUTPUT@"~
8976: case $lt_outputfile in
8977: *.exe|*.EXE) ;;
8978: *)
8979: lt_outputfile="$lt_outputfile.exe"
8980: lt_tool_outputfile="$lt_tool_outputfile.exe"
8981: ;;
8982: esac~
8983: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8984: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8985: $RM "$lt_outputfile.manifest";
8986: fi'
8987: ;;
8988: *)
8989: # Assume MSVC wrapper
8990: hardcode_libdir_flag_spec=' '
8991: allow_undefined_flag=unsupported
8992: # Tell ltmain to make .lib files, not .a files.
8993: libext=lib
8994: # Tell ltmain to make .dll files, not .so files.
8995: shrext_cmds=".dll"
8996: # FIXME: Setting linknames here is a bad hack.
8997: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8998: # The linker will automatically build a .lib file if we build a DLL.
8999: old_archive_from_new_cmds='true'
9000: # FIXME: Should let the user specify the lib program.
9001: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9002: enable_shared_with_static_runtimes=yes
9003: ;;
9004: esac
9005: ;;
1.9 ohara 9006:
1.10 ohara 9007: darwin* | rhapsody*)
1.9 ohara 9008:
9009:
1.10 ohara 9010: archive_cmds_need_lc=no
9011: hardcode_direct=no
9012: hardcode_automatic=yes
9013: hardcode_shlibpath_var=unsupported
9014: if test "$lt_cv_ld_force_load" = "yes"; then
9015: whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1.9 ohara 9016:
1.10 ohara 9017: else
9018: whole_archive_flag_spec=''
9019: fi
9020: link_all_deplibs=yes
9021: allow_undefined_flag="$_lt_dar_allow_undefined"
9022: case $cc_basename in
9023: ifort*) _lt_dar_can_shared=yes ;;
9024: *) _lt_dar_can_shared=$GCC ;;
9025: esac
9026: if test "$_lt_dar_can_shared" = "yes"; then
9027: output_verbose_link_cmd=func_echo_all
9028: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9029: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9030: archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9031: module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
1.9 ohara 9032:
1.10 ohara 9033: else
9034: ld_shlibs=no
9035: fi
1.9 ohara 9036:
1.10 ohara 9037: ;;
1.9 ohara 9038:
1.10 ohara 9039: dgux*)
9040: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9041: hardcode_libdir_flag_spec='-L$libdir'
9042: hardcode_shlibpath_var=no
9043: ;;
1.9 ohara 9044:
1.10 ohara 9045: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9046: # support. Future versions do this automatically, but an explicit c++rt0.o
9047: # does not break anything, and helps significantly (at the cost of a little
9048: # extra space).
9049: freebsd2.2*)
9050: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9051: hardcode_libdir_flag_spec='-R$libdir'
9052: hardcode_direct=yes
9053: hardcode_shlibpath_var=no
9054: ;;
1.9 ohara 9055:
1.10 ohara 9056: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9057: freebsd2.*)
9058: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9059: hardcode_direct=yes
9060: hardcode_minus_L=yes
9061: hardcode_shlibpath_var=no
9062: ;;
1.9 ohara 9063:
1.10 ohara 9064: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9065: freebsd* | dragonfly*)
9066: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9067: hardcode_libdir_flag_spec='-R$libdir'
9068: hardcode_direct=yes
9069: hardcode_shlibpath_var=no
9070: ;;
1.9 ohara 9071:
1.10 ohara 9072: hpux9*)
9073: if test "$GCC" = yes; then
9074: archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9075: else
9076: 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'
9077: fi
9078: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9079: hardcode_libdir_separator=:
9080: hardcode_direct=yes
1.9 ohara 9081:
1.10 ohara 9082: # hardcode_minus_L: Not really in the search PATH,
9083: # but as the default location of the library.
9084: hardcode_minus_L=yes
9085: export_dynamic_flag_spec='${wl}-E'
9086: ;;
1.9 ohara 9087:
1.10 ohara 9088: hpux10*)
9089: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9090: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9091: else
9092: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9093: fi
9094: if test "$with_gnu_ld" = no; then
9095: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9096: hardcode_libdir_separator=:
9097: hardcode_direct=yes
9098: hardcode_direct_absolute=yes
9099: export_dynamic_flag_spec='${wl}-E'
9100: # hardcode_minus_L: Not really in the search PATH,
9101: # but as the default location of the library.
9102: hardcode_minus_L=yes
9103: fi
9104: ;;
1.9 ohara 9105:
1.10 ohara 9106: hpux11*)
9107: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9108: case $host_cpu in
9109: hppa*64*)
9110: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9111: ;;
9112: ia64*)
9113: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9114: ;;
9115: *)
9116: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9117: ;;
9118: esac
9119: else
9120: case $host_cpu in
9121: hppa*64*)
9122: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9123: ;;
9124: ia64*)
9125: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9126: ;;
9127: *)
1.9 ohara 9128:
1.10 ohara 9129: # Older versions of the 11.00 compiler do not understand -b yet
9130: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9131: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9132: $as_echo_n "checking if $CC understands -b... " >&6; }
9133: if ${lt_cv_prog_compiler__b+:} false; then :
9134: $as_echo_n "(cached) " >&6
9135: else
9136: lt_cv_prog_compiler__b=no
9137: save_LDFLAGS="$LDFLAGS"
9138: LDFLAGS="$LDFLAGS -b"
9139: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9140: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9141: # The linker can only warn and ignore the option if not recognized
9142: # So say no if there are warnings
9143: if test -s conftest.err; then
9144: # Append any errors to the config.log.
9145: cat conftest.err 1>&5
9146: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9147: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9148: if diff conftest.exp conftest.er2 >/dev/null; then
9149: lt_cv_prog_compiler__b=yes
9150: fi
9151: else
9152: lt_cv_prog_compiler__b=yes
9153: fi
9154: fi
9155: $RM -r conftest*
9156: LDFLAGS="$save_LDFLAGS"
1.9 ohara 9157:
1.10 ohara 9158: fi
9159: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9160: $as_echo "$lt_cv_prog_compiler__b" >&6; }
1.9 ohara 9161:
1.10 ohara 9162: if test x"$lt_cv_prog_compiler__b" = xyes; then
9163: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9164: else
9165: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9166: fi
1.9 ohara 9167:
1.10 ohara 9168: ;;
9169: esac
9170: fi
9171: if test "$with_gnu_ld" = no; then
9172: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9173: hardcode_libdir_separator=:
1.9 ohara 9174:
1.10 ohara 9175: case $host_cpu in
9176: hppa*64*|ia64*)
9177: hardcode_direct=no
9178: hardcode_shlibpath_var=no
9179: ;;
9180: *)
9181: hardcode_direct=yes
9182: hardcode_direct_absolute=yes
9183: export_dynamic_flag_spec='${wl}-E'
1.9 ohara 9184:
1.10 ohara 9185: # hardcode_minus_L: Not really in the search PATH,
9186: # but as the default location of the library.
9187: hardcode_minus_L=yes
9188: ;;
9189: esac
9190: fi
9191: ;;
1.9 ohara 9192:
1.10 ohara 9193: irix5* | irix6* | nonstopux*)
9194: if test "$GCC" = yes; then
9195: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9196: # Try to use the -exported_symbol ld option, if it does not
9197: # work, assume that -exports_file does not work either and
9198: # implicitly export all symbols.
9199: # This should be the same for all languages, so no per-tag cache variable.
9200: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9201: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9202: if ${lt_cv_irix_exported_symbol+:} false; then :
9203: $as_echo_n "(cached) " >&6
9204: else
9205: save_LDFLAGS="$LDFLAGS"
9206: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9207: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9208: /* end confdefs.h. */
9209: int foo (void) { return 0; }
9210: _ACEOF
9211: if ac_fn_c_try_link "$LINENO"; then :
9212: lt_cv_irix_exported_symbol=yes
9213: else
9214: lt_cv_irix_exported_symbol=no
9215: fi
9216: rm -f core conftest.err conftest.$ac_objext \
9217: conftest$ac_exeext conftest.$ac_ext
9218: LDFLAGS="$save_LDFLAGS"
9219: fi
9220: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9221: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9222: if test "$lt_cv_irix_exported_symbol" = yes; then
9223: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9224: fi
9225: else
9226: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9227: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9228: fi
9229: archive_cmds_need_lc='no'
9230: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9231: hardcode_libdir_separator=:
9232: inherit_rpath=yes
9233: link_all_deplibs=yes
9234: ;;
1.9 ohara 9235:
1.10 ohara 9236: netbsd*)
9237: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9238: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9239: else
9240: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9241: fi
9242: hardcode_libdir_flag_spec='-R$libdir'
9243: hardcode_direct=yes
9244: hardcode_shlibpath_var=no
9245: ;;
1.9 ohara 9246:
1.10 ohara 9247: newsos6)
9248: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9249: hardcode_direct=yes
9250: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9251: hardcode_libdir_separator=:
9252: hardcode_shlibpath_var=no
9253: ;;
1.9 ohara 9254:
1.10 ohara 9255: *nto* | *qnx*)
9256: ;;
1.9 ohara 9257:
1.10 ohara 9258: openbsd*)
9259: if test -f /usr/libexec/ld.so; then
9260: hardcode_direct=yes
9261: hardcode_shlibpath_var=no
9262: hardcode_direct_absolute=yes
9263: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9264: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9265: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9266: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9267: export_dynamic_flag_spec='${wl}-E'
9268: else
9269: case $host_os in
9270: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9271: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9272: hardcode_libdir_flag_spec='-R$libdir'
9273: ;;
9274: *)
9275: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9276: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9277: ;;
9278: esac
9279: fi
9280: else
9281: ld_shlibs=no
9282: fi
9283: ;;
1.9 ohara 9284:
1.10 ohara 9285: os2*)
9286: hardcode_libdir_flag_spec='-L$libdir'
9287: hardcode_minus_L=yes
9288: allow_undefined_flag=unsupported
9289: 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'
9290: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9291: ;;
1.9 ohara 9292:
1.10 ohara 9293: osf3*)
9294: if test "$GCC" = yes; then
9295: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9296: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9297: else
9298: allow_undefined_flag=' -expect_unresolved \*'
9299: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9300: fi
9301: archive_cmds_need_lc='no'
9302: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9303: hardcode_libdir_separator=:
9304: ;;
1.9 ohara 9305:
1.10 ohara 9306: osf4* | osf5*) # as osf3* with the addition of -msym flag
9307: if test "$GCC" = yes; then
9308: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9309: archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9310: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9311: else
9312: allow_undefined_flag=' -expect_unresolved \*'
9313: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9314: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9315: $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
1.9 ohara 9316:
1.10 ohara 9317: # Both c and cxx compiler support -rpath directly
9318: hardcode_libdir_flag_spec='-rpath $libdir'
9319: fi
9320: archive_cmds_need_lc='no'
9321: hardcode_libdir_separator=:
9322: ;;
1.9 ohara 9323:
1.10 ohara 9324: solaris*)
9325: no_undefined_flag=' -z defs'
9326: if test "$GCC" = yes; then
9327: wlarc='${wl}'
9328: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9329: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9330: $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9331: else
9332: case `$CC -V 2>&1` in
9333: *"Compilers 5.0"*)
9334: wlarc=''
9335: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9336: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9337: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9338: ;;
9339: *)
9340: wlarc='${wl}'
9341: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9342: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9343: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9344: ;;
9345: esac
9346: fi
9347: hardcode_libdir_flag_spec='-R$libdir'
9348: hardcode_shlibpath_var=no
9349: case $host_os in
9350: solaris2.[0-5] | solaris2.[0-5].*) ;;
9351: *)
9352: # The compiler driver will combine and reorder linker options,
9353: # but understands `-z linker_flag'. GCC discards it without `$wl',
9354: # but is careful enough not to reorder.
9355: # Supported since Solaris 2.6 (maybe 2.5.1?)
9356: if test "$GCC" = yes; then
9357: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9358: else
9359: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9360: fi
9361: ;;
9362: esac
9363: link_all_deplibs=yes
9364: ;;
1.9 ohara 9365:
1.10 ohara 9366: sunos4*)
9367: if test "x$host_vendor" = xsequent; then
9368: # Use $CC to link under sequent, because it throws in some extra .o
9369: # files that make .init and .fini sections work.
9370: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9371: else
9372: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9373: fi
9374: hardcode_libdir_flag_spec='-L$libdir'
9375: hardcode_direct=yes
9376: hardcode_minus_L=yes
9377: hardcode_shlibpath_var=no
9378: ;;
1.9 ohara 9379:
1.10 ohara 9380: sysv4)
9381: case $host_vendor in
9382: sni)
9383: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9384: hardcode_direct=yes # is this really true???
9385: ;;
9386: siemens)
9387: ## LD is ld it makes a PLAMLIB
9388: ## CC just makes a GrossModule.
9389: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9390: reload_cmds='$CC -r -o $output$reload_objs'
9391: hardcode_direct=no
9392: ;;
9393: motorola)
9394: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9395: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9396: ;;
9397: esac
9398: runpath_var='LD_RUN_PATH'
9399: hardcode_shlibpath_var=no
9400: ;;
1.9 ohara 9401:
1.10 ohara 9402: sysv4.3*)
9403: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9404: hardcode_shlibpath_var=no
9405: export_dynamic_flag_spec='-Bexport'
9406: ;;
1.9 ohara 9407:
1.10 ohara 9408: sysv4*MP*)
9409: if test -d /usr/nec; then
9410: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9411: hardcode_shlibpath_var=no
9412: runpath_var=LD_RUN_PATH
9413: hardcode_runpath_var=yes
9414: ld_shlibs=yes
9415: fi
9416: ;;
1.9 ohara 9417:
1.10 ohara 9418: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9419: no_undefined_flag='${wl}-z,text'
9420: archive_cmds_need_lc=no
9421: hardcode_shlibpath_var=no
9422: runpath_var='LD_RUN_PATH'
1.9 ohara 9423:
1.10 ohara 9424: if test "$GCC" = yes; then
9425: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9426: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9427: else
9428: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9429: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9430: fi
9431: ;;
1.9 ohara 9432:
1.10 ohara 9433: sysv5* | sco3.2v5* | sco5v6*)
9434: # Note: We can NOT use -z defs as we might desire, because we do not
9435: # link with -lc, and that would cause any symbols used from libc to
9436: # always be unresolved, which means just about no library would
9437: # ever link correctly. If we're not using GNU ld we use -z text
9438: # though, which does catch some bad symbols but isn't as heavy-handed
9439: # as -z defs.
9440: no_undefined_flag='${wl}-z,text'
9441: allow_undefined_flag='${wl}-z,nodefs'
9442: archive_cmds_need_lc=no
9443: hardcode_shlibpath_var=no
9444: hardcode_libdir_flag_spec='${wl}-R,$libdir'
9445: hardcode_libdir_separator=':'
9446: link_all_deplibs=yes
9447: export_dynamic_flag_spec='${wl}-Bexport'
9448: runpath_var='LD_RUN_PATH'
1.9 ohara 9449:
1.10 ohara 9450: if test "$GCC" = yes; then
9451: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9452: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9453: else
9454: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9455: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9456: fi
9457: ;;
1.9 ohara 9458:
1.10 ohara 9459: uts4*)
9460: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9461: hardcode_libdir_flag_spec='-L$libdir'
9462: hardcode_shlibpath_var=no
9463: ;;
1.9 ohara 9464:
1.10 ohara 9465: *)
9466: ld_shlibs=no
9467: ;;
9468: esac
1.9 ohara 9469:
1.10 ohara 9470: if test x$host_vendor = xsni; then
9471: case $host in
9472: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9473: export_dynamic_flag_spec='${wl}-Blargedynsym'
9474: ;;
9475: esac
9476: fi
9477: fi
1.9 ohara 9478:
1.10 ohara 9479: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9480: $as_echo "$ld_shlibs" >&6; }
9481: test "$ld_shlibs" = no && can_build_shared=no
1.9 ohara 9482:
1.10 ohara 9483: with_gnu_ld=$with_gnu_ld
1.9 ohara 9484:
9485:
9486:
9487:
9488:
9489:
9490:
9491:
9492:
9493:
9494:
9495:
9496:
9497:
9498:
1.10 ohara 9499: #
9500: # Do we need to explicitly link libc?
9501: #
9502: case "x$archive_cmds_need_lc" in
9503: x|xyes)
9504: # Assume -lc should be added
9505: archive_cmds_need_lc=yes
1.9 ohara 9506:
1.10 ohara 9507: if test "$enable_shared" = yes && test "$GCC" = yes; then
9508: case $archive_cmds in
9509: *'~'*)
9510: # FIXME: we may have to deal with multi-command sequences.
9511: ;;
9512: '$CC '*)
9513: # Test whether the compiler implicitly links with -lc since on some
9514: # systems, -lgcc has to come before -lc. If gcc already passes -lc
9515: # to ld, don't add -lc before -lgcc.
9516: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9517: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9518: if ${lt_cv_archive_cmds_need_lc+:} false; then :
9519: $as_echo_n "(cached) " >&6
1.9 ohara 9520: else
1.10 ohara 9521: $RM conftest*
9522: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.9 ohara 9523:
1.10 ohara 9524: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9525: (eval $ac_compile) 2>&5
9526: ac_status=$?
9527: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9528: test $ac_status = 0; } 2>conftest.err; then
9529: soname=conftest
9530: lib=conftest
9531: libobjs=conftest.$ac_objext
9532: deplibs=
9533: wl=$lt_prog_compiler_wl
9534: pic_flag=$lt_prog_compiler_pic
9535: compiler_flags=-v
9536: linker_flags=-v
9537: verstring=
9538: output_objdir=.
9539: libname=conftest
9540: lt_save_allow_undefined_flag=$allow_undefined_flag
9541: allow_undefined_flag=
9542: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9543: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9544: ac_status=$?
9545: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9546: test $ac_status = 0; }
9547: then
9548: lt_cv_archive_cmds_need_lc=no
9549: else
9550: lt_cv_archive_cmds_need_lc=yes
9551: fi
9552: allow_undefined_flag=$lt_save_allow_undefined_flag
1.9 ohara 9553: else
1.10 ohara 9554: cat conftest.err 1>&5
1.9 ohara 9555: fi
1.10 ohara 9556: $RM conftest*
1.9 ohara 9557:
1.10 ohara 9558: fi
9559: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9560: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9561: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9562: ;;
9563: esac
9564: fi
9565: ;;
9566: esac
1.9 ohara 9567:
9568:
9569:
9570:
9571:
9572:
9573:
9574:
9575:
9576:
9577:
9578:
9579:
9580:
9581:
9582:
9583:
9584:
9585:
9586:
9587:
9588:
9589:
9590:
9591:
9592:
9593:
9594:
9595:
9596:
9597:
9598:
9599:
9600:
9601:
9602:
9603:
9604:
9605:
9606:
9607:
9608:
9609:
9610:
9611:
9612:
9613:
9614:
9615:
9616:
9617:
9618:
9619:
9620:
9621:
9622:
9623:
9624:
9625:
9626:
9627:
9628:
9629:
9630:
9631:
9632:
9633:
9634:
9635:
9636:
9637:
9638:
9639:
9640:
9641:
9642:
9643:
9644:
9645:
9646:
9647:
9648:
9649:
9650:
9651:
9652:
9653:
9654:
9655:
9656:
9657:
9658:
9659:
9660:
9661:
9662:
9663:
9664:
9665:
9666:
9667:
9668:
9669:
9670:
9671:
9672:
9673:
9674:
9675:
9676:
9677:
9678:
9679:
9680:
9681:
9682:
9683:
9684:
9685:
9686:
9687:
9688:
9689:
9690:
9691:
9692:
9693:
9694:
9695:
9696:
9697:
9698:
9699:
9700:
9701:
9702:
9703:
9704:
9705:
9706:
9707:
9708:
9709:
9710:
9711:
9712:
9713:
9714:
9715:
9716:
9717:
9718:
1.10 ohara 9719: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9720: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.9 ohara 9721:
1.10 ohara 9722: if test "$GCC" = yes; then
9723: case $host_os in
9724: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9725: *) lt_awk_arg="/^libraries:/" ;;
9726: esac
9727: case $host_os in
9728: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9729: *) lt_sed_strip_eq="s,=/,/,g" ;;
9730: esac
9731: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9732: case $lt_search_path_spec in
9733: *\;*)
9734: # if the path contains ";" then we assume it to be the separator
9735: # otherwise default to the standard path separator (i.e. ":") - it is
9736: # assumed that no part of a normal pathname contains ";" but that should
9737: # okay in the real world where ";" in dirpaths is itself problematic.
9738: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9739: ;;
9740: *)
9741: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9742: ;;
9743: esac
9744: # Ok, now we have the path, separated by spaces, we can step through it
9745: # and add multilib dir if necessary.
9746: lt_tmp_lt_search_path_spec=
9747: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9748: for lt_sys_path in $lt_search_path_spec; do
9749: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9750: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9751: else
9752: test -d "$lt_sys_path" && \
9753: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9754: fi
9755: done
9756: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9757: BEGIN {RS=" "; FS="/|\n";} {
9758: lt_foo="";
9759: lt_count=0;
9760: for (lt_i = NF; lt_i > 0; lt_i--) {
9761: if ($lt_i != "" && $lt_i != ".") {
9762: if ($lt_i == "..") {
9763: lt_count++;
9764: } else {
9765: if (lt_count == 0) {
9766: lt_foo="/" $lt_i lt_foo;
9767: } else {
9768: lt_count--;
9769: }
9770: }
9771: }
9772: }
9773: if (lt_foo != "") { lt_freq[lt_foo]++; }
9774: if (lt_freq[lt_foo] == 1) { print lt_foo; }
9775: }'`
9776: # AWK program above erroneously prepends '/' to C:/dos/paths
9777: # for these hosts.
9778: case $host_os in
9779: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9780: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9781: esac
9782: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9783: else
9784: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9785: fi
1.9 ohara 9786: library_names_spec=
9787: libname_spec='lib$name'
9788: soname_spec=
9789: shrext_cmds=".so"
9790: postinstall_cmds=
9791: postuninstall_cmds=
9792: finish_cmds=
9793: finish_eval=
9794: shlibpath_var=
9795: shlibpath_overrides_runpath=unknown
9796: version_type=none
9797: dynamic_linker="$host_os ld.so"
9798: sys_lib_dlsearch_path_spec="/lib /usr/lib"
9799: need_lib_prefix=unknown
9800: hardcode_into_libs=no
9801:
9802: # when you set need_version to no, make sure it does not cause -set_version
9803: # flags to be left without arguments
9804: need_version=unknown
9805:
9806: case $host_os in
9807: aix3*)
1.10 ohara 9808: version_type=linux # correct to gnu/linux during the next big refactor
1.9 ohara 9809: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9810: shlibpath_var=LIBPATH
9811:
9812: # AIX 3 has no versioning support, so we append a major version to the name.
9813: soname_spec='${libname}${release}${shared_ext}$major'
9814: ;;
9815:
1.10 ohara 9816: aix[4-9]*)
9817: version_type=linux # correct to gnu/linux during the next big refactor
1.9 ohara 9818: need_lib_prefix=no
9819: need_version=no
9820: hardcode_into_libs=yes
9821: if test "$host_cpu" = ia64; then
9822: # AIX 5 supports IA64
9823: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9824: shlibpath_var=LD_LIBRARY_PATH
9825: else
9826: # With GCC up to 2.95.x, collect2 would create an import file
9827: # for dependence libraries. The import file would start with
9828: # the line `#! .'. This would cause the generated library to
9829: # depend on `.', always an invalid library. This was fixed in
9830: # development snapshots of GCC prior to 3.0.
9831: case $host_os in
9832: aix4 | aix4.[01] | aix4.[01].*)
9833: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9834: echo ' yes '
1.10 ohara 9835: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
1.9 ohara 9836: :
9837: else
9838: can_build_shared=no
9839: fi
9840: ;;
9841: esac
9842: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9843: # soname into executable. Probably we can add versioning support to
9844: # collect2, so additional links can be useful in future.
9845: if test "$aix_use_runtimelinking" = yes; then
9846: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9847: # instead of lib<name>.a to let people know that these are not
9848: # typical AIX shared libraries.
9849: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9850: else
9851: # We preserve .a as extension for shared libraries through AIX4.2
9852: # and later when we are not doing run time linking.
9853: library_names_spec='${libname}${release}.a $libname.a'
9854: soname_spec='${libname}${release}${shared_ext}$major'
9855: fi
9856: shlibpath_var=LIBPATH
9857: fi
9858: ;;
9859:
9860: amigaos*)
1.10 ohara 9861: case $host_cpu in
9862: powerpc)
9863: # Since July 2007 AmigaOS4 officially supports .so libraries.
9864: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9865: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9866: ;;
9867: m68k)
9868: library_names_spec='$libname.ixlibrary $libname.a'
9869: # Create ${libname}_ixlibrary.a entries in /sys/libs.
9870: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
9871: ;;
9872: esac
1.9 ohara 9873: ;;
9874:
9875: beos*)
9876: library_names_spec='${libname}${shared_ext}'
9877: dynamic_linker="$host_os ld.so"
9878: shlibpath_var=LIBRARY_PATH
9879: ;;
9880:
9881: bsdi[45]*)
1.10 ohara 9882: version_type=linux # correct to gnu/linux during the next big refactor
1.9 ohara 9883: need_version=no
9884: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9885: soname_spec='${libname}${release}${shared_ext}$major'
9886: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9887: shlibpath_var=LD_LIBRARY_PATH
9888: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9889: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9890: # the default ld.so.conf also contains /usr/contrib/lib and
9891: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9892: # libtool to hard-code these into programs
9893: ;;
9894:
1.10 ohara 9895: cygwin* | mingw* | pw32* | cegcc*)
1.9 ohara 9896: version_type=windows
9897: shrext_cmds=".dll"
9898: need_version=no
9899: need_lib_prefix=no
9900:
1.10 ohara 9901: case $GCC,$cc_basename in
9902: yes,*)
9903: # gcc
9904: library_names_spec='$libname.dll.a'
9905: # DLL is installed to $(libdir)/../bin by postinstall_cmds
9906: postinstall_cmds='base_file=`basename \${file}`~
9907: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9908: dldir=$destdir/`dirname \$dlpath`~
9909: test -d \$dldir || mkdir -p \$dldir~
9910: $install_prog $dir/$dlname \$dldir/$dlname~
9911: chmod a+x \$dldir/$dlname~
9912: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9913: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9914: fi'
9915: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9916: dlpath=$dir/\$dldll~
9917: $RM \$dlpath'
9918: shlibpath_overrides_runpath=yes
9919:
9920: case $host_os in
9921: cygwin*)
9922: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9923: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9924:
9925: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9926: ;;
9927: mingw* | cegcc*)
9928: # MinGW DLLs use traditional 'lib' prefix
9929: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9930: ;;
9931: pw32*)
9932: # pw32 DLLs use 'pw' prefix rather than 'lib'
9933: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9934: ;;
9935: esac
9936: dynamic_linker='Win32 ld.exe'
9937: ;;
9938:
9939: *,cl*)
9940: # Native MSVC
9941: libname_spec='$name'
9942: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9943: library_names_spec='${libname}.dll.lib'
9944:
9945: case $build_os in
9946: mingw*)
9947: sys_lib_search_path_spec=
9948: lt_save_ifs=$IFS
9949: IFS=';'
9950: for lt_path in $LIB
9951: do
9952: IFS=$lt_save_ifs
9953: # Let DOS variable expansion print the short 8.3 style file name.
9954: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9955: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9956: done
9957: IFS=$lt_save_ifs
9958: # Convert to MSYS style.
9959: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9960: ;;
9961: cygwin*)
9962: # Convert to unix form, then to dos form, then back to unix form
9963: # but this time dos style (no spaces!) so that the unix form looks
9964: # like /cygdrive/c/PROGRA~1:/cygdr...
9965: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9966: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9967: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9968: ;;
9969: *)
9970: sys_lib_search_path_spec="$LIB"
9971: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9972: # It is most probably a Windows format PATH.
9973: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9974: else
9975: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9976: fi
9977: # FIXME: find the short name or the path components, as spaces are
9978: # common. (e.g. "Program Files" -> "PROGRA~1")
9979: ;;
9980: esac
9981:
1.9 ohara 9982: # DLL is installed to $(libdir)/../bin by postinstall_cmds
9983: postinstall_cmds='base_file=`basename \${file}`~
1.10 ohara 9984: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
1.9 ohara 9985: dldir=$destdir/`dirname \$dlpath`~
9986: test -d \$dldir || mkdir -p \$dldir~
1.10 ohara 9987: $install_prog $dir/$dlname \$dldir/$dlname'
1.9 ohara 9988: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9989: dlpath=$dir/\$dldll~
1.10 ohara 9990: $RM \$dlpath'
1.9 ohara 9991: shlibpath_overrides_runpath=yes
1.10 ohara 9992: dynamic_linker='Win32 link.exe'
1.9 ohara 9993: ;;
9994:
9995: *)
1.10 ohara 9996: # Assume MSVC wrapper
1.9 ohara 9997: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
1.10 ohara 9998: dynamic_linker='Win32 ld.exe'
1.9 ohara 9999: ;;
10000: esac
10001: # FIXME: first we should search . and the directory the executable is in
10002: shlibpath_var=PATH
10003: ;;
10004:
10005: darwin* | rhapsody*)
10006: dynamic_linker="$host_os dyld"
10007: version_type=darwin
10008: need_lib_prefix=no
10009: need_version=no
1.10 ohara 10010: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1.9 ohara 10011: soname_spec='${libname}${release}${major}$shared_ext'
10012: shlibpath_overrides_runpath=yes
10013: shlibpath_var=DYLD_LIBRARY_PATH
10014: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1.10 ohara 10015:
10016: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
1.9 ohara 10017: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10018: ;;
10019:
10020: dgux*)
1.10 ohara 10021: version_type=linux # correct to gnu/linux during the next big refactor
1.9 ohara 10022: need_lib_prefix=no
10023: need_version=no
10024: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10025: soname_spec='${libname}${release}${shared_ext}$major'
10026: shlibpath_var=LD_LIBRARY_PATH
10027: ;;
10028:
10029: freebsd* | dragonfly*)
10030: # DragonFly does not have aout. When/if they implement a new
10031: # versioning mechanism, adjust this.
10032: if test -x /usr/bin/objformat; then
10033: objformat=`/usr/bin/objformat`
10034: else
10035: case $host_os in
1.10 ohara 10036: freebsd[23].*) objformat=aout ;;
1.9 ohara 10037: *) objformat=elf ;;
10038: esac
10039: fi
10040: version_type=freebsd-$objformat
10041: case $version_type in
10042: freebsd-elf*)
10043: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10044: need_version=no
10045: need_lib_prefix=no
10046: ;;
10047: freebsd-*)
10048: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10049: need_version=yes
10050: ;;
10051: esac
10052: shlibpath_var=LD_LIBRARY_PATH
10053: case $host_os in
1.10 ohara 10054: freebsd2.*)
1.9 ohara 10055: shlibpath_overrides_runpath=yes
10056: ;;
10057: freebsd3.[01]* | freebsdelf3.[01]*)
10058: shlibpath_overrides_runpath=yes
10059: hardcode_into_libs=yes
10060: ;;
10061: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10062: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10063: shlibpath_overrides_runpath=no
10064: hardcode_into_libs=yes
10065: ;;
1.10 ohara 10066: *) # from 4.6 on, and DragonFly
1.9 ohara 10067: shlibpath_overrides_runpath=yes
10068: hardcode_into_libs=yes
10069: ;;
10070: esac
10071: ;;
10072:
10073: gnu*)
1.10 ohara 10074: version_type=linux # correct to gnu/linux during the next big refactor
1.9 ohara 10075: need_lib_prefix=no
10076: need_version=no
10077: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10078: soname_spec='${libname}${release}${shared_ext}$major'
10079: shlibpath_var=LD_LIBRARY_PATH
1.10 ohara 10080: shlibpath_overrides_runpath=no
10081: hardcode_into_libs=yes
10082: ;;
10083:
10084: haiku*)
10085: version_type=linux # correct to gnu/linux during the next big refactor
10086: need_lib_prefix=no
10087: need_version=no
10088: dynamic_linker="$host_os runtime_loader"
10089: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10090: soname_spec='${libname}${release}${shared_ext}$major'
10091: shlibpath_var=LIBRARY_PATH
10092: shlibpath_overrides_runpath=yes
10093: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
1.9 ohara 10094: hardcode_into_libs=yes
10095: ;;
10096:
10097: hpux9* | hpux10* | hpux11*)
10098: # Give a soname corresponding to the major version so that dld.sl refuses to
10099: # link against other versions.
10100: version_type=sunos
10101: need_lib_prefix=no
10102: need_version=no
10103: case $host_cpu in
10104: ia64*)
10105: shrext_cmds='.so'
10106: hardcode_into_libs=yes
10107: dynamic_linker="$host_os dld.so"
10108: shlibpath_var=LD_LIBRARY_PATH
10109: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10110: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10111: soname_spec='${libname}${release}${shared_ext}$major'
10112: if test "X$HPUX_IA64_MODE" = X32; then
10113: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10114: else
10115: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10116: fi
10117: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10118: ;;
1.10 ohara 10119: hppa*64*)
10120: shrext_cmds='.sl'
10121: hardcode_into_libs=yes
10122: dynamic_linker="$host_os dld.sl"
10123: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10124: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10125: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10126: soname_spec='${libname}${release}${shared_ext}$major'
10127: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10128: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10129: ;;
10130: *)
1.9 ohara 10131: shrext_cmds='.sl'
10132: dynamic_linker="$host_os dld.sl"
10133: shlibpath_var=SHLIB_PATH
10134: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10135: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10136: soname_spec='${libname}${release}${shared_ext}$major'
10137: ;;
10138: esac
1.10 ohara 10139: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1.9 ohara 10140: postinstall_cmds='chmod 555 $lib'
1.10 ohara 10141: # or fails outright, so override atomically:
10142: install_override_mode=555
1.9 ohara 10143: ;;
10144:
1.10 ohara 10145: interix[3-9]*)
10146: version_type=linux # correct to gnu/linux during the next big refactor
1.9 ohara 10147: need_lib_prefix=no
10148: need_version=no
10149: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10150: soname_spec='${libname}${release}${shared_ext}$major'
10151: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10152: shlibpath_var=LD_LIBRARY_PATH
10153: shlibpath_overrides_runpath=no
10154: hardcode_into_libs=yes
10155: ;;
10156:
10157: irix5* | irix6* | nonstopux*)
10158: case $host_os in
10159: nonstopux*) version_type=nonstopux ;;
10160: *)
10161: if test "$lt_cv_prog_gnu_ld" = yes; then
1.10 ohara 10162: version_type=linux # correct to gnu/linux during the next big refactor
1.9 ohara 10163: else
10164: version_type=irix
10165: fi ;;
10166: esac
10167: need_lib_prefix=no
10168: need_version=no
10169: soname_spec='${libname}${release}${shared_ext}$major'
10170: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10171: case $host_os in
10172: irix5* | nonstopux*)
10173: libsuff= shlibsuff=
10174: ;;
10175: *)
10176: case $LD in # libtool.m4 will add one of these switches to LD
10177: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10178: libsuff= shlibsuff= libmagic=32-bit;;
10179: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10180: libsuff=32 shlibsuff=N32 libmagic=N32;;
10181: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10182: libsuff=64 shlibsuff=64 libmagic=64-bit;;
10183: *) libsuff= shlibsuff= libmagic=never-match;;
10184: esac
10185: ;;
10186: esac
10187: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10188: shlibpath_overrides_runpath=no
10189: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10190: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10191: hardcode_into_libs=yes
10192: ;;
10193:
10194: # No shared lib support for Linux oldld, aout, or coff.
10195: linux*oldld* | linux*aout* | linux*coff*)
10196: dynamic_linker=no
10197: ;;
10198:
1.10 ohara 10199: # This must be glibc/ELF.
10200: linux* | k*bsd*-gnu | kopensolaris*-gnu)
10201: version_type=linux # correct to gnu/linux during the next big refactor
1.9 ohara 10202: need_lib_prefix=no
10203: need_version=no
10204: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10205: soname_spec='${libname}${release}${shared_ext}$major'
10206: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10207: shlibpath_var=LD_LIBRARY_PATH
10208: shlibpath_overrides_runpath=no
1.10 ohara 10209:
10210: # Some binutils ld are patched to set DT_RUNPATH
10211: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10212: $as_echo_n "(cached) " >&6
10213: else
10214: lt_cv_shlibpath_overrides_runpath=no
10215: save_LDFLAGS=$LDFLAGS
10216: save_libdir=$libdir
10217: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10218: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10219: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10220: /* end confdefs.h. */
10221:
10222: int
10223: main ()
10224: {
10225:
10226: ;
10227: return 0;
10228: }
10229: _ACEOF
10230: if ac_fn_c_try_link "$LINENO"; then :
10231: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10232: lt_cv_shlibpath_overrides_runpath=yes
10233: fi
10234: fi
10235: rm -f core conftest.err conftest.$ac_objext \
10236: conftest$ac_exeext conftest.$ac_ext
10237: LDFLAGS=$save_LDFLAGS
10238: libdir=$save_libdir
10239:
10240: fi
10241:
10242: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10243:
1.9 ohara 10244: # This implies no fast_install, which is unacceptable.
10245: # Some rework will be needed to allow for fast_install
10246: # before this can be enabled.
10247: hardcode_into_libs=yes
10248:
10249: # Append ld.so.conf contents to the search path
10250: if test -f /etc/ld.so.conf; then
1.10 ohara 10251: lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
1.9 ohara 10252: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10253: fi
10254:
10255: # We used to test for /lib/ld.so.1 and disable shared libraries on
10256: # powerpc, because MkLinux only supported shared libraries with the
10257: # GNU dynamic linker. Since this was broken with cross compilers,
10258: # most powerpc-linux boxes support dynamic linking these days and
10259: # people can always --disable-shared, the test was removed, and we
10260: # assume the GNU/Linux dynamic linker is in use.
10261: dynamic_linker='GNU/Linux ld.so'
10262: ;;
10263:
10264: netbsd*)
10265: version_type=sunos
10266: need_lib_prefix=no
10267: need_version=no
1.10 ohara 10268: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1.9 ohara 10269: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10270: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10271: dynamic_linker='NetBSD (a.out) ld.so'
10272: else
10273: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10274: soname_spec='${libname}${release}${shared_ext}$major'
10275: dynamic_linker='NetBSD ld.elf_so'
10276: fi
10277: shlibpath_var=LD_LIBRARY_PATH
10278: shlibpath_overrides_runpath=yes
10279: hardcode_into_libs=yes
10280: ;;
10281:
10282: newsos6)
1.10 ohara 10283: version_type=linux # correct to gnu/linux during the next big refactor
1.9 ohara 10284: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10285: shlibpath_var=LD_LIBRARY_PATH
10286: shlibpath_overrides_runpath=yes
10287: ;;
10288:
1.10 ohara 10289: *nto* | *qnx*)
10290: version_type=qnx
1.9 ohara 10291: need_lib_prefix=no
10292: need_version=no
10293: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10294: soname_spec='${libname}${release}${shared_ext}$major'
10295: shlibpath_var=LD_LIBRARY_PATH
1.10 ohara 10296: shlibpath_overrides_runpath=no
10297: hardcode_into_libs=yes
10298: dynamic_linker='ldqnx.so'
1.9 ohara 10299: ;;
10300:
10301: openbsd*)
10302: version_type=sunos
10303: sys_lib_dlsearch_path_spec="/usr/lib"
10304: need_lib_prefix=no
10305: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10306: case $host_os in
1.10 ohara 10307: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10308: *) need_version=no ;;
1.9 ohara 10309: esac
10310: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10311: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10312: shlibpath_var=LD_LIBRARY_PATH
1.10 ohara 10313: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1.9 ohara 10314: case $host_os in
10315: openbsd2.[89] | openbsd2.[89].*)
10316: shlibpath_overrides_runpath=no
10317: ;;
10318: *)
10319: shlibpath_overrides_runpath=yes
10320: ;;
10321: esac
10322: else
10323: shlibpath_overrides_runpath=yes
10324: fi
10325: ;;
10326:
10327: os2*)
10328: libname_spec='$name'
10329: shrext_cmds=".dll"
10330: need_lib_prefix=no
10331: library_names_spec='$libname${shared_ext} $libname.a'
10332: dynamic_linker='OS/2 ld.exe'
10333: shlibpath_var=LIBPATH
10334: ;;
10335:
10336: osf3* | osf4* | osf5*)
10337: version_type=osf
10338: need_lib_prefix=no
10339: need_version=no
10340: soname_spec='${libname}${release}${shared_ext}$major'
10341: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10342: shlibpath_var=LD_LIBRARY_PATH
10343: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10344: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10345: ;;
10346:
1.10 ohara 10347: rdos*)
10348: dynamic_linker=no
10349: ;;
10350:
1.9 ohara 10351: solaris*)
1.10 ohara 10352: version_type=linux # correct to gnu/linux during the next big refactor
1.9 ohara 10353: need_lib_prefix=no
10354: need_version=no
10355: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10356: soname_spec='${libname}${release}${shared_ext}$major'
10357: shlibpath_var=LD_LIBRARY_PATH
10358: shlibpath_overrides_runpath=yes
10359: hardcode_into_libs=yes
10360: # ldd complains unless libraries are executable
10361: postinstall_cmds='chmod +x $lib'
10362: ;;
10363:
10364: sunos4*)
10365: version_type=sunos
10366: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10367: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10368: shlibpath_var=LD_LIBRARY_PATH
10369: shlibpath_overrides_runpath=yes
10370: if test "$with_gnu_ld" = yes; then
10371: need_lib_prefix=no
10372: fi
10373: need_version=yes
10374: ;;
10375:
10376: sysv4 | sysv4.3*)
1.10 ohara 10377: version_type=linux # correct to gnu/linux during the next big refactor
1.9 ohara 10378: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10379: soname_spec='${libname}${release}${shared_ext}$major'
10380: shlibpath_var=LD_LIBRARY_PATH
10381: case $host_vendor in
10382: sni)
10383: shlibpath_overrides_runpath=no
10384: need_lib_prefix=no
10385: runpath_var=LD_RUN_PATH
10386: ;;
10387: siemens)
10388: need_lib_prefix=no
10389: ;;
10390: motorola)
10391: need_lib_prefix=no
10392: need_version=no
10393: shlibpath_overrides_runpath=no
10394: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10395: ;;
10396: esac
10397: ;;
10398:
10399: sysv4*MP*)
10400: if test -d /usr/nec ;then
1.10 ohara 10401: version_type=linux # correct to gnu/linux during the next big refactor
1.9 ohara 10402: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10403: soname_spec='$libname${shared_ext}.$major'
10404: shlibpath_var=LD_LIBRARY_PATH
10405: fi
10406: ;;
10407:
10408: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10409: version_type=freebsd-elf
10410: need_lib_prefix=no
10411: need_version=no
10412: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10413: soname_spec='${libname}${release}${shared_ext}$major'
10414: shlibpath_var=LD_LIBRARY_PATH
1.10 ohara 10415: shlibpath_overrides_runpath=yes
1.9 ohara 10416: hardcode_into_libs=yes
10417: if test "$with_gnu_ld" = yes; then
10418: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10419: else
10420: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10421: case $host_os in
10422: sco3.2v5*)
10423: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10424: ;;
10425: esac
10426: fi
10427: sys_lib_dlsearch_path_spec='/usr/lib'
10428: ;;
10429:
1.10 ohara 10430: tpf*)
10431: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10432: version_type=linux # correct to gnu/linux during the next big refactor
10433: need_lib_prefix=no
10434: need_version=no
10435: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10436: shlibpath_var=LD_LIBRARY_PATH
10437: shlibpath_overrides_runpath=no
10438: hardcode_into_libs=yes
10439: ;;
10440:
1.9 ohara 10441: uts4*)
1.10 ohara 10442: version_type=linux # correct to gnu/linux during the next big refactor
1.9 ohara 10443: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10444: soname_spec='${libname}${release}${shared_ext}$major'
10445: shlibpath_var=LD_LIBRARY_PATH
10446: ;;
10447:
10448: *)
10449: dynamic_linker=no
10450: ;;
10451: esac
1.10 ohara 10452: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10453: $as_echo "$dynamic_linker" >&6; }
1.9 ohara 10454: test "$dynamic_linker" = no && can_build_shared=no
10455:
10456: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10457: if test "$GCC" = yes; then
10458: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10459: fi
10460:
1.10 ohara 10461: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10462: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10463: fi
10464: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10465: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10466: fi
10467:
10468:
10469:
10470:
10471:
10472:
10473:
10474:
10475:
10476:
10477:
10478:
10479:
10480:
10481:
10482:
1.9 ohara 10483:
10484:
10485:
10486:
10487:
10488:
10489:
10490:
10491:
10492:
10493:
10494:
10495:
10496:
10497:
10498:
10499:
10500:
10501:
10502:
10503:
10504:
10505:
10506:
10507:
10508:
10509:
10510:
10511:
10512:
10513:
10514:
10515:
10516:
10517:
10518:
10519:
10520:
10521:
10522:
10523:
10524:
10525:
10526:
10527:
10528:
10529:
10530:
10531:
10532:
10533:
10534:
10535:
10536:
10537:
10538:
10539:
10540:
10541:
10542:
10543:
10544:
10545:
10546:
10547:
10548:
10549:
10550:
10551:
10552:
10553:
10554:
10555:
10556:
10557:
10558:
1.10 ohara 10559: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10560: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10561: hardcode_action=
10562: if test -n "$hardcode_libdir_flag_spec" ||
10563: test -n "$runpath_var" ||
10564: test "X$hardcode_automatic" = "Xyes" ; then
1.9 ohara 10565:
1.10 ohara 10566: # We can hardcode non-existent directories.
10567: if test "$hardcode_direct" != no &&
10568: # If the only mechanism to avoid hardcoding is shlibpath_var, we
10569: # have to relink, otherwise we might link with an installed library
10570: # when we should be linking with a yet-to-be-installed one
10571: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10572: test "$hardcode_minus_L" != no; then
10573: # Linking always hardcodes the temporary library directory.
10574: hardcode_action=relink
10575: else
10576: # We can link without hardcoding, and we can hardcode nonexisting dirs.
10577: hardcode_action=immediate
10578: fi
10579: else
10580: # We cannot hardcode anything, or else we can only hardcode existing
10581: # directories.
10582: hardcode_action=unsupported
10583: fi
10584: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10585: $as_echo "$hardcode_action" >&6; }
1.9 ohara 10586:
1.10 ohara 10587: if test "$hardcode_action" = relink ||
10588: test "$inherit_rpath" = yes; then
10589: # Fast installation is not supported
10590: enable_fast_install=no
10591: elif test "$shlibpath_overrides_runpath" = yes ||
10592: test "$enable_shared" = no; then
10593: # Fast installation is not necessary
10594: enable_fast_install=needless
10595: fi
1.9 ohara 10596:
10597:
10598:
10599:
10600:
10601:
1.10 ohara 10602: if test "x$enable_dlopen" != xyes; then
10603: enable_dlopen=unknown
10604: enable_dlopen_self=unknown
10605: enable_dlopen_self_static=unknown
10606: else
10607: lt_cv_dlopen=no
10608: lt_cv_dlopen_libs=
1.9 ohara 10609:
1.10 ohara 10610: case $host_os in
10611: beos*)
10612: lt_cv_dlopen="load_add_on"
10613: lt_cv_dlopen_libs=
10614: lt_cv_dlopen_self=yes
10615: ;;
1.9 ohara 10616:
1.10 ohara 10617: mingw* | pw32* | cegcc*)
10618: lt_cv_dlopen="LoadLibrary"
10619: lt_cv_dlopen_libs=
10620: ;;
1.9 ohara 10621:
1.10 ohara 10622: cygwin*)
10623: lt_cv_dlopen="dlopen"
10624: lt_cv_dlopen_libs=
10625: ;;
1.9 ohara 10626:
1.10 ohara 10627: darwin*)
10628: # if libdl is installed we need to link against it
10629: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10630: $as_echo_n "checking for dlopen in -ldl... " >&6; }
10631: if ${ac_cv_lib_dl_dlopen+:} false; then :
10632: $as_echo_n "(cached) " >&6
10633: else
10634: ac_check_lib_save_LIBS=$LIBS
10635: LIBS="-ldl $LIBS"
10636: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10637: /* end confdefs.h. */
1.9 ohara 10638:
1.10 ohara 10639: /* Override any GCC internal prototype to avoid an error.
10640: Use char because int might match the return type of a GCC
10641: builtin and then its argument prototype would still apply. */
10642: #ifdef __cplusplus
10643: extern "C"
10644: #endif
10645: char dlopen ();
10646: int
10647: main ()
10648: {
10649: return dlopen ();
10650: ;
10651: return 0;
10652: }
10653: _ACEOF
10654: if ac_fn_c_try_link "$LINENO"; then :
10655: ac_cv_lib_dl_dlopen=yes
1.9 ohara 10656: else
1.10 ohara 10657: ac_cv_lib_dl_dlopen=no
10658: fi
10659: rm -f core conftest.err conftest.$ac_objext \
10660: conftest$ac_exeext conftest.$ac_ext
10661: LIBS=$ac_check_lib_save_LIBS
1.9 ohara 10662: fi
1.10 ohara 10663: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10664: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10665: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10666: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10667: else
1.9 ohara 10668:
1.10 ohara 10669: lt_cv_dlopen="dyld"
10670: lt_cv_dlopen_libs=
10671: lt_cv_dlopen_self=yes
1.9 ohara 10672:
1.10 ohara 10673: fi
1.9 ohara 10674:
1.10 ohara 10675: ;;
1.9 ohara 10676:
1.10 ohara 10677: *)
10678: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10679: if test "x$ac_cv_func_shl_load" = xyes; then :
10680: lt_cv_dlopen="shl_load"
10681: else
10682: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10683: $as_echo_n "checking for shl_load in -ldld... " >&6; }
10684: if ${ac_cv_lib_dld_shl_load+:} false; then :
10685: $as_echo_n "(cached) " >&6
10686: else
10687: ac_check_lib_save_LIBS=$LIBS
10688: LIBS="-ldld $LIBS"
10689: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10690: /* end confdefs.h. */
1.9 ohara 10691:
1.10 ohara 10692: /* Override any GCC internal prototype to avoid an error.
10693: Use char because int might match the return type of a GCC
10694: builtin and then its argument prototype would still apply. */
10695: #ifdef __cplusplus
10696: extern "C"
10697: #endif
10698: char shl_load ();
10699: int
10700: main ()
10701: {
10702: return shl_load ();
10703: ;
10704: return 0;
10705: }
10706: _ACEOF
10707: if ac_fn_c_try_link "$LINENO"; then :
10708: ac_cv_lib_dld_shl_load=yes
10709: else
10710: ac_cv_lib_dld_shl_load=no
10711: fi
10712: rm -f core conftest.err conftest.$ac_objext \
10713: conftest$ac_exeext conftest.$ac_ext
10714: LIBS=$ac_check_lib_save_LIBS
10715: fi
10716: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10717: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10718: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10719: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10720: else
10721: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10722: if test "x$ac_cv_func_dlopen" = xyes; then :
10723: lt_cv_dlopen="dlopen"
10724: else
10725: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10726: $as_echo_n "checking for dlopen in -ldl... " >&6; }
10727: if ${ac_cv_lib_dl_dlopen+:} false; then :
10728: $as_echo_n "(cached) " >&6
10729: else
10730: ac_check_lib_save_LIBS=$LIBS
10731: LIBS="-ldl $LIBS"
10732: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10733: /* end confdefs.h. */
1.9 ohara 10734:
1.10 ohara 10735: /* Override any GCC internal prototype to avoid an error.
10736: Use char because int might match the return type of a GCC
10737: builtin and then its argument prototype would still apply. */
10738: #ifdef __cplusplus
10739: extern "C"
10740: #endif
10741: char dlopen ();
10742: int
10743: main ()
10744: {
10745: return dlopen ();
10746: ;
10747: return 0;
10748: }
10749: _ACEOF
10750: if ac_fn_c_try_link "$LINENO"; then :
10751: ac_cv_lib_dl_dlopen=yes
10752: else
10753: ac_cv_lib_dl_dlopen=no
10754: fi
10755: rm -f core conftest.err conftest.$ac_objext \
10756: conftest$ac_exeext conftest.$ac_ext
10757: LIBS=$ac_check_lib_save_LIBS
10758: fi
10759: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10760: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10761: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10762: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10763: else
10764: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10765: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10766: if ${ac_cv_lib_svld_dlopen+:} false; then :
10767: $as_echo_n "(cached) " >&6
10768: else
10769: ac_check_lib_save_LIBS=$LIBS
10770: LIBS="-lsvld $LIBS"
10771: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10772: /* end confdefs.h. */
1.9 ohara 10773:
1.10 ohara 10774: /* Override any GCC internal prototype to avoid an error.
10775: Use char because int might match the return type of a GCC
10776: builtin and then its argument prototype would still apply. */
10777: #ifdef __cplusplus
10778: extern "C"
10779: #endif
10780: char dlopen ();
10781: int
10782: main ()
10783: {
10784: return dlopen ();
10785: ;
10786: return 0;
10787: }
10788: _ACEOF
10789: if ac_fn_c_try_link "$LINENO"; then :
10790: ac_cv_lib_svld_dlopen=yes
10791: else
10792: ac_cv_lib_svld_dlopen=no
10793: fi
10794: rm -f core conftest.err conftest.$ac_objext \
10795: conftest$ac_exeext conftest.$ac_ext
10796: LIBS=$ac_check_lib_save_LIBS
10797: fi
10798: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10799: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10800: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10801: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10802: else
10803: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10804: $as_echo_n "checking for dld_link in -ldld... " >&6; }
10805: if ${ac_cv_lib_dld_dld_link+:} false; then :
10806: $as_echo_n "(cached) " >&6
10807: else
10808: ac_check_lib_save_LIBS=$LIBS
10809: LIBS="-ldld $LIBS"
10810: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10811: /* end confdefs.h. */
1.9 ohara 10812:
1.10 ohara 10813: /* Override any GCC internal prototype to avoid an error.
10814: Use char because int might match the return type of a GCC
10815: builtin and then its argument prototype would still apply. */
10816: #ifdef __cplusplus
10817: extern "C"
10818: #endif
10819: char dld_link ();
10820: int
10821: main ()
10822: {
10823: return dld_link ();
10824: ;
10825: return 0;
10826: }
10827: _ACEOF
10828: if ac_fn_c_try_link "$LINENO"; then :
10829: ac_cv_lib_dld_dld_link=yes
10830: else
10831: ac_cv_lib_dld_dld_link=no
10832: fi
10833: rm -f core conftest.err conftest.$ac_objext \
10834: conftest$ac_exeext conftest.$ac_ext
10835: LIBS=$ac_check_lib_save_LIBS
10836: fi
10837: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10838: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10839: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10840: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10841: fi
1.9 ohara 10842:
10843:
1.10 ohara 10844: fi
1.9 ohara 10845:
10846:
1.10 ohara 10847: fi
1.9 ohara 10848:
10849:
1.10 ohara 10850: fi
1.9 ohara 10851:
10852:
1.10 ohara 10853: fi
1.9 ohara 10854:
10855:
1.10 ohara 10856: fi
1.9 ohara 10857:
10858: ;;
10859: esac
10860:
1.10 ohara 10861: if test "x$lt_cv_dlopen" != xno; then
10862: enable_dlopen=yes
10863: else
10864: enable_dlopen=no
10865: fi
1.9 ohara 10866:
1.10 ohara 10867: case $lt_cv_dlopen in
10868: dlopen)
10869: save_CPPFLAGS="$CPPFLAGS"
10870: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1.9 ohara 10871:
1.10 ohara 10872: save_LDFLAGS="$LDFLAGS"
10873: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1.9 ohara 10874:
1.10 ohara 10875: save_LIBS="$LIBS"
10876: LIBS="$lt_cv_dlopen_libs $LIBS"
1.9 ohara 10877:
1.10 ohara 10878: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10879: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10880: if ${lt_cv_dlopen_self+:} false; then :
10881: $as_echo_n "(cached) " >&6
10882: else
10883: if test "$cross_compiling" = yes; then :
10884: lt_cv_dlopen_self=cross
10885: else
10886: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10887: lt_status=$lt_dlunknown
10888: cat > conftest.$ac_ext <<_LT_EOF
10889: #line $LINENO "configure"
10890: #include "confdefs.h"
1.9 ohara 10891:
1.10 ohara 10892: #if HAVE_DLFCN_H
10893: #include <dlfcn.h>
10894: #endif
1.9 ohara 10895:
1.10 ohara 10896: #include <stdio.h>
1.9 ohara 10897:
1.10 ohara 10898: #ifdef RTLD_GLOBAL
10899: # define LT_DLGLOBAL RTLD_GLOBAL
10900: #else
10901: # ifdef DL_GLOBAL
10902: # define LT_DLGLOBAL DL_GLOBAL
10903: # else
10904: # define LT_DLGLOBAL 0
10905: # endif
10906: #endif
1.9 ohara 10907:
1.10 ohara 10908: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10909: find out it does not work in some platform. */
10910: #ifndef LT_DLLAZY_OR_NOW
10911: # ifdef RTLD_LAZY
10912: # define LT_DLLAZY_OR_NOW RTLD_LAZY
10913: # else
10914: # ifdef DL_LAZY
10915: # define LT_DLLAZY_OR_NOW DL_LAZY
10916: # else
10917: # ifdef RTLD_NOW
10918: # define LT_DLLAZY_OR_NOW RTLD_NOW
10919: # else
10920: # ifdef DL_NOW
10921: # define LT_DLLAZY_OR_NOW DL_NOW
10922: # else
10923: # define LT_DLLAZY_OR_NOW 0
10924: # endif
10925: # endif
10926: # endif
10927: # endif
10928: #endif
1.9 ohara 10929:
1.10 ohara 10930: /* When -fvisbility=hidden is used, assume the code has been annotated
10931: correspondingly for the symbols needed. */
10932: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10933: int fnord () __attribute__((visibility("default")));
10934: #endif
1.9 ohara 10935:
1.10 ohara 10936: int fnord () { return 42; }
10937: int main ()
10938: {
10939: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10940: int status = $lt_dlunknown;
1.9 ohara 10941:
1.10 ohara 10942: if (self)
10943: {
10944: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10945: else
10946: {
10947: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10948: else puts (dlerror ());
10949: }
10950: /* dlclose (self); */
10951: }
10952: else
10953: puts (dlerror ());
1.9 ohara 10954:
1.10 ohara 10955: return status;
10956: }
10957: _LT_EOF
10958: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10959: (eval $ac_link) 2>&5
10960: ac_status=$?
10961: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10962: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10963: (./conftest; exit; ) >&5 2>/dev/null
10964: lt_status=$?
10965: case x$lt_status in
10966: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10967: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10968: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10969: esac
10970: else :
10971: # compilation failed
10972: lt_cv_dlopen_self=no
10973: fi
10974: fi
10975: rm -fr conftest*
1.9 ohara 10976:
10977:
1.10 ohara 10978: fi
10979: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10980: $as_echo "$lt_cv_dlopen_self" >&6; }
1.9 ohara 10981:
1.10 ohara 10982: if test "x$lt_cv_dlopen_self" = xyes; then
10983: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10984: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10985: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10986: if ${lt_cv_dlopen_self_static+:} false; then :
10987: $as_echo_n "(cached) " >&6
10988: else
10989: if test "$cross_compiling" = yes; then :
10990: lt_cv_dlopen_self_static=cross
10991: else
10992: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10993: lt_status=$lt_dlunknown
10994: cat > conftest.$ac_ext <<_LT_EOF
10995: #line $LINENO "configure"
10996: #include "confdefs.h"
1.9 ohara 10997:
1.10 ohara 10998: #if HAVE_DLFCN_H
10999: #include <dlfcn.h>
11000: #endif
1.9 ohara 11001:
1.10 ohara 11002: #include <stdio.h>
1.9 ohara 11003:
1.10 ohara 11004: #ifdef RTLD_GLOBAL
11005: # define LT_DLGLOBAL RTLD_GLOBAL
11006: #else
11007: # ifdef DL_GLOBAL
11008: # define LT_DLGLOBAL DL_GLOBAL
11009: # else
11010: # define LT_DLGLOBAL 0
11011: # endif
11012: #endif
1.9 ohara 11013:
1.10 ohara 11014: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11015: find out it does not work in some platform. */
11016: #ifndef LT_DLLAZY_OR_NOW
11017: # ifdef RTLD_LAZY
11018: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11019: # else
11020: # ifdef DL_LAZY
11021: # define LT_DLLAZY_OR_NOW DL_LAZY
11022: # else
11023: # ifdef RTLD_NOW
11024: # define LT_DLLAZY_OR_NOW RTLD_NOW
11025: # else
11026: # ifdef DL_NOW
11027: # define LT_DLLAZY_OR_NOW DL_NOW
11028: # else
11029: # define LT_DLLAZY_OR_NOW 0
11030: # endif
11031: # endif
11032: # endif
11033: # endif
11034: #endif
1.9 ohara 11035:
1.10 ohara 11036: /* When -fvisbility=hidden is used, assume the code has been annotated
11037: correspondingly for the symbols needed. */
11038: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11039: int fnord () __attribute__((visibility("default")));
11040: #endif
1.9 ohara 11041:
1.10 ohara 11042: int fnord () { return 42; }
11043: int main ()
11044: {
11045: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11046: int status = $lt_dlunknown;
1.9 ohara 11047:
1.10 ohara 11048: if (self)
11049: {
11050: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11051: else
11052: {
11053: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11054: else puts (dlerror ());
11055: }
11056: /* dlclose (self); */
11057: }
11058: else
11059: puts (dlerror ());
1.9 ohara 11060:
1.10 ohara 11061: return status;
11062: }
11063: _LT_EOF
11064: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11065: (eval $ac_link) 2>&5
11066: ac_status=$?
11067: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11068: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11069: (./conftest; exit; ) >&5 2>/dev/null
11070: lt_status=$?
11071: case x$lt_status in
11072: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11073: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11074: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11075: esac
11076: else :
11077: # compilation failed
11078: lt_cv_dlopen_self_static=no
11079: fi
11080: fi
11081: rm -fr conftest*
1.9 ohara 11082:
11083:
1.10 ohara 11084: fi
11085: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11086: $as_echo "$lt_cv_dlopen_self_static" >&6; }
11087: fi
1.9 ohara 11088:
1.10 ohara 11089: CPPFLAGS="$save_CPPFLAGS"
11090: LDFLAGS="$save_LDFLAGS"
11091: LIBS="$save_LIBS"
11092: ;;
11093: esac
1.9 ohara 11094:
1.10 ohara 11095: case $lt_cv_dlopen_self in
11096: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11097: *) enable_dlopen_self=unknown ;;
11098: esac
1.9 ohara 11099:
1.10 ohara 11100: case $lt_cv_dlopen_self_static in
11101: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11102: *) enable_dlopen_self_static=unknown ;;
11103: esac
11104: fi
1.9 ohara 11105:
11106:
11107:
11108:
11109:
11110:
11111:
11112:
11113:
11114:
11115:
11116:
11117:
11118:
11119:
11120:
11121:
1.10 ohara 11122: striplib=
11123: old_striplib=
11124: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11125: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11126: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11127: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11128: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11129: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11130: $as_echo "yes" >&6; }
11131: else
11132: # FIXME - insert some real tests, host_os isn't really good enough
11133: case $host_os in
11134: darwin*)
11135: if test -n "$STRIP" ; then
11136: striplib="$STRIP -x"
11137: old_striplib="$STRIP -S"
11138: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11139: $as_echo "yes" >&6; }
11140: else
11141: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11142: $as_echo "no" >&6; }
11143: fi
11144: ;;
11145: *)
11146: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11147: $as_echo "no" >&6; }
11148: ;;
11149: esac
11150: fi
1.9 ohara 11151:
11152:
11153:
11154:
11155:
11156:
11157:
11158:
11159:
11160:
11161:
11162:
1.10 ohara 11163: # Report which library types will actually be built
11164: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11165: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11166: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11167: $as_echo "$can_build_shared" >&6; }
1.9 ohara 11168:
1.10 ohara 11169: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11170: $as_echo_n "checking whether to build shared libraries... " >&6; }
11171: test "$can_build_shared" = "no" && enable_shared=no
1.9 ohara 11172:
1.10 ohara 11173: # On AIX, shared libraries and static libraries use the same namespace, and
11174: # are all built from PIC.
11175: case $host_os in
11176: aix3*)
11177: test "$enable_shared" = yes && enable_static=no
11178: if test -n "$RANLIB"; then
11179: archive_cmds="$archive_cmds~\$RANLIB \$lib"
11180: postinstall_cmds='$RANLIB $lib'
11181: fi
11182: ;;
1.9 ohara 11183:
1.10 ohara 11184: aix[4-9]*)
11185: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11186: test "$enable_shared" = yes && enable_static=no
11187: fi
11188: ;;
11189: esac
11190: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11191: $as_echo "$enable_shared" >&6; }
1.9 ohara 11192:
1.10 ohara 11193: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11194: $as_echo_n "checking whether to build static libraries... " >&6; }
11195: # Make sure either enable_shared or enable_static is yes.
11196: test "$enable_shared" = yes || enable_static=yes
11197: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11198: $as_echo "$enable_static" >&6; }
1.9 ohara 11199:
11200:
11201:
11202:
1.10 ohara 11203: fi
11204: ac_ext=c
11205: ac_cpp='$CPP $CPPFLAGS'
11206: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11207: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11208: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.9 ohara 11209:
1.10 ohara 11210: CC="$lt_save_CC"
1.9 ohara 11211:
11212:
11213:
11214:
11215:
11216:
11217:
11218:
11219:
11220:
11221:
11222:
11223:
11224:
11225:
1.10 ohara 11226: ac_config_commands="$ac_config_commands libtool"
1.9 ohara 11227:
11228:
1.7 ohara 11229:
11230:
1.10 ohara 11231: # Only expand once:
1.9 ohara 11232:
1.7 ohara 11233:
1.10 ohara 11234: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
11235: $as_echo_n "checking for X... " >&6; }
1.7 ohara 11236:
11237:
1.10 ohara 11238: # Check whether --with-x was given.
11239: if test "${with_x+set}" = set; then :
11240: withval=$with_x;
11241: fi
1.7 ohara 11242:
1.10 ohara 11243: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11244: if test "x$with_x" = xno; then
11245: # The user explicitly disabled X.
11246: have_x=disabled
11247: else
11248: case $x_includes,$x_libraries in #(
11249: *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
11250: *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
11251: $as_echo_n "(cached) " >&6
11252: else
11253: # One or both of the vars are not set, and there is no cached value.
11254: ac_x_includes=no ac_x_libraries=no
11255: rm -f -r conftest.dir
11256: if mkdir conftest.dir; then
11257: cd conftest.dir
11258: cat >Imakefile <<'_ACEOF'
11259: incroot:
11260: @echo incroot='${INCROOT}'
11261: usrlibdir:
11262: @echo usrlibdir='${USRLIBDIR}'
11263: libdir:
11264: @echo libdir='${LIBDIR}'
11265: _ACEOF
11266: if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11267: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11268: for ac_var in incroot usrlibdir libdir; do
11269: eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11270: done
11271: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11272: for ac_extension in a so sl dylib la dll; do
11273: if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11274: test -f "$ac_im_libdir/libX11.$ac_extension"; then
11275: ac_im_usrlibdir=$ac_im_libdir; break
11276: fi
11277: done
11278: # Screen out bogus values from the imake configuration. They are
11279: # bogus both because they are the default anyway, and because
11280: # using them would break gcc on systems where it needs fixed includes.
11281: case $ac_im_incroot in
11282: /usr/include) ac_x_includes= ;;
11283: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11284: esac
11285: case $ac_im_usrlibdir in
11286: /usr/lib | /usr/lib64 | /lib | /lib64) ;;
11287: *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11288: esac
1.7 ohara 11289: fi
1.10 ohara 11290: cd ..
11291: rm -f -r conftest.dir
1.7 ohara 11292: fi
11293:
1.10 ohara 11294: # Standard set of common directories for X headers.
11295: # Check X11 before X11Rn because it is often a symlink to the current release.
11296: ac_x_header_dirs='
11297: /usr/X11/include
11298: /usr/X11R7/include
11299: /usr/X11R6/include
11300: /usr/X11R5/include
11301: /usr/X11R4/include
1.7 ohara 11302:
1.10 ohara 11303: /usr/include/X11
11304: /usr/include/X11R7
11305: /usr/include/X11R6
11306: /usr/include/X11R5
11307: /usr/include/X11R4
1.7 ohara 11308:
1.11 ! ohara 11309: /opt/X11/include
1.10 ohara 11310: /usr/local/X11/include
11311: /usr/local/X11R7/include
11312: /usr/local/X11R6/include
11313: /usr/local/X11R5/include
11314: /usr/local/X11R4/include
1.9 ohara 11315:
1.10 ohara 11316: /usr/local/include/X11
11317: /usr/local/include/X11R7
11318: /usr/local/include/X11R6
11319: /usr/local/include/X11R5
11320: /usr/local/include/X11R4
1.9 ohara 11321:
1.10 ohara 11322: /usr/X386/include
11323: /usr/x386/include
11324: /usr/XFree86/include/X11
1.9 ohara 11325:
1.10 ohara 11326: /usr/include
11327: /usr/local/include
11328: /usr/unsupported/include
11329: /usr/athena/include
11330: /usr/local/x11r5/include
11331: /usr/lpp/Xamples/include
1.9 ohara 11332:
1.10 ohara 11333: /usr/openwin/include
11334: /usr/openwin/share/include'
1.9 ohara 11335:
1.10 ohara 11336: if test "$ac_x_includes" = no; then
11337: # Guess where to find include files, by looking for Xlib.h.
11338: # First, try using that file with no special directory specified.
11339: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11340: /* end confdefs.h. */
11341: #include <X11/Xlib.h>
11342: _ACEOF
11343: if ac_fn_c_try_cpp "$LINENO"; then :
11344: # We can compile using X headers with no special include directory.
11345: ac_x_includes=
11346: else
11347: for ac_dir in $ac_x_header_dirs; do
11348: if test -r "$ac_dir/X11/Xlib.h"; then
11349: ac_x_includes=$ac_dir
11350: break
11351: fi
11352: done
11353: fi
11354: rm -f conftest.err conftest.i conftest.$ac_ext
11355: fi # $ac_x_includes = no
1.9 ohara 11356:
1.10 ohara 11357: if test "$ac_x_libraries" = no; then
11358: # Check for the libraries.
11359: # See if we find them without any special options.
11360: # Don't add to $LIBS permanently.
11361: ac_save_LIBS=$LIBS
11362: LIBS="-lX11 $LIBS"
11363: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11364: /* end confdefs.h. */
11365: #include <X11/Xlib.h>
11366: int
11367: main ()
11368: {
11369: XrmInitialize ()
11370: ;
11371: return 0;
11372: }
11373: _ACEOF
11374: if ac_fn_c_try_link "$LINENO"; then :
11375: LIBS=$ac_save_LIBS
11376: # We can link X programs with no special library path.
11377: ac_x_libraries=
11378: else
11379: LIBS=$ac_save_LIBS
11380: for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11381: do
11382: # Don't even attempt the hair of trying to link an X program!
11383: for ac_extension in a so sl dylib la dll; do
11384: if test -r "$ac_dir/libX11.$ac_extension"; then
11385: ac_x_libraries=$ac_dir
11386: break 2
11387: fi
11388: done
11389: done
11390: fi
11391: rm -f core conftest.err conftest.$ac_objext \
11392: conftest$ac_exeext conftest.$ac_ext
11393: fi # $ac_x_libraries = no
1.9 ohara 11394:
1.10 ohara 11395: case $ac_x_includes,$ac_x_libraries in #(
11396: no,* | *,no | *\'*)
11397: # Didn't find X, or a directory has "'" in its name.
11398: ac_cv_have_x="have_x=no";; #(
11399: *)
11400: # Record where we found X for the cache.
11401: ac_cv_have_x="have_x=yes\
11402: ac_x_includes='$ac_x_includes'\
11403: ac_x_libraries='$ac_x_libraries'"
11404: esac
11405: fi
11406: ;; #(
11407: *) have_x=yes;;
11408: esac
11409: eval "$ac_cv_have_x"
11410: fi # $with_x != no
1.9 ohara 11411:
1.10 ohara 11412: if test "$have_x" != yes; then
11413: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
11414: $as_echo "$have_x" >&6; }
11415: no_x=yes
11416: else
11417: # If each of the values was on the command line, it overrides each guess.
11418: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11419: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11420: # Update the cache value to reflect the command line values.
11421: ac_cv_have_x="have_x=yes\
11422: ac_x_includes='$x_includes'\
11423: ac_x_libraries='$x_libraries'"
11424: { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
11425: $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
11426: fi
1.9 ohara 11427:
1.10 ohara 11428: if test "$no_x" = yes; then
11429: # Not all programs may use this symbol, but it does not hurt to define it.
1.7 ohara 11430:
1.10 ohara 11431: $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
1.4 takayama 11432:
1.10 ohara 11433: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11434: else
11435: if test -n "$x_includes"; then
11436: X_CFLAGS="$X_CFLAGS -I$x_includes"
11437: fi
1.4 takayama 11438:
1.10 ohara 11439: # It would also be nice to do this for all -L options, not just this one.
11440: if test -n "$x_libraries"; then
11441: X_LIBS="$X_LIBS -L$x_libraries"
11442: # For Solaris; some versions of Sun CC require a space after -R and
11443: # others require no space. Words are not sufficient . . . .
11444: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
11445: $as_echo_n "checking whether -R must be followed by a space... " >&6; }
11446: ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
11447: ac_xsave_c_werror_flag=$ac_c_werror_flag
11448: ac_c_werror_flag=yes
11449: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11450: /* end confdefs.h. */
1.4 takayama 11451:
1.10 ohara 11452: int
11453: main ()
11454: {
1.4 takayama 11455:
1.10 ohara 11456: ;
11457: return 0;
11458: }
11459: _ACEOF
11460: if ac_fn_c_try_link "$LINENO"; then :
11461: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11462: $as_echo "no" >&6; }
11463: X_LIBS="$X_LIBS -R$x_libraries"
11464: else
11465: LIBS="$ac_xsave_LIBS -R $x_libraries"
11466: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11467: /* end confdefs.h. */
1.4 takayama 11468:
1.10 ohara 11469: int
11470: main ()
11471: {
1.4 takayama 11472:
1.10 ohara 11473: ;
11474: return 0;
11475: }
11476: _ACEOF
11477: if ac_fn_c_try_link "$LINENO"; then :
11478: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11479: $as_echo "yes" >&6; }
11480: X_LIBS="$X_LIBS -R $x_libraries"
11481: else
11482: { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
11483: $as_echo "neither works" >&6; }
11484: fi
11485: rm -f core conftest.err conftest.$ac_objext \
11486: conftest$ac_exeext conftest.$ac_ext
11487: fi
11488: rm -f core conftest.err conftest.$ac_objext \
11489: conftest$ac_exeext conftest.$ac_ext
11490: ac_c_werror_flag=$ac_xsave_c_werror_flag
11491: LIBS=$ac_xsave_LIBS
11492: fi
1.1 ohara 11493:
1.10 ohara 11494: # Check for system-dependent libraries X programs must link with.
11495: # Do this before checking for the system-independent R6 libraries
11496: # (-lICE), since we may need -lsocket or whatever for X linking.
1.4 takayama 11497:
1.10 ohara 11498: if test "$ISC" = yes; then
11499: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11500: else
11501: # Martyn Johnson says this is needed for Ultrix, if the X
11502: # libraries were built with DECnet support. And Karl Berry says
11503: # the Alpha needs dnet_stub (dnet does not exist).
11504: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
11505: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11506: /* end confdefs.h. */
1.4 takayama 11507:
1.10 ohara 11508: /* Override any GCC internal prototype to avoid an error.
11509: Use char because int might match the return type of a GCC
11510: builtin and then its argument prototype would still apply. */
11511: #ifdef __cplusplus
11512: extern "C"
11513: #endif
11514: char XOpenDisplay ();
11515: int
11516: main ()
11517: {
11518: return XOpenDisplay ();
11519: ;
11520: return 0;
11521: }
11522: _ACEOF
11523: if ac_fn_c_try_link "$LINENO"; then :
1.4 takayama 11524:
1.10 ohara 11525: else
11526: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
11527: $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
11528: if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
11529: $as_echo_n "(cached) " >&6
11530: else
11531: ac_check_lib_save_LIBS=$LIBS
11532: LIBS="-ldnet $LIBS"
11533: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11534: /* end confdefs.h. */
1.1 ohara 11535:
1.10 ohara 11536: /* Override any GCC internal prototype to avoid an error.
11537: Use char because int might match the return type of a GCC
11538: builtin and then its argument prototype would still apply. */
11539: #ifdef __cplusplus
11540: extern "C"
11541: #endif
11542: char dnet_ntoa ();
11543: int
11544: main ()
11545: {
11546: return dnet_ntoa ();
11547: ;
11548: return 0;
11549: }
11550: _ACEOF
11551: if ac_fn_c_try_link "$LINENO"; then :
11552: ac_cv_lib_dnet_dnet_ntoa=yes
11553: else
11554: ac_cv_lib_dnet_dnet_ntoa=no
11555: fi
11556: rm -f core conftest.err conftest.$ac_objext \
11557: conftest$ac_exeext conftest.$ac_ext
11558: LIBS=$ac_check_lib_save_LIBS
11559: fi
11560: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11561: $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
11562: if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
11563: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1.9 ohara 11564: fi
1.1 ohara 11565:
1.10 ohara 11566: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
11567: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
11568: $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
11569: if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
11570: $as_echo_n "(cached) " >&6
1.1 ohara 11571: else
1.10 ohara 11572: ac_check_lib_save_LIBS=$LIBS
11573: LIBS="-ldnet_stub $LIBS"
11574: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11575: /* end confdefs.h. */
11576:
11577: /* Override any GCC internal prototype to avoid an error.
11578: Use char because int might match the return type of a GCC
11579: builtin and then its argument prototype would still apply. */
11580: #ifdef __cplusplus
11581: extern "C"
11582: #endif
11583: char dnet_ntoa ();
11584: int
11585: main ()
11586: {
11587: return dnet_ntoa ();
11588: ;
11589: return 0;
11590: }
11591: _ACEOF
11592: if ac_fn_c_try_link "$LINENO"; then :
11593: ac_cv_lib_dnet_stub_dnet_ntoa=yes
1.1 ohara 11594: else
1.10 ohara 11595: ac_cv_lib_dnet_stub_dnet_ntoa=no
11596: fi
11597: rm -f core conftest.err conftest.$ac_objext \
11598: conftest$ac_exeext conftest.$ac_ext
11599: LIBS=$ac_check_lib_save_LIBS
11600: fi
11601: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
11602: $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
11603: if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
11604: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1.1 ohara 11605: fi
11606:
1.10 ohara 11607: fi
11608: fi
11609: rm -f core conftest.err conftest.$ac_objext \
11610: conftest$ac_exeext conftest.$ac_ext
11611: LIBS="$ac_xsave_LIBS"
1.4 takayama 11612:
1.10 ohara 11613: # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
11614: # to get the SysV transport functions.
11615: # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
11616: # needs -lnsl.
11617: # The nsl library prevents programs from opening the X display
11618: # on Irix 5.2, according to T.E. Dickey.
11619: # The functions gethostbyname, getservbyname, and inet_addr are
11620: # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
11621: ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
11622: if test "x$ac_cv_func_gethostbyname" = xyes; then :
1.4 takayama 11623:
1.10 ohara 11624: fi
1.4 takayama 11625:
1.10 ohara 11626: if test $ac_cv_func_gethostbyname = no; then
11627: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
11628: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
11629: if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
11630: $as_echo_n "(cached) " >&6
11631: else
11632: ac_check_lib_save_LIBS=$LIBS
11633: LIBS="-lnsl $LIBS"
11634: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11635: /* end confdefs.h. */
1.4 takayama 11636:
1.10 ohara 11637: /* Override any GCC internal prototype to avoid an error.
11638: Use char because int might match the return type of a GCC
11639: builtin and then its argument prototype would still apply. */
11640: #ifdef __cplusplus
11641: extern "C"
11642: #endif
11643: char gethostbyname ();
11644: int
11645: main ()
11646: {
11647: return gethostbyname ();
11648: ;
11649: return 0;
11650: }
11651: _ACEOF
11652: if ac_fn_c_try_link "$LINENO"; then :
11653: ac_cv_lib_nsl_gethostbyname=yes
11654: else
11655: ac_cv_lib_nsl_gethostbyname=no
11656: fi
11657: rm -f core conftest.err conftest.$ac_objext \
11658: conftest$ac_exeext conftest.$ac_ext
11659: LIBS=$ac_check_lib_save_LIBS
11660: fi
11661: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
11662: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
11663: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
11664: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
11665: fi
1.4 takayama 11666:
1.10 ohara 11667: if test $ac_cv_lib_nsl_gethostbyname = no; then
11668: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
11669: $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
11670: if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
11671: $as_echo_n "(cached) " >&6
11672: else
11673: ac_check_lib_save_LIBS=$LIBS
11674: LIBS="-lbsd $LIBS"
11675: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11676: /* end confdefs.h. */
1.4 takayama 11677:
1.10 ohara 11678: /* Override any GCC internal prototype to avoid an error.
11679: Use char because int might match the return type of a GCC
11680: builtin and then its argument prototype would still apply. */
11681: #ifdef __cplusplus
11682: extern "C"
11683: #endif
11684: char gethostbyname ();
11685: int
11686: main ()
11687: {
11688: return gethostbyname ();
11689: ;
11690: return 0;
11691: }
1.9 ohara 11692: _ACEOF
1.10 ohara 11693: if ac_fn_c_try_link "$LINENO"; then :
11694: ac_cv_lib_bsd_gethostbyname=yes
1.1 ohara 11695: else
1.10 ohara 11696: ac_cv_lib_bsd_gethostbyname=no
11697: fi
11698: rm -f core conftest.err conftest.$ac_objext \
11699: conftest$ac_exeext conftest.$ac_ext
11700: LIBS=$ac_check_lib_save_LIBS
11701: fi
11702: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
11703: $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
11704: if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
11705: X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
11706: fi
11707:
11708: fi
11709: fi
11710:
11711: # lieder@skyler.mavd.honeywell.com says without -lsocket,
11712: # socket/setsockopt and other routines are undefined under SCO ODT
11713: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
11714: # on later versions), says Simon Leinen: it contains gethostby*
11715: # variants that don't use the name server (or something). -lsocket
11716: # must be given before -lnsl if both are needed. We assume that
11717: # if connect needs -lnsl, so does gethostbyname.
11718: ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
11719: if test "x$ac_cv_func_connect" = xyes; then :
1.9 ohara 11720:
1.1 ohara 11721: fi
1.9 ohara 11722:
1.10 ohara 11723: if test $ac_cv_func_connect = no; then
11724: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
11725: $as_echo_n "checking for connect in -lsocket... " >&6; }
11726: if ${ac_cv_lib_socket_connect+:} false; then :
11727: $as_echo_n "(cached) " >&6
11728: else
11729: ac_check_lib_save_LIBS=$LIBS
11730: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
11731: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11732: /* end confdefs.h. */
1.1 ohara 11733:
1.10 ohara 11734: /* Override any GCC internal prototype to avoid an error.
11735: Use char because int might match the return type of a GCC
11736: builtin and then its argument prototype would still apply. */
11737: #ifdef __cplusplus
11738: extern "C"
11739: #endif
11740: char connect ();
1.4 takayama 11741: int
11742: main ()
11743: {
1.10 ohara 11744: return connect ();
1.4 takayama 11745: ;
11746: return 0;
11747: }
11748: _ACEOF
1.10 ohara 11749: if ac_fn_c_try_link "$LINENO"; then :
11750: ac_cv_lib_socket_connect=yes
1.1 ohara 11751: else
1.10 ohara 11752: ac_cv_lib_socket_connect=no
11753: fi
11754: rm -f core conftest.err conftest.$ac_objext \
11755: conftest$ac_exeext conftest.$ac_ext
11756: LIBS=$ac_check_lib_save_LIBS
11757: fi
11758: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
11759: $as_echo "$ac_cv_lib_socket_connect" >&6; }
11760: if test "x$ac_cv_lib_socket_connect" = xyes; then :
11761: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
11762: fi
1.9 ohara 11763:
1.1 ohara 11764: fi
1.9 ohara 11765:
1.10 ohara 11766: # Guillermo Gomez says -lposix is necessary on A/UX.
11767: ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
11768: if test "x$ac_cv_func_remove" = xyes; then :
1.9 ohara 11769:
1.1 ohara 11770: fi
11771:
1.10 ohara 11772: if test $ac_cv_func_remove = no; then
11773: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
11774: $as_echo_n "checking for remove in -lposix... " >&6; }
11775: if ${ac_cv_lib_posix_remove+:} false; then :
11776: $as_echo_n "(cached) " >&6
11777: else
11778: ac_check_lib_save_LIBS=$LIBS
11779: LIBS="-lposix $LIBS"
11780: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11781: /* end confdefs.h. */
11782:
11783: /* Override any GCC internal prototype to avoid an error.
11784: Use char because int might match the return type of a GCC
11785: builtin and then its argument prototype would still apply. */
11786: #ifdef __cplusplus
11787: extern "C"
11788: #endif
11789: char remove ();
11790: int
11791: main ()
11792: {
11793: return remove ();
11794: ;
11795: return 0;
11796: }
11797: _ACEOF
11798: if ac_fn_c_try_link "$LINENO"; then :
11799: ac_cv_lib_posix_remove=yes
1.1 ohara 11800: else
1.10 ohara 11801: ac_cv_lib_posix_remove=no
11802: fi
11803: rm -f core conftest.err conftest.$ac_objext \
11804: conftest$ac_exeext conftest.$ac_ext
11805: LIBS=$ac_check_lib_save_LIBS
11806: fi
11807: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
11808: $as_echo "$ac_cv_lib_posix_remove" >&6; }
11809: if test "x$ac_cv_lib_posix_remove" = xyes; then :
11810: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1.1 ohara 11811: fi
11812:
1.10 ohara 11813: fi
11814:
11815: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
11816: ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
11817: if test "x$ac_cv_func_shmat" = xyes; then :
1.4 takayama 11818:
1.10 ohara 11819: fi
1.1 ohara 11820:
1.10 ohara 11821: if test $ac_cv_func_shmat = no; then
11822: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
11823: $as_echo_n "checking for shmat in -lipc... " >&6; }
11824: if ${ac_cv_lib_ipc_shmat+:} false; then :
11825: $as_echo_n "(cached) " >&6
1.1 ohara 11826: else
1.10 ohara 11827: ac_check_lib_save_LIBS=$LIBS
11828: LIBS="-lipc $LIBS"
11829: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.9 ohara 11830: /* end confdefs.h. */
1.1 ohara 11831:
1.10 ohara 11832: /* Override any GCC internal prototype to avoid an error.
11833: Use char because int might match the return type of a GCC
11834: builtin and then its argument prototype would still apply. */
11835: #ifdef __cplusplus
11836: extern "C"
11837: #endif
11838: char shmat ();
1.4 takayama 11839: int
11840: main ()
11841: {
1.10 ohara 11842: return shmat ();
1.4 takayama 11843: ;
11844: return 0;
11845: }
11846: _ACEOF
1.10 ohara 11847: if ac_fn_c_try_link "$LINENO"; then :
11848: ac_cv_lib_ipc_shmat=yes
1.1 ohara 11849: else
1.10 ohara 11850: ac_cv_lib_ipc_shmat=no
11851: fi
11852: rm -f core conftest.err conftest.$ac_objext \
11853: conftest$ac_exeext conftest.$ac_ext
11854: LIBS=$ac_check_lib_save_LIBS
11855: fi
11856: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
11857: $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
11858: if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
11859: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
11860: fi
11861:
11862: fi
11863: fi
1.9 ohara 11864:
1.10 ohara 11865: # Check for libraries that X11R6 Xt/Xaw programs need.
11866: ac_save_LDFLAGS=$LDFLAGS
11867: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
11868: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
11869: # check for ICE first), but we must link in the order -lSM -lICE or
11870: # we get undefined symbols. So assume we have SM if we have ICE.
11871: # These have to be linked with before -lX11, unlike the other
11872: # libraries we check for below, so use a different variable.
11873: # John Interrante, Karl Berry
11874: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
11875: $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
11876: if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
11877: $as_echo_n "(cached) " >&6
11878: else
11879: ac_check_lib_save_LIBS=$LIBS
11880: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
11881: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.9 ohara 11882: /* end confdefs.h. */
1.1 ohara 11883:
1.10 ohara 11884: /* Override any GCC internal prototype to avoid an error.
11885: Use char because int might match the return type of a GCC
11886: builtin and then its argument prototype would still apply. */
11887: #ifdef __cplusplus
11888: extern "C"
11889: #endif
11890: char IceConnectionNumber ();
1.4 takayama 11891: int
11892: main ()
11893: {
1.10 ohara 11894: return IceConnectionNumber ();
1.4 takayama 11895: ;
11896: return 0;
11897: }
11898: _ACEOF
1.10 ohara 11899: if ac_fn_c_try_link "$LINENO"; then :
11900: ac_cv_lib_ICE_IceConnectionNumber=yes
1.1 ohara 11901: else
1.10 ohara 11902: ac_cv_lib_ICE_IceConnectionNumber=no
11903: fi
11904: rm -f core conftest.err conftest.$ac_objext \
11905: conftest$ac_exeext conftest.$ac_ext
11906: LIBS=$ac_check_lib_save_LIBS
11907: fi
11908: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
11909: $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
11910: if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
11911: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
11912: fi
11913:
11914: LDFLAGS=$ac_save_LDFLAGS
1.9 ohara 11915:
11916: fi
11917:
1.10 ohara 11918:
11919: if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
11920: CFLAGS="${CFLAGS} -finline-functions"
1.1 ohara 11921: fi
1.9 ohara 11922:
1.10 ohara 11923: case "${host}" in
11924: i[3-6]86-*-interix*)
11925: $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
11926:
11927: ;;
11928: *)
11929: ;;
11930: esac
1.1 ohara 11931:
1.10 ohara 11932: ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
11933: if test "x$ac_cv_func_socket" = xyes; then :
1.1 ohara 11934:
1.10 ohara 11935: else
11936: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
11937: $as_echo_n "checking for socket in -lsocket... " >&6; }
11938: if ${ac_cv_lib_socket_socket+:} false; then :
11939: $as_echo_n "(cached) " >&6
11940: else
11941: ac_check_lib_save_LIBS=$LIBS
11942: LIBS="-lsocket $LIBS"
11943: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.9 ohara 11944: /* end confdefs.h. */
1.4 takayama 11945:
1.9 ohara 11946: /* Override any GCC internal prototype to avoid an error.
11947: Use char because int might match the return type of a GCC
11948: builtin and then its argument prototype would still apply. */
1.4 takayama 11949: #ifdef __cplusplus
11950: extern "C"
11951: #endif
1.10 ohara 11952: char socket ();
1.4 takayama 11953: int
11954: main ()
11955: {
1.10 ohara 11956: return socket ();
1.4 takayama 11957: ;
11958: return 0;
11959: }
11960: _ACEOF
1.10 ohara 11961: if ac_fn_c_try_link "$LINENO"; then :
11962: ac_cv_lib_socket_socket=yes
1.1 ohara 11963: else
1.10 ohara 11964: ac_cv_lib_socket_socket=no
11965: fi
11966: rm -f core conftest.err conftest.$ac_objext \
11967: conftest$ac_exeext conftest.$ac_ext
11968: LIBS=$ac_check_lib_save_LIBS
11969: fi
11970: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
11971: $as_echo "$ac_cv_lib_socket_socket" >&6; }
11972: if test "x$ac_cv_lib_socket_socket" = xyes; then :
11973: cat >>confdefs.h <<_ACEOF
11974: #define HAVE_LIBSOCKET 1
11975: _ACEOF
11976:
11977: LIBS="-lsocket $LIBS"
11978:
11979: fi
11980:
11981: fi
11982:
11983: ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
11984: if test "x$ac_cv_func_gethostbyname" = xyes; then :
1.9 ohara 11985:
1.10 ohara 11986: else
11987: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
11988: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
11989: if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
11990: $as_echo_n "(cached) " >&6
1.4 takayama 11991: else
11992: ac_check_lib_save_LIBS=$LIBS
1.10 ohara 11993: LIBS="-lnsl $LIBS"
11994: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.9 ohara 11995: /* end confdefs.h. */
1.4 takayama 11996:
1.9 ohara 11997: /* Override any GCC internal prototype to avoid an error.
11998: Use char because int might match the return type of a GCC
11999: builtin and then its argument prototype would still apply. */
1.4 takayama 12000: #ifdef __cplusplus
12001: extern "C"
12002: #endif
1.10 ohara 12003: char gethostbyname ();
1.4 takayama 12004: int
12005: main ()
12006: {
1.10 ohara 12007: return gethostbyname ();
1.4 takayama 12008: ;
12009: return 0;
12010: }
12011: _ACEOF
1.10 ohara 12012: if ac_fn_c_try_link "$LINENO"; then :
12013: ac_cv_lib_nsl_gethostbyname=yes
12014: else
12015: ac_cv_lib_nsl_gethostbyname=no
12016: fi
12017: rm -f core conftest.err conftest.$ac_objext \
12018: conftest$ac_exeext conftest.$ac_ext
12019: LIBS=$ac_check_lib_save_LIBS
12020: fi
12021: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
12022: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
12023: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
12024: cat >>confdefs.h <<_ACEOF
12025: #define HAVE_LIBNSL 1
12026: _ACEOF
12027:
12028: LIBS="-lnsl $LIBS"
1.9 ohara 12029:
1.4 takayama 12030: fi
1.9 ohara 12031:
1.1 ohara 12032: fi
12033:
1.10 ohara 12034: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12035: if test "x$ac_cv_func_dlopen" = xyes; then :
12036:
12037: else
12038: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12039: $as_echo_n "checking for dlopen in -ldl... " >&6; }
12040: if ${ac_cv_lib_dl_dlopen+:} false; then :
12041: $as_echo_n "(cached) " >&6
1.1 ohara 12042: else
1.4 takayama 12043: ac_check_lib_save_LIBS=$LIBS
1.10 ohara 12044: LIBS="-ldl $LIBS"
12045: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.9 ohara 12046: /* end confdefs.h. */
1.4 takayama 12047:
1.9 ohara 12048: /* Override any GCC internal prototype to avoid an error.
12049: Use char because int might match the return type of a GCC
12050: builtin and then its argument prototype would still apply. */
1.4 takayama 12051: #ifdef __cplusplus
12052: extern "C"
12053: #endif
1.10 ohara 12054: char dlopen ();
1.4 takayama 12055: int
12056: main ()
12057: {
1.10 ohara 12058: return dlopen ();
1.4 takayama 12059: ;
12060: return 0;
12061: }
12062: _ACEOF
1.10 ohara 12063: if ac_fn_c_try_link "$LINENO"; then :
12064: ac_cv_lib_dl_dlopen=yes
1.4 takayama 12065: else
1.10 ohara 12066: ac_cv_lib_dl_dlopen=no
12067: fi
12068: rm -f core conftest.err conftest.$ac_objext \
12069: conftest$ac_exeext conftest.$ac_ext
12070: LIBS=$ac_check_lib_save_LIBS
12071: fi
12072: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12073: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12074: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12075: cat >>confdefs.h <<_ACEOF
12076: #define HAVE_LIBDL 1
12077: _ACEOF
12078:
12079: LIBS="-ldl $LIBS"
12080:
12081: fi
1.9 ohara 12082:
1.4 takayama 12083: fi
1.9 ohara 12084:
1.10 ohara 12085:
12086: ac_config_files="$ac_config_files Makefile"
12087:
12088: cat >confcache <<\_ACEOF
12089: # This file is a shell script that caches the results of configure
12090: # tests run on this system so they can be shared between configure
12091: # scripts and configure runs, see configure's option --config-cache.
12092: # It is not useful on other systems. If it contains results you don't
12093: # want to keep, you may remove or edit it.
12094: #
12095: # config.status only pays attention to the cache file if you give it
12096: # the --recheck option to rerun configure.
12097: #
12098: # `ac_cv_env_foo' variables (set or unset) will be overridden when
12099: # loading this file, other *unset* `ac_cv_foo' will be assigned the
12100: # following values.
12101:
12102: _ACEOF
12103:
12104: # The following way of writing the cache mishandles newlines in values,
12105: # but we know of no workaround that is simple, portable, and efficient.
12106: # So, we kill variables containing newlines.
12107: # Ultrix sh set writes to stderr and can't be redirected directly,
12108: # and sets the high bit in the cache file unless we assign to the vars.
12109: (
12110: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12111: eval ac_val=\$$ac_var
12112: case $ac_val in #(
12113: *${as_nl}*)
12114: case $ac_var in #(
12115: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12116: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12117: esac
12118: case $ac_var in #(
12119: _ | IFS | as_nl) ;; #(
12120: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12121: *) { eval $ac_var=; unset $ac_var;} ;;
12122: esac ;;
12123: esac
12124: done
12125:
12126: (set) 2>&1 |
12127: case $as_nl`(ac_space=' '; set) 2>&1` in #(
12128: *${as_nl}ac_space=\ *)
12129: # `set' does not quote correctly, so add quotes: double-quote
12130: # substitution turns \\\\ into \\, and sed turns \\ into \.
12131: sed -n \
12132: "s/'/'\\\\''/g;
12133: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12134: ;; #(
12135: *)
12136: # `set' quotes correctly as required by POSIX, so do not add quotes.
12137: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12138: ;;
12139: esac |
12140: sort
12141: ) |
12142: sed '
12143: /^ac_cv_env_/b end
12144: t clear
12145: :clear
12146: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12147: t end
12148: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12149: :end' >>confcache
12150: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12151: if test -w "$cache_file"; then
12152: if test "x$cache_file" != "x/dev/null"; then
12153: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12154: $as_echo "$as_me: updating cache $cache_file" >&6;}
12155: if test ! -f "$cache_file" || test -h "$cache_file"; then
12156: cat confcache >"$cache_file"
12157: else
12158: case $cache_file in #(
12159: */* | ?:*)
12160: mv -f confcache "$cache_file"$$ &&
12161: mv -f "$cache_file"$$ "$cache_file" ;; #(
12162: *)
12163: mv -f confcache "$cache_file" ;;
12164: esac
12165: fi
12166: fi
12167: else
12168: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12169: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12170: fi
1.4 takayama 12171: fi
1.10 ohara 12172: rm -f confcache
12173:
12174: test "x$prefix" = xNONE && prefix=$ac_default_prefix
12175: # Let make expand exec_prefix.
12176: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12177:
12178: # Transform confdefs.h into DEFS.
12179: # Protect against shell expansion while executing Makefile rules.
12180: # Protect against Makefile macro expansion.
12181: #
12182: # If the first sed substitution is executed (which looks for macros that
12183: # take arguments), then branch to the quote section. Otherwise,
12184: # look for a macro that doesn't take arguments.
12185: ac_script='
12186: :mline
12187: /\\$/{
12188: N
12189: s,\\\n,,
12190: b mline
12191: }
12192: t clear
12193: :clear
12194: s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
12195: t quote
12196: s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
12197: t quote
12198: b any
12199: :quote
12200: s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12201: s/\[/\\&/g
12202: s/\]/\\&/g
12203: s/\$/$$/g
12204: H
12205: :any
12206: ${
12207: g
12208: s/^\n//
12209: s/\n/ /g
12210: p
12211: }
12212: '
12213: DEFS=`sed -n "$ac_script" confdefs.h`
12214:
12215:
12216: ac_libobjs=
12217: ac_ltlibobjs=
12218: U=
12219: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12220: # 1. Remove the extension, and $U if already installed.
12221: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12222: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12223: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12224: # will be set to the directory where LIBOBJS objects are built.
12225: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12226: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12227: done
12228: LIBOBJS=$ac_libobjs
12229:
12230: LTLIBOBJS=$ac_ltlibobjs
12231:
12232:
12233: if test -n "$EXEEXT"; then
12234: am__EXEEXT_TRUE=
12235: am__EXEEXT_FALSE='#'
12236: else
12237: am__EXEEXT_TRUE='#'
12238: am__EXEEXT_FALSE=
1.1 ohara 12239: fi
12240:
1.10 ohara 12241: if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12242: as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12243: Usually this means the macro was only invoked conditionally." "$LINENO" 5
12244: fi
12245: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12246: as_fn_error $? "conditional \"AMDEP\" was never defined.
12247: Usually this means the macro was only invoked conditionally." "$LINENO" 5
12248: fi
12249: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12250: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12251: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.4 takayama 12252: fi
1.9 ohara 12253:
1.10 ohara 12254: : "${CONFIG_STATUS=./config.status}"
12255: ac_write_fail=0
12256: ac_clean_files_save=$ac_clean_files
12257: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12258: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12259: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12260: as_write_fail=0
12261: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12262: #! $SHELL
12263: # Generated by $as_me.
12264: # Run this file to recreate the current configuration.
12265: # Compiler output produced by configure, useful for debugging
12266: # configure, is in config.log if it exists.
12267:
12268: debug=false
12269: ac_cs_recheck=false
12270: ac_cs_silent=false
12271:
12272: SHELL=\${CONFIG_SHELL-$SHELL}
12273: export SHELL
12274: _ASEOF
12275: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12276: ## -------------------- ##
12277: ## M4sh Initialization. ##
12278: ## -------------------- ##
1.1 ohara 12279:
1.10 ohara 12280: # Be more Bourne compatible
12281: DUALCASE=1; export DUALCASE # for MKS sh
12282: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12283: emulate sh
12284: NULLCMD=:
12285: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12286: # is contrary to our usage. Disable this feature.
12287: alias -g '${1+"$@"}'='"$@"'
12288: setopt NO_GLOB_SUBST
1.1 ohara 12289: else
1.10 ohara 12290: case `(set -o) 2>/dev/null` in #(
12291: *posix*) :
12292: set -o posix ;; #(
12293: *) :
12294: ;;
12295: esac
12296: fi
12297:
12298:
12299: as_nl='
12300: '
12301: export as_nl
12302: # Printing a long string crashes Solaris 7 /usr/bin/printf.
12303: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12304: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12305: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12306: # Prefer a ksh shell builtin over an external printf program on Solaris,
12307: # but without wasting forks for bash or zsh.
12308: if test -z "$BASH_VERSION$ZSH_VERSION" \
12309: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12310: as_echo='print -r --'
12311: as_echo_n='print -rn --'
12312: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12313: as_echo='printf %s\n'
12314: as_echo_n='printf %s'
12315: else
12316: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12317: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12318: as_echo_n='/usr/ucb/echo -n'
12319: else
12320: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12321: as_echo_n_body='eval
12322: arg=$1;
12323: case $arg in #(
12324: *"$as_nl"*)
12325: expr "X$arg" : "X\\(.*\\)$as_nl";
12326: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12327: esac;
12328: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12329: '
12330: export as_echo_n_body
12331: as_echo_n='sh -c $as_echo_n_body as_echo'
12332: fi
12333: export as_echo_body
12334: as_echo='sh -c $as_echo_body as_echo'
12335: fi
12336:
12337: # The user is always right.
12338: if test "${PATH_SEPARATOR+set}" != set; then
12339: PATH_SEPARATOR=:
12340: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12341: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12342: PATH_SEPARATOR=';'
12343: }
12344: fi
12345:
12346:
12347: # IFS
12348: # We need space, tab and new line, in precisely that order. Quoting is
12349: # there to prevent editors from complaining about space-tab.
12350: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12351: # splitting by setting IFS to empty value.)
12352: IFS=" "" $as_nl"
12353:
12354: # Find who we are. Look in the path if we contain no directory separator.
12355: as_myself=
12356: case $0 in #((
12357: *[\\/]* ) as_myself=$0 ;;
12358: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12359: for as_dir in $PATH
12360: do
12361: IFS=$as_save_IFS
12362: test -z "$as_dir" && as_dir=.
12363: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12364: done
12365: IFS=$as_save_IFS
12366:
12367: ;;
12368: esac
12369: # We did not find ourselves, most probably we were run as `sh COMMAND'
12370: # in which case we are not to be found in the path.
12371: if test "x$as_myself" = x; then
12372: as_myself=$0
12373: fi
12374: if test ! -f "$as_myself"; then
12375: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12376: exit 1
12377: fi
12378:
12379: # Unset variables that we do not need and which cause bugs (e.g. in
12380: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12381: # suppresses any "Segmentation fault" message there. '((' could
12382: # trigger a bug in pdksh 5.2.14.
12383: for as_var in BASH_ENV ENV MAIL MAILPATH
12384: do eval test x\${$as_var+set} = xset \
12385: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12386: done
12387: PS1='$ '
12388: PS2='> '
12389: PS4='+ '
12390:
12391: # NLS nuisances.
12392: LC_ALL=C
12393: export LC_ALL
12394: LANGUAGE=C
12395: export LANGUAGE
1.9 ohara 12396:
1.10 ohara 12397: # CDPATH.
12398: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.9 ohara 12399:
12400:
1.10 ohara 12401: # as_fn_error STATUS ERROR [LINENO LOG_FD]
12402: # ----------------------------------------
12403: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12404: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12405: # script with STATUS, using 1 if that was 0.
12406: as_fn_error ()
12407: {
12408: as_status=$1; test $as_status -eq 0 && as_status=1
12409: if test "$4"; then
12410: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12411: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12412: fi
12413: $as_echo "$as_me: error: $2" >&2
12414: as_fn_exit $as_status
12415: } # as_fn_error
12416:
12417:
12418: # as_fn_set_status STATUS
12419: # -----------------------
12420: # Set $? to STATUS, without forking.
12421: as_fn_set_status ()
12422: {
12423: return $1
12424: } # as_fn_set_status
12425:
12426: # as_fn_exit STATUS
12427: # -----------------
12428: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12429: as_fn_exit ()
12430: {
12431: set +e
12432: as_fn_set_status $1
12433: exit $1
12434: } # as_fn_exit
12435:
12436: # as_fn_unset VAR
12437: # ---------------
12438: # Portably unset VAR.
12439: as_fn_unset ()
12440: {
12441: { eval $1=; unset $1;}
12442: }
12443: as_unset=as_fn_unset
12444: # as_fn_append VAR VALUE
12445: # ----------------------
12446: # Append the text in VALUE to the end of the definition contained in VAR. Take
12447: # advantage of any shell optimizations that allow amortized linear growth over
12448: # repeated appends, instead of the typical quadratic growth present in naive
12449: # implementations.
12450: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12451: eval 'as_fn_append ()
12452: {
12453: eval $1+=\$2
12454: }'
12455: else
12456: as_fn_append ()
12457: {
12458: eval $1=\$$1\$2
12459: }
12460: fi # as_fn_append
12461:
12462: # as_fn_arith ARG...
12463: # ------------------
12464: # Perform arithmetic evaluation on the ARGs, and store the result in the
12465: # global $as_val. Take advantage of shells that can avoid forks. The arguments
12466: # must be portable across $(()) and expr.
12467: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12468: eval 'as_fn_arith ()
12469: {
12470: as_val=$(( $* ))
12471: }'
12472: else
12473: as_fn_arith ()
12474: {
12475: as_val=`expr "$@" || test $? -eq 1`
12476: }
12477: fi # as_fn_arith
1.9 ohara 12478:
1.1 ohara 12479:
1.10 ohara 12480: if expr a : '\(a\)' >/dev/null 2>&1 &&
12481: test "X`expr 00001 : '.*\(...\)'`" = X001; then
12482: as_expr=expr
1.4 takayama 12483: else
1.10 ohara 12484: as_expr=false
12485: fi
1.9 ohara 12486:
1.10 ohara 12487: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12488: as_basename=basename
12489: else
12490: as_basename=false
1.1 ohara 12491: fi
1.9 ohara 12492:
1.10 ohara 12493: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12494: as_dirname=dirname
12495: else
12496: as_dirname=false
1.1 ohara 12497: fi
12498:
1.10 ohara 12499: as_me=`$as_basename -- "$0" ||
12500: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12501: X"$0" : 'X\(//\)$' \| \
12502: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12503: $as_echo X/"$0" |
12504: sed '/^.*\/\([^/][^/]*\)\/*$/{
12505: s//\1/
12506: q
12507: }
12508: /^X\/\(\/\/\)$/{
12509: s//\1/
12510: q
12511: }
12512: /^X\/\(\/\).*/{
12513: s//\1/
12514: q
12515: }
12516: s/.*/./; q'`
12517:
12518: # Avoid depending upon Character Ranges.
12519: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12520: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12521: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12522: as_cr_digits='0123456789'
12523: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.4 takayama 12524:
1.10 ohara 12525: ECHO_C= ECHO_N= ECHO_T=
12526: case `echo -n x` in #(((((
12527: -n*)
12528: case `echo 'xy\c'` in
12529: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12530: xy) ECHO_C='\c';;
12531: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12532: ECHO_T=' ';;
12533: esac;;
12534: *)
12535: ECHO_N='-n';;
1.9 ohara 12536: esac
1.10 ohara 12537:
12538: rm -f conf$$ conf$$.exe conf$$.file
12539: if test -d conf$$.dir; then
12540: rm -f conf$$.dir/conf$$.file
1.4 takayama 12541: else
1.10 ohara 12542: rm -f conf$$.dir
12543: mkdir conf$$.dir 2>/dev/null
1.4 takayama 12544: fi
1.10 ohara 12545: if (echo >conf$$.file) 2>/dev/null; then
12546: if ln -s conf$$.file conf$$ 2>/dev/null; then
12547: as_ln_s='ln -s'
12548: # ... but there are two gotchas:
12549: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12550: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12551: # In both cases, we have to default to `cp -p'.
12552: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12553: as_ln_s='cp -p'
12554: elif ln conf$$.file conf$$ 2>/dev/null; then
12555: as_ln_s=ln
12556: else
12557: as_ln_s='cp -p'
12558: fi
12559: else
12560: as_ln_s='cp -p'
1.4 takayama 12561: fi
1.10 ohara 12562: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12563: rmdir conf$$.dir 2>/dev/null
1.1 ohara 12564:
12565:
1.10 ohara 12566: # as_fn_mkdir_p
12567: # -------------
12568: # Create "$as_dir" as a directory, including parents if necessary.
12569: as_fn_mkdir_p ()
1.4 takayama 12570: {
1.10 ohara 12571:
12572: case $as_dir in #(
12573: -*) as_dir=./$as_dir;;
12574: esac
12575: test -d "$as_dir" || eval $as_mkdir_p || {
12576: as_dirs=
12577: while :; do
12578: case $as_dir in #(
12579: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12580: *) as_qdir=$as_dir;;
12581: esac
12582: as_dirs="'$as_qdir' $as_dirs"
12583: as_dir=`$as_dirname -- "$as_dir" ||
12584: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12585: X"$as_dir" : 'X\(//\)[^/]' \| \
12586: X"$as_dir" : 'X\(//\)$' \| \
12587: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12588: $as_echo X"$as_dir" |
12589: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12590: s//\1/
12591: q
12592: }
12593: /^X\(\/\/\)[^/].*/{
12594: s//\1/
12595: q
12596: }
12597: /^X\(\/\/\)$/{
12598: s//\1/
12599: q
12600: }
12601: /^X\(\/\).*/{
12602: s//\1/
12603: q
12604: }
12605: s/.*/./; q'`
12606: test -d "$as_dir" && break
12607: done
12608: test -z "$as_dirs" || eval "mkdir $as_dirs"
12609: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12610:
12611:
12612: } # as_fn_mkdir_p
12613: if mkdir -p . 2>/dev/null; then
12614: as_mkdir_p='mkdir -p "$as_dir"'
1.4 takayama 12615: else
1.10 ohara 12616: test -d ./-p && rmdir ./-p
12617: as_mkdir_p=false
12618: fi
1.9 ohara 12619:
1.10 ohara 12620: if test -x / >/dev/null 2>&1; then
12621: as_test_x='test -x'
12622: else
12623: if ls -dL / >/dev/null 2>&1; then
12624: as_ls_L_option=L
12625: else
12626: as_ls_L_option=
12627: fi
12628: as_test_x='
12629: eval sh -c '\''
12630: if test -d "$1"; then
12631: test -d "$1/.";
12632: else
12633: case $1 in #(
12634: -*)set "./$1";;
12635: esac;
12636: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12637: ???[sx]*):;;*)false;;esac;fi
12638: '\'' sh
12639: '
1.4 takayama 12640: fi
1.10 ohara 12641: as_executable_p=$as_test_x
12642:
12643: # Sed expression to map a string onto a valid CPP name.
12644: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12645:
12646: # Sed expression to map a string onto a valid variable name.
12647: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12648:
12649:
12650: exec 6>&1
12651: ## ----------------------------------- ##
12652: ## Main body of $CONFIG_STATUS script. ##
12653: ## ----------------------------------- ##
12654: _ASEOF
12655: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.9 ohara 12656:
1.10 ohara 12657: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12658: # Save the log message, to keep $0 and so on meaningful, and to
12659: # report actual input values of CONFIG_FILES etc. instead of their
12660: # values after options handling.
12661: ac_log="
12662: This file was extended by $as_me, which was
12663: generated by GNU Autoconf 2.68. Invocation command line was
12664:
12665: CONFIG_FILES = $CONFIG_FILES
12666: CONFIG_HEADERS = $CONFIG_HEADERS
12667: CONFIG_LINKS = $CONFIG_LINKS
12668: CONFIG_COMMANDS = $CONFIG_COMMANDS
12669: $ $0 $@
1.1 ohara 12670:
1.10 ohara 12671: on `(hostname || uname -n) 2>/dev/null | sed 1q`
12672: "
1.1 ohara 12673:
1.9 ohara 12674: _ACEOF
12675:
1.10 ohara 12676: case $ac_config_files in *"
12677: "*) set x $ac_config_files; shift; ac_config_files=$*;;
12678: esac
1.9 ohara 12679:
12680:
12681:
1.10 ohara 12682: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12683: # Files that config.status was made for.
12684: config_files="$ac_config_files"
12685: config_commands="$ac_config_commands"
1.1 ohara 12686:
1.4 takayama 12687: _ACEOF
1.9 ohara 12688:
1.10 ohara 12689: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12690: ac_cs_usage="\
12691: \`$as_me' instantiates files and other configuration actions
12692: from templates according to the current configuration. Unless the files
12693: and actions are specified as TAGs, all are instantiated by default.
12694:
12695: Usage: $0 [OPTION]... [TAG]...
1.9 ohara 12696:
1.10 ohara 12697: -h, --help print this help, then exit
12698: -V, --version print version number and configuration settings, then exit
12699: --config print configuration, then exit
12700: -q, --quiet, --silent
12701: do not print progress messages
12702: -d, --debug don't remove temporary files
12703: --recheck update $as_me by reconfiguring in the same conditions
12704: --file=FILE[:TEMPLATE]
12705: instantiate the configuration file FILE
1.1 ohara 12706:
1.10 ohara 12707: Configuration files:
12708: $config_files
1.4 takayama 12709:
1.10 ohara 12710: Configuration commands:
12711: $config_commands
1.9 ohara 12712:
1.10 ohara 12713: Report bugs to the package provider."
1.9 ohara 12714:
1.10 ohara 12715: _ACEOF
12716: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12717: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12718: ac_cs_version="\\
12719: config.status
12720: configured by $0, generated by GNU Autoconf 2.68,
12721: with options \\"\$ac_cs_config\\"
1.1 ohara 12722:
1.10 ohara 12723: Copyright (C) 2010 Free Software Foundation, Inc.
12724: This config.status script is free software; the Free Software Foundation
12725: gives unlimited permission to copy, distribute and modify it."
1.1 ohara 12726:
1.10 ohara 12727: ac_pwd='$ac_pwd'
12728: srcdir='$srcdir'
12729: INSTALL='$INSTALL'
12730: MKDIR_P='$MKDIR_P'
12731: AWK='$AWK'
12732: test -n "\$AWK" || AWK=awk
1.9 ohara 12733: _ACEOF
12734:
1.10 ohara 12735: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12736: # The default lists apply if the user does not specify any file.
12737: ac_need_defaults=:
12738: while test $# != 0
12739: do
12740: case $1 in
12741: --*=?*)
12742: ac_option=`expr "X$1" : 'X\([^=]*\)='`
12743: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12744: ac_shift=:
12745: ;;
12746: --*=)
12747: ac_option=`expr "X$1" : 'X\([^=]*\)='`
12748: ac_optarg=
12749: ac_shift=:
12750: ;;
12751: *)
12752: ac_option=$1
12753: ac_optarg=$2
12754: ac_shift=shift
12755: ;;
12756: esac
12757:
12758: case $ac_option in
12759: # Handling of the options.
12760: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12761: ac_cs_recheck=: ;;
12762: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12763: $as_echo "$ac_cs_version"; exit ;;
12764: --config | --confi | --conf | --con | --co | --c )
12765: $as_echo "$ac_cs_config"; exit ;;
12766: --debug | --debu | --deb | --de | --d | -d )
12767: debug=: ;;
12768: --file | --fil | --fi | --f )
12769: $ac_shift
12770: case $ac_optarg in
12771: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12772: '') as_fn_error $? "missing file argument" ;;
12773: esac
12774: as_fn_append CONFIG_FILES " '$ac_optarg'"
12775: ac_need_defaults=false;;
12776: --he | --h | --help | --hel | -h )
12777: $as_echo "$ac_cs_usage"; exit ;;
12778: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12779: | -silent | --silent | --silen | --sile | --sil | --si | --s)
12780: ac_cs_silent=: ;;
1.9 ohara 12781:
1.10 ohara 12782: # This is an error.
12783: -*) as_fn_error $? "unrecognized option: \`$1'
12784: Try \`$0 --help' for more information." ;;
1.9 ohara 12785:
1.10 ohara 12786: *) as_fn_append ac_config_targets " $1"
12787: ac_need_defaults=false ;;
1.9 ohara 12788:
1.10 ohara 12789: esac
12790: shift
12791: done
1.1 ohara 12792:
1.10 ohara 12793: ac_configure_extra_args=
1.9 ohara 12794:
1.10 ohara 12795: if $ac_cs_silent; then
12796: exec 6>/dev/null
12797: ac_configure_extra_args="$ac_configure_extra_args --silent"
1.1 ohara 12798: fi
1.9 ohara 12799:
1.10 ohara 12800: _ACEOF
12801: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12802: if \$ac_cs_recheck; then
12803: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12804: shift
12805: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12806: CONFIG_SHELL='$SHELL'
12807: export CONFIG_SHELL
12808: exec "\$@"
1.1 ohara 12809: fi
12810:
1.9 ohara 12811: _ACEOF
1.10 ohara 12812: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12813: exec 5>>config.log
12814: {
12815: echo
12816: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12817: ## Running $as_me. ##
12818: _ASBOX
12819: $as_echo "$ac_log"
12820: } >&5
1.4 takayama 12821:
12822: _ACEOF
1.10 ohara 12823: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12824: #
12825: # INIT-COMMANDS
12826: #
12827: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12828:
12829:
12830: # The HP-UX ksh and POSIX shell print the target directory to stdout
12831: # if CDPATH is set.
12832: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12833:
12834: sed_quote_subst='$sed_quote_subst'
12835: double_quote_subst='$double_quote_subst'
12836: delay_variable_subst='$delay_variable_subst'
12837: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12838: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12839: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12840: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12841: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12842: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12843: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12844: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12845: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12846: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12847: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12848: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12849: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12850: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12851: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12852: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12853: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12854: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12855: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12856: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12857: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12858: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12859: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12860: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12861: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12862: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12863: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12864: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12865: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12866: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12867: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12868: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12869: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12870: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12871: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12872: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12873: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12874: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12875: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12876: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12877: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12878: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12879: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12880: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12881: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12882: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12883: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12884: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12885: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12886: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12887: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12888: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12889: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12890: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12891: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12892: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12893: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
12894: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12895: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12896: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12897: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12898: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12899: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12900: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12901: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12902: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12903: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12904: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12905: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12906: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12907: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12908: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12909: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12910: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12911: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12912: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12913: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12914: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12915: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12916: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12917: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12918: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12919: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12920: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12921: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12922: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12923: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12924: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12925: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12926: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12927: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12928: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12929: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12930: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12931: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12932: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12933: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12934: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12935: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12936: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12937: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12938: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12939: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12940: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12941: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12942: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12943: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12944: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12945: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12946: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12947: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12948: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12949: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12950: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12951: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12952: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12953: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12954: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12955: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12956: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12957: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12958: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12959: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12960: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12961: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12962: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12963: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12964: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12965: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12966: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12967:
12968: LTCC='$LTCC'
12969: LTCFLAGS='$LTCFLAGS'
12970: compiler='$compiler_DEFAULT'
12971:
12972: # A function that is used when there is no print builtin or printf.
12973: func_fallback_echo ()
12974: {
12975: eval 'cat <<_LTECHO_EOF
12976: \$1
12977: _LTECHO_EOF'
12978: }
12979:
12980: # Quote evaled strings.
12981: for var in SHELL \
12982: ECHO \
12983: PATH_SEPARATOR \
12984: SED \
12985: GREP \
12986: EGREP \
12987: FGREP \
12988: LD \
12989: NM \
12990: LN_S \
12991: lt_SP2NL \
12992: lt_NL2SP \
12993: reload_flag \
12994: OBJDUMP \
12995: deplibs_check_method \
12996: file_magic_cmd \
12997: file_magic_glob \
12998: want_nocaseglob \
12999: DLLTOOL \
13000: sharedlib_from_linklib_cmd \
13001: AR \
13002: AR_FLAGS \
13003: archiver_list_spec \
13004: STRIP \
13005: RANLIB \
13006: CC \
13007: CFLAGS \
13008: compiler \
13009: lt_cv_sys_global_symbol_pipe \
13010: lt_cv_sys_global_symbol_to_cdecl \
13011: lt_cv_sys_global_symbol_to_c_name_address \
13012: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13013: nm_file_list_spec \
13014: lt_prog_compiler_no_builtin_flag \
13015: lt_prog_compiler_pic \
13016: lt_prog_compiler_wl \
13017: lt_prog_compiler_static \
13018: lt_cv_prog_compiler_c_o \
13019: need_locks \
13020: MANIFEST_TOOL \
13021: DSYMUTIL \
13022: NMEDIT \
13023: LIPO \
13024: OTOOL \
13025: OTOOL64 \
13026: shrext_cmds \
13027: export_dynamic_flag_spec \
13028: whole_archive_flag_spec \
13029: compiler_needs_object \
13030: with_gnu_ld \
13031: allow_undefined_flag \
13032: no_undefined_flag \
13033: hardcode_libdir_flag_spec \
13034: hardcode_libdir_separator \
13035: exclude_expsyms \
13036: include_expsyms \
13037: file_list_spec \
13038: variables_saved_for_relink \
13039: libname_spec \
13040: library_names_spec \
13041: soname_spec \
13042: install_override_mode \
13043: finish_eval \
13044: old_striplib \
13045: striplib; do
13046: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13047: *[\\\\\\\`\\"\\\$]*)
13048: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13049: ;;
13050: *)
13051: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13052: ;;
13053: esac
13054: done
13055:
13056: # Double-quote double-evaled strings.
13057: for var in reload_cmds \
13058: old_postinstall_cmds \
13059: old_postuninstall_cmds \
13060: old_archive_cmds \
13061: extract_expsyms_cmds \
13062: old_archive_from_new_cmds \
13063: old_archive_from_expsyms_cmds \
13064: archive_cmds \
13065: archive_expsym_cmds \
13066: module_cmds \
13067: module_expsym_cmds \
13068: export_symbols_cmds \
13069: prelink_cmds \
13070: postlink_cmds \
13071: postinstall_cmds \
13072: postuninstall_cmds \
13073: finish_cmds \
13074: sys_lib_search_path_spec \
13075: sys_lib_dlsearch_path_spec; do
13076: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13077: *[\\\\\\\`\\"\\\$]*)
13078: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13079: ;;
13080: *)
13081: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13082: ;;
13083: esac
13084: done
13085:
13086: ac_aux_dir='$ac_aux_dir'
13087: xsi_shell='$xsi_shell'
13088: lt_shell_append='$lt_shell_append'
1.9 ohara 13089:
1.10 ohara 13090: # See if we are running on zsh, and set the options which allow our
13091: # commands through without removal of \ escapes INIT.
13092: if test -n "\${ZSH_VERSION+set}" ; then
13093: setopt NO_GLOB_SUBST
1.4 takayama 13094: fi
1.9 ohara 13095:
1.1 ohara 13096:
1.10 ohara 13097: PACKAGE='$PACKAGE'
13098: VERSION='$VERSION'
13099: TIMESTAMP='$TIMESTAMP'
13100: RM='$RM'
13101: ofile='$ofile'
13102:
13103:
13104:
1.1 ohara 13105:
1.9 ohara 13106: _ACEOF
13107:
1.10 ohara 13108: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13109:
13110: # Handling of arguments.
13111: for ac_config_target in $ac_config_targets
13112: do
13113: case $ac_config_target in
13114: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13115: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13116: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1.9 ohara 13117:
1.10 ohara 13118: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13119: esac
13120: done
1.9 ohara 13121:
13122:
1.10 ohara 13123: # If the user did not use the arguments to specify the items to instantiate,
13124: # then the envvar interface is used. Set only those that are not.
13125: # We use the long form for the default assignment because of an extremely
13126: # bizarre bug on SunOS 4.1.3.
13127: if $ac_need_defaults; then
13128: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13129: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13130: fi
1.1 ohara 13131:
1.10 ohara 13132: # Have a temporary directory for convenience. Make it in the build tree
13133: # simply because there is no reason against having it here, and in addition,
13134: # creating and moving files from /tmp can sometimes cause problems.
13135: # Hook for its removal unless debugging.
13136: # Note that there is a small window in which the directory will not be cleaned:
13137: # after its creation but before its name has been assigned to `$tmp'.
13138: $debug ||
1.9 ohara 13139: {
1.10 ohara 13140: tmp= ac_tmp=
13141: trap 'exit_status=$?
13142: : "${ac_tmp:=$tmp}"
13143: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13144: ' 0
13145: trap 'as_fn_exit 1' 1 2 13 15
1.4 takayama 13146: }
1.10 ohara 13147: # Create a (secure) tmp directory for tmp files.
13148:
13149: {
13150: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13151: test -d "$tmp"
13152: } ||
13153: {
13154: tmp=./conf$$-$RANDOM
13155: (umask 077 && mkdir "$tmp")
13156: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13157: ac_tmp=$tmp
13158:
13159: # Set up the scripts for CONFIG_FILES section.
13160: # No need to generate them if there are no CONFIG_FILES.
13161: # This happens for instance with `./config.status config.h'.
13162: if test -n "$CONFIG_FILES"; then
1.9 ohara 13163:
13164:
1.10 ohara 13165: ac_cr=`echo X | tr X '\015'`
13166: # On cygwin, bash can eat \r inside `` if the user requested igncr.
13167: # But we know of no other shell where ac_cr would be empty at this
13168: # point, so we can use a bashism as a fallback.
13169: if test "x$ac_cr" = x; then
13170: eval ac_cr=\$\'\\r\'
1.1 ohara 13171: fi
1.10 ohara 13172: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13173: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13174: ac_cs_awk_cr='\\r'
1.1 ohara 13175: else
1.10 ohara 13176: ac_cs_awk_cr=$ac_cr
13177: fi
1.4 takayama 13178:
1.10 ohara 13179: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1.4 takayama 13180: _ACEOF
1.9 ohara 13181:
13182:
1.10 ohara 13183: {
13184: echo "cat >conf$$subs.awk <<_ACEOF" &&
13185: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13186: echo "_ACEOF"
13187: } >conf$$subs.sh ||
13188: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13189: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13190: ac_delim='%!_!# '
13191: for ac_last_try in false false false false false :; do
13192: . ./conf$$subs.sh ||
13193: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.1 ohara 13194:
1.10 ohara 13195: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13196: if test $ac_delim_n = $ac_delim_num; then
13197: break
13198: elif $ac_last_try; then
13199: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13200: else
13201: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1.1 ohara 13202: fi
1.10 ohara 13203: done
13204: rm -f conf$$subs.sh
1.1 ohara 13205:
1.10 ohara 13206: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13207: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
1.9 ohara 13208: _ACEOF
1.10 ohara 13209: sed -n '
13210: h
13211: s/^/S["/; s/!.*/"]=/
13212: p
13213: g
13214: s/^[^!]*!//
13215: :repl
13216: t repl
13217: s/'"$ac_delim"'$//
13218: t delim
13219: :nl
13220: h
13221: s/\(.\{148\}\)..*/\1/
13222: t more1
13223: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13224: p
13225: n
13226: b repl
13227: :more1
13228: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13229: p
13230: g
13231: s/.\{148\}//
13232: t nl
13233: :delim
13234: h
13235: s/\(.\{148\}\)..*/\1/
13236: t more2
13237: s/["\\]/\\&/g; s/^/"/; s/$/"/
13238: p
13239: b
13240: :more2
13241: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13242: p
13243: g
13244: s/.\{148\}//
13245: t delim
13246: ' <conf$$subs.awk | sed '
13247: /^[^""]/{
13248: N
13249: s/\n//
13250: }
13251: ' >>$CONFIG_STATUS || ac_write_fail=1
13252: rm -f conf$$subs.awk
13253: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13254: _ACAWK
13255: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13256: for (key in S) S_is_set[key] = 1
13257: FS = ""
13258:
13259: }
13260: {
13261: line = $ 0
13262: nfields = split(line, field, "@")
13263: substed = 0
13264: len = length(field[1])
13265: for (i = 2; i < nfields; i++) {
13266: key = field[i]
13267: keylen = length(key)
13268: if (S_is_set[key]) {
13269: value = S[key]
13270: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13271: len += length(value) + length(field[++i])
13272: substed = 1
13273: } else
13274: len += 1 + keylen
13275: }
13276:
13277: print line
13278: }
13279:
13280: _ACAWK
13281: _ACEOF
13282: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13283: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13284: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13285: else
13286: cat
13287: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13288: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.4 takayama 13289: _ACEOF
1.9 ohara 13290:
1.10 ohara 13291: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13292: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13293: # trailing colons and then remove the whole line if VPATH becomes empty
13294: # (actually we leave an empty line to preserve line numbers).
13295: if test "x$srcdir" = x.; then
13296: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13297: h
13298: s///
13299: s/^/:/
13300: s/[ ]*$/:/
13301: s/:\$(srcdir):/:/g
13302: s/:\${srcdir}:/:/g
13303: s/:@srcdir@:/:/g
13304: s/^:*//
13305: s/:*$//
13306: x
13307: s/\(=[ ]*\).*/\1/
13308: G
13309: s/\n//
13310: s/^[^=]*=[ ]*$//
13311: }'
1.4 takayama 13312: fi
1.9 ohara 13313:
1.10 ohara 13314: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13315: fi # test -n "$CONFIG_FILES"
1.1 ohara 13316:
13317:
1.10 ohara 13318: eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
13319: shift
13320: for ac_tag
13321: do
13322: case $ac_tag in
13323: :[FHLC]) ac_mode=$ac_tag; continue;;
13324: esac
13325: case $ac_mode$ac_tag in
13326: :[FHL]*:*);;
13327: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13328: :[FH]-) ac_tag=-:-;;
13329: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13330: esac
13331: ac_save_IFS=$IFS
13332: IFS=:
13333: set x $ac_tag
13334: IFS=$ac_save_IFS
13335: shift
13336: ac_file=$1
13337: shift
1.1 ohara 13338:
1.10 ohara 13339: case $ac_mode in
13340: :L) ac_source=$1;;
13341: :[FH])
13342: ac_file_inputs=
13343: for ac_f
13344: do
13345: case $ac_f in
13346: -) ac_f="$ac_tmp/stdin";;
13347: *) # Look for the file first in the build tree, then in the source tree
13348: # (if the path is not absolute). The absolute path cannot be DOS-style,
13349: # because $ac_f cannot contain `:'.
13350: test -f "$ac_f" ||
13351: case $ac_f in
13352: [\\/$]*) false;;
13353: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13354: esac ||
13355: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13356: esac
13357: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13358: as_fn_append ac_file_inputs " '$ac_f'"
13359: done
1.1 ohara 13360:
1.10 ohara 13361: # Let's still pretend it is `configure' which instantiates (i.e., don't
13362: # use $as_me), people would be surprised to read:
13363: # /* config.h. Generated by config.status. */
13364: configure_input='Generated from '`
13365: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13366: `' by configure.'
13367: if test x"$ac_file" != x-; then
13368: configure_input="$ac_file. $configure_input"
13369: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13370: $as_echo "$as_me: creating $ac_file" >&6;}
13371: fi
13372: # Neutralize special characters interpreted by sed in replacement strings.
13373: case $configure_input in #(
13374: *\&* | *\|* | *\\* )
13375: ac_sed_conf_input=`$as_echo "$configure_input" |
13376: sed 's/[\\\\&|]/\\\\&/g'`;; #(
13377: *) ac_sed_conf_input=$configure_input;;
13378: esac
1.5 ohara 13379:
1.10 ohara 13380: case $ac_tag in
13381: *:-:* | *:-) cat >"$ac_tmp/stdin" \
13382: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13383: esac
1.5 ohara 13384: ;;
1.10 ohara 13385: esac
1.5 ohara 13386:
1.10 ohara 13387: ac_dir=`$as_dirname -- "$ac_file" ||
13388: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13389: X"$ac_file" : 'X\(//\)[^/]' \| \
13390: X"$ac_file" : 'X\(//\)$' \| \
13391: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13392: $as_echo X"$ac_file" |
13393: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13394: s//\1/
13395: q
13396: }
13397: /^X\(\/\/\)[^/].*/{
13398: s//\1/
13399: q
13400: }
13401: /^X\(\/\/\)$/{
13402: s//\1/
13403: q
13404: }
13405: /^X\(\/\).*/{
13406: s//\1/
13407: q
13408: }
13409: s/.*/./; q'`
13410: as_dir="$ac_dir"; as_fn_mkdir_p
13411: ac_builddir=.
1.9 ohara 13412:
1.10 ohara 13413: case "$ac_dir" in
13414: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13415: *)
13416: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13417: # A ".." for each directory in $ac_dir_suffix.
13418: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13419: case $ac_top_builddir_sub in
13420: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13421: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13422: esac ;;
13423: esac
13424: ac_abs_top_builddir=$ac_pwd
13425: ac_abs_builddir=$ac_pwd$ac_dir_suffix
13426: # for backward compatibility:
13427: ac_top_builddir=$ac_top_build_prefix
1.9 ohara 13428:
1.10 ohara 13429: case $srcdir in
13430: .) # We are building in place.
13431: ac_srcdir=.
13432: ac_top_srcdir=$ac_top_builddir_sub
13433: ac_abs_top_srcdir=$ac_pwd ;;
13434: [\\/]* | ?:[\\/]* ) # Absolute name.
13435: ac_srcdir=$srcdir$ac_dir_suffix;
13436: ac_top_srcdir=$srcdir
13437: ac_abs_top_srcdir=$srcdir ;;
13438: *) # Relative name.
13439: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13440: ac_top_srcdir=$ac_top_build_prefix$srcdir
13441: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.9 ohara 13442: esac
1.10 ohara 13443: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.9 ohara 13444:
13445:
1.10 ohara 13446: case $ac_mode in
13447: :F)
13448: #
13449: # CONFIG_FILE
13450: #
1.1 ohara 13451:
1.10 ohara 13452: case $INSTALL in
13453: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13454: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13455: esac
13456: ac_MKDIR_P=$MKDIR_P
13457: case $MKDIR_P in
13458: [\\/$]* | ?:[\\/]* ) ;;
13459: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13460: esac
1.9 ohara 13461: _ACEOF
1.4 takayama 13462:
1.10 ohara 13463: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13464: # If the template does not know about datarootdir, expand it.
13465: # FIXME: This hack should be removed a few years after 2.60.
13466: ac_datarootdir_hack=; ac_datarootdir_seen=
13467: ac_sed_dataroot='
13468: /datarootdir/ {
13469: p
13470: q
1.4 takayama 13471: }
1.10 ohara 13472: /@datadir@/p
13473: /@docdir@/p
13474: /@infodir@/p
13475: /@localedir@/p
13476: /@mandir@/p'
13477: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13478: *datarootdir*) ac_datarootdir_seen=yes;;
13479: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13480: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13481: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.4 takayama 13482: _ACEOF
1.10 ohara 13483: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13484: ac_datarootdir_hack='
13485: s&@datadir@&$datadir&g
13486: s&@docdir@&$docdir&g
13487: s&@infodir@&$infodir&g
13488: s&@localedir@&$localedir&g
13489: s&@mandir@&$mandir&g
13490: s&\\\${datarootdir}&$datarootdir&g' ;;
1.9 ohara 13491: esac
1.4 takayama 13492: _ACEOF
1.1 ohara 13493:
1.10 ohara 13494: # Neutralize VPATH when `$srcdir' = `.'.
13495: # Shell code in configure.ac might set extrasub.
13496: # FIXME: do we really want to maintain this feature?
13497: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13498: ac_sed_extra="$ac_vpsub
13499: $extrasub
1.9 ohara 13500: _ACEOF
1.10 ohara 13501: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13502: :t
13503: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13504: s|@configure_input@|$ac_sed_conf_input|;t t
13505: s&@top_builddir@&$ac_top_builddir_sub&;t t
13506: s&@top_build_prefix@&$ac_top_build_prefix&;t t
13507: s&@srcdir@&$ac_srcdir&;t t
13508: s&@abs_srcdir@&$ac_abs_srcdir&;t t
13509: s&@top_srcdir@&$ac_top_srcdir&;t t
13510: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13511: s&@builddir@&$ac_builddir&;t t
13512: s&@abs_builddir@&$ac_abs_builddir&;t t
13513: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13514: s&@INSTALL@&$ac_INSTALL&;t t
13515: s&@MKDIR_P@&$ac_MKDIR_P&;t t
13516: $ac_datarootdir_hack
13517: "
13518: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13519: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.9 ohara 13520:
1.10 ohara 13521: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13522: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13523: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13524: "$ac_tmp/out"`; test -z "$ac_out"; } &&
13525: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13526: which seems to be undefined. Please make sure it is defined" >&5
13527: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13528: which seems to be undefined. Please make sure it is defined" >&2;}
1.9 ohara 13529:
1.10 ohara 13530: rm -f "$ac_tmp/stdin"
13531: case $ac_file in
13532: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13533: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13534: esac \
13535: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13536: ;;
1.9 ohara 13537:
13538:
1.10 ohara 13539: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13540: $as_echo "$as_me: executing $ac_file commands" >&6;}
13541: ;;
13542: esac
1.9 ohara 13543:
13544:
1.10 ohara 13545: case $ac_file$ac_mode in
13546: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13547: # Autoconf 2.62 quotes --file arguments for eval, but not when files
13548: # are listed without --file. Let's play safe and only enable the eval
13549: # if we detect the quoting.
13550: case $CONFIG_FILES in
13551: *\'*) eval set x "$CONFIG_FILES" ;;
13552: *) set x $CONFIG_FILES ;;
13553: esac
13554: shift
13555: for mf
13556: do
13557: # Strip MF so we end up with the name of the file.
13558: mf=`echo "$mf" | sed -e 's/:.*$//'`
13559: # Check whether this is an Automake generated Makefile or not.
13560: # We used to match only the files named `Makefile.in', but
13561: # some people rename them; so instead we look at the file content.
13562: # Grep'ing the first line is not enough: some people post-process
13563: # each Makefile.in and add a new line on top of each file to say so.
13564: # Grep'ing the whole file is not good either: AIX grep has a line
13565: # limit of 2048, but all sed's we know have understand at least 4000.
13566: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13567: dirpart=`$as_dirname -- "$mf" ||
13568: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13569: X"$mf" : 'X\(//\)[^/]' \| \
13570: X"$mf" : 'X\(//\)$' \| \
13571: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13572: $as_echo X"$mf" |
13573: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13574: s//\1/
13575: q
13576: }
13577: /^X\(\/\/\)[^/].*/{
13578: s//\1/
13579: q
13580: }
13581: /^X\(\/\/\)$/{
13582: s//\1/
13583: q
13584: }
13585: /^X\(\/\).*/{
13586: s//\1/
13587: q
13588: }
13589: s/.*/./; q'`
13590: else
13591: continue
13592: fi
13593: # Extract the definition of DEPDIR, am__include, and am__quote
13594: # from the Makefile without running `make'.
13595: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13596: test -z "$DEPDIR" && continue
13597: am__include=`sed -n 's/^am__include = //p' < "$mf"`
13598: test -z "am__include" && continue
13599: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13600: # When using ansi2knr, U may be empty or an underscore; expand it
13601: U=`sed -n 's/^U = //p' < "$mf"`
13602: # Find all dependency output files, they are included files with
13603: # $(DEPDIR) in their names. We invoke sed twice because it is the
13604: # simplest approach to changing $(DEPDIR) to its actual value in the
13605: # expansion.
13606: for file in `sed -n "
13607: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13608: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13609: # Make sure the directory exists.
13610: test -f "$dirpart/$file" && continue
13611: fdir=`$as_dirname -- "$file" ||
13612: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13613: X"$file" : 'X\(//\)[^/]' \| \
13614: X"$file" : 'X\(//\)$' \| \
13615: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13616: $as_echo X"$file" |
13617: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13618: s//\1/
13619: q
13620: }
13621: /^X\(\/\/\)[^/].*/{
13622: s//\1/
13623: q
13624: }
13625: /^X\(\/\/\)$/{
13626: s//\1/
13627: q
13628: }
13629: /^X\(\/\).*/{
13630: s//\1/
13631: q
13632: }
13633: s/.*/./; q'`
13634: as_dir=$dirpart/$fdir; as_fn_mkdir_p
13635: # echo "creating $dirpart/$file"
13636: echo '# dummy' > "$dirpart/$file"
13637: done
13638: done
1.4 takayama 13639: }
1.10 ohara 13640: ;;
13641: "libtool":C)
1.9 ohara 13642:
1.10 ohara 13643: # See if we are running on zsh, and set the options which allow our
13644: # commands through without removal of \ escapes.
13645: if test -n "${ZSH_VERSION+set}" ; then
13646: setopt NO_GLOB_SUBST
13647: fi
1.9 ohara 13648:
1.10 ohara 13649: cfgfile="${ofile}T"
13650: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13651: $RM "$cfgfile"
1.4 takayama 13652:
1.10 ohara 13653: cat <<_LT_EOF >> "$cfgfile"
13654: #! $SHELL
1.1 ohara 13655:
1.10 ohara 13656: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13657: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13658: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13659: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13660: #
13661: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13662: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13663: # Foundation, Inc.
13664: # Written by Gordon Matzigkeit, 1996
13665: #
13666: # This file is part of GNU Libtool.
13667: #
13668: # GNU Libtool is free software; you can redistribute it and/or
13669: # modify it under the terms of the GNU General Public License as
13670: # published by the Free Software Foundation; either version 2 of
13671: # the License, or (at your option) any later version.
13672: #
13673: # As a special exception to the GNU General Public License,
13674: # if you distribute this file as part of a program or library that
13675: # is built using GNU Libtool, you may include this file under the
13676: # same distribution terms that you use for the rest of that program.
13677: #
13678: # GNU Libtool is distributed in the hope that it will be useful,
13679: # but WITHOUT ANY WARRANTY; without even the implied warranty of
13680: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13681: # GNU General Public License for more details.
13682: #
13683: # You should have received a copy of the GNU General Public License
13684: # along with GNU Libtool; see the file COPYING. If not, a copy
13685: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13686: # obtained by writing to the Free Software Foundation, Inc.,
13687: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1.1 ohara 13688:
13689:
1.10 ohara 13690: # The names of the tagged configurations supported by this script.
13691: available_tags=""
1.9 ohara 13692:
1.10 ohara 13693: # ### BEGIN LIBTOOL CONFIG
1.9 ohara 13694:
1.10 ohara 13695: # Which release of libtool.m4 was used?
13696: macro_version=$macro_version
13697: macro_revision=$macro_revision
1.9 ohara 13698:
1.10 ohara 13699: # Whether or not to build shared libraries.
13700: build_libtool_libs=$enable_shared
1.9 ohara 13701:
1.10 ohara 13702: # Whether or not to build static libraries.
13703: build_old_libs=$enable_static
1.1 ohara 13704:
1.10 ohara 13705: # What type of objects to build.
13706: pic_mode=$pic_mode
1.9 ohara 13707:
1.10 ohara 13708: # Whether or not to optimize for fast installation.
13709: fast_install=$enable_fast_install
1.9 ohara 13710:
1.10 ohara 13711: # Shell to use when invoking shell scripts.
13712: SHELL=$lt_SHELL
1.4 takayama 13713:
1.10 ohara 13714: # An echo program that protects backslashes.
13715: ECHO=$lt_ECHO
1.4 takayama 13716:
1.10 ohara 13717: # The PATH separator for the build system.
13718: PATH_SEPARATOR=$lt_PATH_SEPARATOR
1.9 ohara 13719:
1.10 ohara 13720: # The host system.
13721: host_alias=$host_alias
13722: host=$host
13723: host_os=$host_os
1.9 ohara 13724:
1.10 ohara 13725: # The build system.
13726: build_alias=$build_alias
13727: build=$build
13728: build_os=$build_os
1.4 takayama 13729:
1.10 ohara 13730: # A sed program that does not truncate output.
13731: SED=$lt_SED
1.4 takayama 13732:
1.10 ohara 13733: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13734: Xsed="\$SED -e 1s/^X//"
1.1 ohara 13735:
1.10 ohara 13736: # A grep program that handles long lines.
13737: GREP=$lt_GREP
1.1 ohara 13738:
1.10 ohara 13739: # An ERE matcher.
13740: EGREP=$lt_EGREP
1.2 ohara 13741:
1.10 ohara 13742: # A literal string matcher.
13743: FGREP=$lt_FGREP
1.9 ohara 13744:
1.10 ohara 13745: # A BSD- or MS-compatible name lister.
13746: NM=$lt_NM
1.4 takayama 13747:
1.10 ohara 13748: # Whether we need soft or hard links.
13749: LN_S=$lt_LN_S
1.4 takayama 13750:
1.10 ohara 13751: # What is the maximum length of a command?
13752: max_cmd_len=$max_cmd_len
1.9 ohara 13753:
1.10 ohara 13754: # Object file suffix (normally "o").
13755: objext=$ac_objext
1.1 ohara 13756:
1.10 ohara 13757: # Executable file suffix (normally "").
13758: exeext=$exeext
1.1 ohara 13759:
1.10 ohara 13760: # whether the shell understands "unset".
13761: lt_unset=$lt_unset
1.9 ohara 13762:
1.10 ohara 13763: # turn spaces into newlines.
13764: SP2NL=$lt_lt_SP2NL
1.9 ohara 13765:
1.10 ohara 13766: # turn newlines into spaces.
13767: NL2SP=$lt_lt_NL2SP
1.4 takayama 13768:
1.10 ohara 13769: # convert \$build file names to \$host format.
13770: to_host_file_cmd=$lt_cv_to_host_file_cmd
1.1 ohara 13771:
1.10 ohara 13772: # convert \$build files to toolchain format.
13773: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1.1 ohara 13774:
1.10 ohara 13775: # An object symbol dumper.
13776: OBJDUMP=$lt_OBJDUMP
1.9 ohara 13777:
1.10 ohara 13778: # Method to check whether dependent libraries are shared objects.
13779: deplibs_check_method=$lt_deplibs_check_method
1.4 takayama 13780:
1.10 ohara 13781: # Command to use when deplibs_check_method = "file_magic".
13782: file_magic_cmd=$lt_file_magic_cmd
1.4 takayama 13783:
1.10 ohara 13784: # How to find potential files when deplibs_check_method = "file_magic".
13785: file_magic_glob=$lt_file_magic_glob
1.4 takayama 13786:
1.10 ohara 13787: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13788: want_nocaseglob=$lt_want_nocaseglob
1.9 ohara 13789:
1.10 ohara 13790: # DLL creation program.
13791: DLLTOOL=$lt_DLLTOOL
1.9 ohara 13792:
1.10 ohara 13793: # Command to associate shared and link libraries.
13794: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
1.9 ohara 13795:
1.10 ohara 13796: # The archiver.
13797: AR=$lt_AR
1.9 ohara 13798:
1.10 ohara 13799: # Flags to create an archive.
13800: AR_FLAGS=$lt_AR_FLAGS
1.9 ohara 13801:
1.10 ohara 13802: # How to feed a file listing to the archiver.
13803: archiver_list_spec=$lt_archiver_list_spec
1.9 ohara 13804:
1.10 ohara 13805: # A symbol stripping program.
13806: STRIP=$lt_STRIP
1.4 takayama 13807:
1.10 ohara 13808: # Commands used to install an old-style archive.
13809: RANLIB=$lt_RANLIB
13810: old_postinstall_cmds=$lt_old_postinstall_cmds
13811: old_postuninstall_cmds=$lt_old_postuninstall_cmds
1.4 takayama 13812:
1.10 ohara 13813: # Whether to use a lock for old archive extraction.
13814: lock_old_archive_extraction=$lock_old_archive_extraction
1.9 ohara 13815:
1.10 ohara 13816: # A C compiler.
13817: LTCC=$lt_CC
1.9 ohara 13818:
1.10 ohara 13819: # LTCC compiler flags.
13820: LTCFLAGS=$lt_CFLAGS
1.9 ohara 13821:
1.10 ohara 13822: # Take the output of nm and produce a listing of raw symbols and C names.
13823: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
1.9 ohara 13824:
1.10 ohara 13825: # Transform the output of nm in a proper C declaration.
13826: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
1.9 ohara 13827:
1.10 ohara 13828: # Transform the output of nm in a C name address pair.
13829: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
1.9 ohara 13830:
1.10 ohara 13831: # Transform the output of nm in a C name address pair when lib prefix is needed.
13832: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
1.9 ohara 13833:
1.10 ohara 13834: # Specify filename containing input files for \$NM.
13835: nm_file_list_spec=$lt_nm_file_list_spec
1.4 takayama 13836:
1.10 ohara 13837: # The root where to search for dependent libraries,and in which our libraries should be installed.
13838: lt_sysroot=$lt_sysroot
1.4 takayama 13839:
1.10 ohara 13840: # The name of the directory that contains temporary libtool files.
13841: objdir=$objdir
1.4 takayama 13842:
1.10 ohara 13843: # Used to examine libraries when file_magic_cmd begins with "file".
13844: MAGIC_CMD=$MAGIC_CMD
1.4 takayama 13845:
1.10 ohara 13846: # Must we lock files when doing compilation?
13847: need_locks=$lt_need_locks
1.1 ohara 13848:
1.10 ohara 13849: # Manifest tool.
13850: MANIFEST_TOOL=$lt_MANIFEST_TOOL
1.4 takayama 13851:
1.10 ohara 13852: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13853: DSYMUTIL=$lt_DSYMUTIL
1.4 takayama 13854:
1.10 ohara 13855: # Tool to change global to local symbols on Mac OS X.
13856: NMEDIT=$lt_NMEDIT
1.4 takayama 13857:
1.10 ohara 13858: # Tool to manipulate fat objects and archives on Mac OS X.
13859: LIPO=$lt_LIPO
1.4 takayama 13860:
1.10 ohara 13861: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13862: OTOOL=$lt_OTOOL
1.9 ohara 13863:
1.10 ohara 13864: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13865: OTOOL64=$lt_OTOOL64
1.4 takayama 13866:
1.10 ohara 13867: # Old archive suffix (normally "a").
13868: libext=$libext
1.4 takayama 13869:
1.10 ohara 13870: # Shared library suffix (normally ".so").
13871: shrext_cmds=$lt_shrext_cmds
1.9 ohara 13872:
1.10 ohara 13873: # The commands to extract the exported symbol list from a shared archive.
13874: extract_expsyms_cmds=$lt_extract_expsyms_cmds
1.4 takayama 13875:
1.10 ohara 13876: # Variables whose values should be saved in libtool wrapper scripts and
13877: # restored at link time.
13878: variables_saved_for_relink=$lt_variables_saved_for_relink
1.4 takayama 13879:
1.10 ohara 13880: # Do we need the "lib" prefix for modules?
13881: need_lib_prefix=$need_lib_prefix
1.4 takayama 13882:
1.10 ohara 13883: # Do we need a version for libraries?
13884: need_version=$need_version
1.4 takayama 13885:
1.10 ohara 13886: # Library versioning type.
13887: version_type=$version_type
1.4 takayama 13888:
1.10 ohara 13889: # Shared library runtime path variable.
13890: runpath_var=$runpath_var
1.4 takayama 13891:
1.10 ohara 13892: # Shared library path variable.
13893: shlibpath_var=$shlibpath_var
1.4 takayama 13894:
1.10 ohara 13895: # Is shlibpath searched before the hard-coded library search path?
13896: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
1.4 takayama 13897:
1.10 ohara 13898: # Format of library name prefix.
13899: libname_spec=$lt_libname_spec
1.9 ohara 13900:
1.10 ohara 13901: # List of archive names. First name is the real one, the rest are links.
13902: # The last name is the one that the linker finds with -lNAME
13903: library_names_spec=$lt_library_names_spec
1.4 takayama 13904:
1.10 ohara 13905: # The coded name of the library, if different from the real name.
13906: soname_spec=$lt_soname_spec
1.4 takayama 13907:
1.10 ohara 13908: # Permission mode override for installation of shared libraries.
13909: install_override_mode=$lt_install_override_mode
1.4 takayama 13910:
1.10 ohara 13911: # Command to use after installation of a shared archive.
13912: postinstall_cmds=$lt_postinstall_cmds
1.4 takayama 13913:
1.10 ohara 13914: # Command to use after uninstallation of a shared archive.
13915: postuninstall_cmds=$lt_postuninstall_cmds
1.4 takayama 13916:
1.10 ohara 13917: # Commands used to finish a libtool library installation in a directory.
13918: finish_cmds=$lt_finish_cmds
1.4 takayama 13919:
1.10 ohara 13920: # As "finish_cmds", except a single script fragment to be evaled but
13921: # not shown.
13922: finish_eval=$lt_finish_eval
1.4 takayama 13923:
1.10 ohara 13924: # Whether we should hardcode library paths into libraries.
13925: hardcode_into_libs=$hardcode_into_libs
1.7 ohara 13926:
1.10 ohara 13927: # Compile-time system search path for libraries.
13928: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
1.9 ohara 13929:
1.10 ohara 13930: # Run-time system search path for libraries.
13931: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
1.4 takayama 13932:
1.10 ohara 13933: # Whether dlopen is supported.
13934: dlopen_support=$enable_dlopen
1.9 ohara 13935:
1.10 ohara 13936: # Whether dlopen of programs is supported.
13937: dlopen_self=$enable_dlopen_self
1.4 takayama 13938:
1.10 ohara 13939: # Whether dlopen of statically linked programs is supported.
13940: dlopen_self_static=$enable_dlopen_self_static
1.4 takayama 13941:
1.10 ohara 13942: # Commands to strip libraries.
13943: old_striplib=$lt_old_striplib
13944: striplib=$lt_striplib
1.4 takayama 13945:
13946:
1.10 ohara 13947: # The linker used to build libraries.
13948: LD=$lt_LD
1.4 takayama 13949:
1.10 ohara 13950: # How to create reloadable object files.
13951: reload_flag=$lt_reload_flag
13952: reload_cmds=$lt_reload_cmds
1.4 takayama 13953:
1.10 ohara 13954: # Commands used to build an old-style archive.
13955: old_archive_cmds=$lt_old_archive_cmds
1.9 ohara 13956:
1.10 ohara 13957: # A language specific compiler.
13958: CC=$lt_compiler
1.9 ohara 13959:
1.10 ohara 13960: # Is the compiler the GNU compiler?
13961: with_gcc=$GCC
1.9 ohara 13962:
1.10 ohara 13963: # Compiler flag to turn off builtin functions.
13964: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
1.4 takayama 13965:
1.10 ohara 13966: # Additional compiler flags for building library objects.
13967: pic_flag=$lt_lt_prog_compiler_pic
1.4 takayama 13968:
1.10 ohara 13969: # How to pass a linker flag through the compiler.
13970: wl=$lt_lt_prog_compiler_wl
1.4 takayama 13971:
1.10 ohara 13972: # Compiler flag to prevent dynamic linking.
13973: link_static_flag=$lt_lt_prog_compiler_static
1.4 takayama 13974:
1.10 ohara 13975: # Does compiler simultaneously support -c and -o options?
13976: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
1.9 ohara 13977:
1.10 ohara 13978: # Whether or not to add -lc for building shared libraries.
13979: build_libtool_need_lc=$archive_cmds_need_lc
1.1 ohara 13980:
1.10 ohara 13981: # Whether or not to disallow shared libs when runtime libs are static.
13982: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
1.9 ohara 13983:
1.10 ohara 13984: # Compiler flag to allow reflexive dlopens.
13985: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
1.4 takayama 13986:
1.10 ohara 13987: # Compiler flag to generate shared objects directly from archives.
13988: whole_archive_flag_spec=$lt_whole_archive_flag_spec
1.4 takayama 13989:
1.10 ohara 13990: # Whether the compiler copes with passing no objects directly.
13991: compiler_needs_object=$lt_compiler_needs_object
1.4 takayama 13992:
1.10 ohara 13993: # Create an old-style archive from a shared archive.
13994: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
1.9 ohara 13995:
1.10 ohara 13996: # Create a temporary old-style archive to link instead of a shared archive.
13997: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
1.9 ohara 13998:
1.10 ohara 13999: # Commands used to build a shared archive.
14000: archive_cmds=$lt_archive_cmds
14001: archive_expsym_cmds=$lt_archive_expsym_cmds
1.1 ohara 14002:
1.10 ohara 14003: # Commands used to build a loadable module if different from building
14004: # a shared archive.
14005: module_cmds=$lt_module_cmds
14006: module_expsym_cmds=$lt_module_expsym_cmds
1.9 ohara 14007:
1.10 ohara 14008: # Whether we are building with GNU ld or not.
14009: with_gnu_ld=$lt_with_gnu_ld
1.9 ohara 14010:
1.10 ohara 14011: # Flag that allows shared libraries with undefined symbols to be built.
14012: allow_undefined_flag=$lt_allow_undefined_flag
1.9 ohara 14013:
1.10 ohara 14014: # Flag that enforces no undefined symbols.
14015: no_undefined_flag=$lt_no_undefined_flag
1.9 ohara 14016:
1.10 ohara 14017: # Flag to hardcode \$libdir into a binary during linking.
14018: # This must work even if \$libdir does not exist
14019: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
1.9 ohara 14020:
1.10 ohara 14021: # Whether we need a single "-rpath" flag with a separated argument.
14022: hardcode_libdir_separator=$lt_hardcode_libdir_separator
1.4 takayama 14023:
1.10 ohara 14024: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14025: # DIR into the resulting binary.
14026: hardcode_direct=$hardcode_direct
1.1 ohara 14027:
1.10 ohara 14028: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14029: # DIR into the resulting binary and the resulting library dependency is
14030: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14031: # library is relocated.
14032: hardcode_direct_absolute=$hardcode_direct_absolute
1.9 ohara 14033:
1.10 ohara 14034: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14035: # into the resulting binary.
14036: hardcode_minus_L=$hardcode_minus_L
1.9 ohara 14037:
1.10 ohara 14038: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14039: # into the resulting binary.
14040: hardcode_shlibpath_var=$hardcode_shlibpath_var
1.9 ohara 14041:
1.10 ohara 14042: # Set to "yes" if building a shared library automatically hardcodes DIR
14043: # into the library and all subsequent libraries and executables linked
14044: # against it.
14045: hardcode_automatic=$hardcode_automatic
1.9 ohara 14046:
1.10 ohara 14047: # Set to yes if linker adds runtime paths of dependent libraries
14048: # to runtime path list.
14049: inherit_rpath=$inherit_rpath
1.9 ohara 14050:
1.10 ohara 14051: # Whether libtool must link a program against all its dependency libraries.
14052: link_all_deplibs=$link_all_deplibs
1.9 ohara 14053:
1.10 ohara 14054: # Set to "yes" if exported symbols are required.
14055: always_export_symbols=$always_export_symbols
1.9 ohara 14056:
1.10 ohara 14057: # The commands to list exported symbols.
14058: export_symbols_cmds=$lt_export_symbols_cmds
1.9 ohara 14059:
1.10 ohara 14060: # Symbols that should not be listed in the preloaded symbols.
14061: exclude_expsyms=$lt_exclude_expsyms
1.9 ohara 14062:
1.10 ohara 14063: # Symbols that must always be exported.
14064: include_expsyms=$lt_include_expsyms
1.9 ohara 14065:
1.10 ohara 14066: # Commands necessary for linking programs (against libraries) with templates.
14067: prelink_cmds=$lt_prelink_cmds
1.1 ohara 14068:
1.10 ohara 14069: # Commands necessary for finishing linking programs.
14070: postlink_cmds=$lt_postlink_cmds
1.1 ohara 14071:
1.10 ohara 14072: # Specify filename containing input files.
14073: file_list_spec=$lt_file_list_spec
1.1 ohara 14074:
1.10 ohara 14075: # How to hardcode a shared library path into an executable.
14076: hardcode_action=$hardcode_action
1.4 takayama 14077:
1.10 ohara 14078: # ### END LIBTOOL CONFIG
1.1 ohara 14079:
1.10 ohara 14080: _LT_EOF
1.9 ohara 14081:
1.10 ohara 14082: case $host_os in
14083: aix3*)
14084: cat <<\_LT_EOF >> "$cfgfile"
14085: # AIX sometimes has problems with the GCC collect2 program. For some
14086: # reason, if we set the COLLECT_NAMES environment variable, the problems
14087: # vanish in a puff of smoke.
14088: if test "X${COLLECT_NAMES+set}" != Xset; then
14089: COLLECT_NAMES=
14090: export COLLECT_NAMES
14091: fi
14092: _LT_EOF
14093: ;;
1.9 ohara 14094: esac
1.1 ohara 14095:
1.9 ohara 14096:
1.10 ohara 14097: ltmain="$ac_aux_dir/ltmain.sh"
1.9 ohara 14098:
14099:
1.10 ohara 14100: # We use sed instead of cat because bash on DJGPP gets confused if
14101: # if finds mixed CR/LF and LF-only lines. Since sed operates in
14102: # text mode, it properly converts lines to CR/LF. This bash problem
14103: # is reportedly fixed, but why not run on old versions too?
14104: sed '$q' "$ltmain" >> "$cfgfile" \
14105: || (rm -f "$cfgfile"; exit 1)
1.9 ohara 14106:
1.10 ohara 14107: if test x"$xsi_shell" = xyes; then
14108: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14109: func_dirname ()\
14110: {\
14111: \ case ${1} in\
14112: \ */*) func_dirname_result="${1%/*}${2}" ;;\
14113: \ * ) func_dirname_result="${3}" ;;\
14114: \ esac\
14115: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14116: && mv -f "$cfgfile.tmp" "$cfgfile" \
14117: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14118: test 0 -eq $? || _lt_function_replace_fail=:
14119:
14120:
14121: sed -e '/^func_basename ()$/,/^} # func_basename /c\
14122: func_basename ()\
14123: {\
14124: \ func_basename_result="${1##*/}"\
14125: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14126: && mv -f "$cfgfile.tmp" "$cfgfile" \
14127: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14128: test 0 -eq $? || _lt_function_replace_fail=:
14129:
14130:
14131: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14132: func_dirname_and_basename ()\
14133: {\
14134: \ case ${1} in\
14135: \ */*) func_dirname_result="${1%/*}${2}" ;;\
14136: \ * ) func_dirname_result="${3}" ;;\
14137: \ esac\
14138: \ func_basename_result="${1##*/}"\
14139: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14140: && mv -f "$cfgfile.tmp" "$cfgfile" \
14141: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14142: test 0 -eq $? || _lt_function_replace_fail=:
14143:
14144:
14145: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14146: func_stripname ()\
14147: {\
14148: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14149: \ # positional parameters, so assign one to ordinary parameter first.\
14150: \ func_stripname_result=${3}\
14151: \ func_stripname_result=${func_stripname_result#"${1}"}\
14152: \ func_stripname_result=${func_stripname_result%"${2}"}\
14153: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14154: && mv -f "$cfgfile.tmp" "$cfgfile" \
14155: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14156: test 0 -eq $? || _lt_function_replace_fail=:
14157:
14158:
14159: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14160: func_split_long_opt ()\
14161: {\
14162: \ func_split_long_opt_name=${1%%=*}\
14163: \ func_split_long_opt_arg=${1#*=}\
14164: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14165: && mv -f "$cfgfile.tmp" "$cfgfile" \
14166: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14167: test 0 -eq $? || _lt_function_replace_fail=:
14168:
14169:
14170: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14171: func_split_short_opt ()\
14172: {\
14173: \ func_split_short_opt_arg=${1#??}\
14174: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14175: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14176: && mv -f "$cfgfile.tmp" "$cfgfile" \
14177: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14178: test 0 -eq $? || _lt_function_replace_fail=:
14179:
14180:
14181: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14182: func_lo2o ()\
14183: {\
14184: \ case ${1} in\
14185: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14186: \ *) func_lo2o_result=${1} ;;\
14187: \ esac\
14188: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14189: && mv -f "$cfgfile.tmp" "$cfgfile" \
14190: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14191: test 0 -eq $? || _lt_function_replace_fail=:
14192:
14193:
14194: sed -e '/^func_xform ()$/,/^} # func_xform /c\
14195: func_xform ()\
14196: {\
14197: func_xform_result=${1%.*}.lo\
14198: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14199: && mv -f "$cfgfile.tmp" "$cfgfile" \
14200: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14201: test 0 -eq $? || _lt_function_replace_fail=:
14202:
14203:
14204: sed -e '/^func_arith ()$/,/^} # func_arith /c\
14205: func_arith ()\
14206: {\
14207: func_arith_result=$(( $* ))\
14208: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14209: && mv -f "$cfgfile.tmp" "$cfgfile" \
14210: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14211: test 0 -eq $? || _lt_function_replace_fail=:
14212:
14213:
14214: sed -e '/^func_len ()$/,/^} # func_len /c\
14215: func_len ()\
14216: {\
14217: func_len_result=${#1}\
14218: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14219: && mv -f "$cfgfile.tmp" "$cfgfile" \
14220: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14221: test 0 -eq $? || _lt_function_replace_fail=:
14222:
14223: fi
14224:
14225: if test x"$lt_shell_append" = xyes; then
14226: sed -e '/^func_append ()$/,/^} # func_append /c\
14227: func_append ()\
14228: {\
14229: eval "${1}+=\\${2}"\
14230: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14231: && mv -f "$cfgfile.tmp" "$cfgfile" \
14232: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14233: test 0 -eq $? || _lt_function_replace_fail=:
14234:
14235:
14236: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14237: func_append_quoted ()\
14238: {\
14239: \ func_quote_for_eval "${2}"\
14240: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14241: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14242: && mv -f "$cfgfile.tmp" "$cfgfile" \
14243: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14244: test 0 -eq $? || _lt_function_replace_fail=:
14245:
14246:
14247: # Save a `func_append' function call where possible by direct use of '+='
14248: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14249: && mv -f "$cfgfile.tmp" "$cfgfile" \
14250: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14251: test 0 -eq $? || _lt_function_replace_fail=:
14252: else
14253: # Save a `func_append' function call even when '+=' is not available
14254: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14255: && mv -f "$cfgfile.tmp" "$cfgfile" \
14256: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14257: test 0 -eq $? || _lt_function_replace_fail=:
14258: fi
14259:
14260: if test x"$_lt_function_replace_fail" = x":"; then
14261: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14262: $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14263: fi
1.1 ohara 14264:
1.7 ohara 14265:
1.10 ohara 14266: mv -f "$cfgfile" "$ofile" ||
14267: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14268: chmod +x "$ofile"
1.7 ohara 14269:
14270: ;;
1.9 ohara 14271:
1.7 ohara 14272: esac
1.9 ohara 14273: done # for ac_tag
1.1 ohara 14274:
14275:
1.10 ohara 14276: as_fn_exit 0
1.4 takayama 14277: _ACEOF
14278: ac_clean_files=$ac_clean_files_save
14279:
1.10 ohara 14280: test $ac_write_fail = 0 ||
14281: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14282:
1.4 takayama 14283:
14284: # configure is writing to config.log, and then calls config.status.
14285: # config.status does its own redirection, appending to config.log.
14286: # Unfortunately, on DOS this fails, as config.log is still kept open
14287: # by configure, so config.status won't be able to write to it; its
14288: # output is simply discarded. So we exec the FD to /dev/null,
14289: # effectively closing config.log, so it can be properly (re)opened and
14290: # appended to by config.status. When coming back to configure, we
14291: # need to make the FD available again.
14292: if test "$no_create" != yes; then
14293: ac_cs_success=:
1.9 ohara 14294: ac_config_status_args=
14295: test "$silent" = yes &&
14296: ac_config_status_args="$ac_config_status_args --quiet"
1.4 takayama 14297: exec 5>/dev/null
1.9 ohara 14298: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
1.4 takayama 14299: exec 5>>config.log
14300: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14301: # would make configure fail if this is the last instruction.
1.10 ohara 14302: $ac_cs_success || as_fn_exit 1
14303: fi
14304: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14305: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14306: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1.4 takayama 14307: fi
1.2 ohara 14308:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>