lac : 55603f48e9664a607288afe03e23714a15d1dae9
1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
3: # Generated by GNU Autoconf 2.69 for lac 0.1.0.
4: #
5: # Report bugs to <lac@tlbflush.org>.
6: #
7: #
8: # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9: #
10: #
11: # This configure script is free software; the Free Software Foundation
12: # gives unlimited permission to copy, distribute and modify it.
13: ## -------------------- ##
14: ## M4sh Initialization. ##
15: ## -------------------- ##
16:
17: # Be more Bourne compatible
18: DUALCASE=1; export DUALCASE # for MKS sh
19: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20: emulate sh
21: NULLCMD=:
22: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23: # is contrary to our usage. Disable this feature.
24: alias -g '${1+"$@"}'='"$@"'
25: setopt NO_GLOB_SUBST
26: else
27: case `(set -o) 2>/dev/null` in #(
28: *posix*) :
29: set -o posix ;; #(
30: *) :
31: ;;
32: esac
33: fi
34:
35:
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
73:
74: # The user is always right.
75: if test "${PATH_SEPARATOR+set}" != set; then
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: }
81: fi
82:
83:
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.
92: as_myself=
93: case $0 in #((
94: *[\\/]* ) as_myself=$0 ;;
95: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96: for as_dir in $PATH
97: do
98: IFS=$as_save_IFS
99: test -z "$as_dir" && as_dir=.
100: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101: done
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
112: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113: exit 1
114: fi
115:
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 || :
123: done
124: PS1='$ '
125: PS2='> '
126: PS4='+ '
127:
128: # NLS nuisances.
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: # Use a proper internal environment variable to ensure we don't fall
138: # into an infinite loop, continuously re-executing ourselves.
139: if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140: _as_can_reexec=no; export _as_can_reexec;
141: # We cannot yet assume a decent shell, so we have to provide a
142: # neutralization value for shells without unset; and this also
143: # works around shells that cannot unset nonexistent variables.
144: # Preserve -v and -x to the replacement shell.
145: BASH_ENV=/dev/null
146: ENV=/dev/null
147: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148: case $- in # ((((
149: *v*x* | *x*v* ) as_opts=-vx ;;
150: *v* ) as_opts=-v ;;
151: *x* ) as_opts=-x ;;
152: * ) as_opts= ;;
153: esac
154: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155: # Admittedly, this is quite paranoid, since all the known shells bail
156: # out after a failed `exec'.
157: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158: as_fn_exit 255
159: fi
160: # We don't want this to propagate to other subprocesses.
161: { _as_can_reexec=; unset _as_can_reexec;}
162: if test "x$CONFIG_SHELL" = x; then
163: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164: emulate sh
165: NULLCMD=:
166: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167: # is contrary to our usage. Disable this feature.
168: alias -g '\${1+\"\$@\"}'='\"\$@\"'
169: setopt NO_GLOB_SUBST
170: else
171: case \`(set -o) 2>/dev/null\` in #(
172: *posix*) :
173: set -o posix ;; #(
174: *) :
175: ;;
176: esac
177: fi
178: "
179: as_required="as_fn_return () { (exit \$1); }
180: as_fn_success () { as_fn_return 0; }
181: as_fn_failure () { as_fn_return 1; }
182: as_fn_ret_success () { return 0; }
183: as_fn_ret_failure () { return 1; }
184:
185: exitcode=0
186: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191:
192: else
193: exitcode=1; echo positional parameters were not saved.
194: fi
195: test x\$exitcode = x0 || exit 1
196: test -x / || exit 1"
197: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201: test \$(( 1 + 1 )) = 2 || exit 1
202:
203: test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207: PATH=/empty FPATH=/empty; export PATH FPATH
208: test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209: || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210: if (eval "$as_required") 2>/dev/null; then :
211: as_have_required=yes
212: else
213: as_have_required=no
214: fi
215: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216:
217: else
218: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219: as_found=false
220: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221: do
222: IFS=$as_save_IFS
223: test -z "$as_dir" && as_dir=.
224: as_found=:
225: case $as_dir in #(
226: /*)
227: for as_base in sh bash ksh sh5; do
228: # Try only shells that exist, to save several forks.
229: as_shell=$as_dir/$as_base
230: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232: CONFIG_SHELL=$as_shell as_have_required=yes
233: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234: break 2
235: fi
236: fi
237: done;;
238: esac
239: as_found=false
240: done
241: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243: CONFIG_SHELL=$SHELL as_have_required=yes
244: fi; }
245: IFS=$as_save_IFS
246:
247:
248: if test "x$CONFIG_SHELL" != x; then :
249: export CONFIG_SHELL
250: # We cannot yet assume a decent shell, so we have to provide a
251: # neutralization value for shells without unset; and this also
252: # works around shells that cannot unset nonexistent variables.
253: # Preserve -v and -x to the replacement shell.
254: BASH_ENV=/dev/null
255: ENV=/dev/null
256: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257: case $- in # ((((
258: *v*x* | *x*v* ) as_opts=-vx ;;
259: *v* ) as_opts=-v ;;
260: *x* ) as_opts=-x ;;
261: * ) as_opts= ;;
262: esac
263: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264: # Admittedly, this is quite paranoid, since all the known shells bail
265: # out after a failed `exec'.
266: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267: exit 255
268: fi
269:
270: if test x$as_have_required = xno; then :
271: $as_echo "$0: This script requires a shell more modern than all"
272: $as_echo "$0: the shells that I found on your system."
273: if test x${ZSH_VERSION+set} = xset ; then
274: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276: else
277: $as_echo "$0: Please tell bug-autoconf@gnu.org and lac@tlbflush.org
278: $0: about your system, including any error possibly output
279: $0: before this message. Then install a modern shell, or
280: $0: manually run the script under such a shell if you do
281: $0: have one."
282: fi
283: exit 1
284: fi
285: fi
286: fi
287: SHELL=${CONFIG_SHELL-/bin/sh}
288: export SHELL
289: # Unset more variables known to interfere with behavior of common tools.
290: CLICOLOR_FORCE= GREP_OPTIONS=
291: unset CLICOLOR_FORCE GREP_OPTIONS
292:
293: ## --------------------- ##
294: ## M4sh Shell Functions. ##
295: ## --------------------- ##
296: # as_fn_unset VAR
297: # ---------------
298: # Portably unset VAR.
299: as_fn_unset ()
300: {
301: { eval $1=; unset $1;}
302: }
303: as_unset=as_fn_unset
304:
305: # as_fn_set_status STATUS
306: # -----------------------
307: # Set $? to STATUS, without forking.
308: as_fn_set_status ()
309: {
310: return $1
311: } # as_fn_set_status
312:
313: # as_fn_exit STATUS
314: # -----------------
315: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316: as_fn_exit ()
317: {
318: set +e
319: as_fn_set_status $1
320: exit $1
321: } # as_fn_exit
322:
323: # as_fn_mkdir_p
324: # -------------
325: # Create "$as_dir" as a directory, including parents if necessary.
326: as_fn_mkdir_p ()
327: {
328:
329: case $as_dir in #(
330: -*) as_dir=./$as_dir;;
331: esac
332: test -d "$as_dir" || eval $as_mkdir_p || {
333: as_dirs=
334: while :; do
335: case $as_dir in #(
336: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337: *) as_qdir=$as_dir;;
338: esac
339: as_dirs="'$as_qdir' $as_dirs"
340: as_dir=`$as_dirname -- "$as_dir" ||
341: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342: X"$as_dir" : 'X\(//\)[^/]' \| \
343: X"$as_dir" : 'X\(//\)$' \| \
344: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345: $as_echo X"$as_dir" |
346: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347: s//\1/
348: q
349: }
350: /^X\(\/\/\)[^/].*/{
351: s//\1/
352: q
353: }
354: /^X\(\/\/\)$/{
355: s//\1/
356: q
357: }
358: /^X\(\/\).*/{
359: s//\1/
360: q
361: }
362: s/.*/./; q'`
363: test -d "$as_dir" && break
364: done
365: test -z "$as_dirs" || eval "mkdir $as_dirs"
366: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367:
368:
369: } # as_fn_mkdir_p
370:
371: # as_fn_executable_p FILE
372: # -----------------------
373: # Test if FILE is an executable regular file.
374: as_fn_executable_p ()
375: {
376: test -f "$1" && test -x "$1"
377: } # as_fn_executable_p
378: # as_fn_append VAR VALUE
379: # ----------------------
380: # Append the text in VALUE to the end of the definition contained in VAR. Take
381: # advantage of any shell optimizations that allow amortized linear growth over
382: # repeated appends, instead of the typical quadratic growth present in naive
383: # implementations.
384: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385: eval 'as_fn_append ()
386: {
387: eval $1+=\$2
388: }'
389: else
390: as_fn_append ()
391: {
392: eval $1=\$$1\$2
393: }
394: fi # as_fn_append
395:
396: # as_fn_arith ARG...
397: # ------------------
398: # Perform arithmetic evaluation on the ARGs, and store the result in the
399: # global $as_val. Take advantage of shells that can avoid forks. The arguments
400: # must be portable across $(()) and expr.
401: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402: eval 'as_fn_arith ()
403: {
404: as_val=$(( $* ))
405: }'
406: else
407: as_fn_arith ()
408: {
409: as_val=`expr "$@" || test $? -eq 1`
410: }
411: fi # as_fn_arith
412:
413:
414: # as_fn_error STATUS ERROR [LINENO LOG_FD]
415: # ----------------------------------------
416: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418: # script with STATUS, using 1 if that was 0.
419: as_fn_error ()
420: {
421: as_status=$1; test $as_status -eq 0 && as_status=1
422: if test "$4"; then
423: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425: fi
426: $as_echo "$as_me: error: $2" >&2
427: as_fn_exit $as_status
428: } # as_fn_error
429:
430: if expr a : '\(a\)' >/dev/null 2>&1 &&
431: test "X`expr 00001 : '.*\(...\)'`" = X001; then
432: as_expr=expr
433: else
434: as_expr=false
435: fi
436:
437: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438: as_basename=basename
439: else
440: as_basename=false
441: fi
442:
443: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444: as_dirname=dirname
445: else
446: as_dirname=false
447: fi
448:
449: as_me=`$as_basename -- "$0" ||
450: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451: X"$0" : 'X\(//\)$' \| \
452: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453: $as_echo X/"$0" |
454: sed '/^.*\/\([^/][^/]*\)\/*$/{
455: s//\1/
456: q
457: }
458: /^X\/\(\/\/\)$/{
459: s//\1/
460: q
461: }
462: /^X\/\(\/\).*/{
463: s//\1/
464: q
465: }
466: s/.*/./; q'`
467:
468: # Avoid depending upon Character Ranges.
469: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472: as_cr_digits='0123456789'
473: as_cr_alnum=$as_cr_Letters$as_cr_digits
474:
475:
476: as_lineno_1=$LINENO as_lineno_1a=$LINENO
477: as_lineno_2=$LINENO as_lineno_2a=$LINENO
478: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481: sed -n '
482: p
483: /[$]LINENO/=
484: ' <$as_myself |
485: sed '
486: s/[$]LINENO.*/&-/
487: t lineno
488: b
489: :lineno
490: N
491: :loop
492: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493: t loop
494: s/-\n.*//
495: ' >$as_me.lineno &&
496: chmod +x "$as_me.lineno" ||
497: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498:
499: # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500: # already done that, so ensure we don't try to do so again and fall
501: # in an infinite loop. This has already happened in practice.
502: _as_can_reexec=no; export _as_can_reexec
503: # Don't try to exec as it changes $[0], causing all sort of problems
504: # (the dirname of $[0] is not the place where we might find the
505: # original and so on. Autoconf is especially sensitive to this).
506: . "./$as_me.lineno"
507: # Exit status is that of the last command.
508: exit
509: }
510:
511: ECHO_C= ECHO_N= ECHO_T=
512: case `echo -n x` in #(((((
513: -n*)
514: case `echo 'xy\c'` in
515: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516: xy) ECHO_C='\c';;
517: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518: ECHO_T=' ';;
519: esac;;
520: *)
521: ECHO_N='-n';;
522: esac
523:
524: rm -f conf$$ conf$$.exe conf$$.file
525: if test -d conf$$.dir; then
526: rm -f conf$$.dir/conf$$.file
527: else
528: rm -f conf$$.dir
529: mkdir conf$$.dir 2>/dev/null
530: fi
531: if (echo >conf$$.file) 2>/dev/null; then
532: if ln -s conf$$.file conf$$ 2>/dev/null; then
533: as_ln_s='ln -s'
534: # ... but there are two gotchas:
535: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537: # In both cases, we have to default to `cp -pR'.
538: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539: as_ln_s='cp -pR'
540: elif ln conf$$.file conf$$ 2>/dev/null; then
541: as_ln_s=ln
542: else
543: as_ln_s='cp -pR'
544: fi
545: else
546: as_ln_s='cp -pR'
547: fi
548: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549: rmdir conf$$.dir 2>/dev/null
550:
551: if mkdir -p . 2>/dev/null; then
552: as_mkdir_p='mkdir -p "$as_dir"'
553: else
554: test -d ./-p && rmdir ./-p
555: as_mkdir_p=false
556: fi
557:
558: as_test_x='test -x'
559: as_executable_p=as_fn_executable_p
560:
561: # Sed expression to map a string onto a valid CPP name.
562: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563:
564: # Sed expression to map a string onto a valid variable name.
565: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566:
567: SHELL=${CONFIG_SHELL-/bin/sh}
568:
569:
570: test -n "$DJDIR" || exec 7<&0 </dev/null
571: exec 6>&1
572:
573: # Name of the host.
574: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575: # so uname gets run too.
576: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577:
578: #
579: # Initializations.
580: #
581: ac_default_prefix=/usr/local
582: ac_clean_files=
583: ac_config_libobj_dir=.
584: LIBOBJS=
585: cross_compiling=no
586: subdirs=
587: MFLAGS=
588: MAKEFLAGS=
589:
590: # Identity of this package.
591: PACKAGE_NAME='lac'
592: PACKAGE_TARNAME='lac'
593: PACKAGE_VERSION='0.1.0'
594: PACKAGE_STRING='lac 0.1.0'
595: PACKAGE_BUGREPORT='lac@tlbflush.org'
596: PACKAGE_URL=''
597:
598: ac_unique_file="src/repl/lac.c"
599: # Factoring default headers for most tests.
600: ac_includes_default="\
601: #include <stdio.h>
602: #ifdef HAVE_SYS_TYPES_H
603: # include <sys/types.h>
604: #endif
605: #ifdef HAVE_SYS_STAT_H
606: # include <sys/stat.h>
607: #endif
608: #ifdef STDC_HEADERS
609: # include <stdlib.h>
610: # include <stddef.h>
611: #else
612: # ifdef HAVE_STDLIB_H
613: # include <stdlib.h>
614: # endif
615: #endif
616: #ifdef HAVE_STRING_H
617: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618: # include <memory.h>
619: # endif
620: # include <string.h>
621: #endif
622: #ifdef HAVE_STRINGS_H
623: # include <strings.h>
624: #endif
625: #ifdef HAVE_INTTYPES_H
626: # include <inttypes.h>
627: #endif
628: #ifdef HAVE_STDINT_H
629: # include <stdint.h>
630: #endif
631: #ifdef HAVE_UNISTD_H
632: # include <unistd.h>
633: #endif"
634:
635: ac_subst_vars='am__EXEEXT_FALSE
636: am__EXEEXT_TRUE
637: LTLIBOBJS
638: LT_SYS_LIBRARY_PATH
639: OTOOL64
640: OTOOL
641: LIPO
642: NMEDIT
643: DSYMUTIL
644: MANIFEST_TOOL
645: RANLIB
646: ac_ct_AR
647: AR
648: DLLTOOL
649: OBJDUMP
650: LN_S
651: NM
652: ac_ct_DUMPBIN
653: DUMPBIN
654: LD
655: FGREP
656: LIBTOOL
657: LIBOBJS
658: ALLOCA
659: LTLIBREADLINE
660: LIBREADLINE
661: LIBSIGSEGV_PREFIX
662: LTLIBSIGSEGV
663: LIBSIGSEGV
664: HAVE_LIBSIGSEGV
665: EGREP
666: CPP
667: host_os
668: host_vendor
669: host_cpu
670: host
671: build_os
672: build_vendor
673: build_cpu
674: build
675: BDW_GC_LIBS
676: BDW_GC_CFLAGS
677: PKG_CONFIG_LIBDIR
678: PKG_CONFIG_PATH
679: PKG_CONFIG
680: LEXLIB
681: LEX_OUTPUT_ROOT
682: LEX
683: YFLAGS
684: YACC
685: BISON_VERSION
686: GREP
687: SED
688: BISON
689: am__fastdepCC_FALSE
690: am__fastdepCC_TRUE
691: CCDEPMODE
692: am__nodep
693: AMDEPBACKSLASH
694: AMDEP_FALSE
695: AMDEP_TRUE
696: am__quote
697: am__include
698: DEPDIR
699: OBJEXT
700: EXEEXT
701: ac_ct_CC
702: CPPFLAGS
703: LDFLAGS
704: CFLAGS
705: CC
706: AM_BACKSLASH
707: AM_DEFAULT_VERBOSITY
708: AM_DEFAULT_V
709: AM_V
710: am__untar
711: am__tar
712: AMTAR
713: am__leading_dot
714: SET_MAKE
715: AWK
716: mkdir_p
717: MKDIR_P
718: INSTALL_STRIP_PROGRAM
719: STRIP
720: install_sh
721: MAKEINFO
722: AUTOHEADER
723: AUTOMAKE
724: AUTOCONF
725: ACLOCAL
726: VERSION
727: PACKAGE
728: CYGPATH_W
729: am__isrc
730: INSTALL_DATA
731: INSTALL_SCRIPT
732: INSTALL_PROGRAM
733: target_alias
734: host_alias
735: build_alias
736: LIBS
737: ECHO_T
738: ECHO_N
739: ECHO_C
740: DEFS
741: mandir
742: localedir
743: libdir
744: psdir
745: pdfdir
746: dvidir
747: htmldir
748: infodir
749: docdir
750: oldincludedir
751: includedir
752: localstatedir
753: sharedstatedir
754: sysconfdir
755: datadir
756: datarootdir
757: libexecdir
758: sbindir
759: bindir
760: program_transform_name
761: prefix
762: exec_prefix
763: PACKAGE_URL
764: PACKAGE_BUGREPORT
765: PACKAGE_STRING
766: PACKAGE_VERSION
767: PACKAGE_TARNAME
768: PACKAGE_NAME
769: PATH_SEPARATOR
770: SHELL'
771: ac_subst_files=''
772: ac_user_opts='
773: enable_option_checking
774: enable_silent_rules
775: enable_dependency_tracking
776: with_gnu_ld
777: enable_rpath
778: with_libsigsegv_prefix
779: with_libreadline_prefix
780: enable_shared
781: enable_static
782: with_pic
783: enable_fast_install
784: with_aix_soname
785: with_sysroot
786: enable_libtool_lock
787: '
788: ac_precious_vars='build_alias
789: host_alias
790: target_alias
791: CC
792: CFLAGS
793: LDFLAGS
794: LIBS
795: CPPFLAGS
796: YACC
797: YFLAGS
798: PKG_CONFIG
799: PKG_CONFIG_PATH
800: PKG_CONFIG_LIBDIR
801: BDW_GC_CFLAGS
802: BDW_GC_LIBS
803: CPP
804: LT_SYS_LIBRARY_PATH'
805:
806:
807: # Initialize some variables set by options.
808: ac_init_help=
809: ac_init_version=false
810: ac_unrecognized_opts=
811: ac_unrecognized_sep=
812: # The variables have the same names as the options, with
813: # dashes changed to underlines.
814: cache_file=/dev/null
815: exec_prefix=NONE
816: no_create=
817: no_recursion=
818: prefix=NONE
819: program_prefix=NONE
820: program_suffix=NONE
821: program_transform_name=s,x,x,
822: silent=
823: site=
824: srcdir=
825: verbose=
826: x_includes=NONE
827: x_libraries=NONE
828:
829: # Installation directory options.
830: # These are left unexpanded so users can "make install exec_prefix=/foo"
831: # and all the variables that are supposed to be based on exec_prefix
832: # by default will actually change.
833: # Use braces instead of parens because sh, perl, etc. also accept them.
834: # (The list follows the same order as the GNU Coding Standards.)
835: bindir='${exec_prefix}/bin'
836: sbindir='${exec_prefix}/sbin'
837: libexecdir='${exec_prefix}/libexec'
838: datarootdir='${prefix}/share'
839: datadir='${datarootdir}'
840: sysconfdir='${prefix}/etc'
841: sharedstatedir='${prefix}/com'
842: localstatedir='${prefix}/var'
843: includedir='${prefix}/include'
844: oldincludedir='/usr/include'
845: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
846: infodir='${datarootdir}/info'
847: htmldir='${docdir}'
848: dvidir='${docdir}'
849: pdfdir='${docdir}'
850: psdir='${docdir}'
851: libdir='${exec_prefix}/lib'
852: localedir='${datarootdir}/locale'
853: mandir='${datarootdir}/man'
854:
855: ac_prev=
856: ac_dashdash=
857: for ac_option
858: do
859: # If the previous option needs an argument, assign it.
860: if test -n "$ac_prev"; then
861: eval $ac_prev=\$ac_option
862: ac_prev=
863: continue
864: fi
865:
866: case $ac_option in
867: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
868: *=) ac_optarg= ;;
869: *) ac_optarg=yes ;;
870: esac
871:
872: # Accept the important Cygnus configure options, so we can diagnose typos.
873:
874: case $ac_dashdash$ac_option in
875: --)
876: ac_dashdash=yes ;;
877:
878: -bindir | --bindir | --bindi | --bind | --bin | --bi)
879: ac_prev=bindir ;;
880: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
881: bindir=$ac_optarg ;;
882:
883: -build | --build | --buil | --bui | --bu)
884: ac_prev=build_alias ;;
885: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
886: build_alias=$ac_optarg ;;
887:
888: -cache-file | --cache-file | --cache-fil | --cache-fi \
889: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
890: ac_prev=cache_file ;;
891: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
892: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
893: cache_file=$ac_optarg ;;
894:
895: --config-cache | -C)
896: cache_file=config.cache ;;
897:
898: -datadir | --datadir | --datadi | --datad)
899: ac_prev=datadir ;;
900: -datadir=* | --datadir=* | --datadi=* | --datad=*)
901: datadir=$ac_optarg ;;
902:
903: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
904: | --dataroo | --dataro | --datar)
905: ac_prev=datarootdir ;;
906: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
907: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
908: datarootdir=$ac_optarg ;;
909:
910: -disable-* | --disable-*)
911: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
912: # Reject names that are not valid shell variable names.
913: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914: as_fn_error $? "invalid feature name: $ac_useropt"
915: ac_useropt_orig=$ac_useropt
916: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917: case $ac_user_opts in
918: *"
919: "enable_$ac_useropt"
920: "*) ;;
921: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
922: ac_unrecognized_sep=', ';;
923: esac
924: eval enable_$ac_useropt=no ;;
925:
926: -docdir | --docdir | --docdi | --doc | --do)
927: ac_prev=docdir ;;
928: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
929: docdir=$ac_optarg ;;
930:
931: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
932: ac_prev=dvidir ;;
933: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
934: dvidir=$ac_optarg ;;
935:
936: -enable-* | --enable-*)
937: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
938: # Reject names that are not valid shell variable names.
939: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940: as_fn_error $? "invalid feature name: $ac_useropt"
941: ac_useropt_orig=$ac_useropt
942: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943: case $ac_user_opts in
944: *"
945: "enable_$ac_useropt"
946: "*) ;;
947: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
948: ac_unrecognized_sep=', ';;
949: esac
950: eval enable_$ac_useropt=\$ac_optarg ;;
951:
952: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
953: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
954: | --exec | --exe | --ex)
955: ac_prev=exec_prefix ;;
956: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
957: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
958: | --exec=* | --exe=* | --ex=*)
959: exec_prefix=$ac_optarg ;;
960:
961: -gas | --gas | --ga | --g)
962: # Obsolete; use --with-gas.
963: with_gas=yes ;;
964:
965: -help | --help | --hel | --he | -h)
966: ac_init_help=long ;;
967: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
968: ac_init_help=recursive ;;
969: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
970: ac_init_help=short ;;
971:
972: -host | --host | --hos | --ho)
973: ac_prev=host_alias ;;
974: -host=* | --host=* | --hos=* | --ho=*)
975: host_alias=$ac_optarg ;;
976:
977: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978: ac_prev=htmldir ;;
979: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980: | --ht=*)
981: htmldir=$ac_optarg ;;
982:
983: -includedir | --includedir | --includedi | --included | --include \
984: | --includ | --inclu | --incl | --inc)
985: ac_prev=includedir ;;
986: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
987: | --includ=* | --inclu=* | --incl=* | --inc=*)
988: includedir=$ac_optarg ;;
989:
990: -infodir | --infodir | --infodi | --infod | --info | --inf)
991: ac_prev=infodir ;;
992: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
993: infodir=$ac_optarg ;;
994:
995: -libdir | --libdir | --libdi | --libd)
996: ac_prev=libdir ;;
997: -libdir=* | --libdir=* | --libdi=* | --libd=*)
998: libdir=$ac_optarg ;;
999:
1000: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1001: | --libexe | --libex | --libe)
1002: ac_prev=libexecdir ;;
1003: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1004: | --libexe=* | --libex=* | --libe=*)
1005: libexecdir=$ac_optarg ;;
1006:
1007: -localedir | --localedir | --localedi | --localed | --locale)
1008: ac_prev=localedir ;;
1009: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1010: localedir=$ac_optarg ;;
1011:
1012: -localstatedir | --localstatedir | --localstatedi | --localstated \
1013: | --localstate | --localstat | --localsta | --localst | --locals)
1014: ac_prev=localstatedir ;;
1015: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1016: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1017: localstatedir=$ac_optarg ;;
1018:
1019: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020: ac_prev=mandir ;;
1021: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1022: mandir=$ac_optarg ;;
1023:
1024: -nfp | --nfp | --nf)
1025: # Obsolete; use --without-fp.
1026: with_fp=no ;;
1027:
1028: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029: | --no-cr | --no-c | -n)
1030: no_create=yes ;;
1031:
1032: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034: no_recursion=yes ;;
1035:
1036: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1037: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1038: | --oldin | --oldi | --old | --ol | --o)
1039: ac_prev=oldincludedir ;;
1040: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1041: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1042: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1043: oldincludedir=$ac_optarg ;;
1044:
1045: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046: ac_prev=prefix ;;
1047: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1048: prefix=$ac_optarg ;;
1049:
1050: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1051: | --program-pre | --program-pr | --program-p)
1052: ac_prev=program_prefix ;;
1053: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1054: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1055: program_prefix=$ac_optarg ;;
1056:
1057: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1058: | --program-suf | --program-su | --program-s)
1059: ac_prev=program_suffix ;;
1060: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1061: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1062: program_suffix=$ac_optarg ;;
1063:
1064: -program-transform-name | --program-transform-name \
1065: | --program-transform-nam | --program-transform-na \
1066: | --program-transform-n | --program-transform- \
1067: | --program-transform | --program-transfor \
1068: | --program-transfo | --program-transf \
1069: | --program-trans | --program-tran \
1070: | --progr-tra | --program-tr | --program-t)
1071: ac_prev=program_transform_name ;;
1072: -program-transform-name=* | --program-transform-name=* \
1073: | --program-transform-nam=* | --program-transform-na=* \
1074: | --program-transform-n=* | --program-transform-=* \
1075: | --program-transform=* | --program-transfor=* \
1076: | --program-transfo=* | --program-transf=* \
1077: | --program-trans=* | --program-tran=* \
1078: | --progr-tra=* | --program-tr=* | --program-t=*)
1079: program_transform_name=$ac_optarg ;;
1080:
1081: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082: ac_prev=pdfdir ;;
1083: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1084: pdfdir=$ac_optarg ;;
1085:
1086: -psdir | --psdir | --psdi | --psd | --ps)
1087: ac_prev=psdir ;;
1088: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089: psdir=$ac_optarg ;;
1090:
1091: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092: | -silent | --silent | --silen | --sile | --sil)
1093: silent=yes ;;
1094:
1095: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096: ac_prev=sbindir ;;
1097: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098: | --sbi=* | --sb=*)
1099: sbindir=$ac_optarg ;;
1100:
1101: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103: | --sharedst | --shareds | --shared | --share | --shar \
1104: | --sha | --sh)
1105: ac_prev=sharedstatedir ;;
1106: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109: | --sha=* | --sh=*)
1110: sharedstatedir=$ac_optarg ;;
1111:
1112: -site | --site | --sit)
1113: ac_prev=site ;;
1114: -site=* | --site=* | --sit=*)
1115: site=$ac_optarg ;;
1116:
1117: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118: ac_prev=srcdir ;;
1119: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120: srcdir=$ac_optarg ;;
1121:
1122: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123: | --syscon | --sysco | --sysc | --sys | --sy)
1124: ac_prev=sysconfdir ;;
1125: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127: sysconfdir=$ac_optarg ;;
1128:
1129: -target | --target | --targe | --targ | --tar | --ta | --t)
1130: ac_prev=target_alias ;;
1131: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132: target_alias=$ac_optarg ;;
1133:
1134: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135: verbose=yes ;;
1136:
1137: -version | --version | --versio | --versi | --vers | -V)
1138: ac_init_version=: ;;
1139:
1140: -with-* | --with-*)
1141: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142: # Reject names that are not valid shell variable names.
1143: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144: as_fn_error $? "invalid package name: $ac_useropt"
1145: ac_useropt_orig=$ac_useropt
1146: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147: case $ac_user_opts in
1148: *"
1149: "with_$ac_useropt"
1150: "*) ;;
1151: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1152: ac_unrecognized_sep=', ';;
1153: esac
1154: eval with_$ac_useropt=\$ac_optarg ;;
1155:
1156: -without-* | --without-*)
1157: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158: # Reject names that are not valid shell variable names.
1159: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160: as_fn_error $? "invalid package name: $ac_useropt"
1161: ac_useropt_orig=$ac_useropt
1162: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163: case $ac_user_opts in
1164: *"
1165: "with_$ac_useropt"
1166: "*) ;;
1167: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1168: ac_unrecognized_sep=', ';;
1169: esac
1170: eval with_$ac_useropt=no ;;
1171:
1172: --x)
1173: # Obsolete; use --with-x.
1174: with_x=yes ;;
1175:
1176: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1177: | --x-incl | --x-inc | --x-in | --x-i)
1178: ac_prev=x_includes ;;
1179: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1180: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1181: x_includes=$ac_optarg ;;
1182:
1183: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1184: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1185: ac_prev=x_libraries ;;
1186: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1187: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1188: x_libraries=$ac_optarg ;;
1189:
1190: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1191: Try \`$0 --help' for more information"
1192: ;;
1193:
1194: *=*)
1195: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1196: # Reject names that are not valid shell variable names.
1197: case $ac_envvar in #(
1198: '' | [0-9]* | *[!_$as_cr_alnum]* )
1199: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1200: esac
1201: eval $ac_envvar=\$ac_optarg
1202: export $ac_envvar ;;
1203:
1204: *)
1205: # FIXME: should be removed in autoconf 3.0.
1206: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1207: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1209: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1210: ;;
1211:
1212: esac
1213: done
1214:
1215: if test -n "$ac_prev"; then
1216: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1217: as_fn_error $? "missing argument to $ac_option"
1218: fi
1219:
1220: if test -n "$ac_unrecognized_opts"; then
1221: case $enable_option_checking in
1222: no) ;;
1223: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1224: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1225: esac
1226: fi
1227:
1228: # Check all directory arguments for consistency.
1229: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1230: datadir sysconfdir sharedstatedir localstatedir includedir \
1231: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232: libdir localedir mandir
1233: do
1234: eval ac_val=\$$ac_var
1235: # Remove trailing slashes.
1236: case $ac_val in
1237: */ )
1238: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1239: eval $ac_var=\$ac_val;;
1240: esac
1241: # Be sure to have absolute directory names.
1242: case $ac_val in
1243: [\\/$]* | ?:[\\/]* ) continue;;
1244: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1245: esac
1246: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1247: done
1248:
1249: # There might be people who depend on the old broken behavior: `$host'
1250: # used to hold the argument of --host etc.
1251: # FIXME: To remove some day.
1252: build=$build_alias
1253: host=$host_alias
1254: target=$target_alias
1255:
1256: # FIXME: To remove some day.
1257: if test "x$host_alias" != x; then
1258: if test "x$build_alias" = x; then
1259: cross_compiling=maybe
1260: elif test "x$build_alias" != "x$host_alias"; then
1261: cross_compiling=yes
1262: fi
1263: fi
1264:
1265: ac_tool_prefix=
1266: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1267:
1268: test "$silent" = yes && exec 6>/dev/null
1269:
1270:
1271: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1272: ac_ls_di=`ls -di .` &&
1273: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1274: as_fn_error $? "working directory cannot be determined"
1275: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1276: as_fn_error $? "pwd does not report name of working directory"
1277:
1278:
1279: # Find the source files, if location was not specified.
1280: if test -z "$srcdir"; then
1281: ac_srcdir_defaulted=yes
1282: # Try the directory containing this script, then the parent directory.
1283: ac_confdir=`$as_dirname -- "$as_myself" ||
1284: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1285: X"$as_myself" : 'X\(//\)[^/]' \| \
1286: X"$as_myself" : 'X\(//\)$' \| \
1287: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1288: $as_echo X"$as_myself" |
1289: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290: s//\1/
1291: q
1292: }
1293: /^X\(\/\/\)[^/].*/{
1294: s//\1/
1295: q
1296: }
1297: /^X\(\/\/\)$/{
1298: s//\1/
1299: q
1300: }
1301: /^X\(\/\).*/{
1302: s//\1/
1303: q
1304: }
1305: s/.*/./; q'`
1306: srcdir=$ac_confdir
1307: if test ! -r "$srcdir/$ac_unique_file"; then
1308: srcdir=..
1309: fi
1310: else
1311: ac_srcdir_defaulted=no
1312: fi
1313: if test ! -r "$srcdir/$ac_unique_file"; then
1314: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1315: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1316: fi
1317: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1318: ac_abs_confdir=`(
1319: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1320: pwd)`
1321: # When building in place, set srcdir=.
1322: if test "$ac_abs_confdir" = "$ac_pwd"; then
1323: srcdir=.
1324: fi
1325: # Remove unnecessary trailing slashes from srcdir.
1326: # Double slashes in file names in object file debugging info
1327: # mess up M-x gdb in Emacs.
1328: case $srcdir in
1329: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1330: esac
1331: for ac_var in $ac_precious_vars; do
1332: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1333: eval ac_env_${ac_var}_value=\$${ac_var}
1334: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1335: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1336: done
1337:
1338: #
1339: # Report the --help message.
1340: #
1341: if test "$ac_init_help" = "long"; then
1342: # Omit some internal or obsolete options to make the list less imposing.
1343: # This message is too long to be a string in the A/UX 3.1 sh.
1344: cat <<_ACEOF
1345: \`configure' configures lac 0.1.0 to adapt to many kinds of systems.
1346:
1347: Usage: $0 [OPTION]... [VAR=VALUE]...
1348:
1349: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1350: VAR=VALUE. See below for descriptions of some of the useful variables.
1351:
1352: Defaults for the options are specified in brackets.
1353:
1354: Configuration:
1355: -h, --help display this help and exit
1356: --help=short display options specific to this package
1357: --help=recursive display the short help of all the included packages
1358: -V, --version display version information and exit
1359: -q, --quiet, --silent do not print \`checking ...' messages
1360: --cache-file=FILE cache test results in FILE [disabled]
1361: -C, --config-cache alias for \`--cache-file=config.cache'
1362: -n, --no-create do not create output files
1363: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1364:
1365: Installation directories:
1366: --prefix=PREFIX install architecture-independent files in PREFIX
1367: [$ac_default_prefix]
1368: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1369: [PREFIX]
1370:
1371: By default, \`make install' will install all the files in
1372: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1373: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1374: for instance \`--prefix=\$HOME'.
1375:
1376: For better control, use the options below.
1377:
1378: Fine tuning of the installation directories:
1379: --bindir=DIR user executables [EPREFIX/bin]
1380: --sbindir=DIR system admin executables [EPREFIX/sbin]
1381: --libexecdir=DIR program executables [EPREFIX/libexec]
1382: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1383: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1384: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1385: --libdir=DIR object code libraries [EPREFIX/lib]
1386: --includedir=DIR C header files [PREFIX/include]
1387: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1388: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1389: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1390: --infodir=DIR info documentation [DATAROOTDIR/info]
1391: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1392: --mandir=DIR man documentation [DATAROOTDIR/man]
1393: --docdir=DIR documentation root [DATAROOTDIR/doc/lac]
1394: --htmldir=DIR html documentation [DOCDIR]
1395: --dvidir=DIR dvi documentation [DOCDIR]
1396: --pdfdir=DIR pdf documentation [DOCDIR]
1397: --psdir=DIR ps documentation [DOCDIR]
1398: _ACEOF
1399:
1400: cat <<\_ACEOF
1401:
1402: Program names:
1403: --program-prefix=PREFIX prepend PREFIX to installed program names
1404: --program-suffix=SUFFIX append SUFFIX to installed program names
1405: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1406:
1407: System types:
1408: --build=BUILD configure for building on BUILD [guessed]
1409: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1410: _ACEOF
1411: fi
1412:
1413: if test -n "$ac_init_help"; then
1414: case $ac_init_help in
1415: short | recursive ) echo "Configuration of lac 0.1.0:";;
1416: esac
1417: cat <<\_ACEOF
1418:
1419: Optional Features:
1420: --disable-option-checking ignore unrecognized --enable/--with options
1421: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1422: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1423: --enable-silent-rules less verbose build output (undo: "make V=1")
1424: --disable-silent-rules verbose build output (undo: "make V=0")
1425: --enable-dependency-tracking
1426: do not reject slow dependency extractors
1427: --disable-dependency-tracking
1428: speeds up one-time build
1429: --disable-rpath do not hardcode runtime library paths
1430: --enable-shared[=PKGS] build shared libraries [default=yes]
1431: --enable-static[=PKGS] build static libraries [default=yes]
1432: --enable-fast-install[=PKGS]
1433: optimize for fast installation [default=yes]
1434: --disable-libtool-lock avoid locking (might break parallel builds)
1435:
1436: Optional Packages:
1437: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1438: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1439: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1440: --with-libsigsegv-prefix[=DIR] search for libsigsegv in DIR/include and DIR/lib
1441: --without-libsigsegv-prefix don't search for libsigsegv in includedir and libdir
1442: --with-libreadline-prefix[=DIR] search for libreadline in DIR/include and DIR/lib
1443: --without-libreadline-prefix don't search for libreadline in includedir and libdir
1444: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1445: both]
1446: --with-aix-soname=aix|svr4|both
1447: shared library versioning (aka "SONAME") variant to
1448: provide on AIX, [default=aix].
1449: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1450: --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1451: compiler's sysroot if not specified).
1452:
1453: Some influential environment variables:
1454: CC C compiler command
1455: CFLAGS C compiler flags
1456: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1457: nonstandard directory <lib dir>
1458: LIBS libraries to pass to the linker, e.g. -l<library>
1459: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1460: you have headers in a nonstandard directory <include dir>
1461: YACC The `Yet Another Compiler Compiler' implementation to use.
1462: Defaults to the first program found out of: `bison -y', `byacc',
1463: `yacc'.
1464: YFLAGS The list of arguments that will be passed by default to $YACC.
1465: This script will default YFLAGS to the empty string to avoid a
1466: default value of `-d' given by some make applications.
1467: PKG_CONFIG path to pkg-config utility
1468: PKG_CONFIG_PATH
1469: directories to add to pkg-config's search path
1470: PKG_CONFIG_LIBDIR
1471: path overriding pkg-config's built-in search path
1472: BDW_GC_CFLAGS
1473: C compiler flags for BDW_GC, overriding pkg-config
1474: BDW_GC_LIBS linker flags for BDW_GC, overriding pkg-config
1475: CPP C preprocessor
1476: LT_SYS_LIBRARY_PATH
1477: User-defined run-time library search path.
1478:
1479: Use these variables to override the choices made by `configure' or to help
1480: it to find libraries and programs with nonstandard names/locations.
1481:
1482: Report bugs to <lac@tlbflush.org>.
1483: _ACEOF
1484: ac_status=$?
1485: fi
1486:
1487: if test "$ac_init_help" = "recursive"; then
1488: # If there are subdirs, report their specific --help.
1489: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1490: test -d "$ac_dir" ||
1491: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1492: continue
1493: ac_builddir=.
1494:
1495: case "$ac_dir" in
1496: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1497: *)
1498: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1499: # A ".." for each directory in $ac_dir_suffix.
1500: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1501: case $ac_top_builddir_sub in
1502: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1504: esac ;;
1505: esac
1506: ac_abs_top_builddir=$ac_pwd
1507: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1508: # for backward compatibility:
1509: ac_top_builddir=$ac_top_build_prefix
1510:
1511: case $srcdir in
1512: .) # We are building in place.
1513: ac_srcdir=.
1514: ac_top_srcdir=$ac_top_builddir_sub
1515: ac_abs_top_srcdir=$ac_pwd ;;
1516: [\\/]* | ?:[\\/]* ) # Absolute name.
1517: ac_srcdir=$srcdir$ac_dir_suffix;
1518: ac_top_srcdir=$srcdir
1519: ac_abs_top_srcdir=$srcdir ;;
1520: *) # Relative name.
1521: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1522: ac_top_srcdir=$ac_top_build_prefix$srcdir
1523: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1524: esac
1525: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1526:
1527: cd "$ac_dir" || { ac_status=$?; continue; }
1528: # Check for guested configure.
1529: if test -f "$ac_srcdir/configure.gnu"; then
1530: echo &&
1531: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1532: elif test -f "$ac_srcdir/configure"; then
1533: echo &&
1534: $SHELL "$ac_srcdir/configure" --help=recursive
1535: else
1536: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1537: fi || ac_status=$?
1538: cd "$ac_pwd" || { ac_status=$?; break; }
1539: done
1540: fi
1541:
1542: test -n "$ac_init_help" && exit $ac_status
1543: if $ac_init_version; then
1544: cat <<\_ACEOF
1545: lac configure 0.1.0
1546: generated by GNU Autoconf 2.69
1547:
1548: Copyright (C) 2012 Free Software Foundation, Inc.
1549: This configure script is free software; the Free Software Foundation
1550: gives unlimited permission to copy, distribute and modify it.
1551: _ACEOF
1552: exit
1553: fi
1554:
1555: ## ------------------------ ##
1556: ## Autoconf initialization. ##
1557: ## ------------------------ ##
1558:
1559: # ac_fn_c_try_compile LINENO
1560: # --------------------------
1561: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1562: ac_fn_c_try_compile ()
1563: {
1564: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565: rm -f conftest.$ac_objext
1566: if { { ac_try="$ac_compile"
1567: case "(($ac_try" in
1568: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569: *) ac_try_echo=$ac_try;;
1570: esac
1571: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572: $as_echo "$ac_try_echo"; } >&5
1573: (eval "$ac_compile") 2>conftest.err
1574: ac_status=$?
1575: if test -s conftest.err; then
1576: grep -v '^ *+' conftest.err >conftest.er1
1577: cat conftest.er1 >&5
1578: mv -f conftest.er1 conftest.err
1579: fi
1580: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581: test $ac_status = 0; } && {
1582: test -z "$ac_c_werror_flag" ||
1583: test ! -s conftest.err
1584: } && test -s conftest.$ac_objext; then :
1585: ac_retval=0
1586: else
1587: $as_echo "$as_me: failed program was:" >&5
1588: sed 's/^/| /' conftest.$ac_ext >&5
1589:
1590: ac_retval=1
1591: fi
1592: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593: as_fn_set_status $ac_retval
1594:
1595: } # ac_fn_c_try_compile
1596:
1597: # ac_fn_c_try_link LINENO
1598: # -----------------------
1599: # Try to link conftest.$ac_ext, and return whether this succeeded.
1600: ac_fn_c_try_link ()
1601: {
1602: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603: rm -f conftest.$ac_objext conftest$ac_exeext
1604: if { { ac_try="$ac_link"
1605: case "(($ac_try" in
1606: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607: *) ac_try_echo=$ac_try;;
1608: esac
1609: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610: $as_echo "$ac_try_echo"; } >&5
1611: (eval "$ac_link") 2>conftest.err
1612: ac_status=$?
1613: if test -s conftest.err; then
1614: grep -v '^ *+' conftest.err >conftest.er1
1615: cat conftest.er1 >&5
1616: mv -f conftest.er1 conftest.err
1617: fi
1618: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1619: test $ac_status = 0; } && {
1620: test -z "$ac_c_werror_flag" ||
1621: test ! -s conftest.err
1622: } && test -s conftest$ac_exeext && {
1623: test "$cross_compiling" = yes ||
1624: test -x conftest$ac_exeext
1625: }; then :
1626: ac_retval=0
1627: else
1628: $as_echo "$as_me: failed program was:" >&5
1629: sed 's/^/| /' conftest.$ac_ext >&5
1630:
1631: ac_retval=1
1632: fi
1633: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1634: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1635: # interfere with the next link command; also delete a directory that is
1636: # left behind by Apple's compiler. We do this before executing the actions.
1637: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1638: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1639: as_fn_set_status $ac_retval
1640:
1641: } # ac_fn_c_try_link
1642:
1643: # ac_fn_c_try_cpp LINENO
1644: # ----------------------
1645: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1646: ac_fn_c_try_cpp ()
1647: {
1648: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649: if { { ac_try="$ac_cpp conftest.$ac_ext"
1650: case "(($ac_try" in
1651: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652: *) ac_try_echo=$ac_try;;
1653: esac
1654: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655: $as_echo "$ac_try_echo"; } >&5
1656: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1657: ac_status=$?
1658: if test -s conftest.err; then
1659: grep -v '^ *+' conftest.err >conftest.er1
1660: cat conftest.er1 >&5
1661: mv -f conftest.er1 conftest.err
1662: fi
1663: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664: test $ac_status = 0; } > conftest.i && {
1665: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1666: test ! -s conftest.err
1667: }; then :
1668: ac_retval=0
1669: else
1670: $as_echo "$as_me: failed program was:" >&5
1671: sed 's/^/| /' conftest.$ac_ext >&5
1672:
1673: ac_retval=1
1674: fi
1675: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676: as_fn_set_status $ac_retval
1677:
1678: } # ac_fn_c_try_cpp
1679:
1680: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1681: # -------------------------------------------------------
1682: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1683: # the include files in INCLUDES and setting the cache variable VAR
1684: # accordingly.
1685: ac_fn_c_check_header_mongrel ()
1686: {
1687: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688: if eval \${$3+:} false; then :
1689: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1690: $as_echo_n "checking for $2... " >&6; }
1691: if eval \${$3+:} false; then :
1692: $as_echo_n "(cached) " >&6
1693: fi
1694: eval ac_res=\$$3
1695: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1696: $as_echo "$ac_res" >&6; }
1697: else
1698: # Is the header compilable?
1699: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1700: $as_echo_n "checking $2 usability... " >&6; }
1701: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1702: /* end confdefs.h. */
1703: $4
1704: #include <$2>
1705: _ACEOF
1706: if ac_fn_c_try_compile "$LINENO"; then :
1707: ac_header_compiler=yes
1708: else
1709: ac_header_compiler=no
1710: fi
1711: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1712: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1713: $as_echo "$ac_header_compiler" >&6; }
1714:
1715: # Is the header present?
1716: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1717: $as_echo_n "checking $2 presence... " >&6; }
1718: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719: /* end confdefs.h. */
1720: #include <$2>
1721: _ACEOF
1722: if ac_fn_c_try_cpp "$LINENO"; then :
1723: ac_header_preproc=yes
1724: else
1725: ac_header_preproc=no
1726: fi
1727: rm -f conftest.err conftest.i conftest.$ac_ext
1728: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1729: $as_echo "$ac_header_preproc" >&6; }
1730:
1731: # So? What about this header?
1732: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1733: yes:no: )
1734: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1735: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1736: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1737: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1738: ;;
1739: no:yes:* )
1740: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1741: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1742: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1743: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1744: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1745: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1746: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1747: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1748: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1749: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1750: ( $as_echo "## ------------------------------- ##
1751: ## Report this to lac@tlbflush.org ##
1752: ## ------------------------------- ##"
1753: ) | sed "s/^/$as_me: WARNING: /" >&2
1754: ;;
1755: esac
1756: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757: $as_echo_n "checking for $2... " >&6; }
1758: if eval \${$3+:} false; then :
1759: $as_echo_n "(cached) " >&6
1760: else
1761: eval "$3=\$ac_header_compiler"
1762: fi
1763: eval ac_res=\$$3
1764: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1765: $as_echo "$ac_res" >&6; }
1766: fi
1767: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768:
1769: } # ac_fn_c_check_header_mongrel
1770:
1771: # ac_fn_c_try_run LINENO
1772: # ----------------------
1773: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1774: # that executables *can* be run.
1775: ac_fn_c_try_run ()
1776: {
1777: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778: if { { ac_try="$ac_link"
1779: case "(($ac_try" in
1780: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781: *) ac_try_echo=$ac_try;;
1782: esac
1783: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784: $as_echo "$ac_try_echo"; } >&5
1785: (eval "$ac_link") 2>&5
1786: ac_status=$?
1787: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1789: { { case "(($ac_try" in
1790: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791: *) ac_try_echo=$ac_try;;
1792: esac
1793: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794: $as_echo "$ac_try_echo"; } >&5
1795: (eval "$ac_try") 2>&5
1796: ac_status=$?
1797: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798: test $ac_status = 0; }; }; then :
1799: ac_retval=0
1800: else
1801: $as_echo "$as_me: program exited with status $ac_status" >&5
1802: $as_echo "$as_me: failed program was:" >&5
1803: sed 's/^/| /' conftest.$ac_ext >&5
1804:
1805: ac_retval=$ac_status
1806: fi
1807: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809: as_fn_set_status $ac_retval
1810:
1811: } # ac_fn_c_try_run
1812:
1813: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1814: # -------------------------------------------------------
1815: # Tests whether HEADER exists and can be compiled using the include files in
1816: # INCLUDES, setting the cache variable VAR accordingly.
1817: ac_fn_c_check_header_compile ()
1818: {
1819: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821: $as_echo_n "checking for $2... " >&6; }
1822: if eval \${$3+:} false; then :
1823: $as_echo_n "(cached) " >&6
1824: else
1825: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826: /* end confdefs.h. */
1827: $4
1828: #include <$2>
1829: _ACEOF
1830: if ac_fn_c_try_compile "$LINENO"; then :
1831: eval "$3=yes"
1832: else
1833: eval "$3=no"
1834: fi
1835: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1836: fi
1837: eval ac_res=\$$3
1838: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839: $as_echo "$ac_res" >&6; }
1840: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841:
1842: } # ac_fn_c_check_header_compile
1843:
1844: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1845: # -------------------------------------------
1846: # Tests whether TYPE exists after having included INCLUDES, setting cache
1847: # variable VAR accordingly.
1848: ac_fn_c_check_type ()
1849: {
1850: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852: $as_echo_n "checking for $2... " >&6; }
1853: if eval \${$3+:} false; then :
1854: $as_echo_n "(cached) " >&6
1855: else
1856: eval "$3=no"
1857: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1858: /* end confdefs.h. */
1859: $4
1860: int
1861: main ()
1862: {
1863: if (sizeof ($2))
1864: return 0;
1865: ;
1866: return 0;
1867: }
1868: _ACEOF
1869: if ac_fn_c_try_compile "$LINENO"; then :
1870: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871: /* end confdefs.h. */
1872: $4
1873: int
1874: main ()
1875: {
1876: if (sizeof (($2)))
1877: return 0;
1878: ;
1879: return 0;
1880: }
1881: _ACEOF
1882: if ac_fn_c_try_compile "$LINENO"; then :
1883:
1884: else
1885: eval "$3=yes"
1886: fi
1887: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1888: fi
1889: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1890: fi
1891: eval ac_res=\$$3
1892: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893: $as_echo "$ac_res" >&6; }
1894: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895:
1896: } # ac_fn_c_check_type
1897:
1898: # ac_fn_c_check_func LINENO FUNC VAR
1899: # ----------------------------------
1900: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1901: ac_fn_c_check_func ()
1902: {
1903: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905: $as_echo_n "checking for $2... " >&6; }
1906: if eval \${$3+:} false; then :
1907: $as_echo_n "(cached) " >&6
1908: else
1909: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910: /* end confdefs.h. */
1911: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1912: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1913: #define $2 innocuous_$2
1914:
1915: /* System header to define __stub macros and hopefully few prototypes,
1916: which can conflict with char $2 (); below.
1917: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1918: <limits.h> exists even on freestanding compilers. */
1919:
1920: #ifdef __STDC__
1921: # include <limits.h>
1922: #else
1923: # include <assert.h>
1924: #endif
1925:
1926: #undef $2
1927:
1928: /* Override any GCC internal prototype to avoid an error.
1929: Use char because int might match the return type of a GCC
1930: builtin and then its argument prototype would still apply. */
1931: #ifdef __cplusplus
1932: extern "C"
1933: #endif
1934: char $2 ();
1935: /* The GNU C library defines this for functions which it implements
1936: to always fail with ENOSYS. Some functions are actually named
1937: something starting with __ and the normal name is an alias. */
1938: #if defined __stub_$2 || defined __stub___$2
1939: choke me
1940: #endif
1941:
1942: int
1943: main ()
1944: {
1945: return $2 ();
1946: ;
1947: return 0;
1948: }
1949: _ACEOF
1950: if ac_fn_c_try_link "$LINENO"; then :
1951: eval "$3=yes"
1952: else
1953: eval "$3=no"
1954: fi
1955: rm -f core conftest.err conftest.$ac_objext \
1956: conftest$ac_exeext conftest.$ac_ext
1957: fi
1958: eval ac_res=\$$3
1959: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960: $as_echo "$ac_res" >&6; }
1961: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962:
1963: } # ac_fn_c_check_func
1964: cat >config.log <<_ACEOF
1965: This file contains any messages produced by compilers while
1966: running configure, to aid debugging if configure makes a mistake.
1967:
1968: It was created by lac $as_me 0.1.0, which was
1969: generated by GNU Autoconf 2.69. Invocation command line was
1970:
1971: $ $0 $@
1972:
1973: _ACEOF
1974: exec 5>>config.log
1975: {
1976: cat <<_ASUNAME
1977: ## --------- ##
1978: ## Platform. ##
1979: ## --------- ##
1980:
1981: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1982: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1983: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1984: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1985: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1986:
1987: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1988: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1989:
1990: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1991: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1992: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1993: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1994: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1995: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1996: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1997:
1998: _ASUNAME
1999:
2000: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001: for as_dir in $PATH
2002: do
2003: IFS=$as_save_IFS
2004: test -z "$as_dir" && as_dir=.
2005: $as_echo "PATH: $as_dir"
2006: done
2007: IFS=$as_save_IFS
2008:
2009: } >&5
2010:
2011: cat >&5 <<_ACEOF
2012:
2013:
2014: ## ----------- ##
2015: ## Core tests. ##
2016: ## ----------- ##
2017:
2018: _ACEOF
2019:
2020:
2021: # Keep a trace of the command line.
2022: # Strip out --no-create and --no-recursion so they do not pile up.
2023: # Strip out --silent because we don't want to record it for future runs.
2024: # Also quote any args containing shell meta-characters.
2025: # Make two passes to allow for proper duplicate-argument suppression.
2026: ac_configure_args=
2027: ac_configure_args0=
2028: ac_configure_args1=
2029: ac_must_keep_next=false
2030: for ac_pass in 1 2
2031: do
2032: for ac_arg
2033: do
2034: case $ac_arg in
2035: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2036: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2037: | -silent | --silent | --silen | --sile | --sil)
2038: continue ;;
2039: *\'*)
2040: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2041: esac
2042: case $ac_pass in
2043: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2044: 2)
2045: as_fn_append ac_configure_args1 " '$ac_arg'"
2046: if test $ac_must_keep_next = true; then
2047: ac_must_keep_next=false # Got value, back to normal.
2048: else
2049: case $ac_arg in
2050: *=* | --config-cache | -C | -disable-* | --disable-* \
2051: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2052: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2053: | -with-* | --with-* | -without-* | --without-* | --x)
2054: case "$ac_configure_args0 " in
2055: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2056: esac
2057: ;;
2058: -* ) ac_must_keep_next=true ;;
2059: esac
2060: fi
2061: as_fn_append ac_configure_args " '$ac_arg'"
2062: ;;
2063: esac
2064: done
2065: done
2066: { ac_configure_args0=; unset ac_configure_args0;}
2067: { ac_configure_args1=; unset ac_configure_args1;}
2068:
2069: # When interrupted or exit'd, cleanup temporary files, and complete
2070: # config.log. We remove comments because anyway the quotes in there
2071: # would cause problems or look ugly.
2072: # WARNING: Use '\'' to represent an apostrophe within the trap.
2073: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2074: trap 'exit_status=$?
2075: # Save into config.log some information that might help in debugging.
2076: {
2077: echo
2078:
2079: $as_echo "## ---------------- ##
2080: ## Cache variables. ##
2081: ## ---------------- ##"
2082: echo
2083: # The following way of writing the cache mishandles newlines in values,
2084: (
2085: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2086: eval ac_val=\$$ac_var
2087: case $ac_val in #(
2088: *${as_nl}*)
2089: case $ac_var in #(
2090: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2091: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2092: esac
2093: case $ac_var in #(
2094: _ | IFS | as_nl) ;; #(
2095: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2096: *) { eval $ac_var=; unset $ac_var;} ;;
2097: esac ;;
2098: esac
2099: done
2100: (set) 2>&1 |
2101: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2102: *${as_nl}ac_space=\ *)
2103: sed -n \
2104: "s/'\''/'\''\\\\'\'''\''/g;
2105: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2106: ;; #(
2107: *)
2108: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2109: ;;
2110: esac |
2111: sort
2112: )
2113: echo
2114:
2115: $as_echo "## ----------------- ##
2116: ## Output variables. ##
2117: ## ----------------- ##"
2118: echo
2119: for ac_var in $ac_subst_vars
2120: do
2121: eval ac_val=\$$ac_var
2122: case $ac_val in
2123: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2124: esac
2125: $as_echo "$ac_var='\''$ac_val'\''"
2126: done | sort
2127: echo
2128:
2129: if test -n "$ac_subst_files"; then
2130: $as_echo "## ------------------- ##
2131: ## File substitutions. ##
2132: ## ------------------- ##"
2133: echo
2134: for ac_var in $ac_subst_files
2135: do
2136: eval ac_val=\$$ac_var
2137: case $ac_val in
2138: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2139: esac
2140: $as_echo "$ac_var='\''$ac_val'\''"
2141: done | sort
2142: echo
2143: fi
2144:
2145: if test -s confdefs.h; then
2146: $as_echo "## ----------- ##
2147: ## confdefs.h. ##
2148: ## ----------- ##"
2149: echo
2150: cat confdefs.h
2151: echo
2152: fi
2153: test "$ac_signal" != 0 &&
2154: $as_echo "$as_me: caught signal $ac_signal"
2155: $as_echo "$as_me: exit $exit_status"
2156: } >&5
2157: rm -f core *.core core.conftest.* &&
2158: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2159: exit $exit_status
2160: ' 0
2161: for ac_signal in 1 2 13 15; do
2162: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2163: done
2164: ac_signal=0
2165:
2166: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2167: rm -f -r conftest* confdefs.h
2168:
2169: $as_echo "/* confdefs.h */" > confdefs.h
2170:
2171: # Predefined preprocessor variables.
2172:
2173: cat >>confdefs.h <<_ACEOF
2174: #define PACKAGE_NAME "$PACKAGE_NAME"
2175: _ACEOF
2176:
2177: cat >>confdefs.h <<_ACEOF
2178: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2179: _ACEOF
2180:
2181: cat >>confdefs.h <<_ACEOF
2182: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2183: _ACEOF
2184:
2185: cat >>confdefs.h <<_ACEOF
2186: #define PACKAGE_STRING "$PACKAGE_STRING"
2187: _ACEOF
2188:
2189: cat >>confdefs.h <<_ACEOF
2190: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2191: _ACEOF
2192:
2193: cat >>confdefs.h <<_ACEOF
2194: #define PACKAGE_URL "$PACKAGE_URL"
2195: _ACEOF
2196:
2197:
2198: # Let the site file select an alternate cache file if it wants to.
2199: # Prefer an explicitly selected file to automatically selected ones.
2200: ac_site_file1=NONE
2201: ac_site_file2=NONE
2202: if test -n "$CONFIG_SITE"; then
2203: # We do not want a PATH search for config.site.
2204: case $CONFIG_SITE in #((
2205: -*) ac_site_file1=./$CONFIG_SITE;;
2206: */*) ac_site_file1=$CONFIG_SITE;;
2207: *) ac_site_file1=./$CONFIG_SITE;;
2208: esac
2209: elif test "x$prefix" != xNONE; then
2210: ac_site_file1=$prefix/share/config.site
2211: ac_site_file2=$prefix/etc/config.site
2212: else
2213: ac_site_file1=$ac_default_prefix/share/config.site
2214: ac_site_file2=$ac_default_prefix/etc/config.site
2215: fi
2216: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2217: do
2218: test "x$ac_site_file" = xNONE && continue
2219: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2220: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2221: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2222: sed 's/^/| /' "$ac_site_file" >&5
2223: . "$ac_site_file" \
2224: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2225: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2226: as_fn_error $? "failed to load site script $ac_site_file
2227: See \`config.log' for more details" "$LINENO" 5; }
2228: fi
2229: done
2230:
2231: if test -r "$cache_file"; then
2232: # Some versions of bash will fail to source /dev/null (special files
2233: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2234: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2235: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2236: $as_echo "$as_me: loading cache $cache_file" >&6;}
2237: case $cache_file in
2238: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2239: *) . "./$cache_file";;
2240: esac
2241: fi
2242: else
2243: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2244: $as_echo "$as_me: creating cache $cache_file" >&6;}
2245: >$cache_file
2246: fi
2247:
2248: # Check that the precious variables saved in the cache have kept the same
2249: # value.
2250: ac_cache_corrupted=false
2251: for ac_var in $ac_precious_vars; do
2252: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2253: eval ac_new_set=\$ac_env_${ac_var}_set
2254: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2255: eval ac_new_val=\$ac_env_${ac_var}_value
2256: case $ac_old_set,$ac_new_set in
2257: set,)
2258: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2259: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2260: ac_cache_corrupted=: ;;
2261: ,set)
2262: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2263: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2264: ac_cache_corrupted=: ;;
2265: ,);;
2266: *)
2267: if test "x$ac_old_val" != "x$ac_new_val"; then
2268: # differences in whitespace do not lead to failure.
2269: ac_old_val_w=`echo x $ac_old_val`
2270: ac_new_val_w=`echo x $ac_new_val`
2271: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2272: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2273: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2274: ac_cache_corrupted=:
2275: else
2276: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2277: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2278: eval $ac_var=\$ac_old_val
2279: fi
2280: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2281: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2282: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2283: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2284: fi;;
2285: esac
2286: # Pass precious variables to config.status.
2287: if test "$ac_new_set" = set; then
2288: case $ac_new_val in
2289: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2290: *) ac_arg=$ac_var=$ac_new_val ;;
2291: esac
2292: case " $ac_configure_args " in
2293: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2294: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2295: esac
2296: fi
2297: done
2298: if $ac_cache_corrupted; then
2299: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2300: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2301: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2302: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2303: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2304: fi
2305: ## -------------------- ##
2306: ## Main body of script. ##
2307: ## -------------------- ##
2308:
2309: ac_ext=c
2310: ac_cpp='$CPP $CPPFLAGS'
2311: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2312: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2313: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2314:
2315:
2316: am__api_version='1.15'
2317:
2318: ac_aux_dir=
2319: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2320: if test -f "$ac_dir/install-sh"; then
2321: ac_aux_dir=$ac_dir
2322: ac_install_sh="$ac_aux_dir/install-sh -c"
2323: break
2324: elif test -f "$ac_dir/install.sh"; then
2325: ac_aux_dir=$ac_dir
2326: ac_install_sh="$ac_aux_dir/install.sh -c"
2327: break
2328: elif test -f "$ac_dir/shtool"; then
2329: ac_aux_dir=$ac_dir
2330: ac_install_sh="$ac_aux_dir/shtool install -c"
2331: break
2332: fi
2333: done
2334: if test -z "$ac_aux_dir"; then
2335: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2336: fi
2337:
2338: # These three variables are undocumented and unsupported,
2339: # and are intended to be withdrawn in a future Autoconf release.
2340: # They can cause serious problems if a builder's source tree is in a directory
2341: # whose full name contains unusual characters.
2342: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2343: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2344: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2345:
2346:
2347: # Find a good install program. We prefer a C program (faster),
2348: # so one script is as good as another. But avoid the broken or
2349: # incompatible versions:
2350: # SysV /etc/install, /usr/sbin/install
2351: # SunOS /usr/etc/install
2352: # IRIX /sbin/install
2353: # AIX /bin/install
2354: # AmigaOS /C/install, which installs bootblocks on floppy discs
2355: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2356: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2357: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2358: # OS/2's system install, which has a completely different semantic
2359: # ./install, which can be erroneously created by make from ./install.sh.
2360: # Reject install programs that cannot install multiple files.
2361: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2362: $as_echo_n "checking for a BSD-compatible install... " >&6; }
2363: if test -z "$INSTALL"; then
2364: if ${ac_cv_path_install+:} false; then :
2365: $as_echo_n "(cached) " >&6
2366: else
2367: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368: for as_dir in $PATH
2369: do
2370: IFS=$as_save_IFS
2371: test -z "$as_dir" && as_dir=.
2372: # Account for people who put trailing slashes in PATH elements.
2373: case $as_dir/ in #((
2374: ./ | .// | /[cC]/* | \
2375: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2376: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2377: /usr/ucb/* ) ;;
2378: *)
2379: # OSF1 and SCO ODT 3.0 have their own names for install.
2380: # Don't use installbsd from OSF since it installs stuff as root
2381: # by default.
2382: for ac_prog in ginstall scoinst install; do
2383: for ac_exec_ext in '' $ac_executable_extensions; do
2384: if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2385: if test $ac_prog = install &&
2386: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2387: # AIX install. It has an incompatible calling convention.
2388: :
2389: elif test $ac_prog = install &&
2390: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2391: # program-specific install script used by HP pwplus--don't use.
2392: :
2393: else
2394: rm -rf conftest.one conftest.two conftest.dir
2395: echo one > conftest.one
2396: echo two > conftest.two
2397: mkdir conftest.dir
2398: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2399: test -s conftest.one && test -s conftest.two &&
2400: test -s conftest.dir/conftest.one &&
2401: test -s conftest.dir/conftest.two
2402: then
2403: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2404: break 3
2405: fi
2406: fi
2407: fi
2408: done
2409: done
2410: ;;
2411: esac
2412:
2413: done
2414: IFS=$as_save_IFS
2415:
2416: rm -rf conftest.one conftest.two conftest.dir
2417:
2418: fi
2419: if test "${ac_cv_path_install+set}" = set; then
2420: INSTALL=$ac_cv_path_install
2421: else
2422: # As a last resort, use the slow shell script. Don't cache a
2423: # value for INSTALL within a source directory, because that will
2424: # break other packages using the cache if that directory is
2425: # removed, or if the value is a relative name.
2426: INSTALL=$ac_install_sh
2427: fi
2428: fi
2429: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2430: $as_echo "$INSTALL" >&6; }
2431:
2432: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2433: # It thinks the first close brace ends the variable substitution.
2434: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2435:
2436: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2437:
2438: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2439:
2440: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2441: $as_echo_n "checking whether build environment is sane... " >&6; }
2442: # Reject unsafe characters in $srcdir or the absolute working directory
2443: # name. Accept space and tab only in the latter.
2444: am_lf='
2445: '
2446: case `pwd` in
2447: *[\\\"\#\$\&\'\`$am_lf]*)
2448: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2449: esac
2450: case $srcdir in
2451: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2452: as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2453: esac
2454:
2455: # Do 'set' in a subshell so we don't clobber the current shell's
2456: # arguments. Must try -L first in case configure is actually a
2457: # symlink; some systems play weird games with the mod time of symlinks
2458: # (eg FreeBSD returns the mod time of the symlink's containing
2459: # directory).
2460: if (
2461: am_has_slept=no
2462: for am_try in 1 2; do
2463: echo "timestamp, slept: $am_has_slept" > conftest.file
2464: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2465: if test "$*" = "X"; then
2466: # -L didn't work.
2467: set X `ls -t "$srcdir/configure" conftest.file`
2468: fi
2469: if test "$*" != "X $srcdir/configure conftest.file" \
2470: && test "$*" != "X conftest.file $srcdir/configure"; then
2471:
2472: # If neither matched, then we have a broken ls. This can happen
2473: # if, for instance, CONFIG_SHELL is bash and it inherits a
2474: # broken ls alias from the environment. This has actually
2475: # happened. Such a system could not be considered "sane".
2476: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2477: alias in your environment" "$LINENO" 5
2478: fi
2479: if test "$2" = conftest.file || test $am_try -eq 2; then
2480: break
2481: fi
2482: # Just in case.
2483: sleep 1
2484: am_has_slept=yes
2485: done
2486: test "$2" = conftest.file
2487: )
2488: then
2489: # Ok.
2490: :
2491: else
2492: as_fn_error $? "newly created file is older than distributed files!
2493: Check your system clock" "$LINENO" 5
2494: fi
2495: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2496: $as_echo "yes" >&6; }
2497: # If we didn't sleep, we still need to ensure time stamps of config.status and
2498: # generated files are strictly newer.
2499: am_sleep_pid=
2500: if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2501: ( sleep 1 ) &
2502: am_sleep_pid=$!
2503: fi
2504:
2505: rm -f conftest.file
2506:
2507: test "$program_prefix" != NONE &&
2508: program_transform_name="s&^&$program_prefix&;$program_transform_name"
2509: # Use a double $ so make ignores it.
2510: test "$program_suffix" != NONE &&
2511: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2512: # Double any \ or $.
2513: # By default was `s,x,x', remove it if useless.
2514: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2515: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2516:
2517: # Expand $ac_aux_dir to an absolute path.
2518: am_aux_dir=`cd "$ac_aux_dir" && pwd`
2519:
2520: if test x"${MISSING+set}" != xset; then
2521: case $am_aux_dir in
2522: *\ * | *\ *)
2523: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2524: *)
2525: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2526: esac
2527: fi
2528: # Use eval to expand $SHELL
2529: if eval "$MISSING --is-lightweight"; then
2530: am_missing_run="$MISSING "
2531: else
2532: am_missing_run=
2533: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2534: $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2535: fi
2536:
2537: if test x"${install_sh+set}" != xset; then
2538: case $am_aux_dir in
2539: *\ * | *\ *)
2540: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2541: *)
2542: install_sh="\${SHELL} $am_aux_dir/install-sh"
2543: esac
2544: fi
2545:
2546: # Installed binaries are usually stripped using 'strip' when the user
2547: # run "make install-strip". However 'strip' might not be the right
2548: # tool to use in cross-compilation environments, therefore Automake
2549: # will honor the 'STRIP' environment variable to overrule this program.
2550: if test "$cross_compiling" != no; then
2551: if test -n "$ac_tool_prefix"; then
2552: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2553: set dummy ${ac_tool_prefix}strip; ac_word=$2
2554: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2555: $as_echo_n "checking for $ac_word... " >&6; }
2556: if ${ac_cv_prog_STRIP+:} false; then :
2557: $as_echo_n "(cached) " >&6
2558: else
2559: if test -n "$STRIP"; then
2560: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2561: else
2562: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563: for as_dir in $PATH
2564: do
2565: IFS=$as_save_IFS
2566: test -z "$as_dir" && as_dir=.
2567: for ac_exec_ext in '' $ac_executable_extensions; do
2568: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2569: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2570: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2571: break 2
2572: fi
2573: done
2574: done
2575: IFS=$as_save_IFS
2576:
2577: fi
2578: fi
2579: STRIP=$ac_cv_prog_STRIP
2580: if test -n "$STRIP"; then
2581: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2582: $as_echo "$STRIP" >&6; }
2583: else
2584: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2585: $as_echo "no" >&6; }
2586: fi
2587:
2588:
2589: fi
2590: if test -z "$ac_cv_prog_STRIP"; then
2591: ac_ct_STRIP=$STRIP
2592: # Extract the first word of "strip", so it can be a program name with args.
2593: set dummy strip; ac_word=$2
2594: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2595: $as_echo_n "checking for $ac_word... " >&6; }
2596: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2597: $as_echo_n "(cached) " >&6
2598: else
2599: if test -n "$ac_ct_STRIP"; then
2600: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2601: else
2602: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603: for as_dir in $PATH
2604: do
2605: IFS=$as_save_IFS
2606: test -z "$as_dir" && as_dir=.
2607: for ac_exec_ext in '' $ac_executable_extensions; do
2608: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2609: ac_cv_prog_ac_ct_STRIP="strip"
2610: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2611: break 2
2612: fi
2613: done
2614: done
2615: IFS=$as_save_IFS
2616:
2617: fi
2618: fi
2619: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2620: if test -n "$ac_ct_STRIP"; then
2621: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2622: $as_echo "$ac_ct_STRIP" >&6; }
2623: else
2624: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2625: $as_echo "no" >&6; }
2626: fi
2627:
2628: if test "x$ac_ct_STRIP" = x; then
2629: STRIP=":"
2630: else
2631: case $cross_compiling:$ac_tool_warned in
2632: yes:)
2633: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2634: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2635: ac_tool_warned=yes ;;
2636: esac
2637: STRIP=$ac_ct_STRIP
2638: fi
2639: else
2640: STRIP="$ac_cv_prog_STRIP"
2641: fi
2642:
2643: fi
2644: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2645:
2646: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2647: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2648: if test -z "$MKDIR_P"; then
2649: if ${ac_cv_path_mkdir+:} false; then :
2650: $as_echo_n "(cached) " >&6
2651: else
2652: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2654: do
2655: IFS=$as_save_IFS
2656: test -z "$as_dir" && as_dir=.
2657: for ac_prog in mkdir gmkdir; do
2658: for ac_exec_ext in '' $ac_executable_extensions; do
2659: as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2660: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2661: 'mkdir (GNU coreutils) '* | \
2662: 'mkdir (coreutils) '* | \
2663: 'mkdir (fileutils) '4.1*)
2664: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2665: break 3;;
2666: esac
2667: done
2668: done
2669: done
2670: IFS=$as_save_IFS
2671:
2672: fi
2673:
2674: test -d ./--version && rmdir ./--version
2675: if test "${ac_cv_path_mkdir+set}" = set; then
2676: MKDIR_P="$ac_cv_path_mkdir -p"
2677: else
2678: # As a last resort, use the slow shell script. Don't cache a
2679: # value for MKDIR_P within a source directory, because that will
2680: # break other packages using the cache if that directory is
2681: # removed, or if the value is a relative name.
2682: MKDIR_P="$ac_install_sh -d"
2683: fi
2684: fi
2685: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2686: $as_echo "$MKDIR_P" >&6; }
2687:
2688: for ac_prog in gawk mawk nawk awk
2689: do
2690: # Extract the first word of "$ac_prog", so it can be a program name with args.
2691: set dummy $ac_prog; ac_word=$2
2692: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2693: $as_echo_n "checking for $ac_word... " >&6; }
2694: if ${ac_cv_prog_AWK+:} false; then :
2695: $as_echo_n "(cached) " >&6
2696: else
2697: if test -n "$AWK"; then
2698: ac_cv_prog_AWK="$AWK" # Let the user override the test.
2699: else
2700: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701: for as_dir in $PATH
2702: do
2703: IFS=$as_save_IFS
2704: test -z "$as_dir" && as_dir=.
2705: for ac_exec_ext in '' $ac_executable_extensions; do
2706: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2707: ac_cv_prog_AWK="$ac_prog"
2708: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2709: break 2
2710: fi
2711: done
2712: done
2713: IFS=$as_save_IFS
2714:
2715: fi
2716: fi
2717: AWK=$ac_cv_prog_AWK
2718: if test -n "$AWK"; then
2719: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2720: $as_echo "$AWK" >&6; }
2721: else
2722: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2723: $as_echo "no" >&6; }
2724: fi
2725:
2726:
2727: test -n "$AWK" && break
2728: done
2729:
2730: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2731: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2732: set x ${MAKE-make}
2733: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2734: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2735: $as_echo_n "(cached) " >&6
2736: else
2737: cat >conftest.make <<\_ACEOF
2738: SHELL = /bin/sh
2739: all:
2740: @echo '@@@%%%=$(MAKE)=@@@%%%'
2741: _ACEOF
2742: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2743: case `${MAKE-make} -f conftest.make 2>/dev/null` in
2744: *@@@%%%=?*=@@@%%%*)
2745: eval ac_cv_prog_make_${ac_make}_set=yes;;
2746: *)
2747: eval ac_cv_prog_make_${ac_make}_set=no;;
2748: esac
2749: rm -f conftest.make
2750: fi
2751: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2752: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2753: $as_echo "yes" >&6; }
2754: SET_MAKE=
2755: else
2756: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757: $as_echo "no" >&6; }
2758: SET_MAKE="MAKE=${MAKE-make}"
2759: fi
2760:
2761: rm -rf .tst 2>/dev/null
2762: mkdir .tst 2>/dev/null
2763: if test -d .tst; then
2764: am__leading_dot=.
2765: else
2766: am__leading_dot=_
2767: fi
2768: rmdir .tst 2>/dev/null
2769:
2770: # Check whether --enable-silent-rules was given.
2771: if test "${enable_silent_rules+set}" = set; then :
2772: enableval=$enable_silent_rules;
2773: fi
2774:
2775: case $enable_silent_rules in # (((
2776: yes) AM_DEFAULT_VERBOSITY=0;;
2777: no) AM_DEFAULT_VERBOSITY=1;;
2778: *) AM_DEFAULT_VERBOSITY=1;;
2779: esac
2780: am_make=${MAKE-make}
2781: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2782: $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2783: if ${am_cv_make_support_nested_variables+:} false; then :
2784: $as_echo_n "(cached) " >&6
2785: else
2786: if $as_echo 'TRUE=$(BAR$(V))
2787: BAR0=false
2788: BAR1=true
2789: V=1
2790: am__doit:
2791: @$(TRUE)
2792: .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2793: am_cv_make_support_nested_variables=yes
2794: else
2795: am_cv_make_support_nested_variables=no
2796: fi
2797: fi
2798: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2799: $as_echo "$am_cv_make_support_nested_variables" >&6; }
2800: if test $am_cv_make_support_nested_variables = yes; then
2801: AM_V='$(V)'
2802: AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2803: else
2804: AM_V=$AM_DEFAULT_VERBOSITY
2805: AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2806: fi
2807: AM_BACKSLASH='\'
2808:
2809: if test "`cd $srcdir && pwd`" != "`pwd`"; then
2810: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2811: # is not polluted with repeated "-I."
2812: am__isrc=' -I$(srcdir)'
2813: # test to see if srcdir already configured
2814: if test -f $srcdir/config.status; then
2815: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2816: fi
2817: fi
2818:
2819: # test whether we have cygpath
2820: if test -z "$CYGPATH_W"; then
2821: if (cygpath --version) >/dev/null 2>/dev/null; then
2822: CYGPATH_W='cygpath -w'
2823: else
2824: CYGPATH_W=echo
2825: fi
2826: fi
2827:
2828:
2829: # Define the identity of the package.
2830: PACKAGE='lac'
2831: VERSION='0.1.0'
2832:
2833:
2834: cat >>confdefs.h <<_ACEOF
2835: #define PACKAGE "$PACKAGE"
2836: _ACEOF
2837:
2838:
2839: cat >>confdefs.h <<_ACEOF
2840: #define VERSION "$VERSION"
2841: _ACEOF
2842:
2843: # Some tools Automake needs.
2844:
2845: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2846:
2847:
2848: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2849:
2850:
2851: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2852:
2853:
2854: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2855:
2856:
2857: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2858:
2859: # For better backward compatibility. To be removed once Automake 1.9.x
2860: # dies out for good. For more background, see:
2861: # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2862: # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2863: mkdir_p='$(MKDIR_P)'
2864:
2865: # We need awk for the "check" target (and possibly the TAP driver). The
2866: # system "awk" is bad on some platforms.
2867: # Always define AMTAR for backward compatibility. Yes, it's still used
2868: # in the wild :-( We should find a proper way to deprecate it ...
2869: AMTAR='$${TAR-tar}'
2870:
2871:
2872: # We'll loop over all known methods to create a tar archive until one works.
2873: _am_tools='gnutar pax cpio none'
2874:
2875: am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2876:
2877:
2878:
2879:
2880:
2881:
2882: # POSIX will say in a future version that running "rm -f" with no argument
2883: # is OK; and we want to be able to make that assumption in our Makefile
2884: # recipes. So use an aggressive probe to check that the usage we want is
2885: # actually supported "in the wild" to an acceptable degree.
2886: # See automake bug#10828.
2887: # To make any issue more visible, cause the running configure to be aborted
2888: # by default if the 'rm' program in use doesn't match our expectations; the
2889: # user can still override this though.
2890: if rm -f && rm -fr && rm -rf; then : OK; else
2891: cat >&2 <<'END'
2892: Oops!
2893:
2894: Your 'rm' program seems unable to run without file operands specified
2895: on the command line, even when the '-f' option is present. This is contrary
2896: to the behaviour of most rm programs out there, and not conforming with
2897: the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2898:
2899: Please tell bug-automake@gnu.org about your system, including the value
2900: of your $PATH and any error possibly output before this message. This
2901: can help us improve future automake versions.
2902:
2903: END
2904: if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2905: echo 'Configuration will proceed anyway, since you have set the' >&2
2906: echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2907: echo >&2
2908: else
2909: cat >&2 <<'END'
2910: Aborting the configuration process, to ensure you take notice of the issue.
2911:
2912: You can download and install GNU coreutils to get an 'rm' implementation
2913: that behaves properly: <http://www.gnu.org/software/coreutils/>.
2914:
2915: If you want to complete the configuration process using your problematic
2916: 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2917: to "yes", and re-run configure.
2918:
2919: END
2920: as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2921: fi
2922: fi
2923:
2924:
2925:
2926:
2927: # Checks for programs.
2928: ac_ext=c
2929: ac_cpp='$CPP $CPPFLAGS'
2930: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2931: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2932: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2933: if test -n "$ac_tool_prefix"; then
2934: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2935: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2936: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937: $as_echo_n "checking for $ac_word... " >&6; }
2938: if ${ac_cv_prog_CC+:} false; then :
2939: $as_echo_n "(cached) " >&6
2940: else
2941: if test -n "$CC"; then
2942: ac_cv_prog_CC="$CC" # Let the user override the test.
2943: else
2944: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945: for as_dir in $PATH
2946: do
2947: IFS=$as_save_IFS
2948: test -z "$as_dir" && as_dir=.
2949: for ac_exec_ext in '' $ac_executable_extensions; do
2950: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2951: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2952: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2953: break 2
2954: fi
2955: done
2956: done
2957: IFS=$as_save_IFS
2958:
2959: fi
2960: fi
2961: CC=$ac_cv_prog_CC
2962: if test -n "$CC"; then
2963: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2964: $as_echo "$CC" >&6; }
2965: else
2966: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967: $as_echo "no" >&6; }
2968: fi
2969:
2970:
2971: fi
2972: if test -z "$ac_cv_prog_CC"; then
2973: ac_ct_CC=$CC
2974: # Extract the first word of "gcc", so it can be a program name with args.
2975: set dummy gcc; ac_word=$2
2976: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2977: $as_echo_n "checking for $ac_word... " >&6; }
2978: if ${ac_cv_prog_ac_ct_CC+:} false; then :
2979: $as_echo_n "(cached) " >&6
2980: else
2981: if test -n "$ac_ct_CC"; then
2982: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2983: else
2984: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985: for as_dir in $PATH
2986: do
2987: IFS=$as_save_IFS
2988: test -z "$as_dir" && as_dir=.
2989: for ac_exec_ext in '' $ac_executable_extensions; do
2990: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2991: ac_cv_prog_ac_ct_CC="gcc"
2992: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2993: break 2
2994: fi
2995: done
2996: done
2997: IFS=$as_save_IFS
2998:
2999: fi
3000: fi
3001: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3002: if test -n "$ac_ct_CC"; then
3003: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3004: $as_echo "$ac_ct_CC" >&6; }
3005: else
3006: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007: $as_echo "no" >&6; }
3008: fi
3009:
3010: if test "x$ac_ct_CC" = x; then
3011: CC=""
3012: else
3013: case $cross_compiling:$ac_tool_warned in
3014: yes:)
3015: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3016: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3017: ac_tool_warned=yes ;;
3018: esac
3019: CC=$ac_ct_CC
3020: fi
3021: else
3022: CC="$ac_cv_prog_CC"
3023: fi
3024:
3025: if test -z "$CC"; then
3026: if test -n "$ac_tool_prefix"; then
3027: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3028: set dummy ${ac_tool_prefix}cc; ac_word=$2
3029: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030: $as_echo_n "checking for $ac_word... " >&6; }
3031: if ${ac_cv_prog_CC+:} false; then :
3032: $as_echo_n "(cached) " >&6
3033: else
3034: if test -n "$CC"; then
3035: ac_cv_prog_CC="$CC" # Let the user override the test.
3036: else
3037: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038: for as_dir in $PATH
3039: do
3040: IFS=$as_save_IFS
3041: test -z "$as_dir" && as_dir=.
3042: for ac_exec_ext in '' $ac_executable_extensions; do
3043: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3044: ac_cv_prog_CC="${ac_tool_prefix}cc"
3045: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3046: break 2
3047: fi
3048: done
3049: done
3050: IFS=$as_save_IFS
3051:
3052: fi
3053: fi
3054: CC=$ac_cv_prog_CC
3055: if test -n "$CC"; then
3056: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3057: $as_echo "$CC" >&6; }
3058: else
3059: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3060: $as_echo "no" >&6; }
3061: fi
3062:
3063:
3064: fi
3065: fi
3066: if test -z "$CC"; then
3067: # Extract the first word of "cc", so it can be a program name with args.
3068: set dummy cc; ac_word=$2
3069: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3070: $as_echo_n "checking for $ac_word... " >&6; }
3071: if ${ac_cv_prog_CC+:} false; then :
3072: $as_echo_n "(cached) " >&6
3073: else
3074: if test -n "$CC"; then
3075: ac_cv_prog_CC="$CC" # Let the user override the test.
3076: else
3077: ac_prog_rejected=no
3078: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079: for as_dir in $PATH
3080: do
3081: IFS=$as_save_IFS
3082: test -z "$as_dir" && as_dir=.
3083: for ac_exec_ext in '' $ac_executable_extensions; do
3084: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3085: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3086: ac_prog_rejected=yes
3087: continue
3088: fi
3089: ac_cv_prog_CC="cc"
3090: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3091: break 2
3092: fi
3093: done
3094: done
3095: IFS=$as_save_IFS
3096:
3097: if test $ac_prog_rejected = yes; then
3098: # We found a bogon in the path, so make sure we never use it.
3099: set dummy $ac_cv_prog_CC
3100: shift
3101: if test $# != 0; then
3102: # We chose a different compiler from the bogus one.
3103: # However, it has the same basename, so the bogon will be chosen
3104: # first if we set CC to just the basename; use the full file name.
3105: shift
3106: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3107: fi
3108: fi
3109: fi
3110: fi
3111: CC=$ac_cv_prog_CC
3112: if test -n "$CC"; then
3113: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3114: $as_echo "$CC" >&6; }
3115: else
3116: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117: $as_echo "no" >&6; }
3118: fi
3119:
3120:
3121: fi
3122: if test -z "$CC"; then
3123: if test -n "$ac_tool_prefix"; then
3124: for ac_prog in cl.exe
3125: do
3126: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3127: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3128: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129: $as_echo_n "checking for $ac_word... " >&6; }
3130: if ${ac_cv_prog_CC+:} false; then :
3131: $as_echo_n "(cached) " >&6
3132: else
3133: if test -n "$CC"; then
3134: ac_cv_prog_CC="$CC" # Let the user override the test.
3135: else
3136: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137: for as_dir in $PATH
3138: do
3139: IFS=$as_save_IFS
3140: test -z "$as_dir" && as_dir=.
3141: for ac_exec_ext in '' $ac_executable_extensions; do
3142: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3143: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3144: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3145: break 2
3146: fi
3147: done
3148: done
3149: IFS=$as_save_IFS
3150:
3151: fi
3152: fi
3153: CC=$ac_cv_prog_CC
3154: if test -n "$CC"; then
3155: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3156: $as_echo "$CC" >&6; }
3157: else
3158: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159: $as_echo "no" >&6; }
3160: fi
3161:
3162:
3163: test -n "$CC" && break
3164: done
3165: fi
3166: if test -z "$CC"; then
3167: ac_ct_CC=$CC
3168: for ac_prog in cl.exe
3169: do
3170: # Extract the first word of "$ac_prog", so it can be a program name with args.
3171: set dummy $ac_prog; ac_word=$2
3172: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173: $as_echo_n "checking for $ac_word... " >&6; }
3174: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3175: $as_echo_n "(cached) " >&6
3176: else
3177: if test -n "$ac_ct_CC"; then
3178: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3179: else
3180: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181: for as_dir in $PATH
3182: do
3183: IFS=$as_save_IFS
3184: test -z "$as_dir" && as_dir=.
3185: for ac_exec_ext in '' $ac_executable_extensions; do
3186: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3187: ac_cv_prog_ac_ct_CC="$ac_prog"
3188: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3189: break 2
3190: fi
3191: done
3192: done
3193: IFS=$as_save_IFS
3194:
3195: fi
3196: fi
3197: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3198: if test -n "$ac_ct_CC"; then
3199: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3200: $as_echo "$ac_ct_CC" >&6; }
3201: else
3202: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203: $as_echo "no" >&6; }
3204: fi
3205:
3206:
3207: test -n "$ac_ct_CC" && break
3208: done
3209:
3210: if test "x$ac_ct_CC" = x; then
3211: CC=""
3212: else
3213: case $cross_compiling:$ac_tool_warned in
3214: yes:)
3215: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3216: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3217: ac_tool_warned=yes ;;
3218: esac
3219: CC=$ac_ct_CC
3220: fi
3221: fi
3222:
3223: fi
3224:
3225:
3226: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3227: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3228: as_fn_error $? "no acceptable C compiler found in \$PATH
3229: See \`config.log' for more details" "$LINENO" 5; }
3230:
3231: # Provide some information about the compiler.
3232: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3233: set X $ac_compile
3234: ac_compiler=$2
3235: for ac_option in --version -v -V -qversion; do
3236: { { ac_try="$ac_compiler $ac_option >&5"
3237: case "(($ac_try" in
3238: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239: *) ac_try_echo=$ac_try;;
3240: esac
3241: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3242: $as_echo "$ac_try_echo"; } >&5
3243: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3244: ac_status=$?
3245: if test -s conftest.err; then
3246: sed '10a\
3247: ... rest of stderr output deleted ...
3248: 10q' conftest.err >conftest.er1
3249: cat conftest.er1 >&5
3250: fi
3251: rm -f conftest.er1 conftest.err
3252: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3253: test $ac_status = 0; }
3254: done
3255:
3256: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3257: /* end confdefs.h. */
3258:
3259: int
3260: main ()
3261: {
3262:
3263: ;
3264: return 0;
3265: }
3266: _ACEOF
3267: ac_clean_files_save=$ac_clean_files
3268: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3269: # Try to create an executable without -o first, disregard a.out.
3270: # It will help us diagnose broken compilers, and finding out an intuition
3271: # of exeext.
3272: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3273: $as_echo_n "checking whether the C compiler works... " >&6; }
3274: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3275:
3276: # The possible output files:
3277: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3278:
3279: ac_rmfiles=
3280: for ac_file in $ac_files
3281: do
3282: case $ac_file in
3283: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3284: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3285: esac
3286: done
3287: rm -f $ac_rmfiles
3288:
3289: if { { ac_try="$ac_link_default"
3290: case "(($ac_try" in
3291: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292: *) ac_try_echo=$ac_try;;
3293: esac
3294: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3295: $as_echo "$ac_try_echo"; } >&5
3296: (eval "$ac_link_default") 2>&5
3297: ac_status=$?
3298: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3299: test $ac_status = 0; }; then :
3300: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3301: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3302: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3303: # so that the user can short-circuit this test for compilers unknown to
3304: # Autoconf.
3305: for ac_file in $ac_files ''
3306: do
3307: test -f "$ac_file" || continue
3308: case $ac_file in
3309: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3310: ;;
3311: [ab].out )
3312: # We found the default executable, but exeext='' is most
3313: # certainly right.
3314: break;;
3315: *.* )
3316: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3317: then :; else
3318: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3319: fi
3320: # We set ac_cv_exeext here because the later test for it is not
3321: # safe: cross compilers may not add the suffix if given an `-o'
3322: # argument, so we may need to know it at that point already.
3323: # Even if this section looks crufty: it has the advantage of
3324: # actually working.
3325: break;;
3326: * )
3327: break;;
3328: esac
3329: done
3330: test "$ac_cv_exeext" = no && ac_cv_exeext=
3331:
3332: else
3333: ac_file=''
3334: fi
3335: if test -z "$ac_file"; then :
3336: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337: $as_echo "no" >&6; }
3338: $as_echo "$as_me: failed program was:" >&5
3339: sed 's/^/| /' conftest.$ac_ext >&5
3340:
3341: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3342: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3343: as_fn_error 77 "C compiler cannot create executables
3344: See \`config.log' for more details" "$LINENO" 5; }
3345: else
3346: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3347: $as_echo "yes" >&6; }
3348: fi
3349: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3350: $as_echo_n "checking for C compiler default output file name... " >&6; }
3351: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3352: $as_echo "$ac_file" >&6; }
3353: ac_exeext=$ac_cv_exeext
3354:
3355: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3356: ac_clean_files=$ac_clean_files_save
3357: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3358: $as_echo_n "checking for suffix of executables... " >&6; }
3359: if { { ac_try="$ac_link"
3360: case "(($ac_try" in
3361: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362: *) ac_try_echo=$ac_try;;
3363: esac
3364: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3365: $as_echo "$ac_try_echo"; } >&5
3366: (eval "$ac_link") 2>&5
3367: ac_status=$?
3368: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3369: test $ac_status = 0; }; then :
3370: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3371: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3372: # work properly (i.e., refer to `conftest.exe'), while it won't with
3373: # `rm'.
3374: for ac_file in conftest.exe conftest conftest.*; do
3375: test -f "$ac_file" || continue
3376: case $ac_file in
3377: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3378: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3379: break;;
3380: * ) break;;
3381: esac
3382: done
3383: else
3384: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3385: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3386: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3387: See \`config.log' for more details" "$LINENO" 5; }
3388: fi
3389: rm -f conftest conftest$ac_cv_exeext
3390: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3391: $as_echo "$ac_cv_exeext" >&6; }
3392:
3393: rm -f conftest.$ac_ext
3394: EXEEXT=$ac_cv_exeext
3395: ac_exeext=$EXEEXT
3396: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397: /* end confdefs.h. */
3398: #include <stdio.h>
3399: int
3400: main ()
3401: {
3402: FILE *f = fopen ("conftest.out", "w");
3403: return ferror (f) || fclose (f) != 0;
3404:
3405: ;
3406: return 0;
3407: }
3408: _ACEOF
3409: ac_clean_files="$ac_clean_files conftest.out"
3410: # Check that the compiler produces executables we can run. If not, either
3411: # the compiler is broken, or we cross compile.
3412: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3413: $as_echo_n "checking whether we are cross compiling... " >&6; }
3414: if test "$cross_compiling" != yes; then
3415: { { ac_try="$ac_link"
3416: case "(($ac_try" in
3417: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418: *) ac_try_echo=$ac_try;;
3419: esac
3420: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3421: $as_echo "$ac_try_echo"; } >&5
3422: (eval "$ac_link") 2>&5
3423: ac_status=$?
3424: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3425: test $ac_status = 0; }
3426: if { ac_try='./conftest$ac_cv_exeext'
3427: { { case "(($ac_try" in
3428: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429: *) ac_try_echo=$ac_try;;
3430: esac
3431: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432: $as_echo "$ac_try_echo"; } >&5
3433: (eval "$ac_try") 2>&5
3434: ac_status=$?
3435: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436: test $ac_status = 0; }; }; then
3437: cross_compiling=no
3438: else
3439: if test "$cross_compiling" = maybe; then
3440: cross_compiling=yes
3441: else
3442: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3443: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3444: as_fn_error $? "cannot run C compiled programs.
3445: If you meant to cross compile, use \`--host'.
3446: See \`config.log' for more details" "$LINENO" 5; }
3447: fi
3448: fi
3449: fi
3450: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3451: $as_echo "$cross_compiling" >&6; }
3452:
3453: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3454: ac_clean_files=$ac_clean_files_save
3455: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3456: $as_echo_n "checking for suffix of object files... " >&6; }
3457: if ${ac_cv_objext+:} false; then :
3458: $as_echo_n "(cached) " >&6
3459: else
3460: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461: /* end confdefs.h. */
3462:
3463: int
3464: main ()
3465: {
3466:
3467: ;
3468: return 0;
3469: }
3470: _ACEOF
3471: rm -f conftest.o conftest.obj
3472: if { { ac_try="$ac_compile"
3473: case "(($ac_try" in
3474: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475: *) ac_try_echo=$ac_try;;
3476: esac
3477: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3478: $as_echo "$ac_try_echo"; } >&5
3479: (eval "$ac_compile") 2>&5
3480: ac_status=$?
3481: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3482: test $ac_status = 0; }; then :
3483: for ac_file in conftest.o conftest.obj conftest.*; do
3484: test -f "$ac_file" || continue;
3485: case $ac_file in
3486: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3487: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3488: break;;
3489: esac
3490: done
3491: else
3492: $as_echo "$as_me: failed program was:" >&5
3493: sed 's/^/| /' conftest.$ac_ext >&5
3494:
3495: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3496: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3497: as_fn_error $? "cannot compute suffix of object files: cannot compile
3498: See \`config.log' for more details" "$LINENO" 5; }
3499: fi
3500: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3501: fi
3502: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3503: $as_echo "$ac_cv_objext" >&6; }
3504: OBJEXT=$ac_cv_objext
3505: ac_objext=$OBJEXT
3506: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3507: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3508: if ${ac_cv_c_compiler_gnu+:} false; then :
3509: $as_echo_n "(cached) " >&6
3510: else
3511: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512: /* end confdefs.h. */
3513:
3514: int
3515: main ()
3516: {
3517: #ifndef __GNUC__
3518: choke me
3519: #endif
3520:
3521: ;
3522: return 0;
3523: }
3524: _ACEOF
3525: if ac_fn_c_try_compile "$LINENO"; then :
3526: ac_compiler_gnu=yes
3527: else
3528: ac_compiler_gnu=no
3529: fi
3530: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3531: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3532:
3533: fi
3534: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3535: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3536: if test $ac_compiler_gnu = yes; then
3537: GCC=yes
3538: else
3539: GCC=
3540: fi
3541: ac_test_CFLAGS=${CFLAGS+set}
3542: ac_save_CFLAGS=$CFLAGS
3543: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3544: $as_echo_n "checking whether $CC accepts -g... " >&6; }
3545: if ${ac_cv_prog_cc_g+:} false; then :
3546: $as_echo_n "(cached) " >&6
3547: else
3548: ac_save_c_werror_flag=$ac_c_werror_flag
3549: ac_c_werror_flag=yes
3550: ac_cv_prog_cc_g=no
3551: CFLAGS="-g"
3552: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553: /* end confdefs.h. */
3554:
3555: int
3556: main ()
3557: {
3558:
3559: ;
3560: return 0;
3561: }
3562: _ACEOF
3563: if ac_fn_c_try_compile "$LINENO"; then :
3564: ac_cv_prog_cc_g=yes
3565: else
3566: CFLAGS=""
3567: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568: /* end confdefs.h. */
3569:
3570: int
3571: main ()
3572: {
3573:
3574: ;
3575: return 0;
3576: }
3577: _ACEOF
3578: if ac_fn_c_try_compile "$LINENO"; then :
3579:
3580: else
3581: ac_c_werror_flag=$ac_save_c_werror_flag
3582: CFLAGS="-g"
3583: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584: /* end confdefs.h. */
3585:
3586: int
3587: main ()
3588: {
3589:
3590: ;
3591: return 0;
3592: }
3593: _ACEOF
3594: if ac_fn_c_try_compile "$LINENO"; then :
3595: ac_cv_prog_cc_g=yes
3596: fi
3597: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598: fi
3599: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3600: fi
3601: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602: ac_c_werror_flag=$ac_save_c_werror_flag
3603: fi
3604: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3605: $as_echo "$ac_cv_prog_cc_g" >&6; }
3606: if test "$ac_test_CFLAGS" = set; then
3607: CFLAGS=$ac_save_CFLAGS
3608: elif test $ac_cv_prog_cc_g = yes; then
3609: if test "$GCC" = yes; then
3610: CFLAGS="-g -O2"
3611: else
3612: CFLAGS="-g"
3613: fi
3614: else
3615: if test "$GCC" = yes; then
3616: CFLAGS="-O2"
3617: else
3618: CFLAGS=
3619: fi
3620: fi
3621: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3622: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3623: if ${ac_cv_prog_cc_c89+:} false; then :
3624: $as_echo_n "(cached) " >&6
3625: else
3626: ac_cv_prog_cc_c89=no
3627: ac_save_CC=$CC
3628: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629: /* end confdefs.h. */
3630: #include <stdarg.h>
3631: #include <stdio.h>
3632: struct stat;
3633: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3634: struct buf { int x; };
3635: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3636: static char *e (p, i)
3637: char **p;
3638: int i;
3639: {
3640: return p[i];
3641: }
3642: static char *f (char * (*g) (char **, int), char **p, ...)
3643: {
3644: char *s;
3645: va_list v;
3646: va_start (v,p);
3647: s = g (p, va_arg (v,int));
3648: va_end (v);
3649: return s;
3650: }
3651:
3652: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3653: function prototypes and stuff, but not '\xHH' hex character constants.
3654: These don't provoke an error unfortunately, instead are silently treated
3655: as 'x'. The following induces an error, until -std is added to get
3656: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3657: array size at least. It's necessary to write '\x00'==0 to get something
3658: that's true only with -std. */
3659: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3660:
3661: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3662: inside strings and character constants. */
3663: #define FOO(x) 'x'
3664: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3665:
3666: int test (int i, double x);
3667: struct s1 {int (*f) (int a);};
3668: struct s2 {int (*f) (double a);};
3669: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3670: int argc;
3671: char **argv;
3672: int
3673: main ()
3674: {
3675: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3676: ;
3677: return 0;
3678: }
3679: _ACEOF
3680: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3681: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3682: do
3683: CC="$ac_save_CC $ac_arg"
3684: if ac_fn_c_try_compile "$LINENO"; then :
3685: ac_cv_prog_cc_c89=$ac_arg
3686: fi
3687: rm -f core conftest.err conftest.$ac_objext
3688: test "x$ac_cv_prog_cc_c89" != "xno" && break
3689: done
3690: rm -f conftest.$ac_ext
3691: CC=$ac_save_CC
3692:
3693: fi
3694: # AC_CACHE_VAL
3695: case "x$ac_cv_prog_cc_c89" in
3696: x)
3697: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3698: $as_echo "none needed" >&6; } ;;
3699: xno)
3700: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3701: $as_echo "unsupported" >&6; } ;;
3702: *)
3703: CC="$CC $ac_cv_prog_cc_c89"
3704: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3705: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3706: esac
3707: if test "x$ac_cv_prog_cc_c89" != xno; then :
3708:
3709: fi
3710:
3711: ac_ext=c
3712: ac_cpp='$CPP $CPPFLAGS'
3713: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3714: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3715: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3716:
3717: ac_ext=c
3718: ac_cpp='$CPP $CPPFLAGS'
3719: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3720: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3721: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3722: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3723: $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3724: if ${am_cv_prog_cc_c_o+:} false; then :
3725: $as_echo_n "(cached) " >&6
3726: else
3727: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728: /* end confdefs.h. */
3729:
3730: int
3731: main ()
3732: {
3733:
3734: ;
3735: return 0;
3736: }
3737: _ACEOF
3738: # Make sure it works both with $CC and with simple cc.
3739: # Following AC_PROG_CC_C_O, we do the test twice because some
3740: # compilers refuse to overwrite an existing .o file with -o,
3741: # though they will create one.
3742: am_cv_prog_cc_c_o=yes
3743: for am_i in 1 2; do
3744: if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3745: ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3746: ac_status=$?
3747: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748: (exit $ac_status); } \
3749: && test -f conftest2.$ac_objext; then
3750: : OK
3751: else
3752: am_cv_prog_cc_c_o=no
3753: break
3754: fi
3755: done
3756: rm -f core conftest*
3757: unset am_i
3758: fi
3759: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3760: $as_echo "$am_cv_prog_cc_c_o" >&6; }
3761: if test "$am_cv_prog_cc_c_o" != yes; then
3762: # Losing compiler, so override with the script.
3763: # FIXME: It is wrong to rewrite CC.
3764: # But if we don't then we get into trouble of one sort or another.
3765: # A longer-term fix would be to have automake use am__CC in this case,
3766: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3767: CC="$am_aux_dir/compile $CC"
3768: fi
3769: ac_ext=c
3770: ac_cpp='$CPP $CPPFLAGS'
3771: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3772: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3773: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3774:
3775: DEPDIR="${am__leading_dot}deps"
3776:
3777: ac_config_commands="$ac_config_commands depfiles"
3778:
3779:
3780: am_make=${MAKE-make}
3781: cat > confinc << 'END'
3782: am__doit:
3783: @echo this is the am__doit target
3784: .PHONY: am__doit
3785: END
3786: # If we don't find an include directive, just comment out the code.
3787: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3788: $as_echo_n "checking for style of include used by $am_make... " >&6; }
3789: am__include="#"
3790: am__quote=
3791: _am_result=none
3792: # First try GNU make style include.
3793: echo "include confinc" > confmf
3794: # Ignore all kinds of additional output from 'make'.
3795: case `$am_make -s -f confmf 2> /dev/null` in #(
3796: *the\ am__doit\ target*)
3797: am__include=include
3798: am__quote=
3799: _am_result=GNU
3800: ;;
3801: esac
3802: # Now try BSD make style include.
3803: if test "$am__include" = "#"; then
3804: echo '.include "confinc"' > confmf
3805: case `$am_make -s -f confmf 2> /dev/null` in #(
3806: *the\ am__doit\ target*)
3807: am__include=.include
3808: am__quote="\""
3809: _am_result=BSD
3810: ;;
3811: esac
3812: fi
3813:
3814:
3815: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3816: $as_echo "$_am_result" >&6; }
3817: rm -f confinc confmf
3818:
3819: # Check whether --enable-dependency-tracking was given.
3820: if test "${enable_dependency_tracking+set}" = set; then :
3821: enableval=$enable_dependency_tracking;
3822: fi
3823:
3824: if test "x$enable_dependency_tracking" != xno; then
3825: am_depcomp="$ac_aux_dir/depcomp"
3826: AMDEPBACKSLASH='\'
3827: am__nodep='_no'
3828: fi
3829: if test "x$enable_dependency_tracking" != xno; then
3830: AMDEP_TRUE=
3831: AMDEP_FALSE='#'
3832: else
3833: AMDEP_TRUE='#'
3834: AMDEP_FALSE=
3835: fi
3836:
3837:
3838:
3839: depcc="$CC" am_compiler_list=
3840:
3841: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3842: $as_echo_n "checking dependency style of $depcc... " >&6; }
3843: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3844: $as_echo_n "(cached) " >&6
3845: else
3846: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3847: # We make a subdir and do the tests there. Otherwise we can end up
3848: # making bogus files that we don't know about and never remove. For
3849: # instance it was reported that on HP-UX the gcc test will end up
3850: # making a dummy file named 'D' -- because '-MD' means "put the output
3851: # in D".
3852: rm -rf conftest.dir
3853: mkdir conftest.dir
3854: # Copy depcomp to subdir because otherwise we won't find it if we're
3855: # using a relative directory.
3856: cp "$am_depcomp" conftest.dir
3857: cd conftest.dir
3858: # We will build objects and dependencies in a subdirectory because
3859: # it helps to detect inapplicable dependency modes. For instance
3860: # both Tru64's cc and ICC support -MD to output dependencies as a
3861: # side effect of compilation, but ICC will put the dependencies in
3862: # the current directory while Tru64 will put them in the object
3863: # directory.
3864: mkdir sub
3865:
3866: am_cv_CC_dependencies_compiler_type=none
3867: if test "$am_compiler_list" = ""; then
3868: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3869: fi
3870: am__universal=false
3871: case " $depcc " in #(
3872: *\ -arch\ *\ -arch\ *) am__universal=true ;;
3873: esac
3874:
3875: for depmode in $am_compiler_list; do
3876: # Setup a source with many dependencies, because some compilers
3877: # like to wrap large dependency lists on column 80 (with \), and
3878: # we should not choose a depcomp mode which is confused by this.
3879: #
3880: # We need to recreate these files for each test, as the compiler may
3881: # overwrite some of them when testing with obscure command lines.
3882: # This happens at least with the AIX C compiler.
3883: : > sub/conftest.c
3884: for i in 1 2 3 4 5 6; do
3885: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3886: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3887: # Solaris 10 /bin/sh.
3888: echo '/* dummy */' > sub/conftst$i.h
3889: done
3890: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3891:
3892: # We check with '-c' and '-o' for the sake of the "dashmstdout"
3893: # mode. It turns out that the SunPro C++ compiler does not properly
3894: # handle '-M -o', and we need to detect this. Also, some Intel
3895: # versions had trouble with output in subdirs.
3896: am__obj=sub/conftest.${OBJEXT-o}
3897: am__minus_obj="-o $am__obj"
3898: case $depmode in
3899: gcc)
3900: # This depmode causes a compiler race in universal mode.
3901: test "$am__universal" = false || continue
3902: ;;
3903: nosideeffect)
3904: # After this tag, mechanisms are not by side-effect, so they'll
3905: # only be used when explicitly requested.
3906: if test "x$enable_dependency_tracking" = xyes; then
3907: continue
3908: else
3909: break
3910: fi
3911: ;;
3912: msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3913: # This compiler won't grok '-c -o', but also, the minuso test has
3914: # not run yet. These depmodes are late enough in the game, and
3915: # so weak that their functioning should not be impacted.
3916: am__obj=conftest.${OBJEXT-o}
3917: am__minus_obj=
3918: ;;
3919: none) break ;;
3920: esac
3921: if depmode=$depmode \
3922: source=sub/conftest.c object=$am__obj \
3923: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3924: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3925: >/dev/null 2>conftest.err &&
3926: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3927: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3928: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3929: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3930: # icc doesn't choke on unknown options, it will just issue warnings
3931: # or remarks (even with -Werror). So we grep stderr for any message
3932: # that says an option was ignored or not supported.
3933: # When given -MP, icc 7.0 and 7.1 complain thusly:
3934: # icc: Command line warning: ignoring option '-M'; no argument required
3935: # The diagnosis changed in icc 8.0:
3936: # icc: Command line remark: option '-MP' not supported
3937: if (grep 'ignoring option' conftest.err ||
3938: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3939: am_cv_CC_dependencies_compiler_type=$depmode
3940: break
3941: fi
3942: fi
3943: done
3944:
3945: cd ..
3946: rm -rf conftest.dir
3947: else
3948: am_cv_CC_dependencies_compiler_type=none
3949: fi
3950:
3951: fi
3952: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3953: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3954: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3955:
3956: if
3957: test "x$enable_dependency_tracking" != xno \
3958: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3959: am__fastdepCC_TRUE=
3960: am__fastdepCC_FALSE='#'
3961: else
3962: am__fastdepCC_TRUE='#'
3963: am__fastdepCC_FALSE=
3964: fi
3965:
3966:
3967:
3968: # Extract the first word of "bison", so it can be a program name with args.
3969: set dummy bison; ac_word=$2
3970: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3971: $as_echo_n "checking for $ac_word... " >&6; }
3972: if ${ac_cv_path_BISON+:} false; then :
3973: $as_echo_n "(cached) " >&6
3974: else
3975: case $BISON in
3976: [\\/]* | ?:[\\/]*)
3977: ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
3978: ;;
3979: *)
3980: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981: for as_dir in $PATH
3982: do
3983: IFS=$as_save_IFS
3984: test -z "$as_dir" && as_dir=.
3985: for ac_exec_ext in '' $ac_executable_extensions; do
3986: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3987: ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
3988: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3989: break 2
3990: fi
3991: done
3992: done
3993: IFS=$as_save_IFS
3994:
3995: ;;
3996: esac
3997: fi
3998: BISON=$ac_cv_path_BISON
3999: if test -n "$BISON"; then
4000: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4001: $as_echo "$BISON" >&6; }
4002: else
4003: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4004: $as_echo "no" >&6; }
4005: fi
4006:
4007:
4008: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4009: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4010: if ${ac_cv_path_SED+:} false; then :
4011: $as_echo_n "(cached) " >&6
4012: else
4013: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4014: for ac_i in 1 2 3 4 5 6 7; do
4015: ac_script="$ac_script$as_nl$ac_script"
4016: done
4017: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4018: { ac_script=; unset ac_script;}
4019: if test -z "$SED"; then
4020: ac_path_SED_found=false
4021: # Loop through the user's path and test for each of PROGNAME-LIST
4022: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023: for as_dir in $PATH
4024: do
4025: IFS=$as_save_IFS
4026: test -z "$as_dir" && as_dir=.
4027: for ac_prog in sed gsed; do
4028: for ac_exec_ext in '' $ac_executable_extensions; do
4029: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4030: as_fn_executable_p "$ac_path_SED" || continue
4031: # Check for GNU ac_path_SED and select it if it is found.
4032: # Check for GNU $ac_path_SED
4033: case `"$ac_path_SED" --version 2>&1` in
4034: *GNU*)
4035: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4036: *)
4037: ac_count=0
4038: $as_echo_n 0123456789 >"conftest.in"
4039: while :
4040: do
4041: cat "conftest.in" "conftest.in" >"conftest.tmp"
4042: mv "conftest.tmp" "conftest.in"
4043: cp "conftest.in" "conftest.nl"
4044: $as_echo '' >> "conftest.nl"
4045: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4046: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4047: as_fn_arith $ac_count + 1 && ac_count=$as_val
4048: if test $ac_count -gt ${ac_path_SED_max-0}; then
4049: # Best one so far, save it but keep looking for a better one
4050: ac_cv_path_SED="$ac_path_SED"
4051: ac_path_SED_max=$ac_count
4052: fi
4053: # 10*(2^10) chars as input seems more than enough
4054: test $ac_count -gt 10 && break
4055: done
4056: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4057: esac
4058:
4059: $ac_path_SED_found && break 3
4060: done
4061: done
4062: done
4063: IFS=$as_save_IFS
4064: if test -z "$ac_cv_path_SED"; then
4065: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4066: fi
4067: else
4068: ac_cv_path_SED=$SED
4069: fi
4070:
4071: fi
4072: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4073: $as_echo "$ac_cv_path_SED" >&6; }
4074: SED="$ac_cv_path_SED"
4075: rm -f conftest.sed
4076:
4077: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4078: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4079: if ${ac_cv_path_GREP+:} false; then :
4080: $as_echo_n "(cached) " >&6
4081: else
4082: if test -z "$GREP"; then
4083: ac_path_GREP_found=false
4084: # Loop through the user's path and test for each of PROGNAME-LIST
4085: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4087: do
4088: IFS=$as_save_IFS
4089: test -z "$as_dir" && as_dir=.
4090: for ac_prog in grep ggrep; do
4091: for ac_exec_ext in '' $ac_executable_extensions; do
4092: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4093: as_fn_executable_p "$ac_path_GREP" || continue
4094: # Check for GNU ac_path_GREP and select it if it is found.
4095: # Check for GNU $ac_path_GREP
4096: case `"$ac_path_GREP" --version 2>&1` in
4097: *GNU*)
4098: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4099: *)
4100: ac_count=0
4101: $as_echo_n 0123456789 >"conftest.in"
4102: while :
4103: do
4104: cat "conftest.in" "conftest.in" >"conftest.tmp"
4105: mv "conftest.tmp" "conftest.in"
4106: cp "conftest.in" "conftest.nl"
4107: $as_echo 'GREP' >> "conftest.nl"
4108: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4109: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4110: as_fn_arith $ac_count + 1 && ac_count=$as_val
4111: if test $ac_count -gt ${ac_path_GREP_max-0}; then
4112: # Best one so far, save it but keep looking for a better one
4113: ac_cv_path_GREP="$ac_path_GREP"
4114: ac_path_GREP_max=$ac_count
4115: fi
4116: # 10*(2^10) chars as input seems more than enough
4117: test $ac_count -gt 10 && break
4118: done
4119: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4120: esac
4121:
4122: $ac_path_GREP_found && break 3
4123: done
4124: done
4125: done
4126: IFS=$as_save_IFS
4127: if test -z "$ac_cv_path_GREP"; then
4128: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4129: fi
4130: else
4131: ac_cv_path_GREP=$GREP
4132: fi
4133:
4134: fi
4135: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4136: $as_echo "$ac_cv_path_GREP" >&6; }
4137: GREP="$ac_cv_path_GREP"
4138:
4139:
4140:
4141:
4142:
4143:
4144: if test -n "$BISON"; then :
4145:
4146: ax_bison_version="3.0"
4147:
4148: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison version" >&5
4149: $as_echo_n "checking for bison version... " >&6; }
4150:
4151: bison_version=`$BISON --version 2>&1 \
4152: | $SED -n -e '/bison (GNU Bison)/b inspect
4153: b
4154: : inspect
4155: s/.* (\{0,1\}\([0-9]*\.[0-9]*\.[0-9]*\))\{0,1\}.*/\1/;p'`
4156:
4157: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bison_version" >&5
4158: $as_echo "$bison_version" >&6; }
4159:
4160: BISON_VERSION=$bison_version
4161:
4162:
4163:
4164:
4165:
4166: # Used to indicate true or false condition
4167: ax_compare_version=false
4168:
4169: # Convert the two version strings to be compared into a format that
4170: # allows a simple string comparison. The end result is that a version
4171: # string of the form 1.12.5-r617 will be converted to the form
4172: # 0001001200050617. In other words, each number is zero padded to four
4173: # digits, and non digits are removed.
4174:
4175: ax_compare_version_A=`echo "$bison_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
4176: -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
4177: -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
4178: -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
4179: -e 's/[^0-9]//g'`
4180:
4181:
4182: ax_compare_version_B=`echo "$ax_bison_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
4183: -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
4184: -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
4185: -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
4186: -e 's/[^0-9]//g'`
4187:
4188:
4189: ax_compare_version=`echo "x$ax_compare_version_A
4190: x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
4191:
4192:
4193:
4194: if test "$ax_compare_version" = "true" ; then
4195:
4196: :
4197:
4198:
4199: else
4200: :
4201: as_fn_error $? "Requires bison 3.0 or later" "$LINENO" 5
4202:
4203: fi
4204:
4205:
4206: else
4207:
4208: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find bison" >&5
4209: $as_echo "$as_me: WARNING: could not find bison" >&2;}
4210: as_fn_error $? "Requires bison 3.0 or later" "$LINENO" 5
4211:
4212: fi
4213:
4214: for ac_prog in 'bison -y' byacc
4215: do
4216: # Extract the first word of "$ac_prog", so it can be a program name with args.
4217: set dummy $ac_prog; ac_word=$2
4218: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4219: $as_echo_n "checking for $ac_word... " >&6; }
4220: if ${ac_cv_prog_YACC+:} false; then :
4221: $as_echo_n "(cached) " >&6
4222: else
4223: if test -n "$YACC"; then
4224: ac_cv_prog_YACC="$YACC" # Let the user override the test.
4225: else
4226: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227: for as_dir in $PATH
4228: do
4229: IFS=$as_save_IFS
4230: test -z "$as_dir" && as_dir=.
4231: for ac_exec_ext in '' $ac_executable_extensions; do
4232: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4233: ac_cv_prog_YACC="$ac_prog"
4234: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4235: break 2
4236: fi
4237: done
4238: done
4239: IFS=$as_save_IFS
4240:
4241: fi
4242: fi
4243: YACC=$ac_cv_prog_YACC
4244: if test -n "$YACC"; then
4245: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4246: $as_echo "$YACC" >&6; }
4247: else
4248: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4249: $as_echo "no" >&6; }
4250: fi
4251:
4252:
4253: test -n "$YACC" && break
4254: done
4255: test -n "$YACC" || YACC="yacc"
4256:
4257:
4258: for ac_prog in flex lex
4259: do
4260: # Extract the first word of "$ac_prog", so it can be a program name with args.
4261: set dummy $ac_prog; ac_word=$2
4262: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4263: $as_echo_n "checking for $ac_word... " >&6; }
4264: if ${ac_cv_prog_LEX+:} false; then :
4265: $as_echo_n "(cached) " >&6
4266: else
4267: if test -n "$LEX"; then
4268: ac_cv_prog_LEX="$LEX" # Let the user override the test.
4269: else
4270: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271: for as_dir in $PATH
4272: do
4273: IFS=$as_save_IFS
4274: test -z "$as_dir" && as_dir=.
4275: for ac_exec_ext in '' $ac_executable_extensions; do
4276: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4277: ac_cv_prog_LEX="$ac_prog"
4278: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4279: break 2
4280: fi
4281: done
4282: done
4283: IFS=$as_save_IFS
4284:
4285: fi
4286: fi
4287: LEX=$ac_cv_prog_LEX
4288: if test -n "$LEX"; then
4289: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4290: $as_echo "$LEX" >&6; }
4291: else
4292: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4293: $as_echo "no" >&6; }
4294: fi
4295:
4296:
4297: test -n "$LEX" && break
4298: done
4299: test -n "$LEX" || LEX=":"
4300:
4301: if test "x$LEX" != "x:"; then
4302: cat >conftest.l <<_ACEOF
4303: %%
4304: a { ECHO; }
4305: b { REJECT; }
4306: c { yymore (); }
4307: d { yyless (1); }
4308: e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
4309: yyless ((input () != 0)); }
4310: f { unput (yytext[0]); }
4311: . { BEGIN INITIAL; }
4312: %%
4313: #ifdef YYTEXT_POINTER
4314: extern char *yytext;
4315: #endif
4316: int
4317: main (void)
4318: {
4319: return ! yylex () + ! yywrap ();
4320: }
4321: _ACEOF
4322: { { ac_try="$LEX conftest.l"
4323: case "(($ac_try" in
4324: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325: *) ac_try_echo=$ac_try;;
4326: esac
4327: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4328: $as_echo "$ac_try_echo"; } >&5
4329: (eval "$LEX conftest.l") 2>&5
4330: ac_status=$?
4331: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4332: test $ac_status = 0; }
4333: { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4334: $as_echo_n "checking lex output file root... " >&6; }
4335: if ${ac_cv_prog_lex_root+:} false; then :
4336: $as_echo_n "(cached) " >&6
4337: else
4338:
4339: if test -f lex.yy.c; then
4340: ac_cv_prog_lex_root=lex.yy
4341: elif test -f lexyy.c; then
4342: ac_cv_prog_lex_root=lexyy
4343: else
4344: as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4345: fi
4346: fi
4347: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4348: $as_echo "$ac_cv_prog_lex_root" >&6; }
4349: LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4350:
4351: if test -z "${LEXLIB+set}"; then
4352: { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4353: $as_echo_n "checking lex library... " >&6; }
4354: if ${ac_cv_lib_lex+:} false; then :
4355: $as_echo_n "(cached) " >&6
4356: else
4357:
4358: ac_save_LIBS=$LIBS
4359: ac_cv_lib_lex='none needed'
4360: for ac_lib in '' -lfl -ll; do
4361: LIBS="$ac_lib $ac_save_LIBS"
4362: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363: /* end confdefs.h. */
4364: `cat $LEX_OUTPUT_ROOT.c`
4365: _ACEOF
4366: if ac_fn_c_try_link "$LINENO"; then :
4367: ac_cv_lib_lex=$ac_lib
4368: fi
4369: rm -f core conftest.err conftest.$ac_objext \
4370: conftest$ac_exeext conftest.$ac_ext
4371: test "$ac_cv_lib_lex" != 'none needed' && break
4372: done
4373: LIBS=$ac_save_LIBS
4374:
4375: fi
4376: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4377: $as_echo "$ac_cv_lib_lex" >&6; }
4378: test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4379: fi
4380:
4381:
4382: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4383: $as_echo_n "checking whether yytext is a pointer... " >&6; }
4384: if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4385: $as_echo_n "(cached) " >&6
4386: else
4387: # POSIX says lex can declare yytext either as a pointer or an array; the
4388: # default is implementation-dependent. Figure out which it is, since
4389: # not all implementations provide the %pointer and %array declarations.
4390: ac_cv_prog_lex_yytext_pointer=no
4391: ac_save_LIBS=$LIBS
4392: LIBS="$LEXLIB $ac_save_LIBS"
4393: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394: /* end confdefs.h. */
4395:
4396: #define YYTEXT_POINTER 1
4397: `cat $LEX_OUTPUT_ROOT.c`
4398: _ACEOF
4399: if ac_fn_c_try_link "$LINENO"; then :
4400: ac_cv_prog_lex_yytext_pointer=yes
4401: fi
4402: rm -f core conftest.err conftest.$ac_objext \
4403: conftest$ac_exeext conftest.$ac_ext
4404: LIBS=$ac_save_LIBS
4405:
4406: fi
4407: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4408: $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4409: if test $ac_cv_prog_lex_yytext_pointer = yes; then
4410:
4411: $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4412:
4413: fi
4414: rm -f conftest.l $LEX_OUTPUT_ROOT.c
4415:
4416: fi
4417: if test "$LEX" = :; then
4418: LEX=${am_missing_run}flex
4419: fi
4420:
4421: # Checks for libraries.
4422:
4423:
4424:
4425:
4426:
4427:
4428:
4429: if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4430: if test -n "$ac_tool_prefix"; then
4431: # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4432: set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4433: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4434: $as_echo_n "checking for $ac_word... " >&6; }
4435: if ${ac_cv_path_PKG_CONFIG+:} false; then :
4436: $as_echo_n "(cached) " >&6
4437: else
4438: case $PKG_CONFIG in
4439: [\\/]* | ?:[\\/]*)
4440: ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4441: ;;
4442: *)
4443: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444: for as_dir in $PATH
4445: do
4446: IFS=$as_save_IFS
4447: test -z "$as_dir" && as_dir=.
4448: for ac_exec_ext in '' $ac_executable_extensions; do
4449: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4450: ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4451: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4452: break 2
4453: fi
4454: done
4455: done
4456: IFS=$as_save_IFS
4457:
4458: ;;
4459: esac
4460: fi
4461: PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4462: if test -n "$PKG_CONFIG"; then
4463: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4464: $as_echo "$PKG_CONFIG" >&6; }
4465: else
4466: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4467: $as_echo "no" >&6; }
4468: fi
4469:
4470:
4471: fi
4472: if test -z "$ac_cv_path_PKG_CONFIG"; then
4473: ac_pt_PKG_CONFIG=$PKG_CONFIG
4474: # Extract the first word of "pkg-config", so it can be a program name with args.
4475: set dummy pkg-config; ac_word=$2
4476: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4477: $as_echo_n "checking for $ac_word... " >&6; }
4478: if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4479: $as_echo_n "(cached) " >&6
4480: else
4481: case $ac_pt_PKG_CONFIG in
4482: [\\/]* | ?:[\\/]*)
4483: ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4484: ;;
4485: *)
4486: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487: for as_dir in $PATH
4488: do
4489: IFS=$as_save_IFS
4490: test -z "$as_dir" && as_dir=.
4491: for ac_exec_ext in '' $ac_executable_extensions; do
4492: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4493: ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4494: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4495: break 2
4496: fi
4497: done
4498: done
4499: IFS=$as_save_IFS
4500:
4501: ;;
4502: esac
4503: fi
4504: ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4505: if test -n "$ac_pt_PKG_CONFIG"; then
4506: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4507: $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4508: else
4509: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4510: $as_echo "no" >&6; }
4511: fi
4512:
4513: if test "x$ac_pt_PKG_CONFIG" = x; then
4514: PKG_CONFIG=""
4515: else
4516: case $cross_compiling:$ac_tool_warned in
4517: yes:)
4518: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4519: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4520: ac_tool_warned=yes ;;
4521: esac
4522: PKG_CONFIG=$ac_pt_PKG_CONFIG
4523: fi
4524: else
4525: PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4526: fi
4527:
4528: fi
4529: if test -n "$PKG_CONFIG"; then
4530: _pkg_min_version=0.9.0
4531: { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4532: $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4533: if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4534: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4535: $as_echo "yes" >&6; }
4536: else
4537: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4538: $as_echo "no" >&6; }
4539: PKG_CONFIG=""
4540: fi
4541: fi
4542:
4543: pkg_failed=no
4544: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BDW_GC" >&5
4545: $as_echo_n "checking for BDW_GC... " >&6; }
4546:
4547: if test -n "$BDW_GC_CFLAGS"; then
4548: pkg_cv_BDW_GC_CFLAGS="$BDW_GC_CFLAGS"
4549: elif test -n "$PKG_CONFIG"; then
4550: if test -n "$PKG_CONFIG" && \
4551: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bdw-gc\""; } >&5
4552: ($PKG_CONFIG --exists --print-errors "bdw-gc") 2>&5
4553: ac_status=$?
4554: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4555: test $ac_status = 0; }; then
4556: pkg_cv_BDW_GC_CFLAGS=`$PKG_CONFIG --cflags "bdw-gc" 2>/dev/null`
4557: test "x$?" != "x0" && pkg_failed=yes
4558: else
4559: pkg_failed=yes
4560: fi
4561: else
4562: pkg_failed=untried
4563: fi
4564: if test -n "$BDW_GC_LIBS"; then
4565: pkg_cv_BDW_GC_LIBS="$BDW_GC_LIBS"
4566: elif test -n "$PKG_CONFIG"; then
4567: if test -n "$PKG_CONFIG" && \
4568: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bdw-gc\""; } >&5
4569: ($PKG_CONFIG --exists --print-errors "bdw-gc") 2>&5
4570: ac_status=$?
4571: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4572: test $ac_status = 0; }; then
4573: pkg_cv_BDW_GC_LIBS=`$PKG_CONFIG --libs "bdw-gc" 2>/dev/null`
4574: test "x$?" != "x0" && pkg_failed=yes
4575: else
4576: pkg_failed=yes
4577: fi
4578: else
4579: pkg_failed=untried
4580: fi
4581:
4582:
4583:
4584: if test $pkg_failed = yes; then
4585: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586: $as_echo "no" >&6; }
4587:
4588: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4589: _pkg_short_errors_supported=yes
4590: else
4591: _pkg_short_errors_supported=no
4592: fi
4593: if test $_pkg_short_errors_supported = yes; then
4594: BDW_GC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bdw-gc" 2>&1`
4595: else
4596: BDW_GC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bdw-gc" 2>&1`
4597: fi
4598: # Put the nasty error message in config.log where it belongs
4599: echo "$BDW_GC_PKG_ERRORS" >&5
4600:
4601: as_fn_error $? "Package requirements (bdw-gc) were not met:
4602:
4603: $BDW_GC_PKG_ERRORS
4604:
4605: Consider adjusting the PKG_CONFIG_PATH environment variable if you
4606: installed software in a non-standard prefix.
4607:
4608: Alternatively, you may set the environment variables BDW_GC_CFLAGS
4609: and BDW_GC_LIBS to avoid the need to call pkg-config.
4610: See the pkg-config man page for more details." "$LINENO" 5
4611: elif test $pkg_failed = untried; then
4612: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4613: $as_echo "no" >&6; }
4614: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4615: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4616: as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
4617: is in your PATH or set the PKG_CONFIG environment variable to the full
4618: path to pkg-config.
4619:
4620: Alternatively, you may set the environment variables BDW_GC_CFLAGS
4621: and BDW_GC_LIBS to avoid the need to call pkg-config.
4622: See the pkg-config man page for more details.
4623:
4624: To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4625: See \`config.log' for more details" "$LINENO" 5; }
4626: else
4627: BDW_GC_CFLAGS=$pkg_cv_BDW_GC_CFLAGS
4628: BDW_GC_LIBS=$pkg_cv_BDW_GC_LIBS
4629: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4630: $as_echo "yes" >&6; }
4631:
4632: fi
4633:
4634: if test "X$prefix" = "XNONE"; then
4635: acl_final_prefix="$ac_default_prefix"
4636: else
4637: acl_final_prefix="$prefix"
4638: fi
4639: if test "X$exec_prefix" = "XNONE"; then
4640: acl_final_exec_prefix='${prefix}'
4641: else
4642: acl_final_exec_prefix="$exec_prefix"
4643: fi
4644: acl_save_prefix="$prefix"
4645: prefix="$acl_final_prefix"
4646: eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4647: prefix="$acl_save_prefix"
4648:
4649: # Make sure we can run config.sub.
4650: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4651: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4652:
4653: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4654: $as_echo_n "checking build system type... " >&6; }
4655: if ${ac_cv_build+:} false; then :
4656: $as_echo_n "(cached) " >&6
4657: else
4658: ac_build_alias=$build_alias
4659: test "x$ac_build_alias" = x &&
4660: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4661: test "x$ac_build_alias" = x &&
4662: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4663: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4664: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4665:
4666: fi
4667: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4668: $as_echo "$ac_cv_build" >&6; }
4669: case $ac_cv_build in
4670: *-*-*) ;;
4671: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4672: esac
4673: build=$ac_cv_build
4674: ac_save_IFS=$IFS; IFS='-'
4675: set x $ac_cv_build
4676: shift
4677: build_cpu=$1
4678: build_vendor=$2
4679: shift; shift
4680: # Remember, the first character of IFS is used to create $*,
4681: # except with old shells:
4682: build_os=$*
4683: IFS=$ac_save_IFS
4684: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4685:
4686:
4687: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4688: $as_echo_n "checking host system type... " >&6; }
4689: if ${ac_cv_host+:} false; then :
4690: $as_echo_n "(cached) " >&6
4691: else
4692: if test "x$host_alias" = x; then
4693: ac_cv_host=$ac_cv_build
4694: else
4695: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4696: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4697: fi
4698:
4699: fi
4700: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4701: $as_echo "$ac_cv_host" >&6; }
4702: case $ac_cv_host in
4703: *-*-*) ;;
4704: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4705: esac
4706: host=$ac_cv_host
4707: ac_save_IFS=$IFS; IFS='-'
4708: set x $ac_cv_host
4709: shift
4710: host_cpu=$1
4711: host_vendor=$2
4712: shift; shift
4713: # Remember, the first character of IFS is used to create $*,
4714: # except with old shells:
4715: host_os=$*
4716: IFS=$ac_save_IFS
4717: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4718:
4719:
4720:
4721:
4722: # Check whether --with-gnu-ld was given.
4723: if test "${with_gnu_ld+set}" = set; then :
4724: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4725: else
4726: with_gnu_ld=no
4727: fi
4728:
4729: # Prepare PATH_SEPARATOR.
4730: # The user is always right.
4731: if test "${PATH_SEPARATOR+set}" != set; then
4732: # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
4733: # contains only /bin. Note that ksh looks also at the FPATH variable,
4734: # so we have to set that as well for the test.
4735: PATH_SEPARATOR=:
4736: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4737: && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4738: || PATH_SEPARATOR=';'
4739: }
4740: fi
4741:
4742: ac_prog=ld
4743: if test "$GCC" = yes; then
4744: # Check if gcc -print-prog-name=ld gives a path.
4745: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4746: $as_echo_n "checking for ld used by $CC... " >&6; }
4747: case $host in
4748: *-*-mingw*)
4749: # gcc leaves a trailing carriage return which upsets mingw
4750: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4751: *)
4752: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4753: esac
4754: case $ac_prog in
4755: # Accept absolute paths.
4756: [\\/]* | ?:[\\/]*)
4757: re_direlt='/[^/][^/]*/\.\./'
4758: # Canonicalize the pathname of ld
4759: ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
4760: while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
4761: ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4762: done
4763: test -z "$LD" && LD="$ac_prog"
4764: ;;
4765: "")
4766: # If it fails, then pretend we aren't using GCC.
4767: ac_prog=ld
4768: ;;
4769: *)
4770: # If it is relative, then search for the first ld in PATH.
4771: with_gnu_ld=unknown
4772: ;;
4773: esac
4774: elif test "$with_gnu_ld" = yes; then
4775: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4776: $as_echo_n "checking for GNU ld... " >&6; }
4777: else
4778: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4779: $as_echo_n "checking for non-GNU ld... " >&6; }
4780: fi
4781: if ${acl_cv_path_LD+:} false; then :
4782: $as_echo_n "(cached) " >&6
4783: else
4784: if test -z "$LD"; then
4785: acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4786: for ac_dir in $PATH; do
4787: IFS="$acl_save_ifs"
4788: test -z "$ac_dir" && ac_dir=.
4789: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4790: acl_cv_path_LD="$ac_dir/$ac_prog"
4791: # Check to see if the program is GNU ld. I'd rather use --version,
4792: # but apparently some variants of GNU ld only accept -v.
4793: # Break only if it was the GNU/non-GNU ld that we prefer.
4794: case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
4795: *GNU* | *'with BFD'*)
4796: test "$with_gnu_ld" != no && break
4797: ;;
4798: *)
4799: test "$with_gnu_ld" != yes && break
4800: ;;
4801: esac
4802: fi
4803: done
4804: IFS="$acl_save_ifs"
4805: else
4806: acl_cv_path_LD="$LD" # Let the user override the test with a path.
4807: fi
4808: fi
4809:
4810: LD="$acl_cv_path_LD"
4811: if test -n "$LD"; then
4812: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4813: $as_echo "$LD" >&6; }
4814: else
4815: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816: $as_echo "no" >&6; }
4817: fi
4818: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4819: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4820: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4821: if ${acl_cv_prog_gnu_ld+:} false; then :
4822: $as_echo_n "(cached) " >&6
4823: else
4824: # I'd rather use --version here, but apparently some GNU lds only accept -v.
4825: case `$LD -v 2>&1 </dev/null` in
4826: *GNU* | *'with BFD'*)
4827: acl_cv_prog_gnu_ld=yes
4828: ;;
4829: *)
4830: acl_cv_prog_gnu_ld=no
4831: ;;
4832: esac
4833: fi
4834: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4835: $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4836: with_gnu_ld=$acl_cv_prog_gnu_ld
4837:
4838:
4839:
4840:
4841: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4842: $as_echo_n "checking for shared library run path origin... " >&6; }
4843: if ${acl_cv_rpath+:} false; then :
4844: $as_echo_n "(cached) " >&6
4845: else
4846:
4847: CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4848: ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4849: . ./conftest.sh
4850: rm -f ./conftest.sh
4851: acl_cv_rpath=done
4852:
4853: fi
4854: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4855: $as_echo "$acl_cv_rpath" >&6; }
4856: wl="$acl_cv_wl"
4857: acl_libext="$acl_cv_libext"
4858: acl_shlibext="$acl_cv_shlibext"
4859: acl_libname_spec="$acl_cv_libname_spec"
4860: acl_library_names_spec="$acl_cv_library_names_spec"
4861: acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4862: acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4863: acl_hardcode_direct="$acl_cv_hardcode_direct"
4864: acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
4865: # Check whether --enable-rpath was given.
4866: if test "${enable_rpath+set}" = set; then :
4867: enableval=$enable_rpath; :
4868: else
4869: enable_rpath=yes
4870: fi
4871:
4872:
4873: ac_ext=c
4874: ac_cpp='$CPP $CPPFLAGS'
4875: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4876: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4877: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4878: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4879: $as_echo_n "checking how to run the C preprocessor... " >&6; }
4880: # On Suns, sometimes $CPP names a directory.
4881: if test -n "$CPP" && test -d "$CPP"; then
4882: CPP=
4883: fi
4884: if test -z "$CPP"; then
4885: if ${ac_cv_prog_CPP+:} false; then :
4886: $as_echo_n "(cached) " >&6
4887: else
4888: # Double quotes because CPP needs to be expanded
4889: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4890: do
4891: ac_preproc_ok=false
4892: for ac_c_preproc_warn_flag in '' yes
4893: do
4894: # Use a header file that comes with gcc, so configuring glibc
4895: # with a fresh cross-compiler works.
4896: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4897: # <limits.h> exists even on freestanding compilers.
4898: # On the NeXT, cc -E runs the code through the compiler's parser,
4899: # not just through cpp. "Syntax error" is here to catch this case.
4900: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4901: /* end confdefs.h. */
4902: #ifdef __STDC__
4903: # include <limits.h>
4904: #else
4905: # include <assert.h>
4906: #endif
4907: Syntax error
4908: _ACEOF
4909: if ac_fn_c_try_cpp "$LINENO"; then :
4910:
4911: else
4912: # Broken: fails on valid input.
4913: continue
4914: fi
4915: rm -f conftest.err conftest.i conftest.$ac_ext
4916:
4917: # OK, works on sane cases. Now check whether nonexistent headers
4918: # can be detected and how.
4919: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4920: /* end confdefs.h. */
4921: #include <ac_nonexistent.h>
4922: _ACEOF
4923: if ac_fn_c_try_cpp "$LINENO"; then :
4924: # Broken: success on invalid input.
4925: continue
4926: else
4927: # Passes both tests.
4928: ac_preproc_ok=:
4929: break
4930: fi
4931: rm -f conftest.err conftest.i conftest.$ac_ext
4932:
4933: done
4934: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4935: rm -f conftest.i conftest.err conftest.$ac_ext
4936: if $ac_preproc_ok; then :
4937: break
4938: fi
4939:
4940: done
4941: ac_cv_prog_CPP=$CPP
4942:
4943: fi
4944: CPP=$ac_cv_prog_CPP
4945: else
4946: ac_cv_prog_CPP=$CPP
4947: fi
4948: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4949: $as_echo "$CPP" >&6; }
4950: ac_preproc_ok=false
4951: for ac_c_preproc_warn_flag in '' yes
4952: do
4953: # Use a header file that comes with gcc, so configuring glibc
4954: # with a fresh cross-compiler works.
4955: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4956: # <limits.h> exists even on freestanding compilers.
4957: # On the NeXT, cc -E runs the code through the compiler's parser,
4958: # not just through cpp. "Syntax error" is here to catch this case.
4959: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4960: /* end confdefs.h. */
4961: #ifdef __STDC__
4962: # include <limits.h>
4963: #else
4964: # include <assert.h>
4965: #endif
4966: Syntax error
4967: _ACEOF
4968: if ac_fn_c_try_cpp "$LINENO"; then :
4969:
4970: else
4971: # Broken: fails on valid input.
4972: continue
4973: fi
4974: rm -f conftest.err conftest.i conftest.$ac_ext
4975:
4976: # OK, works on sane cases. Now check whether nonexistent headers
4977: # can be detected and how.
4978: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979: /* end confdefs.h. */
4980: #include <ac_nonexistent.h>
4981: _ACEOF
4982: if ac_fn_c_try_cpp "$LINENO"; then :
4983: # Broken: success on invalid input.
4984: continue
4985: else
4986: # Passes both tests.
4987: ac_preproc_ok=:
4988: break
4989: fi
4990: rm -f conftest.err conftest.i conftest.$ac_ext
4991:
4992: done
4993: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4994: rm -f conftest.i conftest.err conftest.$ac_ext
4995: if $ac_preproc_ok; then :
4996:
4997: else
4998: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4999: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5000: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5001: See \`config.log' for more details" "$LINENO" 5; }
5002: fi
5003:
5004: ac_ext=c
5005: ac_cpp='$CPP $CPPFLAGS'
5006: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5007: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5008: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5009:
5010:
5011: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5012: $as_echo_n "checking for egrep... " >&6; }
5013: if ${ac_cv_path_EGREP+:} false; then :
5014: $as_echo_n "(cached) " >&6
5015: else
5016: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5017: then ac_cv_path_EGREP="$GREP -E"
5018: else
5019: if test -z "$EGREP"; then
5020: ac_path_EGREP_found=false
5021: # Loop through the user's path and test for each of PROGNAME-LIST
5022: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5024: do
5025: IFS=$as_save_IFS
5026: test -z "$as_dir" && as_dir=.
5027: for ac_prog in egrep; do
5028: for ac_exec_ext in '' $ac_executable_extensions; do
5029: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5030: as_fn_executable_p "$ac_path_EGREP" || continue
5031: # Check for GNU ac_path_EGREP and select it if it is found.
5032: # Check for GNU $ac_path_EGREP
5033: case `"$ac_path_EGREP" --version 2>&1` in
5034: *GNU*)
5035: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5036: *)
5037: ac_count=0
5038: $as_echo_n 0123456789 >"conftest.in"
5039: while :
5040: do
5041: cat "conftest.in" "conftest.in" >"conftest.tmp"
5042: mv "conftest.tmp" "conftest.in"
5043: cp "conftest.in" "conftest.nl"
5044: $as_echo 'EGREP' >> "conftest.nl"
5045: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5046: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5047: as_fn_arith $ac_count + 1 && ac_count=$as_val
5048: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5049: # Best one so far, save it but keep looking for a better one
5050: ac_cv_path_EGREP="$ac_path_EGREP"
5051: ac_path_EGREP_max=$ac_count
5052: fi
5053: # 10*(2^10) chars as input seems more than enough
5054: test $ac_count -gt 10 && break
5055: done
5056: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5057: esac
5058:
5059: $ac_path_EGREP_found && break 3
5060: done
5061: done
5062: done
5063: IFS=$as_save_IFS
5064: if test -z "$ac_cv_path_EGREP"; then
5065: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5066: fi
5067: else
5068: ac_cv_path_EGREP=$EGREP
5069: fi
5070:
5071: fi
5072: fi
5073: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5074: $as_echo "$ac_cv_path_EGREP" >&6; }
5075: EGREP="$ac_cv_path_EGREP"
5076:
5077:
5078:
5079:
5080: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
5081: $as_echo_n "checking for the common suffixes of directories in the library search path... " >&6; }
5082: if ${acl_cv_libdirstems+:} false; then :
5083: $as_echo_n "(cached) " >&6
5084: else
5085: acl_libdirstem=lib
5086: acl_libdirstem2=
5087: case "$host_os" in
5088: solaris*)
5089: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5090: $as_echo_n "checking for 64-bit host... " >&6; }
5091: if ${gl_cv_solaris_64bit+:} false; then :
5092: $as_echo_n "(cached) " >&6
5093: else
5094: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5095: /* end confdefs.h. */
5096:
5097: #ifdef _LP64
5098: sixtyfour bits
5099: #endif
5100:
5101: _ACEOF
5102: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5103: $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5104: gl_cv_solaris_64bit=yes
5105: else
5106: gl_cv_solaris_64bit=no
5107: fi
5108: rm -f conftest*
5109:
5110:
5111: fi
5112: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5113: $as_echo "$gl_cv_solaris_64bit" >&6; }
5114: if test $gl_cv_solaris_64bit = yes; then
5115: acl_libdirstem=lib/64
5116: case "$host_cpu" in
5117: sparc*) acl_libdirstem2=lib/sparcv9 ;;
5118: i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5119: esac
5120: fi
5121: ;;
5122: *)
5123: searchpath=`(if test -f /usr/bin/gcc \
5124: && LC_ALL=C /usr/bin/gcc -print-search-dirs >/dev/null 2>/dev/null; then \
5125: LC_ALL=C /usr/bin/gcc -print-search-dirs; \
5126: else \
5127: LC_ALL=C $CC -print-search-dirs; \
5128: fi) 2>/dev/null \
5129: | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5130: if test -n "$searchpath"; then
5131: acl_save_IFS="${IFS= }"; IFS=":"
5132: for searchdir in $searchpath; do
5133: if test -d "$searchdir"; then
5134: case "$searchdir" in
5135: */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5136: */../ | */.. )
5137: # Better ignore directories of this form. They are misleading.
5138: ;;
5139: *) searchdir=`cd "$searchdir" && pwd`
5140: case "$searchdir" in
5141: */lib64 ) acl_libdirstem=lib64 ;;
5142: esac ;;
5143: esac
5144: fi
5145: done
5146: IFS="$acl_save_IFS"
5147: fi
5148: ;;
5149: esac
5150: test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5151: acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2"
5152:
5153: fi
5154: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
5155: $as_echo "$acl_cv_libdirstems" >&6; }
5156: # Decompose acl_cv_libdirstems into acl_libdirstem and acl_libdirstem2.
5157: acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
5158: acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e '/,/s/.*,//'`
5159:
5160:
5161:
5162:
5163:
5164:
5165:
5166:
5167:
5168:
5169:
5170:
5171:
5172:
5173:
5174: use_additional=yes
5175:
5176: acl_save_prefix="$prefix"
5177: prefix="$acl_final_prefix"
5178: acl_save_exec_prefix="$exec_prefix"
5179: exec_prefix="$acl_final_exec_prefix"
5180:
5181: eval additional_includedir=\"$includedir\"
5182: eval additional_libdir=\"$libdir\"
5183:
5184: exec_prefix="$acl_save_exec_prefix"
5185: prefix="$acl_save_prefix"
5186:
5187:
5188: # Check whether --with-libsigsegv-prefix was given.
5189: if test "${with_libsigsegv_prefix+set}" = set; then :
5190: withval=$with_libsigsegv_prefix;
5191: if test "X$withval" = "Xno"; then
5192: use_additional=no
5193: else
5194: if test "X$withval" = "X"; then
5195:
5196: acl_save_prefix="$prefix"
5197: prefix="$acl_final_prefix"
5198: acl_save_exec_prefix="$exec_prefix"
5199: exec_prefix="$acl_final_exec_prefix"
5200:
5201: eval additional_includedir=\"$includedir\"
5202: eval additional_libdir=\"$libdir\"
5203:
5204: exec_prefix="$acl_save_exec_prefix"
5205: prefix="$acl_save_prefix"
5206:
5207: else
5208: additional_includedir="$withval/include"
5209: additional_libdir="$withval/$acl_libdirstem"
5210: if test "$acl_libdirstem2" != "$acl_libdirstem" \
5211: && ! test -d "$withval/$acl_libdirstem"; then
5212: additional_libdir="$withval/$acl_libdirstem2"
5213: fi
5214: fi
5215: fi
5216:
5217: fi
5218:
5219: LIBSIGSEGV=
5220: LTLIBSIGSEGV=
5221: INCSIGSEGV=
5222: LIBSIGSEGV_PREFIX=
5223: HAVE_LIBSIGSEGV=
5224: rpathdirs=
5225: ltrpathdirs=
5226: names_already_handled=
5227: names_next_round='sigsegv '
5228: while test -n "$names_next_round"; do
5229: names_this_round="$names_next_round"
5230: names_next_round=
5231: for name in $names_this_round; do
5232: already_handled=
5233: for n in $names_already_handled; do
5234: if test "$n" = "$name"; then
5235: already_handled=yes
5236: break
5237: fi
5238: done
5239: if test -z "$already_handled"; then
5240: names_already_handled="$names_already_handled $name"
5241: uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
5242: eval value=\"\$HAVE_LIB$uppername\"
5243: if test -n "$value"; then
5244: if test "$value" = yes; then
5245: eval value=\"\$LIB$uppername\"
5246: test -z "$value" || LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$value"
5247: eval value=\"\$LTLIB$uppername\"
5248: test -z "$value" || LTLIBSIGSEGV="${LTLIBSIGSEGV}${LTLIBSIGSEGV:+ }$value"
5249: else
5250: :
5251: fi
5252: else
5253: found_dir=
5254: found_la=
5255: found_so=
5256: found_a=
5257: eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5258: if test -n "$acl_shlibext"; then
5259: shrext=".$acl_shlibext" # typically: shrext=.so
5260: else
5261: shrext=
5262: fi
5263: if test $use_additional = yes; then
5264: dir="$additional_libdir"
5265: if test -n "$acl_shlibext"; then
5266: if test -f "$dir/$libname$shrext"; then
5267: found_dir="$dir"
5268: found_so="$dir/$libname$shrext"
5269: else
5270: if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5271: ver=`(cd "$dir" && \
5272: for f in "$libname$shrext".*; do echo "$f"; done \
5273: | sed -e "s,^$libname$shrext\\\\.,," \
5274: | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5275: | sed 1q ) 2>/dev/null`
5276: if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5277: found_dir="$dir"
5278: found_so="$dir/$libname$shrext.$ver"
5279: fi
5280: else
5281: eval library_names=\"$acl_library_names_spec\"
5282: for f in $library_names; do
5283: if test -f "$dir/$f"; then
5284: found_dir="$dir"
5285: found_so="$dir/$f"
5286: break
5287: fi
5288: done
5289: fi
5290: fi
5291: fi
5292: if test "X$found_dir" = "X"; then
5293: if test -f "$dir/$libname.$acl_libext"; then
5294: found_dir="$dir"
5295: found_a="$dir/$libname.$acl_libext"
5296: fi
5297: fi
5298: if test "X$found_dir" != "X"; then
5299: if test -f "$dir/$libname.la"; then
5300: found_la="$dir/$libname.la"
5301: fi
5302: fi
5303: fi
5304: if test "X$found_dir" = "X"; then
5305: for x in $LDFLAGS $LTLIBSIGSEGV; do
5306:
5307: acl_save_prefix="$prefix"
5308: prefix="$acl_final_prefix"
5309: acl_save_exec_prefix="$exec_prefix"
5310: exec_prefix="$acl_final_exec_prefix"
5311: eval x=\"$x\"
5312: exec_prefix="$acl_save_exec_prefix"
5313: prefix="$acl_save_prefix"
5314:
5315: case "$x" in
5316: -L*)
5317: dir=`echo "X$x" | sed -e 's/^X-L//'`
5318: if test -n "$acl_shlibext"; then
5319: if test -f "$dir/$libname$shrext"; then
5320: found_dir="$dir"
5321: found_so="$dir/$libname$shrext"
5322: else
5323: if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5324: ver=`(cd "$dir" && \
5325: for f in "$libname$shrext".*; do echo "$f"; done \
5326: | sed -e "s,^$libname$shrext\\\\.,," \
5327: | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5328: | sed 1q ) 2>/dev/null`
5329: if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5330: found_dir="$dir"
5331: found_so="$dir/$libname$shrext.$ver"
5332: fi
5333: else
5334: eval library_names=\"$acl_library_names_spec\"
5335: for f in $library_names; do
5336: if test -f "$dir/$f"; then
5337: found_dir="$dir"
5338: found_so="$dir/$f"
5339: break
5340: fi
5341: done
5342: fi
5343: fi
5344: fi
5345: if test "X$found_dir" = "X"; then
5346: if test -f "$dir/$libname.$acl_libext"; then
5347: found_dir="$dir"
5348: found_a="$dir/$libname.$acl_libext"
5349: fi
5350: fi
5351: if test "X$found_dir" != "X"; then
5352: if test -f "$dir/$libname.la"; then
5353: found_la="$dir/$libname.la"
5354: fi
5355: fi
5356: ;;
5357: esac
5358: if test "X$found_dir" != "X"; then
5359: break
5360: fi
5361: done
5362: fi
5363: if test "X$found_dir" != "X"; then
5364: LTLIBSIGSEGV="${LTLIBSIGSEGV}${LTLIBSIGSEGV:+ }-L$found_dir -l$name"
5365: if test "X$found_so" != "X"; then
5366: if test "$enable_rpath" = no \
5367: || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5368: || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5369: LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$found_so"
5370: else
5371: haveit=
5372: for x in $ltrpathdirs; do
5373: if test "X$x" = "X$found_dir"; then
5374: haveit=yes
5375: break
5376: fi
5377: done
5378: if test -z "$haveit"; then
5379: ltrpathdirs="$ltrpathdirs $found_dir"
5380: fi
5381: if test "$acl_hardcode_direct" = yes; then
5382: LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$found_so"
5383: else
5384: if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5385: LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$found_so"
5386: haveit=
5387: for x in $rpathdirs; do
5388: if test "X$x" = "X$found_dir"; then
5389: haveit=yes
5390: break
5391: fi
5392: done
5393: if test -z "$haveit"; then
5394: rpathdirs="$rpathdirs $found_dir"
5395: fi
5396: else
5397: haveit=
5398: for x in $LDFLAGS $LIBSIGSEGV; do
5399:
5400: acl_save_prefix="$prefix"
5401: prefix="$acl_final_prefix"
5402: acl_save_exec_prefix="$exec_prefix"
5403: exec_prefix="$acl_final_exec_prefix"
5404: eval x=\"$x\"
5405: exec_prefix="$acl_save_exec_prefix"
5406: prefix="$acl_save_prefix"
5407:
5408: if test "X$x" = "X-L$found_dir"; then
5409: haveit=yes
5410: break
5411: fi
5412: done
5413: if test -z "$haveit"; then
5414: LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }-L$found_dir"
5415: fi
5416: if test "$acl_hardcode_minus_L" != no; then
5417: LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$found_so"
5418: else
5419: LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }-l$name"
5420: fi
5421: fi
5422: fi
5423: fi
5424: else
5425: if test "X$found_a" != "X"; then
5426: LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$found_a"
5427: else
5428: LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }-L$found_dir -l$name"
5429: fi
5430: fi
5431: additional_includedir=
5432: case "$found_dir" in
5433: */$acl_libdirstem | */$acl_libdirstem/)
5434: basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5435: if test "$name" = 'sigsegv'; then
5436: LIBSIGSEGV_PREFIX="$basedir"
5437: fi
5438: additional_includedir="$basedir/include"
5439: ;;
5440: */$acl_libdirstem2 | */$acl_libdirstem2/)
5441: basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5442: if test "$name" = 'sigsegv'; then
5443: LIBSIGSEGV_PREFIX="$basedir"
5444: fi
5445: additional_includedir="$basedir/include"
5446: ;;
5447: esac
5448: if test "X$additional_includedir" != "X"; then
5449: if test "X$additional_includedir" != "X/usr/include"; then
5450: haveit=
5451: if test "X$additional_includedir" = "X/usr/local/include"; then
5452: if test -n "$GCC"; then
5453: case $host_os in
5454: linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5455: esac
5456: fi
5457: fi
5458: if test -z "$haveit"; then
5459: for x in $CPPFLAGS $INCSIGSEGV; do
5460:
5461: acl_save_prefix="$prefix"
5462: prefix="$acl_final_prefix"
5463: acl_save_exec_prefix="$exec_prefix"
5464: exec_prefix="$acl_final_exec_prefix"
5465: eval x=\"$x\"
5466: exec_prefix="$acl_save_exec_prefix"
5467: prefix="$acl_save_prefix"
5468:
5469: if test "X$x" = "X-I$additional_includedir"; then
5470: haveit=yes
5471: break
5472: fi
5473: done
5474: if test -z "$haveit"; then
5475: if test -d "$additional_includedir"; then
5476: INCSIGSEGV="${INCSIGSEGV}${INCSIGSEGV:+ }-I$additional_includedir"
5477: fi
5478: fi
5479: fi
5480: fi
5481: fi
5482: if test -n "$found_la"; then
5483: save_libdir="$libdir"
5484: case "$found_la" in
5485: */* | *\\*) . "$found_la" ;;
5486: *) . "./$found_la" ;;
5487: esac
5488: libdir="$save_libdir"
5489: for dep in $dependency_libs; do
5490: case "$dep" in
5491: -L*)
5492: additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5493: if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5494: && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5495: haveit=
5496: if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5497: || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5498: if test -n "$GCC"; then
5499: case $host_os in
5500: linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5501: esac
5502: fi
5503: fi
5504: if test -z "$haveit"; then
5505: haveit=
5506: for x in $LDFLAGS $LIBSIGSEGV; do
5507:
5508: acl_save_prefix="$prefix"
5509: prefix="$acl_final_prefix"
5510: acl_save_exec_prefix="$exec_prefix"
5511: exec_prefix="$acl_final_exec_prefix"
5512: eval x=\"$x\"
5513: exec_prefix="$acl_save_exec_prefix"
5514: prefix="$acl_save_prefix"
5515:
5516: if test "X$x" = "X-L$additional_libdir"; then
5517: haveit=yes
5518: break
5519: fi
5520: done
5521: if test -z "$haveit"; then
5522: if test -d "$additional_libdir"; then
5523: LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }-L$additional_libdir"
5524: fi
5525: fi
5526: haveit=
5527: for x in $LDFLAGS $LTLIBSIGSEGV; do
5528:
5529: acl_save_prefix="$prefix"
5530: prefix="$acl_final_prefix"
5531: acl_save_exec_prefix="$exec_prefix"
5532: exec_prefix="$acl_final_exec_prefix"
5533: eval x=\"$x\"
5534: exec_prefix="$acl_save_exec_prefix"
5535: prefix="$acl_save_prefix"
5536:
5537: if test "X$x" = "X-L$additional_libdir"; then
5538: haveit=yes
5539: break
5540: fi
5541: done
5542: if test -z "$haveit"; then
5543: if test -d "$additional_libdir"; then
5544: LTLIBSIGSEGV="${LTLIBSIGSEGV}${LTLIBSIGSEGV:+ }-L$additional_libdir"
5545: fi
5546: fi
5547: fi
5548: fi
5549: ;;
5550: -R*)
5551: dir=`echo "X$dep" | sed -e 's/^X-R//'`
5552: if test "$enable_rpath" != no; then
5553: haveit=
5554: for x in $rpathdirs; do
5555: if test "X$x" = "X$dir"; then
5556: haveit=yes
5557: break
5558: fi
5559: done
5560: if test -z "$haveit"; then
5561: rpathdirs="$rpathdirs $dir"
5562: fi
5563: haveit=
5564: for x in $ltrpathdirs; do
5565: if test "X$x" = "X$dir"; then
5566: haveit=yes
5567: break
5568: fi
5569: done
5570: if test -z "$haveit"; then
5571: ltrpathdirs="$ltrpathdirs $dir"
5572: fi
5573: fi
5574: ;;
5575: -l*)
5576: names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5577: ;;
5578: *.la)
5579: names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5580: ;;
5581: *)
5582: LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$dep"
5583: LTLIBSIGSEGV="${LTLIBSIGSEGV}${LTLIBSIGSEGV:+ }$dep"
5584: ;;
5585: esac
5586: done
5587: fi
5588: else
5589: LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }-l$name"
5590: LTLIBSIGSEGV="${LTLIBSIGSEGV}${LTLIBSIGSEGV:+ }-l$name"
5591: fi
5592: fi
5593: fi
5594: done
5595: done
5596: if test "X$rpathdirs" != "X"; then
5597: if test -n "$acl_hardcode_libdir_separator"; then
5598: alldirs=
5599: for found_dir in $rpathdirs; do
5600: alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5601: done
5602: acl_save_libdir="$libdir"
5603: libdir="$alldirs"
5604: eval flag=\"$acl_hardcode_libdir_flag_spec\"
5605: libdir="$acl_save_libdir"
5606: LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$flag"
5607: else
5608: for found_dir in $rpathdirs; do
5609: acl_save_libdir="$libdir"
5610: libdir="$found_dir"
5611: eval flag=\"$acl_hardcode_libdir_flag_spec\"
5612: libdir="$acl_save_libdir"
5613: LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$flag"
5614: done
5615: fi
5616: fi
5617: if test "X$ltrpathdirs" != "X"; then
5618: for found_dir in $ltrpathdirs; do
5619: LTLIBSIGSEGV="${LTLIBSIGSEGV}${LTLIBSIGSEGV:+ }-R$found_dir"
5620: done
5621: fi
5622:
5623:
5624:
5625:
5626:
5627:
5628:
5629: ac_save_CPPFLAGS="$CPPFLAGS"
5630:
5631: for element in $INCSIGSEGV; do
5632: haveit=
5633: for x in $CPPFLAGS; do
5634:
5635: acl_save_prefix="$prefix"
5636: prefix="$acl_final_prefix"
5637: acl_save_exec_prefix="$exec_prefix"
5638: exec_prefix="$acl_final_exec_prefix"
5639: eval x=\"$x\"
5640: exec_prefix="$acl_save_exec_prefix"
5641: prefix="$acl_save_prefix"
5642:
5643: if test "X$x" = "X$element"; then
5644: haveit=yes
5645: break
5646: fi
5647: done
5648: if test -z "$haveit"; then
5649: CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5650: fi
5651: done
5652:
5653:
5654: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsigsegv" >&5
5655: $as_echo_n "checking for libsigsegv... " >&6; }
5656: if ${ac_cv_libsigsegv+:} false; then :
5657: $as_echo_n "(cached) " >&6
5658: else
5659:
5660: ac_save_LIBS="$LIBS"
5661: case " $LIBSIGSEGV" in
5662: *" -l"*) LIBS="$LIBS $LIBSIGSEGV" ;;
5663: *) LIBS="$LIBSIGSEGV $LIBS" ;;
5664: esac
5665: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666: /* end confdefs.h. */
5667: #include <sigsegv.h>
5668: int
5669: main ()
5670: {
5671: sigsegv_deinstall_handler();
5672: ;
5673: return 0;
5674: }
5675: _ACEOF
5676: if ac_fn_c_try_link "$LINENO"; then :
5677: ac_cv_libsigsegv=yes
5678: else
5679: ac_cv_libsigsegv='as_fn_error $? "requires GNU libsigsegv" "$LINENO" 5'
5680: fi
5681: rm -f core conftest.err conftest.$ac_objext \
5682: conftest$ac_exeext conftest.$ac_ext
5683: LIBS="$ac_save_LIBS"
5684:
5685: fi
5686: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libsigsegv" >&5
5687: $as_echo "$ac_cv_libsigsegv" >&6; }
5688: if test "$ac_cv_libsigsegv" = yes; then
5689: HAVE_LIBSIGSEGV=yes
5690:
5691: $as_echo "#define HAVE_LIBSIGSEGV 1" >>confdefs.h
5692:
5693: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libsigsegv" >&5
5694: $as_echo_n "checking how to link with libsigsegv... " >&6; }
5695: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBSIGSEGV" >&5
5696: $as_echo "$LIBSIGSEGV" >&6; }
5697: else
5698: HAVE_LIBSIGSEGV=no
5699: CPPFLAGS="$ac_save_CPPFLAGS"
5700: LIBSIGSEGV=
5701: LTLIBSIGSEGV=
5702: LIBSIGSEGV_PREFIX=
5703: fi
5704:
5705:
5706:
5707:
5708:
5709:
5710:
5711: gl_cv_lib_sigsegv="$ac_cv_libsigsegv"
5712:
5713: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5714: $as_echo_n "checking for ANSI C header files... " >&6; }
5715: if ${ac_cv_header_stdc+:} false; then :
5716: $as_echo_n "(cached) " >&6
5717: else
5718: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5719: /* end confdefs.h. */
5720: #include <stdlib.h>
5721: #include <stdarg.h>
5722: #include <string.h>
5723: #include <float.h>
5724:
5725: int
5726: main ()
5727: {
5728:
5729: ;
5730: return 0;
5731: }
5732: _ACEOF
5733: if ac_fn_c_try_compile "$LINENO"; then :
5734: ac_cv_header_stdc=yes
5735: else
5736: ac_cv_header_stdc=no
5737: fi
5738: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5739:
5740: if test $ac_cv_header_stdc = yes; then
5741: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5742: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743: /* end confdefs.h. */
5744: #include <string.h>
5745:
5746: _ACEOF
5747: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5748: $EGREP "memchr" >/dev/null 2>&1; then :
5749:
5750: else
5751: ac_cv_header_stdc=no
5752: fi
5753: rm -f conftest*
5754:
5755: fi
5756:
5757: if test $ac_cv_header_stdc = yes; then
5758: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5759: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760: /* end confdefs.h. */
5761: #include <stdlib.h>
5762:
5763: _ACEOF
5764: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5765: $EGREP "free" >/dev/null 2>&1; then :
5766:
5767: else
5768: ac_cv_header_stdc=no
5769: fi
5770: rm -f conftest*
5771:
5772: fi
5773:
5774: if test $ac_cv_header_stdc = yes; then
5775: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5776: if test "$cross_compiling" = yes; then :
5777: :
5778: else
5779: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5780: /* end confdefs.h. */
5781: #include <ctype.h>
5782: #include <stdlib.h>
5783: #if ((' ' & 0x0FF) == 0x020)
5784: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5785: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5786: #else
5787: # define ISLOWER(c) \
5788: (('a' <= (c) && (c) <= 'i') \
5789: || ('j' <= (c) && (c) <= 'r') \
5790: || ('s' <= (c) && (c) <= 'z'))
5791: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5792: #endif
5793:
5794: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5795: int
5796: main ()
5797: {
5798: int i;
5799: for (i = 0; i < 256; i++)
5800: if (XOR (islower (i), ISLOWER (i))
5801: || toupper (i) != TOUPPER (i))
5802: return 2;
5803: return 0;
5804: }
5805: _ACEOF
5806: if ac_fn_c_try_run "$LINENO"; then :
5807:
5808: else
5809: ac_cv_header_stdc=no
5810: fi
5811: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5812: conftest.$ac_objext conftest.beam conftest.$ac_ext
5813: fi
5814:
5815: fi
5816: fi
5817: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5818: $as_echo "$ac_cv_header_stdc" >&6; }
5819: if test $ac_cv_header_stdc = yes; then
5820:
5821: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5822:
5823: fi
5824:
5825: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5826: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5827: inttypes.h stdint.h unistd.h
5828: do :
5829: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5830: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5831: "
5832: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5833: cat >>confdefs.h <<_ACEOF
5834: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5835: _ACEOF
5836:
5837: fi
5838:
5839: done
5840:
5841:
5842:
5843:
5844:
5845:
5846:
5847:
5848:
5849:
5850:
5851:
5852:
5853: use_additional=yes
5854:
5855: acl_save_prefix="$prefix"
5856: prefix="$acl_final_prefix"
5857: acl_save_exec_prefix="$exec_prefix"
5858: exec_prefix="$acl_final_exec_prefix"
5859:
5860: eval additional_includedir=\"$includedir\"
5861: eval additional_libdir=\"$libdir\"
5862:
5863: exec_prefix="$acl_save_exec_prefix"
5864: prefix="$acl_save_prefix"
5865:
5866:
5867: # Check whether --with-libreadline-prefix was given.
5868: if test "${with_libreadline_prefix+set}" = set; then :
5869: withval=$with_libreadline_prefix;
5870: if test "X$withval" = "Xno"; then
5871: use_additional=no
5872: else
5873: if test "X$withval" = "X"; then
5874:
5875: acl_save_prefix="$prefix"
5876: prefix="$acl_final_prefix"
5877: acl_save_exec_prefix="$exec_prefix"
5878: exec_prefix="$acl_final_exec_prefix"
5879:
5880: eval additional_includedir=\"$includedir\"
5881: eval additional_libdir=\"$libdir\"
5882:
5883: exec_prefix="$acl_save_exec_prefix"
5884: prefix="$acl_save_prefix"
5885:
5886: else
5887: additional_includedir="$withval/include"
5888: additional_libdir="$withval/$acl_libdirstem"
5889: if test "$acl_libdirstem2" != "$acl_libdirstem" \
5890: && ! test -d "$withval/$acl_libdirstem"; then
5891: additional_libdir="$withval/$acl_libdirstem2"
5892: fi
5893: fi
5894: fi
5895:
5896: fi
5897:
5898: LIBREADLINE=
5899: LTLIBREADLINE=
5900: INCREADLINE=
5901: LIBREADLINE_PREFIX=
5902: HAVE_LIBREADLINE=
5903: rpathdirs=
5904: ltrpathdirs=
5905: names_already_handled=
5906: names_next_round='readline '
5907: while test -n "$names_next_round"; do
5908: names_this_round="$names_next_round"
5909: names_next_round=
5910: for name in $names_this_round; do
5911: already_handled=
5912: for n in $names_already_handled; do
5913: if test "$n" = "$name"; then
5914: already_handled=yes
5915: break
5916: fi
5917: done
5918: if test -z "$already_handled"; then
5919: names_already_handled="$names_already_handled $name"
5920: uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
5921: eval value=\"\$HAVE_LIB$uppername\"
5922: if test -n "$value"; then
5923: if test "$value" = yes; then
5924: eval value=\"\$LIB$uppername\"
5925: test -z "$value" || LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$value"
5926: eval value=\"\$LTLIB$uppername\"
5927: test -z "$value" || LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }$value"
5928: else
5929: :
5930: fi
5931: else
5932: found_dir=
5933: found_la=
5934: found_so=
5935: found_a=
5936: eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5937: if test -n "$acl_shlibext"; then
5938: shrext=".$acl_shlibext" # typically: shrext=.so
5939: else
5940: shrext=
5941: fi
5942: if test $use_additional = yes; then
5943: dir="$additional_libdir"
5944: if test -n "$acl_shlibext"; then
5945: if test -f "$dir/$libname$shrext"; then
5946: found_dir="$dir"
5947: found_so="$dir/$libname$shrext"
5948: else
5949: if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5950: ver=`(cd "$dir" && \
5951: for f in "$libname$shrext".*; do echo "$f"; done \
5952: | sed -e "s,^$libname$shrext\\\\.,," \
5953: | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5954: | sed 1q ) 2>/dev/null`
5955: if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5956: found_dir="$dir"
5957: found_so="$dir/$libname$shrext.$ver"
5958: fi
5959: else
5960: eval library_names=\"$acl_library_names_spec\"
5961: for f in $library_names; do
5962: if test -f "$dir/$f"; then
5963: found_dir="$dir"
5964: found_so="$dir/$f"
5965: break
5966: fi
5967: done
5968: fi
5969: fi
5970: fi
5971: if test "X$found_dir" = "X"; then
5972: if test -f "$dir/$libname.$acl_libext"; then
5973: found_dir="$dir"
5974: found_a="$dir/$libname.$acl_libext"
5975: fi
5976: fi
5977: if test "X$found_dir" != "X"; then
5978: if test -f "$dir/$libname.la"; then
5979: found_la="$dir/$libname.la"
5980: fi
5981: fi
5982: fi
5983: if test "X$found_dir" = "X"; then
5984: for x in $LDFLAGS $LTLIBREADLINE; do
5985:
5986: acl_save_prefix="$prefix"
5987: prefix="$acl_final_prefix"
5988: acl_save_exec_prefix="$exec_prefix"
5989: exec_prefix="$acl_final_exec_prefix"
5990: eval x=\"$x\"
5991: exec_prefix="$acl_save_exec_prefix"
5992: prefix="$acl_save_prefix"
5993:
5994: case "$x" in
5995: -L*)
5996: dir=`echo "X$x" | sed -e 's/^X-L//'`
5997: if test -n "$acl_shlibext"; then
5998: if test -f "$dir/$libname$shrext"; then
5999: found_dir="$dir"
6000: found_so="$dir/$libname$shrext"
6001: else
6002: if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6003: ver=`(cd "$dir" && \
6004: for f in "$libname$shrext".*; do echo "$f"; done \
6005: | sed -e "s,^$libname$shrext\\\\.,," \
6006: | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6007: | sed 1q ) 2>/dev/null`
6008: if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6009: found_dir="$dir"
6010: found_so="$dir/$libname$shrext.$ver"
6011: fi
6012: else
6013: eval library_names=\"$acl_library_names_spec\"
6014: for f in $library_names; do
6015: if test -f "$dir/$f"; then
6016: found_dir="$dir"
6017: found_so="$dir/$f"
6018: break
6019: fi
6020: done
6021: fi
6022: fi
6023: fi
6024: if test "X$found_dir" = "X"; then
6025: if test -f "$dir/$libname.$acl_libext"; then
6026: found_dir="$dir"
6027: found_a="$dir/$libname.$acl_libext"
6028: fi
6029: fi
6030: if test "X$found_dir" != "X"; then
6031: if test -f "$dir/$libname.la"; then
6032: found_la="$dir/$libname.la"
6033: fi
6034: fi
6035: ;;
6036: esac
6037: if test "X$found_dir" != "X"; then
6038: break
6039: fi
6040: done
6041: fi
6042: if test "X$found_dir" != "X"; then
6043: LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }-L$found_dir -l$name"
6044: if test "X$found_so" != "X"; then
6045: if test "$enable_rpath" = no \
6046: || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6047: || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6048: LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$found_so"
6049: else
6050: haveit=
6051: for x in $ltrpathdirs; do
6052: if test "X$x" = "X$found_dir"; then
6053: haveit=yes
6054: break
6055: fi
6056: done
6057: if test -z "$haveit"; then
6058: ltrpathdirs="$ltrpathdirs $found_dir"
6059: fi
6060: if test "$acl_hardcode_direct" = yes; then
6061: LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$found_so"
6062: else
6063: if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6064: LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$found_so"
6065: haveit=
6066: for x in $rpathdirs; do
6067: if test "X$x" = "X$found_dir"; then
6068: haveit=yes
6069: break
6070: fi
6071: done
6072: if test -z "$haveit"; then
6073: rpathdirs="$rpathdirs $found_dir"
6074: fi
6075: else
6076: haveit=
6077: for x in $LDFLAGS $LIBREADLINE; do
6078:
6079: acl_save_prefix="$prefix"
6080: prefix="$acl_final_prefix"
6081: acl_save_exec_prefix="$exec_prefix"
6082: exec_prefix="$acl_final_exec_prefix"
6083: eval x=\"$x\"
6084: exec_prefix="$acl_save_exec_prefix"
6085: prefix="$acl_save_prefix"
6086:
6087: if test "X$x" = "X-L$found_dir"; then
6088: haveit=yes
6089: break
6090: fi
6091: done
6092: if test -z "$haveit"; then
6093: LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }-L$found_dir"
6094: fi
6095: if test "$acl_hardcode_minus_L" != no; then
6096: LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$found_so"
6097: else
6098: LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }-l$name"
6099: fi
6100: fi
6101: fi
6102: fi
6103: else
6104: if test "X$found_a" != "X"; then
6105: LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$found_a"
6106: else
6107: LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }-L$found_dir -l$name"
6108: fi
6109: fi
6110: additional_includedir=
6111: case "$found_dir" in
6112: */$acl_libdirstem | */$acl_libdirstem/)
6113: basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6114: if test "$name" = 'readline'; then
6115: LIBREADLINE_PREFIX="$basedir"
6116: fi
6117: additional_includedir="$basedir/include"
6118: ;;
6119: */$acl_libdirstem2 | */$acl_libdirstem2/)
6120: basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6121: if test "$name" = 'readline'; then
6122: LIBREADLINE_PREFIX="$basedir"
6123: fi
6124: additional_includedir="$basedir/include"
6125: ;;
6126: esac
6127: if test "X$additional_includedir" != "X"; then
6128: if test "X$additional_includedir" != "X/usr/include"; then
6129: haveit=
6130: if test "X$additional_includedir" = "X/usr/local/include"; then
6131: if test -n "$GCC"; then
6132: case $host_os in
6133: linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6134: esac
6135: fi
6136: fi
6137: if test -z "$haveit"; then
6138: for x in $CPPFLAGS $INCREADLINE; do
6139:
6140: acl_save_prefix="$prefix"
6141: prefix="$acl_final_prefix"
6142: acl_save_exec_prefix="$exec_prefix"
6143: exec_prefix="$acl_final_exec_prefix"
6144: eval x=\"$x\"
6145: exec_prefix="$acl_save_exec_prefix"
6146: prefix="$acl_save_prefix"
6147:
6148: if test "X$x" = "X-I$additional_includedir"; then
6149: haveit=yes
6150: break
6151: fi
6152: done
6153: if test -z "$haveit"; then
6154: if test -d "$additional_includedir"; then
6155: INCREADLINE="${INCREADLINE}${INCREADLINE:+ }-I$additional_includedir"
6156: fi
6157: fi
6158: fi
6159: fi
6160: fi
6161: if test -n "$found_la"; then
6162: save_libdir="$libdir"
6163: case "$found_la" in
6164: */* | *\\*) . "$found_la" ;;
6165: *) . "./$found_la" ;;
6166: esac
6167: libdir="$save_libdir"
6168: for dep in $dependency_libs; do
6169: case "$dep" in
6170: -L*)
6171: additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6172: if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6173: && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6174: haveit=
6175: if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6176: || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6177: if test -n "$GCC"; then
6178: case $host_os in
6179: linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6180: esac
6181: fi
6182: fi
6183: if test -z "$haveit"; then
6184: haveit=
6185: for x in $LDFLAGS $LIBREADLINE; do
6186:
6187: acl_save_prefix="$prefix"
6188: prefix="$acl_final_prefix"
6189: acl_save_exec_prefix="$exec_prefix"
6190: exec_prefix="$acl_final_exec_prefix"
6191: eval x=\"$x\"
6192: exec_prefix="$acl_save_exec_prefix"
6193: prefix="$acl_save_prefix"
6194:
6195: if test "X$x" = "X-L$additional_libdir"; then
6196: haveit=yes
6197: break
6198: fi
6199: done
6200: if test -z "$haveit"; then
6201: if test -d "$additional_libdir"; then
6202: LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }-L$additional_libdir"
6203: fi
6204: fi
6205: haveit=
6206: for x in $LDFLAGS $LTLIBREADLINE; do
6207:
6208: acl_save_prefix="$prefix"
6209: prefix="$acl_final_prefix"
6210: acl_save_exec_prefix="$exec_prefix"
6211: exec_prefix="$acl_final_exec_prefix"
6212: eval x=\"$x\"
6213: exec_prefix="$acl_save_exec_prefix"
6214: prefix="$acl_save_prefix"
6215:
6216: if test "X$x" = "X-L$additional_libdir"; then
6217: haveit=yes
6218: break
6219: fi
6220: done
6221: if test -z "$haveit"; then
6222: if test -d "$additional_libdir"; then
6223: LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }-L$additional_libdir"
6224: fi
6225: fi
6226: fi
6227: fi
6228: ;;
6229: -R*)
6230: dir=`echo "X$dep" | sed -e 's/^X-R//'`
6231: if test "$enable_rpath" != no; then
6232: haveit=
6233: for x in $rpathdirs; do
6234: if test "X$x" = "X$dir"; then
6235: haveit=yes
6236: break
6237: fi
6238: done
6239: if test -z "$haveit"; then
6240: rpathdirs="$rpathdirs $dir"
6241: fi
6242: haveit=
6243: for x in $ltrpathdirs; do
6244: if test "X$x" = "X$dir"; then
6245: haveit=yes
6246: break
6247: fi
6248: done
6249: if test -z "$haveit"; then
6250: ltrpathdirs="$ltrpathdirs $dir"
6251: fi
6252: fi
6253: ;;
6254: -l*)
6255: names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6256: ;;
6257: *.la)
6258: names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6259: ;;
6260: *)
6261: LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$dep"
6262: LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }$dep"
6263: ;;
6264: esac
6265: done
6266: fi
6267: else
6268: LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }-l$name"
6269: LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }-l$name"
6270: fi
6271: fi
6272: fi
6273: done
6274: done
6275: if test "X$rpathdirs" != "X"; then
6276: if test -n "$acl_hardcode_libdir_separator"; then
6277: alldirs=
6278: for found_dir in $rpathdirs; do
6279: alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6280: done
6281: acl_save_libdir="$libdir"
6282: libdir="$alldirs"
6283: eval flag=\"$acl_hardcode_libdir_flag_spec\"
6284: libdir="$acl_save_libdir"
6285: LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$flag"
6286: else
6287: for found_dir in $rpathdirs; do
6288: acl_save_libdir="$libdir"
6289: libdir="$found_dir"
6290: eval flag=\"$acl_hardcode_libdir_flag_spec\"
6291: libdir="$acl_save_libdir"
6292: LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$flag"
6293: done
6294: fi
6295: fi
6296: if test "X$ltrpathdirs" != "X"; then
6297: for found_dir in $ltrpathdirs; do
6298: LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }-R$found_dir"
6299: done
6300: fi
6301:
6302:
6303:
6304:
6305:
6306:
6307:
6308: am_save_CPPFLAGS="$CPPFLAGS"
6309:
6310: for element in $INCREADLINE; do
6311: haveit=
6312: for x in $CPPFLAGS; do
6313:
6314: acl_save_prefix="$prefix"
6315: prefix="$acl_final_prefix"
6316: acl_save_exec_prefix="$exec_prefix"
6317: exec_prefix="$acl_final_exec_prefix"
6318: eval x=\"$x\"
6319: exec_prefix="$acl_save_exec_prefix"
6320: prefix="$acl_save_prefix"
6321:
6322: if test "X$x" = "X$element"; then
6323: haveit=yes
6324: break
6325: fi
6326: done
6327: if test -z "$haveit"; then
6328: CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6329: fi
6330: done
6331:
6332:
6333: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline" >&5
6334: $as_echo_n "checking for readline... " >&6; }
6335: if ${gl_cv_lib_readline+:} false; then :
6336: $as_echo_n "(cached) " >&6
6337: else
6338:
6339: gl_cv_lib_readline=no
6340: am_save_LIBS="$LIBS"
6341: for extra_lib in "" ncurses termcap curses; do
6342: LIBS="$am_save_LIBS $LIBREADLINE"
6343: if test -n "$extra_lib"; then
6344: LIBS="$LIBS -l$extra_lib"
6345: fi
6346: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347: /* end confdefs.h. */
6348: #include <stdio.h>
6349: #include <readline/readline.h>
6350: int
6351: main ()
6352: {
6353: readline((char*)0);
6354: ;
6355: return 0;
6356: }
6357: _ACEOF
6358: if ac_fn_c_try_link "$LINENO"; then :
6359: if test -n "$extra_lib"; then
6360: gl_cv_lib_readline="yes, requires -l$extra_lib"
6361: else
6362: gl_cv_lib_readline="yes"
6363: fi
6364:
6365: fi
6366: rm -f core conftest.err conftest.$ac_objext \
6367: conftest$ac_exeext conftest.$ac_ext
6368: if test "$gl_cv_lib_readline" != no; then
6369: break
6370: fi
6371: done
6372: LIBS="$am_save_LIBS"
6373:
6374: fi
6375: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_readline" >&5
6376: $as_echo "$gl_cv_lib_readline" >&6; }
6377:
6378: if test "$gl_cv_lib_readline" != no; then
6379:
6380: $as_echo "#define HAVE_READLINE 1" >>confdefs.h
6381:
6382: extra_lib=`echo "$gl_cv_lib_readline" | sed -n -e 's/yes, requires //p'`
6383: if test -n "$extra_lib"; then
6384: LIBREADLINE="$LIBREADLINE $extra_lib"
6385: LTLIBREADLINE="$LTLIBREADLINE $extra_lib"
6386: fi
6387: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libreadline" >&5
6388: $as_echo_n "checking how to link with libreadline... " >&6; }
6389: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBREADLINE" >&5
6390: $as_echo "$LIBREADLINE" >&6; }
6391: else
6392: CPPFLAGS="$am_save_CPPFLAGS"
6393: LIBREADLINE=
6394: LTLIBREADLINE=
6395: fi
6396:
6397:
6398:
6399: for ac_header in readline/readline.h readline/history.h
6400: do :
6401: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6402: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6403: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6404: cat >>confdefs.h <<_ACEOF
6405: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6406: _ACEOF
6407:
6408: fi
6409:
6410: done
6411:
6412:
6413:
6414: # Checks for header files.
6415: for ac_header in inttypes.h limits.h stdint.h stdlib.h string.h strings.h sys/time.h unistd.h
6416: do :
6417: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6418: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6419: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6420: cat >>confdefs.h <<_ACEOF
6421: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6422: _ACEOF
6423:
6424: fi
6425:
6426: done
6427:
6428:
6429: # Checks for typedefs, structures, and compiler characteristics.
6430: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6431: $as_echo_n "checking for inline... " >&6; }
6432: if ${ac_cv_c_inline+:} false; then :
6433: $as_echo_n "(cached) " >&6
6434: else
6435: ac_cv_c_inline=no
6436: for ac_kw in inline __inline__ __inline; do
6437: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6438: /* end confdefs.h. */
6439: #ifndef __cplusplus
6440: typedef int foo_t;
6441: static $ac_kw foo_t static_foo () {return 0; }
6442: $ac_kw foo_t foo () {return 0; }
6443: #endif
6444:
6445: _ACEOF
6446: if ac_fn_c_try_compile "$LINENO"; then :
6447: ac_cv_c_inline=$ac_kw
6448: fi
6449: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6450: test "$ac_cv_c_inline" != no && break
6451: done
6452:
6453: fi
6454: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6455: $as_echo "$ac_cv_c_inline" >&6; }
6456:
6457: case $ac_cv_c_inline in
6458: inline | yes) ;;
6459: *)
6460: case $ac_cv_c_inline in
6461: no) ac_val=;;
6462: *) ac_val=$ac_cv_c_inline;;
6463: esac
6464: cat >>confdefs.h <<_ACEOF
6465: #ifndef __cplusplus
6466: #define inline $ac_val
6467: #endif
6468: _ACEOF
6469: ;;
6470: esac
6471:
6472: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6473: if test "x$ac_cv_type_size_t" = xyes; then :
6474:
6475: else
6476:
6477: cat >>confdefs.h <<_ACEOF
6478: #define size_t unsigned int
6479: _ACEOF
6480:
6481: fi
6482:
6483:
6484: # Checks for library functions.
6485: # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6486: # for constant arguments. Useless!
6487: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6488: $as_echo_n "checking for working alloca.h... " >&6; }
6489: if ${ac_cv_working_alloca_h+:} false; then :
6490: $as_echo_n "(cached) " >&6
6491: else
6492: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6493: /* end confdefs.h. */
6494: #include <alloca.h>
6495: int
6496: main ()
6497: {
6498: char *p = (char *) alloca (2 * sizeof (int));
6499: if (p) return 0;
6500: ;
6501: return 0;
6502: }
6503: _ACEOF
6504: if ac_fn_c_try_link "$LINENO"; then :
6505: ac_cv_working_alloca_h=yes
6506: else
6507: ac_cv_working_alloca_h=no
6508: fi
6509: rm -f core conftest.err conftest.$ac_objext \
6510: conftest$ac_exeext conftest.$ac_ext
6511: fi
6512: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6513: $as_echo "$ac_cv_working_alloca_h" >&6; }
6514: if test $ac_cv_working_alloca_h = yes; then
6515:
6516: $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6517:
6518: fi
6519:
6520: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6521: $as_echo_n "checking for alloca... " >&6; }
6522: if ${ac_cv_func_alloca_works+:} false; then :
6523: $as_echo_n "(cached) " >&6
6524: else
6525: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6526: /* end confdefs.h. */
6527: #ifdef __GNUC__
6528: # define alloca __builtin_alloca
6529: #else
6530: # ifdef _MSC_VER
6531: # include <malloc.h>
6532: # define alloca _alloca
6533: # else
6534: # ifdef HAVE_ALLOCA_H
6535: # include <alloca.h>
6536: # else
6537: # ifdef _AIX
6538: #pragma alloca
6539: # else
6540: # ifndef alloca /* predefined by HP cc +Olibcalls */
6541: void *alloca (size_t);
6542: # endif
6543: # endif
6544: # endif
6545: # endif
6546: #endif
6547:
6548: int
6549: main ()
6550: {
6551: char *p = (char *) alloca (1);
6552: if (p) return 0;
6553: ;
6554: return 0;
6555: }
6556: _ACEOF
6557: if ac_fn_c_try_link "$LINENO"; then :
6558: ac_cv_func_alloca_works=yes
6559: else
6560: ac_cv_func_alloca_works=no
6561: fi
6562: rm -f core conftest.err conftest.$ac_objext \
6563: conftest$ac_exeext conftest.$ac_ext
6564: fi
6565: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6566: $as_echo "$ac_cv_func_alloca_works" >&6; }
6567:
6568: if test $ac_cv_func_alloca_works = yes; then
6569:
6570: $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6571:
6572: else
6573: # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6574: # that cause trouble. Some versions do not even contain alloca or
6575: # contain a buggy version. If you still want to use their alloca,
6576: # use ar to extract alloca.o from them instead of compiling alloca.c.
6577:
6578: ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6579:
6580: $as_echo "#define C_ALLOCA 1" >>confdefs.h
6581:
6582:
6583: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6584: $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6585: if ${ac_cv_os_cray+:} false; then :
6586: $as_echo_n "(cached) " >&6
6587: else
6588: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589: /* end confdefs.h. */
6590: #if defined CRAY && ! defined CRAY2
6591: webecray
6592: #else
6593: wenotbecray
6594: #endif
6595:
6596: _ACEOF
6597: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6598: $EGREP "webecray" >/dev/null 2>&1; then :
6599: ac_cv_os_cray=yes
6600: else
6601: ac_cv_os_cray=no
6602: fi
6603: rm -f conftest*
6604:
6605: fi
6606: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6607: $as_echo "$ac_cv_os_cray" >&6; }
6608: if test $ac_cv_os_cray = yes; then
6609: for ac_func in _getb67 GETB67 getb67; do
6610: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6611: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6612: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6613:
6614: cat >>confdefs.h <<_ACEOF
6615: #define CRAY_STACKSEG_END $ac_func
6616: _ACEOF
6617:
6618: break
6619: fi
6620:
6621: done
6622: fi
6623:
6624: { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6625: $as_echo_n "checking stack direction for C alloca... " >&6; }
6626: if ${ac_cv_c_stack_direction+:} false; then :
6627: $as_echo_n "(cached) " >&6
6628: else
6629: if test "$cross_compiling" = yes; then :
6630: ac_cv_c_stack_direction=0
6631: else
6632: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6633: /* end confdefs.h. */
6634: $ac_includes_default
6635: int
6636: find_stack_direction (int *addr, int depth)
6637: {
6638: int dir, dummy = 0;
6639: if (! addr)
6640: addr = &dummy;
6641: *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6642: dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6643: return dir + dummy;
6644: }
6645:
6646: int
6647: main (int argc, char **argv)
6648: {
6649: return find_stack_direction (0, argc + !argv + 20) < 0;
6650: }
6651: _ACEOF
6652: if ac_fn_c_try_run "$LINENO"; then :
6653: ac_cv_c_stack_direction=1
6654: else
6655: ac_cv_c_stack_direction=-1
6656: fi
6657: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6658: conftest.$ac_objext conftest.beam conftest.$ac_ext
6659: fi
6660:
6661: fi
6662: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6663: $as_echo "$ac_cv_c_stack_direction" >&6; }
6664: cat >>confdefs.h <<_ACEOF
6665: #define STACK_DIRECTION $ac_cv_c_stack_direction
6666: _ACEOF
6667:
6668:
6669: fi
6670:
6671: for ac_header in stdlib.h
6672: do :
6673: ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6674: if test "x$ac_cv_header_stdlib_h" = xyes; then :
6675: cat >>confdefs.h <<_ACEOF
6676: #define HAVE_STDLIB_H 1
6677: _ACEOF
6678:
6679: fi
6680:
6681: done
6682:
6683: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6684: $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6685: if ${ac_cv_func_malloc_0_nonnull+:} false; then :
6686: $as_echo_n "(cached) " >&6
6687: else
6688: if test "$cross_compiling" = yes; then :
6689: ac_cv_func_malloc_0_nonnull=no
6690: else
6691: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6692: /* end confdefs.h. */
6693: #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6694: # include <stdlib.h>
6695: #else
6696: char *malloc ();
6697: #endif
6698:
6699: int
6700: main ()
6701: {
6702: return ! malloc (0);
6703: ;
6704: return 0;
6705: }
6706: _ACEOF
6707: if ac_fn_c_try_run "$LINENO"; then :
6708: ac_cv_func_malloc_0_nonnull=yes
6709: else
6710: ac_cv_func_malloc_0_nonnull=no
6711: fi
6712: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6713: conftest.$ac_objext conftest.beam conftest.$ac_ext
6714: fi
6715:
6716: fi
6717: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6718: $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6719: if test $ac_cv_func_malloc_0_nonnull = yes; then :
6720:
6721: $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
6722:
6723: else
6724: $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
6725:
6726: case " $LIBOBJS " in
6727: *" malloc.$ac_objext "* ) ;;
6728: *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6729: ;;
6730: esac
6731:
6732:
6733: $as_echo "#define malloc rpl_malloc" >>confdefs.h
6734:
6735: fi
6736:
6737:
6738: for ac_func in gettimeofday memset strtol
6739: do :
6740: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6741: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6742: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6743: cat >>confdefs.h <<_ACEOF
6744: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6745: _ACEOF
6746:
6747: fi
6748: done
6749:
6750:
6751: case `pwd` in
6752: *\ * | *\ *)
6753: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6754: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6755: esac
6756:
6757:
6758:
6759: macro_version='2.4.6'
6760: macro_revision='2.4.6'
6761:
6762:
6763:
6764:
6765:
6766:
6767:
6768:
6769:
6770:
6771:
6772:
6773:
6774: ltmain=$ac_aux_dir/ltmain.sh
6775:
6776: # Backslashify metacharacters that are still active within
6777: # double-quoted strings.
6778: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6779:
6780: # Same as above, but do not quote variable references.
6781: double_quote_subst='s/\(["`\\]\)/\\\1/g'
6782:
6783: # Sed substitution to delay expansion of an escaped shell variable in a
6784: # double_quote_subst'ed string.
6785: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6786:
6787: # Sed substitution to delay expansion of an escaped single quote.
6788: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6789:
6790: # Sed substitution to avoid accidental globbing in evaled expressions
6791: no_glob_subst='s/\*/\\\*/g'
6792:
6793: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6794: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6795: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6796:
6797: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6798: $as_echo_n "checking how to print strings... " >&6; }
6799: # Test print first, because it will be a builtin if present.
6800: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6801: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6802: ECHO='print -r --'
6803: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6804: ECHO='printf %s\n'
6805: else
6806: # Use this function as a fallback that always works.
6807: func_fallback_echo ()
6808: {
6809: eval 'cat <<_LTECHO_EOF
6810: $1
6811: _LTECHO_EOF'
6812: }
6813: ECHO='func_fallback_echo'
6814: fi
6815:
6816: # func_echo_all arg...
6817: # Invoke $ECHO with all args, space-separated.
6818: func_echo_all ()
6819: {
6820: $ECHO ""
6821: }
6822:
6823: case $ECHO in
6824: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6825: $as_echo "printf" >&6; } ;;
6826: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6827: $as_echo "print -r" >&6; } ;;
6828: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6829: $as_echo "cat" >&6; } ;;
6830: esac
6831:
6832:
6833:
6834:
6835:
6836:
6837:
6838:
6839:
6840:
6841:
6842:
6843:
6844:
6845: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6846: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6847: if ${ac_cv_path_SED+:} false; then :
6848: $as_echo_n "(cached) " >&6
6849: else
6850: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6851: for ac_i in 1 2 3 4 5 6 7; do
6852: ac_script="$ac_script$as_nl$ac_script"
6853: done
6854: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6855: { ac_script=; unset ac_script;}
6856: if test -z "$SED"; then
6857: ac_path_SED_found=false
6858: # Loop through the user's path and test for each of PROGNAME-LIST
6859: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860: for as_dir in $PATH
6861: do
6862: IFS=$as_save_IFS
6863: test -z "$as_dir" && as_dir=.
6864: for ac_prog in sed gsed; do
6865: for ac_exec_ext in '' $ac_executable_extensions; do
6866: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6867: as_fn_executable_p "$ac_path_SED" || continue
6868: # Check for GNU ac_path_SED and select it if it is found.
6869: # Check for GNU $ac_path_SED
6870: case `"$ac_path_SED" --version 2>&1` in
6871: *GNU*)
6872: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6873: *)
6874: ac_count=0
6875: $as_echo_n 0123456789 >"conftest.in"
6876: while :
6877: do
6878: cat "conftest.in" "conftest.in" >"conftest.tmp"
6879: mv "conftest.tmp" "conftest.in"
6880: cp "conftest.in" "conftest.nl"
6881: $as_echo '' >> "conftest.nl"
6882: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6883: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6884: as_fn_arith $ac_count + 1 && ac_count=$as_val
6885: if test $ac_count -gt ${ac_path_SED_max-0}; then
6886: # Best one so far, save it but keep looking for a better one
6887: ac_cv_path_SED="$ac_path_SED"
6888: ac_path_SED_max=$ac_count
6889: fi
6890: # 10*(2^10) chars as input seems more than enough
6891: test $ac_count -gt 10 && break
6892: done
6893: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6894: esac
6895:
6896: $ac_path_SED_found && break 3
6897: done
6898: done
6899: done
6900: IFS=$as_save_IFS
6901: if test -z "$ac_cv_path_SED"; then
6902: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6903: fi
6904: else
6905: ac_cv_path_SED=$SED
6906: fi
6907:
6908: fi
6909: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6910: $as_echo "$ac_cv_path_SED" >&6; }
6911: SED="$ac_cv_path_SED"
6912: rm -f conftest.sed
6913:
6914: test -z "$SED" && SED=sed
6915: Xsed="$SED -e 1s/^X//"
6916:
6917:
6918:
6919:
6920:
6921:
6922:
6923:
6924:
6925:
6926:
6927: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6928: $as_echo_n "checking for fgrep... " >&6; }
6929: if ${ac_cv_path_FGREP+:} false; then :
6930: $as_echo_n "(cached) " >&6
6931: else
6932: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6933: then ac_cv_path_FGREP="$GREP -F"
6934: else
6935: if test -z "$FGREP"; then
6936: ac_path_FGREP_found=false
6937: # Loop through the user's path and test for each of PROGNAME-LIST
6938: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6940: do
6941: IFS=$as_save_IFS
6942: test -z "$as_dir" && as_dir=.
6943: for ac_prog in fgrep; do
6944: for ac_exec_ext in '' $ac_executable_extensions; do
6945: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6946: as_fn_executable_p "$ac_path_FGREP" || continue
6947: # Check for GNU ac_path_FGREP and select it if it is found.
6948: # Check for GNU $ac_path_FGREP
6949: case `"$ac_path_FGREP" --version 2>&1` in
6950: *GNU*)
6951: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6952: *)
6953: ac_count=0
6954: $as_echo_n 0123456789 >"conftest.in"
6955: while :
6956: do
6957: cat "conftest.in" "conftest.in" >"conftest.tmp"
6958: mv "conftest.tmp" "conftest.in"
6959: cp "conftest.in" "conftest.nl"
6960: $as_echo 'FGREP' >> "conftest.nl"
6961: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6962: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6963: as_fn_arith $ac_count + 1 && ac_count=$as_val
6964: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6965: # Best one so far, save it but keep looking for a better one
6966: ac_cv_path_FGREP="$ac_path_FGREP"
6967: ac_path_FGREP_max=$ac_count
6968: fi
6969: # 10*(2^10) chars as input seems more than enough
6970: test $ac_count -gt 10 && break
6971: done
6972: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6973: esac
6974:
6975: $ac_path_FGREP_found && break 3
6976: done
6977: done
6978: done
6979: IFS=$as_save_IFS
6980: if test -z "$ac_cv_path_FGREP"; then
6981: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6982: fi
6983: else
6984: ac_cv_path_FGREP=$FGREP
6985: fi
6986:
6987: fi
6988: fi
6989: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6990: $as_echo "$ac_cv_path_FGREP" >&6; }
6991: FGREP="$ac_cv_path_FGREP"
6992:
6993:
6994: test -z "$GREP" && GREP=grep
6995:
6996:
6997:
6998:
6999:
7000:
7001:
7002:
7003:
7004:
7005:
7006:
7007:
7008:
7009:
7010:
7011:
7012:
7013:
7014: # Check whether --with-gnu-ld was given.
7015: if test "${with_gnu_ld+set}" = set; then :
7016: withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7017: else
7018: with_gnu_ld=no
7019: fi
7020:
7021: ac_prog=ld
7022: if test yes = "$GCC"; then
7023: # Check if gcc -print-prog-name=ld gives a path.
7024: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7025: $as_echo_n "checking for ld used by $CC... " >&6; }
7026: case $host in
7027: *-*-mingw*)
7028: # gcc leaves a trailing carriage return, which upsets mingw
7029: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7030: *)
7031: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7032: esac
7033: case $ac_prog in
7034: # Accept absolute paths.
7035: [\\/]* | ?:[\\/]*)
7036: re_direlt='/[^/][^/]*/\.\./'
7037: # Canonicalize the pathname of ld
7038: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7039: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7040: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7041: done
7042: test -z "$LD" && LD=$ac_prog
7043: ;;
7044: "")
7045: # If it fails, then pretend we aren't using GCC.
7046: ac_prog=ld
7047: ;;
7048: *)
7049: # If it is relative, then search for the first ld in PATH.
7050: with_gnu_ld=unknown
7051: ;;
7052: esac
7053: elif test yes = "$with_gnu_ld"; then
7054: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7055: $as_echo_n "checking for GNU ld... " >&6; }
7056: else
7057: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7058: $as_echo_n "checking for non-GNU ld... " >&6; }
7059: fi
7060: if ${lt_cv_path_LD+:} false; then :
7061: $as_echo_n "(cached) " >&6
7062: else
7063: if test -z "$LD"; then
7064: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7065: for ac_dir in $PATH; do
7066: IFS=$lt_save_ifs
7067: test -z "$ac_dir" && ac_dir=.
7068: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7069: lt_cv_path_LD=$ac_dir/$ac_prog
7070: # Check to see if the program is GNU ld. I'd rather use --version,
7071: # but apparently some variants of GNU ld only accept -v.
7072: # Break only if it was the GNU/non-GNU ld that we prefer.
7073: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7074: *GNU* | *'with BFD'*)
7075: test no != "$with_gnu_ld" && break
7076: ;;
7077: *)
7078: test yes != "$with_gnu_ld" && break
7079: ;;
7080: esac
7081: fi
7082: done
7083: IFS=$lt_save_ifs
7084: else
7085: lt_cv_path_LD=$LD # Let the user override the test with a path.
7086: fi
7087: fi
7088:
7089: LD=$lt_cv_path_LD
7090: if test -n "$LD"; then
7091: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7092: $as_echo "$LD" >&6; }
7093: else
7094: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7095: $as_echo "no" >&6; }
7096: fi
7097: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7098: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7099: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7100: if ${lt_cv_prog_gnu_ld+:} false; then :
7101: $as_echo_n "(cached) " >&6
7102: else
7103: # I'd rather use --version here, but apparently some GNU lds only accept -v.
7104: case `$LD -v 2>&1 </dev/null` in
7105: *GNU* | *'with BFD'*)
7106: lt_cv_prog_gnu_ld=yes
7107: ;;
7108: *)
7109: lt_cv_prog_gnu_ld=no
7110: ;;
7111: esac
7112: fi
7113: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7114: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7115: with_gnu_ld=$lt_cv_prog_gnu_ld
7116:
7117:
7118:
7119:
7120:
7121:
7122:
7123:
7124:
7125: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7126: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7127: if ${lt_cv_path_NM+:} false; then :
7128: $as_echo_n "(cached) " >&6
7129: else
7130: if test -n "$NM"; then
7131: # Let the user override the test.
7132: lt_cv_path_NM=$NM
7133: else
7134: lt_nm_to_check=${ac_tool_prefix}nm
7135: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7136: lt_nm_to_check="$lt_nm_to_check nm"
7137: fi
7138: for lt_tmp_nm in $lt_nm_to_check; do
7139: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7140: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7141: IFS=$lt_save_ifs
7142: test -z "$ac_dir" && ac_dir=.
7143: tmp_nm=$ac_dir/$lt_tmp_nm
7144: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7145: # Check to see if the nm accepts a BSD-compat flag.
7146: # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7147: # nm: unknown option "B" ignored
7148: # Tru64's nm complains that /dev/null is an invalid object file
7149: # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7150: case $build_os in
7151: mingw*) lt_bad_file=conftest.nm/nofile ;;
7152: *) lt_bad_file=/dev/null ;;
7153: esac
7154: case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7155: *$lt_bad_file* | *'Invalid file or object type'*)
7156: lt_cv_path_NM="$tmp_nm -B"
7157: break 2
7158: ;;
7159: *)
7160: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7161: */dev/null*)
7162: lt_cv_path_NM="$tmp_nm -p"
7163: break 2
7164: ;;
7165: *)
7166: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7167: continue # so that we can try to find one that supports BSD flags
7168: ;;
7169: esac
7170: ;;
7171: esac
7172: fi
7173: done
7174: IFS=$lt_save_ifs
7175: done
7176: : ${lt_cv_path_NM=no}
7177: fi
7178: fi
7179: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7180: $as_echo "$lt_cv_path_NM" >&6; }
7181: if test no != "$lt_cv_path_NM"; then
7182: NM=$lt_cv_path_NM
7183: else
7184: # Didn't find any BSD compatible name lister, look for dumpbin.
7185: if test -n "$DUMPBIN"; then :
7186: # Let the user override the test.
7187: else
7188: if test -n "$ac_tool_prefix"; then
7189: for ac_prog in dumpbin "link -dump"
7190: do
7191: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7192: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7193: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7194: $as_echo_n "checking for $ac_word... " >&6; }
7195: if ${ac_cv_prog_DUMPBIN+:} false; then :
7196: $as_echo_n "(cached) " >&6
7197: else
7198: if test -n "$DUMPBIN"; then
7199: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7200: else
7201: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202: for as_dir in $PATH
7203: do
7204: IFS=$as_save_IFS
7205: test -z "$as_dir" && as_dir=.
7206: for ac_exec_ext in '' $ac_executable_extensions; do
7207: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7208: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7209: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7210: break 2
7211: fi
7212: done
7213: done
7214: IFS=$as_save_IFS
7215:
7216: fi
7217: fi
7218: DUMPBIN=$ac_cv_prog_DUMPBIN
7219: if test -n "$DUMPBIN"; then
7220: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7221: $as_echo "$DUMPBIN" >&6; }
7222: else
7223: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7224: $as_echo "no" >&6; }
7225: fi
7226:
7227:
7228: test -n "$DUMPBIN" && break
7229: done
7230: fi
7231: if test -z "$DUMPBIN"; then
7232: ac_ct_DUMPBIN=$DUMPBIN
7233: for ac_prog in dumpbin "link -dump"
7234: do
7235: # Extract the first word of "$ac_prog", so it can be a program name with args.
7236: set dummy $ac_prog; ac_word=$2
7237: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7238: $as_echo_n "checking for $ac_word... " >&6; }
7239: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7240: $as_echo_n "(cached) " >&6
7241: else
7242: if test -n "$ac_ct_DUMPBIN"; then
7243: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7244: else
7245: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246: for as_dir in $PATH
7247: do
7248: IFS=$as_save_IFS
7249: test -z "$as_dir" && as_dir=.
7250: for ac_exec_ext in '' $ac_executable_extensions; do
7251: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7252: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7253: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7254: break 2
7255: fi
7256: done
7257: done
7258: IFS=$as_save_IFS
7259:
7260: fi
7261: fi
7262: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7263: if test -n "$ac_ct_DUMPBIN"; then
7264: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7265: $as_echo "$ac_ct_DUMPBIN" >&6; }
7266: else
7267: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7268: $as_echo "no" >&6; }
7269: fi
7270:
7271:
7272: test -n "$ac_ct_DUMPBIN" && break
7273: done
7274:
7275: if test "x$ac_ct_DUMPBIN" = x; then
7276: DUMPBIN=":"
7277: else
7278: case $cross_compiling:$ac_tool_warned in
7279: yes:)
7280: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7281: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7282: ac_tool_warned=yes ;;
7283: esac
7284: DUMPBIN=$ac_ct_DUMPBIN
7285: fi
7286: fi
7287:
7288: case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7289: *COFF*)
7290: DUMPBIN="$DUMPBIN -symbols -headers"
7291: ;;
7292: *)
7293: DUMPBIN=:
7294: ;;
7295: esac
7296: fi
7297:
7298: if test : != "$DUMPBIN"; then
7299: NM=$DUMPBIN
7300: fi
7301: fi
7302: test -z "$NM" && NM=nm
7303:
7304:
7305:
7306:
7307:
7308:
7309: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7310: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7311: if ${lt_cv_nm_interface+:} false; then :
7312: $as_echo_n "(cached) " >&6
7313: else
7314: lt_cv_nm_interface="BSD nm"
7315: echo "int some_variable = 0;" > conftest.$ac_ext
7316: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7317: (eval "$ac_compile" 2>conftest.err)
7318: cat conftest.err >&5
7319: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7320: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7321: cat conftest.err >&5
7322: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7323: cat conftest.out >&5
7324: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7325: lt_cv_nm_interface="MS dumpbin"
7326: fi
7327: rm -f conftest*
7328: fi
7329: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7330: $as_echo "$lt_cv_nm_interface" >&6; }
7331:
7332: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7333: $as_echo_n "checking whether ln -s works... " >&6; }
7334: LN_S=$as_ln_s
7335: if test "$LN_S" = "ln -s"; then
7336: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7337: $as_echo "yes" >&6; }
7338: else
7339: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7340: $as_echo "no, using $LN_S" >&6; }
7341: fi
7342:
7343: # find the maximum length of command line arguments
7344: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7345: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7346: if ${lt_cv_sys_max_cmd_len+:} false; then :
7347: $as_echo_n "(cached) " >&6
7348: else
7349: i=0
7350: teststring=ABCD
7351:
7352: case $build_os in
7353: msdosdjgpp*)
7354: # On DJGPP, this test can blow up pretty badly due to problems in libc
7355: # (any single argument exceeding 2000 bytes causes a buffer overrun
7356: # during glob expansion). Even if it were fixed, the result of this
7357: # check would be larger than it should be.
7358: lt_cv_sys_max_cmd_len=12288; # 12K is about right
7359: ;;
7360:
7361: gnu*)
7362: # Under GNU Hurd, this test is not required because there is
7363: # no limit to the length of command line arguments.
7364: # Libtool will interpret -1 as no limit whatsoever
7365: lt_cv_sys_max_cmd_len=-1;
7366: ;;
7367:
7368: cygwin* | mingw* | cegcc*)
7369: # On Win9x/ME, this test blows up -- it succeeds, but takes
7370: # about 5 minutes as the teststring grows exponentially.
7371: # Worse, since 9x/ME are not pre-emptively multitasking,
7372: # you end up with a "frozen" computer, even though with patience
7373: # the test eventually succeeds (with a max line length of 256k).
7374: # Instead, let's just punt: use the minimum linelength reported by
7375: # all of the supported platforms: 8192 (on NT/2K/XP).
7376: lt_cv_sys_max_cmd_len=8192;
7377: ;;
7378:
7379: mint*)
7380: # On MiNT this can take a long time and run out of memory.
7381: lt_cv_sys_max_cmd_len=8192;
7382: ;;
7383:
7384: amigaos*)
7385: # On AmigaOS with pdksh, this test takes hours, literally.
7386: # So we just punt and use a minimum line length of 8192.
7387: lt_cv_sys_max_cmd_len=8192;
7388: ;;
7389:
7390: bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7391: # This has been around since 386BSD, at least. Likely further.
7392: if test -x /sbin/sysctl; then
7393: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7394: elif test -x /usr/sbin/sysctl; then
7395: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7396: else
7397: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7398: fi
7399: # And add a safety zone
7400: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7401: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7402: ;;
7403:
7404: interix*)
7405: # We know the value 262144 and hardcode it with a safety zone (like BSD)
7406: lt_cv_sys_max_cmd_len=196608
7407: ;;
7408:
7409: os2*)
7410: # The test takes a long time on OS/2.
7411: lt_cv_sys_max_cmd_len=8192
7412: ;;
7413:
7414: osf*)
7415: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7416: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7417: # nice to cause kernel panics so lets avoid the loop below.
7418: # First set a reasonable default.
7419: lt_cv_sys_max_cmd_len=16384
7420: #
7421: if test -x /sbin/sysconfig; then
7422: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7423: *1*) lt_cv_sys_max_cmd_len=-1 ;;
7424: esac
7425: fi
7426: ;;
7427: sco3.2v5*)
7428: lt_cv_sys_max_cmd_len=102400
7429: ;;
7430: sysv5* | sco5v6* | sysv4.2uw2*)
7431: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7432: if test -n "$kargmax"; then
7433: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7434: else
7435: lt_cv_sys_max_cmd_len=32768
7436: fi
7437: ;;
7438: *)
7439: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7440: if test -n "$lt_cv_sys_max_cmd_len" && \
7441: test undefined != "$lt_cv_sys_max_cmd_len"; then
7442: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7443: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7444: else
7445: # Make teststring a little bigger before we do anything with it.
7446: # a 1K string should be a reasonable start.
7447: for i in 1 2 3 4 5 6 7 8; do
7448: teststring=$teststring$teststring
7449: done
7450: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7451: # If test is not a shell built-in, we'll probably end up computing a
7452: # maximum length that is only half of the actual maximum length, but
7453: # we can't tell.
7454: while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7455: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7456: test 17 != "$i" # 1/2 MB should be enough
7457: do
7458: i=`expr $i + 1`
7459: teststring=$teststring$teststring
7460: done
7461: # Only check the string length outside the loop.
7462: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7463: teststring=
7464: # Add a significant safety factor because C++ compilers can tack on
7465: # massive amounts of additional arguments before passing them to the
7466: # linker. It appears as though 1/2 is a usable value.
7467: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7468: fi
7469: ;;
7470: esac
7471:
7472: fi
7473:
7474: if test -n "$lt_cv_sys_max_cmd_len"; then
7475: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7476: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7477: else
7478: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7479: $as_echo "none" >&6; }
7480: fi
7481: max_cmd_len=$lt_cv_sys_max_cmd_len
7482:
7483:
7484:
7485:
7486:
7487:
7488: : ${CP="cp -f"}
7489: : ${MV="mv -f"}
7490: : ${RM="rm -f"}
7491:
7492: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7493: lt_unset=unset
7494: else
7495: lt_unset=false
7496: fi
7497:
7498:
7499:
7500:
7501:
7502: # test EBCDIC or ASCII
7503: case `echo X|tr X '\101'` in
7504: A) # ASCII based system
7505: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7506: lt_SP2NL='tr \040 \012'
7507: lt_NL2SP='tr \015\012 \040\040'
7508: ;;
7509: *) # EBCDIC based system
7510: lt_SP2NL='tr \100 \n'
7511: lt_NL2SP='tr \r\n \100\100'
7512: ;;
7513: esac
7514:
7515:
7516:
7517:
7518:
7519:
7520:
7521:
7522:
7523: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7524: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7525: if ${lt_cv_to_host_file_cmd+:} false; then :
7526: $as_echo_n "(cached) " >&6
7527: else
7528: case $host in
7529: *-*-mingw* )
7530: case $build in
7531: *-*-mingw* ) # actually msys
7532: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7533: ;;
7534: *-*-cygwin* )
7535: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7536: ;;
7537: * ) # otherwise, assume *nix
7538: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7539: ;;
7540: esac
7541: ;;
7542: *-*-cygwin* )
7543: case $build in
7544: *-*-mingw* ) # actually msys
7545: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7546: ;;
7547: *-*-cygwin* )
7548: lt_cv_to_host_file_cmd=func_convert_file_noop
7549: ;;
7550: * ) # otherwise, assume *nix
7551: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7552: ;;
7553: esac
7554: ;;
7555: * ) # unhandled hosts (and "normal" native builds)
7556: lt_cv_to_host_file_cmd=func_convert_file_noop
7557: ;;
7558: esac
7559:
7560: fi
7561:
7562: to_host_file_cmd=$lt_cv_to_host_file_cmd
7563: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7564: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7565:
7566:
7567:
7568:
7569:
7570: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7571: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7572: if ${lt_cv_to_tool_file_cmd+:} false; then :
7573: $as_echo_n "(cached) " >&6
7574: else
7575: #assume ordinary cross tools, or native build.
7576: lt_cv_to_tool_file_cmd=func_convert_file_noop
7577: case $host in
7578: *-*-mingw* )
7579: case $build in
7580: *-*-mingw* ) # actually msys
7581: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7582: ;;
7583: esac
7584: ;;
7585: esac
7586:
7587: fi
7588:
7589: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7590: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7591: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7592:
7593:
7594:
7595:
7596:
7597: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7598: $as_echo_n "checking for $LD option to reload object files... " >&6; }
7599: if ${lt_cv_ld_reload_flag+:} false; then :
7600: $as_echo_n "(cached) " >&6
7601: else
7602: lt_cv_ld_reload_flag='-r'
7603: fi
7604: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7605: $as_echo "$lt_cv_ld_reload_flag" >&6; }
7606: reload_flag=$lt_cv_ld_reload_flag
7607: case $reload_flag in
7608: "" | " "*) ;;
7609: *) reload_flag=" $reload_flag" ;;
7610: esac
7611: reload_cmds='$LD$reload_flag -o $output$reload_objs'
7612: case $host_os in
7613: cygwin* | mingw* | pw32* | cegcc*)
7614: if test yes != "$GCC"; then
7615: reload_cmds=false
7616: fi
7617: ;;
7618: darwin*)
7619: if test yes = "$GCC"; then
7620: reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7621: else
7622: reload_cmds='$LD$reload_flag -o $output$reload_objs'
7623: fi
7624: ;;
7625: esac
7626:
7627:
7628:
7629:
7630:
7631:
7632:
7633:
7634:
7635: if test -n "$ac_tool_prefix"; then
7636: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7637: set dummy ${ac_tool_prefix}objdump; ac_word=$2
7638: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7639: $as_echo_n "checking for $ac_word... " >&6; }
7640: if ${ac_cv_prog_OBJDUMP+:} false; then :
7641: $as_echo_n "(cached) " >&6
7642: else
7643: if test -n "$OBJDUMP"; then
7644: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7645: else
7646: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647: for as_dir in $PATH
7648: do
7649: IFS=$as_save_IFS
7650: test -z "$as_dir" && as_dir=.
7651: for ac_exec_ext in '' $ac_executable_extensions; do
7652: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7653: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7654: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7655: break 2
7656: fi
7657: done
7658: done
7659: IFS=$as_save_IFS
7660:
7661: fi
7662: fi
7663: OBJDUMP=$ac_cv_prog_OBJDUMP
7664: if test -n "$OBJDUMP"; then
7665: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7666: $as_echo "$OBJDUMP" >&6; }
7667: else
7668: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7669: $as_echo "no" >&6; }
7670: fi
7671:
7672:
7673: fi
7674: if test -z "$ac_cv_prog_OBJDUMP"; then
7675: ac_ct_OBJDUMP=$OBJDUMP
7676: # Extract the first word of "objdump", so it can be a program name with args.
7677: set dummy objdump; ac_word=$2
7678: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7679: $as_echo_n "checking for $ac_word... " >&6; }
7680: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7681: $as_echo_n "(cached) " >&6
7682: else
7683: if test -n "$ac_ct_OBJDUMP"; then
7684: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7685: else
7686: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7687: for as_dir in $PATH
7688: do
7689: IFS=$as_save_IFS
7690: test -z "$as_dir" && as_dir=.
7691: for ac_exec_ext in '' $ac_executable_extensions; do
7692: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7693: ac_cv_prog_ac_ct_OBJDUMP="objdump"
7694: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7695: break 2
7696: fi
7697: done
7698: done
7699: IFS=$as_save_IFS
7700:
7701: fi
7702: fi
7703: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7704: if test -n "$ac_ct_OBJDUMP"; then
7705: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7706: $as_echo "$ac_ct_OBJDUMP" >&6; }
7707: else
7708: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7709: $as_echo "no" >&6; }
7710: fi
7711:
7712: if test "x$ac_ct_OBJDUMP" = x; then
7713: OBJDUMP="false"
7714: else
7715: case $cross_compiling:$ac_tool_warned in
7716: yes:)
7717: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7718: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7719: ac_tool_warned=yes ;;
7720: esac
7721: OBJDUMP=$ac_ct_OBJDUMP
7722: fi
7723: else
7724: OBJDUMP="$ac_cv_prog_OBJDUMP"
7725: fi
7726:
7727: test -z "$OBJDUMP" && OBJDUMP=objdump
7728:
7729:
7730:
7731:
7732:
7733:
7734:
7735:
7736:
7737: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7738: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7739: if ${lt_cv_deplibs_check_method+:} false; then :
7740: $as_echo_n "(cached) " >&6
7741: else
7742: lt_cv_file_magic_cmd='$MAGIC_CMD'
7743: lt_cv_file_magic_test_file=
7744: lt_cv_deplibs_check_method='unknown'
7745: # Need to set the preceding variable on all platforms that support
7746: # interlibrary dependencies.
7747: # 'none' -- dependencies not supported.
7748: # 'unknown' -- same as none, but documents that we really don't know.
7749: # 'pass_all' -- all dependencies passed with no checks.
7750: # 'test_compile' -- check by making test program.
7751: # 'file_magic [[regex]]' -- check by looking for files in library path
7752: # that responds to the $file_magic_cmd with a given extended regex.
7753: # If you have 'file' or equivalent on your system and you're not sure
7754: # whether 'pass_all' will *always* work, you probably want this one.
7755:
7756: case $host_os in
7757: aix[4-9]*)
7758: lt_cv_deplibs_check_method=pass_all
7759: ;;
7760:
7761: beos*)
7762: lt_cv_deplibs_check_method=pass_all
7763: ;;
7764:
7765: bsdi[45]*)
7766: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7767: lt_cv_file_magic_cmd='/usr/bin/file -L'
7768: lt_cv_file_magic_test_file=/shlib/libc.so
7769: ;;
7770:
7771: cygwin*)
7772: # func_win32_libid is a shell function defined in ltmain.sh
7773: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7774: lt_cv_file_magic_cmd='func_win32_libid'
7775: ;;
7776:
7777: mingw* | pw32*)
7778: # Base MSYS/MinGW do not provide the 'file' command needed by
7779: # func_win32_libid shell function, so use a weaker test based on 'objdump',
7780: # unless we find 'file', for example because we are cross-compiling.
7781: if ( file / ) >/dev/null 2>&1; then
7782: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7783: lt_cv_file_magic_cmd='func_win32_libid'
7784: else
7785: # Keep this pattern in sync with the one in func_win32_libid.
7786: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7787: lt_cv_file_magic_cmd='$OBJDUMP -f'
7788: fi
7789: ;;
7790:
7791: cegcc*)
7792: # use the weaker test based on 'objdump'. See mingw*.
7793: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7794: lt_cv_file_magic_cmd='$OBJDUMP -f'
7795: ;;
7796:
7797: darwin* | rhapsody*)
7798: lt_cv_deplibs_check_method=pass_all
7799: ;;
7800:
7801: freebsd* | dragonfly*)
7802: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7803: case $host_cpu in
7804: i*86 )
7805: # Not sure whether the presence of OpenBSD here was a mistake.
7806: # Let's accept both of them until this is cleared up.
7807: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7808: lt_cv_file_magic_cmd=/usr/bin/file
7809: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7810: ;;
7811: esac
7812: else
7813: lt_cv_deplibs_check_method=pass_all
7814: fi
7815: ;;
7816:
7817: haiku*)
7818: lt_cv_deplibs_check_method=pass_all
7819: ;;
7820:
7821: hpux10.20* | hpux11*)
7822: lt_cv_file_magic_cmd=/usr/bin/file
7823: case $host_cpu in
7824: ia64*)
7825: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7826: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7827: ;;
7828: hppa*64*)
7829: 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]'
7830: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7831: ;;
7832: *)
7833: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7834: lt_cv_file_magic_test_file=/usr/lib/libc.sl
7835: ;;
7836: esac
7837: ;;
7838:
7839: interix[3-9]*)
7840: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7841: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7842: ;;
7843:
7844: irix5* | irix6* | nonstopux*)
7845: case $LD in
7846: *-32|*"-32 ") libmagic=32-bit;;
7847: *-n32|*"-n32 ") libmagic=N32;;
7848: *-64|*"-64 ") libmagic=64-bit;;
7849: *) libmagic=never-match;;
7850: esac
7851: lt_cv_deplibs_check_method=pass_all
7852: ;;
7853:
7854: # This must be glibc/ELF.
7855: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7856: lt_cv_deplibs_check_method=pass_all
7857: ;;
7858:
7859: netbsd*)
7860: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7861: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7862: else
7863: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7864: fi
7865: ;;
7866:
7867: newos6*)
7868: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7869: lt_cv_file_magic_cmd=/usr/bin/file
7870: lt_cv_file_magic_test_file=/usr/lib/libnls.so
7871: ;;
7872:
7873: *nto* | *qnx*)
7874: lt_cv_deplibs_check_method=pass_all
7875: ;;
7876:
7877: openbsd* | bitrig*)
7878: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7879: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7880: else
7881: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7882: fi
7883: ;;
7884:
7885: osf3* | osf4* | osf5*)
7886: lt_cv_deplibs_check_method=pass_all
7887: ;;
7888:
7889: rdos*)
7890: lt_cv_deplibs_check_method=pass_all
7891: ;;
7892:
7893: solaris*)
7894: lt_cv_deplibs_check_method=pass_all
7895: ;;
7896:
7897: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7898: lt_cv_deplibs_check_method=pass_all
7899: ;;
7900:
7901: sysv4 | sysv4.3*)
7902: case $host_vendor in
7903: motorola)
7904: 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]'
7905: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7906: ;;
7907: ncr)
7908: lt_cv_deplibs_check_method=pass_all
7909: ;;
7910: sequent)
7911: lt_cv_file_magic_cmd='/bin/file'
7912: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7913: ;;
7914: sni)
7915: lt_cv_file_magic_cmd='/bin/file'
7916: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7917: lt_cv_file_magic_test_file=/lib/libc.so
7918: ;;
7919: siemens)
7920: lt_cv_deplibs_check_method=pass_all
7921: ;;
7922: pc)
7923: lt_cv_deplibs_check_method=pass_all
7924: ;;
7925: esac
7926: ;;
7927:
7928: tpf*)
7929: lt_cv_deplibs_check_method=pass_all
7930: ;;
7931: os2*)
7932: lt_cv_deplibs_check_method=pass_all
7933: ;;
7934: esac
7935:
7936: fi
7937: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7938: $as_echo "$lt_cv_deplibs_check_method" >&6; }
7939:
7940: file_magic_glob=
7941: want_nocaseglob=no
7942: if test "$build" = "$host"; then
7943: case $host_os in
7944: mingw* | pw32*)
7945: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7946: want_nocaseglob=yes
7947: else
7948: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7949: fi
7950: ;;
7951: esac
7952: fi
7953:
7954: file_magic_cmd=$lt_cv_file_magic_cmd
7955: deplibs_check_method=$lt_cv_deplibs_check_method
7956: test -z "$deplibs_check_method" && deplibs_check_method=unknown
7957:
7958:
7959:
7960:
7961:
7962:
7963:
7964:
7965:
7966:
7967:
7968:
7969:
7970:
7971:
7972:
7973:
7974:
7975:
7976:
7977:
7978:
7979: if test -n "$ac_tool_prefix"; then
7980: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7981: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7982: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7983: $as_echo_n "checking for $ac_word... " >&6; }
7984: if ${ac_cv_prog_DLLTOOL+:} false; then :
7985: $as_echo_n "(cached) " >&6
7986: else
7987: if test -n "$DLLTOOL"; then
7988: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7989: else
7990: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991: for as_dir in $PATH
7992: do
7993: IFS=$as_save_IFS
7994: test -z "$as_dir" && as_dir=.
7995: for ac_exec_ext in '' $ac_executable_extensions; do
7996: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7997: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7998: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7999: break 2
8000: fi
8001: done
8002: done
8003: IFS=$as_save_IFS
8004:
8005: fi
8006: fi
8007: DLLTOOL=$ac_cv_prog_DLLTOOL
8008: if test -n "$DLLTOOL"; then
8009: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8010: $as_echo "$DLLTOOL" >&6; }
8011: else
8012: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013: $as_echo "no" >&6; }
8014: fi
8015:
8016:
8017: fi
8018: if test -z "$ac_cv_prog_DLLTOOL"; then
8019: ac_ct_DLLTOOL=$DLLTOOL
8020: # Extract the first word of "dlltool", so it can be a program name with args.
8021: set dummy dlltool; ac_word=$2
8022: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8023: $as_echo_n "checking for $ac_word... " >&6; }
8024: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8025: $as_echo_n "(cached) " >&6
8026: else
8027: if test -n "$ac_ct_DLLTOOL"; then
8028: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8029: else
8030: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031: for as_dir in $PATH
8032: do
8033: IFS=$as_save_IFS
8034: test -z "$as_dir" && as_dir=.
8035: for ac_exec_ext in '' $ac_executable_extensions; do
8036: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8037: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8038: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8039: break 2
8040: fi
8041: done
8042: done
8043: IFS=$as_save_IFS
8044:
8045: fi
8046: fi
8047: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8048: if test -n "$ac_ct_DLLTOOL"; then
8049: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8050: $as_echo "$ac_ct_DLLTOOL" >&6; }
8051: else
8052: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053: $as_echo "no" >&6; }
8054: fi
8055:
8056: if test "x$ac_ct_DLLTOOL" = x; then
8057: DLLTOOL="false"
8058: else
8059: case $cross_compiling:$ac_tool_warned in
8060: yes:)
8061: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8062: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8063: ac_tool_warned=yes ;;
8064: esac
8065: DLLTOOL=$ac_ct_DLLTOOL
8066: fi
8067: else
8068: DLLTOOL="$ac_cv_prog_DLLTOOL"
8069: fi
8070:
8071: test -z "$DLLTOOL" && DLLTOOL=dlltool
8072:
8073:
8074:
8075:
8076:
8077:
8078:
8079:
8080:
8081:
8082: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8083: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8084: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8085: $as_echo_n "(cached) " >&6
8086: else
8087: lt_cv_sharedlib_from_linklib_cmd='unknown'
8088:
8089: case $host_os in
8090: cygwin* | mingw* | pw32* | cegcc*)
8091: # two different shell functions defined in ltmain.sh;
8092: # decide which one to use based on capabilities of $DLLTOOL
8093: case `$DLLTOOL --help 2>&1` in
8094: *--identify-strict*)
8095: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8096: ;;
8097: *)
8098: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8099: ;;
8100: esac
8101: ;;
8102: *)
8103: # fallback: assume linklib IS sharedlib
8104: lt_cv_sharedlib_from_linklib_cmd=$ECHO
8105: ;;
8106: esac
8107:
8108: fi
8109: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8110: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8111: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8112: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8113:
8114:
8115:
8116:
8117:
8118:
8119:
8120: if test -n "$ac_tool_prefix"; then
8121: for ac_prog in ar
8122: do
8123: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8124: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8125: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8126: $as_echo_n "checking for $ac_word... " >&6; }
8127: if ${ac_cv_prog_AR+:} false; then :
8128: $as_echo_n "(cached) " >&6
8129: else
8130: if test -n "$AR"; then
8131: ac_cv_prog_AR="$AR" # Let the user override the test.
8132: else
8133: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8134: for as_dir in $PATH
8135: do
8136: IFS=$as_save_IFS
8137: test -z "$as_dir" && as_dir=.
8138: for ac_exec_ext in '' $ac_executable_extensions; do
8139: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8140: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8141: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8142: break 2
8143: fi
8144: done
8145: done
8146: IFS=$as_save_IFS
8147:
8148: fi
8149: fi
8150: AR=$ac_cv_prog_AR
8151: if test -n "$AR"; then
8152: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8153: $as_echo "$AR" >&6; }
8154: else
8155: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156: $as_echo "no" >&6; }
8157: fi
8158:
8159:
8160: test -n "$AR" && break
8161: done
8162: fi
8163: if test -z "$AR"; then
8164: ac_ct_AR=$AR
8165: for ac_prog in ar
8166: do
8167: # Extract the first word of "$ac_prog", so it can be a program name with args.
8168: set dummy $ac_prog; ac_word=$2
8169: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8170: $as_echo_n "checking for $ac_word... " >&6; }
8171: if ${ac_cv_prog_ac_ct_AR+:} false; then :
8172: $as_echo_n "(cached) " >&6
8173: else
8174: if test -n "$ac_ct_AR"; then
8175: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8176: else
8177: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8178: for as_dir in $PATH
8179: do
8180: IFS=$as_save_IFS
8181: test -z "$as_dir" && as_dir=.
8182: for ac_exec_ext in '' $ac_executable_extensions; do
8183: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8184: ac_cv_prog_ac_ct_AR="$ac_prog"
8185: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8186: break 2
8187: fi
8188: done
8189: done
8190: IFS=$as_save_IFS
8191:
8192: fi
8193: fi
8194: ac_ct_AR=$ac_cv_prog_ac_ct_AR
8195: if test -n "$ac_ct_AR"; then
8196: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8197: $as_echo "$ac_ct_AR" >&6; }
8198: else
8199: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8200: $as_echo "no" >&6; }
8201: fi
8202:
8203:
8204: test -n "$ac_ct_AR" && break
8205: done
8206:
8207: if test "x$ac_ct_AR" = x; then
8208: AR="false"
8209: else
8210: case $cross_compiling:$ac_tool_warned in
8211: yes:)
8212: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8213: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8214: ac_tool_warned=yes ;;
8215: esac
8216: AR=$ac_ct_AR
8217: fi
8218: fi
8219:
8220: : ${AR=ar}
8221: : ${AR_FLAGS=cru}
8222:
8223:
8224:
8225:
8226:
8227:
8228:
8229:
8230:
8231:
8232:
8233: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8234: $as_echo_n "checking for archiver @FILE support... " >&6; }
8235: if ${lt_cv_ar_at_file+:} false; then :
8236: $as_echo_n "(cached) " >&6
8237: else
8238: lt_cv_ar_at_file=no
8239: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8240: /* end confdefs.h. */
8241:
8242: int
8243: main ()
8244: {
8245:
8246: ;
8247: return 0;
8248: }
8249: _ACEOF
8250: if ac_fn_c_try_compile "$LINENO"; then :
8251: echo conftest.$ac_objext > conftest.lst
8252: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8253: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8254: (eval $lt_ar_try) 2>&5
8255: ac_status=$?
8256: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8257: test $ac_status = 0; }
8258: if test 0 -eq "$ac_status"; then
8259: # Ensure the archiver fails upon bogus file names.
8260: rm -f conftest.$ac_objext libconftest.a
8261: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8262: (eval $lt_ar_try) 2>&5
8263: ac_status=$?
8264: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8265: test $ac_status = 0; }
8266: if test 0 -ne "$ac_status"; then
8267: lt_cv_ar_at_file=@
8268: fi
8269: fi
8270: rm -f conftest.* libconftest.a
8271:
8272: fi
8273: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8274:
8275: fi
8276: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8277: $as_echo "$lt_cv_ar_at_file" >&6; }
8278:
8279: if test no = "$lt_cv_ar_at_file"; then
8280: archiver_list_spec=
8281: else
8282: archiver_list_spec=$lt_cv_ar_at_file
8283: fi
8284:
8285:
8286:
8287:
8288:
8289:
8290:
8291: if test -n "$ac_tool_prefix"; then
8292: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8293: set dummy ${ac_tool_prefix}strip; ac_word=$2
8294: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8295: $as_echo_n "checking for $ac_word... " >&6; }
8296: if ${ac_cv_prog_STRIP+:} false; then :
8297: $as_echo_n "(cached) " >&6
8298: else
8299: if test -n "$STRIP"; then
8300: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8301: else
8302: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8303: for as_dir in $PATH
8304: do
8305: IFS=$as_save_IFS
8306: test -z "$as_dir" && as_dir=.
8307: for ac_exec_ext in '' $ac_executable_extensions; do
8308: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8309: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8310: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8311: break 2
8312: fi
8313: done
8314: done
8315: IFS=$as_save_IFS
8316:
8317: fi
8318: fi
8319: STRIP=$ac_cv_prog_STRIP
8320: if test -n "$STRIP"; then
8321: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8322: $as_echo "$STRIP" >&6; }
8323: else
8324: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8325: $as_echo "no" >&6; }
8326: fi
8327:
8328:
8329: fi
8330: if test -z "$ac_cv_prog_STRIP"; then
8331: ac_ct_STRIP=$STRIP
8332: # Extract the first word of "strip", so it can be a program name with args.
8333: set dummy strip; ac_word=$2
8334: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8335: $as_echo_n "checking for $ac_word... " >&6; }
8336: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8337: $as_echo_n "(cached) " >&6
8338: else
8339: if test -n "$ac_ct_STRIP"; then
8340: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8341: else
8342: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8343: for as_dir in $PATH
8344: do
8345: IFS=$as_save_IFS
8346: test -z "$as_dir" && as_dir=.
8347: for ac_exec_ext in '' $ac_executable_extensions; do
8348: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8349: ac_cv_prog_ac_ct_STRIP="strip"
8350: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8351: break 2
8352: fi
8353: done
8354: done
8355: IFS=$as_save_IFS
8356:
8357: fi
8358: fi
8359: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8360: if test -n "$ac_ct_STRIP"; then
8361: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8362: $as_echo "$ac_ct_STRIP" >&6; }
8363: else
8364: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8365: $as_echo "no" >&6; }
8366: fi
8367:
8368: if test "x$ac_ct_STRIP" = x; then
8369: STRIP=":"
8370: else
8371: case $cross_compiling:$ac_tool_warned in
8372: yes:)
8373: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8374: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8375: ac_tool_warned=yes ;;
8376: esac
8377: STRIP=$ac_ct_STRIP
8378: fi
8379: else
8380: STRIP="$ac_cv_prog_STRIP"
8381: fi
8382:
8383: test -z "$STRIP" && STRIP=:
8384:
8385:
8386:
8387:
8388:
8389:
8390: if test -n "$ac_tool_prefix"; then
8391: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8392: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8393: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8394: $as_echo_n "checking for $ac_word... " >&6; }
8395: if ${ac_cv_prog_RANLIB+:} false; then :
8396: $as_echo_n "(cached) " >&6
8397: else
8398: if test -n "$RANLIB"; then
8399: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8400: else
8401: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8402: for as_dir in $PATH
8403: do
8404: IFS=$as_save_IFS
8405: test -z "$as_dir" && as_dir=.
8406: for ac_exec_ext in '' $ac_executable_extensions; do
8407: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8408: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8409: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8410: break 2
8411: fi
8412: done
8413: done
8414: IFS=$as_save_IFS
8415:
8416: fi
8417: fi
8418: RANLIB=$ac_cv_prog_RANLIB
8419: if test -n "$RANLIB"; then
8420: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8421: $as_echo "$RANLIB" >&6; }
8422: else
8423: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8424: $as_echo "no" >&6; }
8425: fi
8426:
8427:
8428: fi
8429: if test -z "$ac_cv_prog_RANLIB"; then
8430: ac_ct_RANLIB=$RANLIB
8431: # Extract the first word of "ranlib", so it can be a program name with args.
8432: set dummy ranlib; ac_word=$2
8433: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8434: $as_echo_n "checking for $ac_word... " >&6; }
8435: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8436: $as_echo_n "(cached) " >&6
8437: else
8438: if test -n "$ac_ct_RANLIB"; then
8439: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8440: else
8441: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8442: for as_dir in $PATH
8443: do
8444: IFS=$as_save_IFS
8445: test -z "$as_dir" && as_dir=.
8446: for ac_exec_ext in '' $ac_executable_extensions; do
8447: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8448: ac_cv_prog_ac_ct_RANLIB="ranlib"
8449: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8450: break 2
8451: fi
8452: done
8453: done
8454: IFS=$as_save_IFS
8455:
8456: fi
8457: fi
8458: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8459: if test -n "$ac_ct_RANLIB"; then
8460: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8461: $as_echo "$ac_ct_RANLIB" >&6; }
8462: else
8463: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8464: $as_echo "no" >&6; }
8465: fi
8466:
8467: if test "x$ac_ct_RANLIB" = x; then
8468: RANLIB=":"
8469: else
8470: case $cross_compiling:$ac_tool_warned in
8471: yes:)
8472: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8473: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8474: ac_tool_warned=yes ;;
8475: esac
8476: RANLIB=$ac_ct_RANLIB
8477: fi
8478: else
8479: RANLIB="$ac_cv_prog_RANLIB"
8480: fi
8481:
8482: test -z "$RANLIB" && RANLIB=:
8483:
8484:
8485:
8486:
8487:
8488:
8489: # Determine commands to create old-style static archives.
8490: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8491: old_postinstall_cmds='chmod 644 $oldlib'
8492: old_postuninstall_cmds=
8493:
8494: if test -n "$RANLIB"; then
8495: case $host_os in
8496: bitrig* | openbsd*)
8497: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8498: ;;
8499: *)
8500: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8501: ;;
8502: esac
8503: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8504: fi
8505:
8506: case $host_os in
8507: darwin*)
8508: lock_old_archive_extraction=yes ;;
8509: *)
8510: lock_old_archive_extraction=no ;;
8511: esac
8512:
8513:
8514:
8515:
8516:
8517:
8518:
8519:
8520:
8521:
8522:
8523:
8524:
8525:
8526:
8527:
8528:
8529:
8530:
8531:
8532:
8533:
8534:
8535:
8536:
8537:
8538:
8539:
8540:
8541:
8542:
8543:
8544:
8545:
8546:
8547:
8548:
8549:
8550:
8551: # If no C compiler was specified, use CC.
8552: LTCC=${LTCC-"$CC"}
8553:
8554: # If no C compiler flags were specified, use CFLAGS.
8555: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8556:
8557: # Allow CC to be a program name with arguments.
8558: compiler=$CC
8559:
8560:
8561: # Check for command to grab the raw symbol name followed by C symbol from nm.
8562: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8563: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8564: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8565: $as_echo_n "(cached) " >&6
8566: else
8567:
8568: # These are sane defaults that work on at least a few old systems.
8569: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8570:
8571: # Character class describing NM global symbol codes.
8572: symcode='[BCDEGRST]'
8573:
8574: # Regexp to match symbols that can be accessed directly from C.
8575: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8576:
8577: # Define system-specific variables.
8578: case $host_os in
8579: aix*)
8580: symcode='[BCDT]'
8581: ;;
8582: cygwin* | mingw* | pw32* | cegcc*)
8583: symcode='[ABCDGISTW]'
8584: ;;
8585: hpux*)
8586: if test ia64 = "$host_cpu"; then
8587: symcode='[ABCDEGRST]'
8588: fi
8589: ;;
8590: irix* | nonstopux*)
8591: symcode='[BCDEGRST]'
8592: ;;
8593: osf*)
8594: symcode='[BCDEGQRST]'
8595: ;;
8596: solaris*)
8597: symcode='[BDRT]'
8598: ;;
8599: sco3.2v5*)
8600: symcode='[DT]'
8601: ;;
8602: sysv4.2uw2*)
8603: symcode='[DT]'
8604: ;;
8605: sysv5* | sco5v6* | unixware* | OpenUNIX*)
8606: symcode='[ABDT]'
8607: ;;
8608: sysv4)
8609: symcode='[DFNSTU]'
8610: ;;
8611: esac
8612:
8613: # If we're using GNU nm, then use its standard symbol codes.
8614: case `$NM -V 2>&1` in
8615: *GNU* | *'with BFD'*)
8616: symcode='[ABCDGIRSTW]' ;;
8617: esac
8618:
8619: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8620: # Gets list of data symbols to import.
8621: lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8622: # Adjust the below global symbol transforms to fixup imported variables.
8623: lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8624: lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8625: lt_c_name_lib_hook="\
8626: -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8627: -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8628: else
8629: # Disable hooks by default.
8630: lt_cv_sys_global_symbol_to_import=
8631: lt_cdecl_hook=
8632: lt_c_name_hook=
8633: lt_c_name_lib_hook=
8634: fi
8635:
8636: # Transform an extracted symbol line into a proper C declaration.
8637: # Some systems (esp. on ia64) link data and code symbols differently,
8638: # so use this general approach.
8639: lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8640: $lt_cdecl_hook\
8641: " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8642: " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8643:
8644: # Transform an extracted symbol line into symbol name and symbol address
8645: lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8646: $lt_c_name_hook\
8647: " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8648: " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8649:
8650: # Transform an extracted symbol line into symbol name with lib prefix and
8651: # symbol address.
8652: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8653: $lt_c_name_lib_hook\
8654: " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8655: " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8656: " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8657:
8658: # Handle CRLF in mingw tool chain
8659: opt_cr=
8660: case $build_os in
8661: mingw*)
8662: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8663: ;;
8664: esac
8665:
8666: # Try without a prefix underscore, then with it.
8667: for ac_symprfx in "" "_"; do
8668:
8669: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8670: symxfrm="\\1 $ac_symprfx\\2 \\2"
8671:
8672: # Write the raw and C identifiers.
8673: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8674: # Fake it for dumpbin and say T for any non-static function,
8675: # D for any global variable and I for any imported variable.
8676: # Also find C++ and __fastcall symbols from MSVC++,
8677: # which start with @ or ?.
8678: lt_cv_sys_global_symbol_pipe="$AWK '"\
8679: " {last_section=section; section=\$ 3};"\
8680: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8681: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8682: " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8683: " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8684: " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8685: " \$ 0!~/External *\|/{next};"\
8686: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8687: " {if(hide[section]) next};"\
8688: " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8689: " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8690: " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8691: " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8692: " ' prfx=^$ac_symprfx"
8693: else
8694: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8695: fi
8696: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8697:
8698: # Check to see that the pipe works correctly.
8699: pipe_works=no
8700:
8701: rm -f conftest*
8702: cat > conftest.$ac_ext <<_LT_EOF
8703: #ifdef __cplusplus
8704: extern "C" {
8705: #endif
8706: char nm_test_var;
8707: void nm_test_func(void);
8708: void nm_test_func(void){}
8709: #ifdef __cplusplus
8710: }
8711: #endif
8712: int main(){nm_test_var='a';nm_test_func();return(0);}
8713: _LT_EOF
8714:
8715: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8716: (eval $ac_compile) 2>&5
8717: ac_status=$?
8718: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8719: test $ac_status = 0; }; then
8720: # Now try to grab the symbols.
8721: nlist=conftest.nm
8722: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8723: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8724: ac_status=$?
8725: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8726: test $ac_status = 0; } && test -s "$nlist"; then
8727: # Try sorting and uniquifying the output.
8728: if sort "$nlist" | uniq > "$nlist"T; then
8729: mv -f "$nlist"T "$nlist"
8730: else
8731: rm -f "$nlist"T
8732: fi
8733:
8734: # Make sure that we snagged all the symbols we need.
8735: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8736: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8737: cat <<_LT_EOF > conftest.$ac_ext
8738: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8739: #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8740: /* DATA imports from DLLs on WIN32 can't be const, because runtime
8741: relocations are performed -- see ld's documentation on pseudo-relocs. */
8742: # define LT_DLSYM_CONST
8743: #elif defined __osf__
8744: /* This system does not cope well with relocations in const data. */
8745: # define LT_DLSYM_CONST
8746: #else
8747: # define LT_DLSYM_CONST const
8748: #endif
8749:
8750: #ifdef __cplusplus
8751: extern "C" {
8752: #endif
8753:
8754: _LT_EOF
8755: # Now generate the symbol file.
8756: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8757:
8758: cat <<_LT_EOF >> conftest.$ac_ext
8759:
8760: /* The mapping between symbol names and symbols. */
8761: LT_DLSYM_CONST struct {
8762: const char *name;
8763: void *address;
8764: }
8765: lt__PROGRAM__LTX_preloaded_symbols[] =
8766: {
8767: { "@PROGRAM@", (void *) 0 },
8768: _LT_EOF
8769: $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8770: cat <<\_LT_EOF >> conftest.$ac_ext
8771: {0, (void *) 0}
8772: };
8773:
8774: /* This works around a problem in FreeBSD linker */
8775: #ifdef FREEBSD_WORKAROUND
8776: static const void *lt_preloaded_setup() {
8777: return lt__PROGRAM__LTX_preloaded_symbols;
8778: }
8779: #endif
8780:
8781: #ifdef __cplusplus
8782: }
8783: #endif
8784: _LT_EOF
8785: # Now try linking the two files.
8786: mv conftest.$ac_objext conftstm.$ac_objext
8787: lt_globsym_save_LIBS=$LIBS
8788: lt_globsym_save_CFLAGS=$CFLAGS
8789: LIBS=conftstm.$ac_objext
8790: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8791: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8792: (eval $ac_link) 2>&5
8793: ac_status=$?
8794: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8795: test $ac_status = 0; } && test -s conftest$ac_exeext; then
8796: pipe_works=yes
8797: fi
8798: LIBS=$lt_globsym_save_LIBS
8799: CFLAGS=$lt_globsym_save_CFLAGS
8800: else
8801: echo "cannot find nm_test_func in $nlist" >&5
8802: fi
8803: else
8804: echo "cannot find nm_test_var in $nlist" >&5
8805: fi
8806: else
8807: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8808: fi
8809: else
8810: echo "$progname: failed program was:" >&5
8811: cat conftest.$ac_ext >&5
8812: fi
8813: rm -rf conftest* conftst*
8814:
8815: # Do not use the global_symbol_pipe unless it works.
8816: if test yes = "$pipe_works"; then
8817: break
8818: else
8819: lt_cv_sys_global_symbol_pipe=
8820: fi
8821: done
8822:
8823: fi
8824:
8825: if test -z "$lt_cv_sys_global_symbol_pipe"; then
8826: lt_cv_sys_global_symbol_to_cdecl=
8827: fi
8828: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8829: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8830: $as_echo "failed" >&6; }
8831: else
8832: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8833: $as_echo "ok" >&6; }
8834: fi
8835:
8836: # Response file support.
8837: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8838: nm_file_list_spec='@'
8839: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8840: nm_file_list_spec='@'
8841: fi
8842:
8843:
8844:
8845:
8846:
8847:
8848:
8849:
8850:
8851:
8852:
8853:
8854:
8855:
8856:
8857:
8858:
8859:
8860:
8861:
8862:
8863:
8864:
8865:
8866:
8867:
8868:
8869:
8870:
8871:
8872:
8873:
8874:
8875:
8876:
8877:
8878:
8879: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8880: $as_echo_n "checking for sysroot... " >&6; }
8881:
8882: # Check whether --with-sysroot was given.
8883: if test "${with_sysroot+set}" = set; then :
8884: withval=$with_sysroot;
8885: else
8886: with_sysroot=no
8887: fi
8888:
8889:
8890: lt_sysroot=
8891: case $with_sysroot in #(
8892: yes)
8893: if test yes = "$GCC"; then
8894: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8895: fi
8896: ;; #(
8897: /*)
8898: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8899: ;; #(
8900: no|'')
8901: ;; #(
8902: *)
8903: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8904: $as_echo "$with_sysroot" >&6; }
8905: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8906: ;;
8907: esac
8908:
8909: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8910: $as_echo "${lt_sysroot:-no}" >&6; }
8911:
8912:
8913:
8914:
8915:
8916: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8917: $as_echo_n "checking for a working dd... " >&6; }
8918: if ${ac_cv_path_lt_DD+:} false; then :
8919: $as_echo_n "(cached) " >&6
8920: else
8921: printf 0123456789abcdef0123456789abcdef >conftest.i
8922: cat conftest.i conftest.i >conftest2.i
8923: : ${lt_DD:=$DD}
8924: if test -z "$lt_DD"; then
8925: ac_path_lt_DD_found=false
8926: # Loop through the user's path and test for each of PROGNAME-LIST
8927: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8928: for as_dir in $PATH
8929: do
8930: IFS=$as_save_IFS
8931: test -z "$as_dir" && as_dir=.
8932: for ac_prog in dd; do
8933: for ac_exec_ext in '' $ac_executable_extensions; do
8934: ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8935: as_fn_executable_p "$ac_path_lt_DD" || continue
8936: if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8937: cmp -s conftest.i conftest.out \
8938: && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8939: fi
8940: $ac_path_lt_DD_found && break 3
8941: done
8942: done
8943: done
8944: IFS=$as_save_IFS
8945: if test -z "$ac_cv_path_lt_DD"; then
8946: :
8947: fi
8948: else
8949: ac_cv_path_lt_DD=$lt_DD
8950: fi
8951:
8952: rm -f conftest.i conftest2.i conftest.out
8953: fi
8954: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8955: $as_echo "$ac_cv_path_lt_DD" >&6; }
8956:
8957:
8958: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8959: $as_echo_n "checking how to truncate binary pipes... " >&6; }
8960: if ${lt_cv_truncate_bin+:} false; then :
8961: $as_echo_n "(cached) " >&6
8962: else
8963: printf 0123456789abcdef0123456789abcdef >conftest.i
8964: cat conftest.i conftest.i >conftest2.i
8965: lt_cv_truncate_bin=
8966: if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8967: cmp -s conftest.i conftest.out \
8968: && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8969: fi
8970: rm -f conftest.i conftest2.i conftest.out
8971: test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8972: fi
8973: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8974: $as_echo "$lt_cv_truncate_bin" >&6; }
8975:
8976:
8977:
8978:
8979:
8980:
8981:
8982: # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8983: func_cc_basename ()
8984: {
8985: for cc_temp in $*""; do
8986: case $cc_temp in
8987: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8988: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8989: \-*) ;;
8990: *) break;;
8991: esac
8992: done
8993: func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8994: }
8995:
8996: # Check whether --enable-libtool-lock was given.
8997: if test "${enable_libtool_lock+set}" = set; then :
8998: enableval=$enable_libtool_lock;
8999: fi
9000:
9001: test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9002:
9003: # Some flags need to be propagated to the compiler or linker for good
9004: # libtool support.
9005: case $host in
9006: ia64-*-hpux*)
9007: # Find out what ABI is being produced by ac_compile, and set mode
9008: # options accordingly.
9009: echo 'int i;' > conftest.$ac_ext
9010: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9011: (eval $ac_compile) 2>&5
9012: ac_status=$?
9013: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9014: test $ac_status = 0; }; then
9015: case `/usr/bin/file conftest.$ac_objext` in
9016: *ELF-32*)
9017: HPUX_IA64_MODE=32
9018: ;;
9019: *ELF-64*)
9020: HPUX_IA64_MODE=64
9021: ;;
9022: esac
9023: fi
9024: rm -rf conftest*
9025: ;;
9026: *-*-irix6*)
9027: # Find out what ABI is being produced by ac_compile, and set linker
9028: # options accordingly.
9029: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9030: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9031: (eval $ac_compile) 2>&5
9032: ac_status=$?
9033: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9034: test $ac_status = 0; }; then
9035: if test yes = "$lt_cv_prog_gnu_ld"; then
9036: case `/usr/bin/file conftest.$ac_objext` in
9037: *32-bit*)
9038: LD="${LD-ld} -melf32bsmip"
9039: ;;
9040: *N32*)
9041: LD="${LD-ld} -melf32bmipn32"
9042: ;;
9043: *64-bit*)
9044: LD="${LD-ld} -melf64bmip"
9045: ;;
9046: esac
9047: else
9048: case `/usr/bin/file conftest.$ac_objext` in
9049: *32-bit*)
9050: LD="${LD-ld} -32"
9051: ;;
9052: *N32*)
9053: LD="${LD-ld} -n32"
9054: ;;
9055: *64-bit*)
9056: LD="${LD-ld} -64"
9057: ;;
9058: esac
9059: fi
9060: fi
9061: rm -rf conftest*
9062: ;;
9063:
9064: mips64*-*linux*)
9065: # Find out what ABI is being produced by ac_compile, and set linker
9066: # options accordingly.
9067: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9068: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9069: (eval $ac_compile) 2>&5
9070: ac_status=$?
9071: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9072: test $ac_status = 0; }; then
9073: emul=elf
9074: case `/usr/bin/file conftest.$ac_objext` in
9075: *32-bit*)
9076: emul="${emul}32"
9077: ;;
9078: *64-bit*)
9079: emul="${emul}64"
9080: ;;
9081: esac
9082: case `/usr/bin/file conftest.$ac_objext` in
9083: *MSB*)
9084: emul="${emul}btsmip"
9085: ;;
9086: *LSB*)
9087: emul="${emul}ltsmip"
9088: ;;
9089: esac
9090: case `/usr/bin/file conftest.$ac_objext` in
9091: *N32*)
9092: emul="${emul}n32"
9093: ;;
9094: esac
9095: LD="${LD-ld} -m $emul"
9096: fi
9097: rm -rf conftest*
9098: ;;
9099:
9100: x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9101: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9102: # Find out what ABI is being produced by ac_compile, and set linker
9103: # options accordingly. Note that the listed cases only cover the
9104: # situations where additional linker options are needed (such as when
9105: # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9106: # vice versa); the common cases where no linker options are needed do
9107: # not appear in the list.
9108: echo 'int i;' > conftest.$ac_ext
9109: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9110: (eval $ac_compile) 2>&5
9111: ac_status=$?
9112: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9113: test $ac_status = 0; }; then
9114: case `/usr/bin/file conftest.o` in
9115: *32-bit*)
9116: case $host in
9117: x86_64-*kfreebsd*-gnu)
9118: LD="${LD-ld} -m elf_i386_fbsd"
9119: ;;
9120: x86_64-*linux*)
9121: case `/usr/bin/file conftest.o` in
9122: *x86-64*)
9123: LD="${LD-ld} -m elf32_x86_64"
9124: ;;
9125: *)
9126: LD="${LD-ld} -m elf_i386"
9127: ;;
9128: esac
9129: ;;
9130: powerpc64le-*linux*)
9131: LD="${LD-ld} -m elf32lppclinux"
9132: ;;
9133: powerpc64-*linux*)
9134: LD="${LD-ld} -m elf32ppclinux"
9135: ;;
9136: s390x-*linux*)
9137: LD="${LD-ld} -m elf_s390"
9138: ;;
9139: sparc64-*linux*)
9140: LD="${LD-ld} -m elf32_sparc"
9141: ;;
9142: esac
9143: ;;
9144: *64-bit*)
9145: case $host in
9146: x86_64-*kfreebsd*-gnu)
9147: LD="${LD-ld} -m elf_x86_64_fbsd"
9148: ;;
9149: x86_64-*linux*)
9150: LD="${LD-ld} -m elf_x86_64"
9151: ;;
9152: powerpcle-*linux*)
9153: LD="${LD-ld} -m elf64lppc"
9154: ;;
9155: powerpc-*linux*)
9156: LD="${LD-ld} -m elf64ppc"
9157: ;;
9158: s390*-*linux*|s390*-*tpf*)
9159: LD="${LD-ld} -m elf64_s390"
9160: ;;
9161: sparc*-*linux*)
9162: LD="${LD-ld} -m elf64_sparc"
9163: ;;
9164: esac
9165: ;;
9166: esac
9167: fi
9168: rm -rf conftest*
9169: ;;
9170:
9171: *-*-sco3.2v5*)
9172: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9173: SAVE_CFLAGS=$CFLAGS
9174: CFLAGS="$CFLAGS -belf"
9175: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9176: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9177: if ${lt_cv_cc_needs_belf+:} false; then :
9178: $as_echo_n "(cached) " >&6
9179: else
9180: ac_ext=c
9181: ac_cpp='$CPP $CPPFLAGS'
9182: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9183: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9184: ac_compiler_gnu=$ac_cv_c_compiler_gnu
9185:
9186: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9187: /* end confdefs.h. */
9188:
9189: int
9190: main ()
9191: {
9192:
9193: ;
9194: return 0;
9195: }
9196: _ACEOF
9197: if ac_fn_c_try_link "$LINENO"; then :
9198: lt_cv_cc_needs_belf=yes
9199: else
9200: lt_cv_cc_needs_belf=no
9201: fi
9202: rm -f core conftest.err conftest.$ac_objext \
9203: conftest$ac_exeext conftest.$ac_ext
9204: ac_ext=c
9205: ac_cpp='$CPP $CPPFLAGS'
9206: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9207: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9208: ac_compiler_gnu=$ac_cv_c_compiler_gnu
9209:
9210: fi
9211: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9212: $as_echo "$lt_cv_cc_needs_belf" >&6; }
9213: if test yes != "$lt_cv_cc_needs_belf"; then
9214: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9215: CFLAGS=$SAVE_CFLAGS
9216: fi
9217: ;;
9218: *-*solaris*)
9219: # Find out what ABI is being produced by ac_compile, and set linker
9220: # options accordingly.
9221: echo 'int i;' > conftest.$ac_ext
9222: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9223: (eval $ac_compile) 2>&5
9224: ac_status=$?
9225: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9226: test $ac_status = 0; }; then
9227: case `/usr/bin/file conftest.o` in
9228: *64-bit*)
9229: case $lt_cv_prog_gnu_ld in
9230: yes*)
9231: case $host in
9232: i?86-*-solaris*|x86_64-*-solaris*)
9233: LD="${LD-ld} -m elf_x86_64"
9234: ;;
9235: sparc*-*-solaris*)
9236: LD="${LD-ld} -m elf64_sparc"
9237: ;;
9238: esac
9239: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9240: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9241: LD=${LD-ld}_sol2
9242: fi
9243: ;;
9244: *)
9245: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9246: LD="${LD-ld} -64"
9247: fi
9248: ;;
9249: esac
9250: ;;
9251: esac
9252: fi
9253: rm -rf conftest*
9254: ;;
9255: esac
9256:
9257: need_locks=$enable_libtool_lock
9258:
9259: if test -n "$ac_tool_prefix"; then
9260: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9261: set dummy ${ac_tool_prefix}mt; ac_word=$2
9262: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9263: $as_echo_n "checking for $ac_word... " >&6; }
9264: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9265: $as_echo_n "(cached) " >&6
9266: else
9267: if test -n "$MANIFEST_TOOL"; then
9268: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9269: else
9270: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9271: for as_dir in $PATH
9272: do
9273: IFS=$as_save_IFS
9274: test -z "$as_dir" && as_dir=.
9275: for ac_exec_ext in '' $ac_executable_extensions; do
9276: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9277: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9278: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9279: break 2
9280: fi
9281: done
9282: done
9283: IFS=$as_save_IFS
9284:
9285: fi
9286: fi
9287: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9288: if test -n "$MANIFEST_TOOL"; then
9289: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9290: $as_echo "$MANIFEST_TOOL" >&6; }
9291: else
9292: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9293: $as_echo "no" >&6; }
9294: fi
9295:
9296:
9297: fi
9298: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9299: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9300: # Extract the first word of "mt", so it can be a program name with args.
9301: set dummy mt; ac_word=$2
9302: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9303: $as_echo_n "checking for $ac_word... " >&6; }
9304: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9305: $as_echo_n "(cached) " >&6
9306: else
9307: if test -n "$ac_ct_MANIFEST_TOOL"; then
9308: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9309: else
9310: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9311: for as_dir in $PATH
9312: do
9313: IFS=$as_save_IFS
9314: test -z "$as_dir" && as_dir=.
9315: for ac_exec_ext in '' $ac_executable_extensions; do
9316: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9317: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9318: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9319: break 2
9320: fi
9321: done
9322: done
9323: IFS=$as_save_IFS
9324:
9325: fi
9326: fi
9327: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9328: if test -n "$ac_ct_MANIFEST_TOOL"; then
9329: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9330: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9331: else
9332: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9333: $as_echo "no" >&6; }
9334: fi
9335:
9336: if test "x$ac_ct_MANIFEST_TOOL" = x; then
9337: MANIFEST_TOOL=":"
9338: else
9339: case $cross_compiling:$ac_tool_warned in
9340: yes:)
9341: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9342: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9343: ac_tool_warned=yes ;;
9344: esac
9345: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9346: fi
9347: else
9348: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9349: fi
9350:
9351: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9352: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9353: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9354: if ${lt_cv_path_mainfest_tool+:} false; then :
9355: $as_echo_n "(cached) " >&6
9356: else
9357: lt_cv_path_mainfest_tool=no
9358: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9359: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9360: cat conftest.err >&5
9361: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9362: lt_cv_path_mainfest_tool=yes
9363: fi
9364: rm -f conftest*
9365: fi
9366: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9367: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9368: if test yes != "$lt_cv_path_mainfest_tool"; then
9369: MANIFEST_TOOL=:
9370: fi
9371:
9372:
9373:
9374:
9375:
9376:
9377: case $host_os in
9378: rhapsody* | darwin*)
9379: if test -n "$ac_tool_prefix"; then
9380: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9381: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9382: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9383: $as_echo_n "checking for $ac_word... " >&6; }
9384: if ${ac_cv_prog_DSYMUTIL+:} false; then :
9385: $as_echo_n "(cached) " >&6
9386: else
9387: if test -n "$DSYMUTIL"; then
9388: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9389: else
9390: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9391: for as_dir in $PATH
9392: do
9393: IFS=$as_save_IFS
9394: test -z "$as_dir" && as_dir=.
9395: for ac_exec_ext in '' $ac_executable_extensions; do
9396: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9397: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9398: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9399: break 2
9400: fi
9401: done
9402: done
9403: IFS=$as_save_IFS
9404:
9405: fi
9406: fi
9407: DSYMUTIL=$ac_cv_prog_DSYMUTIL
9408: if test -n "$DSYMUTIL"; then
9409: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9410: $as_echo "$DSYMUTIL" >&6; }
9411: else
9412: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9413: $as_echo "no" >&6; }
9414: fi
9415:
9416:
9417: fi
9418: if test -z "$ac_cv_prog_DSYMUTIL"; then
9419: ac_ct_DSYMUTIL=$DSYMUTIL
9420: # Extract the first word of "dsymutil", so it can be a program name with args.
9421: set dummy dsymutil; ac_word=$2
9422: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9423: $as_echo_n "checking for $ac_word... " >&6; }
9424: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9425: $as_echo_n "(cached) " >&6
9426: else
9427: if test -n "$ac_ct_DSYMUTIL"; then
9428: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9429: else
9430: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9431: for as_dir in $PATH
9432: do
9433: IFS=$as_save_IFS
9434: test -z "$as_dir" && as_dir=.
9435: for ac_exec_ext in '' $ac_executable_extensions; do
9436: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9437: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9438: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9439: break 2
9440: fi
9441: done
9442: done
9443: IFS=$as_save_IFS
9444:
9445: fi
9446: fi
9447: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9448: if test -n "$ac_ct_DSYMUTIL"; then
9449: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9450: $as_echo "$ac_ct_DSYMUTIL" >&6; }
9451: else
9452: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9453: $as_echo "no" >&6; }
9454: fi
9455:
9456: if test "x$ac_ct_DSYMUTIL" = x; then
9457: DSYMUTIL=":"
9458: else
9459: case $cross_compiling:$ac_tool_warned in
9460: yes:)
9461: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9462: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9463: ac_tool_warned=yes ;;
9464: esac
9465: DSYMUTIL=$ac_ct_DSYMUTIL
9466: fi
9467: else
9468: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9469: fi
9470:
9471: if test -n "$ac_tool_prefix"; then
9472: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9473: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9474: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9475: $as_echo_n "checking for $ac_word... " >&6; }
9476: if ${ac_cv_prog_NMEDIT+:} false; then :
9477: $as_echo_n "(cached) " >&6
9478: else
9479: if test -n "$NMEDIT"; then
9480: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9481: else
9482: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9483: for as_dir in $PATH
9484: do
9485: IFS=$as_save_IFS
9486: test -z "$as_dir" && as_dir=.
9487: for ac_exec_ext in '' $ac_executable_extensions; do
9488: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9489: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9490: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9491: break 2
9492: fi
9493: done
9494: done
9495: IFS=$as_save_IFS
9496:
9497: fi
9498: fi
9499: NMEDIT=$ac_cv_prog_NMEDIT
9500: if test -n "$NMEDIT"; then
9501: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9502: $as_echo "$NMEDIT" >&6; }
9503: else
9504: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9505: $as_echo "no" >&6; }
9506: fi
9507:
9508:
9509: fi
9510: if test -z "$ac_cv_prog_NMEDIT"; then
9511: ac_ct_NMEDIT=$NMEDIT
9512: # Extract the first word of "nmedit", so it can be a program name with args.
9513: set dummy nmedit; ac_word=$2
9514: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9515: $as_echo_n "checking for $ac_word... " >&6; }
9516: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9517: $as_echo_n "(cached) " >&6
9518: else
9519: if test -n "$ac_ct_NMEDIT"; then
9520: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9521: else
9522: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9523: for as_dir in $PATH
9524: do
9525: IFS=$as_save_IFS
9526: test -z "$as_dir" && as_dir=.
9527: for ac_exec_ext in '' $ac_executable_extensions; do
9528: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9529: ac_cv_prog_ac_ct_NMEDIT="nmedit"
9530: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9531: break 2
9532: fi
9533: done
9534: done
9535: IFS=$as_save_IFS
9536:
9537: fi
9538: fi
9539: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9540: if test -n "$ac_ct_NMEDIT"; then
9541: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9542: $as_echo "$ac_ct_NMEDIT" >&6; }
9543: else
9544: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9545: $as_echo "no" >&6; }
9546: fi
9547:
9548: if test "x$ac_ct_NMEDIT" = x; then
9549: NMEDIT=":"
9550: else
9551: case $cross_compiling:$ac_tool_warned in
9552: yes:)
9553: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9554: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9555: ac_tool_warned=yes ;;
9556: esac
9557: NMEDIT=$ac_ct_NMEDIT
9558: fi
9559: else
9560: NMEDIT="$ac_cv_prog_NMEDIT"
9561: fi
9562:
9563: if test -n "$ac_tool_prefix"; then
9564: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9565: set dummy ${ac_tool_prefix}lipo; ac_word=$2
9566: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9567: $as_echo_n "checking for $ac_word... " >&6; }
9568: if ${ac_cv_prog_LIPO+:} false; then :
9569: $as_echo_n "(cached) " >&6
9570: else
9571: if test -n "$LIPO"; then
9572: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9573: else
9574: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9575: for as_dir in $PATH
9576: do
9577: IFS=$as_save_IFS
9578: test -z "$as_dir" && as_dir=.
9579: for ac_exec_ext in '' $ac_executable_extensions; do
9580: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9581: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9582: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9583: break 2
9584: fi
9585: done
9586: done
9587: IFS=$as_save_IFS
9588:
9589: fi
9590: fi
9591: LIPO=$ac_cv_prog_LIPO
9592: if test -n "$LIPO"; then
9593: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9594: $as_echo "$LIPO" >&6; }
9595: else
9596: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9597: $as_echo "no" >&6; }
9598: fi
9599:
9600:
9601: fi
9602: if test -z "$ac_cv_prog_LIPO"; then
9603: ac_ct_LIPO=$LIPO
9604: # Extract the first word of "lipo", so it can be a program name with args.
9605: set dummy lipo; ac_word=$2
9606: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9607: $as_echo_n "checking for $ac_word... " >&6; }
9608: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9609: $as_echo_n "(cached) " >&6
9610: else
9611: if test -n "$ac_ct_LIPO"; then
9612: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9613: else
9614: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9615: for as_dir in $PATH
9616: do
9617: IFS=$as_save_IFS
9618: test -z "$as_dir" && as_dir=.
9619: for ac_exec_ext in '' $ac_executable_extensions; do
9620: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9621: ac_cv_prog_ac_ct_LIPO="lipo"
9622: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9623: break 2
9624: fi
9625: done
9626: done
9627: IFS=$as_save_IFS
9628:
9629: fi
9630: fi
9631: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9632: if test -n "$ac_ct_LIPO"; then
9633: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9634: $as_echo "$ac_ct_LIPO" >&6; }
9635: else
9636: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9637: $as_echo "no" >&6; }
9638: fi
9639:
9640: if test "x$ac_ct_LIPO" = x; then
9641: LIPO=":"
9642: else
9643: case $cross_compiling:$ac_tool_warned in
9644: yes:)
9645: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9646: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9647: ac_tool_warned=yes ;;
9648: esac
9649: LIPO=$ac_ct_LIPO
9650: fi
9651: else
9652: LIPO="$ac_cv_prog_LIPO"
9653: fi
9654:
9655: if test -n "$ac_tool_prefix"; then
9656: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9657: set dummy ${ac_tool_prefix}otool; ac_word=$2
9658: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9659: $as_echo_n "checking for $ac_word... " >&6; }
9660: if ${ac_cv_prog_OTOOL+:} false; then :
9661: $as_echo_n "(cached) " >&6
9662: else
9663: if test -n "$OTOOL"; then
9664: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9665: else
9666: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9667: for as_dir in $PATH
9668: do
9669: IFS=$as_save_IFS
9670: test -z "$as_dir" && as_dir=.
9671: for ac_exec_ext in '' $ac_executable_extensions; do
9672: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9673: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9674: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9675: break 2
9676: fi
9677: done
9678: done
9679: IFS=$as_save_IFS
9680:
9681: fi
9682: fi
9683: OTOOL=$ac_cv_prog_OTOOL
9684: if test -n "$OTOOL"; then
9685: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9686: $as_echo "$OTOOL" >&6; }
9687: else
9688: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9689: $as_echo "no" >&6; }
9690: fi
9691:
9692:
9693: fi
9694: if test -z "$ac_cv_prog_OTOOL"; then
9695: ac_ct_OTOOL=$OTOOL
9696: # Extract the first word of "otool", so it can be a program name with args.
9697: set dummy otool; ac_word=$2
9698: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9699: $as_echo_n "checking for $ac_word... " >&6; }
9700: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9701: $as_echo_n "(cached) " >&6
9702: else
9703: if test -n "$ac_ct_OTOOL"; then
9704: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9705: else
9706: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9707: for as_dir in $PATH
9708: do
9709: IFS=$as_save_IFS
9710: test -z "$as_dir" && as_dir=.
9711: for ac_exec_ext in '' $ac_executable_extensions; do
9712: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9713: ac_cv_prog_ac_ct_OTOOL="otool"
9714: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9715: break 2
9716: fi
9717: done
9718: done
9719: IFS=$as_save_IFS
9720:
9721: fi
9722: fi
9723: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9724: if test -n "$ac_ct_OTOOL"; then
9725: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9726: $as_echo "$ac_ct_OTOOL" >&6; }
9727: else
9728: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9729: $as_echo "no" >&6; }
9730: fi
9731:
9732: if test "x$ac_ct_OTOOL" = x; then
9733: OTOOL=":"
9734: else
9735: case $cross_compiling:$ac_tool_warned in
9736: yes:)
9737: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9738: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9739: ac_tool_warned=yes ;;
9740: esac
9741: OTOOL=$ac_ct_OTOOL
9742: fi
9743: else
9744: OTOOL="$ac_cv_prog_OTOOL"
9745: fi
9746:
9747: if test -n "$ac_tool_prefix"; then
9748: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9749: set dummy ${ac_tool_prefix}otool64; ac_word=$2
9750: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9751: $as_echo_n "checking for $ac_word... " >&6; }
9752: if ${ac_cv_prog_OTOOL64+:} false; then :
9753: $as_echo_n "(cached) " >&6
9754: else
9755: if test -n "$OTOOL64"; then
9756: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9757: else
9758: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9759: for as_dir in $PATH
9760: do
9761: IFS=$as_save_IFS
9762: test -z "$as_dir" && as_dir=.
9763: for ac_exec_ext in '' $ac_executable_extensions; do
9764: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9765: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9766: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9767: break 2
9768: fi
9769: done
9770: done
9771: IFS=$as_save_IFS
9772:
9773: fi
9774: fi
9775: OTOOL64=$ac_cv_prog_OTOOL64
9776: if test -n "$OTOOL64"; then
9777: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9778: $as_echo "$OTOOL64" >&6; }
9779: else
9780: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9781: $as_echo "no" >&6; }
9782: fi
9783:
9784:
9785: fi
9786: if test -z "$ac_cv_prog_OTOOL64"; then
9787: ac_ct_OTOOL64=$OTOOL64
9788: # Extract the first word of "otool64", so it can be a program name with args.
9789: set dummy otool64; ac_word=$2
9790: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9791: $as_echo_n "checking for $ac_word... " >&6; }
9792: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9793: $as_echo_n "(cached) " >&6
9794: else
9795: if test -n "$ac_ct_OTOOL64"; then
9796: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9797: else
9798: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9799: for as_dir in $PATH
9800: do
9801: IFS=$as_save_IFS
9802: test -z "$as_dir" && as_dir=.
9803: for ac_exec_ext in '' $ac_executable_extensions; do
9804: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9805: ac_cv_prog_ac_ct_OTOOL64="otool64"
9806: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9807: break 2
9808: fi
9809: done
9810: done
9811: IFS=$as_save_IFS
9812:
9813: fi
9814: fi
9815: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9816: if test -n "$ac_ct_OTOOL64"; then
9817: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9818: $as_echo "$ac_ct_OTOOL64" >&6; }
9819: else
9820: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9821: $as_echo "no" >&6; }
9822: fi
9823:
9824: if test "x$ac_ct_OTOOL64" = x; then
9825: OTOOL64=":"
9826: else
9827: case $cross_compiling:$ac_tool_warned in
9828: yes:)
9829: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9830: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9831: ac_tool_warned=yes ;;
9832: esac
9833: OTOOL64=$ac_ct_OTOOL64
9834: fi
9835: else
9836: OTOOL64="$ac_cv_prog_OTOOL64"
9837: fi
9838:
9839:
9840:
9841:
9842:
9843:
9844:
9845:
9846:
9847:
9848:
9849:
9850:
9851:
9852:
9853:
9854:
9855:
9856:
9857:
9858:
9859:
9860:
9861:
9862:
9863:
9864:
9865: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9866: $as_echo_n "checking for -single_module linker flag... " >&6; }
9867: if ${lt_cv_apple_cc_single_mod+:} false; then :
9868: $as_echo_n "(cached) " >&6
9869: else
9870: lt_cv_apple_cc_single_mod=no
9871: if test -z "$LT_MULTI_MODULE"; then
9872: # By default we will add the -single_module flag. You can override
9873: # by either setting the environment variable LT_MULTI_MODULE
9874: # non-empty at configure time, or by adding -multi_module to the
9875: # link flags.
9876: rm -rf libconftest.dylib*
9877: echo "int foo(void){return 1;}" > conftest.c
9878: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9879: -dynamiclib -Wl,-single_module conftest.c" >&5
9880: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9881: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9882: _lt_result=$?
9883: # If there is a non-empty error log, and "single_module"
9884: # appears in it, assume the flag caused a linker warning
9885: if test -s conftest.err && $GREP single_module conftest.err; then
9886: cat conftest.err >&5
9887: # Otherwise, if the output was created with a 0 exit code from
9888: # the compiler, it worked.
9889: elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9890: lt_cv_apple_cc_single_mod=yes
9891: else
9892: cat conftest.err >&5
9893: fi
9894: rm -rf libconftest.dylib*
9895: rm -f conftest.*
9896: fi
9897: fi
9898: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9899: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9900:
9901: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9902: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9903: if ${lt_cv_ld_exported_symbols_list+:} false; then :
9904: $as_echo_n "(cached) " >&6
9905: else
9906: lt_cv_ld_exported_symbols_list=no
9907: save_LDFLAGS=$LDFLAGS
9908: echo "_main" > conftest.sym
9909: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9910: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9911: /* end confdefs.h. */
9912:
9913: int
9914: main ()
9915: {
9916:
9917: ;
9918: return 0;
9919: }
9920: _ACEOF
9921: if ac_fn_c_try_link "$LINENO"; then :
9922: lt_cv_ld_exported_symbols_list=yes
9923: else
9924: lt_cv_ld_exported_symbols_list=no
9925: fi
9926: rm -f core conftest.err conftest.$ac_objext \
9927: conftest$ac_exeext conftest.$ac_ext
9928: LDFLAGS=$save_LDFLAGS
9929:
9930: fi
9931: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9932: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9933:
9934: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9935: $as_echo_n "checking for -force_load linker flag... " >&6; }
9936: if ${lt_cv_ld_force_load+:} false; then :
9937: $as_echo_n "(cached) " >&6
9938: else
9939: lt_cv_ld_force_load=no
9940: cat > conftest.c << _LT_EOF
9941: int forced_loaded() { return 2;}
9942: _LT_EOF
9943: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9944: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9945: echo "$AR cru libconftest.a conftest.o" >&5
9946: $AR cru libconftest.a conftest.o 2>&5
9947: echo "$RANLIB libconftest.a" >&5
9948: $RANLIB libconftest.a 2>&5
9949: cat > conftest.c << _LT_EOF
9950: int main() { return 0;}
9951: _LT_EOF
9952: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9953: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9954: _lt_result=$?
9955: if test -s conftest.err && $GREP force_load conftest.err; then
9956: cat conftest.err >&5
9957: elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9958: lt_cv_ld_force_load=yes
9959: else
9960: cat conftest.err >&5
9961: fi
9962: rm -f conftest.err libconftest.a conftest conftest.c
9963: rm -rf conftest.dSYM
9964:
9965: fi
9966: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9967: $as_echo "$lt_cv_ld_force_load" >&6; }
9968: case $host_os in
9969: rhapsody* | darwin1.[012])
9970: _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9971: darwin1.*)
9972: _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9973: darwin*) # darwin 5.x on
9974: # if running on 10.5 or later, the deployment target defaults
9975: # to the OS version, if on x86, and 10.4, the deployment
9976: # target defaults to 10.4. Don't you love it?
9977: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9978: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9979: _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9980: 10.[012][,.]*)
9981: _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9982: 10.*)
9983: _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9984: esac
9985: ;;
9986: esac
9987: if test yes = "$lt_cv_apple_cc_single_mod"; then
9988: _lt_dar_single_mod='$single_module'
9989: fi
9990: if test yes = "$lt_cv_ld_exported_symbols_list"; then
9991: _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9992: else
9993: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9994: fi
9995: if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9996: _lt_dsymutil='~$DSYMUTIL $lib || :'
9997: else
9998: _lt_dsymutil=
9999: fi
10000: ;;
10001: esac
10002:
10003: # func_munge_path_list VARIABLE PATH
10004: # -----------------------------------
10005: # VARIABLE is name of variable containing _space_ separated list of
10006: # directories to be munged by the contents of PATH, which is string
10007: # having a format:
10008: # "DIR[:DIR]:"
10009: # string "DIR[ DIR]" will be prepended to VARIABLE
10010: # ":DIR[:DIR]"
10011: # string "DIR[ DIR]" will be appended to VARIABLE
10012: # "DIRP[:DIRP]::[DIRA:]DIRA"
10013: # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10014: # "DIRA[ DIRA]" will be appended to VARIABLE
10015: # "DIR[:DIR]"
10016: # VARIABLE will be replaced by "DIR[ DIR]"
10017: func_munge_path_list ()
10018: {
10019: case x$2 in
10020: x)
10021: ;;
10022: *:)
10023: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10024: ;;
10025: x:*)
10026: eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10027: ;;
10028: *::*)
10029: eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10030: eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10031: ;;
10032: *)
10033: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10034: ;;
10035: esac
10036: }
10037:
10038: for ac_header in dlfcn.h
10039: do :
10040: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10041: "
10042: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10043: cat >>confdefs.h <<_ACEOF
10044: #define HAVE_DLFCN_H 1
10045: _ACEOF
10046:
10047: fi
10048:
10049: done
10050:
10051:
10052:
10053:
10054:
10055: # Set options
10056:
10057:
10058:
10059: enable_dlopen=no
10060:
10061:
10062: enable_win32_dll=no
10063:
10064:
10065: # Check whether --enable-shared was given.
10066: if test "${enable_shared+set}" = set; then :
10067: enableval=$enable_shared; p=${PACKAGE-default}
10068: case $enableval in
10069: yes) enable_shared=yes ;;
10070: no) enable_shared=no ;;
10071: *)
10072: enable_shared=no
10073: # Look at the argument we got. We use all the common list separators.
10074: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10075: for pkg in $enableval; do
10076: IFS=$lt_save_ifs
10077: if test "X$pkg" = "X$p"; then
10078: enable_shared=yes
10079: fi
10080: done
10081: IFS=$lt_save_ifs
10082: ;;
10083: esac
10084: else
10085: enable_shared=yes
10086: fi
10087:
10088:
10089:
10090:
10091:
10092:
10093:
10094:
10095:
10096: # Check whether --enable-static was given.
10097: if test "${enable_static+set}" = set; then :
10098: enableval=$enable_static; p=${PACKAGE-default}
10099: case $enableval in
10100: yes) enable_static=yes ;;
10101: no) enable_static=no ;;
10102: *)
10103: enable_static=no
10104: # Look at the argument we got. We use all the common list separators.
10105: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10106: for pkg in $enableval; do
10107: IFS=$lt_save_ifs
10108: if test "X$pkg" = "X$p"; then
10109: enable_static=yes
10110: fi
10111: done
10112: IFS=$lt_save_ifs
10113: ;;
10114: esac
10115: else
10116: enable_static=yes
10117: fi
10118:
10119:
10120:
10121:
10122:
10123:
10124:
10125:
10126:
10127:
10128: # Check whether --with-pic was given.
10129: if test "${with_pic+set}" = set; then :
10130: withval=$with_pic; lt_p=${PACKAGE-default}
10131: case $withval in
10132: yes|no) pic_mode=$withval ;;
10133: *)
10134: pic_mode=default
10135: # Look at the argument we got. We use all the common list separators.
10136: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10137: for lt_pkg in $withval; do
10138: IFS=$lt_save_ifs
10139: if test "X$lt_pkg" = "X$lt_p"; then
10140: pic_mode=yes
10141: fi
10142: done
10143: IFS=$lt_save_ifs
10144: ;;
10145: esac
10146: else
10147: pic_mode=default
10148: fi
10149:
10150:
10151:
10152:
10153:
10154:
10155:
10156:
10157: # Check whether --enable-fast-install was given.
10158: if test "${enable_fast_install+set}" = set; then :
10159: enableval=$enable_fast_install; p=${PACKAGE-default}
10160: case $enableval in
10161: yes) enable_fast_install=yes ;;
10162: no) enable_fast_install=no ;;
10163: *)
10164: enable_fast_install=no
10165: # Look at the argument we got. We use all the common list separators.
10166: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10167: for pkg in $enableval; do
10168: IFS=$lt_save_ifs
10169: if test "X$pkg" = "X$p"; then
10170: enable_fast_install=yes
10171: fi
10172: done
10173: IFS=$lt_save_ifs
10174: ;;
10175: esac
10176: else
10177: enable_fast_install=yes
10178: fi
10179:
10180:
10181:
10182:
10183:
10184:
10185:
10186:
10187: shared_archive_member_spec=
10188: case $host,$enable_shared in
10189: power*-*-aix[5-9]*,yes)
10190: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10191: $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10192:
10193: # Check whether --with-aix-soname was given.
10194: if test "${with_aix_soname+set}" = set; then :
10195: withval=$with_aix_soname; case $withval in
10196: aix|svr4|both)
10197: ;;
10198: *)
10199: as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10200: ;;
10201: esac
10202: lt_cv_with_aix_soname=$with_aix_soname
10203: else
10204: if ${lt_cv_with_aix_soname+:} false; then :
10205: $as_echo_n "(cached) " >&6
10206: else
10207: lt_cv_with_aix_soname=aix
10208: fi
10209:
10210: with_aix_soname=$lt_cv_with_aix_soname
10211: fi
10212:
10213: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10214: $as_echo "$with_aix_soname" >&6; }
10215: if test aix != "$with_aix_soname"; then
10216: # For the AIX way of multilib, we name the shared archive member
10217: # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10218: # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10219: # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10220: # the AIX toolchain works better with OBJECT_MODE set (default 32).
10221: if test 64 = "${OBJECT_MODE-32}"; then
10222: shared_archive_member_spec=shr_64
10223: else
10224: shared_archive_member_spec=shr
10225: fi
10226: fi
10227: ;;
10228: *)
10229: with_aix_soname=aix
10230: ;;
10231: esac
10232:
10233:
10234:
10235:
10236:
10237:
10238:
10239:
10240:
10241:
10242: # This can be used to rebuild libtool when needed
10243: LIBTOOL_DEPS=$ltmain
10244:
10245: # Always use our own libtool.
10246: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10247:
10248:
10249:
10250:
10251:
10252:
10253:
10254:
10255:
10256:
10257:
10258:
10259:
10260:
10261:
10262:
10263:
10264:
10265:
10266:
10267:
10268:
10269:
10270:
10271:
10272:
10273:
10274:
10275:
10276:
10277: test -z "$LN_S" && LN_S="ln -s"
10278:
10279:
10280:
10281:
10282:
10283:
10284:
10285:
10286:
10287:
10288:
10289:
10290:
10291:
10292: if test -n "${ZSH_VERSION+set}"; then
10293: setopt NO_GLOB_SUBST
10294: fi
10295:
10296: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10297: $as_echo_n "checking for objdir... " >&6; }
10298: if ${lt_cv_objdir+:} false; then :
10299: $as_echo_n "(cached) " >&6
10300: else
10301: rm -f .libs 2>/dev/null
10302: mkdir .libs 2>/dev/null
10303: if test -d .libs; then
10304: lt_cv_objdir=.libs
10305: else
10306: # MS-DOS does not allow filenames that begin with a dot.
10307: lt_cv_objdir=_libs
10308: fi
10309: rmdir .libs 2>/dev/null
10310: fi
10311: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10312: $as_echo "$lt_cv_objdir" >&6; }
10313: objdir=$lt_cv_objdir
10314:
10315:
10316:
10317:
10318:
10319: cat >>confdefs.h <<_ACEOF
10320: #define LT_OBJDIR "$lt_cv_objdir/"
10321: _ACEOF
10322:
10323:
10324:
10325:
10326: case $host_os in
10327: aix3*)
10328: # AIX sometimes has problems with the GCC collect2 program. For some
10329: # reason, if we set the COLLECT_NAMES environment variable, the problems
10330: # vanish in a puff of smoke.
10331: if test set != "${COLLECT_NAMES+set}"; then
10332: COLLECT_NAMES=
10333: export COLLECT_NAMES
10334: fi
10335: ;;
10336: esac
10337:
10338: # Global variables:
10339: ofile=libtool
10340: can_build_shared=yes
10341:
10342: # All known linkers require a '.a' archive for static linking (except MSVC,
10343: # which needs '.lib').
10344: libext=a
10345:
10346: with_gnu_ld=$lt_cv_prog_gnu_ld
10347:
10348: old_CC=$CC
10349: old_CFLAGS=$CFLAGS
10350:
10351: # Set sane defaults for various variables
10352: test -z "$CC" && CC=cc
10353: test -z "$LTCC" && LTCC=$CC
10354: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10355: test -z "$LD" && LD=ld
10356: test -z "$ac_objext" && ac_objext=o
10357:
10358: func_cc_basename $compiler
10359: cc_basename=$func_cc_basename_result
10360:
10361:
10362: # Only perform the check for file, if the check method requires it
10363: test -z "$MAGIC_CMD" && MAGIC_CMD=file
10364: case $deplibs_check_method in
10365: file_magic*)
10366: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10367: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10368: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10369: if ${lt_cv_path_MAGIC_CMD+:} false; then :
10370: $as_echo_n "(cached) " >&6
10371: else
10372: case $MAGIC_CMD in
10373: [\\/*] | ?:[\\/]*)
10374: lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10375: ;;
10376: *)
10377: lt_save_MAGIC_CMD=$MAGIC_CMD
10378: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10379: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10380: for ac_dir in $ac_dummy; do
10381: IFS=$lt_save_ifs
10382: test -z "$ac_dir" && ac_dir=.
10383: if test -f "$ac_dir/${ac_tool_prefix}file"; then
10384: lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10385: if test -n "$file_magic_test_file"; then
10386: case $deplibs_check_method in
10387: "file_magic "*)
10388: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10389: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10390: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10391: $EGREP "$file_magic_regex" > /dev/null; then
10392: :
10393: else
10394: cat <<_LT_EOF 1>&2
10395:
10396: *** Warning: the command libtool uses to detect shared libraries,
10397: *** $file_magic_cmd, produces output that libtool cannot recognize.
10398: *** The result is that libtool may fail to recognize shared libraries
10399: *** as such. This will affect the creation of libtool libraries that
10400: *** depend on shared libraries, but programs linked with such libtool
10401: *** libraries will work regardless of this problem. Nevertheless, you
10402: *** may want to report the problem to your system manager and/or to
10403: *** bug-libtool@gnu.org
10404:
10405: _LT_EOF
10406: fi ;;
10407: esac
10408: fi
10409: break
10410: fi
10411: done
10412: IFS=$lt_save_ifs
10413: MAGIC_CMD=$lt_save_MAGIC_CMD
10414: ;;
10415: esac
10416: fi
10417:
10418: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10419: if test -n "$MAGIC_CMD"; then
10420: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10421: $as_echo "$MAGIC_CMD" >&6; }
10422: else
10423: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10424: $as_echo "no" >&6; }
10425: fi
10426:
10427:
10428:
10429:
10430:
10431: if test -z "$lt_cv_path_MAGIC_CMD"; then
10432: if test -n "$ac_tool_prefix"; then
10433: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10434: $as_echo_n "checking for file... " >&6; }
10435: if ${lt_cv_path_MAGIC_CMD+:} false; then :
10436: $as_echo_n "(cached) " >&6
10437: else
10438: case $MAGIC_CMD in
10439: [\\/*] | ?:[\\/]*)
10440: lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10441: ;;
10442: *)
10443: lt_save_MAGIC_CMD=$MAGIC_CMD
10444: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10445: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10446: for ac_dir in $ac_dummy; do
10447: IFS=$lt_save_ifs
10448: test -z "$ac_dir" && ac_dir=.
10449: if test -f "$ac_dir/file"; then
10450: lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10451: if test -n "$file_magic_test_file"; then
10452: case $deplibs_check_method in
10453: "file_magic "*)
10454: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10455: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10456: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10457: $EGREP "$file_magic_regex" > /dev/null; then
10458: :
10459: else
10460: cat <<_LT_EOF 1>&2
10461:
10462: *** Warning: the command libtool uses to detect shared libraries,
10463: *** $file_magic_cmd, produces output that libtool cannot recognize.
10464: *** The result is that libtool may fail to recognize shared libraries
10465: *** as such. This will affect the creation of libtool libraries that
10466: *** depend on shared libraries, but programs linked with such libtool
10467: *** libraries will work regardless of this problem. Nevertheless, you
10468: *** may want to report the problem to your system manager and/or to
10469: *** bug-libtool@gnu.org
10470:
10471: _LT_EOF
10472: fi ;;
10473: esac
10474: fi
10475: break
10476: fi
10477: done
10478: IFS=$lt_save_ifs
10479: MAGIC_CMD=$lt_save_MAGIC_CMD
10480: ;;
10481: esac
10482: fi
10483:
10484: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10485: if test -n "$MAGIC_CMD"; then
10486: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10487: $as_echo "$MAGIC_CMD" >&6; }
10488: else
10489: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10490: $as_echo "no" >&6; }
10491: fi
10492:
10493:
10494: else
10495: MAGIC_CMD=:
10496: fi
10497: fi
10498:
10499: fi
10500: ;;
10501: esac
10502:
10503: # Use C for the default configuration in the libtool script
10504:
10505: lt_save_CC=$CC
10506: ac_ext=c
10507: ac_cpp='$CPP $CPPFLAGS'
10508: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10509: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10510: ac_compiler_gnu=$ac_cv_c_compiler_gnu
10511:
10512:
10513: # Source file extension for C test sources.
10514: ac_ext=c
10515:
10516: # Object file extension for compiled C test sources.
10517: objext=o
10518: objext=$objext
10519:
10520: # Code to be used in simple compile tests
10521: lt_simple_compile_test_code="int some_variable = 0;"
10522:
10523: # Code to be used in simple link tests
10524: lt_simple_link_test_code='int main(){return(0);}'
10525:
10526:
10527:
10528:
10529:
10530:
10531:
10532: # If no C compiler was specified, use CC.
10533: LTCC=${LTCC-"$CC"}
10534:
10535: # If no C compiler flags were specified, use CFLAGS.
10536: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10537:
10538: # Allow CC to be a program name with arguments.
10539: compiler=$CC
10540:
10541: # Save the default compiler, since it gets overwritten when the other
10542: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10543: compiler_DEFAULT=$CC
10544:
10545: # save warnings/boilerplate of simple test code
10546: ac_outfile=conftest.$ac_objext
10547: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10548: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10549: _lt_compiler_boilerplate=`cat conftest.err`
10550: $RM conftest*
10551:
10552: ac_outfile=conftest.$ac_objext
10553: echo "$lt_simple_link_test_code" >conftest.$ac_ext
10554: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10555: _lt_linker_boilerplate=`cat conftest.err`
10556: $RM -r conftest*
10557:
10558:
10559: ## CAVEAT EMPTOR:
10560: ## There is no encapsulation within the following macros, do not change
10561: ## the running order or otherwise move them around unless you know exactly
10562: ## what you are doing...
10563: if test -n "$compiler"; then
10564:
10565: lt_prog_compiler_no_builtin_flag=
10566:
10567: if test yes = "$GCC"; then
10568: case $cc_basename in
10569: nvcc*)
10570: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10571: *)
10572: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10573: esac
10574:
10575: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10576: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10577: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10578: $as_echo_n "(cached) " >&6
10579: else
10580: lt_cv_prog_compiler_rtti_exceptions=no
10581: ac_outfile=conftest.$ac_objext
10582: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10583: lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10584: # Insert the option either (1) after the last *FLAGS variable, or
10585: # (2) before a word containing "conftest.", or (3) at the end.
10586: # Note that $ac_compile itself does not contain backslashes and begins
10587: # with a dollar sign (not a hyphen), so the echo should work correctly.
10588: # The option is referenced via a variable to avoid confusing sed.
10589: lt_compile=`echo "$ac_compile" | $SED \
10590: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10591: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10592: -e 's:$: $lt_compiler_flag:'`
10593: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10594: (eval "$lt_compile" 2>conftest.err)
10595: ac_status=$?
10596: cat conftest.err >&5
10597: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598: if (exit $ac_status) && test -s "$ac_outfile"; then
10599: # The compiler can only warn and ignore the option if not recognized
10600: # So say no if there are warnings other than the usual output.
10601: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10602: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10603: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10604: lt_cv_prog_compiler_rtti_exceptions=yes
10605: fi
10606: fi
10607: $RM conftest*
10608:
10609: fi
10610: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10611: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10612:
10613: if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10614: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10615: else
10616: :
10617: fi
10618:
10619: fi
10620:
10621:
10622:
10623:
10624:
10625:
10626: lt_prog_compiler_wl=
10627: lt_prog_compiler_pic=
10628: lt_prog_compiler_static=
10629:
10630:
10631: if test yes = "$GCC"; then
10632: lt_prog_compiler_wl='-Wl,'
10633: lt_prog_compiler_static='-static'
10634:
10635: case $host_os in
10636: aix*)
10637: # All AIX code is PIC.
10638: if test ia64 = "$host_cpu"; then
10639: # AIX 5 now supports IA64 processor
10640: lt_prog_compiler_static='-Bstatic'
10641: fi
10642: lt_prog_compiler_pic='-fPIC'
10643: ;;
10644:
10645: amigaos*)
10646: case $host_cpu in
10647: powerpc)
10648: # see comment about AmigaOS4 .so support
10649: lt_prog_compiler_pic='-fPIC'
10650: ;;
10651: m68k)
10652: # FIXME: we need at least 68020 code to build shared libraries, but
10653: # adding the '-m68020' flag to GCC prevents building anything better,
10654: # like '-m68040'.
10655: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10656: ;;
10657: esac
10658: ;;
10659:
10660: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10661: # PIC is the default for these OSes.
10662: ;;
10663:
10664: mingw* | cygwin* | pw32* | os2* | cegcc*)
10665: # This hack is so that the source file can tell whether it is being
10666: # built for inclusion in a dll (and should export symbols for example).
10667: # Although the cygwin gcc ignores -fPIC, still need this for old-style
10668: # (--disable-auto-import) libraries
10669: lt_prog_compiler_pic='-DDLL_EXPORT'
10670: case $host_os in
10671: os2*)
10672: lt_prog_compiler_static='$wl-static'
10673: ;;
10674: esac
10675: ;;
10676:
10677: darwin* | rhapsody*)
10678: # PIC is the default on this platform
10679: # Common symbols not allowed in MH_DYLIB files
10680: lt_prog_compiler_pic='-fno-common'
10681: ;;
10682:
10683: haiku*)
10684: # PIC is the default for Haiku.
10685: # The "-static" flag exists, but is broken.
10686: lt_prog_compiler_static=
10687: ;;
10688:
10689: hpux*)
10690: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10691: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10692: # sets the default TLS model and affects inlining.
10693: case $host_cpu in
10694: hppa*64*)
10695: # +Z the default
10696: ;;
10697: *)
10698: lt_prog_compiler_pic='-fPIC'
10699: ;;
10700: esac
10701: ;;
10702:
10703: interix[3-9]*)
10704: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10705: # Instead, we relocate shared libraries at runtime.
10706: ;;
10707:
10708: msdosdjgpp*)
10709: # Just because we use GCC doesn't mean we suddenly get shared libraries
10710: # on systems that don't support them.
10711: lt_prog_compiler_can_build_shared=no
10712: enable_shared=no
10713: ;;
10714:
10715: *nto* | *qnx*)
10716: # QNX uses GNU C++, but need to define -shared option too, otherwise
10717: # it will coredump.
10718: lt_prog_compiler_pic='-fPIC -shared'
10719: ;;
10720:
10721: sysv4*MP*)
10722: if test -d /usr/nec; then
10723: lt_prog_compiler_pic=-Kconform_pic
10724: fi
10725: ;;
10726:
10727: *)
10728: lt_prog_compiler_pic='-fPIC'
10729: ;;
10730: esac
10731:
10732: case $cc_basename in
10733: nvcc*) # Cuda Compiler Driver 2.2
10734: lt_prog_compiler_wl='-Xlinker '
10735: if test -n "$lt_prog_compiler_pic"; then
10736: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10737: fi
10738: ;;
10739: esac
10740: else
10741: # PORTME Check for flag to pass linker flags through the system compiler.
10742: case $host_os in
10743: aix*)
10744: lt_prog_compiler_wl='-Wl,'
10745: if test ia64 = "$host_cpu"; then
10746: # AIX 5 now supports IA64 processor
10747: lt_prog_compiler_static='-Bstatic'
10748: else
10749: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10750: fi
10751: ;;
10752:
10753: darwin* | rhapsody*)
10754: # PIC is the default on this platform
10755: # Common symbols not allowed in MH_DYLIB files
10756: lt_prog_compiler_pic='-fno-common'
10757: case $cc_basename in
10758: nagfor*)
10759: # NAG Fortran compiler
10760: lt_prog_compiler_wl='-Wl,-Wl,,'
10761: lt_prog_compiler_pic='-PIC'
10762: lt_prog_compiler_static='-Bstatic'
10763: ;;
10764: esac
10765: ;;
10766:
10767: mingw* | cygwin* | pw32* | os2* | cegcc*)
10768: # This hack is so that the source file can tell whether it is being
10769: # built for inclusion in a dll (and should export symbols for example).
10770: lt_prog_compiler_pic='-DDLL_EXPORT'
10771: case $host_os in
10772: os2*)
10773: lt_prog_compiler_static='$wl-static'
10774: ;;
10775: esac
10776: ;;
10777:
10778: hpux9* | hpux10* | hpux11*)
10779: lt_prog_compiler_wl='-Wl,'
10780: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10781: # not for PA HP-UX.
10782: case $host_cpu in
10783: hppa*64*|ia64*)
10784: # +Z the default
10785: ;;
10786: *)
10787: lt_prog_compiler_pic='+Z'
10788: ;;
10789: esac
10790: # Is there a better lt_prog_compiler_static that works with the bundled CC?
10791: lt_prog_compiler_static='$wl-a ${wl}archive'
10792: ;;
10793:
10794: irix5* | irix6* | nonstopux*)
10795: lt_prog_compiler_wl='-Wl,'
10796: # PIC (with -KPIC) is the default.
10797: lt_prog_compiler_static='-non_shared'
10798: ;;
10799:
10800: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10801: case $cc_basename in
10802: # old Intel for x86_64, which still supported -KPIC.
10803: ecc*)
10804: lt_prog_compiler_wl='-Wl,'
10805: lt_prog_compiler_pic='-KPIC'
10806: lt_prog_compiler_static='-static'
10807: ;;
10808: # icc used to be incompatible with GCC.
10809: # ICC 10 doesn't accept -KPIC any more.
10810: icc* | ifort*)
10811: lt_prog_compiler_wl='-Wl,'
10812: lt_prog_compiler_pic='-fPIC'
10813: lt_prog_compiler_static='-static'
10814: ;;
10815: # Lahey Fortran 8.1.
10816: lf95*)
10817: lt_prog_compiler_wl='-Wl,'
10818: lt_prog_compiler_pic='--shared'
10819: lt_prog_compiler_static='--static'
10820: ;;
10821: nagfor*)
10822: # NAG Fortran compiler
10823: lt_prog_compiler_wl='-Wl,-Wl,,'
10824: lt_prog_compiler_pic='-PIC'
10825: lt_prog_compiler_static='-Bstatic'
10826: ;;
10827: tcc*)
10828: # Fabrice Bellard et al's Tiny C Compiler
10829: lt_prog_compiler_wl='-Wl,'
10830: lt_prog_compiler_pic='-fPIC'
10831: lt_prog_compiler_static='-static'
10832: ;;
10833: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10834: # Portland Group compilers (*not* the Pentium gcc compiler,
10835: # which looks to be a dead project)
10836: lt_prog_compiler_wl='-Wl,'
10837: lt_prog_compiler_pic='-fpic'
10838: lt_prog_compiler_static='-Bstatic'
10839: ;;
10840: ccc*)
10841: lt_prog_compiler_wl='-Wl,'
10842: # All Alpha code is PIC.
10843: lt_prog_compiler_static='-non_shared'
10844: ;;
10845: xl* | bgxl* | bgf* | mpixl*)
10846: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10847: lt_prog_compiler_wl='-Wl,'
10848: lt_prog_compiler_pic='-qpic'
10849: lt_prog_compiler_static='-qstaticlink'
10850: ;;
10851: *)
10852: case `$CC -V 2>&1 | sed 5q` in
10853: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10854: # Sun Fortran 8.3 passes all unrecognized flags to the linker
10855: lt_prog_compiler_pic='-KPIC'
10856: lt_prog_compiler_static='-Bstatic'
10857: lt_prog_compiler_wl=''
10858: ;;
10859: *Sun\ F* | *Sun*Fortran*)
10860: lt_prog_compiler_pic='-KPIC'
10861: lt_prog_compiler_static='-Bstatic'
10862: lt_prog_compiler_wl='-Qoption ld '
10863: ;;
10864: *Sun\ C*)
10865: # Sun C 5.9
10866: lt_prog_compiler_pic='-KPIC'
10867: lt_prog_compiler_static='-Bstatic'
10868: lt_prog_compiler_wl='-Wl,'
10869: ;;
10870: *Intel*\ [CF]*Compiler*)
10871: lt_prog_compiler_wl='-Wl,'
10872: lt_prog_compiler_pic='-fPIC'
10873: lt_prog_compiler_static='-static'
10874: ;;
10875: *Portland\ Group*)
10876: lt_prog_compiler_wl='-Wl,'
10877: lt_prog_compiler_pic='-fpic'
10878: lt_prog_compiler_static='-Bstatic'
10879: ;;
10880: esac
10881: ;;
10882: esac
10883: ;;
10884:
10885: newsos6)
10886: lt_prog_compiler_pic='-KPIC'
10887: lt_prog_compiler_static='-Bstatic'
10888: ;;
10889:
10890: *nto* | *qnx*)
10891: # QNX uses GNU C++, but need to define -shared option too, otherwise
10892: # it will coredump.
10893: lt_prog_compiler_pic='-fPIC -shared'
10894: ;;
10895:
10896: osf3* | osf4* | osf5*)
10897: lt_prog_compiler_wl='-Wl,'
10898: # All OSF/1 code is PIC.
10899: lt_prog_compiler_static='-non_shared'
10900: ;;
10901:
10902: rdos*)
10903: lt_prog_compiler_static='-non_shared'
10904: ;;
10905:
10906: solaris*)
10907: lt_prog_compiler_pic='-KPIC'
10908: lt_prog_compiler_static='-Bstatic'
10909: case $cc_basename in
10910: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10911: lt_prog_compiler_wl='-Qoption ld ';;
10912: *)
10913: lt_prog_compiler_wl='-Wl,';;
10914: esac
10915: ;;
10916:
10917: sunos4*)
10918: lt_prog_compiler_wl='-Qoption ld '
10919: lt_prog_compiler_pic='-PIC'
10920: lt_prog_compiler_static='-Bstatic'
10921: ;;
10922:
10923: sysv4 | sysv4.2uw2* | sysv4.3*)
10924: lt_prog_compiler_wl='-Wl,'
10925: lt_prog_compiler_pic='-KPIC'
10926: lt_prog_compiler_static='-Bstatic'
10927: ;;
10928:
10929: sysv4*MP*)
10930: if test -d /usr/nec; then
10931: lt_prog_compiler_pic='-Kconform_pic'
10932: lt_prog_compiler_static='-Bstatic'
10933: fi
10934: ;;
10935:
10936: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10937: lt_prog_compiler_wl='-Wl,'
10938: lt_prog_compiler_pic='-KPIC'
10939: lt_prog_compiler_static='-Bstatic'
10940: ;;
10941:
10942: unicos*)
10943: lt_prog_compiler_wl='-Wl,'
10944: lt_prog_compiler_can_build_shared=no
10945: ;;
10946:
10947: uts4*)
10948: lt_prog_compiler_pic='-pic'
10949: lt_prog_compiler_static='-Bstatic'
10950: ;;
10951:
10952: *)
10953: lt_prog_compiler_can_build_shared=no
10954: ;;
10955: esac
10956: fi
10957:
10958: case $host_os in
10959: # For platforms that do not support PIC, -DPIC is meaningless:
10960: *djgpp*)
10961: lt_prog_compiler_pic=
10962: ;;
10963: *)
10964: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10965: ;;
10966: esac
10967:
10968: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10969: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10970: if ${lt_cv_prog_compiler_pic+:} false; then :
10971: $as_echo_n "(cached) " >&6
10972: else
10973: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10974: fi
10975: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10976: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10977: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10978:
10979: #
10980: # Check to make sure the PIC flag actually works.
10981: #
10982: if test -n "$lt_prog_compiler_pic"; then
10983: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10984: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10985: if ${lt_cv_prog_compiler_pic_works+:} false; then :
10986: $as_echo_n "(cached) " >&6
10987: else
10988: lt_cv_prog_compiler_pic_works=no
10989: ac_outfile=conftest.$ac_objext
10990: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10991: lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10992: # Insert the option either (1) after the last *FLAGS variable, or
10993: # (2) before a word containing "conftest.", or (3) at the end.
10994: # Note that $ac_compile itself does not contain backslashes and begins
10995: # with a dollar sign (not a hyphen), so the echo should work correctly.
10996: # The option is referenced via a variable to avoid confusing sed.
10997: lt_compile=`echo "$ac_compile" | $SED \
10998: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10999: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11000: -e 's:$: $lt_compiler_flag:'`
11001: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11002: (eval "$lt_compile" 2>conftest.err)
11003: ac_status=$?
11004: cat conftest.err >&5
11005: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006: if (exit $ac_status) && test -s "$ac_outfile"; then
11007: # The compiler can only warn and ignore the option if not recognized
11008: # So say no if there are warnings other than the usual output.
11009: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11010: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11011: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11012: lt_cv_prog_compiler_pic_works=yes
11013: fi
11014: fi
11015: $RM conftest*
11016:
11017: fi
11018: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11019: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11020:
11021: if test yes = "$lt_cv_prog_compiler_pic_works"; then
11022: case $lt_prog_compiler_pic in
11023: "" | " "*) ;;
11024: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11025: esac
11026: else
11027: lt_prog_compiler_pic=
11028: lt_prog_compiler_can_build_shared=no
11029: fi
11030:
11031: fi
11032:
11033:
11034:
11035:
11036:
11037:
11038:
11039:
11040:
11041:
11042:
11043: #
11044: # Check to make sure the static flag actually works.
11045: #
11046: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11047: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11048: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11049: if ${lt_cv_prog_compiler_static_works+:} false; then :
11050: $as_echo_n "(cached) " >&6
11051: else
11052: lt_cv_prog_compiler_static_works=no
11053: save_LDFLAGS=$LDFLAGS
11054: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11055: echo "$lt_simple_link_test_code" > conftest.$ac_ext
11056: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11057: # The linker can only warn and ignore the option if not recognized
11058: # So say no if there are warnings
11059: if test -s conftest.err; then
11060: # Append any errors to the config.log.
11061: cat conftest.err 1>&5
11062: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11063: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11064: if diff conftest.exp conftest.er2 >/dev/null; then
11065: lt_cv_prog_compiler_static_works=yes
11066: fi
11067: else
11068: lt_cv_prog_compiler_static_works=yes
11069: fi
11070: fi
11071: $RM -r conftest*
11072: LDFLAGS=$save_LDFLAGS
11073:
11074: fi
11075: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11076: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11077:
11078: if test yes = "$lt_cv_prog_compiler_static_works"; then
11079: :
11080: else
11081: lt_prog_compiler_static=
11082: fi
11083:
11084:
11085:
11086:
11087:
11088:
11089:
11090: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11091: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11092: if ${lt_cv_prog_compiler_c_o+:} false; then :
11093: $as_echo_n "(cached) " >&6
11094: else
11095: lt_cv_prog_compiler_c_o=no
11096: $RM -r conftest 2>/dev/null
11097: mkdir conftest
11098: cd conftest
11099: mkdir out
11100: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11101:
11102: lt_compiler_flag="-o out/conftest2.$ac_objext"
11103: # Insert the option either (1) after the last *FLAGS variable, or
11104: # (2) before a word containing "conftest.", or (3) at the end.
11105: # Note that $ac_compile itself does not contain backslashes and begins
11106: # with a dollar sign (not a hyphen), so the echo should work correctly.
11107: lt_compile=`echo "$ac_compile" | $SED \
11108: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11109: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11110: -e 's:$: $lt_compiler_flag:'`
11111: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11112: (eval "$lt_compile" 2>out/conftest.err)
11113: ac_status=$?
11114: cat out/conftest.err >&5
11115: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116: if (exit $ac_status) && test -s out/conftest2.$ac_objext
11117: then
11118: # The compiler can only warn and ignore the option if not recognized
11119: # So say no if there are warnings
11120: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11121: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11122: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11123: lt_cv_prog_compiler_c_o=yes
11124: fi
11125: fi
11126: chmod u+w . 2>&5
11127: $RM conftest*
11128: # SGI C++ compiler will create directory out/ii_files/ for
11129: # template instantiation
11130: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11131: $RM out/* && rmdir out
11132: cd ..
11133: $RM -r conftest
11134: $RM conftest*
11135:
11136: fi
11137: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11138: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11139:
11140:
11141:
11142:
11143:
11144:
11145: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11146: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11147: if ${lt_cv_prog_compiler_c_o+:} false; then :
11148: $as_echo_n "(cached) " >&6
11149: else
11150: lt_cv_prog_compiler_c_o=no
11151: $RM -r conftest 2>/dev/null
11152: mkdir conftest
11153: cd conftest
11154: mkdir out
11155: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11156:
11157: lt_compiler_flag="-o out/conftest2.$ac_objext"
11158: # Insert the option either (1) after the last *FLAGS variable, or
11159: # (2) before a word containing "conftest.", or (3) at the end.
11160: # Note that $ac_compile itself does not contain backslashes and begins
11161: # with a dollar sign (not a hyphen), so the echo should work correctly.
11162: lt_compile=`echo "$ac_compile" | $SED \
11163: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11164: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11165: -e 's:$: $lt_compiler_flag:'`
11166: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11167: (eval "$lt_compile" 2>out/conftest.err)
11168: ac_status=$?
11169: cat out/conftest.err >&5
11170: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171: if (exit $ac_status) && test -s out/conftest2.$ac_objext
11172: then
11173: # The compiler can only warn and ignore the option if not recognized
11174: # So say no if there are warnings
11175: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11176: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11177: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11178: lt_cv_prog_compiler_c_o=yes
11179: fi
11180: fi
11181: chmod u+w . 2>&5
11182: $RM conftest*
11183: # SGI C++ compiler will create directory out/ii_files/ for
11184: # template instantiation
11185: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11186: $RM out/* && rmdir out
11187: cd ..
11188: $RM -r conftest
11189: $RM conftest*
11190:
11191: fi
11192: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11193: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11194:
11195:
11196:
11197:
11198: hard_links=nottested
11199: if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11200: # do not overwrite the value of need_locks provided by the user
11201: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11202: $as_echo_n "checking if we can lock with hard links... " >&6; }
11203: hard_links=yes
11204: $RM conftest*
11205: ln conftest.a conftest.b 2>/dev/null && hard_links=no
11206: touch conftest.a
11207: ln conftest.a conftest.b 2>&5 || hard_links=no
11208: ln conftest.a conftest.b 2>/dev/null && hard_links=no
11209: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11210: $as_echo "$hard_links" >&6; }
11211: if test no = "$hard_links"; then
11212: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11213: $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11214: need_locks=warn
11215: fi
11216: else
11217: need_locks=no
11218: fi
11219:
11220:
11221:
11222:
11223:
11224:
11225: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11226: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11227:
11228: runpath_var=
11229: allow_undefined_flag=
11230: always_export_symbols=no
11231: archive_cmds=
11232: archive_expsym_cmds=
11233: compiler_needs_object=no
11234: enable_shared_with_static_runtimes=no
11235: export_dynamic_flag_spec=
11236: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11237: hardcode_automatic=no
11238: hardcode_direct=no
11239: hardcode_direct_absolute=no
11240: hardcode_libdir_flag_spec=
11241: hardcode_libdir_separator=
11242: hardcode_minus_L=no
11243: hardcode_shlibpath_var=unsupported
11244: inherit_rpath=no
11245: link_all_deplibs=unknown
11246: module_cmds=
11247: module_expsym_cmds=
11248: old_archive_from_new_cmds=
11249: old_archive_from_expsyms_cmds=
11250: thread_safe_flag_spec=
11251: whole_archive_flag_spec=
11252: # include_expsyms should be a list of space-separated symbols to be *always*
11253: # included in the symbol list
11254: include_expsyms=
11255: # exclude_expsyms can be an extended regexp of symbols to exclude
11256: # it will be wrapped by ' (' and ')$', so one must not match beginning or
11257: # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11258: # as well as any symbol that contains 'd'.
11259: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11260: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11261: # platforms (ab)use it in PIC code, but their linkers get confused if
11262: # the symbol is explicitly referenced. Since portable code cannot
11263: # rely on this symbol name, it's probably fine to never include it in
11264: # preloaded symbol tables.
11265: # Exclude shared library initialization/finalization symbols.
11266: extract_expsyms_cmds=
11267:
11268: case $host_os in
11269: cygwin* | mingw* | pw32* | cegcc*)
11270: # FIXME: the MSVC++ port hasn't been tested in a loooong time
11271: # When not using gcc, we currently assume that we are using
11272: # Microsoft Visual C++.
11273: if test yes != "$GCC"; then
11274: with_gnu_ld=no
11275: fi
11276: ;;
11277: interix*)
11278: # we just hope/assume this is gcc and not c89 (= MSVC++)
11279: with_gnu_ld=yes
11280: ;;
11281: openbsd* | bitrig*)
11282: with_gnu_ld=no
11283: ;;
11284: esac
11285:
11286: ld_shlibs=yes
11287:
11288: # On some targets, GNU ld is compatible enough with the native linker
11289: # that we're better off using the native interface for both.
11290: lt_use_gnu_ld_interface=no
11291: if test yes = "$with_gnu_ld"; then
11292: case $host_os in
11293: aix*)
11294: # The AIX port of GNU ld has always aspired to compatibility
11295: # with the native linker. However, as the warning in the GNU ld
11296: # block says, versions before 2.19.5* couldn't really create working
11297: # shared libraries, regardless of the interface used.
11298: case `$LD -v 2>&1` in
11299: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11300: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11301: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11302: *)
11303: lt_use_gnu_ld_interface=yes
11304: ;;
11305: esac
11306: ;;
11307: *)
11308: lt_use_gnu_ld_interface=yes
11309: ;;
11310: esac
11311: fi
11312:
11313: if test yes = "$lt_use_gnu_ld_interface"; then
11314: # If archive_cmds runs LD, not CC, wlarc should be empty
11315: wlarc='$wl'
11316:
11317: # Set some defaults for GNU ld with shared library support. These
11318: # are reset later if shared libraries are not supported. Putting them
11319: # here allows them to be overridden if necessary.
11320: runpath_var=LD_RUN_PATH
11321: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11322: export_dynamic_flag_spec='$wl--export-dynamic'
11323: # ancient GNU ld didn't support --whole-archive et. al.
11324: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11325: whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11326: else
11327: whole_archive_flag_spec=
11328: fi
11329: supports_anon_versioning=no
11330: case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11331: *GNU\ gold*) supports_anon_versioning=yes ;;
11332: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11333: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11334: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11335: *\ 2.11.*) ;; # other 2.11 versions
11336: *) supports_anon_versioning=yes ;;
11337: esac
11338:
11339: # See if GNU ld supports shared libraries.
11340: case $host_os in
11341: aix[3-9]*)
11342: # On AIX/PPC, the GNU linker is very broken
11343: if test ia64 != "$host_cpu"; then
11344: ld_shlibs=no
11345: cat <<_LT_EOF 1>&2
11346:
11347: *** Warning: the GNU linker, at least up to release 2.19, is reported
11348: *** to be unable to reliably create shared libraries on AIX.
11349: *** Therefore, libtool is disabling shared libraries support. If you
11350: *** really care for shared libraries, you may want to install binutils
11351: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11352: *** You will then need to restart the configuration process.
11353:
11354: _LT_EOF
11355: fi
11356: ;;
11357:
11358: amigaos*)
11359: case $host_cpu in
11360: powerpc)
11361: # see comment about AmigaOS4 .so support
11362: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11363: archive_expsym_cmds=''
11364: ;;
11365: m68k)
11366: 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)'
11367: hardcode_libdir_flag_spec='-L$libdir'
11368: hardcode_minus_L=yes
11369: ;;
11370: esac
11371: ;;
11372:
11373: beos*)
11374: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11375: allow_undefined_flag=unsupported
11376: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11377: # support --undefined. This deserves some investigation. FIXME
11378: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11379: else
11380: ld_shlibs=no
11381: fi
11382: ;;
11383:
11384: cygwin* | mingw* | pw32* | cegcc*)
11385: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11386: # as there is no search path for DLLs.
11387: hardcode_libdir_flag_spec='-L$libdir'
11388: export_dynamic_flag_spec='$wl--export-all-symbols'
11389: allow_undefined_flag=unsupported
11390: always_export_symbols=no
11391: enable_shared_with_static_runtimes=yes
11392: 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'
11393: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11394:
11395: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11396: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11397: # If the export-symbols file already is a .def file, use it as
11398: # is; otherwise, prepend EXPORTS...
11399: archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11400: cp $export_symbols $output_objdir/$soname.def;
11401: else
11402: echo EXPORTS > $output_objdir/$soname.def;
11403: cat $export_symbols >> $output_objdir/$soname.def;
11404: fi~
11405: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11406: else
11407: ld_shlibs=no
11408: fi
11409: ;;
11410:
11411: haiku*)
11412: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11413: link_all_deplibs=yes
11414: ;;
11415:
11416: os2*)
11417: hardcode_libdir_flag_spec='-L$libdir'
11418: hardcode_minus_L=yes
11419: allow_undefined_flag=unsupported
11420: shrext_cmds=.dll
11421: archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11422: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11423: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11424: $ECHO EXPORTS >> $output_objdir/$libname.def~
11425: emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11426: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11427: emximp -o $lib $output_objdir/$libname.def'
11428: archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11429: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11430: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11431: $ECHO EXPORTS >> $output_objdir/$libname.def~
11432: prefix_cmds="$SED"~
11433: if test EXPORTS = "`$SED 1q $export_symbols`"; then
11434: prefix_cmds="$prefix_cmds -e 1d";
11435: fi~
11436: prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11437: cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11438: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11439: emximp -o $lib $output_objdir/$libname.def'
11440: old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11441: enable_shared_with_static_runtimes=yes
11442: ;;
11443:
11444: interix[3-9]*)
11445: hardcode_direct=no
11446: hardcode_shlibpath_var=no
11447: hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11448: export_dynamic_flag_spec='$wl-E'
11449: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11450: # Instead, shared libraries are loaded at an image base (0x10000000 by
11451: # default) and relocated if they conflict, which is a slow very memory
11452: # consuming and fragmenting process. To avoid this, we pick a random,
11453: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11454: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11455: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11456: 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'
11457: ;;
11458:
11459: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11460: tmp_diet=no
11461: if test linux-dietlibc = "$host_os"; then
11462: case $cc_basename in
11463: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11464: esac
11465: fi
11466: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11467: && test no = "$tmp_diet"
11468: then
11469: tmp_addflag=' $pic_flag'
11470: tmp_sharedflag='-shared'
11471: case $cc_basename,$host_cpu in
11472: pgcc*) # Portland Group C compiler
11473: 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'
11474: tmp_addflag=' $pic_flag'
11475: ;;
11476: pgf77* | pgf90* | pgf95* | pgfortran*)
11477: # Portland Group f77 and f90 compilers
11478: 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'
11479: tmp_addflag=' $pic_flag -Mnomain' ;;
11480: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11481: tmp_addflag=' -i_dynamic' ;;
11482: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11483: tmp_addflag=' -i_dynamic -nofor_main' ;;
11484: ifc* | ifort*) # Intel Fortran compiler
11485: tmp_addflag=' -nofor_main' ;;
11486: lf95*) # Lahey Fortran 8.1
11487: whole_archive_flag_spec=
11488: tmp_sharedflag='--shared' ;;
11489: nagfor*) # NAGFOR 5.3
11490: tmp_sharedflag='-Wl,-shared' ;;
11491: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11492: tmp_sharedflag='-qmkshrobj'
11493: tmp_addflag= ;;
11494: nvcc*) # Cuda Compiler Driver 2.2
11495: 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'
11496: compiler_needs_object=yes
11497: ;;
11498: esac
11499: case `$CC -V 2>&1 | sed 5q` in
11500: *Sun\ C*) # Sun C 5.9
11501: 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'
11502: compiler_needs_object=yes
11503: tmp_sharedflag='-G' ;;
11504: *Sun\ F*) # Sun Fortran 8.3
11505: tmp_sharedflag='-G' ;;
11506: esac
11507: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11508:
11509: if test yes = "$supports_anon_versioning"; then
11510: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11511: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11512: echo "local: *; };" >> $output_objdir/$libname.ver~
11513: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11514: fi
11515:
11516: case $cc_basename in
11517: tcc*)
11518: export_dynamic_flag_spec='-rdynamic'
11519: ;;
11520: xlf* | bgf* | bgxlf* | mpixlf*)
11521: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11522: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11523: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11524: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11525: if test yes = "$supports_anon_versioning"; then
11526: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11527: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11528: echo "local: *; };" >> $output_objdir/$libname.ver~
11529: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11530: fi
11531: ;;
11532: esac
11533: else
11534: ld_shlibs=no
11535: fi
11536: ;;
11537:
11538: netbsd*)
11539: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11540: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11541: wlarc=
11542: else
11543: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11544: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11545: fi
11546: ;;
11547:
11548: solaris*)
11549: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11550: ld_shlibs=no
11551: cat <<_LT_EOF 1>&2
11552:
11553: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11554: *** create shared libraries on Solaris systems. Therefore, libtool
11555: *** is disabling shared libraries support. We urge you to upgrade GNU
11556: *** binutils to release 2.9.1 or newer. Another option is to modify
11557: *** your PATH or compiler configuration so that the native linker is
11558: *** used, and then restart.
11559:
11560: _LT_EOF
11561: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11562: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11563: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11564: else
11565: ld_shlibs=no
11566: fi
11567: ;;
11568:
11569: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11570: case `$LD -v 2>&1` in
11571: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11572: ld_shlibs=no
11573: cat <<_LT_EOF 1>&2
11574:
11575: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11576: *** reliably create shared libraries on SCO systems. Therefore, libtool
11577: *** is disabling shared libraries support. We urge you to upgrade GNU
11578: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11579: *** your PATH or compiler configuration so that the native linker is
11580: *** used, and then restart.
11581:
11582: _LT_EOF
11583: ;;
11584: *)
11585: # For security reasons, it is highly recommended that you always
11586: # use absolute paths for naming shared libraries, and exclude the
11587: # DT_RUNPATH tag from executables and libraries. But doing so
11588: # requires that you compile everything twice, which is a pain.
11589: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11590: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11591: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11592: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11593: else
11594: ld_shlibs=no
11595: fi
11596: ;;
11597: esac
11598: ;;
11599:
11600: sunos4*)
11601: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11602: wlarc=
11603: hardcode_direct=yes
11604: hardcode_shlibpath_var=no
11605: ;;
11606:
11607: *)
11608: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11609: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11610: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11611: else
11612: ld_shlibs=no
11613: fi
11614: ;;
11615: esac
11616:
11617: if test no = "$ld_shlibs"; then
11618: runpath_var=
11619: hardcode_libdir_flag_spec=
11620: export_dynamic_flag_spec=
11621: whole_archive_flag_spec=
11622: fi
11623: else
11624: # PORTME fill in a description of your system's linker (not GNU ld)
11625: case $host_os in
11626: aix3*)
11627: allow_undefined_flag=unsupported
11628: always_export_symbols=yes
11629: 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'
11630: # Note: this linker hardcodes the directories in LIBPATH if there
11631: # are no directories specified by -L.
11632: hardcode_minus_L=yes
11633: if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11634: # Neither direct hardcoding nor static linking is supported with a
11635: # broken collect2.
11636: hardcode_direct=unsupported
11637: fi
11638: ;;
11639:
11640: aix[4-9]*)
11641: if test ia64 = "$host_cpu"; then
11642: # On IA64, the linker does run time linking by default, so we don't
11643: # have to do anything special.
11644: aix_use_runtimelinking=no
11645: exp_sym_flag='-Bexport'
11646: no_entry_flag=
11647: else
11648: # If we're using GNU nm, then we don't want the "-C" option.
11649: # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11650: # Without the "-l" option, or with the "-B" option, AIX nm treats
11651: # weak defined symbols like other global defined symbols, whereas
11652: # GNU nm marks them as "W".
11653: # While the 'weak' keyword is ignored in the Export File, we need
11654: # it in the Import File for the 'aix-soname' feature, so we have
11655: # to replace the "-B" option with "-P" for AIX nm.
11656: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11657: export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11658: else
11659: export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11660: fi
11661: aix_use_runtimelinking=no
11662:
11663: # Test if we are trying to use run time linking or normal
11664: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11665: # have runtime linking enabled, and use it for executables.
11666: # For shared libraries, we enable/disable runtime linking
11667: # depending on the kind of the shared library created -
11668: # when "with_aix_soname,aix_use_runtimelinking" is:
11669: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11670: # "aix,yes" lib.so shared, rtl:yes, for executables
11671: # lib.a static archive
11672: # "both,no" lib.so.V(shr.o) shared, rtl:yes
11673: # lib.a(lib.so.V) shared, rtl:no, for executables
11674: # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11675: # lib.a(lib.so.V) shared, rtl:no
11676: # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11677: # lib.a static archive
11678: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11679: for ld_flag in $LDFLAGS; do
11680: if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11681: aix_use_runtimelinking=yes
11682: break
11683: fi
11684: done
11685: if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11686: # With aix-soname=svr4, we create the lib.so.V shared archives only,
11687: # so we don't have lib.a shared libs to link our executables.
11688: # We have to force runtime linking in this case.
11689: aix_use_runtimelinking=yes
11690: LDFLAGS="$LDFLAGS -Wl,-brtl"
11691: fi
11692: ;;
11693: esac
11694:
11695: exp_sym_flag='-bexport'
11696: no_entry_flag='-bnoentry'
11697: fi
11698:
11699: # When large executables or shared objects are built, AIX ld can
11700: # have problems creating the table of contents. If linking a library
11701: # or program results in "error TOC overflow" add -mminimal-toc to
11702: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11703: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11704:
11705: archive_cmds=''
11706: hardcode_direct=yes
11707: hardcode_direct_absolute=yes
11708: hardcode_libdir_separator=':'
11709: link_all_deplibs=yes
11710: file_list_spec='$wl-f,'
11711: case $with_aix_soname,$aix_use_runtimelinking in
11712: aix,*) ;; # traditional, no import file
11713: svr4,* | *,yes) # use import file
11714: # The Import File defines what to hardcode.
11715: hardcode_direct=no
11716: hardcode_direct_absolute=no
11717: ;;
11718: esac
11719:
11720: if test yes = "$GCC"; then
11721: case $host_os in aix4.[012]|aix4.[012].*)
11722: # We only want to do this on AIX 4.2 and lower, the check
11723: # below for broken collect2 doesn't work under 4.3+
11724: collect2name=`$CC -print-prog-name=collect2`
11725: if test -f "$collect2name" &&
11726: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11727: then
11728: # We have reworked collect2
11729: :
11730: else
11731: # We have old collect2
11732: hardcode_direct=unsupported
11733: # It fails to find uninstalled libraries when the uninstalled
11734: # path is not listed in the libpath. Setting hardcode_minus_L
11735: # to unsupported forces relinking
11736: hardcode_minus_L=yes
11737: hardcode_libdir_flag_spec='-L$libdir'
11738: hardcode_libdir_separator=
11739: fi
11740: ;;
11741: esac
11742: shared_flag='-shared'
11743: if test yes = "$aix_use_runtimelinking"; then
11744: shared_flag="$shared_flag "'$wl-G'
11745: fi
11746: # Need to ensure runtime linking is disabled for the traditional
11747: # shared library, or the linker may eventually find shared libraries
11748: # /with/ Import File - we do not want to mix them.
11749: shared_flag_aix='-shared'
11750: shared_flag_svr4='-shared $wl-G'
11751: else
11752: # not using gcc
11753: if test ia64 = "$host_cpu"; then
11754: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11755: # chokes on -Wl,-G. The following line is correct:
11756: shared_flag='-G'
11757: else
11758: if test yes = "$aix_use_runtimelinking"; then
11759: shared_flag='$wl-G'
11760: else
11761: shared_flag='$wl-bM:SRE'
11762: fi
11763: shared_flag_aix='$wl-bM:SRE'
11764: shared_flag_svr4='$wl-G'
11765: fi
11766: fi
11767:
11768: export_dynamic_flag_spec='$wl-bexpall'
11769: # It seems that -bexpall does not export symbols beginning with
11770: # underscore (_), so it is better to generate a list of symbols to export.
11771: always_export_symbols=yes
11772: if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11773: # Warning - without using the other runtime loading flags (-brtl),
11774: # -berok will link without error, but may produce a broken library.
11775: allow_undefined_flag='-berok'
11776: # Determine the default libpath from the value encoded in an
11777: # empty executable.
11778: if test set = "${lt_cv_aix_libpath+set}"; then
11779: aix_libpath=$lt_cv_aix_libpath
11780: else
11781: if ${lt_cv_aix_libpath_+:} false; then :
11782: $as_echo_n "(cached) " >&6
11783: else
11784: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11785: /* end confdefs.h. */
11786:
11787: int
11788: main ()
11789: {
11790:
11791: ;
11792: return 0;
11793: }
11794: _ACEOF
11795: if ac_fn_c_try_link "$LINENO"; then :
11796:
11797: lt_aix_libpath_sed='
11798: /Import File Strings/,/^$/ {
11799: /^0/ {
11800: s/^0 *\([^ ]*\) *$/\1/
11801: p
11802: }
11803: }'
11804: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11805: # Check for a 64-bit object if we didn't find anything.
11806: if test -z "$lt_cv_aix_libpath_"; then
11807: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11808: fi
11809: fi
11810: rm -f core conftest.err conftest.$ac_objext \
11811: conftest$ac_exeext conftest.$ac_ext
11812: if test -z "$lt_cv_aix_libpath_"; then
11813: lt_cv_aix_libpath_=/usr/lib:/lib
11814: fi
11815:
11816: fi
11817:
11818: aix_libpath=$lt_cv_aix_libpath_
11819: fi
11820:
11821: hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11822: archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11823: else
11824: if test ia64 = "$host_cpu"; then
11825: hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11826: allow_undefined_flag="-z nodefs"
11827: 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"
11828: else
11829: # Determine the default libpath from the value encoded in an
11830: # empty executable.
11831: if test set = "${lt_cv_aix_libpath+set}"; then
11832: aix_libpath=$lt_cv_aix_libpath
11833: else
11834: if ${lt_cv_aix_libpath_+:} false; then :
11835: $as_echo_n "(cached) " >&6
11836: else
11837: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11838: /* end confdefs.h. */
11839:
11840: int
11841: main ()
11842: {
11843:
11844: ;
11845: return 0;
11846: }
11847: _ACEOF
11848: if ac_fn_c_try_link "$LINENO"; then :
11849:
11850: lt_aix_libpath_sed='
11851: /Import File Strings/,/^$/ {
11852: /^0/ {
11853: s/^0 *\([^ ]*\) *$/\1/
11854: p
11855: }
11856: }'
11857: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11858: # Check for a 64-bit object if we didn't find anything.
11859: if test -z "$lt_cv_aix_libpath_"; then
11860: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11861: fi
11862: fi
11863: rm -f core conftest.err conftest.$ac_objext \
11864: conftest$ac_exeext conftest.$ac_ext
11865: if test -z "$lt_cv_aix_libpath_"; then
11866: lt_cv_aix_libpath_=/usr/lib:/lib
11867: fi
11868:
11869: fi
11870:
11871: aix_libpath=$lt_cv_aix_libpath_
11872: fi
11873:
11874: hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11875: # Warning - without using the other run time loading flags,
11876: # -berok will link without error, but may produce a broken library.
11877: no_undefined_flag=' $wl-bernotok'
11878: allow_undefined_flag=' $wl-berok'
11879: if test yes = "$with_gnu_ld"; then
11880: # We only use this code for GNU lds that support --whole-archive.
11881: whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11882: else
11883: # Exported symbols can be pulled into shared objects from archives
11884: whole_archive_flag_spec='$convenience'
11885: fi
11886: archive_cmds_need_lc=yes
11887: archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11888: # -brtl affects multiple linker settings, -berok does not and is overridden later
11889: compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11890: if test svr4 != "$with_aix_soname"; then
11891: # This is similar to how AIX traditionally builds its shared libraries.
11892: archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11893: fi
11894: if test aix != "$with_aix_soname"; then
11895: archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11896: else
11897: # used by -dlpreopen to get the symbols
11898: archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11899: fi
11900: archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11901: fi
11902: fi
11903: ;;
11904:
11905: amigaos*)
11906: case $host_cpu in
11907: powerpc)
11908: # see comment about AmigaOS4 .so support
11909: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11910: archive_expsym_cmds=''
11911: ;;
11912: m68k)
11913: 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)'
11914: hardcode_libdir_flag_spec='-L$libdir'
11915: hardcode_minus_L=yes
11916: ;;
11917: esac
11918: ;;
11919:
11920: bsdi[45]*)
11921: export_dynamic_flag_spec=-rdynamic
11922: ;;
11923:
11924: cygwin* | mingw* | pw32* | cegcc*)
11925: # When not using gcc, we currently assume that we are using
11926: # Microsoft Visual C++.
11927: # hardcode_libdir_flag_spec is actually meaningless, as there is
11928: # no search path for DLLs.
11929: case $cc_basename in
11930: cl*)
11931: # Native MSVC
11932: hardcode_libdir_flag_spec=' '
11933: allow_undefined_flag=unsupported
11934: always_export_symbols=yes
11935: file_list_spec='@'
11936: # Tell ltmain to make .lib files, not .a files.
11937: libext=lib
11938: # Tell ltmain to make .dll files, not .so files.
11939: shrext_cmds=.dll
11940: # FIXME: Setting linknames here is a bad hack.
11941: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11942: archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11943: cp "$export_symbols" "$output_objdir/$soname.def";
11944: echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11945: else
11946: $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11947: fi~
11948: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11949: linknames='
11950: # The linker will not automatically build a static lib if we build a DLL.
11951: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11952: enable_shared_with_static_runtimes=yes
11953: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11954: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11955: # Don't use ranlib
11956: old_postinstall_cmds='chmod 644 $oldlib'
11957: postlink_cmds='lt_outputfile="@OUTPUT@"~
11958: lt_tool_outputfile="@TOOL_OUTPUT@"~
11959: case $lt_outputfile in
11960: *.exe|*.EXE) ;;
11961: *)
11962: lt_outputfile=$lt_outputfile.exe
11963: lt_tool_outputfile=$lt_tool_outputfile.exe
11964: ;;
11965: esac~
11966: if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11967: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11968: $RM "$lt_outputfile.manifest";
11969: fi'
11970: ;;
11971: *)
11972: # Assume MSVC wrapper
11973: hardcode_libdir_flag_spec=' '
11974: allow_undefined_flag=unsupported
11975: # Tell ltmain to make .lib files, not .a files.
11976: libext=lib
11977: # Tell ltmain to make .dll files, not .so files.
11978: shrext_cmds=.dll
11979: # FIXME: Setting linknames here is a bad hack.
11980: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11981: # The linker will automatically build a .lib file if we build a DLL.
11982: old_archive_from_new_cmds='true'
11983: # FIXME: Should let the user specify the lib program.
11984: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11985: enable_shared_with_static_runtimes=yes
11986: ;;
11987: esac
11988: ;;
11989:
11990: darwin* | rhapsody*)
11991:
11992:
11993: archive_cmds_need_lc=no
11994: hardcode_direct=no
11995: hardcode_automatic=yes
11996: hardcode_shlibpath_var=unsupported
11997: if test yes = "$lt_cv_ld_force_load"; then
11998: 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\"`'
11999:
12000: else
12001: whole_archive_flag_spec=''
12002: fi
12003: link_all_deplibs=yes
12004: allow_undefined_flag=$_lt_dar_allow_undefined
12005: case $cc_basename in
12006: ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12007: *) _lt_dar_can_shared=$GCC ;;
12008: esac
12009: if test yes = "$_lt_dar_can_shared"; then
12010: output_verbose_link_cmd=func_echo_all
12011: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12012: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12013: 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"
12014: 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"
12015:
12016: else
12017: ld_shlibs=no
12018: fi
12019:
12020: ;;
12021:
12022: dgux*)
12023: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12024: hardcode_libdir_flag_spec='-L$libdir'
12025: hardcode_shlibpath_var=no
12026: ;;
12027:
12028: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12029: # support. Future versions do this automatically, but an explicit c++rt0.o
12030: # does not break anything, and helps significantly (at the cost of a little
12031: # extra space).
12032: freebsd2.2*)
12033: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12034: hardcode_libdir_flag_spec='-R$libdir'
12035: hardcode_direct=yes
12036: hardcode_shlibpath_var=no
12037: ;;
12038:
12039: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12040: freebsd2.*)
12041: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12042: hardcode_direct=yes
12043: hardcode_minus_L=yes
12044: hardcode_shlibpath_var=no
12045: ;;
12046:
12047: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12048: freebsd* | dragonfly*)
12049: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12050: hardcode_libdir_flag_spec='-R$libdir'
12051: hardcode_direct=yes
12052: hardcode_shlibpath_var=no
12053: ;;
12054:
12055: hpux9*)
12056: if test yes = "$GCC"; then
12057: archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12058: else
12059: archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12060: fi
12061: hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12062: hardcode_libdir_separator=:
12063: hardcode_direct=yes
12064:
12065: # hardcode_minus_L: Not really in the search PATH,
12066: # but as the default location of the library.
12067: hardcode_minus_L=yes
12068: export_dynamic_flag_spec='$wl-E'
12069: ;;
12070:
12071: hpux10*)
12072: if test yes,no = "$GCC,$with_gnu_ld"; then
12073: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12074: else
12075: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12076: fi
12077: if test no = "$with_gnu_ld"; then
12078: hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12079: hardcode_libdir_separator=:
12080: hardcode_direct=yes
12081: hardcode_direct_absolute=yes
12082: export_dynamic_flag_spec='$wl-E'
12083: # hardcode_minus_L: Not really in the search PATH,
12084: # but as the default location of the library.
12085: hardcode_minus_L=yes
12086: fi
12087: ;;
12088:
12089: hpux11*)
12090: if test yes,no = "$GCC,$with_gnu_ld"; then
12091: case $host_cpu in
12092: hppa*64*)
12093: archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12094: ;;
12095: ia64*)
12096: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12097: ;;
12098: *)
12099: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12100: ;;
12101: esac
12102: else
12103: case $host_cpu in
12104: hppa*64*)
12105: archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12106: ;;
12107: ia64*)
12108: archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12109: ;;
12110: *)
12111:
12112: # Older versions of the 11.00 compiler do not understand -b yet
12113: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12114: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12115: $as_echo_n "checking if $CC understands -b... " >&6; }
12116: if ${lt_cv_prog_compiler__b+:} false; then :
12117: $as_echo_n "(cached) " >&6
12118: else
12119: lt_cv_prog_compiler__b=no
12120: save_LDFLAGS=$LDFLAGS
12121: LDFLAGS="$LDFLAGS -b"
12122: echo "$lt_simple_link_test_code" > conftest.$ac_ext
12123: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12124: # The linker can only warn and ignore the option if not recognized
12125: # So say no if there are warnings
12126: if test -s conftest.err; then
12127: # Append any errors to the config.log.
12128: cat conftest.err 1>&5
12129: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12130: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12131: if diff conftest.exp conftest.er2 >/dev/null; then
12132: lt_cv_prog_compiler__b=yes
12133: fi
12134: else
12135: lt_cv_prog_compiler__b=yes
12136: fi
12137: fi
12138: $RM -r conftest*
12139: LDFLAGS=$save_LDFLAGS
12140:
12141: fi
12142: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12143: $as_echo "$lt_cv_prog_compiler__b" >&6; }
12144:
12145: if test yes = "$lt_cv_prog_compiler__b"; then
12146: archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12147: else
12148: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12149: fi
12150:
12151: ;;
12152: esac
12153: fi
12154: if test no = "$with_gnu_ld"; then
12155: hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12156: hardcode_libdir_separator=:
12157:
12158: case $host_cpu in
12159: hppa*64*|ia64*)
12160: hardcode_direct=no
12161: hardcode_shlibpath_var=no
12162: ;;
12163: *)
12164: hardcode_direct=yes
12165: hardcode_direct_absolute=yes
12166: export_dynamic_flag_spec='$wl-E'
12167:
12168: # hardcode_minus_L: Not really in the search PATH,
12169: # but as the default location of the library.
12170: hardcode_minus_L=yes
12171: ;;
12172: esac
12173: fi
12174: ;;
12175:
12176: irix5* | irix6* | nonstopux*)
12177: if test yes = "$GCC"; then
12178: 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'
12179: # Try to use the -exported_symbol ld option, if it does not
12180: # work, assume that -exports_file does not work either and
12181: # implicitly export all symbols.
12182: # This should be the same for all languages, so no per-tag cache variable.
12183: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12184: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12185: if ${lt_cv_irix_exported_symbol+:} false; then :
12186: $as_echo_n "(cached) " >&6
12187: else
12188: save_LDFLAGS=$LDFLAGS
12189: LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12190: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12191: /* end confdefs.h. */
12192: int foo (void) { return 0; }
12193: _ACEOF
12194: if ac_fn_c_try_link "$LINENO"; then :
12195: lt_cv_irix_exported_symbol=yes
12196: else
12197: lt_cv_irix_exported_symbol=no
12198: fi
12199: rm -f core conftest.err conftest.$ac_objext \
12200: conftest$ac_exeext conftest.$ac_ext
12201: LDFLAGS=$save_LDFLAGS
12202: fi
12203: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12204: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12205: if test yes = "$lt_cv_irix_exported_symbol"; then
12206: 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'
12207: fi
12208: else
12209: 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'
12210: 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'
12211: fi
12212: archive_cmds_need_lc='no'
12213: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12214: hardcode_libdir_separator=:
12215: inherit_rpath=yes
12216: link_all_deplibs=yes
12217: ;;
12218:
12219: linux*)
12220: case $cc_basename in
12221: tcc*)
12222: # Fabrice Bellard et al's Tiny C Compiler
12223: ld_shlibs=yes
12224: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12225: ;;
12226: esac
12227: ;;
12228:
12229: netbsd*)
12230: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12231: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12232: else
12233: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12234: fi
12235: hardcode_libdir_flag_spec='-R$libdir'
12236: hardcode_direct=yes
12237: hardcode_shlibpath_var=no
12238: ;;
12239:
12240: newsos6)
12241: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12242: hardcode_direct=yes
12243: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12244: hardcode_libdir_separator=:
12245: hardcode_shlibpath_var=no
12246: ;;
12247:
12248: *nto* | *qnx*)
12249: ;;
12250:
12251: openbsd* | bitrig*)
12252: if test -f /usr/libexec/ld.so; then
12253: hardcode_direct=yes
12254: hardcode_shlibpath_var=no
12255: hardcode_direct_absolute=yes
12256: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12257: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12258: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12259: hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12260: export_dynamic_flag_spec='$wl-E'
12261: else
12262: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12263: hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12264: fi
12265: else
12266: ld_shlibs=no
12267: fi
12268: ;;
12269:
12270: os2*)
12271: hardcode_libdir_flag_spec='-L$libdir'
12272: hardcode_minus_L=yes
12273: allow_undefined_flag=unsupported
12274: shrext_cmds=.dll
12275: archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12276: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12277: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12278: $ECHO EXPORTS >> $output_objdir/$libname.def~
12279: emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12280: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12281: emximp -o $lib $output_objdir/$libname.def'
12282: archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12283: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12284: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12285: $ECHO EXPORTS >> $output_objdir/$libname.def~
12286: prefix_cmds="$SED"~
12287: if test EXPORTS = "`$SED 1q $export_symbols`"; then
12288: prefix_cmds="$prefix_cmds -e 1d";
12289: fi~
12290: prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12291: cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12292: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12293: emximp -o $lib $output_objdir/$libname.def'
12294: old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12295: enable_shared_with_static_runtimes=yes
12296: ;;
12297:
12298: osf3*)
12299: if test yes = "$GCC"; then
12300: allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12301: 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'
12302: else
12303: allow_undefined_flag=' -expect_unresolved \*'
12304: 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'
12305: fi
12306: archive_cmds_need_lc='no'
12307: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12308: hardcode_libdir_separator=:
12309: ;;
12310:
12311: osf4* | osf5*) # as osf3* with the addition of -msym flag
12312: if test yes = "$GCC"; then
12313: allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12314: 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'
12315: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12316: else
12317: allow_undefined_flag=' -expect_unresolved \*'
12318: 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'
12319: 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~
12320: $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'
12321:
12322: # Both c and cxx compiler support -rpath directly
12323: hardcode_libdir_flag_spec='-rpath $libdir'
12324: fi
12325: archive_cmds_need_lc='no'
12326: hardcode_libdir_separator=:
12327: ;;
12328:
12329: solaris*)
12330: no_undefined_flag=' -z defs'
12331: if test yes = "$GCC"; then
12332: wlarc='$wl'
12333: archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12334: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12335: $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'
12336: else
12337: case `$CC -V 2>&1` in
12338: *"Compilers 5.0"*)
12339: wlarc=''
12340: archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12341: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12342: $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12343: ;;
12344: *)
12345: wlarc='$wl'
12346: archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12347: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12348: $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12349: ;;
12350: esac
12351: fi
12352: hardcode_libdir_flag_spec='-R$libdir'
12353: hardcode_shlibpath_var=no
12354: case $host_os in
12355: solaris2.[0-5] | solaris2.[0-5].*) ;;
12356: *)
12357: # The compiler driver will combine and reorder linker options,
12358: # but understands '-z linker_flag'. GCC discards it without '$wl',
12359: # but is careful enough not to reorder.
12360: # Supported since Solaris 2.6 (maybe 2.5.1?)
12361: if test yes = "$GCC"; then
12362: whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12363: else
12364: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12365: fi
12366: ;;
12367: esac
12368: link_all_deplibs=yes
12369: ;;
12370:
12371: sunos4*)
12372: if test sequent = "$host_vendor"; then
12373: # Use $CC to link under sequent, because it throws in some extra .o
12374: # files that make .init and .fini sections work.
12375: archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12376: else
12377: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12378: fi
12379: hardcode_libdir_flag_spec='-L$libdir'
12380: hardcode_direct=yes
12381: hardcode_minus_L=yes
12382: hardcode_shlibpath_var=no
12383: ;;
12384:
12385: sysv4)
12386: case $host_vendor in
12387: sni)
12388: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12389: hardcode_direct=yes # is this really true???
12390: ;;
12391: siemens)
12392: ## LD is ld it makes a PLAMLIB
12393: ## CC just makes a GrossModule.
12394: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12395: reload_cmds='$CC -r -o $output$reload_objs'
12396: hardcode_direct=no
12397: ;;
12398: motorola)
12399: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12400: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12401: ;;
12402: esac
12403: runpath_var='LD_RUN_PATH'
12404: hardcode_shlibpath_var=no
12405: ;;
12406:
12407: sysv4.3*)
12408: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12409: hardcode_shlibpath_var=no
12410: export_dynamic_flag_spec='-Bexport'
12411: ;;
12412:
12413: sysv4*MP*)
12414: if test -d /usr/nec; then
12415: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12416: hardcode_shlibpath_var=no
12417: runpath_var=LD_RUN_PATH
12418: hardcode_runpath_var=yes
12419: ld_shlibs=yes
12420: fi
12421: ;;
12422:
12423: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12424: no_undefined_flag='$wl-z,text'
12425: archive_cmds_need_lc=no
12426: hardcode_shlibpath_var=no
12427: runpath_var='LD_RUN_PATH'
12428:
12429: if test yes = "$GCC"; then
12430: archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12431: archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12432: else
12433: archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12434: archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12435: fi
12436: ;;
12437:
12438: sysv5* | sco3.2v5* | sco5v6*)
12439: # Note: We CANNOT use -z defs as we might desire, because we do not
12440: # link with -lc, and that would cause any symbols used from libc to
12441: # always be unresolved, which means just about no library would
12442: # ever link correctly. If we're not using GNU ld we use -z text
12443: # though, which does catch some bad symbols but isn't as heavy-handed
12444: # as -z defs.
12445: no_undefined_flag='$wl-z,text'
12446: allow_undefined_flag='$wl-z,nodefs'
12447: archive_cmds_need_lc=no
12448: hardcode_shlibpath_var=no
12449: hardcode_libdir_flag_spec='$wl-R,$libdir'
12450: hardcode_libdir_separator=':'
12451: link_all_deplibs=yes
12452: export_dynamic_flag_spec='$wl-Bexport'
12453: runpath_var='LD_RUN_PATH'
12454:
12455: if test yes = "$GCC"; then
12456: archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12457: archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12458: else
12459: archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12460: archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12461: fi
12462: ;;
12463:
12464: uts4*)
12465: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12466: hardcode_libdir_flag_spec='-L$libdir'
12467: hardcode_shlibpath_var=no
12468: ;;
12469:
12470: *)
12471: ld_shlibs=no
12472: ;;
12473: esac
12474:
12475: if test sni = "$host_vendor"; then
12476: case $host in
12477: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12478: export_dynamic_flag_spec='$wl-Blargedynsym'
12479: ;;
12480: esac
12481: fi
12482: fi
12483:
12484: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12485: $as_echo "$ld_shlibs" >&6; }
12486: test no = "$ld_shlibs" && can_build_shared=no
12487:
12488: with_gnu_ld=$with_gnu_ld
12489:
12490:
12491:
12492:
12493:
12494:
12495:
12496:
12497:
12498:
12499:
12500:
12501:
12502:
12503:
12504: #
12505: # Do we need to explicitly link libc?
12506: #
12507: case "x$archive_cmds_need_lc" in
12508: x|xyes)
12509: # Assume -lc should be added
12510: archive_cmds_need_lc=yes
12511:
12512: if test yes,yes = "$GCC,$enable_shared"; then
12513: case $archive_cmds in
12514: *'~'*)
12515: # FIXME: we may have to deal with multi-command sequences.
12516: ;;
12517: '$CC '*)
12518: # Test whether the compiler implicitly links with -lc since on some
12519: # systems, -lgcc has to come before -lc. If gcc already passes -lc
12520: # to ld, don't add -lc before -lgcc.
12521: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12522: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12523: if ${lt_cv_archive_cmds_need_lc+:} false; then :
12524: $as_echo_n "(cached) " >&6
12525: else
12526: $RM conftest*
12527: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12528:
12529: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12530: (eval $ac_compile) 2>&5
12531: ac_status=$?
12532: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12533: test $ac_status = 0; } 2>conftest.err; then
12534: soname=conftest
12535: lib=conftest
12536: libobjs=conftest.$ac_objext
12537: deplibs=
12538: wl=$lt_prog_compiler_wl
12539: pic_flag=$lt_prog_compiler_pic
12540: compiler_flags=-v
12541: linker_flags=-v
12542: verstring=
12543: output_objdir=.
12544: libname=conftest
12545: lt_save_allow_undefined_flag=$allow_undefined_flag
12546: allow_undefined_flag=
12547: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12548: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12549: ac_status=$?
12550: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12551: test $ac_status = 0; }
12552: then
12553: lt_cv_archive_cmds_need_lc=no
12554: else
12555: lt_cv_archive_cmds_need_lc=yes
12556: fi
12557: allow_undefined_flag=$lt_save_allow_undefined_flag
12558: else
12559: cat conftest.err 1>&5
12560: fi
12561: $RM conftest*
12562:
12563: fi
12564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12565: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12566: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12567: ;;
12568: esac
12569: fi
12570: ;;
12571: esac
12572:
12573:
12574:
12575:
12576:
12577:
12578:
12579:
12580:
12581:
12582:
12583:
12584:
12585:
12586:
12587:
12588:
12589:
12590:
12591:
12592:
12593:
12594:
12595:
12596:
12597:
12598:
12599:
12600:
12601:
12602:
12603:
12604:
12605:
12606:
12607:
12608:
12609:
12610:
12611:
12612:
12613:
12614:
12615:
12616:
12617:
12618:
12619:
12620:
12621:
12622:
12623:
12624:
12625:
12626:
12627:
12628:
12629:
12630:
12631:
12632:
12633:
12634:
12635:
12636:
12637:
12638:
12639:
12640:
12641:
12642:
12643:
12644:
12645:
12646:
12647:
12648:
12649:
12650:
12651:
12652:
12653:
12654:
12655:
12656:
12657:
12658:
12659:
12660:
12661:
12662:
12663:
12664:
12665:
12666:
12667:
12668:
12669:
12670:
12671:
12672:
12673:
12674:
12675:
12676:
12677:
12678:
12679:
12680:
12681:
12682:
12683:
12684:
12685:
12686:
12687:
12688:
12689:
12690:
12691:
12692:
12693:
12694:
12695:
12696:
12697:
12698:
12699:
12700:
12701:
12702:
12703:
12704:
12705:
12706:
12707:
12708:
12709:
12710:
12711:
12712:
12713:
12714:
12715:
12716:
12717:
12718:
12719:
12720:
12721:
12722:
12723:
12724: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12725: $as_echo_n "checking dynamic linker characteristics... " >&6; }
12726:
12727: if test yes = "$GCC"; then
12728: case $host_os in
12729: darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12730: *) lt_awk_arg='/^libraries:/' ;;
12731: esac
12732: case $host_os in
12733: mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12734: *) lt_sed_strip_eq='s|=/|/|g' ;;
12735: esac
12736: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12737: case $lt_search_path_spec in
12738: *\;*)
12739: # if the path contains ";" then we assume it to be the separator
12740: # otherwise default to the standard path separator (i.e. ":") - it is
12741: # assumed that no part of a normal pathname contains ";" but that should
12742: # okay in the real world where ";" in dirpaths is itself problematic.
12743: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12744: ;;
12745: *)
12746: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12747: ;;
12748: esac
12749: # Ok, now we have the path, separated by spaces, we can step through it
12750: # and add multilib dir if necessary...
12751: lt_tmp_lt_search_path_spec=
12752: lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12753: # ...but if some path component already ends with the multilib dir we assume
12754: # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12755: case "$lt_multi_os_dir; $lt_search_path_spec " in
12756: "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12757: lt_multi_os_dir=
12758: ;;
12759: esac
12760: for lt_sys_path in $lt_search_path_spec; do
12761: if test -d "$lt_sys_path$lt_multi_os_dir"; then
12762: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12763: elif test -n "$lt_multi_os_dir"; then
12764: test -d "$lt_sys_path" && \
12765: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12766: fi
12767: done
12768: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12769: BEGIN {RS = " "; FS = "/|\n";} {
12770: lt_foo = "";
12771: lt_count = 0;
12772: for (lt_i = NF; lt_i > 0; lt_i--) {
12773: if ($lt_i != "" && $lt_i != ".") {
12774: if ($lt_i == "..") {
12775: lt_count++;
12776: } else {
12777: if (lt_count == 0) {
12778: lt_foo = "/" $lt_i lt_foo;
12779: } else {
12780: lt_count--;
12781: }
12782: }
12783: }
12784: }
12785: if (lt_foo != "") { lt_freq[lt_foo]++; }
12786: if (lt_freq[lt_foo] == 1) { print lt_foo; }
12787: }'`
12788: # AWK program above erroneously prepends '/' to C:/dos/paths
12789: # for these hosts.
12790: case $host_os in
12791: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12792: $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12793: esac
12794: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12795: else
12796: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12797: fi
12798: library_names_spec=
12799: libname_spec='lib$name'
12800: soname_spec=
12801: shrext_cmds=.so
12802: postinstall_cmds=
12803: postuninstall_cmds=
12804: finish_cmds=
12805: finish_eval=
12806: shlibpath_var=
12807: shlibpath_overrides_runpath=unknown
12808: version_type=none
12809: dynamic_linker="$host_os ld.so"
12810: sys_lib_dlsearch_path_spec="/lib /usr/lib"
12811: need_lib_prefix=unknown
12812: hardcode_into_libs=no
12813:
12814: # when you set need_version to no, make sure it does not cause -set_version
12815: # flags to be left without arguments
12816: need_version=unknown
12817:
12818:
12819:
12820: case $host_os in
12821: aix3*)
12822: version_type=linux # correct to gnu/linux during the next big refactor
12823: library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12824: shlibpath_var=LIBPATH
12825:
12826: # AIX 3 has no versioning support, so we append a major version to the name.
12827: soname_spec='$libname$release$shared_ext$major'
12828: ;;
12829:
12830: aix[4-9]*)
12831: version_type=linux # correct to gnu/linux during the next big refactor
12832: need_lib_prefix=no
12833: need_version=no
12834: hardcode_into_libs=yes
12835: if test ia64 = "$host_cpu"; then
12836: # AIX 5 supports IA64
12837: library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12838: shlibpath_var=LD_LIBRARY_PATH
12839: else
12840: # With GCC up to 2.95.x, collect2 would create an import file
12841: # for dependence libraries. The import file would start with
12842: # the line '#! .'. This would cause the generated library to
12843: # depend on '.', always an invalid library. This was fixed in
12844: # development snapshots of GCC prior to 3.0.
12845: case $host_os in
12846: aix4 | aix4.[01] | aix4.[01].*)
12847: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12848: echo ' yes '
12849: echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12850: :
12851: else
12852: can_build_shared=no
12853: fi
12854: ;;
12855: esac
12856: # Using Import Files as archive members, it is possible to support
12857: # filename-based versioning of shared library archives on AIX. While
12858: # this would work for both with and without runtime linking, it will
12859: # prevent static linking of such archives. So we do filename-based
12860: # shared library versioning with .so extension only, which is used
12861: # when both runtime linking and shared linking is enabled.
12862: # Unfortunately, runtime linking may impact performance, so we do
12863: # not want this to be the default eventually. Also, we use the
12864: # versioned .so libs for executables only if there is the -brtl
12865: # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12866: # To allow for filename-based versioning support, we need to create
12867: # libNAME.so.V as an archive file, containing:
12868: # *) an Import File, referring to the versioned filename of the
12869: # archive as well as the shared archive member, telling the
12870: # bitwidth (32 or 64) of that shared object, and providing the
12871: # list of exported symbols of that shared object, eventually
12872: # decorated with the 'weak' keyword
12873: # *) the shared object with the F_LOADONLY flag set, to really avoid
12874: # it being seen by the linker.
12875: # At run time we better use the real file rather than another symlink,
12876: # but for link time we create the symlink libNAME.so -> libNAME.so.V
12877:
12878: case $with_aix_soname,$aix_use_runtimelinking in
12879: # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12880: # soname into executable. Probably we can add versioning support to
12881: # collect2, so additional links can be useful in future.
12882: aix,yes) # traditional libtool
12883: dynamic_linker='AIX unversionable lib.so'
12884: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12885: # instead of lib<name>.a to let people know that these are not
12886: # typical AIX shared libraries.
12887: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12888: ;;
12889: aix,no) # traditional AIX only
12890: dynamic_linker='AIX lib.a(lib.so.V)'
12891: # We preserve .a as extension for shared libraries through AIX4.2
12892: # and later when we are not doing run time linking.
12893: library_names_spec='$libname$release.a $libname.a'
12894: soname_spec='$libname$release$shared_ext$major'
12895: ;;
12896: svr4,*) # full svr4 only
12897: dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12898: library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12899: # We do not specify a path in Import Files, so LIBPATH fires.
12900: shlibpath_overrides_runpath=yes
12901: ;;
12902: *,yes) # both, prefer svr4
12903: dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12904: library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12905: # unpreferred sharedlib libNAME.a needs extra handling
12906: postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12907: postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12908: # We do not specify a path in Import Files, so LIBPATH fires.
12909: shlibpath_overrides_runpath=yes
12910: ;;
12911: *,no) # both, prefer aix
12912: dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12913: library_names_spec='$libname$release.a $libname.a'
12914: soname_spec='$libname$release$shared_ext$major'
12915: # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12916: postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12917: postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12918: ;;
12919: esac
12920: shlibpath_var=LIBPATH
12921: fi
12922: ;;
12923:
12924: amigaos*)
12925: case $host_cpu in
12926: powerpc)
12927: # Since July 2007 AmigaOS4 officially supports .so libraries.
12928: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12929: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12930: ;;
12931: m68k)
12932: library_names_spec='$libname.ixlibrary $libname.a'
12933: # Create ${libname}_ixlibrary.a entries in /sys/libs.
12934: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
12935: ;;
12936: esac
12937: ;;
12938:
12939: beos*)
12940: library_names_spec='$libname$shared_ext'
12941: dynamic_linker="$host_os ld.so"
12942: shlibpath_var=LIBRARY_PATH
12943: ;;
12944:
12945: bsdi[45]*)
12946: version_type=linux # correct to gnu/linux during the next big refactor
12947: need_version=no
12948: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12949: soname_spec='$libname$release$shared_ext$major'
12950: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12951: shlibpath_var=LD_LIBRARY_PATH
12952: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12953: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12954: # the default ld.so.conf also contains /usr/contrib/lib and
12955: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12956: # libtool to hard-code these into programs
12957: ;;
12958:
12959: cygwin* | mingw* | pw32* | cegcc*)
12960: version_type=windows
12961: shrext_cmds=.dll
12962: need_version=no
12963: need_lib_prefix=no
12964:
12965: case $GCC,$cc_basename in
12966: yes,*)
12967: # gcc
12968: library_names_spec='$libname.dll.a'
12969: # DLL is installed to $(libdir)/../bin by postinstall_cmds
12970: postinstall_cmds='base_file=`basename \$file`~
12971: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12972: dldir=$destdir/`dirname \$dlpath`~
12973: test -d \$dldir || mkdir -p \$dldir~
12974: $install_prog $dir/$dlname \$dldir/$dlname~
12975: chmod a+x \$dldir/$dlname~
12976: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12977: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12978: fi'
12979: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12980: dlpath=$dir/\$dldll~
12981: $RM \$dlpath'
12982: shlibpath_overrides_runpath=yes
12983:
12984: case $host_os in
12985: cygwin*)
12986: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12987: soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12988:
12989: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12990: ;;
12991: mingw* | cegcc*)
12992: # MinGW DLLs use traditional 'lib' prefix
12993: soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12994: ;;
12995: pw32*)
12996: # pw32 DLLs use 'pw' prefix rather than 'lib'
12997: library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12998: ;;
12999: esac
13000: dynamic_linker='Win32 ld.exe'
13001: ;;
13002:
13003: *,cl*)
13004: # Native MSVC
13005: libname_spec='$name'
13006: soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13007: library_names_spec='$libname.dll.lib'
13008:
13009: case $build_os in
13010: mingw*)
13011: sys_lib_search_path_spec=
13012: lt_save_ifs=$IFS
13013: IFS=';'
13014: for lt_path in $LIB
13015: do
13016: IFS=$lt_save_ifs
13017: # Let DOS variable expansion print the short 8.3 style file name.
13018: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13019: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13020: done
13021: IFS=$lt_save_ifs
13022: # Convert to MSYS style.
13023: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13024: ;;
13025: cygwin*)
13026: # Convert to unix form, then to dos form, then back to unix form
13027: # but this time dos style (no spaces!) so that the unix form looks
13028: # like /cygdrive/c/PROGRA~1:/cygdr...
13029: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13030: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13031: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13032: ;;
13033: *)
13034: sys_lib_search_path_spec=$LIB
13035: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13036: # It is most probably a Windows format PATH.
13037: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13038: else
13039: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13040: fi
13041: # FIXME: find the short name or the path components, as spaces are
13042: # common. (e.g. "Program Files" -> "PROGRA~1")
13043: ;;
13044: esac
13045:
13046: # DLL is installed to $(libdir)/../bin by postinstall_cmds
13047: postinstall_cmds='base_file=`basename \$file`~
13048: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13049: dldir=$destdir/`dirname \$dlpath`~
13050: test -d \$dldir || mkdir -p \$dldir~
13051: $install_prog $dir/$dlname \$dldir/$dlname'
13052: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13053: dlpath=$dir/\$dldll~
13054: $RM \$dlpath'
13055: shlibpath_overrides_runpath=yes
13056: dynamic_linker='Win32 link.exe'
13057: ;;
13058:
13059: *)
13060: # Assume MSVC wrapper
13061: library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13062: dynamic_linker='Win32 ld.exe'
13063: ;;
13064: esac
13065: # FIXME: first we should search . and the directory the executable is in
13066: shlibpath_var=PATH
13067: ;;
13068:
13069: darwin* | rhapsody*)
13070: dynamic_linker="$host_os dyld"
13071: version_type=darwin
13072: need_lib_prefix=no
13073: need_version=no
13074: library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13075: soname_spec='$libname$release$major$shared_ext'
13076: shlibpath_overrides_runpath=yes
13077: shlibpath_var=DYLD_LIBRARY_PATH
13078: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13079:
13080: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13081: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13082: ;;
13083:
13084: dgux*)
13085: version_type=linux # correct to gnu/linux during the next big refactor
13086: need_lib_prefix=no
13087: need_version=no
13088: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13089: soname_spec='$libname$release$shared_ext$major'
13090: shlibpath_var=LD_LIBRARY_PATH
13091: ;;
13092:
13093: freebsd* | dragonfly*)
13094: # DragonFly does not have aout. When/if they implement a new
13095: # versioning mechanism, adjust this.
13096: if test -x /usr/bin/objformat; then
13097: objformat=`/usr/bin/objformat`
13098: else
13099: case $host_os in
13100: freebsd[23].*) objformat=aout ;;
13101: *) objformat=elf ;;
13102: esac
13103: fi
13104: version_type=freebsd-$objformat
13105: case $version_type in
13106: freebsd-elf*)
13107: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13108: soname_spec='$libname$release$shared_ext$major'
13109: need_version=no
13110: need_lib_prefix=no
13111: ;;
13112: freebsd-*)
13113: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13114: need_version=yes
13115: ;;
13116: esac
13117: shlibpath_var=LD_LIBRARY_PATH
13118: case $host_os in
13119: freebsd2.*)
13120: shlibpath_overrides_runpath=yes
13121: ;;
13122: freebsd3.[01]* | freebsdelf3.[01]*)
13123: shlibpath_overrides_runpath=yes
13124: hardcode_into_libs=yes
13125: ;;
13126: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13127: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13128: shlibpath_overrides_runpath=no
13129: hardcode_into_libs=yes
13130: ;;
13131: *) # from 4.6 on, and DragonFly
13132: shlibpath_overrides_runpath=yes
13133: hardcode_into_libs=yes
13134: ;;
13135: esac
13136: ;;
13137:
13138: haiku*)
13139: version_type=linux # correct to gnu/linux during the next big refactor
13140: need_lib_prefix=no
13141: need_version=no
13142: dynamic_linker="$host_os runtime_loader"
13143: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13144: soname_spec='$libname$release$shared_ext$major'
13145: shlibpath_var=LIBRARY_PATH
13146: shlibpath_overrides_runpath=no
13147: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13148: hardcode_into_libs=yes
13149: ;;
13150:
13151: hpux9* | hpux10* | hpux11*)
13152: # Give a soname corresponding to the major version so that dld.sl refuses to
13153: # link against other versions.
13154: version_type=sunos
13155: need_lib_prefix=no
13156: need_version=no
13157: case $host_cpu in
13158: ia64*)
13159: shrext_cmds='.so'
13160: hardcode_into_libs=yes
13161: dynamic_linker="$host_os dld.so"
13162: shlibpath_var=LD_LIBRARY_PATH
13163: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13164: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13165: soname_spec='$libname$release$shared_ext$major'
13166: if test 32 = "$HPUX_IA64_MODE"; then
13167: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13168: sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13169: else
13170: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13171: sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13172: fi
13173: ;;
13174: hppa*64*)
13175: shrext_cmds='.sl'
13176: hardcode_into_libs=yes
13177: dynamic_linker="$host_os dld.sl"
13178: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13179: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13180: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13181: soname_spec='$libname$release$shared_ext$major'
13182: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13183: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13184: ;;
13185: *)
13186: shrext_cmds='.sl'
13187: dynamic_linker="$host_os dld.sl"
13188: shlibpath_var=SHLIB_PATH
13189: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13190: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13191: soname_spec='$libname$release$shared_ext$major'
13192: ;;
13193: esac
13194: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13195: postinstall_cmds='chmod 555 $lib'
13196: # or fails outright, so override atomically:
13197: install_override_mode=555
13198: ;;
13199:
13200: interix[3-9]*)
13201: version_type=linux # correct to gnu/linux during the next big refactor
13202: need_lib_prefix=no
13203: need_version=no
13204: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13205: soname_spec='$libname$release$shared_ext$major'
13206: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13207: shlibpath_var=LD_LIBRARY_PATH
13208: shlibpath_overrides_runpath=no
13209: hardcode_into_libs=yes
13210: ;;
13211:
13212: irix5* | irix6* | nonstopux*)
13213: case $host_os in
13214: nonstopux*) version_type=nonstopux ;;
13215: *)
13216: if test yes = "$lt_cv_prog_gnu_ld"; then
13217: version_type=linux # correct to gnu/linux during the next big refactor
13218: else
13219: version_type=irix
13220: fi ;;
13221: esac
13222: need_lib_prefix=no
13223: need_version=no
13224: soname_spec='$libname$release$shared_ext$major'
13225: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13226: case $host_os in
13227: irix5* | nonstopux*)
13228: libsuff= shlibsuff=
13229: ;;
13230: *)
13231: case $LD in # libtool.m4 will add one of these switches to LD
13232: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13233: libsuff= shlibsuff= libmagic=32-bit;;
13234: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13235: libsuff=32 shlibsuff=N32 libmagic=N32;;
13236: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13237: libsuff=64 shlibsuff=64 libmagic=64-bit;;
13238: *) libsuff= shlibsuff= libmagic=never-match;;
13239: esac
13240: ;;
13241: esac
13242: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13243: shlibpath_overrides_runpath=no
13244: sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13245: sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13246: hardcode_into_libs=yes
13247: ;;
13248:
13249: # No shared lib support for Linux oldld, aout, or coff.
13250: linux*oldld* | linux*aout* | linux*coff*)
13251: dynamic_linker=no
13252: ;;
13253:
13254: linux*android*)
13255: version_type=none # Android doesn't support versioned libraries.
13256: need_lib_prefix=no
13257: need_version=no
13258: library_names_spec='$libname$release$shared_ext'
13259: soname_spec='$libname$release$shared_ext'
13260: finish_cmds=
13261: shlibpath_var=LD_LIBRARY_PATH
13262: shlibpath_overrides_runpath=yes
13263:
13264: # This implies no fast_install, which is unacceptable.
13265: # Some rework will be needed to allow for fast_install
13266: # before this can be enabled.
13267: hardcode_into_libs=yes
13268:
13269: dynamic_linker='Android linker'
13270: # Don't embed -rpath directories since the linker doesn't support them.
13271: hardcode_libdir_flag_spec='-L$libdir'
13272: ;;
13273:
13274: # This must be glibc/ELF.
13275: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13276: version_type=linux # correct to gnu/linux during the next big refactor
13277: need_lib_prefix=no
13278: need_version=no
13279: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13280: soname_spec='$libname$release$shared_ext$major'
13281: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13282: shlibpath_var=LD_LIBRARY_PATH
13283: shlibpath_overrides_runpath=no
13284:
13285: # Some binutils ld are patched to set DT_RUNPATH
13286: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13287: $as_echo_n "(cached) " >&6
13288: else
13289: lt_cv_shlibpath_overrides_runpath=no
13290: save_LDFLAGS=$LDFLAGS
13291: save_libdir=$libdir
13292: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13293: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13294: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13295: /* end confdefs.h. */
13296:
13297: int
13298: main ()
13299: {
13300:
13301: ;
13302: return 0;
13303: }
13304: _ACEOF
13305: if ac_fn_c_try_link "$LINENO"; then :
13306: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13307: lt_cv_shlibpath_overrides_runpath=yes
13308: fi
13309: fi
13310: rm -f core conftest.err conftest.$ac_objext \
13311: conftest$ac_exeext conftest.$ac_ext
13312: LDFLAGS=$save_LDFLAGS
13313: libdir=$save_libdir
13314:
13315: fi
13316:
13317: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13318:
13319: # This implies no fast_install, which is unacceptable.
13320: # Some rework will be needed to allow for fast_install
13321: # before this can be enabled.
13322: hardcode_into_libs=yes
13323:
13324: # Add ABI-specific directories to the system library path.
13325: sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13326:
13327: # Ideally, we could use ldconfig to report *all* directores which are
13328: # searched for libraries, however this is still not possible. Aside from not
13329: # being certain /sbin/ldconfig is available, command
13330: # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13331: # even though it is searched at run-time. Try to do the best guess by
13332: # appending ld.so.conf contents (and includes) to the search path.
13333: if test -f /etc/ld.so.conf; then
13334: 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' ' '`
13335: sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13336: fi
13337:
13338: # We used to test for /lib/ld.so.1 and disable shared libraries on
13339: # powerpc, because MkLinux only supported shared libraries with the
13340: # GNU dynamic linker. Since this was broken with cross compilers,
13341: # most powerpc-linux boxes support dynamic linking these days and
13342: # people can always --disable-shared, the test was removed, and we
13343: # assume the GNU/Linux dynamic linker is in use.
13344: dynamic_linker='GNU/Linux ld.so'
13345: ;;
13346:
13347: netbsd*)
13348: version_type=sunos
13349: need_lib_prefix=no
13350: need_version=no
13351: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13352: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13353: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13354: dynamic_linker='NetBSD (a.out) ld.so'
13355: else
13356: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13357: soname_spec='$libname$release$shared_ext$major'
13358: dynamic_linker='NetBSD ld.elf_so'
13359: fi
13360: shlibpath_var=LD_LIBRARY_PATH
13361: shlibpath_overrides_runpath=yes
13362: hardcode_into_libs=yes
13363: ;;
13364:
13365: newsos6)
13366: version_type=linux # correct to gnu/linux during the next big refactor
13367: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13368: shlibpath_var=LD_LIBRARY_PATH
13369: shlibpath_overrides_runpath=yes
13370: ;;
13371:
13372: *nto* | *qnx*)
13373: version_type=qnx
13374: need_lib_prefix=no
13375: need_version=no
13376: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13377: soname_spec='$libname$release$shared_ext$major'
13378: shlibpath_var=LD_LIBRARY_PATH
13379: shlibpath_overrides_runpath=no
13380: hardcode_into_libs=yes
13381: dynamic_linker='ldqnx.so'
13382: ;;
13383:
13384: openbsd* | bitrig*)
13385: version_type=sunos
13386: sys_lib_dlsearch_path_spec=/usr/lib
13387: need_lib_prefix=no
13388: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13389: need_version=no
13390: else
13391: need_version=yes
13392: fi
13393: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13394: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13395: shlibpath_var=LD_LIBRARY_PATH
13396: shlibpath_overrides_runpath=yes
13397: ;;
13398:
13399: os2*)
13400: libname_spec='$name'
13401: version_type=windows
13402: shrext_cmds=.dll
13403: need_version=no
13404: need_lib_prefix=no
13405: # OS/2 can only load a DLL with a base name of 8 characters or less.
13406: soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13407: v=$($ECHO $release$versuffix | tr -d .-);
13408: n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13409: $ECHO $n$v`$shared_ext'
13410: library_names_spec='${libname}_dll.$libext'
13411: dynamic_linker='OS/2 ld.exe'
13412: shlibpath_var=BEGINLIBPATH
13413: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13414: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13415: postinstall_cmds='base_file=`basename \$file`~
13416: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13417: dldir=$destdir/`dirname \$dlpath`~
13418: test -d \$dldir || mkdir -p \$dldir~
13419: $install_prog $dir/$dlname \$dldir/$dlname~
13420: chmod a+x \$dldir/$dlname~
13421: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13422: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13423: fi'
13424: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13425: dlpath=$dir/\$dldll~
13426: $RM \$dlpath'
13427: ;;
13428:
13429: osf3* | osf4* | osf5*)
13430: version_type=osf
13431: need_lib_prefix=no
13432: need_version=no
13433: soname_spec='$libname$release$shared_ext$major'
13434: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13435: shlibpath_var=LD_LIBRARY_PATH
13436: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13437: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13438: ;;
13439:
13440: rdos*)
13441: dynamic_linker=no
13442: ;;
13443:
13444: solaris*)
13445: version_type=linux # correct to gnu/linux during the next big refactor
13446: need_lib_prefix=no
13447: need_version=no
13448: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13449: soname_spec='$libname$release$shared_ext$major'
13450: shlibpath_var=LD_LIBRARY_PATH
13451: shlibpath_overrides_runpath=yes
13452: hardcode_into_libs=yes
13453: # ldd complains unless libraries are executable
13454: postinstall_cmds='chmod +x $lib'
13455: ;;
13456:
13457: sunos4*)
13458: version_type=sunos
13459: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13460: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13461: shlibpath_var=LD_LIBRARY_PATH
13462: shlibpath_overrides_runpath=yes
13463: if test yes = "$with_gnu_ld"; then
13464: need_lib_prefix=no
13465: fi
13466: need_version=yes
13467: ;;
13468:
13469: sysv4 | sysv4.3*)
13470: version_type=linux # correct to gnu/linux during the next big refactor
13471: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13472: soname_spec='$libname$release$shared_ext$major'
13473: shlibpath_var=LD_LIBRARY_PATH
13474: case $host_vendor in
13475: sni)
13476: shlibpath_overrides_runpath=no
13477: need_lib_prefix=no
13478: runpath_var=LD_RUN_PATH
13479: ;;
13480: siemens)
13481: need_lib_prefix=no
13482: ;;
13483: motorola)
13484: need_lib_prefix=no
13485: need_version=no
13486: shlibpath_overrides_runpath=no
13487: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13488: ;;
13489: esac
13490: ;;
13491:
13492: sysv4*MP*)
13493: if test -d /usr/nec; then
13494: version_type=linux # correct to gnu/linux during the next big refactor
13495: library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13496: soname_spec='$libname$shared_ext.$major'
13497: shlibpath_var=LD_LIBRARY_PATH
13498: fi
13499: ;;
13500:
13501: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13502: version_type=sco
13503: need_lib_prefix=no
13504: need_version=no
13505: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13506: soname_spec='$libname$release$shared_ext$major'
13507: shlibpath_var=LD_LIBRARY_PATH
13508: shlibpath_overrides_runpath=yes
13509: hardcode_into_libs=yes
13510: if test yes = "$with_gnu_ld"; then
13511: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13512: else
13513: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13514: case $host_os in
13515: sco3.2v5*)
13516: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13517: ;;
13518: esac
13519: fi
13520: sys_lib_dlsearch_path_spec='/usr/lib'
13521: ;;
13522:
13523: tpf*)
13524: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13525: version_type=linux # correct to gnu/linux during the next big refactor
13526: need_lib_prefix=no
13527: need_version=no
13528: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13529: shlibpath_var=LD_LIBRARY_PATH
13530: shlibpath_overrides_runpath=no
13531: hardcode_into_libs=yes
13532: ;;
13533:
13534: uts4*)
13535: version_type=linux # correct to gnu/linux during the next big refactor
13536: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13537: soname_spec='$libname$release$shared_ext$major'
13538: shlibpath_var=LD_LIBRARY_PATH
13539: ;;
13540:
13541: *)
13542: dynamic_linker=no
13543: ;;
13544: esac
13545: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13546: $as_echo "$dynamic_linker" >&6; }
13547: test no = "$dynamic_linker" && can_build_shared=no
13548:
13549: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13550: if test yes = "$GCC"; then
13551: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13552: fi
13553:
13554: if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13555: sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13556: fi
13557:
13558: if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13559: sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13560: fi
13561:
13562: # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13563: configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13564:
13565: # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13566: func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13567:
13568: # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13569: configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13570:
13571:
13572:
13573:
13574:
13575:
13576:
13577:
13578:
13579:
13580:
13581:
13582:
13583:
13584:
13585:
13586:
13587:
13588:
13589:
13590:
13591:
13592:
13593:
13594:
13595:
13596:
13597:
13598:
13599:
13600:
13601:
13602:
13603:
13604:
13605:
13606:
13607:
13608:
13609:
13610:
13611:
13612:
13613:
13614:
13615:
13616:
13617:
13618:
13619:
13620:
13621:
13622:
13623:
13624:
13625:
13626:
13627:
13628:
13629:
13630:
13631:
13632:
13633:
13634:
13635:
13636:
13637:
13638:
13639:
13640:
13641:
13642:
13643:
13644:
13645:
13646:
13647:
13648:
13649:
13650:
13651:
13652:
13653:
13654:
13655:
13656:
13657:
13658:
13659:
13660:
13661:
13662:
13663:
13664:
13665:
13666:
13667: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13668: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13669: hardcode_action=
13670: if test -n "$hardcode_libdir_flag_spec" ||
13671: test -n "$runpath_var" ||
13672: test yes = "$hardcode_automatic"; then
13673:
13674: # We can hardcode non-existent directories.
13675: if test no != "$hardcode_direct" &&
13676: # If the only mechanism to avoid hardcoding is shlibpath_var, we
13677: # have to relink, otherwise we might link with an installed library
13678: # when we should be linking with a yet-to-be-installed one
13679: ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13680: test no != "$hardcode_minus_L"; then
13681: # Linking always hardcodes the temporary library directory.
13682: hardcode_action=relink
13683: else
13684: # We can link without hardcoding, and we can hardcode nonexisting dirs.
13685: hardcode_action=immediate
13686: fi
13687: else
13688: # We cannot hardcode anything, or else we can only hardcode existing
13689: # directories.
13690: hardcode_action=unsupported
13691: fi
13692: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13693: $as_echo "$hardcode_action" >&6; }
13694:
13695: if test relink = "$hardcode_action" ||
13696: test yes = "$inherit_rpath"; then
13697: # Fast installation is not supported
13698: enable_fast_install=no
13699: elif test yes = "$shlibpath_overrides_runpath" ||
13700: test no = "$enable_shared"; then
13701: # Fast installation is not necessary
13702: enable_fast_install=needless
13703: fi
13704:
13705:
13706:
13707:
13708:
13709:
13710: if test yes != "$enable_dlopen"; then
13711: enable_dlopen=unknown
13712: enable_dlopen_self=unknown
13713: enable_dlopen_self_static=unknown
13714: else
13715: lt_cv_dlopen=no
13716: lt_cv_dlopen_libs=
13717:
13718: case $host_os in
13719: beos*)
13720: lt_cv_dlopen=load_add_on
13721: lt_cv_dlopen_libs=
13722: lt_cv_dlopen_self=yes
13723: ;;
13724:
13725: mingw* | pw32* | cegcc*)
13726: lt_cv_dlopen=LoadLibrary
13727: lt_cv_dlopen_libs=
13728: ;;
13729:
13730: cygwin*)
13731: lt_cv_dlopen=dlopen
13732: lt_cv_dlopen_libs=
13733: ;;
13734:
13735: darwin*)
13736: # if libdl is installed we need to link against it
13737: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13738: $as_echo_n "checking for dlopen in -ldl... " >&6; }
13739: if ${ac_cv_lib_dl_dlopen+:} false; then :
13740: $as_echo_n "(cached) " >&6
13741: else
13742: ac_check_lib_save_LIBS=$LIBS
13743: LIBS="-ldl $LIBS"
13744: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13745: /* end confdefs.h. */
13746:
13747: /* Override any GCC internal prototype to avoid an error.
13748: Use char because int might match the return type of a GCC
13749: builtin and then its argument prototype would still apply. */
13750: #ifdef __cplusplus
13751: extern "C"
13752: #endif
13753: char dlopen ();
13754: int
13755: main ()
13756: {
13757: return dlopen ();
13758: ;
13759: return 0;
13760: }
13761: _ACEOF
13762: if ac_fn_c_try_link "$LINENO"; then :
13763: ac_cv_lib_dl_dlopen=yes
13764: else
13765: ac_cv_lib_dl_dlopen=no
13766: fi
13767: rm -f core conftest.err conftest.$ac_objext \
13768: conftest$ac_exeext conftest.$ac_ext
13769: LIBS=$ac_check_lib_save_LIBS
13770: fi
13771: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13772: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13773: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13774: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13775: else
13776:
13777: lt_cv_dlopen=dyld
13778: lt_cv_dlopen_libs=
13779: lt_cv_dlopen_self=yes
13780:
13781: fi
13782:
13783: ;;
13784:
13785: tpf*)
13786: # Don't try to run any link tests for TPF. We know it's impossible
13787: # because TPF is a cross-compiler, and we know how we open DSOs.
13788: lt_cv_dlopen=dlopen
13789: lt_cv_dlopen_libs=
13790: lt_cv_dlopen_self=no
13791: ;;
13792:
13793: *)
13794: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13795: if test "x$ac_cv_func_shl_load" = xyes; then :
13796: lt_cv_dlopen=shl_load
13797: else
13798: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13799: $as_echo_n "checking for shl_load in -ldld... " >&6; }
13800: if ${ac_cv_lib_dld_shl_load+:} false; then :
13801: $as_echo_n "(cached) " >&6
13802: else
13803: ac_check_lib_save_LIBS=$LIBS
13804: LIBS="-ldld $LIBS"
13805: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13806: /* end confdefs.h. */
13807:
13808: /* Override any GCC internal prototype to avoid an error.
13809: Use char because int might match the return type of a GCC
13810: builtin and then its argument prototype would still apply. */
13811: #ifdef __cplusplus
13812: extern "C"
13813: #endif
13814: char shl_load ();
13815: int
13816: main ()
13817: {
13818: return shl_load ();
13819: ;
13820: return 0;
13821: }
13822: _ACEOF
13823: if ac_fn_c_try_link "$LINENO"; then :
13824: ac_cv_lib_dld_shl_load=yes
13825: else
13826: ac_cv_lib_dld_shl_load=no
13827: fi
13828: rm -f core conftest.err conftest.$ac_objext \
13829: conftest$ac_exeext conftest.$ac_ext
13830: LIBS=$ac_check_lib_save_LIBS
13831: fi
13832: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13833: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13834: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13835: lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13836: else
13837: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13838: if test "x$ac_cv_func_dlopen" = xyes; then :
13839: lt_cv_dlopen=dlopen
13840: else
13841: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13842: $as_echo_n "checking for dlopen in -ldl... " >&6; }
13843: if ${ac_cv_lib_dl_dlopen+:} false; then :
13844: $as_echo_n "(cached) " >&6
13845: else
13846: ac_check_lib_save_LIBS=$LIBS
13847: LIBS="-ldl $LIBS"
13848: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13849: /* end confdefs.h. */
13850:
13851: /* Override any GCC internal prototype to avoid an error.
13852: Use char because int might match the return type of a GCC
13853: builtin and then its argument prototype would still apply. */
13854: #ifdef __cplusplus
13855: extern "C"
13856: #endif
13857: char dlopen ();
13858: int
13859: main ()
13860: {
13861: return dlopen ();
13862: ;
13863: return 0;
13864: }
13865: _ACEOF
13866: if ac_fn_c_try_link "$LINENO"; then :
13867: ac_cv_lib_dl_dlopen=yes
13868: else
13869: ac_cv_lib_dl_dlopen=no
13870: fi
13871: rm -f core conftest.err conftest.$ac_objext \
13872: conftest$ac_exeext conftest.$ac_ext
13873: LIBS=$ac_check_lib_save_LIBS
13874: fi
13875: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13876: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13877: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13878: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13879: else
13880: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13881: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13882: if ${ac_cv_lib_svld_dlopen+:} false; then :
13883: $as_echo_n "(cached) " >&6
13884: else
13885: ac_check_lib_save_LIBS=$LIBS
13886: LIBS="-lsvld $LIBS"
13887: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13888: /* end confdefs.h. */
13889:
13890: /* Override any GCC internal prototype to avoid an error.
13891: Use char because int might match the return type of a GCC
13892: builtin and then its argument prototype would still apply. */
13893: #ifdef __cplusplus
13894: extern "C"
13895: #endif
13896: char dlopen ();
13897: int
13898: main ()
13899: {
13900: return dlopen ();
13901: ;
13902: return 0;
13903: }
13904: _ACEOF
13905: if ac_fn_c_try_link "$LINENO"; then :
13906: ac_cv_lib_svld_dlopen=yes
13907: else
13908: ac_cv_lib_svld_dlopen=no
13909: fi
13910: rm -f core conftest.err conftest.$ac_objext \
13911: conftest$ac_exeext conftest.$ac_ext
13912: LIBS=$ac_check_lib_save_LIBS
13913: fi
13914: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13915: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13916: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13917: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13918: else
13919: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13920: $as_echo_n "checking for dld_link in -ldld... " >&6; }
13921: if ${ac_cv_lib_dld_dld_link+:} false; then :
13922: $as_echo_n "(cached) " >&6
13923: else
13924: ac_check_lib_save_LIBS=$LIBS
13925: LIBS="-ldld $LIBS"
13926: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13927: /* end confdefs.h. */
13928:
13929: /* Override any GCC internal prototype to avoid an error.
13930: Use char because int might match the return type of a GCC
13931: builtin and then its argument prototype would still apply. */
13932: #ifdef __cplusplus
13933: extern "C"
13934: #endif
13935: char dld_link ();
13936: int
13937: main ()
13938: {
13939: return dld_link ();
13940: ;
13941: return 0;
13942: }
13943: _ACEOF
13944: if ac_fn_c_try_link "$LINENO"; then :
13945: ac_cv_lib_dld_dld_link=yes
13946: else
13947: ac_cv_lib_dld_dld_link=no
13948: fi
13949: rm -f core conftest.err conftest.$ac_objext \
13950: conftest$ac_exeext conftest.$ac_ext
13951: LIBS=$ac_check_lib_save_LIBS
13952: fi
13953: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13954: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13955: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13956: lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13957: fi
13958:
13959:
13960: fi
13961:
13962:
13963: fi
13964:
13965:
13966: fi
13967:
13968:
13969: fi
13970:
13971:
13972: fi
13973:
13974: ;;
13975: esac
13976:
13977: if test no = "$lt_cv_dlopen"; then
13978: enable_dlopen=no
13979: else
13980: enable_dlopen=yes
13981: fi
13982:
13983: case $lt_cv_dlopen in
13984: dlopen)
13985: save_CPPFLAGS=$CPPFLAGS
13986: test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13987:
13988: save_LDFLAGS=$LDFLAGS
13989: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13990:
13991: save_LIBS=$LIBS
13992: LIBS="$lt_cv_dlopen_libs $LIBS"
13993:
13994: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13995: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13996: if ${lt_cv_dlopen_self+:} false; then :
13997: $as_echo_n "(cached) " >&6
13998: else
13999: if test yes = "$cross_compiling"; then :
14000: lt_cv_dlopen_self=cross
14001: else
14002: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14003: lt_status=$lt_dlunknown
14004: cat > conftest.$ac_ext <<_LT_EOF
14005: #line $LINENO "configure"
14006: #include "confdefs.h"
14007:
14008: #if HAVE_DLFCN_H
14009: #include <dlfcn.h>
14010: #endif
14011:
14012: #include <stdio.h>
14013:
14014: #ifdef RTLD_GLOBAL
14015: # define LT_DLGLOBAL RTLD_GLOBAL
14016: #else
14017: # ifdef DL_GLOBAL
14018: # define LT_DLGLOBAL DL_GLOBAL
14019: # else
14020: # define LT_DLGLOBAL 0
14021: # endif
14022: #endif
14023:
14024: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14025: find out it does not work in some platform. */
14026: #ifndef LT_DLLAZY_OR_NOW
14027: # ifdef RTLD_LAZY
14028: # define LT_DLLAZY_OR_NOW RTLD_LAZY
14029: # else
14030: # ifdef DL_LAZY
14031: # define LT_DLLAZY_OR_NOW DL_LAZY
14032: # else
14033: # ifdef RTLD_NOW
14034: # define LT_DLLAZY_OR_NOW RTLD_NOW
14035: # else
14036: # ifdef DL_NOW
14037: # define LT_DLLAZY_OR_NOW DL_NOW
14038: # else
14039: # define LT_DLLAZY_OR_NOW 0
14040: # endif
14041: # endif
14042: # endif
14043: # endif
14044: #endif
14045:
14046: /* When -fvisibility=hidden is used, assume the code has been annotated
14047: correspondingly for the symbols needed. */
14048: #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14049: int fnord () __attribute__((visibility("default")));
14050: #endif
14051:
14052: int fnord () { return 42; }
14053: int main ()
14054: {
14055: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14056: int status = $lt_dlunknown;
14057:
14058: if (self)
14059: {
14060: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14061: else
14062: {
14063: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14064: else puts (dlerror ());
14065: }
14066: /* dlclose (self); */
14067: }
14068: else
14069: puts (dlerror ());
14070:
14071: return status;
14072: }
14073: _LT_EOF
14074: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14075: (eval $ac_link) 2>&5
14076: ac_status=$?
14077: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14078: test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14079: (./conftest; exit; ) >&5 2>/dev/null
14080: lt_status=$?
14081: case x$lt_status in
14082: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14083: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14084: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14085: esac
14086: else :
14087: # compilation failed
14088: lt_cv_dlopen_self=no
14089: fi
14090: fi
14091: rm -fr conftest*
14092:
14093:
14094: fi
14095: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14096: $as_echo "$lt_cv_dlopen_self" >&6; }
14097:
14098: if test yes = "$lt_cv_dlopen_self"; then
14099: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14100: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14101: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14102: if ${lt_cv_dlopen_self_static+:} false; then :
14103: $as_echo_n "(cached) " >&6
14104: else
14105: if test yes = "$cross_compiling"; then :
14106: lt_cv_dlopen_self_static=cross
14107: else
14108: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14109: lt_status=$lt_dlunknown
14110: cat > conftest.$ac_ext <<_LT_EOF
14111: #line $LINENO "configure"
14112: #include "confdefs.h"
14113:
14114: #if HAVE_DLFCN_H
14115: #include <dlfcn.h>
14116: #endif
14117:
14118: #include <stdio.h>
14119:
14120: #ifdef RTLD_GLOBAL
14121: # define LT_DLGLOBAL RTLD_GLOBAL
14122: #else
14123: # ifdef DL_GLOBAL
14124: # define LT_DLGLOBAL DL_GLOBAL
14125: # else
14126: # define LT_DLGLOBAL 0
14127: # endif
14128: #endif
14129:
14130: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14131: find out it does not work in some platform. */
14132: #ifndef LT_DLLAZY_OR_NOW
14133: # ifdef RTLD_LAZY
14134: # define LT_DLLAZY_OR_NOW RTLD_LAZY
14135: # else
14136: # ifdef DL_LAZY
14137: # define LT_DLLAZY_OR_NOW DL_LAZY
14138: # else
14139: # ifdef RTLD_NOW
14140: # define LT_DLLAZY_OR_NOW RTLD_NOW
14141: # else
14142: # ifdef DL_NOW
14143: # define LT_DLLAZY_OR_NOW DL_NOW
14144: # else
14145: # define LT_DLLAZY_OR_NOW 0
14146: # endif
14147: # endif
14148: # endif
14149: # endif
14150: #endif
14151:
14152: /* When -fvisibility=hidden is used, assume the code has been annotated
14153: correspondingly for the symbols needed. */
14154: #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14155: int fnord () __attribute__((visibility("default")));
14156: #endif
14157:
14158: int fnord () { return 42; }
14159: int main ()
14160: {
14161: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14162: int status = $lt_dlunknown;
14163:
14164: if (self)
14165: {
14166: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14167: else
14168: {
14169: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14170: else puts (dlerror ());
14171: }
14172: /* dlclose (self); */
14173: }
14174: else
14175: puts (dlerror ());
14176:
14177: return status;
14178: }
14179: _LT_EOF
14180: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14181: (eval $ac_link) 2>&5
14182: ac_status=$?
14183: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14184: test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14185: (./conftest; exit; ) >&5 2>/dev/null
14186: lt_status=$?
14187: case x$lt_status in
14188: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14189: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14190: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14191: esac
14192: else :
14193: # compilation failed
14194: lt_cv_dlopen_self_static=no
14195: fi
14196: fi
14197: rm -fr conftest*
14198:
14199:
14200: fi
14201: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14202: $as_echo "$lt_cv_dlopen_self_static" >&6; }
14203: fi
14204:
14205: CPPFLAGS=$save_CPPFLAGS
14206: LDFLAGS=$save_LDFLAGS
14207: LIBS=$save_LIBS
14208: ;;
14209: esac
14210:
14211: case $lt_cv_dlopen_self in
14212: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14213: *) enable_dlopen_self=unknown ;;
14214: esac
14215:
14216: case $lt_cv_dlopen_self_static in
14217: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14218: *) enable_dlopen_self_static=unknown ;;
14219: esac
14220: fi
14221:
14222:
14223:
14224:
14225:
14226:
14227:
14228:
14229:
14230:
14231:
14232:
14233:
14234:
14235:
14236:
14237:
14238: striplib=
14239: old_striplib=
14240: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14241: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14242: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14243: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14244: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14245: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14246: $as_echo "yes" >&6; }
14247: else
14248: # FIXME - insert some real tests, host_os isn't really good enough
14249: case $host_os in
14250: darwin*)
14251: if test -n "$STRIP"; then
14252: striplib="$STRIP -x"
14253: old_striplib="$STRIP -S"
14254: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14255: $as_echo "yes" >&6; }
14256: else
14257: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14258: $as_echo "no" >&6; }
14259: fi
14260: ;;
14261: *)
14262: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14263: $as_echo "no" >&6; }
14264: ;;
14265: esac
14266: fi
14267:
14268:
14269:
14270:
14271:
14272:
14273:
14274:
14275:
14276:
14277:
14278:
14279: # Report what library types will actually be built
14280: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14281: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14282: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14283: $as_echo "$can_build_shared" >&6; }
14284:
14285: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14286: $as_echo_n "checking whether to build shared libraries... " >&6; }
14287: test no = "$can_build_shared" && enable_shared=no
14288:
14289: # On AIX, shared libraries and static libraries use the same namespace, and
14290: # are all built from PIC.
14291: case $host_os in
14292: aix3*)
14293: test yes = "$enable_shared" && enable_static=no
14294: if test -n "$RANLIB"; then
14295: archive_cmds="$archive_cmds~\$RANLIB \$lib"
14296: postinstall_cmds='$RANLIB $lib'
14297: fi
14298: ;;
14299:
14300: aix[4-9]*)
14301: if test ia64 != "$host_cpu"; then
14302: case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14303: yes,aix,yes) ;; # shared object as lib.so file only
14304: yes,svr4,*) ;; # shared object as lib.so archive member only
14305: yes,*) enable_static=no ;; # shared object in lib.a archive as well
14306: esac
14307: fi
14308: ;;
14309: esac
14310: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14311: $as_echo "$enable_shared" >&6; }
14312:
14313: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14314: $as_echo_n "checking whether to build static libraries... " >&6; }
14315: # Make sure either enable_shared or enable_static is yes.
14316: test yes = "$enable_shared" || enable_static=yes
14317: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14318: $as_echo "$enable_static" >&6; }
14319:
14320:
14321:
14322:
14323: fi
14324: ac_ext=c
14325: ac_cpp='$CPP $CPPFLAGS'
14326: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14327: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14328: ac_compiler_gnu=$ac_cv_c_compiler_gnu
14329:
14330: CC=$lt_save_CC
14331:
14332:
14333:
14334:
14335:
14336:
14337:
14338:
14339:
14340:
14341:
14342:
14343:
14344:
14345:
14346: ac_config_commands="$ac_config_commands libtool"
14347:
14348:
14349:
14350:
14351: # Only expand once:
14352:
14353:
14354:
14355: CPPFLAGS = -DLAC_SYSDIR='"$(datadir)"' @CPPFLAGS@
14356:
14357: ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/repl/Makefile examples/Makefile"
14358:
14359: ac_config_headers="$ac_config_headers config.h"
14360:
14361: cat >confcache <<\_ACEOF
14362: # This file is a shell script that caches the results of configure
14363: # tests run on this system so they can be shared between configure
14364: # scripts and configure runs, see configure's option --config-cache.
14365: # It is not useful on other systems. If it contains results you don't
14366: # want to keep, you may remove or edit it.
14367: #
14368: # config.status only pays attention to the cache file if you give it
14369: # the --recheck option to rerun configure.
14370: #
14371: # `ac_cv_env_foo' variables (set or unset) will be overridden when
14372: # loading this file, other *unset* `ac_cv_foo' will be assigned the
14373: # following values.
14374:
14375: _ACEOF
14376:
14377: # The following way of writing the cache mishandles newlines in values,
14378: # but we know of no workaround that is simple, portable, and efficient.
14379: # So, we kill variables containing newlines.
14380: # Ultrix sh set writes to stderr and can't be redirected directly,
14381: # and sets the high bit in the cache file unless we assign to the vars.
14382: (
14383: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14384: eval ac_val=\$$ac_var
14385: case $ac_val in #(
14386: *${as_nl}*)
14387: case $ac_var in #(
14388: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14389: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14390: esac
14391: case $ac_var in #(
14392: _ | IFS | as_nl) ;; #(
14393: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14394: *) { eval $ac_var=; unset $ac_var;} ;;
14395: esac ;;
14396: esac
14397: done
14398:
14399: (set) 2>&1 |
14400: case $as_nl`(ac_space=' '; set) 2>&1` in #(
14401: *${as_nl}ac_space=\ *)
14402: # `set' does not quote correctly, so add quotes: double-quote
14403: # substitution turns \\\\ into \\, and sed turns \\ into \.
14404: sed -n \
14405: "s/'/'\\\\''/g;
14406: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14407: ;; #(
14408: *)
14409: # `set' quotes correctly as required by POSIX, so do not add quotes.
14410: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14411: ;;
14412: esac |
14413: sort
14414: ) |
14415: sed '
14416: /^ac_cv_env_/b end
14417: t clear
14418: :clear
14419: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14420: t end
14421: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14422: :end' >>confcache
14423: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14424: if test -w "$cache_file"; then
14425: if test "x$cache_file" != "x/dev/null"; then
14426: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14427: $as_echo "$as_me: updating cache $cache_file" >&6;}
14428: if test ! -f "$cache_file" || test -h "$cache_file"; then
14429: cat confcache >"$cache_file"
14430: else
14431: case $cache_file in #(
14432: */* | ?:*)
14433: mv -f confcache "$cache_file"$$ &&
14434: mv -f "$cache_file"$$ "$cache_file" ;; #(
14435: *)
14436: mv -f confcache "$cache_file" ;;
14437: esac
14438: fi
14439: fi
14440: else
14441: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14442: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14443: fi
14444: fi
14445: rm -f confcache
14446:
14447: test "x$prefix" = xNONE && prefix=$ac_default_prefix
14448: # Let make expand exec_prefix.
14449: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14450:
14451: DEFS=-DHAVE_CONFIG_H
14452:
14453: ac_libobjs=
14454: ac_ltlibobjs=
14455: U=
14456: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14457: # 1. Remove the extension, and $U if already installed.
14458: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14459: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14460: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14461: # will be set to the directory where LIBOBJS objects are built.
14462: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14463: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14464: done
14465: LIBOBJS=$ac_libobjs
14466:
14467: LTLIBOBJS=$ac_ltlibobjs
14468:
14469:
14470: { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14471: $as_echo_n "checking that generated files are newer than configure... " >&6; }
14472: if test -n "$am_sleep_pid"; then
14473: # Hide warnings about reused PIDs.
14474: wait $am_sleep_pid 2>/dev/null
14475: fi
14476: { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14477: $as_echo "done" >&6; }
14478: if test -n "$EXEEXT"; then
14479: am__EXEEXT_TRUE=
14480: am__EXEEXT_FALSE='#'
14481: else
14482: am__EXEEXT_TRUE='#'
14483: am__EXEEXT_FALSE=
14484: fi
14485:
14486: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14487: as_fn_error $? "conditional \"AMDEP\" was never defined.
14488: Usually this means the macro was only invoked conditionally." "$LINENO" 5
14489: fi
14490: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14491: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14492: Usually this means the macro was only invoked conditionally." "$LINENO" 5
14493: fi
14494:
14495: : "${CONFIG_STATUS=./config.status}"
14496: ac_write_fail=0
14497: ac_clean_files_save=$ac_clean_files
14498: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14499: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14500: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14501: as_write_fail=0
14502: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14503: #! $SHELL
14504: # Generated by $as_me.
14505: # Run this file to recreate the current configuration.
14506: # Compiler output produced by configure, useful for debugging
14507: # configure, is in config.log if it exists.
14508:
14509: debug=false
14510: ac_cs_recheck=false
14511: ac_cs_silent=false
14512:
14513: SHELL=\${CONFIG_SHELL-$SHELL}
14514: export SHELL
14515: _ASEOF
14516: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14517: ## -------------------- ##
14518: ## M4sh Initialization. ##
14519: ## -------------------- ##
14520:
14521: # Be more Bourne compatible
14522: DUALCASE=1; export DUALCASE # for MKS sh
14523: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14524: emulate sh
14525: NULLCMD=:
14526: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14527: # is contrary to our usage. Disable this feature.
14528: alias -g '${1+"$@"}'='"$@"'
14529: setopt NO_GLOB_SUBST
14530: else
14531: case `(set -o) 2>/dev/null` in #(
14532: *posix*) :
14533: set -o posix ;; #(
14534: *) :
14535: ;;
14536: esac
14537: fi
14538:
14539:
14540: as_nl='
14541: '
14542: export as_nl
14543: # Printing a long string crashes Solaris 7 /usr/bin/printf.
14544: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14545: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14546: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14547: # Prefer a ksh shell builtin over an external printf program on Solaris,
14548: # but without wasting forks for bash or zsh.
14549: if test -z "$BASH_VERSION$ZSH_VERSION" \
14550: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14551: as_echo='print -r --'
14552: as_echo_n='print -rn --'
14553: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14554: as_echo='printf %s\n'
14555: as_echo_n='printf %s'
14556: else
14557: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14558: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14559: as_echo_n='/usr/ucb/echo -n'
14560: else
14561: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14562: as_echo_n_body='eval
14563: arg=$1;
14564: case $arg in #(
14565: *"$as_nl"*)
14566: expr "X$arg" : "X\\(.*\\)$as_nl";
14567: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14568: esac;
14569: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14570: '
14571: export as_echo_n_body
14572: as_echo_n='sh -c $as_echo_n_body as_echo'
14573: fi
14574: export as_echo_body
14575: as_echo='sh -c $as_echo_body as_echo'
14576: fi
14577:
14578: # The user is always right.
14579: if test "${PATH_SEPARATOR+set}" != set; then
14580: PATH_SEPARATOR=:
14581: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14582: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14583: PATH_SEPARATOR=';'
14584: }
14585: fi
14586:
14587:
14588: # IFS
14589: # We need space, tab and new line, in precisely that order. Quoting is
14590: # there to prevent editors from complaining about space-tab.
14591: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14592: # splitting by setting IFS to empty value.)
14593: IFS=" "" $as_nl"
14594:
14595: # Find who we are. Look in the path if we contain no directory separator.
14596: as_myself=
14597: case $0 in #((
14598: *[\\/]* ) as_myself=$0 ;;
14599: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14600: for as_dir in $PATH
14601: do
14602: IFS=$as_save_IFS
14603: test -z "$as_dir" && as_dir=.
14604: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14605: done
14606: IFS=$as_save_IFS
14607:
14608: ;;
14609: esac
14610: # We did not find ourselves, most probably we were run as `sh COMMAND'
14611: # in which case we are not to be found in the path.
14612: if test "x$as_myself" = x; then
14613: as_myself=$0
14614: fi
14615: if test ! -f "$as_myself"; then
14616: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14617: exit 1
14618: fi
14619:
14620: # Unset variables that we do not need and which cause bugs (e.g. in
14621: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14622: # suppresses any "Segmentation fault" message there. '((' could
14623: # trigger a bug in pdksh 5.2.14.
14624: for as_var in BASH_ENV ENV MAIL MAILPATH
14625: do eval test x\${$as_var+set} = xset \
14626: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14627: done
14628: PS1='$ '
14629: PS2='> '
14630: PS4='+ '
14631:
14632: # NLS nuisances.
14633: LC_ALL=C
14634: export LC_ALL
14635: LANGUAGE=C
14636: export LANGUAGE
14637:
14638: # CDPATH.
14639: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14640:
14641:
14642: # as_fn_error STATUS ERROR [LINENO LOG_FD]
14643: # ----------------------------------------
14644: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14645: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14646: # script with STATUS, using 1 if that was 0.
14647: as_fn_error ()
14648: {
14649: as_status=$1; test $as_status -eq 0 && as_status=1
14650: if test "$4"; then
14651: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14652: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14653: fi
14654: $as_echo "$as_me: error: $2" >&2
14655: as_fn_exit $as_status
14656: } # as_fn_error
14657:
14658:
14659: # as_fn_set_status STATUS
14660: # -----------------------
14661: # Set $? to STATUS, without forking.
14662: as_fn_set_status ()
14663: {
14664: return $1
14665: } # as_fn_set_status
14666:
14667: # as_fn_exit STATUS
14668: # -----------------
14669: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14670: as_fn_exit ()
14671: {
14672: set +e
14673: as_fn_set_status $1
14674: exit $1
14675: } # as_fn_exit
14676:
14677: # as_fn_unset VAR
14678: # ---------------
14679: # Portably unset VAR.
14680: as_fn_unset ()
14681: {
14682: { eval $1=; unset $1;}
14683: }
14684: as_unset=as_fn_unset
14685: # as_fn_append VAR VALUE
14686: # ----------------------
14687: # Append the text in VALUE to the end of the definition contained in VAR. Take
14688: # advantage of any shell optimizations that allow amortized linear growth over
14689: # repeated appends, instead of the typical quadratic growth present in naive
14690: # implementations.
14691: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14692: eval 'as_fn_append ()
14693: {
14694: eval $1+=\$2
14695: }'
14696: else
14697: as_fn_append ()
14698: {
14699: eval $1=\$$1\$2
14700: }
14701: fi # as_fn_append
14702:
14703: # as_fn_arith ARG...
14704: # ------------------
14705: # Perform arithmetic evaluation on the ARGs, and store the result in the
14706: # global $as_val. Take advantage of shells that can avoid forks. The arguments
14707: # must be portable across $(()) and expr.
14708: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14709: eval 'as_fn_arith ()
14710: {
14711: as_val=$(( $* ))
14712: }'
14713: else
14714: as_fn_arith ()
14715: {
14716: as_val=`expr "$@" || test $? -eq 1`
14717: }
14718: fi # as_fn_arith
14719:
14720:
14721: if expr a : '\(a\)' >/dev/null 2>&1 &&
14722: test "X`expr 00001 : '.*\(...\)'`" = X001; then
14723: as_expr=expr
14724: else
14725: as_expr=false
14726: fi
14727:
14728: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14729: as_basename=basename
14730: else
14731: as_basename=false
14732: fi
14733:
14734: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14735: as_dirname=dirname
14736: else
14737: as_dirname=false
14738: fi
14739:
14740: as_me=`$as_basename -- "$0" ||
14741: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14742: X"$0" : 'X\(//\)$' \| \
14743: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14744: $as_echo X/"$0" |
14745: sed '/^.*\/\([^/][^/]*\)\/*$/{
14746: s//\1/
14747: q
14748: }
14749: /^X\/\(\/\/\)$/{
14750: s//\1/
14751: q
14752: }
14753: /^X\/\(\/\).*/{
14754: s//\1/
14755: q
14756: }
14757: s/.*/./; q'`
14758:
14759: # Avoid depending upon Character Ranges.
14760: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14761: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14762: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14763: as_cr_digits='0123456789'
14764: as_cr_alnum=$as_cr_Letters$as_cr_digits
14765:
14766: ECHO_C= ECHO_N= ECHO_T=
14767: case `echo -n x` in #(((((
14768: -n*)
14769: case `echo 'xy\c'` in
14770: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14771: xy) ECHO_C='\c';;
14772: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14773: ECHO_T=' ';;
14774: esac;;
14775: *)
14776: ECHO_N='-n';;
14777: esac
14778:
14779: rm -f conf$$ conf$$.exe conf$$.file
14780: if test -d conf$$.dir; then
14781: rm -f conf$$.dir/conf$$.file
14782: else
14783: rm -f conf$$.dir
14784: mkdir conf$$.dir 2>/dev/null
14785: fi
14786: if (echo >conf$$.file) 2>/dev/null; then
14787: if ln -s conf$$.file conf$$ 2>/dev/null; then
14788: as_ln_s='ln -s'
14789: # ... but there are two gotchas:
14790: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14791: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14792: # In both cases, we have to default to `cp -pR'.
14793: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14794: as_ln_s='cp -pR'
14795: elif ln conf$$.file conf$$ 2>/dev/null; then
14796: as_ln_s=ln
14797: else
14798: as_ln_s='cp -pR'
14799: fi
14800: else
14801: as_ln_s='cp -pR'
14802: fi
14803: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14804: rmdir conf$$.dir 2>/dev/null
14805:
14806:
14807: # as_fn_mkdir_p
14808: # -------------
14809: # Create "$as_dir" as a directory, including parents if necessary.
14810: as_fn_mkdir_p ()
14811: {
14812:
14813: case $as_dir in #(
14814: -*) as_dir=./$as_dir;;
14815: esac
14816: test -d "$as_dir" || eval $as_mkdir_p || {
14817: as_dirs=
14818: while :; do
14819: case $as_dir in #(
14820: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14821: *) as_qdir=$as_dir;;
14822: esac
14823: as_dirs="'$as_qdir' $as_dirs"
14824: as_dir=`$as_dirname -- "$as_dir" ||
14825: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14826: X"$as_dir" : 'X\(//\)[^/]' \| \
14827: X"$as_dir" : 'X\(//\)$' \| \
14828: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14829: $as_echo X"$as_dir" |
14830: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14831: s//\1/
14832: q
14833: }
14834: /^X\(\/\/\)[^/].*/{
14835: s//\1/
14836: q
14837: }
14838: /^X\(\/\/\)$/{
14839: s//\1/
14840: q
14841: }
14842: /^X\(\/\).*/{
14843: s//\1/
14844: q
14845: }
14846: s/.*/./; q'`
14847: test -d "$as_dir" && break
14848: done
14849: test -z "$as_dirs" || eval "mkdir $as_dirs"
14850: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14851:
14852:
14853: } # as_fn_mkdir_p
14854: if mkdir -p . 2>/dev/null; then
14855: as_mkdir_p='mkdir -p "$as_dir"'
14856: else
14857: test -d ./-p && rmdir ./-p
14858: as_mkdir_p=false
14859: fi
14860:
14861:
14862: # as_fn_executable_p FILE
14863: # -----------------------
14864: # Test if FILE is an executable regular file.
14865: as_fn_executable_p ()
14866: {
14867: test -f "$1" && test -x "$1"
14868: } # as_fn_executable_p
14869: as_test_x='test -x'
14870: as_executable_p=as_fn_executable_p
14871:
14872: # Sed expression to map a string onto a valid CPP name.
14873: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14874:
14875: # Sed expression to map a string onto a valid variable name.
14876: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14877:
14878:
14879: exec 6>&1
14880: ## ----------------------------------- ##
14881: ## Main body of $CONFIG_STATUS script. ##
14882: ## ----------------------------------- ##
14883: _ASEOF
14884: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14885:
14886: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14887: # Save the log message, to keep $0 and so on meaningful, and to
14888: # report actual input values of CONFIG_FILES etc. instead of their
14889: # values after options handling.
14890: ac_log="
14891: This file was extended by lac $as_me 0.1.0, which was
14892: generated by GNU Autoconf 2.69. Invocation command line was
14893:
14894: CONFIG_FILES = $CONFIG_FILES
14895: CONFIG_HEADERS = $CONFIG_HEADERS
14896: CONFIG_LINKS = $CONFIG_LINKS
14897: CONFIG_COMMANDS = $CONFIG_COMMANDS
14898: $ $0 $@
14899:
14900: on `(hostname || uname -n) 2>/dev/null | sed 1q`
14901: "
14902:
14903: _ACEOF
14904:
14905: case $ac_config_files in *"
14906: "*) set x $ac_config_files; shift; ac_config_files=$*;;
14907: esac
14908:
14909: case $ac_config_headers in *"
14910: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14911: esac
14912:
14913:
14914: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14915: # Files that config.status was made for.
14916: config_files="$ac_config_files"
14917: config_headers="$ac_config_headers"
14918: config_commands="$ac_config_commands"
14919:
14920: _ACEOF
14921:
14922: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14923: ac_cs_usage="\
14924: \`$as_me' instantiates files and other configuration actions
14925: from templates according to the current configuration. Unless the files
14926: and actions are specified as TAGs, all are instantiated by default.
14927:
14928: Usage: $0 [OPTION]... [TAG]...
14929:
14930: -h, --help print this help, then exit
14931: -V, --version print version number and configuration settings, then exit
14932: --config print configuration, then exit
14933: -q, --quiet, --silent
14934: do not print progress messages
14935: -d, --debug don't remove temporary files
14936: --recheck update $as_me by reconfiguring in the same conditions
14937: --file=FILE[:TEMPLATE]
14938: instantiate the configuration file FILE
14939: --header=FILE[:TEMPLATE]
14940: instantiate the configuration header FILE
14941:
14942: Configuration files:
14943: $config_files
14944:
14945: Configuration headers:
14946: $config_headers
14947:
14948: Configuration commands:
14949: $config_commands
14950:
14951: Report bugs to <lac@tlbflush.org>."
14952:
14953: _ACEOF
14954: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14955: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14956: ac_cs_version="\\
14957: lac config.status 0.1.0
14958: configured by $0, generated by GNU Autoconf 2.69,
14959: with options \\"\$ac_cs_config\\"
14960:
14961: Copyright (C) 2012 Free Software Foundation, Inc.
14962: This config.status script is free software; the Free Software Foundation
14963: gives unlimited permission to copy, distribute and modify it."
14964:
14965: ac_pwd='$ac_pwd'
14966: srcdir='$srcdir'
14967: INSTALL='$INSTALL'
14968: MKDIR_P='$MKDIR_P'
14969: AWK='$AWK'
14970: test -n "\$AWK" || AWK=awk
14971: _ACEOF
14972:
14973: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14974: # The default lists apply if the user does not specify any file.
14975: ac_need_defaults=:
14976: while test $# != 0
14977: do
14978: case $1 in
14979: --*=?*)
14980: ac_option=`expr "X$1" : 'X\([^=]*\)='`
14981: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14982: ac_shift=:
14983: ;;
14984: --*=)
14985: ac_option=`expr "X$1" : 'X\([^=]*\)='`
14986: ac_optarg=
14987: ac_shift=:
14988: ;;
14989: *)
14990: ac_option=$1
14991: ac_optarg=$2
14992: ac_shift=shift
14993: ;;
14994: esac
14995:
14996: case $ac_option in
14997: # Handling of the options.
14998: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14999: ac_cs_recheck=: ;;
15000: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15001: $as_echo "$ac_cs_version"; exit ;;
15002: --config | --confi | --conf | --con | --co | --c )
15003: $as_echo "$ac_cs_config"; exit ;;
15004: --debug | --debu | --deb | --de | --d | -d )
15005: debug=: ;;
15006: --file | --fil | --fi | --f )
15007: $ac_shift
15008: case $ac_optarg in
15009: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15010: '') as_fn_error $? "missing file argument" ;;
15011: esac
15012: as_fn_append CONFIG_FILES " '$ac_optarg'"
15013: ac_need_defaults=false;;
15014: --header | --heade | --head | --hea )
15015: $ac_shift
15016: case $ac_optarg in
15017: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15018: esac
15019: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15020: ac_need_defaults=false;;
15021: --he | --h)
15022: # Conflict between --help and --header
15023: as_fn_error $? "ambiguous option: \`$1'
15024: Try \`$0 --help' for more information.";;
15025: --help | --hel | -h )
15026: $as_echo "$ac_cs_usage"; exit ;;
15027: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15028: | -silent | --silent | --silen | --sile | --sil | --si | --s)
15029: ac_cs_silent=: ;;
15030:
15031: # This is an error.
15032: -*) as_fn_error $? "unrecognized option: \`$1'
15033: Try \`$0 --help' for more information." ;;
15034:
15035: *) as_fn_append ac_config_targets " $1"
15036: ac_need_defaults=false ;;
15037:
15038: esac
15039: shift
15040: done
15041:
15042: ac_configure_extra_args=
15043:
15044: if $ac_cs_silent; then
15045: exec 6>/dev/null
15046: ac_configure_extra_args="$ac_configure_extra_args --silent"
15047: fi
15048:
15049: _ACEOF
15050: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15051: if \$ac_cs_recheck; then
15052: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15053: shift
15054: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15055: CONFIG_SHELL='$SHELL'
15056: export CONFIG_SHELL
15057: exec "\$@"
15058: fi
15059:
15060: _ACEOF
15061: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15062: exec 5>>config.log
15063: {
15064: echo
15065: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15066: ## Running $as_me. ##
15067: _ASBOX
15068: $as_echo "$ac_log"
15069: } >&5
15070:
15071: _ACEOF
15072: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15073: #
15074: # INIT-COMMANDS
15075: #
15076: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15077:
15078:
15079: # The HP-UX ksh and POSIX shell print the target directory to stdout
15080: # if CDPATH is set.
15081: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15082:
15083: sed_quote_subst='$sed_quote_subst'
15084: double_quote_subst='$double_quote_subst'
15085: delay_variable_subst='$delay_variable_subst'
15086: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15087: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15088: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15089: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15090: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15091: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15092: shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15093: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15094: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15095: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15096: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15097: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15098: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15099: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15100: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15101: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15102: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15103: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15104: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15105: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15106: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15107: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15108: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15109: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15110: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15111: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15112: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15113: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15114: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15115: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15116: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15117: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15118: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15119: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15120: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15121: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15122: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15123: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15124: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15125: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15126: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15127: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15128: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15129: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15130: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15131: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15132: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15133: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15134: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15135: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15136: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15137: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15138: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15139: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15140: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15141: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15142: lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15143: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15144: 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"`'
15145: lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15146: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15147: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15148: lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15149: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15150: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15151: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15152: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15153: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15154: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15155: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15156: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15157: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15158: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15159: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15160: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15161: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15162: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15163: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15164: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15165: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15166: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15167: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15168: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15169: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15170: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15171: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15172: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15173: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15174: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15175: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15176: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15177: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15178: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15179: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15180: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15181: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15182: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15183: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15184: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15185: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15186: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15187: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15188: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15189: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15190: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15191: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15192: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15193: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15194: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15195: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15196: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15197: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15198: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15199: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15200: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15201: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15202: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15203: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15204: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15205: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15206: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15207: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15208: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15209: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15210: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15211: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15212: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15213: configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15214: configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15215: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15216: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15217: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15218: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15219: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15220: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15221:
15222: LTCC='$LTCC'
15223: LTCFLAGS='$LTCFLAGS'
15224: compiler='$compiler_DEFAULT'
15225:
15226: # A function that is used when there is no print builtin or printf.
15227: func_fallback_echo ()
15228: {
15229: eval 'cat <<_LTECHO_EOF
15230: \$1
15231: _LTECHO_EOF'
15232: }
15233:
15234: # Quote evaled strings.
15235: for var in SHELL \
15236: ECHO \
15237: PATH_SEPARATOR \
15238: SED \
15239: GREP \
15240: EGREP \
15241: FGREP \
15242: LD \
15243: NM \
15244: LN_S \
15245: lt_SP2NL \
15246: lt_NL2SP \
15247: reload_flag \
15248: OBJDUMP \
15249: deplibs_check_method \
15250: file_magic_cmd \
15251: file_magic_glob \
15252: want_nocaseglob \
15253: DLLTOOL \
15254: sharedlib_from_linklib_cmd \
15255: AR \
15256: AR_FLAGS \
15257: archiver_list_spec \
15258: STRIP \
15259: RANLIB \
15260: CC \
15261: CFLAGS \
15262: compiler \
15263: lt_cv_sys_global_symbol_pipe \
15264: lt_cv_sys_global_symbol_to_cdecl \
15265: lt_cv_sys_global_symbol_to_import \
15266: lt_cv_sys_global_symbol_to_c_name_address \
15267: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15268: lt_cv_nm_interface \
15269: nm_file_list_spec \
15270: lt_cv_truncate_bin \
15271: lt_prog_compiler_no_builtin_flag \
15272: lt_prog_compiler_pic \
15273: lt_prog_compiler_wl \
15274: lt_prog_compiler_static \
15275: lt_cv_prog_compiler_c_o \
15276: need_locks \
15277: MANIFEST_TOOL \
15278: DSYMUTIL \
15279: NMEDIT \
15280: LIPO \
15281: OTOOL \
15282: OTOOL64 \
15283: shrext_cmds \
15284: export_dynamic_flag_spec \
15285: whole_archive_flag_spec \
15286: compiler_needs_object \
15287: with_gnu_ld \
15288: allow_undefined_flag \
15289: no_undefined_flag \
15290: hardcode_libdir_flag_spec \
15291: hardcode_libdir_separator \
15292: exclude_expsyms \
15293: include_expsyms \
15294: file_list_spec \
15295: variables_saved_for_relink \
15296: libname_spec \
15297: library_names_spec \
15298: soname_spec \
15299: install_override_mode \
15300: finish_eval \
15301: old_striplib \
15302: striplib; do
15303: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15304: *[\\\\\\\`\\"\\\$]*)
15305: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15306: ;;
15307: *)
15308: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15309: ;;
15310: esac
15311: done
15312:
15313: # Double-quote double-evaled strings.
15314: for var in reload_cmds \
15315: old_postinstall_cmds \
15316: old_postuninstall_cmds \
15317: old_archive_cmds \
15318: extract_expsyms_cmds \
15319: old_archive_from_new_cmds \
15320: old_archive_from_expsyms_cmds \
15321: archive_cmds \
15322: archive_expsym_cmds \
15323: module_cmds \
15324: module_expsym_cmds \
15325: export_symbols_cmds \
15326: prelink_cmds \
15327: postlink_cmds \
15328: postinstall_cmds \
15329: postuninstall_cmds \
15330: finish_cmds \
15331: sys_lib_search_path_spec \
15332: configure_time_dlsearch_path \
15333: configure_time_lt_sys_library_path; do
15334: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15335: *[\\\\\\\`\\"\\\$]*)
15336: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15337: ;;
15338: *)
15339: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15340: ;;
15341: esac
15342: done
15343:
15344: ac_aux_dir='$ac_aux_dir'
15345:
15346: # See if we are running on zsh, and set the options that allow our
15347: # commands through without removal of \ escapes INIT.
15348: if test -n "\${ZSH_VERSION+set}"; then
15349: setopt NO_GLOB_SUBST
15350: fi
15351:
15352:
15353: PACKAGE='$PACKAGE'
15354: VERSION='$VERSION'
15355: RM='$RM'
15356: ofile='$ofile'
15357:
15358:
15359:
15360:
15361: _ACEOF
15362:
15363: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15364:
15365: # Handling of arguments.
15366: for ac_config_target in $ac_config_targets
15367: do
15368: case $ac_config_target in
15369: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15370: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15371: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15372: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15373: "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
15374: "src/repl/Makefile") CONFIG_FILES="$CONFIG_FILES src/repl/Makefile" ;;
15375: "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
15376: "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15377:
15378: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15379: esac
15380: done
15381:
15382:
15383: # If the user did not use the arguments to specify the items to instantiate,
15384: # then the envvar interface is used. Set only those that are not.
15385: # We use the long form for the default assignment because of an extremely
15386: # bizarre bug on SunOS 4.1.3.
15387: if $ac_need_defaults; then
15388: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15389: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15390: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15391: fi
15392:
15393: # Have a temporary directory for convenience. Make it in the build tree
15394: # simply because there is no reason against having it here, and in addition,
15395: # creating and moving files from /tmp can sometimes cause problems.
15396: # Hook for its removal unless debugging.
15397: # Note that there is a small window in which the directory will not be cleaned:
15398: # after its creation but before its name has been assigned to `$tmp'.
15399: $debug ||
15400: {
15401: tmp= ac_tmp=
15402: trap 'exit_status=$?
15403: : "${ac_tmp:=$tmp}"
15404: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15405: ' 0
15406: trap 'as_fn_exit 1' 1 2 13 15
15407: }
15408: # Create a (secure) tmp directory for tmp files.
15409:
15410: {
15411: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15412: test -d "$tmp"
15413: } ||
15414: {
15415: tmp=./conf$$-$RANDOM
15416: (umask 077 && mkdir "$tmp")
15417: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15418: ac_tmp=$tmp
15419:
15420: # Set up the scripts for CONFIG_FILES section.
15421: # No need to generate them if there are no CONFIG_FILES.
15422: # This happens for instance with `./config.status config.h'.
15423: if test -n "$CONFIG_FILES"; then
15424:
15425:
15426: ac_cr=`echo X | tr X '\015'`
15427: # On cygwin, bash can eat \r inside `` if the user requested igncr.
15428: # But we know of no other shell where ac_cr would be empty at this
15429: # point, so we can use a bashism as a fallback.
15430: if test "x$ac_cr" = x; then
15431: eval ac_cr=\$\'\\r\'
15432: fi
15433: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15434: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15435: ac_cs_awk_cr='\\r'
15436: else
15437: ac_cs_awk_cr=$ac_cr
15438: fi
15439:
15440: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15441: _ACEOF
15442:
15443:
15444: {
15445: echo "cat >conf$$subs.awk <<_ACEOF" &&
15446: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15447: echo "_ACEOF"
15448: } >conf$$subs.sh ||
15449: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15450: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15451: ac_delim='%!_!# '
15452: for ac_last_try in false false false false false :; do
15453: . ./conf$$subs.sh ||
15454: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15455:
15456: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15457: if test $ac_delim_n = $ac_delim_num; then
15458: break
15459: elif $ac_last_try; then
15460: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15461: else
15462: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15463: fi
15464: done
15465: rm -f conf$$subs.sh
15466:
15467: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15468: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15469: _ACEOF
15470: sed -n '
15471: h
15472: s/^/S["/; s/!.*/"]=/
15473: p
15474: g
15475: s/^[^!]*!//
15476: :repl
15477: t repl
15478: s/'"$ac_delim"'$//
15479: t delim
15480: :nl
15481: h
15482: s/\(.\{148\}\)..*/\1/
15483: t more1
15484: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15485: p
15486: n
15487: b repl
15488: :more1
15489: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15490: p
15491: g
15492: s/.\{148\}//
15493: t nl
15494: :delim
15495: h
15496: s/\(.\{148\}\)..*/\1/
15497: t more2
15498: s/["\\]/\\&/g; s/^/"/; s/$/"/
15499: p
15500: b
15501: :more2
15502: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15503: p
15504: g
15505: s/.\{148\}//
15506: t delim
15507: ' <conf$$subs.awk | sed '
15508: /^[^""]/{
15509: N
15510: s/\n//
15511: }
15512: ' >>$CONFIG_STATUS || ac_write_fail=1
15513: rm -f conf$$subs.awk
15514: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15515: _ACAWK
15516: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15517: for (key in S) S_is_set[key] = 1
15518: FS = ""
15519:
15520: }
15521: {
15522: line = $ 0
15523: nfields = split(line, field, "@")
15524: substed = 0
15525: len = length(field[1])
15526: for (i = 2; i < nfields; i++) {
15527: key = field[i]
15528: keylen = length(key)
15529: if (S_is_set[key]) {
15530: value = S[key]
15531: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15532: len += length(value) + length(field[++i])
15533: substed = 1
15534: } else
15535: len += 1 + keylen
15536: }
15537:
15538: print line
15539: }
15540:
15541: _ACAWK
15542: _ACEOF
15543: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15544: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15545: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15546: else
15547: cat
15548: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15549: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15550: _ACEOF
15551:
15552: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15553: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15554: # trailing colons and then remove the whole line if VPATH becomes empty
15555: # (actually we leave an empty line to preserve line numbers).
15556: if test "x$srcdir" = x.; then
15557: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15558: h
15559: s///
15560: s/^/:/
15561: s/[ ]*$/:/
15562: s/:\$(srcdir):/:/g
15563: s/:\${srcdir}:/:/g
15564: s/:@srcdir@:/:/g
15565: s/^:*//
15566: s/:*$//
15567: x
15568: s/\(=[ ]*\).*/\1/
15569: G
15570: s/\n//
15571: s/^[^=]*=[ ]*$//
15572: }'
15573: fi
15574:
15575: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15576: fi # test -n "$CONFIG_FILES"
15577:
15578: # Set up the scripts for CONFIG_HEADERS section.
15579: # No need to generate them if there are no CONFIG_HEADERS.
15580: # This happens for instance with `./config.status Makefile'.
15581: if test -n "$CONFIG_HEADERS"; then
15582: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15583: BEGIN {
15584: _ACEOF
15585:
15586: # Transform confdefs.h into an awk script `defines.awk', embedded as
15587: # here-document in config.status, that substitutes the proper values into
15588: # config.h.in to produce config.h.
15589:
15590: # Create a delimiter string that does not exist in confdefs.h, to ease
15591: # handling of long lines.
15592: ac_delim='%!_!# '
15593: for ac_last_try in false false :; do
15594: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15595: if test -z "$ac_tt"; then
15596: break
15597: elif $ac_last_try; then
15598: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15599: else
15600: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15601: fi
15602: done
15603:
15604: # For the awk script, D is an array of macro values keyed by name,
15605: # likewise P contains macro parameters if any. Preserve backslash
15606: # newline sequences.
15607:
15608: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15609: sed -n '
15610: s/.\{148\}/&'"$ac_delim"'/g
15611: t rset
15612: :rset
15613: s/^[ ]*#[ ]*define[ ][ ]*/ /
15614: t def
15615: d
15616: :def
15617: s/\\$//
15618: t bsnl
15619: s/["\\]/\\&/g
15620: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15621: D["\1"]=" \3"/p
15622: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15623: d
15624: :bsnl
15625: s/["\\]/\\&/g
15626: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15627: D["\1"]=" \3\\\\\\n"\\/p
15628: t cont
15629: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15630: t cont
15631: d
15632: :cont
15633: n
15634: s/.\{148\}/&'"$ac_delim"'/g
15635: t clear
15636: :clear
15637: s/\\$//
15638: t bsnlc
15639: s/["\\]/\\&/g; s/^/"/; s/$/"/p
15640: d
15641: :bsnlc
15642: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15643: b cont
15644: ' <confdefs.h | sed '
15645: s/'"$ac_delim"'/"\\\
15646: "/g' >>$CONFIG_STATUS || ac_write_fail=1
15647:
15648: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15649: for (key in D) D_is_set[key] = 1
15650: FS = ""
15651: }
15652: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15653: line = \$ 0
15654: split(line, arg, " ")
15655: if (arg[1] == "#") {
15656: defundef = arg[2]
15657: mac1 = arg[3]
15658: } else {
15659: defundef = substr(arg[1], 2)
15660: mac1 = arg[2]
15661: }
15662: split(mac1, mac2, "(") #)
15663: macro = mac2[1]
15664: prefix = substr(line, 1, index(line, defundef) - 1)
15665: if (D_is_set[macro]) {
15666: # Preserve the white space surrounding the "#".
15667: print prefix "define", macro P[macro] D[macro]
15668: next
15669: } else {
15670: # Replace #undef with comments. This is necessary, for example,
15671: # in the case of _POSIX_SOURCE, which is predefined and required
15672: # on some systems where configure will not decide to define it.
15673: if (defundef == "undef") {
15674: print "/*", prefix defundef, macro, "*/"
15675: next
15676: }
15677: }
15678: }
15679: { print }
15680: _ACAWK
15681: _ACEOF
15682: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15683: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15684: fi # test -n "$CONFIG_HEADERS"
15685:
15686:
15687: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15688: shift
15689: for ac_tag
15690: do
15691: case $ac_tag in
15692: :[FHLC]) ac_mode=$ac_tag; continue;;
15693: esac
15694: case $ac_mode$ac_tag in
15695: :[FHL]*:*);;
15696: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15697: :[FH]-) ac_tag=-:-;;
15698: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15699: esac
15700: ac_save_IFS=$IFS
15701: IFS=:
15702: set x $ac_tag
15703: IFS=$ac_save_IFS
15704: shift
15705: ac_file=$1
15706: shift
15707:
15708: case $ac_mode in
15709: :L) ac_source=$1;;
15710: :[FH])
15711: ac_file_inputs=
15712: for ac_f
15713: do
15714: case $ac_f in
15715: -) ac_f="$ac_tmp/stdin";;
15716: *) # Look for the file first in the build tree, then in the source tree
15717: # (if the path is not absolute). The absolute path cannot be DOS-style,
15718: # because $ac_f cannot contain `:'.
15719: test -f "$ac_f" ||
15720: case $ac_f in
15721: [\\/$]*) false;;
15722: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15723: esac ||
15724: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15725: esac
15726: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15727: as_fn_append ac_file_inputs " '$ac_f'"
15728: done
15729:
15730: # Let's still pretend it is `configure' which instantiates (i.e., don't
15731: # use $as_me), people would be surprised to read:
15732: # /* config.h. Generated by config.status. */
15733: configure_input='Generated from '`
15734: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15735: `' by configure.'
15736: if test x"$ac_file" != x-; then
15737: configure_input="$ac_file. $configure_input"
15738: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15739: $as_echo "$as_me: creating $ac_file" >&6;}
15740: fi
15741: # Neutralize special characters interpreted by sed in replacement strings.
15742: case $configure_input in #(
15743: *\&* | *\|* | *\\* )
15744: ac_sed_conf_input=`$as_echo "$configure_input" |
15745: sed 's/[\\\\&|]/\\\\&/g'`;; #(
15746: *) ac_sed_conf_input=$configure_input;;
15747: esac
15748:
15749: case $ac_tag in
15750: *:-:* | *:-) cat >"$ac_tmp/stdin" \
15751: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15752: esac
15753: ;;
15754: esac
15755:
15756: ac_dir=`$as_dirname -- "$ac_file" ||
15757: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15758: X"$ac_file" : 'X\(//\)[^/]' \| \
15759: X"$ac_file" : 'X\(//\)$' \| \
15760: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15761: $as_echo X"$ac_file" |
15762: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15763: s//\1/
15764: q
15765: }
15766: /^X\(\/\/\)[^/].*/{
15767: s//\1/
15768: q
15769: }
15770: /^X\(\/\/\)$/{
15771: s//\1/
15772: q
15773: }
15774: /^X\(\/\).*/{
15775: s//\1/
15776: q
15777: }
15778: s/.*/./; q'`
15779: as_dir="$ac_dir"; as_fn_mkdir_p
15780: ac_builddir=.
15781:
15782: case "$ac_dir" in
15783: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15784: *)
15785: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15786: # A ".." for each directory in $ac_dir_suffix.
15787: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15788: case $ac_top_builddir_sub in
15789: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15790: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15791: esac ;;
15792: esac
15793: ac_abs_top_builddir=$ac_pwd
15794: ac_abs_builddir=$ac_pwd$ac_dir_suffix
15795: # for backward compatibility:
15796: ac_top_builddir=$ac_top_build_prefix
15797:
15798: case $srcdir in
15799: .) # We are building in place.
15800: ac_srcdir=.
15801: ac_top_srcdir=$ac_top_builddir_sub
15802: ac_abs_top_srcdir=$ac_pwd ;;
15803: [\\/]* | ?:[\\/]* ) # Absolute name.
15804: ac_srcdir=$srcdir$ac_dir_suffix;
15805: ac_top_srcdir=$srcdir
15806: ac_abs_top_srcdir=$srcdir ;;
15807: *) # Relative name.
15808: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15809: ac_top_srcdir=$ac_top_build_prefix$srcdir
15810: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15811: esac
15812: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15813:
15814:
15815: case $ac_mode in
15816: :F)
15817: #
15818: # CONFIG_FILE
15819: #
15820:
15821: case $INSTALL in
15822: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15823: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15824: esac
15825: ac_MKDIR_P=$MKDIR_P
15826: case $MKDIR_P in
15827: [\\/$]* | ?:[\\/]* ) ;;
15828: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15829: esac
15830: _ACEOF
15831:
15832: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15833: # If the template does not know about datarootdir, expand it.
15834: # FIXME: This hack should be removed a few years after 2.60.
15835: ac_datarootdir_hack=; ac_datarootdir_seen=
15836: ac_sed_dataroot='
15837: /datarootdir/ {
15838: p
15839: q
15840: }
15841: /@datadir@/p
15842: /@docdir@/p
15843: /@infodir@/p
15844: /@localedir@/p
15845: /@mandir@/p'
15846: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15847: *datarootdir*) ac_datarootdir_seen=yes;;
15848: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15849: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15850: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15851: _ACEOF
15852: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15853: ac_datarootdir_hack='
15854: s&@datadir@&$datadir&g
15855: s&@docdir@&$docdir&g
15856: s&@infodir@&$infodir&g
15857: s&@localedir@&$localedir&g
15858: s&@mandir@&$mandir&g
15859: s&\\\${datarootdir}&$datarootdir&g' ;;
15860: esac
15861: _ACEOF
15862:
15863: # Neutralize VPATH when `$srcdir' = `.'.
15864: # Shell code in configure.ac might set extrasub.
15865: # FIXME: do we really want to maintain this feature?
15866: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15867: ac_sed_extra="$ac_vpsub
15868: $extrasub
15869: _ACEOF
15870: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15871: :t
15872: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15873: s|@configure_input@|$ac_sed_conf_input|;t t
15874: s&@top_builddir@&$ac_top_builddir_sub&;t t
15875: s&@top_build_prefix@&$ac_top_build_prefix&;t t
15876: s&@srcdir@&$ac_srcdir&;t t
15877: s&@abs_srcdir@&$ac_abs_srcdir&;t t
15878: s&@top_srcdir@&$ac_top_srcdir&;t t
15879: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15880: s&@builddir@&$ac_builddir&;t t
15881: s&@abs_builddir@&$ac_abs_builddir&;t t
15882: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15883: s&@INSTALL@&$ac_INSTALL&;t t
15884: s&@MKDIR_P@&$ac_MKDIR_P&;t t
15885: $ac_datarootdir_hack
15886: "
15887: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15888: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15889:
15890: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15891: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15892: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15893: "$ac_tmp/out"`; test -z "$ac_out"; } &&
15894: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15895: which seems to be undefined. Please make sure it is defined" >&5
15896: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15897: which seems to be undefined. Please make sure it is defined" >&2;}
15898:
15899: rm -f "$ac_tmp/stdin"
15900: case $ac_file in
15901: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15902: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15903: esac \
15904: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15905: ;;
15906: :H)
15907: #
15908: # CONFIG_HEADER
15909: #
15910: if test x"$ac_file" != x-; then
15911: {
15912: $as_echo "/* $configure_input */" \
15913: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15914: } >"$ac_tmp/config.h" \
15915: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15916: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15917: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15918: $as_echo "$as_me: $ac_file is unchanged" >&6;}
15919: else
15920: rm -f "$ac_file"
15921: mv "$ac_tmp/config.h" "$ac_file" \
15922: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15923: fi
15924: else
15925: $as_echo "/* $configure_input */" \
15926: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15927: || as_fn_error $? "could not create -" "$LINENO" 5
15928: fi
15929: # Compute "$ac_file"'s index in $config_headers.
15930: _am_arg="$ac_file"
15931: _am_stamp_count=1
15932: for _am_header in $config_headers :; do
15933: case $_am_header in
15934: $_am_arg | $_am_arg:* )
15935: break ;;
15936: * )
15937: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15938: esac
15939: done
15940: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15941: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15942: X"$_am_arg" : 'X\(//\)[^/]' \| \
15943: X"$_am_arg" : 'X\(//\)$' \| \
15944: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15945: $as_echo X"$_am_arg" |
15946: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15947: s//\1/
15948: q
15949: }
15950: /^X\(\/\/\)[^/].*/{
15951: s//\1/
15952: q
15953: }
15954: /^X\(\/\/\)$/{
15955: s//\1/
15956: q
15957: }
15958: /^X\(\/\).*/{
15959: s//\1/
15960: q
15961: }
15962: s/.*/./; q'`/stamp-h$_am_stamp_count
15963: ;;
15964:
15965: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15966: $as_echo "$as_me: executing $ac_file commands" >&6;}
15967: ;;
15968: esac
15969:
15970:
15971: case $ac_file$ac_mode in
15972: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15973: # Older Autoconf quotes --file arguments for eval, but not when files
15974: # are listed without --file. Let's play safe and only enable the eval
15975: # if we detect the quoting.
15976: case $CONFIG_FILES in
15977: *\'*) eval set x "$CONFIG_FILES" ;;
15978: *) set x $CONFIG_FILES ;;
15979: esac
15980: shift
15981: for mf
15982: do
15983: # Strip MF so we end up with the name of the file.
15984: mf=`echo "$mf" | sed -e 's/:.*$//'`
15985: # Check whether this is an Automake generated Makefile or not.
15986: # We used to match only the files named 'Makefile.in', but
15987: # some people rename them; so instead we look at the file content.
15988: # Grep'ing the first line is not enough: some people post-process
15989: # each Makefile.in and add a new line on top of each file to say so.
15990: # Grep'ing the whole file is not good either: AIX grep has a line
15991: # limit of 2048, but all sed's we know have understand at least 4000.
15992: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15993: dirpart=`$as_dirname -- "$mf" ||
15994: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15995: X"$mf" : 'X\(//\)[^/]' \| \
15996: X"$mf" : 'X\(//\)$' \| \
15997: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15998: $as_echo X"$mf" |
15999: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16000: s//\1/
16001: q
16002: }
16003: /^X\(\/\/\)[^/].*/{
16004: s//\1/
16005: q
16006: }
16007: /^X\(\/\/\)$/{
16008: s//\1/
16009: q
16010: }
16011: /^X\(\/\).*/{
16012: s//\1/
16013: q
16014: }
16015: s/.*/./; q'`
16016: else
16017: continue
16018: fi
16019: # Extract the definition of DEPDIR, am__include, and am__quote
16020: # from the Makefile without running 'make'.
16021: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16022: test -z "$DEPDIR" && continue
16023: am__include=`sed -n 's/^am__include = //p' < "$mf"`
16024: test -z "$am__include" && continue
16025: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16026: # Find all dependency output files, they are included files with
16027: # $(DEPDIR) in their names. We invoke sed twice because it is the
16028: # simplest approach to changing $(DEPDIR) to its actual value in the
16029: # expansion.
16030: for file in `sed -n "
16031: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16032: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16033: # Make sure the directory exists.
16034: test -f "$dirpart/$file" && continue
16035: fdir=`$as_dirname -- "$file" ||
16036: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16037: X"$file" : 'X\(//\)[^/]' \| \
16038: X"$file" : 'X\(//\)$' \| \
16039: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16040: $as_echo X"$file" |
16041: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16042: s//\1/
16043: q
16044: }
16045: /^X\(\/\/\)[^/].*/{
16046: s//\1/
16047: q
16048: }
16049: /^X\(\/\/\)$/{
16050: s//\1/
16051: q
16052: }
16053: /^X\(\/\).*/{
16054: s//\1/
16055: q
16056: }
16057: s/.*/./; q'`
16058: as_dir=$dirpart/$fdir; as_fn_mkdir_p
16059: # echo "creating $dirpart/$file"
16060: echo '# dummy' > "$dirpart/$file"
16061: done
16062: done
16063: }
16064: ;;
16065: "libtool":C)
16066:
16067: # See if we are running on zsh, and set the options that allow our
16068: # commands through without removal of \ escapes.
16069: if test -n "${ZSH_VERSION+set}"; then
16070: setopt NO_GLOB_SUBST
16071: fi
16072:
16073: cfgfile=${ofile}T
16074: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16075: $RM "$cfgfile"
16076:
16077: cat <<_LT_EOF >> "$cfgfile"
16078: #! $SHELL
16079: # Generated automatically by $as_me ($PACKAGE) $VERSION
16080: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16081: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16082:
16083: # Provide generalized library-building support services.
16084: # Written by Gordon Matzigkeit, 1996
16085:
16086: # Copyright (C) 2014 Free Software Foundation, Inc.
16087: # This is free software; see the source for copying conditions. There is NO
16088: # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16089:
16090: # GNU Libtool is free software; you can redistribute it and/or modify
16091: # it under the terms of the GNU General Public License as published by
16092: # the Free Software Foundation; either version 2 of of the License, or
16093: # (at your option) any later version.
16094: #
16095: # As a special exception to the GNU General Public License, if you
16096: # distribute this file as part of a program or library that is built
16097: # using GNU Libtool, you may include this file under the same
16098: # distribution terms that you use for the rest of that program.
16099: #
16100: # GNU Libtool is distributed in the hope that it will be useful, but
16101: # WITHOUT ANY WARRANTY; without even the implied warranty of
16102: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16103: # GNU General Public License for more details.
16104: #
16105: # You should have received a copy of the GNU General Public License
16106: # along with this program. If not, see <http://www.gnu.org/licenses/>.
16107:
16108:
16109: # The names of the tagged configurations supported by this script.
16110: available_tags=''
16111:
16112: # Configured defaults for sys_lib_dlsearch_path munging.
16113: : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16114:
16115: # ### BEGIN LIBTOOL CONFIG
16116:
16117: # Which release of libtool.m4 was used?
16118: macro_version=$macro_version
16119: macro_revision=$macro_revision
16120:
16121: # Whether or not to build shared libraries.
16122: build_libtool_libs=$enable_shared
16123:
16124: # Whether or not to build static libraries.
16125: build_old_libs=$enable_static
16126:
16127: # What type of objects to build.
16128: pic_mode=$pic_mode
16129:
16130: # Whether or not to optimize for fast installation.
16131: fast_install=$enable_fast_install
16132:
16133: # Shared archive member basename,for filename based shared library versioning on AIX.
16134: shared_archive_member_spec=$shared_archive_member_spec
16135:
16136: # Shell to use when invoking shell scripts.
16137: SHELL=$lt_SHELL
16138:
16139: # An echo program that protects backslashes.
16140: ECHO=$lt_ECHO
16141:
16142: # The PATH separator for the build system.
16143: PATH_SEPARATOR=$lt_PATH_SEPARATOR
16144:
16145: # The host system.
16146: host_alias=$host_alias
16147: host=$host
16148: host_os=$host_os
16149:
16150: # The build system.
16151: build_alias=$build_alias
16152: build=$build
16153: build_os=$build_os
16154:
16155: # A sed program that does not truncate output.
16156: SED=$lt_SED
16157:
16158: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16159: Xsed="\$SED -e 1s/^X//"
16160:
16161: # A grep program that handles long lines.
16162: GREP=$lt_GREP
16163:
16164: # An ERE matcher.
16165: EGREP=$lt_EGREP
16166:
16167: # A literal string matcher.
16168: FGREP=$lt_FGREP
16169:
16170: # A BSD- or MS-compatible name lister.
16171: NM=$lt_NM
16172:
16173: # Whether we need soft or hard links.
16174: LN_S=$lt_LN_S
16175:
16176: # What is the maximum length of a command?
16177: max_cmd_len=$max_cmd_len
16178:
16179: # Object file suffix (normally "o").
16180: objext=$ac_objext
16181:
16182: # Executable file suffix (normally "").
16183: exeext=$exeext
16184:
16185: # whether the shell understands "unset".
16186: lt_unset=$lt_unset
16187:
16188: # turn spaces into newlines.
16189: SP2NL=$lt_lt_SP2NL
16190:
16191: # turn newlines into spaces.
16192: NL2SP=$lt_lt_NL2SP
16193:
16194: # convert \$build file names to \$host format.
16195: to_host_file_cmd=$lt_cv_to_host_file_cmd
16196:
16197: # convert \$build files to toolchain format.
16198: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16199:
16200: # An object symbol dumper.
16201: OBJDUMP=$lt_OBJDUMP
16202:
16203: # Method to check whether dependent libraries are shared objects.
16204: deplibs_check_method=$lt_deplibs_check_method
16205:
16206: # Command to use when deplibs_check_method = "file_magic".
16207: file_magic_cmd=$lt_file_magic_cmd
16208:
16209: # How to find potential files when deplibs_check_method = "file_magic".
16210: file_magic_glob=$lt_file_magic_glob
16211:
16212: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16213: want_nocaseglob=$lt_want_nocaseglob
16214:
16215: # DLL creation program.
16216: DLLTOOL=$lt_DLLTOOL
16217:
16218: # Command to associate shared and link libraries.
16219: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16220:
16221: # The archiver.
16222: AR=$lt_AR
16223:
16224: # Flags to create an archive.
16225: AR_FLAGS=$lt_AR_FLAGS
16226:
16227: # How to feed a file listing to the archiver.
16228: archiver_list_spec=$lt_archiver_list_spec
16229:
16230: # A symbol stripping program.
16231: STRIP=$lt_STRIP
16232:
16233: # Commands used to install an old-style archive.
16234: RANLIB=$lt_RANLIB
16235: old_postinstall_cmds=$lt_old_postinstall_cmds
16236: old_postuninstall_cmds=$lt_old_postuninstall_cmds
16237:
16238: # Whether to use a lock for old archive extraction.
16239: lock_old_archive_extraction=$lock_old_archive_extraction
16240:
16241: # A C compiler.
16242: LTCC=$lt_CC
16243:
16244: # LTCC compiler flags.
16245: LTCFLAGS=$lt_CFLAGS
16246:
16247: # Take the output of nm and produce a listing of raw symbols and C names.
16248: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16249:
16250: # Transform the output of nm in a proper C declaration.
16251: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16252:
16253: # Transform the output of nm into a list of symbols to manually relocate.
16254: global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16255:
16256: # Transform the output of nm in a C name address pair.
16257: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16258:
16259: # Transform the output of nm in a C name address pair when lib prefix is needed.
16260: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16261:
16262: # The name lister interface.
16263: nm_interface=$lt_lt_cv_nm_interface
16264:
16265: # Specify filename containing input files for \$NM.
16266: nm_file_list_spec=$lt_nm_file_list_spec
16267:
16268: # The root where to search for dependent libraries,and where our libraries should be installed.
16269: lt_sysroot=$lt_sysroot
16270:
16271: # Command to truncate a binary pipe.
16272: lt_truncate_bin=$lt_lt_cv_truncate_bin
16273:
16274: # The name of the directory that contains temporary libtool files.
16275: objdir=$objdir
16276:
16277: # Used to examine libraries when file_magic_cmd begins with "file".
16278: MAGIC_CMD=$MAGIC_CMD
16279:
16280: # Must we lock files when doing compilation?
16281: need_locks=$lt_need_locks
16282:
16283: # Manifest tool.
16284: MANIFEST_TOOL=$lt_MANIFEST_TOOL
16285:
16286: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16287: DSYMUTIL=$lt_DSYMUTIL
16288:
16289: # Tool to change global to local symbols on Mac OS X.
16290: NMEDIT=$lt_NMEDIT
16291:
16292: # Tool to manipulate fat objects and archives on Mac OS X.
16293: LIPO=$lt_LIPO
16294:
16295: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16296: OTOOL=$lt_OTOOL
16297:
16298: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16299: OTOOL64=$lt_OTOOL64
16300:
16301: # Old archive suffix (normally "a").
16302: libext=$libext
16303:
16304: # Shared library suffix (normally ".so").
16305: shrext_cmds=$lt_shrext_cmds
16306:
16307: # The commands to extract the exported symbol list from a shared archive.
16308: extract_expsyms_cmds=$lt_extract_expsyms_cmds
16309:
16310: # Variables whose values should be saved in libtool wrapper scripts and
16311: # restored at link time.
16312: variables_saved_for_relink=$lt_variables_saved_for_relink
16313:
16314: # Do we need the "lib" prefix for modules?
16315: need_lib_prefix=$need_lib_prefix
16316:
16317: # Do we need a version for libraries?
16318: need_version=$need_version
16319:
16320: # Library versioning type.
16321: version_type=$version_type
16322:
16323: # Shared library runtime path variable.
16324: runpath_var=$runpath_var
16325:
16326: # Shared library path variable.
16327: shlibpath_var=$shlibpath_var
16328:
16329: # Is shlibpath searched before the hard-coded library search path?
16330: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16331:
16332: # Format of library name prefix.
16333: libname_spec=$lt_libname_spec
16334:
16335: # List of archive names. First name is the real one, the rest are links.
16336: # The last name is the one that the linker finds with -lNAME
16337: library_names_spec=$lt_library_names_spec
16338:
16339: # The coded name of the library, if different from the real name.
16340: soname_spec=$lt_soname_spec
16341:
16342: # Permission mode override for installation of shared libraries.
16343: install_override_mode=$lt_install_override_mode
16344:
16345: # Command to use after installation of a shared archive.
16346: postinstall_cmds=$lt_postinstall_cmds
16347:
16348: # Command to use after uninstallation of a shared archive.
16349: postuninstall_cmds=$lt_postuninstall_cmds
16350:
16351: # Commands used to finish a libtool library installation in a directory.
16352: finish_cmds=$lt_finish_cmds
16353:
16354: # As "finish_cmds", except a single script fragment to be evaled but
16355: # not shown.
16356: finish_eval=$lt_finish_eval
16357:
16358: # Whether we should hardcode library paths into libraries.
16359: hardcode_into_libs=$hardcode_into_libs
16360:
16361: # Compile-time system search path for libraries.
16362: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16363:
16364: # Detected run-time system search path for libraries.
16365: sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16366:
16367: # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16368: configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16369:
16370: # Whether dlopen is supported.
16371: dlopen_support=$enable_dlopen
16372:
16373: # Whether dlopen of programs is supported.
16374: dlopen_self=$enable_dlopen_self
16375:
16376: # Whether dlopen of statically linked programs is supported.
16377: dlopen_self_static=$enable_dlopen_self_static
16378:
16379: # Commands to strip libraries.
16380: old_striplib=$lt_old_striplib
16381: striplib=$lt_striplib
16382:
16383:
16384: # The linker used to build libraries.
16385: LD=$lt_LD
16386:
16387: # How to create reloadable object files.
16388: reload_flag=$lt_reload_flag
16389: reload_cmds=$lt_reload_cmds
16390:
16391: # Commands used to build an old-style archive.
16392: old_archive_cmds=$lt_old_archive_cmds
16393:
16394: # A language specific compiler.
16395: CC=$lt_compiler
16396:
16397: # Is the compiler the GNU compiler?
16398: with_gcc=$GCC
16399:
16400: # Compiler flag to turn off builtin functions.
16401: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16402:
16403: # Additional compiler flags for building library objects.
16404: pic_flag=$lt_lt_prog_compiler_pic
16405:
16406: # How to pass a linker flag through the compiler.
16407: wl=$lt_lt_prog_compiler_wl
16408:
16409: # Compiler flag to prevent dynamic linking.
16410: link_static_flag=$lt_lt_prog_compiler_static
16411:
16412: # Does compiler simultaneously support -c and -o options?
16413: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16414:
16415: # Whether or not to add -lc for building shared libraries.
16416: build_libtool_need_lc=$archive_cmds_need_lc
16417:
16418: # Whether or not to disallow shared libs when runtime libs are static.
16419: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16420:
16421: # Compiler flag to allow reflexive dlopens.
16422: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16423:
16424: # Compiler flag to generate shared objects directly from archives.
16425: whole_archive_flag_spec=$lt_whole_archive_flag_spec
16426:
16427: # Whether the compiler copes with passing no objects directly.
16428: compiler_needs_object=$lt_compiler_needs_object
16429:
16430: # Create an old-style archive from a shared archive.
16431: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16432:
16433: # Create a temporary old-style archive to link instead of a shared archive.
16434: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16435:
16436: # Commands used to build a shared archive.
16437: archive_cmds=$lt_archive_cmds
16438: archive_expsym_cmds=$lt_archive_expsym_cmds
16439:
16440: # Commands used to build a loadable module if different from building
16441: # a shared archive.
16442: module_cmds=$lt_module_cmds
16443: module_expsym_cmds=$lt_module_expsym_cmds
16444:
16445: # Whether we are building with GNU ld or not.
16446: with_gnu_ld=$lt_with_gnu_ld
16447:
16448: # Flag that allows shared libraries with undefined symbols to be built.
16449: allow_undefined_flag=$lt_allow_undefined_flag
16450:
16451: # Flag that enforces no undefined symbols.
16452: no_undefined_flag=$lt_no_undefined_flag
16453:
16454: # Flag to hardcode \$libdir into a binary during linking.
16455: # This must work even if \$libdir does not exist
16456: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16457:
16458: # Whether we need a single "-rpath" flag with a separated argument.
16459: hardcode_libdir_separator=$lt_hardcode_libdir_separator
16460:
16461: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16462: # DIR into the resulting binary.
16463: hardcode_direct=$hardcode_direct
16464:
16465: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16466: # DIR into the resulting binary and the resulting library dependency is
16467: # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16468: # library is relocated.
16469: hardcode_direct_absolute=$hardcode_direct_absolute
16470:
16471: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16472: # into the resulting binary.
16473: hardcode_minus_L=$hardcode_minus_L
16474:
16475: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16476: # into the resulting binary.
16477: hardcode_shlibpath_var=$hardcode_shlibpath_var
16478:
16479: # Set to "yes" if building a shared library automatically hardcodes DIR
16480: # into the library and all subsequent libraries and executables linked
16481: # against it.
16482: hardcode_automatic=$hardcode_automatic
16483:
16484: # Set to yes if linker adds runtime paths of dependent libraries
16485: # to runtime path list.
16486: inherit_rpath=$inherit_rpath
16487:
16488: # Whether libtool must link a program against all its dependency libraries.
16489: link_all_deplibs=$link_all_deplibs
16490:
16491: # Set to "yes" if exported symbols are required.
16492: always_export_symbols=$always_export_symbols
16493:
16494: # The commands to list exported symbols.
16495: export_symbols_cmds=$lt_export_symbols_cmds
16496:
16497: # Symbols that should not be listed in the preloaded symbols.
16498: exclude_expsyms=$lt_exclude_expsyms
16499:
16500: # Symbols that must always be exported.
16501: include_expsyms=$lt_include_expsyms
16502:
16503: # Commands necessary for linking programs (against libraries) with templates.
16504: prelink_cmds=$lt_prelink_cmds
16505:
16506: # Commands necessary for finishing linking programs.
16507: postlink_cmds=$lt_postlink_cmds
16508:
16509: # Specify filename containing input files.
16510: file_list_spec=$lt_file_list_spec
16511:
16512: # How to hardcode a shared library path into an executable.
16513: hardcode_action=$hardcode_action
16514:
16515: # ### END LIBTOOL CONFIG
16516:
16517: _LT_EOF
16518:
16519: cat <<'_LT_EOF' >> "$cfgfile"
16520:
16521: # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16522:
16523: # func_munge_path_list VARIABLE PATH
16524: # -----------------------------------
16525: # VARIABLE is name of variable containing _space_ separated list of
16526: # directories to be munged by the contents of PATH, which is string
16527: # having a format:
16528: # "DIR[:DIR]:"
16529: # string "DIR[ DIR]" will be prepended to VARIABLE
16530: # ":DIR[:DIR]"
16531: # string "DIR[ DIR]" will be appended to VARIABLE
16532: # "DIRP[:DIRP]::[DIRA:]DIRA"
16533: # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16534: # "DIRA[ DIRA]" will be appended to VARIABLE
16535: # "DIR[:DIR]"
16536: # VARIABLE will be replaced by "DIR[ DIR]"
16537: func_munge_path_list ()
16538: {
16539: case x$2 in
16540: x)
16541: ;;
16542: *:)
16543: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16544: ;;
16545: x:*)
16546: eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16547: ;;
16548: *::*)
16549: eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16550: eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16551: ;;
16552: *)
16553: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16554: ;;
16555: esac
16556: }
16557:
16558:
16559: # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16560: func_cc_basename ()
16561: {
16562: for cc_temp in $*""; do
16563: case $cc_temp in
16564: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16565: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16566: \-*) ;;
16567: *) break;;
16568: esac
16569: done
16570: func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16571: }
16572:
16573:
16574: # ### END FUNCTIONS SHARED WITH CONFIGURE
16575:
16576: _LT_EOF
16577:
16578: case $host_os in
16579: aix3*)
16580: cat <<\_LT_EOF >> "$cfgfile"
16581: # AIX sometimes has problems with the GCC collect2 program. For some
16582: # reason, if we set the COLLECT_NAMES environment variable, the problems
16583: # vanish in a puff of smoke.
16584: if test set != "${COLLECT_NAMES+set}"; then
16585: COLLECT_NAMES=
16586: export COLLECT_NAMES
16587: fi
16588: _LT_EOF
16589: ;;
16590: esac
16591:
16592:
16593: ltmain=$ac_aux_dir/ltmain.sh
16594:
16595:
16596: # We use sed instead of cat because bash on DJGPP gets confused if
16597: # if finds mixed CR/LF and LF-only lines. Since sed operates in
16598: # text mode, it properly converts lines to CR/LF. This bash problem
16599: # is reportedly fixed, but why not run on old versions too?
16600: sed '$q' "$ltmain" >> "$cfgfile" \
16601: || (rm -f "$cfgfile"; exit 1)
16602:
16603: mv -f "$cfgfile" "$ofile" ||
16604: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16605: chmod +x "$ofile"
16606:
16607: ;;
16608:
16609: esac
16610: done # for ac_tag
16611:
16612:
16613: as_fn_exit 0
16614: _ACEOF
16615: ac_clean_files=$ac_clean_files_save
16616:
16617: test $ac_write_fail = 0 ||
16618: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16619:
16620:
16621: # configure is writing to config.log, and then calls config.status.
16622: # config.status does its own redirection, appending to config.log.
16623: # Unfortunately, on DOS this fails, as config.log is still kept open
16624: # by configure, so config.status won't be able to write to it; its
16625: # output is simply discarded. So we exec the FD to /dev/null,
16626: # effectively closing config.log, so it can be properly (re)opened and
16627: # appended to by config.status. When coming back to configure, we
16628: # need to make the FD available again.
16629: if test "$no_create" != yes; then
16630: ac_cs_success=:
16631: ac_config_status_args=
16632: test "$silent" = yes &&
16633: ac_config_status_args="$ac_config_status_args --quiet"
16634: exec 5>/dev/null
16635: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16636: exec 5>>config.log
16637: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16638: # would make configure fail if this is the last instruction.
16639: $ac_cs_success || as_fn_exit 1
16640: fi
16641: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16642: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16643: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16644: fi
16645:
Generated by git2html.