lac : 654b9f65fb7b98759c44988960abbb6d5ef2340a
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: SED
657: LIBTOOL
658: LIBOBJS
659: ALLOCA
660: LTLIBREADLINE
661: LIBREADLINE
662: LIBSIGSEGV_PREFIX
663: LTLIBSIGSEGV
664: LIBSIGSEGV
665: HAVE_LIBSIGSEGV
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: YFLAGS
681: YACC
682: EGREP
683: GREP
684: LEXLIB
685: LEX_OUTPUT_ROOT
686: LEX
687: am__fastdepCC_FALSE
688: am__fastdepCC_TRUE
689: CCDEPMODE
690: am__nodep
691: AMDEPBACKSLASH
692: AMDEP_FALSE
693: AMDEP_TRUE
694: am__quote
695: am__include
696: DEPDIR
697: OBJEXT
698: EXEEXT
699: ac_ct_CC
700: CPPFLAGS
701: LDFLAGS
702: CFLAGS
703: CC
704: AM_BACKSLASH
705: AM_DEFAULT_VERBOSITY
706: AM_DEFAULT_V
707: AM_V
708: am__untar
709: am__tar
710: AMTAR
711: am__leading_dot
712: SET_MAKE
713: AWK
714: mkdir_p
715: MKDIR_P
716: INSTALL_STRIP_PROGRAM
717: STRIP
718: install_sh
719: MAKEINFO
720: AUTOHEADER
721: AUTOMAKE
722: AUTOCONF
723: ACLOCAL
724: VERSION
725: PACKAGE
726: CYGPATH_W
727: am__isrc
728: INSTALL_DATA
729: INSTALL_SCRIPT
730: INSTALL_PROGRAM
731: target_alias
732: host_alias
733: build_alias
734: LIBS
735: ECHO_T
736: ECHO_N
737: ECHO_C
738: DEFS
739: mandir
740: localedir
741: libdir
742: psdir
743: pdfdir
744: dvidir
745: htmldir
746: infodir
747: docdir
748: oldincludedir
749: includedir
750: localstatedir
751: sharedstatedir
752: sysconfdir
753: datadir
754: datarootdir
755: libexecdir
756: sbindir
757: bindir
758: program_transform_name
759: prefix
760: exec_prefix
761: PACKAGE_URL
762: PACKAGE_BUGREPORT
763: PACKAGE_STRING
764: PACKAGE_VERSION
765: PACKAGE_TARNAME
766: PACKAGE_NAME
767: PATH_SEPARATOR
768: SHELL'
769: ac_subst_files=''
770: ac_user_opts='
771: enable_option_checking
772: enable_silent_rules
773: enable_dependency_tracking
774: with_gnu_ld
775: enable_rpath
776: with_libsigsegv_prefix
777: with_libreadline_prefix
778: enable_shared
779: enable_static
780: with_pic
781: enable_fast_install
782: with_aix_soname
783: with_sysroot
784: enable_libtool_lock
785: '
786: ac_precious_vars='build_alias
787: host_alias
788: target_alias
789: CC
790: CFLAGS
791: LDFLAGS
792: LIBS
793: CPPFLAGS
794: YACC
795: YFLAGS
796: PKG_CONFIG
797: PKG_CONFIG_PATH
798: PKG_CONFIG_LIBDIR
799: BDW_GC_CFLAGS
800: BDW_GC_LIBS
801: CPP
802: LT_SYS_LIBRARY_PATH'
803:
804:
805: # Initialize some variables set by options.
806: ac_init_help=
807: ac_init_version=false
808: ac_unrecognized_opts=
809: ac_unrecognized_sep=
810: # The variables have the same names as the options, with
811: # dashes changed to underlines.
812: cache_file=/dev/null
813: exec_prefix=NONE
814: no_create=
815: no_recursion=
816: prefix=NONE
817: program_prefix=NONE
818: program_suffix=NONE
819: program_transform_name=s,x,x,
820: silent=
821: site=
822: srcdir=
823: verbose=
824: x_includes=NONE
825: x_libraries=NONE
826:
827: # Installation directory options.
828: # These are left unexpanded so users can "make install exec_prefix=/foo"
829: # and all the variables that are supposed to be based on exec_prefix
830: # by default will actually change.
831: # Use braces instead of parens because sh, perl, etc. also accept them.
832: # (The list follows the same order as the GNU Coding Standards.)
833: bindir='${exec_prefix}/bin'
834: sbindir='${exec_prefix}/sbin'
835: libexecdir='${exec_prefix}/libexec'
836: datarootdir='${prefix}/share'
837: datadir='${datarootdir}'
838: sysconfdir='${prefix}/etc'
839: sharedstatedir='${prefix}/com'
840: localstatedir='${prefix}/var'
841: includedir='${prefix}/include'
842: oldincludedir='/usr/include'
843: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
844: infodir='${datarootdir}/info'
845: htmldir='${docdir}'
846: dvidir='${docdir}'
847: pdfdir='${docdir}'
848: psdir='${docdir}'
849: libdir='${exec_prefix}/lib'
850: localedir='${datarootdir}/locale'
851: mandir='${datarootdir}/man'
852:
853: ac_prev=
854: ac_dashdash=
855: for ac_option
856: do
857: # If the previous option needs an argument, assign it.
858: if test -n "$ac_prev"; then
859: eval $ac_prev=\$ac_option
860: ac_prev=
861: continue
862: fi
863:
864: case $ac_option in
865: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
866: *=) ac_optarg= ;;
867: *) ac_optarg=yes ;;
868: esac
869:
870: # Accept the important Cygnus configure options, so we can diagnose typos.
871:
872: case $ac_dashdash$ac_option in
873: --)
874: ac_dashdash=yes ;;
875:
876: -bindir | --bindir | --bindi | --bind | --bin | --bi)
877: ac_prev=bindir ;;
878: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
879: bindir=$ac_optarg ;;
880:
881: -build | --build | --buil | --bui | --bu)
882: ac_prev=build_alias ;;
883: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
884: build_alias=$ac_optarg ;;
885:
886: -cache-file | --cache-file | --cache-fil | --cache-fi \
887: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
888: ac_prev=cache_file ;;
889: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
890: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
891: cache_file=$ac_optarg ;;
892:
893: --config-cache | -C)
894: cache_file=config.cache ;;
895:
896: -datadir | --datadir | --datadi | --datad)
897: ac_prev=datadir ;;
898: -datadir=* | --datadir=* | --datadi=* | --datad=*)
899: datadir=$ac_optarg ;;
900:
901: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
902: | --dataroo | --dataro | --datar)
903: ac_prev=datarootdir ;;
904: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
905: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
906: datarootdir=$ac_optarg ;;
907:
908: -disable-* | --disable-*)
909: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
910: # Reject names that are not valid shell variable names.
911: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912: as_fn_error $? "invalid feature name: $ac_useropt"
913: ac_useropt_orig=$ac_useropt
914: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915: case $ac_user_opts in
916: *"
917: "enable_$ac_useropt"
918: "*) ;;
919: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
920: ac_unrecognized_sep=', ';;
921: esac
922: eval enable_$ac_useropt=no ;;
923:
924: -docdir | --docdir | --docdi | --doc | --do)
925: ac_prev=docdir ;;
926: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
927: docdir=$ac_optarg ;;
928:
929: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
930: ac_prev=dvidir ;;
931: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
932: dvidir=$ac_optarg ;;
933:
934: -enable-* | --enable-*)
935: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
936: # Reject names that are not valid shell variable names.
937: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938: as_fn_error $? "invalid feature name: $ac_useropt"
939: ac_useropt_orig=$ac_useropt
940: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941: case $ac_user_opts in
942: *"
943: "enable_$ac_useropt"
944: "*) ;;
945: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
946: ac_unrecognized_sep=', ';;
947: esac
948: eval enable_$ac_useropt=\$ac_optarg ;;
949:
950: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952: | --exec | --exe | --ex)
953: ac_prev=exec_prefix ;;
954: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956: | --exec=* | --exe=* | --ex=*)
957: exec_prefix=$ac_optarg ;;
958:
959: -gas | --gas | --ga | --g)
960: # Obsolete; use --with-gas.
961: with_gas=yes ;;
962:
963: -help | --help | --hel | --he | -h)
964: ac_init_help=long ;;
965: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966: ac_init_help=recursive ;;
967: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968: ac_init_help=short ;;
969:
970: -host | --host | --hos | --ho)
971: ac_prev=host_alias ;;
972: -host=* | --host=* | --hos=* | --ho=*)
973: host_alias=$ac_optarg ;;
974:
975: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976: ac_prev=htmldir ;;
977: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978: | --ht=*)
979: htmldir=$ac_optarg ;;
980:
981: -includedir | --includedir | --includedi | --included | --include \
982: | --includ | --inclu | --incl | --inc)
983: ac_prev=includedir ;;
984: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985: | --includ=* | --inclu=* | --incl=* | --inc=*)
986: includedir=$ac_optarg ;;
987:
988: -infodir | --infodir | --infodi | --infod | --info | --inf)
989: ac_prev=infodir ;;
990: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991: infodir=$ac_optarg ;;
992:
993: -libdir | --libdir | --libdi | --libd)
994: ac_prev=libdir ;;
995: -libdir=* | --libdir=* | --libdi=* | --libd=*)
996: libdir=$ac_optarg ;;
997:
998: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999: | --libexe | --libex | --libe)
1000: ac_prev=libexecdir ;;
1001: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002: | --libexe=* | --libex=* | --libe=*)
1003: libexecdir=$ac_optarg ;;
1004:
1005: -localedir | --localedir | --localedi | --localed | --locale)
1006: ac_prev=localedir ;;
1007: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008: localedir=$ac_optarg ;;
1009:
1010: -localstatedir | --localstatedir | --localstatedi | --localstated \
1011: | --localstate | --localstat | --localsta | --localst | --locals)
1012: ac_prev=localstatedir ;;
1013: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015: localstatedir=$ac_optarg ;;
1016:
1017: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018: ac_prev=mandir ;;
1019: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020: mandir=$ac_optarg ;;
1021:
1022: -nfp | --nfp | --nf)
1023: # Obsolete; use --without-fp.
1024: with_fp=no ;;
1025:
1026: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027: | --no-cr | --no-c | -n)
1028: no_create=yes ;;
1029:
1030: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032: no_recursion=yes ;;
1033:
1034: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036: | --oldin | --oldi | --old | --ol | --o)
1037: ac_prev=oldincludedir ;;
1038: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041: oldincludedir=$ac_optarg ;;
1042:
1043: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044: ac_prev=prefix ;;
1045: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046: prefix=$ac_optarg ;;
1047:
1048: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049: | --program-pre | --program-pr | --program-p)
1050: ac_prev=program_prefix ;;
1051: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053: program_prefix=$ac_optarg ;;
1054:
1055: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056: | --program-suf | --program-su | --program-s)
1057: ac_prev=program_suffix ;;
1058: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060: program_suffix=$ac_optarg ;;
1061:
1062: -program-transform-name | --program-transform-name \
1063: | --program-transform-nam | --program-transform-na \
1064: | --program-transform-n | --program-transform- \
1065: | --program-transform | --program-transfor \
1066: | --program-transfo | --program-transf \
1067: | --program-trans | --program-tran \
1068: | --progr-tra | --program-tr | --program-t)
1069: ac_prev=program_transform_name ;;
1070: -program-transform-name=* | --program-transform-name=* \
1071: | --program-transform-nam=* | --program-transform-na=* \
1072: | --program-transform-n=* | --program-transform-=* \
1073: | --program-transform=* | --program-transfor=* \
1074: | --program-transfo=* | --program-transf=* \
1075: | --program-trans=* | --program-tran=* \
1076: | --progr-tra=* | --program-tr=* | --program-t=*)
1077: program_transform_name=$ac_optarg ;;
1078:
1079: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080: ac_prev=pdfdir ;;
1081: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082: pdfdir=$ac_optarg ;;
1083:
1084: -psdir | --psdir | --psdi | --psd | --ps)
1085: ac_prev=psdir ;;
1086: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087: psdir=$ac_optarg ;;
1088:
1089: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090: | -silent | --silent | --silen | --sile | --sil)
1091: silent=yes ;;
1092:
1093: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094: ac_prev=sbindir ;;
1095: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096: | --sbi=* | --sb=*)
1097: sbindir=$ac_optarg ;;
1098:
1099: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101: | --sharedst | --shareds | --shared | --share | --shar \
1102: | --sha | --sh)
1103: ac_prev=sharedstatedir ;;
1104: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107: | --sha=* | --sh=*)
1108: sharedstatedir=$ac_optarg ;;
1109:
1110: -site | --site | --sit)
1111: ac_prev=site ;;
1112: -site=* | --site=* | --sit=*)
1113: site=$ac_optarg ;;
1114:
1115: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116: ac_prev=srcdir ;;
1117: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118: srcdir=$ac_optarg ;;
1119:
1120: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121: | --syscon | --sysco | --sysc | --sys | --sy)
1122: ac_prev=sysconfdir ;;
1123: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125: sysconfdir=$ac_optarg ;;
1126:
1127: -target | --target | --targe | --targ | --tar | --ta | --t)
1128: ac_prev=target_alias ;;
1129: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130: target_alias=$ac_optarg ;;
1131:
1132: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133: verbose=yes ;;
1134:
1135: -version | --version | --versio | --versi | --vers | -V)
1136: ac_init_version=: ;;
1137:
1138: -with-* | --with-*)
1139: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140: # Reject names that are not valid shell variable names.
1141: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142: as_fn_error $? "invalid package name: $ac_useropt"
1143: ac_useropt_orig=$ac_useropt
1144: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145: case $ac_user_opts in
1146: *"
1147: "with_$ac_useropt"
1148: "*) ;;
1149: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1150: ac_unrecognized_sep=', ';;
1151: esac
1152: eval with_$ac_useropt=\$ac_optarg ;;
1153:
1154: -without-* | --without-*)
1155: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1156: # Reject names that are not valid shell variable names.
1157: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158: as_fn_error $? "invalid package name: $ac_useropt"
1159: ac_useropt_orig=$ac_useropt
1160: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161: case $ac_user_opts in
1162: *"
1163: "with_$ac_useropt"
1164: "*) ;;
1165: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1166: ac_unrecognized_sep=', ';;
1167: esac
1168: eval with_$ac_useropt=no ;;
1169:
1170: --x)
1171: # Obsolete; use --with-x.
1172: with_x=yes ;;
1173:
1174: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175: | --x-incl | --x-inc | --x-in | --x-i)
1176: ac_prev=x_includes ;;
1177: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179: x_includes=$ac_optarg ;;
1180:
1181: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183: ac_prev=x_libraries ;;
1184: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186: x_libraries=$ac_optarg ;;
1187:
1188: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1189: Try \`$0 --help' for more information"
1190: ;;
1191:
1192: *=*)
1193: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1194: # Reject names that are not valid shell variable names.
1195: case $ac_envvar in #(
1196: '' | [0-9]* | *[!_$as_cr_alnum]* )
1197: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1198: esac
1199: eval $ac_envvar=\$ac_optarg
1200: export $ac_envvar ;;
1201:
1202: *)
1203: # FIXME: should be removed in autoconf 3.0.
1204: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1205: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1207: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1208: ;;
1209:
1210: esac
1211: done
1212:
1213: if test -n "$ac_prev"; then
1214: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1215: as_fn_error $? "missing argument to $ac_option"
1216: fi
1217:
1218: if test -n "$ac_unrecognized_opts"; then
1219: case $enable_option_checking in
1220: no) ;;
1221: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1222: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1223: esac
1224: fi
1225:
1226: # Check all directory arguments for consistency.
1227: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1228: datadir sysconfdir sharedstatedir localstatedir includedir \
1229: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1230: libdir localedir mandir
1231: do
1232: eval ac_val=\$$ac_var
1233: # Remove trailing slashes.
1234: case $ac_val in
1235: */ )
1236: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1237: eval $ac_var=\$ac_val;;
1238: esac
1239: # Be sure to have absolute directory names.
1240: case $ac_val in
1241: [\\/$]* | ?:[\\/]* ) continue;;
1242: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1243: esac
1244: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1245: done
1246:
1247: # There might be people who depend on the old broken behavior: `$host'
1248: # used to hold the argument of --host etc.
1249: # FIXME: To remove some day.
1250: build=$build_alias
1251: host=$host_alias
1252: target=$target_alias
1253:
1254: # FIXME: To remove some day.
1255: if test "x$host_alias" != x; then
1256: if test "x$build_alias" = x; then
1257: cross_compiling=maybe
1258: elif test "x$build_alias" != "x$host_alias"; then
1259: cross_compiling=yes
1260: fi
1261: fi
1262:
1263: ac_tool_prefix=
1264: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1265:
1266: test "$silent" = yes && exec 6>/dev/null
1267:
1268:
1269: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1270: ac_ls_di=`ls -di .` &&
1271: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1272: as_fn_error $? "working directory cannot be determined"
1273: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1274: as_fn_error $? "pwd does not report name of working directory"
1275:
1276:
1277: # Find the source files, if location was not specified.
1278: if test -z "$srcdir"; then
1279: ac_srcdir_defaulted=yes
1280: # Try the directory containing this script, then the parent directory.
1281: ac_confdir=`$as_dirname -- "$as_myself" ||
1282: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1283: X"$as_myself" : 'X\(//\)[^/]' \| \
1284: X"$as_myself" : 'X\(//\)$' \| \
1285: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1286: $as_echo X"$as_myself" |
1287: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1288: s//\1/
1289: q
1290: }
1291: /^X\(\/\/\)[^/].*/{
1292: s//\1/
1293: q
1294: }
1295: /^X\(\/\/\)$/{
1296: s//\1/
1297: q
1298: }
1299: /^X\(\/\).*/{
1300: s//\1/
1301: q
1302: }
1303: s/.*/./; q'`
1304: srcdir=$ac_confdir
1305: if test ! -r "$srcdir/$ac_unique_file"; then
1306: srcdir=..
1307: fi
1308: else
1309: ac_srcdir_defaulted=no
1310: fi
1311: if test ! -r "$srcdir/$ac_unique_file"; then
1312: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1313: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1314: fi
1315: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1316: ac_abs_confdir=`(
1317: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1318: pwd)`
1319: # When building in place, set srcdir=.
1320: if test "$ac_abs_confdir" = "$ac_pwd"; then
1321: srcdir=.
1322: fi
1323: # Remove unnecessary trailing slashes from srcdir.
1324: # Double slashes in file names in object file debugging info
1325: # mess up M-x gdb in Emacs.
1326: case $srcdir in
1327: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1328: esac
1329: for ac_var in $ac_precious_vars; do
1330: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1331: eval ac_env_${ac_var}_value=\$${ac_var}
1332: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1333: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1334: done
1335:
1336: #
1337: # Report the --help message.
1338: #
1339: if test "$ac_init_help" = "long"; then
1340: # Omit some internal or obsolete options to make the list less imposing.
1341: # This message is too long to be a string in the A/UX 3.1 sh.
1342: cat <<_ACEOF
1343: \`configure' configures lac 0.1.0 to adapt to many kinds of systems.
1344:
1345: Usage: $0 [OPTION]... [VAR=VALUE]...
1346:
1347: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1348: VAR=VALUE. See below for descriptions of some of the useful variables.
1349:
1350: Defaults for the options are specified in brackets.
1351:
1352: Configuration:
1353: -h, --help display this help and exit
1354: --help=short display options specific to this package
1355: --help=recursive display the short help of all the included packages
1356: -V, --version display version information and exit
1357: -q, --quiet, --silent do not print \`checking ...' messages
1358: --cache-file=FILE cache test results in FILE [disabled]
1359: -C, --config-cache alias for \`--cache-file=config.cache'
1360: -n, --no-create do not create output files
1361: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1362:
1363: Installation directories:
1364: --prefix=PREFIX install architecture-independent files in PREFIX
1365: [$ac_default_prefix]
1366: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1367: [PREFIX]
1368:
1369: By default, \`make install' will install all the files in
1370: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1371: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1372: for instance \`--prefix=\$HOME'.
1373:
1374: For better control, use the options below.
1375:
1376: Fine tuning of the installation directories:
1377: --bindir=DIR user executables [EPREFIX/bin]
1378: --sbindir=DIR system admin executables [EPREFIX/sbin]
1379: --libexecdir=DIR program executables [EPREFIX/libexec]
1380: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1381: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1382: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1383: --libdir=DIR object code libraries [EPREFIX/lib]
1384: --includedir=DIR C header files [PREFIX/include]
1385: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1386: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1387: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1388: --infodir=DIR info documentation [DATAROOTDIR/info]
1389: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1390: --mandir=DIR man documentation [DATAROOTDIR/man]
1391: --docdir=DIR documentation root [DATAROOTDIR/doc/lac]
1392: --htmldir=DIR html documentation [DOCDIR]
1393: --dvidir=DIR dvi documentation [DOCDIR]
1394: --pdfdir=DIR pdf documentation [DOCDIR]
1395: --psdir=DIR ps documentation [DOCDIR]
1396: _ACEOF
1397:
1398: cat <<\_ACEOF
1399:
1400: Program names:
1401: --program-prefix=PREFIX prepend PREFIX to installed program names
1402: --program-suffix=SUFFIX append SUFFIX to installed program names
1403: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1404:
1405: System types:
1406: --build=BUILD configure for building on BUILD [guessed]
1407: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1408: _ACEOF
1409: fi
1410:
1411: if test -n "$ac_init_help"; then
1412: case $ac_init_help in
1413: short | recursive ) echo "Configuration of lac 0.1.0:";;
1414: esac
1415: cat <<\_ACEOF
1416:
1417: Optional Features:
1418: --disable-option-checking ignore unrecognized --enable/--with options
1419: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1420: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1421: --enable-silent-rules less verbose build output (undo: "make V=1")
1422: --disable-silent-rules verbose build output (undo: "make V=0")
1423: --enable-dependency-tracking
1424: do not reject slow dependency extractors
1425: --disable-dependency-tracking
1426: speeds up one-time build
1427: --disable-rpath do not hardcode runtime library paths
1428: --enable-shared[=PKGS] build shared libraries [default=yes]
1429: --enable-static[=PKGS] build static libraries [default=yes]
1430: --enable-fast-install[=PKGS]
1431: optimize for fast installation [default=yes]
1432: --disable-libtool-lock avoid locking (might break parallel builds)
1433:
1434: Optional Packages:
1435: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1436: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1437: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1438: --with-libsigsegv-prefix[=DIR] search for libsigsegv in DIR/include and DIR/lib
1439: --without-libsigsegv-prefix don't search for libsigsegv in includedir and libdir
1440: --with-libreadline-prefix[=DIR] search for libreadline in DIR/include and DIR/lib
1441: --without-libreadline-prefix don't search for libreadline in includedir and libdir
1442: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1443: both]
1444: --with-aix-soname=aix|svr4|both
1445: shared library versioning (aka "SONAME") variant to
1446: provide on AIX, [default=aix].
1447: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1448: --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1449: compiler's sysroot if not specified).
1450:
1451: Some influential environment variables:
1452: CC C compiler command
1453: CFLAGS C compiler flags
1454: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1455: nonstandard directory <lib dir>
1456: LIBS libraries to pass to the linker, e.g. -l<library>
1457: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1458: you have headers in a nonstandard directory <include dir>
1459: YACC The `Yet Another Compiler Compiler' implementation to use.
1460: Defaults to the first program found out of: `bison -y', `byacc',
1461: `yacc'.
1462: YFLAGS The list of arguments that will be passed by default to $YACC.
1463: This script will default YFLAGS to the empty string to avoid a
1464: default value of `-d' given by some make applications.
1465: PKG_CONFIG path to pkg-config utility
1466: PKG_CONFIG_PATH
1467: directories to add to pkg-config's search path
1468: PKG_CONFIG_LIBDIR
1469: path overriding pkg-config's built-in search path
1470: BDW_GC_CFLAGS
1471: C compiler flags for BDW_GC, overriding pkg-config
1472: BDW_GC_LIBS linker flags for BDW_GC, overriding pkg-config
1473: CPP C preprocessor
1474: LT_SYS_LIBRARY_PATH
1475: User-defined run-time library search path.
1476:
1477: Use these variables to override the choices made by `configure' or to help
1478: it to find libraries and programs with nonstandard names/locations.
1479:
1480: Report bugs to <lac@tlbflush.org>.
1481: _ACEOF
1482: ac_status=$?
1483: fi
1484:
1485: if test "$ac_init_help" = "recursive"; then
1486: # If there are subdirs, report their specific --help.
1487: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1488: test -d "$ac_dir" ||
1489: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1490: continue
1491: ac_builddir=.
1492:
1493: case "$ac_dir" in
1494: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495: *)
1496: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1497: # A ".." for each directory in $ac_dir_suffix.
1498: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1499: case $ac_top_builddir_sub in
1500: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502: esac ;;
1503: esac
1504: ac_abs_top_builddir=$ac_pwd
1505: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1506: # for backward compatibility:
1507: ac_top_builddir=$ac_top_build_prefix
1508:
1509: case $srcdir in
1510: .) # We are building in place.
1511: ac_srcdir=.
1512: ac_top_srcdir=$ac_top_builddir_sub
1513: ac_abs_top_srcdir=$ac_pwd ;;
1514: [\\/]* | ?:[\\/]* ) # Absolute name.
1515: ac_srcdir=$srcdir$ac_dir_suffix;
1516: ac_top_srcdir=$srcdir
1517: ac_abs_top_srcdir=$srcdir ;;
1518: *) # Relative name.
1519: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1520: ac_top_srcdir=$ac_top_build_prefix$srcdir
1521: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1522: esac
1523: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524:
1525: cd "$ac_dir" || { ac_status=$?; continue; }
1526: # Check for guested configure.
1527: if test -f "$ac_srcdir/configure.gnu"; then
1528: echo &&
1529: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1530: elif test -f "$ac_srcdir/configure"; then
1531: echo &&
1532: $SHELL "$ac_srcdir/configure" --help=recursive
1533: else
1534: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1535: fi || ac_status=$?
1536: cd "$ac_pwd" || { ac_status=$?; break; }
1537: done
1538: fi
1539:
1540: test -n "$ac_init_help" && exit $ac_status
1541: if $ac_init_version; then
1542: cat <<\_ACEOF
1543: lac configure 0.1.0
1544: generated by GNU Autoconf 2.69
1545:
1546: Copyright (C) 2012 Free Software Foundation, Inc.
1547: This configure script is free software; the Free Software Foundation
1548: gives unlimited permission to copy, distribute and modify it.
1549: _ACEOF
1550: exit
1551: fi
1552:
1553: ## ------------------------ ##
1554: ## Autoconf initialization. ##
1555: ## ------------------------ ##
1556:
1557: # ac_fn_c_try_compile LINENO
1558: # --------------------------
1559: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1560: ac_fn_c_try_compile ()
1561: {
1562: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563: rm -f conftest.$ac_objext
1564: if { { ac_try="$ac_compile"
1565: case "(($ac_try" in
1566: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567: *) ac_try_echo=$ac_try;;
1568: esac
1569: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570: $as_echo "$ac_try_echo"; } >&5
1571: (eval "$ac_compile") 2>conftest.err
1572: ac_status=$?
1573: if test -s conftest.err; then
1574: grep -v '^ *+' conftest.err >conftest.er1
1575: cat conftest.er1 >&5
1576: mv -f conftest.er1 conftest.err
1577: fi
1578: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579: test $ac_status = 0; } && {
1580: test -z "$ac_c_werror_flag" ||
1581: test ! -s conftest.err
1582: } && test -s conftest.$ac_objext; then :
1583: ac_retval=0
1584: else
1585: $as_echo "$as_me: failed program was:" >&5
1586: sed 's/^/| /' conftest.$ac_ext >&5
1587:
1588: ac_retval=1
1589: fi
1590: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1591: as_fn_set_status $ac_retval
1592:
1593: } # ac_fn_c_try_compile
1594:
1595: # ac_fn_c_try_link LINENO
1596: # -----------------------
1597: # Try to link conftest.$ac_ext, and return whether this succeeded.
1598: ac_fn_c_try_link ()
1599: {
1600: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601: rm -f conftest.$ac_objext conftest$ac_exeext
1602: if { { ac_try="$ac_link"
1603: case "(($ac_try" in
1604: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605: *) ac_try_echo=$ac_try;;
1606: esac
1607: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608: $as_echo "$ac_try_echo"; } >&5
1609: (eval "$ac_link") 2>conftest.err
1610: ac_status=$?
1611: if test -s conftest.err; then
1612: grep -v '^ *+' conftest.err >conftest.er1
1613: cat conftest.er1 >&5
1614: mv -f conftest.er1 conftest.err
1615: fi
1616: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617: test $ac_status = 0; } && {
1618: test -z "$ac_c_werror_flag" ||
1619: test ! -s conftest.err
1620: } && test -s conftest$ac_exeext && {
1621: test "$cross_compiling" = yes ||
1622: test -x conftest$ac_exeext
1623: }; then :
1624: ac_retval=0
1625: else
1626: $as_echo "$as_me: failed program was:" >&5
1627: sed 's/^/| /' conftest.$ac_ext >&5
1628:
1629: ac_retval=1
1630: fi
1631: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1632: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1633: # interfere with the next link command; also delete a directory that is
1634: # left behind by Apple's compiler. We do this before executing the actions.
1635: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1636: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637: as_fn_set_status $ac_retval
1638:
1639: } # ac_fn_c_try_link
1640:
1641: # ac_fn_c_try_cpp LINENO
1642: # ----------------------
1643: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1644: ac_fn_c_try_cpp ()
1645: {
1646: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647: if { { ac_try="$ac_cpp conftest.$ac_ext"
1648: case "(($ac_try" in
1649: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650: *) ac_try_echo=$ac_try;;
1651: esac
1652: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653: $as_echo "$ac_try_echo"; } >&5
1654: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1655: ac_status=$?
1656: if test -s conftest.err; then
1657: grep -v '^ *+' conftest.err >conftest.er1
1658: cat conftest.er1 >&5
1659: mv -f conftest.er1 conftest.err
1660: fi
1661: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662: test $ac_status = 0; } > conftest.i && {
1663: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1664: test ! -s conftest.err
1665: }; then :
1666: ac_retval=0
1667: else
1668: $as_echo "$as_me: failed program was:" >&5
1669: sed 's/^/| /' conftest.$ac_ext >&5
1670:
1671: ac_retval=1
1672: fi
1673: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674: as_fn_set_status $ac_retval
1675:
1676: } # ac_fn_c_try_cpp
1677:
1678: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1679: # -------------------------------------------------------
1680: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1681: # the include files in INCLUDES and setting the cache variable VAR
1682: # accordingly.
1683: ac_fn_c_check_header_mongrel ()
1684: {
1685: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686: if eval \${$3+:} false; then :
1687: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1688: $as_echo_n "checking for $2... " >&6; }
1689: if eval \${$3+:} false; then :
1690: $as_echo_n "(cached) " >&6
1691: fi
1692: eval ac_res=\$$3
1693: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1694: $as_echo "$ac_res" >&6; }
1695: else
1696: # Is the header compilable?
1697: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1698: $as_echo_n "checking $2 usability... " >&6; }
1699: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700: /* end confdefs.h. */
1701: $4
1702: #include <$2>
1703: _ACEOF
1704: if ac_fn_c_try_compile "$LINENO"; then :
1705: ac_header_compiler=yes
1706: else
1707: ac_header_compiler=no
1708: fi
1709: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1710: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1711: $as_echo "$ac_header_compiler" >&6; }
1712:
1713: # Is the header present?
1714: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1715: $as_echo_n "checking $2 presence... " >&6; }
1716: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717: /* end confdefs.h. */
1718: #include <$2>
1719: _ACEOF
1720: if ac_fn_c_try_cpp "$LINENO"; then :
1721: ac_header_preproc=yes
1722: else
1723: ac_header_preproc=no
1724: fi
1725: rm -f conftest.err conftest.i conftest.$ac_ext
1726: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1727: $as_echo "$ac_header_preproc" >&6; }
1728:
1729: # So? What about this header?
1730: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1731: yes:no: )
1732: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1733: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1734: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1735: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1736: ;;
1737: no:yes:* )
1738: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1739: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1740: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1741: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1742: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1743: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1744: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1745: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1746: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1747: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1748: ( $as_echo "## ------------------------------- ##
1749: ## Report this to lac@tlbflush.org ##
1750: ## ------------------------------- ##"
1751: ) | sed "s/^/$as_me: WARNING: /" >&2
1752: ;;
1753: esac
1754: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755: $as_echo_n "checking for $2... " >&6; }
1756: if eval \${$3+:} false; then :
1757: $as_echo_n "(cached) " >&6
1758: else
1759: eval "$3=\$ac_header_compiler"
1760: fi
1761: eval ac_res=\$$3
1762: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763: $as_echo "$ac_res" >&6; }
1764: fi
1765: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766:
1767: } # ac_fn_c_check_header_mongrel
1768:
1769: # ac_fn_c_try_run LINENO
1770: # ----------------------
1771: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1772: # that executables *can* be run.
1773: ac_fn_c_try_run ()
1774: {
1775: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776: if { { ac_try="$ac_link"
1777: case "(($ac_try" in
1778: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779: *) ac_try_echo=$ac_try;;
1780: esac
1781: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782: $as_echo "$ac_try_echo"; } >&5
1783: (eval "$ac_link") 2>&5
1784: ac_status=$?
1785: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1787: { { case "(($ac_try" in
1788: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789: *) ac_try_echo=$ac_try;;
1790: esac
1791: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792: $as_echo "$ac_try_echo"; } >&5
1793: (eval "$ac_try") 2>&5
1794: ac_status=$?
1795: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796: test $ac_status = 0; }; }; then :
1797: ac_retval=0
1798: else
1799: $as_echo "$as_me: program exited with status $ac_status" >&5
1800: $as_echo "$as_me: failed program was:" >&5
1801: sed 's/^/| /' conftest.$ac_ext >&5
1802:
1803: ac_retval=$ac_status
1804: fi
1805: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1806: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807: as_fn_set_status $ac_retval
1808:
1809: } # ac_fn_c_try_run
1810:
1811: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1812: # -------------------------------------------------------
1813: # Tests whether HEADER exists and can be compiled using the include files in
1814: # INCLUDES, setting the cache variable VAR accordingly.
1815: ac_fn_c_check_header_compile ()
1816: {
1817: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819: $as_echo_n "checking for $2... " >&6; }
1820: if eval \${$3+:} false; then :
1821: $as_echo_n "(cached) " >&6
1822: else
1823: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824: /* end confdefs.h. */
1825: $4
1826: #include <$2>
1827: _ACEOF
1828: if ac_fn_c_try_compile "$LINENO"; then :
1829: eval "$3=yes"
1830: else
1831: eval "$3=no"
1832: fi
1833: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1834: fi
1835: eval ac_res=\$$3
1836: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837: $as_echo "$ac_res" >&6; }
1838: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839:
1840: } # ac_fn_c_check_header_compile
1841:
1842: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1843: # -------------------------------------------
1844: # Tests whether TYPE exists after having included INCLUDES, setting cache
1845: # variable VAR accordingly.
1846: ac_fn_c_check_type ()
1847: {
1848: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850: $as_echo_n "checking for $2... " >&6; }
1851: if eval \${$3+:} false; then :
1852: $as_echo_n "(cached) " >&6
1853: else
1854: eval "$3=no"
1855: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856: /* end confdefs.h. */
1857: $4
1858: int
1859: main ()
1860: {
1861: if (sizeof ($2))
1862: return 0;
1863: ;
1864: return 0;
1865: }
1866: _ACEOF
1867: if ac_fn_c_try_compile "$LINENO"; then :
1868: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869: /* end confdefs.h. */
1870: $4
1871: int
1872: main ()
1873: {
1874: if (sizeof (($2)))
1875: return 0;
1876: ;
1877: return 0;
1878: }
1879: _ACEOF
1880: if ac_fn_c_try_compile "$LINENO"; then :
1881:
1882: else
1883: eval "$3=yes"
1884: fi
1885: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1886: fi
1887: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1888: fi
1889: eval ac_res=\$$3
1890: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891: $as_echo "$ac_res" >&6; }
1892: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893:
1894: } # ac_fn_c_check_type
1895:
1896: # ac_fn_c_check_func LINENO FUNC VAR
1897: # ----------------------------------
1898: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1899: ac_fn_c_check_func ()
1900: {
1901: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1903: $as_echo_n "checking for $2... " >&6; }
1904: if eval \${$3+:} false; then :
1905: $as_echo_n "(cached) " >&6
1906: else
1907: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908: /* end confdefs.h. */
1909: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1910: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1911: #define $2 innocuous_$2
1912:
1913: /* System header to define __stub macros and hopefully few prototypes,
1914: which can conflict with char $2 (); below.
1915: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1916: <limits.h> exists even on freestanding compilers. */
1917:
1918: #ifdef __STDC__
1919: # include <limits.h>
1920: #else
1921: # include <assert.h>
1922: #endif
1923:
1924: #undef $2
1925:
1926: /* Override any GCC internal prototype to avoid an error.
1927: Use char because int might match the return type of a GCC
1928: builtin and then its argument prototype would still apply. */
1929: #ifdef __cplusplus
1930: extern "C"
1931: #endif
1932: char $2 ();
1933: /* The GNU C library defines this for functions which it implements
1934: to always fail with ENOSYS. Some functions are actually named
1935: something starting with __ and the normal name is an alias. */
1936: #if defined __stub_$2 || defined __stub___$2
1937: choke me
1938: #endif
1939:
1940: int
1941: main ()
1942: {
1943: return $2 ();
1944: ;
1945: return 0;
1946: }
1947: _ACEOF
1948: if ac_fn_c_try_link "$LINENO"; then :
1949: eval "$3=yes"
1950: else
1951: eval "$3=no"
1952: fi
1953: rm -f core conftest.err conftest.$ac_objext \
1954: conftest$ac_exeext conftest.$ac_ext
1955: fi
1956: eval ac_res=\$$3
1957: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958: $as_echo "$ac_res" >&6; }
1959: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1960:
1961: } # ac_fn_c_check_func
1962: cat >config.log <<_ACEOF
1963: This file contains any messages produced by compilers while
1964: running configure, to aid debugging if configure makes a mistake.
1965:
1966: It was created by lac $as_me 0.1.0, which was
1967: generated by GNU Autoconf 2.69. Invocation command line was
1968:
1969: $ $0 $@
1970:
1971: _ACEOF
1972: exec 5>>config.log
1973: {
1974: cat <<_ASUNAME
1975: ## --------- ##
1976: ## Platform. ##
1977: ## --------- ##
1978:
1979: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1980: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1981: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1982: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1983: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1984:
1985: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1986: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1987:
1988: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1989: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1990: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1991: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1992: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1993: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1994: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1995:
1996: _ASUNAME
1997:
1998: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999: for as_dir in $PATH
2000: do
2001: IFS=$as_save_IFS
2002: test -z "$as_dir" && as_dir=.
2003: $as_echo "PATH: $as_dir"
2004: done
2005: IFS=$as_save_IFS
2006:
2007: } >&5
2008:
2009: cat >&5 <<_ACEOF
2010:
2011:
2012: ## ----------- ##
2013: ## Core tests. ##
2014: ## ----------- ##
2015:
2016: _ACEOF
2017:
2018:
2019: # Keep a trace of the command line.
2020: # Strip out --no-create and --no-recursion so they do not pile up.
2021: # Strip out --silent because we don't want to record it for future runs.
2022: # Also quote any args containing shell meta-characters.
2023: # Make two passes to allow for proper duplicate-argument suppression.
2024: ac_configure_args=
2025: ac_configure_args0=
2026: ac_configure_args1=
2027: ac_must_keep_next=false
2028: for ac_pass in 1 2
2029: do
2030: for ac_arg
2031: do
2032: case $ac_arg in
2033: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2034: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2035: | -silent | --silent | --silen | --sile | --sil)
2036: continue ;;
2037: *\'*)
2038: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2039: esac
2040: case $ac_pass in
2041: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2042: 2)
2043: as_fn_append ac_configure_args1 " '$ac_arg'"
2044: if test $ac_must_keep_next = true; then
2045: ac_must_keep_next=false # Got value, back to normal.
2046: else
2047: case $ac_arg in
2048: *=* | --config-cache | -C | -disable-* | --disable-* \
2049: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2050: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2051: | -with-* | --with-* | -without-* | --without-* | --x)
2052: case "$ac_configure_args0 " in
2053: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2054: esac
2055: ;;
2056: -* ) ac_must_keep_next=true ;;
2057: esac
2058: fi
2059: as_fn_append ac_configure_args " '$ac_arg'"
2060: ;;
2061: esac
2062: done
2063: done
2064: { ac_configure_args0=; unset ac_configure_args0;}
2065: { ac_configure_args1=; unset ac_configure_args1;}
2066:
2067: # When interrupted or exit'd, cleanup temporary files, and complete
2068: # config.log. We remove comments because anyway the quotes in there
2069: # would cause problems or look ugly.
2070: # WARNING: Use '\'' to represent an apostrophe within the trap.
2071: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2072: trap 'exit_status=$?
2073: # Save into config.log some information that might help in debugging.
2074: {
2075: echo
2076:
2077: $as_echo "## ---------------- ##
2078: ## Cache variables. ##
2079: ## ---------------- ##"
2080: echo
2081: # The following way of writing the cache mishandles newlines in values,
2082: (
2083: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2084: eval ac_val=\$$ac_var
2085: case $ac_val in #(
2086: *${as_nl}*)
2087: case $ac_var in #(
2088: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2089: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2090: esac
2091: case $ac_var in #(
2092: _ | IFS | as_nl) ;; #(
2093: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2094: *) { eval $ac_var=; unset $ac_var;} ;;
2095: esac ;;
2096: esac
2097: done
2098: (set) 2>&1 |
2099: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2100: *${as_nl}ac_space=\ *)
2101: sed -n \
2102: "s/'\''/'\''\\\\'\'''\''/g;
2103: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2104: ;; #(
2105: *)
2106: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2107: ;;
2108: esac |
2109: sort
2110: )
2111: echo
2112:
2113: $as_echo "## ----------------- ##
2114: ## Output variables. ##
2115: ## ----------------- ##"
2116: echo
2117: for ac_var in $ac_subst_vars
2118: do
2119: eval ac_val=\$$ac_var
2120: case $ac_val in
2121: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2122: esac
2123: $as_echo "$ac_var='\''$ac_val'\''"
2124: done | sort
2125: echo
2126:
2127: if test -n "$ac_subst_files"; then
2128: $as_echo "## ------------------- ##
2129: ## File substitutions. ##
2130: ## ------------------- ##"
2131: echo
2132: for ac_var in $ac_subst_files
2133: do
2134: eval ac_val=\$$ac_var
2135: case $ac_val in
2136: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2137: esac
2138: $as_echo "$ac_var='\''$ac_val'\''"
2139: done | sort
2140: echo
2141: fi
2142:
2143: if test -s confdefs.h; then
2144: $as_echo "## ----------- ##
2145: ## confdefs.h. ##
2146: ## ----------- ##"
2147: echo
2148: cat confdefs.h
2149: echo
2150: fi
2151: test "$ac_signal" != 0 &&
2152: $as_echo "$as_me: caught signal $ac_signal"
2153: $as_echo "$as_me: exit $exit_status"
2154: } >&5
2155: rm -f core *.core core.conftest.* &&
2156: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2157: exit $exit_status
2158: ' 0
2159: for ac_signal in 1 2 13 15; do
2160: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2161: done
2162: ac_signal=0
2163:
2164: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2165: rm -f -r conftest* confdefs.h
2166:
2167: $as_echo "/* confdefs.h */" > confdefs.h
2168:
2169: # Predefined preprocessor variables.
2170:
2171: cat >>confdefs.h <<_ACEOF
2172: #define PACKAGE_NAME "$PACKAGE_NAME"
2173: _ACEOF
2174:
2175: cat >>confdefs.h <<_ACEOF
2176: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2177: _ACEOF
2178:
2179: cat >>confdefs.h <<_ACEOF
2180: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2181: _ACEOF
2182:
2183: cat >>confdefs.h <<_ACEOF
2184: #define PACKAGE_STRING "$PACKAGE_STRING"
2185: _ACEOF
2186:
2187: cat >>confdefs.h <<_ACEOF
2188: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2189: _ACEOF
2190:
2191: cat >>confdefs.h <<_ACEOF
2192: #define PACKAGE_URL "$PACKAGE_URL"
2193: _ACEOF
2194:
2195:
2196: # Let the site file select an alternate cache file if it wants to.
2197: # Prefer an explicitly selected file to automatically selected ones.
2198: ac_site_file1=NONE
2199: ac_site_file2=NONE
2200: if test -n "$CONFIG_SITE"; then
2201: # We do not want a PATH search for config.site.
2202: case $CONFIG_SITE in #((
2203: -*) ac_site_file1=./$CONFIG_SITE;;
2204: */*) ac_site_file1=$CONFIG_SITE;;
2205: *) ac_site_file1=./$CONFIG_SITE;;
2206: esac
2207: elif test "x$prefix" != xNONE; then
2208: ac_site_file1=$prefix/share/config.site
2209: ac_site_file2=$prefix/etc/config.site
2210: else
2211: ac_site_file1=$ac_default_prefix/share/config.site
2212: ac_site_file2=$ac_default_prefix/etc/config.site
2213: fi
2214: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2215: do
2216: test "x$ac_site_file" = xNONE && continue
2217: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2218: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2219: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2220: sed 's/^/| /' "$ac_site_file" >&5
2221: . "$ac_site_file" \
2222: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2223: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2224: as_fn_error $? "failed to load site script $ac_site_file
2225: See \`config.log' for more details" "$LINENO" 5; }
2226: fi
2227: done
2228:
2229: if test -r "$cache_file"; then
2230: # Some versions of bash will fail to source /dev/null (special files
2231: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2232: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2233: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2234: $as_echo "$as_me: loading cache $cache_file" >&6;}
2235: case $cache_file in
2236: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2237: *) . "./$cache_file";;
2238: esac
2239: fi
2240: else
2241: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2242: $as_echo "$as_me: creating cache $cache_file" >&6;}
2243: >$cache_file
2244: fi
2245:
2246: # Check that the precious variables saved in the cache have kept the same
2247: # value.
2248: ac_cache_corrupted=false
2249: for ac_var in $ac_precious_vars; do
2250: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2251: eval ac_new_set=\$ac_env_${ac_var}_set
2252: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2253: eval ac_new_val=\$ac_env_${ac_var}_value
2254: case $ac_old_set,$ac_new_set in
2255: set,)
2256: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2257: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2258: ac_cache_corrupted=: ;;
2259: ,set)
2260: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2261: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2262: ac_cache_corrupted=: ;;
2263: ,);;
2264: *)
2265: if test "x$ac_old_val" != "x$ac_new_val"; then
2266: # differences in whitespace do not lead to failure.
2267: ac_old_val_w=`echo x $ac_old_val`
2268: ac_new_val_w=`echo x $ac_new_val`
2269: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2270: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2271: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2272: ac_cache_corrupted=:
2273: else
2274: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2275: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2276: eval $ac_var=\$ac_old_val
2277: fi
2278: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2279: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2280: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2281: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2282: fi;;
2283: esac
2284: # Pass precious variables to config.status.
2285: if test "$ac_new_set" = set; then
2286: case $ac_new_val in
2287: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2288: *) ac_arg=$ac_var=$ac_new_val ;;
2289: esac
2290: case " $ac_configure_args " in
2291: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2292: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2293: esac
2294: fi
2295: done
2296: if $ac_cache_corrupted; then
2297: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2298: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2299: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2300: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2301: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2302: fi
2303: ## -------------------- ##
2304: ## Main body of script. ##
2305: ## -------------------- ##
2306:
2307: ac_ext=c
2308: ac_cpp='$CPP $CPPFLAGS'
2309: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2310: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2311: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2312:
2313:
2314: am__api_version='1.15'
2315:
2316: ac_aux_dir=
2317: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2318: if test -f "$ac_dir/install-sh"; then
2319: ac_aux_dir=$ac_dir
2320: ac_install_sh="$ac_aux_dir/install-sh -c"
2321: break
2322: elif test -f "$ac_dir/install.sh"; then
2323: ac_aux_dir=$ac_dir
2324: ac_install_sh="$ac_aux_dir/install.sh -c"
2325: break
2326: elif test -f "$ac_dir/shtool"; then
2327: ac_aux_dir=$ac_dir
2328: ac_install_sh="$ac_aux_dir/shtool install -c"
2329: break
2330: fi
2331: done
2332: if test -z "$ac_aux_dir"; then
2333: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2334: fi
2335:
2336: # These three variables are undocumented and unsupported,
2337: # and are intended to be withdrawn in a future Autoconf release.
2338: # They can cause serious problems if a builder's source tree is in a directory
2339: # whose full name contains unusual characters.
2340: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2341: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2342: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2343:
2344:
2345: # Find a good install program. We prefer a C program (faster),
2346: # so one script is as good as another. But avoid the broken or
2347: # incompatible versions:
2348: # SysV /etc/install, /usr/sbin/install
2349: # SunOS /usr/etc/install
2350: # IRIX /sbin/install
2351: # AIX /bin/install
2352: # AmigaOS /C/install, which installs bootblocks on floppy discs
2353: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2354: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2355: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2356: # OS/2's system install, which has a completely different semantic
2357: # ./install, which can be erroneously created by make from ./install.sh.
2358: # Reject install programs that cannot install multiple files.
2359: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2360: $as_echo_n "checking for a BSD-compatible install... " >&6; }
2361: if test -z "$INSTALL"; then
2362: if ${ac_cv_path_install+:} false; then :
2363: $as_echo_n "(cached) " >&6
2364: else
2365: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366: for as_dir in $PATH
2367: do
2368: IFS=$as_save_IFS
2369: test -z "$as_dir" && as_dir=.
2370: # Account for people who put trailing slashes in PATH elements.
2371: case $as_dir/ in #((
2372: ./ | .// | /[cC]/* | \
2373: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2374: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2375: /usr/ucb/* ) ;;
2376: *)
2377: # OSF1 and SCO ODT 3.0 have their own names for install.
2378: # Don't use installbsd from OSF since it installs stuff as root
2379: # by default.
2380: for ac_prog in ginstall scoinst install; do
2381: for ac_exec_ext in '' $ac_executable_extensions; do
2382: if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2383: if test $ac_prog = install &&
2384: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2385: # AIX install. It has an incompatible calling convention.
2386: :
2387: elif test $ac_prog = install &&
2388: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2389: # program-specific install script used by HP pwplus--don't use.
2390: :
2391: else
2392: rm -rf conftest.one conftest.two conftest.dir
2393: echo one > conftest.one
2394: echo two > conftest.two
2395: mkdir conftest.dir
2396: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2397: test -s conftest.one && test -s conftest.two &&
2398: test -s conftest.dir/conftest.one &&
2399: test -s conftest.dir/conftest.two
2400: then
2401: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2402: break 3
2403: fi
2404: fi
2405: fi
2406: done
2407: done
2408: ;;
2409: esac
2410:
2411: done
2412: IFS=$as_save_IFS
2413:
2414: rm -rf conftest.one conftest.two conftest.dir
2415:
2416: fi
2417: if test "${ac_cv_path_install+set}" = set; then
2418: INSTALL=$ac_cv_path_install
2419: else
2420: # As a last resort, use the slow shell script. Don't cache a
2421: # value for INSTALL within a source directory, because that will
2422: # break other packages using the cache if that directory is
2423: # removed, or if the value is a relative name.
2424: INSTALL=$ac_install_sh
2425: fi
2426: fi
2427: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2428: $as_echo "$INSTALL" >&6; }
2429:
2430: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2431: # It thinks the first close brace ends the variable substitution.
2432: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2433:
2434: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2435:
2436: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2437:
2438: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2439: $as_echo_n "checking whether build environment is sane... " >&6; }
2440: # Reject unsafe characters in $srcdir or the absolute working directory
2441: # name. Accept space and tab only in the latter.
2442: am_lf='
2443: '
2444: case `pwd` in
2445: *[\\\"\#\$\&\'\`$am_lf]*)
2446: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2447: esac
2448: case $srcdir in
2449: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2450: as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2451: esac
2452:
2453: # Do 'set' in a subshell so we don't clobber the current shell's
2454: # arguments. Must try -L first in case configure is actually a
2455: # symlink; some systems play weird games with the mod time of symlinks
2456: # (eg FreeBSD returns the mod time of the symlink's containing
2457: # directory).
2458: if (
2459: am_has_slept=no
2460: for am_try in 1 2; do
2461: echo "timestamp, slept: $am_has_slept" > conftest.file
2462: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2463: if test "$*" = "X"; then
2464: # -L didn't work.
2465: set X `ls -t "$srcdir/configure" conftest.file`
2466: fi
2467: if test "$*" != "X $srcdir/configure conftest.file" \
2468: && test "$*" != "X conftest.file $srcdir/configure"; then
2469:
2470: # If neither matched, then we have a broken ls. This can happen
2471: # if, for instance, CONFIG_SHELL is bash and it inherits a
2472: # broken ls alias from the environment. This has actually
2473: # happened. Such a system could not be considered "sane".
2474: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2475: alias in your environment" "$LINENO" 5
2476: fi
2477: if test "$2" = conftest.file || test $am_try -eq 2; then
2478: break
2479: fi
2480: # Just in case.
2481: sleep 1
2482: am_has_slept=yes
2483: done
2484: test "$2" = conftest.file
2485: )
2486: then
2487: # Ok.
2488: :
2489: else
2490: as_fn_error $? "newly created file is older than distributed files!
2491: Check your system clock" "$LINENO" 5
2492: fi
2493: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2494: $as_echo "yes" >&6; }
2495: # If we didn't sleep, we still need to ensure time stamps of config.status and
2496: # generated files are strictly newer.
2497: am_sleep_pid=
2498: if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2499: ( sleep 1 ) &
2500: am_sleep_pid=$!
2501: fi
2502:
2503: rm -f conftest.file
2504:
2505: test "$program_prefix" != NONE &&
2506: program_transform_name="s&^&$program_prefix&;$program_transform_name"
2507: # Use a double $ so make ignores it.
2508: test "$program_suffix" != NONE &&
2509: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2510: # Double any \ or $.
2511: # By default was `s,x,x', remove it if useless.
2512: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2513: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2514:
2515: # Expand $ac_aux_dir to an absolute path.
2516: am_aux_dir=`cd "$ac_aux_dir" && pwd`
2517:
2518: if test x"${MISSING+set}" != xset; then
2519: case $am_aux_dir in
2520: *\ * | *\ *)
2521: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2522: *)
2523: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2524: esac
2525: fi
2526: # Use eval to expand $SHELL
2527: if eval "$MISSING --is-lightweight"; then
2528: am_missing_run="$MISSING "
2529: else
2530: am_missing_run=
2531: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2532: $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2533: fi
2534:
2535: if test x"${install_sh+set}" != xset; then
2536: case $am_aux_dir in
2537: *\ * | *\ *)
2538: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2539: *)
2540: install_sh="\${SHELL} $am_aux_dir/install-sh"
2541: esac
2542: fi
2543:
2544: # Installed binaries are usually stripped using 'strip' when the user
2545: # run "make install-strip". However 'strip' might not be the right
2546: # tool to use in cross-compilation environments, therefore Automake
2547: # will honor the 'STRIP' environment variable to overrule this program.
2548: if test "$cross_compiling" != no; then
2549: if test -n "$ac_tool_prefix"; then
2550: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2551: set dummy ${ac_tool_prefix}strip; ac_word=$2
2552: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2553: $as_echo_n "checking for $ac_word... " >&6; }
2554: if ${ac_cv_prog_STRIP+:} false; then :
2555: $as_echo_n "(cached) " >&6
2556: else
2557: if test -n "$STRIP"; then
2558: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2559: else
2560: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561: for as_dir in $PATH
2562: do
2563: IFS=$as_save_IFS
2564: test -z "$as_dir" && as_dir=.
2565: for ac_exec_ext in '' $ac_executable_extensions; do
2566: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2567: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2568: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2569: break 2
2570: fi
2571: done
2572: done
2573: IFS=$as_save_IFS
2574:
2575: fi
2576: fi
2577: STRIP=$ac_cv_prog_STRIP
2578: if test -n "$STRIP"; then
2579: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2580: $as_echo "$STRIP" >&6; }
2581: else
2582: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2583: $as_echo "no" >&6; }
2584: fi
2585:
2586:
2587: fi
2588: if test -z "$ac_cv_prog_STRIP"; then
2589: ac_ct_STRIP=$STRIP
2590: # Extract the first word of "strip", so it can be a program name with args.
2591: set dummy strip; ac_word=$2
2592: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2593: $as_echo_n "checking for $ac_word... " >&6; }
2594: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2595: $as_echo_n "(cached) " >&6
2596: else
2597: if test -n "$ac_ct_STRIP"; then
2598: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2599: else
2600: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601: for as_dir in $PATH
2602: do
2603: IFS=$as_save_IFS
2604: test -z "$as_dir" && as_dir=.
2605: for ac_exec_ext in '' $ac_executable_extensions; do
2606: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2607: ac_cv_prog_ac_ct_STRIP="strip"
2608: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2609: break 2
2610: fi
2611: done
2612: done
2613: IFS=$as_save_IFS
2614:
2615: fi
2616: fi
2617: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2618: if test -n "$ac_ct_STRIP"; then
2619: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2620: $as_echo "$ac_ct_STRIP" >&6; }
2621: else
2622: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2623: $as_echo "no" >&6; }
2624: fi
2625:
2626: if test "x$ac_ct_STRIP" = x; then
2627: STRIP=":"
2628: else
2629: case $cross_compiling:$ac_tool_warned in
2630: yes:)
2631: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2632: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2633: ac_tool_warned=yes ;;
2634: esac
2635: STRIP=$ac_ct_STRIP
2636: fi
2637: else
2638: STRIP="$ac_cv_prog_STRIP"
2639: fi
2640:
2641: fi
2642: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2643:
2644: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2645: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2646: if test -z "$MKDIR_P"; then
2647: if ${ac_cv_path_mkdir+:} false; then :
2648: $as_echo_n "(cached) " >&6
2649: else
2650: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2652: do
2653: IFS=$as_save_IFS
2654: test -z "$as_dir" && as_dir=.
2655: for ac_prog in mkdir gmkdir; do
2656: for ac_exec_ext in '' $ac_executable_extensions; do
2657: as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2658: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2659: 'mkdir (GNU coreutils) '* | \
2660: 'mkdir (coreutils) '* | \
2661: 'mkdir (fileutils) '4.1*)
2662: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2663: break 3;;
2664: esac
2665: done
2666: done
2667: done
2668: IFS=$as_save_IFS
2669:
2670: fi
2671:
2672: test -d ./--version && rmdir ./--version
2673: if test "${ac_cv_path_mkdir+set}" = set; then
2674: MKDIR_P="$ac_cv_path_mkdir -p"
2675: else
2676: # As a last resort, use the slow shell script. Don't cache a
2677: # value for MKDIR_P within a source directory, because that will
2678: # break other packages using the cache if that directory is
2679: # removed, or if the value is a relative name.
2680: MKDIR_P="$ac_install_sh -d"
2681: fi
2682: fi
2683: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2684: $as_echo "$MKDIR_P" >&6; }
2685:
2686: for ac_prog in gawk mawk nawk awk
2687: do
2688: # Extract the first word of "$ac_prog", so it can be a program name with args.
2689: set dummy $ac_prog; ac_word=$2
2690: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2691: $as_echo_n "checking for $ac_word... " >&6; }
2692: if ${ac_cv_prog_AWK+:} false; then :
2693: $as_echo_n "(cached) " >&6
2694: else
2695: if test -n "$AWK"; then
2696: ac_cv_prog_AWK="$AWK" # Let the user override the test.
2697: else
2698: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699: for as_dir in $PATH
2700: do
2701: IFS=$as_save_IFS
2702: test -z "$as_dir" && as_dir=.
2703: for ac_exec_ext in '' $ac_executable_extensions; do
2704: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2705: ac_cv_prog_AWK="$ac_prog"
2706: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2707: break 2
2708: fi
2709: done
2710: done
2711: IFS=$as_save_IFS
2712:
2713: fi
2714: fi
2715: AWK=$ac_cv_prog_AWK
2716: if test -n "$AWK"; then
2717: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2718: $as_echo "$AWK" >&6; }
2719: else
2720: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2721: $as_echo "no" >&6; }
2722: fi
2723:
2724:
2725: test -n "$AWK" && break
2726: done
2727:
2728: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2729: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2730: set x ${MAKE-make}
2731: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2732: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2733: $as_echo_n "(cached) " >&6
2734: else
2735: cat >conftest.make <<\_ACEOF
2736: SHELL = /bin/sh
2737: all:
2738: @echo '@@@%%%=$(MAKE)=@@@%%%'
2739: _ACEOF
2740: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2741: case `${MAKE-make} -f conftest.make 2>/dev/null` in
2742: *@@@%%%=?*=@@@%%%*)
2743: eval ac_cv_prog_make_${ac_make}_set=yes;;
2744: *)
2745: eval ac_cv_prog_make_${ac_make}_set=no;;
2746: esac
2747: rm -f conftest.make
2748: fi
2749: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2750: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2751: $as_echo "yes" >&6; }
2752: SET_MAKE=
2753: else
2754: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2755: $as_echo "no" >&6; }
2756: SET_MAKE="MAKE=${MAKE-make}"
2757: fi
2758:
2759: rm -rf .tst 2>/dev/null
2760: mkdir .tst 2>/dev/null
2761: if test -d .tst; then
2762: am__leading_dot=.
2763: else
2764: am__leading_dot=_
2765: fi
2766: rmdir .tst 2>/dev/null
2767:
2768: # Check whether --enable-silent-rules was given.
2769: if test "${enable_silent_rules+set}" = set; then :
2770: enableval=$enable_silent_rules;
2771: fi
2772:
2773: case $enable_silent_rules in # (((
2774: yes) AM_DEFAULT_VERBOSITY=0;;
2775: no) AM_DEFAULT_VERBOSITY=1;;
2776: *) AM_DEFAULT_VERBOSITY=1;;
2777: esac
2778: am_make=${MAKE-make}
2779: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2780: $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2781: if ${am_cv_make_support_nested_variables+:} false; then :
2782: $as_echo_n "(cached) " >&6
2783: else
2784: if $as_echo 'TRUE=$(BAR$(V))
2785: BAR0=false
2786: BAR1=true
2787: V=1
2788: am__doit:
2789: @$(TRUE)
2790: .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2791: am_cv_make_support_nested_variables=yes
2792: else
2793: am_cv_make_support_nested_variables=no
2794: fi
2795: fi
2796: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2797: $as_echo "$am_cv_make_support_nested_variables" >&6; }
2798: if test $am_cv_make_support_nested_variables = yes; then
2799: AM_V='$(V)'
2800: AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2801: else
2802: AM_V=$AM_DEFAULT_VERBOSITY
2803: AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2804: fi
2805: AM_BACKSLASH='\'
2806:
2807: if test "`cd $srcdir && pwd`" != "`pwd`"; then
2808: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2809: # is not polluted with repeated "-I."
2810: am__isrc=' -I$(srcdir)'
2811: # test to see if srcdir already configured
2812: if test -f $srcdir/config.status; then
2813: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2814: fi
2815: fi
2816:
2817: # test whether we have cygpath
2818: if test -z "$CYGPATH_W"; then
2819: if (cygpath --version) >/dev/null 2>/dev/null; then
2820: CYGPATH_W='cygpath -w'
2821: else
2822: CYGPATH_W=echo
2823: fi
2824: fi
2825:
2826:
2827: # Define the identity of the package.
2828: PACKAGE='lac'
2829: VERSION='0.1.0'
2830:
2831:
2832: cat >>confdefs.h <<_ACEOF
2833: #define PACKAGE "$PACKAGE"
2834: _ACEOF
2835:
2836:
2837: cat >>confdefs.h <<_ACEOF
2838: #define VERSION "$VERSION"
2839: _ACEOF
2840:
2841: # Some tools Automake needs.
2842:
2843: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2844:
2845:
2846: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2847:
2848:
2849: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2850:
2851:
2852: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2853:
2854:
2855: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2856:
2857: # For better backward compatibility. To be removed once Automake 1.9.x
2858: # dies out for good. For more background, see:
2859: # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2860: # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2861: mkdir_p='$(MKDIR_P)'
2862:
2863: # We need awk for the "check" target (and possibly the TAP driver). The
2864: # system "awk" is bad on some platforms.
2865: # Always define AMTAR for backward compatibility. Yes, it's still used
2866: # in the wild :-( We should find a proper way to deprecate it ...
2867: AMTAR='$${TAR-tar}'
2868:
2869:
2870: # We'll loop over all known methods to create a tar archive until one works.
2871: _am_tools='gnutar pax cpio none'
2872:
2873: am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2874:
2875:
2876:
2877:
2878:
2879:
2880: # POSIX will say in a future version that running "rm -f" with no argument
2881: # is OK; and we want to be able to make that assumption in our Makefile
2882: # recipes. So use an aggressive probe to check that the usage we want is
2883: # actually supported "in the wild" to an acceptable degree.
2884: # See automake bug#10828.
2885: # To make any issue more visible, cause the running configure to be aborted
2886: # by default if the 'rm' program in use doesn't match our expectations; the
2887: # user can still override this though.
2888: if rm -f && rm -fr && rm -rf; then : OK; else
2889: cat >&2 <<'END'
2890: Oops!
2891:
2892: Your 'rm' program seems unable to run without file operands specified
2893: on the command line, even when the '-f' option is present. This is contrary
2894: to the behaviour of most rm programs out there, and not conforming with
2895: the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2896:
2897: Please tell bug-automake@gnu.org about your system, including the value
2898: of your $PATH and any error possibly output before this message. This
2899: can help us improve future automake versions.
2900:
2901: END
2902: if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2903: echo 'Configuration will proceed anyway, since you have set the' >&2
2904: echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2905: echo >&2
2906: else
2907: cat >&2 <<'END'
2908: Aborting the configuration process, to ensure you take notice of the issue.
2909:
2910: You can download and install GNU coreutils to get an 'rm' implementation
2911: that behaves properly: <http://www.gnu.org/software/coreutils/>.
2912:
2913: If you want to complete the configuration process using your problematic
2914: 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2915: to "yes", and re-run configure.
2916:
2917: END
2918: as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2919: fi
2920: fi
2921:
2922:
2923:
2924:
2925: # Checks for programs.
2926: ac_ext=c
2927: ac_cpp='$CPP $CPPFLAGS'
2928: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2929: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2930: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2931: if test -n "$ac_tool_prefix"; then
2932: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2933: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2934: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935: $as_echo_n "checking for $ac_word... " >&6; }
2936: if ${ac_cv_prog_CC+:} false; then :
2937: $as_echo_n "(cached) " >&6
2938: else
2939: if test -n "$CC"; then
2940: ac_cv_prog_CC="$CC" # Let the user override the test.
2941: else
2942: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943: for as_dir in $PATH
2944: do
2945: IFS=$as_save_IFS
2946: test -z "$as_dir" && as_dir=.
2947: for ac_exec_ext in '' $ac_executable_extensions; do
2948: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2949: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2950: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951: break 2
2952: fi
2953: done
2954: done
2955: IFS=$as_save_IFS
2956:
2957: fi
2958: fi
2959: CC=$ac_cv_prog_CC
2960: if test -n "$CC"; then
2961: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2962: $as_echo "$CC" >&6; }
2963: else
2964: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965: $as_echo "no" >&6; }
2966: fi
2967:
2968:
2969: fi
2970: if test -z "$ac_cv_prog_CC"; then
2971: ac_ct_CC=$CC
2972: # Extract the first word of "gcc", so it can be a program name with args.
2973: set dummy gcc; ac_word=$2
2974: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2975: $as_echo_n "checking for $ac_word... " >&6; }
2976: if ${ac_cv_prog_ac_ct_CC+:} false; then :
2977: $as_echo_n "(cached) " >&6
2978: else
2979: if test -n "$ac_ct_CC"; then
2980: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2981: else
2982: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983: for as_dir in $PATH
2984: do
2985: IFS=$as_save_IFS
2986: test -z "$as_dir" && as_dir=.
2987: for ac_exec_ext in '' $ac_executable_extensions; do
2988: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2989: ac_cv_prog_ac_ct_CC="gcc"
2990: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2991: break 2
2992: fi
2993: done
2994: done
2995: IFS=$as_save_IFS
2996:
2997: fi
2998: fi
2999: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3000: if test -n "$ac_ct_CC"; then
3001: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3002: $as_echo "$ac_ct_CC" >&6; }
3003: else
3004: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3005: $as_echo "no" >&6; }
3006: fi
3007:
3008: if test "x$ac_ct_CC" = x; then
3009: CC=""
3010: else
3011: case $cross_compiling:$ac_tool_warned in
3012: yes:)
3013: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3014: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3015: ac_tool_warned=yes ;;
3016: esac
3017: CC=$ac_ct_CC
3018: fi
3019: else
3020: CC="$ac_cv_prog_CC"
3021: fi
3022:
3023: if test -z "$CC"; then
3024: if test -n "$ac_tool_prefix"; then
3025: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3026: set dummy ${ac_tool_prefix}cc; ac_word=$2
3027: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028: $as_echo_n "checking for $ac_word... " >&6; }
3029: if ${ac_cv_prog_CC+:} false; then :
3030: $as_echo_n "(cached) " >&6
3031: else
3032: if test -n "$CC"; then
3033: ac_cv_prog_CC="$CC" # Let the user override the test.
3034: else
3035: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036: for as_dir in $PATH
3037: do
3038: IFS=$as_save_IFS
3039: test -z "$as_dir" && as_dir=.
3040: for ac_exec_ext in '' $ac_executable_extensions; do
3041: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3042: ac_cv_prog_CC="${ac_tool_prefix}cc"
3043: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044: break 2
3045: fi
3046: done
3047: done
3048: IFS=$as_save_IFS
3049:
3050: fi
3051: fi
3052: CC=$ac_cv_prog_CC
3053: if test -n "$CC"; then
3054: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3055: $as_echo "$CC" >&6; }
3056: else
3057: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058: $as_echo "no" >&6; }
3059: fi
3060:
3061:
3062: fi
3063: fi
3064: if test -z "$CC"; then
3065: # Extract the first word of "cc", so it can be a program name with args.
3066: set dummy cc; ac_word=$2
3067: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3068: $as_echo_n "checking for $ac_word... " >&6; }
3069: if ${ac_cv_prog_CC+:} false; then :
3070: $as_echo_n "(cached) " >&6
3071: else
3072: if test -n "$CC"; then
3073: ac_cv_prog_CC="$CC" # Let the user override the test.
3074: else
3075: ac_prog_rejected=no
3076: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077: for as_dir in $PATH
3078: do
3079: IFS=$as_save_IFS
3080: test -z "$as_dir" && as_dir=.
3081: for ac_exec_ext in '' $ac_executable_extensions; do
3082: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3083: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3084: ac_prog_rejected=yes
3085: continue
3086: fi
3087: ac_cv_prog_CC="cc"
3088: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3089: break 2
3090: fi
3091: done
3092: done
3093: IFS=$as_save_IFS
3094:
3095: if test $ac_prog_rejected = yes; then
3096: # We found a bogon in the path, so make sure we never use it.
3097: set dummy $ac_cv_prog_CC
3098: shift
3099: if test $# != 0; then
3100: # We chose a different compiler from the bogus one.
3101: # However, it has the same basename, so the bogon will be chosen
3102: # first if we set CC to just the basename; use the full file name.
3103: shift
3104: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3105: fi
3106: fi
3107: fi
3108: fi
3109: CC=$ac_cv_prog_CC
3110: if test -n "$CC"; then
3111: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3112: $as_echo "$CC" >&6; }
3113: else
3114: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115: $as_echo "no" >&6; }
3116: fi
3117:
3118:
3119: fi
3120: if test -z "$CC"; then
3121: if test -n "$ac_tool_prefix"; then
3122: for ac_prog in cl.exe
3123: do
3124: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3125: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3127: $as_echo_n "checking for $ac_word... " >&6; }
3128: if ${ac_cv_prog_CC+:} false; then :
3129: $as_echo_n "(cached) " >&6
3130: else
3131: if test -n "$CC"; then
3132: ac_cv_prog_CC="$CC" # Let the user override the test.
3133: else
3134: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135: for as_dir in $PATH
3136: do
3137: IFS=$as_save_IFS
3138: test -z "$as_dir" && as_dir=.
3139: for ac_exec_ext in '' $ac_executable_extensions; do
3140: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3141: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3142: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3143: break 2
3144: fi
3145: done
3146: done
3147: IFS=$as_save_IFS
3148:
3149: fi
3150: fi
3151: CC=$ac_cv_prog_CC
3152: if test -n "$CC"; then
3153: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3154: $as_echo "$CC" >&6; }
3155: else
3156: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3157: $as_echo "no" >&6; }
3158: fi
3159:
3160:
3161: test -n "$CC" && break
3162: done
3163: fi
3164: if test -z "$CC"; then
3165: ac_ct_CC=$CC
3166: for ac_prog in cl.exe
3167: do
3168: # Extract the first word of "$ac_prog", so it can be a program name with args.
3169: set dummy $ac_prog; ac_word=$2
3170: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3171: $as_echo_n "checking for $ac_word... " >&6; }
3172: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3173: $as_echo_n "(cached) " >&6
3174: else
3175: if test -n "$ac_ct_CC"; then
3176: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3177: else
3178: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179: for as_dir in $PATH
3180: do
3181: IFS=$as_save_IFS
3182: test -z "$as_dir" && as_dir=.
3183: for ac_exec_ext in '' $ac_executable_extensions; do
3184: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3185: ac_cv_prog_ac_ct_CC="$ac_prog"
3186: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3187: break 2
3188: fi
3189: done
3190: done
3191: IFS=$as_save_IFS
3192:
3193: fi
3194: fi
3195: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3196: if test -n "$ac_ct_CC"; then
3197: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3198: $as_echo "$ac_ct_CC" >&6; }
3199: else
3200: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201: $as_echo "no" >&6; }
3202: fi
3203:
3204:
3205: test -n "$ac_ct_CC" && break
3206: done
3207:
3208: if test "x$ac_ct_CC" = x; then
3209: CC=""
3210: else
3211: case $cross_compiling:$ac_tool_warned in
3212: yes:)
3213: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3214: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3215: ac_tool_warned=yes ;;
3216: esac
3217: CC=$ac_ct_CC
3218: fi
3219: fi
3220:
3221: fi
3222: if test -z "$CC"; then
3223: if test -n "$ac_tool_prefix"; then
3224: # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3225: set dummy ${ac_tool_prefix}clang; ac_word=$2
3226: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3227: $as_echo_n "checking for $ac_word... " >&6; }
3228: if ${ac_cv_prog_CC+:} false; then :
3229: $as_echo_n "(cached) " >&6
3230: else
3231: if test -n "$CC"; then
3232: ac_cv_prog_CC="$CC" # Let the user override the test.
3233: else
3234: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235: for as_dir in $PATH
3236: do
3237: IFS=$as_save_IFS
3238: test -z "$as_dir" && as_dir=.
3239: for ac_exec_ext in '' $ac_executable_extensions; do
3240: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3241: ac_cv_prog_CC="${ac_tool_prefix}clang"
3242: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3243: break 2
3244: fi
3245: done
3246: done
3247: IFS=$as_save_IFS
3248:
3249: fi
3250: fi
3251: CC=$ac_cv_prog_CC
3252: if test -n "$CC"; then
3253: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3254: $as_echo "$CC" >&6; }
3255: else
3256: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257: $as_echo "no" >&6; }
3258: fi
3259:
3260:
3261: fi
3262: if test -z "$ac_cv_prog_CC"; then
3263: ac_ct_CC=$CC
3264: # Extract the first word of "clang", so it can be a program name with args.
3265: set dummy clang; ac_word=$2
3266: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3267: $as_echo_n "checking for $ac_word... " >&6; }
3268: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3269: $as_echo_n "(cached) " >&6
3270: else
3271: if test -n "$ac_ct_CC"; then
3272: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3273: else
3274: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275: for as_dir in $PATH
3276: do
3277: IFS=$as_save_IFS
3278: test -z "$as_dir" && as_dir=.
3279: for ac_exec_ext in '' $ac_executable_extensions; do
3280: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3281: ac_cv_prog_ac_ct_CC="clang"
3282: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3283: break 2
3284: fi
3285: done
3286: done
3287: IFS=$as_save_IFS
3288:
3289: fi
3290: fi
3291: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3292: if test -n "$ac_ct_CC"; then
3293: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3294: $as_echo "$ac_ct_CC" >&6; }
3295: else
3296: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297: $as_echo "no" >&6; }
3298: fi
3299:
3300: if test "x$ac_ct_CC" = x; then
3301: CC=""
3302: else
3303: case $cross_compiling:$ac_tool_warned in
3304: yes:)
3305: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3306: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3307: ac_tool_warned=yes ;;
3308: esac
3309: CC=$ac_ct_CC
3310: fi
3311: else
3312: CC="$ac_cv_prog_CC"
3313: fi
3314:
3315: fi
3316:
3317:
3318: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3319: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3320: as_fn_error $? "no acceptable C compiler found in \$PATH
3321: See \`config.log' for more details" "$LINENO" 5; }
3322:
3323: # Provide some information about the compiler.
3324: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3325: set X $ac_compile
3326: ac_compiler=$2
3327: for ac_option in --version -v -V -qversion -version; do
3328: { { ac_try="$ac_compiler $ac_option >&5"
3329: case "(($ac_try" in
3330: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331: *) ac_try_echo=$ac_try;;
3332: esac
3333: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3334: $as_echo "$ac_try_echo"; } >&5
3335: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3336: ac_status=$?
3337: if test -s conftest.err; then
3338: sed '10a\
3339: ... rest of stderr output deleted ...
3340: 10q' conftest.err >conftest.er1
3341: cat conftest.er1 >&5
3342: fi
3343: rm -f conftest.er1 conftest.err
3344: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3345: test $ac_status = 0; }
3346: done
3347:
3348: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3349: /* end confdefs.h. */
3350:
3351: int
3352: main ()
3353: {
3354:
3355: ;
3356: return 0;
3357: }
3358: _ACEOF
3359: ac_clean_files_save=$ac_clean_files
3360: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3361: # Try to create an executable without -o first, disregard a.out.
3362: # It will help us diagnose broken compilers, and finding out an intuition
3363: # of exeext.
3364: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3365: $as_echo_n "checking whether the C compiler works... " >&6; }
3366: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3367:
3368: # The possible output files:
3369: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3370:
3371: ac_rmfiles=
3372: for ac_file in $ac_files
3373: do
3374: case $ac_file in
3375: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3376: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3377: esac
3378: done
3379: rm -f $ac_rmfiles
3380:
3381: if { { ac_try="$ac_link_default"
3382: case "(($ac_try" in
3383: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384: *) ac_try_echo=$ac_try;;
3385: esac
3386: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3387: $as_echo "$ac_try_echo"; } >&5
3388: (eval "$ac_link_default") 2>&5
3389: ac_status=$?
3390: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3391: test $ac_status = 0; }; then :
3392: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3393: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3394: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3395: # so that the user can short-circuit this test for compilers unknown to
3396: # Autoconf.
3397: for ac_file in $ac_files ''
3398: do
3399: test -f "$ac_file" || continue
3400: case $ac_file in
3401: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3402: ;;
3403: [ab].out )
3404: # We found the default executable, but exeext='' is most
3405: # certainly right.
3406: break;;
3407: *.* )
3408: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3409: then :; else
3410: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3411: fi
3412: # We set ac_cv_exeext here because the later test for it is not
3413: # safe: cross compilers may not add the suffix if given an `-o'
3414: # argument, so we may need to know it at that point already.
3415: # Even if this section looks crufty: it has the advantage of
3416: # actually working.
3417: break;;
3418: * )
3419: break;;
3420: esac
3421: done
3422: test "$ac_cv_exeext" = no && ac_cv_exeext=
3423:
3424: else
3425: ac_file=''
3426: fi
3427: if test -z "$ac_file"; then :
3428: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3429: $as_echo "no" >&6; }
3430: $as_echo "$as_me: failed program was:" >&5
3431: sed 's/^/| /' conftest.$ac_ext >&5
3432:
3433: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3434: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3435: as_fn_error 77 "C compiler cannot create executables
3436: See \`config.log' for more details" "$LINENO" 5; }
3437: else
3438: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3439: $as_echo "yes" >&6; }
3440: fi
3441: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3442: $as_echo_n "checking for C compiler default output file name... " >&6; }
3443: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3444: $as_echo "$ac_file" >&6; }
3445: ac_exeext=$ac_cv_exeext
3446:
3447: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3448: ac_clean_files=$ac_clean_files_save
3449: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3450: $as_echo_n "checking for suffix of executables... " >&6; }
3451: if { { ac_try="$ac_link"
3452: case "(($ac_try" in
3453: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454: *) ac_try_echo=$ac_try;;
3455: esac
3456: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3457: $as_echo "$ac_try_echo"; } >&5
3458: (eval "$ac_link") 2>&5
3459: ac_status=$?
3460: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3461: test $ac_status = 0; }; then :
3462: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3463: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3464: # work properly (i.e., refer to `conftest.exe'), while it won't with
3465: # `rm'.
3466: for ac_file in conftest.exe conftest conftest.*; do
3467: test -f "$ac_file" || continue
3468: case $ac_file in
3469: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3470: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3471: break;;
3472: * ) break;;
3473: esac
3474: done
3475: else
3476: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3477: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3478: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3479: See \`config.log' for more details" "$LINENO" 5; }
3480: fi
3481: rm -f conftest conftest$ac_cv_exeext
3482: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3483: $as_echo "$ac_cv_exeext" >&6; }
3484:
3485: rm -f conftest.$ac_ext
3486: EXEEXT=$ac_cv_exeext
3487: ac_exeext=$EXEEXT
3488: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489: /* end confdefs.h. */
3490: #include <stdio.h>
3491: int
3492: main ()
3493: {
3494: FILE *f = fopen ("conftest.out", "w");
3495: return ferror (f) || fclose (f) != 0;
3496:
3497: ;
3498: return 0;
3499: }
3500: _ACEOF
3501: ac_clean_files="$ac_clean_files conftest.out"
3502: # Check that the compiler produces executables we can run. If not, either
3503: # the compiler is broken, or we cross compile.
3504: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3505: $as_echo_n "checking whether we are cross compiling... " >&6; }
3506: if test "$cross_compiling" != yes; then
3507: { { ac_try="$ac_link"
3508: case "(($ac_try" in
3509: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510: *) ac_try_echo=$ac_try;;
3511: esac
3512: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3513: $as_echo "$ac_try_echo"; } >&5
3514: (eval "$ac_link") 2>&5
3515: ac_status=$?
3516: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3517: test $ac_status = 0; }
3518: if { ac_try='./conftest$ac_cv_exeext'
3519: { { case "(($ac_try" in
3520: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521: *) ac_try_echo=$ac_try;;
3522: esac
3523: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524: $as_echo "$ac_try_echo"; } >&5
3525: (eval "$ac_try") 2>&5
3526: ac_status=$?
3527: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3528: test $ac_status = 0; }; }; then
3529: cross_compiling=no
3530: else
3531: if test "$cross_compiling" = maybe; then
3532: cross_compiling=yes
3533: else
3534: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3535: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3536: as_fn_error $? "cannot run C compiled programs.
3537: If you meant to cross compile, use \`--host'.
3538: See \`config.log' for more details" "$LINENO" 5; }
3539: fi
3540: fi
3541: fi
3542: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3543: $as_echo "$cross_compiling" >&6; }
3544:
3545: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3546: ac_clean_files=$ac_clean_files_save
3547: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3548: $as_echo_n "checking for suffix of object files... " >&6; }
3549: if ${ac_cv_objext+:} false; then :
3550: $as_echo_n "(cached) " >&6
3551: else
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: rm -f conftest.o conftest.obj
3564: if { { ac_try="$ac_compile"
3565: case "(($ac_try" in
3566: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567: *) ac_try_echo=$ac_try;;
3568: esac
3569: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3570: $as_echo "$ac_try_echo"; } >&5
3571: (eval "$ac_compile") 2>&5
3572: ac_status=$?
3573: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3574: test $ac_status = 0; }; then :
3575: for ac_file in conftest.o conftest.obj conftest.*; do
3576: test -f "$ac_file" || continue;
3577: case $ac_file in
3578: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3579: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3580: break;;
3581: esac
3582: done
3583: else
3584: $as_echo "$as_me: failed program was:" >&5
3585: sed 's/^/| /' conftest.$ac_ext >&5
3586:
3587: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589: as_fn_error $? "cannot compute suffix of object files: cannot compile
3590: See \`config.log' for more details" "$LINENO" 5; }
3591: fi
3592: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3593: fi
3594: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3595: $as_echo "$ac_cv_objext" >&6; }
3596: OBJEXT=$ac_cv_objext
3597: ac_objext=$OBJEXT
3598: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3599: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3600: if ${ac_cv_c_compiler_gnu+:} false; then :
3601: $as_echo_n "(cached) " >&6
3602: else
3603: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604: /* end confdefs.h. */
3605:
3606: int
3607: main ()
3608: {
3609: #ifndef __GNUC__
3610: choke me
3611: #endif
3612:
3613: ;
3614: return 0;
3615: }
3616: _ACEOF
3617: if ac_fn_c_try_compile "$LINENO"; then :
3618: ac_compiler_gnu=yes
3619: else
3620: ac_compiler_gnu=no
3621: fi
3622: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3623: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3624:
3625: fi
3626: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3627: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3628: if test $ac_compiler_gnu = yes; then
3629: GCC=yes
3630: else
3631: GCC=
3632: fi
3633: ac_test_CFLAGS=${CFLAGS+set}
3634: ac_save_CFLAGS=$CFLAGS
3635: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3636: $as_echo_n "checking whether $CC accepts -g... " >&6; }
3637: if ${ac_cv_prog_cc_g+:} false; then :
3638: $as_echo_n "(cached) " >&6
3639: else
3640: ac_save_c_werror_flag=$ac_c_werror_flag
3641: ac_c_werror_flag=yes
3642: ac_cv_prog_cc_g=no
3643: CFLAGS="-g"
3644: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645: /* end confdefs.h. */
3646:
3647: int
3648: main ()
3649: {
3650:
3651: ;
3652: return 0;
3653: }
3654: _ACEOF
3655: if ac_fn_c_try_compile "$LINENO"; then :
3656: ac_cv_prog_cc_g=yes
3657: else
3658: CFLAGS=""
3659: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660: /* end confdefs.h. */
3661:
3662: int
3663: main ()
3664: {
3665:
3666: ;
3667: return 0;
3668: }
3669: _ACEOF
3670: if ac_fn_c_try_compile "$LINENO"; then :
3671:
3672: else
3673: ac_c_werror_flag=$ac_save_c_werror_flag
3674: CFLAGS="-g"
3675: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676: /* end confdefs.h. */
3677:
3678: int
3679: main ()
3680: {
3681:
3682: ;
3683: return 0;
3684: }
3685: _ACEOF
3686: if ac_fn_c_try_compile "$LINENO"; then :
3687: ac_cv_prog_cc_g=yes
3688: fi
3689: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3690: fi
3691: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3692: fi
3693: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3694: ac_c_werror_flag=$ac_save_c_werror_flag
3695: fi
3696: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3697: $as_echo "$ac_cv_prog_cc_g" >&6; }
3698: if test "$ac_test_CFLAGS" = set; then
3699: CFLAGS=$ac_save_CFLAGS
3700: elif test $ac_cv_prog_cc_g = yes; then
3701: if test "$GCC" = yes; then
3702: CFLAGS="-g -O2"
3703: else
3704: CFLAGS="-g"
3705: fi
3706: else
3707: if test "$GCC" = yes; then
3708: CFLAGS="-O2"
3709: else
3710: CFLAGS=
3711: fi
3712: fi
3713: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3714: $as_echo_n "checking for $CC option to enable C11 features... " >&6; }
3715: if ${ac_cv_prog_cc_c11+:} false; then :
3716: $as_echo_n "(cached) " >&6
3717: else
3718: ac_cv_prog_cc_c11=no
3719: ac_save_CC=$CC
3720: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721: /* end confdefs.h. */
3722: #include <stdarg.h>
3723: #include <stdbool.h>
3724: #include <stddef.h>
3725: #include <stdlib.h>
3726: #include <wchar.h>
3727: #include <stdio.h>
3728:
3729: // Check varargs macros. These examples are taken from C99 6.10.3.5.
3730: #define debug(...) fprintf (stderr, __VA_ARGS__)
3731: #define showlist(...) puts (#__VA_ARGS__)
3732: #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3733: static void
3734: test_varargs_macros (void)
3735: {
3736: int x = 1234;
3737: int y = 5678;
3738: debug ("Flag");
3739: debug ("X = %d\n", x);
3740: showlist (The first, second, and third items.);
3741: report (x>y, "x is %d but y is %d", x, y);
3742: }
3743:
3744: // Check long long types.
3745: #define BIG64 18446744073709551615ull
3746: #define BIG32 4294967295ul
3747: #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3748: #if !BIG_OK
3749: your preprocessor is broken;
3750: #endif
3751: #if BIG_OK
3752: #else
3753: your preprocessor is broken;
3754: #endif
3755: static long long int bignum = -9223372036854775807LL;
3756: static unsigned long long int ubignum = BIG64;
3757:
3758: struct incomplete_array
3759: {
3760: int datasize;
3761: double data[];
3762: };
3763:
3764: struct named_init {
3765: int number;
3766: const wchar_t *name;
3767: double average;
3768: };
3769:
3770: typedef const char *ccp;
3771:
3772: static inline int
3773: test_restrict (ccp restrict text)
3774: {
3775: // See if C++-style comments work.
3776: // Iterate through items via the restricted pointer.
3777: // Also check for declarations in for loops.
3778: for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3779: continue;
3780: return 0;
3781: }
3782:
3783: // Check varargs and va_copy.
3784: static bool
3785: test_varargs (const char *format, ...)
3786: {
3787: va_list args;
3788: va_start (args, format);
3789: va_list args_copy;
3790: va_copy (args_copy, args);
3791:
3792: const char *str = "";
3793: int number = 0;
3794: float fnumber = 0;
3795:
3796: while (*format)
3797: {
3798: switch (*format++)
3799: {
3800: case 's': // string
3801: str = va_arg (args_copy, const char *);
3802: break;
3803: case 'd': // int
3804: number = va_arg (args_copy, int);
3805: break;
3806: case 'f': // float
3807: fnumber = va_arg (args_copy, double);
3808: break;
3809: default:
3810: break;
3811: }
3812: }
3813: va_end (args_copy);
3814: va_end (args);
3815:
3816: return *str && number && fnumber;
3817: }
3818: // Check _Alignas.
3819: char _Alignas (double) aligned_as_double;
3820: char _Alignas (0) no_special_alignment;
3821: extern char aligned_as_int;
3822: char _Alignas (0) _Alignas (int) aligned_as_int;
3823:
3824: // Check _Alignof.
3825: enum
3826: {
3827: int_alignment = _Alignof (int),
3828: int_array_alignment = _Alignof (int[100]),
3829: char_alignment = _Alignof (char)
3830: };
3831: _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3832:
3833: // Check _Noreturn.
3834: int _Noreturn does_not_return (void) { for (;;) continue; }
3835:
3836: // Check _Static_assert.
3837: struct test_static_assert
3838: {
3839: int x;
3840: _Static_assert (sizeof (int) <= sizeof (long int),
3841: "_Static_assert does not work in struct");
3842: long int y;
3843: };
3844:
3845: // Check UTF-8 literals.
3846: #define u8 syntax error!
3847: char const utf8_literal[] = u8"happens to be ASCII" "another string";
3848:
3849: // Check duplicate typedefs.
3850: typedef long *long_ptr;
3851: typedef long int *long_ptr;
3852: typedef long_ptr long_ptr;
3853:
3854: // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3855: struct anonymous
3856: {
3857: union {
3858: struct { int i; int j; };
3859: struct { int k; long int l; } w;
3860: };
3861: int m;
3862: } v1;
3863:
3864: int
3865: main ()
3866: {
3867:
3868: // Check bool.
3869: _Bool success = false;
3870:
3871: // Check restrict.
3872: if (test_restrict ("String literal") == 0)
3873: success = true;
3874: char *restrict newvar = "Another string";
3875:
3876: // Check varargs.
3877: success &= test_varargs ("s, d' f .", "string", 65, 34.234);
3878: test_varargs_macros ();
3879:
3880: // Check flexible array members.
3881: struct incomplete_array *ia =
3882: malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3883: ia->datasize = 10;
3884: for (int i = 0; i < ia->datasize; ++i)
3885: ia->data[i] = i * 1.234;
3886:
3887: // Check named initializers.
3888: struct named_init ni = {
3889: .number = 34,
3890: .name = L"Test wide string",
3891: .average = 543.34343,
3892: };
3893:
3894: ni.number = 58;
3895:
3896: int dynamic_array[ni.number];
3897: dynamic_array[ni.number - 1] = 543;
3898:
3899: // work around unused variable warnings
3900: return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3901: || dynamic_array[ni.number - 1] != 543);
3902:
3903: v1.i = 2;
3904: v1.w.k = 5;
3905: _Static_assert ((offsetof (struct anonymous, i)
3906: == offsetof (struct anonymous, w.k)),
3907: "Anonymous union alignment botch");
3908:
3909: ;
3910: return 0;
3911: }
3912: _ACEOF
3913: for ac_arg in '' -std=gnu11
3914: do
3915: CC="$ac_save_CC $ac_arg"
3916: if ac_fn_c_try_compile "$LINENO"; then :
3917: ac_cv_prog_cc_c11=$ac_arg
3918: fi
3919: rm -f core conftest.err conftest.$ac_objext
3920: test "x$ac_cv_prog_cc_c11" != "xno" && break
3921: done
3922: rm -f conftest.$ac_ext
3923: CC=$ac_save_CC
3924:
3925: fi
3926: # AC_CACHE_VAL
3927: ac_prog_cc_stdc_options=
3928: case "x$ac_cv_prog_cc_c11" in
3929: x)
3930: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3931: $as_echo "none needed" >&6; } ;;
3932: xno)
3933: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3934: $as_echo "unsupported" >&6; } ;;
3935: *)
3936: ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c11"
3937: CC=$CC$ac_prog_cc_stdc_options
3938: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3939: $as_echo "$ac_cv_prog_cc_c11" >&6; } ;;
3940: esac
3941: if test "x$ac_cv_prog_cc_c11" != xno; then :
3942: ac_prog_cc_stdc=c11
3943: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3944: else
3945: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3946: $as_echo_n "checking for $CC option to enable C99 features... " >&6; }
3947: if ${ac_cv_prog_cc_c99+:} false; then :
3948: $as_echo_n "(cached) " >&6
3949: else
3950: ac_cv_prog_cc_c99=no
3951: ac_save_CC=$CC
3952: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953: /* end confdefs.h. */
3954: #include <stdarg.h>
3955: #include <stdbool.h>
3956: #include <stddef.h>
3957: #include <stdlib.h>
3958: #include <wchar.h>
3959: #include <stdio.h>
3960:
3961: // Check varargs macros. These examples are taken from C99 6.10.3.5.
3962: #define debug(...) fprintf (stderr, __VA_ARGS__)
3963: #define showlist(...) puts (#__VA_ARGS__)
3964: #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3965: static void
3966: test_varargs_macros (void)
3967: {
3968: int x = 1234;
3969: int y = 5678;
3970: debug ("Flag");
3971: debug ("X = %d\n", x);
3972: showlist (The first, second, and third items.);
3973: report (x>y, "x is %d but y is %d", x, y);
3974: }
3975:
3976: // Check long long types.
3977: #define BIG64 18446744073709551615ull
3978: #define BIG32 4294967295ul
3979: #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3980: #if !BIG_OK
3981: your preprocessor is broken;
3982: #endif
3983: #if BIG_OK
3984: #else
3985: your preprocessor is broken;
3986: #endif
3987: static long long int bignum = -9223372036854775807LL;
3988: static unsigned long long int ubignum = BIG64;
3989:
3990: struct incomplete_array
3991: {
3992: int datasize;
3993: double data[];
3994: };
3995:
3996: struct named_init {
3997: int number;
3998: const wchar_t *name;
3999: double average;
4000: };
4001:
4002: typedef const char *ccp;
4003:
4004: static inline int
4005: test_restrict (ccp restrict text)
4006: {
4007: // See if C++-style comments work.
4008: // Iterate through items via the restricted pointer.
4009: // Also check for declarations in for loops.
4010: for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4011: continue;
4012: return 0;
4013: }
4014:
4015: // Check varargs and va_copy.
4016: static bool
4017: test_varargs (const char *format, ...)
4018: {
4019: va_list args;
4020: va_start (args, format);
4021: va_list args_copy;
4022: va_copy (args_copy, args);
4023:
4024: const char *str = "";
4025: int number = 0;
4026: float fnumber = 0;
4027:
4028: while (*format)
4029: {
4030: switch (*format++)
4031: {
4032: case 's': // string
4033: str = va_arg (args_copy, const char *);
4034: break;
4035: case 'd': // int
4036: number = va_arg (args_copy, int);
4037: break;
4038: case 'f': // float
4039: fnumber = va_arg (args_copy, double);
4040: break;
4041: default:
4042: break;
4043: }
4044: }
4045: va_end (args_copy);
4046: va_end (args);
4047:
4048: return *str && number && fnumber;
4049: }
4050: int
4051: main ()
4052: {
4053:
4054: // Check bool.
4055: _Bool success = false;
4056:
4057: // Check restrict.
4058: if (test_restrict ("String literal") == 0)
4059: success = true;
4060: char *restrict newvar = "Another string";
4061:
4062: // Check varargs.
4063: success &= test_varargs ("s, d' f .", "string", 65, 34.234);
4064: test_varargs_macros ();
4065:
4066: // Check flexible array members.
4067: struct incomplete_array *ia =
4068: malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4069: ia->datasize = 10;
4070: for (int i = 0; i < ia->datasize; ++i)
4071: ia->data[i] = i * 1.234;
4072:
4073: // Check named initializers.
4074: struct named_init ni = {
4075: .number = 34,
4076: .name = L"Test wide string",
4077: .average = 543.34343,
4078: };
4079:
4080: ni.number = 58;
4081:
4082: int dynamic_array[ni.number];
4083: dynamic_array[ni.number - 1] = 543;
4084:
4085: // work around unused variable warnings
4086: return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4087: || dynamic_array[ni.number - 1] != 543);
4088:
4089: ;
4090: return 0;
4091: }
4092: _ACEOF
4093: for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc1x -qlanglvl=extc99
4094: do
4095: CC="$ac_save_CC $ac_arg"
4096: if ac_fn_c_try_compile "$LINENO"; then :
4097: ac_cv_prog_cc_c99=$ac_arg
4098: fi
4099: rm -f core conftest.err conftest.$ac_objext
4100: test "x$ac_cv_prog_cc_c99" != "xno" && break
4101: done
4102: rm -f conftest.$ac_ext
4103: CC=$ac_save_CC
4104:
4105: fi
4106: # AC_CACHE_VAL
4107: ac_prog_cc_stdc_options=
4108: case "x$ac_cv_prog_cc_c99" in
4109: x)
4110: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4111: $as_echo "none needed" >&6; } ;;
4112: xno)
4113: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4114: $as_echo "unsupported" >&6; } ;;
4115: *)
4116: ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c99"
4117: CC=$CC$ac_prog_cc_stdc_options
4118: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4119: $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4120: esac
4121: if test "x$ac_cv_prog_cc_c99" != xno; then :
4122: ac_prog_cc_stdc=c99
4123: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4124: else
4125: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4126: $as_echo_n "checking for $CC option to enable C89 features... " >&6; }
4127: if ${ac_cv_prog_cc_c89+:} false; then :
4128: $as_echo_n "(cached) " >&6
4129: else
4130: ac_cv_prog_cc_c89=no
4131: ac_save_CC=$CC
4132: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133: /* end confdefs.h. */
4134: #include <stdarg.h>
4135: #include <stdio.h>
4136: struct stat;
4137: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4138: struct buf { int x; };
4139: FILE * (*rcsopen) (struct buf *, struct stat *, int);
4140: static char *e (p, i)
4141: char **p;
4142: int i;
4143: {
4144: return p[i];
4145: }
4146: static char *f (char * (*g) (char **, int), char **p, ...)
4147: {
4148: char *s;
4149: va_list v;
4150: va_start (v,p);
4151: s = g (p, va_arg (v,int));
4152: va_end (v);
4153: return s;
4154: }
4155:
4156: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4157: function prototypes and stuff, but not '\xHH' hex character constants.
4158: These don't provoke an error unfortunately, instead are silently treated
4159: as 'x'. The following induces an error, until -std is added to get
4160: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4161: array size at least. It's necessary to write '\x00'==0 to get something
4162: that's true only with -std. */
4163: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4164:
4165: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4166: inside strings and character constants. */
4167: #define FOO(x) 'x'
4168: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4169:
4170: int test (int i, double x);
4171: struct s1 {int (*f) (int a);};
4172: struct s2 {int (*f) (double a);};
4173: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4174: int argc;
4175: char **argv;
4176: int
4177: main ()
4178: {
4179: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4180: ;
4181: return 0;
4182: }
4183: _ACEOF
4184: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4185: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4186: do
4187: CC="$ac_save_CC $ac_arg"
4188: if ac_fn_c_try_compile "$LINENO"; then :
4189: ac_cv_prog_cc_c89=$ac_arg
4190: fi
4191: rm -f core conftest.err conftest.$ac_objext
4192: test "x$ac_cv_prog_cc_c89" != "xno" && break
4193: done
4194: rm -f conftest.$ac_ext
4195: CC=$ac_save_CC
4196:
4197: fi
4198: # AC_CACHE_VAL
4199: ac_prog_cc_stdc_options=
4200: case "x$ac_cv_prog_cc_c89" in
4201: x)
4202: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4203: $as_echo "none needed" >&6; } ;;
4204: xno)
4205: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4206: $as_echo "unsupported" >&6; } ;;
4207: *)
4208: ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c89"
4209: CC=$CC$ac_prog_cc_stdc_options
4210: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4211: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4212: esac
4213: if test "x$ac_cv_prog_cc_c89" != xno; then :
4214: ac_prog_cc_stdc=c89
4215: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4216: else
4217: ac_prog_cc_stdc=no
4218: ac_cv_prog_cc_stdc=no
4219: fi
4220:
4221: fi
4222:
4223: fi
4224:
4225: ac_ext=c
4226: ac_cpp='$CPP $CPPFLAGS'
4227: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4228: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4229: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4230: DEPDIR="${am__leading_dot}deps"
4231:
4232: ac_config_commands="$ac_config_commands depfiles"
4233:
4234:
4235: am_make=${MAKE-make}
4236: cat > confinc << 'END'
4237: am__doit:
4238: @echo this is the am__doit target
4239: .PHONY: am__doit
4240: END
4241: # If we don't find an include directive, just comment out the code.
4242: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4243: $as_echo_n "checking for style of include used by $am_make... " >&6; }
4244: am__include="#"
4245: am__quote=
4246: _am_result=none
4247: # First try GNU make style include.
4248: echo "include confinc" > confmf
4249: # Ignore all kinds of additional output from 'make'.
4250: case `$am_make -s -f confmf 2> /dev/null` in #(
4251: *the\ am__doit\ target*)
4252: am__include=include
4253: am__quote=
4254: _am_result=GNU
4255: ;;
4256: esac
4257: # Now try BSD make style include.
4258: if test "$am__include" = "#"; then
4259: echo '.include "confinc"' > confmf
4260: case `$am_make -s -f confmf 2> /dev/null` in #(
4261: *the\ am__doit\ target*)
4262: am__include=.include
4263: am__quote="\""
4264: _am_result=BSD
4265: ;;
4266: esac
4267: fi
4268:
4269:
4270: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4271: $as_echo "$_am_result" >&6; }
4272: rm -f confinc confmf
4273:
4274: # Check whether --enable-dependency-tracking was given.
4275: if test "${enable_dependency_tracking+set}" = set; then :
4276: enableval=$enable_dependency_tracking;
4277: fi
4278:
4279: if test "x$enable_dependency_tracking" != xno; then
4280: am_depcomp="$ac_aux_dir/depcomp"
4281: AMDEPBACKSLASH='\'
4282: am__nodep='_no'
4283: fi
4284: if test "x$enable_dependency_tracking" != xno; then
4285: AMDEP_TRUE=
4286: AMDEP_FALSE='#'
4287: else
4288: AMDEP_TRUE='#'
4289: AMDEP_FALSE=
4290: fi
4291:
4292:
4293:
4294: depcc="$CC" am_compiler_list=
4295:
4296: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4297: $as_echo_n "checking dependency style of $depcc... " >&6; }
4298: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4299: $as_echo_n "(cached) " >&6
4300: else
4301: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4302: # We make a subdir and do the tests there. Otherwise we can end up
4303: # making bogus files that we don't know about and never remove. For
4304: # instance it was reported that on HP-UX the gcc test will end up
4305: # making a dummy file named 'D' -- because '-MD' means "put the output
4306: # in D".
4307: rm -rf conftest.dir
4308: mkdir conftest.dir
4309: # Copy depcomp to subdir because otherwise we won't find it if we're
4310: # using a relative directory.
4311: cp "$am_depcomp" conftest.dir
4312: cd conftest.dir
4313: # We will build objects and dependencies in a subdirectory because
4314: # it helps to detect inapplicable dependency modes. For instance
4315: # both Tru64's cc and ICC support -MD to output dependencies as a
4316: # side effect of compilation, but ICC will put the dependencies in
4317: # the current directory while Tru64 will put them in the object
4318: # directory.
4319: mkdir sub
4320:
4321: am_cv_CC_dependencies_compiler_type=none
4322: if test "$am_compiler_list" = ""; then
4323: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4324: fi
4325: am__universal=false
4326: case " $depcc " in #(
4327: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4328: esac
4329:
4330: for depmode in $am_compiler_list; do
4331: # Setup a source with many dependencies, because some compilers
4332: # like to wrap large dependency lists on column 80 (with \), and
4333: # we should not choose a depcomp mode which is confused by this.
4334: #
4335: # We need to recreate these files for each test, as the compiler may
4336: # overwrite some of them when testing with obscure command lines.
4337: # This happens at least with the AIX C compiler.
4338: : > sub/conftest.c
4339: for i in 1 2 3 4 5 6; do
4340: echo '#include "conftst'$i'.h"' >> sub/conftest.c
4341: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4342: # Solaris 10 /bin/sh.
4343: echo '/* dummy */' > sub/conftst$i.h
4344: done
4345: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4346:
4347: # We check with '-c' and '-o' for the sake of the "dashmstdout"
4348: # mode. It turns out that the SunPro C++ compiler does not properly
4349: # handle '-M -o', and we need to detect this. Also, some Intel
4350: # versions had trouble with output in subdirs.
4351: am__obj=sub/conftest.${OBJEXT-o}
4352: am__minus_obj="-o $am__obj"
4353: case $depmode in
4354: gcc)
4355: # This depmode causes a compiler race in universal mode.
4356: test "$am__universal" = false || continue
4357: ;;
4358: nosideeffect)
4359: # After this tag, mechanisms are not by side-effect, so they'll
4360: # only be used when explicitly requested.
4361: if test "x$enable_dependency_tracking" = xyes; then
4362: continue
4363: else
4364: break
4365: fi
4366: ;;
4367: msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4368: # This compiler won't grok '-c -o', but also, the minuso test has
4369: # not run yet. These depmodes are late enough in the game, and
4370: # so weak that their functioning should not be impacted.
4371: am__obj=conftest.${OBJEXT-o}
4372: am__minus_obj=
4373: ;;
4374: none) break ;;
4375: esac
4376: if depmode=$depmode \
4377: source=sub/conftest.c object=$am__obj \
4378: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4379: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4380: >/dev/null 2>conftest.err &&
4381: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4382: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4383: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4384: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4385: # icc doesn't choke on unknown options, it will just issue warnings
4386: # or remarks (even with -Werror). So we grep stderr for any message
4387: # that says an option was ignored or not supported.
4388: # When given -MP, icc 7.0 and 7.1 complain thusly:
4389: # icc: Command line warning: ignoring option '-M'; no argument required
4390: # The diagnosis changed in icc 8.0:
4391: # icc: Command line remark: option '-MP' not supported
4392: if (grep 'ignoring option' conftest.err ||
4393: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4394: am_cv_CC_dependencies_compiler_type=$depmode
4395: break
4396: fi
4397: fi
4398: done
4399:
4400: cd ..
4401: rm -rf conftest.dir
4402: else
4403: am_cv_CC_dependencies_compiler_type=none
4404: fi
4405:
4406: fi
4407: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4408: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4409: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4410:
4411: if
4412: test "x$enable_dependency_tracking" != xno \
4413: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4414: am__fastdepCC_TRUE=
4415: am__fastdepCC_FALSE='#'
4416: else
4417: am__fastdepCC_TRUE='#'
4418: am__fastdepCC_FALSE=
4419: fi
4420:
4421:
4422:
4423:
4424: for ac_prog in flex lex
4425: do
4426: # Extract the first word of "$ac_prog", so it can be a program name with args.
4427: set dummy $ac_prog; ac_word=$2
4428: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4429: $as_echo_n "checking for $ac_word... " >&6; }
4430: if ${ac_cv_prog_LEX+:} false; then :
4431: $as_echo_n "(cached) " >&6
4432: else
4433: if test -n "$LEX"; then
4434: ac_cv_prog_LEX="$LEX" # Let the user override the test.
4435: else
4436: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437: for as_dir in $PATH
4438: do
4439: IFS=$as_save_IFS
4440: test -z "$as_dir" && as_dir=.
4441: for ac_exec_ext in '' $ac_executable_extensions; do
4442: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4443: ac_cv_prog_LEX="$ac_prog"
4444: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4445: break 2
4446: fi
4447: done
4448: done
4449: IFS=$as_save_IFS
4450:
4451: fi
4452: fi
4453: LEX=$ac_cv_prog_LEX
4454: if test -n "$LEX"; then
4455: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4456: $as_echo "$LEX" >&6; }
4457: else
4458: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4459: $as_echo "no" >&6; }
4460: fi
4461:
4462:
4463: test -n "$LEX" && break
4464: done
4465: test -n "$LEX" || LEX=":"
4466:
4467: if test "x$LEX" != "x:"; then
4468: cat >conftest.l <<_ACEOF
4469: %%
4470: a { ECHO; }
4471: b { REJECT; }
4472: c { yymore (); }
4473: d { yyless (1); }
4474: e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
4475: yyless ((input () != 0)); }
4476: f { unput (yytext[0]); }
4477: . { BEGIN INITIAL; }
4478: %%
4479: #ifdef YYTEXT_POINTER
4480: extern char *yytext;
4481: #endif
4482: int
4483: main (void)
4484: {
4485: return ! yylex () + ! yywrap ();
4486: }
4487: _ACEOF
4488: { { ac_try="$LEX conftest.l"
4489: case "(($ac_try" in
4490: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491: *) ac_try_echo=$ac_try;;
4492: esac
4493: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4494: $as_echo "$ac_try_echo"; } >&5
4495: (eval "$LEX conftest.l") 2>&5
4496: ac_status=$?
4497: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4498: test $ac_status = 0; }
4499: { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4500: $as_echo_n "checking lex output file root... " >&6; }
4501: if ${ac_cv_prog_lex_root+:} false; then :
4502: $as_echo_n "(cached) " >&6
4503: else
4504:
4505: if test -f lex.yy.c; then
4506: ac_cv_prog_lex_root=lex.yy
4507: elif test -f lexyy.c; then
4508: ac_cv_prog_lex_root=lexyy
4509: else
4510: as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4511: fi
4512: fi
4513: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4514: $as_echo "$ac_cv_prog_lex_root" >&6; }
4515: LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4516:
4517: if test -z "${LEXLIB+set}"; then
4518: { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4519: $as_echo_n "checking lex library... " >&6; }
4520: if ${ac_cv_lib_lex+:} false; then :
4521: $as_echo_n "(cached) " >&6
4522: else
4523:
4524: ac_save_LIBS=$LIBS
4525: ac_cv_lib_lex='none needed'
4526: for ac_lib in '' -lfl -ll; do
4527: LIBS="$ac_lib $ac_save_LIBS"
4528: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529: /* end confdefs.h. */
4530: `cat $LEX_OUTPUT_ROOT.c`
4531: _ACEOF
4532: if ac_fn_c_try_link "$LINENO"; then :
4533: ac_cv_lib_lex=$ac_lib
4534: fi
4535: rm -f core conftest.err conftest.$ac_objext \
4536: conftest$ac_exeext conftest.$ac_ext
4537: test "$ac_cv_lib_lex" != 'none needed' && break
4538: done
4539: LIBS=$ac_save_LIBS
4540:
4541: fi
4542: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4543: $as_echo "$ac_cv_lib_lex" >&6; }
4544: test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4545: fi
4546:
4547:
4548: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4549: $as_echo_n "checking whether yytext is a pointer... " >&6; }
4550: if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4551: $as_echo_n "(cached) " >&6
4552: else
4553: # POSIX says lex can declare yytext either as a pointer or an array; the
4554: # default is implementation-dependent. Figure out which it is, since
4555: # not all implementations provide the %pointer and %array declarations.
4556: ac_cv_prog_lex_yytext_pointer=no
4557: ac_save_LIBS=$LIBS
4558: LIBS="$LEXLIB $ac_save_LIBS"
4559: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560: /* end confdefs.h. */
4561:
4562: #define YYTEXT_POINTER 1
4563: `cat $LEX_OUTPUT_ROOT.c`
4564: _ACEOF
4565: if ac_fn_c_try_link "$LINENO"; then :
4566: ac_cv_prog_lex_yytext_pointer=yes
4567: fi
4568: rm -f core conftest.err conftest.$ac_objext \
4569: conftest$ac_exeext conftest.$ac_ext
4570: LIBS=$ac_save_LIBS
4571:
4572: fi
4573: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4574: $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4575: if test $ac_cv_prog_lex_yytext_pointer = yes; then
4576:
4577: $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4578:
4579: fi
4580: rm -f conftest.l $LEX_OUTPUT_ROOT.c
4581:
4582: fi
4583: if test "$LEX" = :; then
4584: LEX=${am_missing_run}flex
4585: fi
4586: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4587: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4588: if ${ac_cv_path_GREP+:} false; then :
4589: $as_echo_n "(cached) " >&6
4590: else
4591: if test -z "$GREP"; then
4592: ac_path_GREP_found=false
4593: # Loop through the user's path and test for each of PROGNAME-LIST
4594: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4596: do
4597: IFS=$as_save_IFS
4598: test -z "$as_dir" && as_dir=.
4599: for ac_prog in grep ggrep; do
4600: for ac_exec_ext in '' $ac_executable_extensions; do
4601: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4602: as_fn_executable_p "$ac_path_GREP" || continue
4603: # Check for GNU ac_path_GREP and select it if it is found.
4604: # Check for GNU $ac_path_GREP
4605: case `"$ac_path_GREP" --version 2>&1` in
4606: *GNU*)
4607: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4608: *)
4609: ac_count=0
4610: $as_echo_n 0123456789 >"conftest.in"
4611: while :
4612: do
4613: cat "conftest.in" "conftest.in" >"conftest.tmp"
4614: mv "conftest.tmp" "conftest.in"
4615: cp "conftest.in" "conftest.nl"
4616: $as_echo 'GREP' >> "conftest.nl"
4617: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4618: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4619: as_fn_arith $ac_count + 1 && ac_count=$as_val
4620: if test $ac_count -gt ${ac_path_GREP_max-0}; then
4621: # Best one so far, save it but keep looking for a better one
4622: ac_cv_path_GREP="$ac_path_GREP"
4623: ac_path_GREP_max=$ac_count
4624: fi
4625: # 10*(2^10) chars as input seems more than enough
4626: test $ac_count -gt 10 && break
4627: done
4628: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4629: esac
4630:
4631: $ac_path_GREP_found && break 3
4632: done
4633: done
4634: done
4635: IFS=$as_save_IFS
4636: if test -z "$ac_cv_path_GREP"; then
4637: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4638: fi
4639: else
4640: ac_cv_path_GREP=$GREP
4641: fi
4642:
4643: fi
4644: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4645: $as_echo "$ac_cv_path_GREP" >&6; }
4646: GREP="$ac_cv_path_GREP"
4647:
4648:
4649: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4650: $as_echo_n "checking for egrep... " >&6; }
4651: if ${ac_cv_path_EGREP+:} false; then :
4652: $as_echo_n "(cached) " >&6
4653: else
4654: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4655: then ac_cv_path_EGREP="$GREP -E"
4656: else
4657: if test -z "$EGREP"; then
4658: ac_path_EGREP_found=false
4659: # Loop through the user's path and test for each of PROGNAME-LIST
4660: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4662: do
4663: IFS=$as_save_IFS
4664: test -z "$as_dir" && as_dir=.
4665: for ac_prog in egrep; do
4666: for ac_exec_ext in '' $ac_executable_extensions; do
4667: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4668: as_fn_executable_p "$ac_path_EGREP" || continue
4669: # Check for GNU ac_path_EGREP and select it if it is found.
4670: # Check for GNU $ac_path_EGREP
4671: case `"$ac_path_EGREP" --version 2>&1` in
4672: *GNU*)
4673: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4674: *)
4675: ac_count=0
4676: $as_echo_n 0123456789 >"conftest.in"
4677: while :
4678: do
4679: cat "conftest.in" "conftest.in" >"conftest.tmp"
4680: mv "conftest.tmp" "conftest.in"
4681: cp "conftest.in" "conftest.nl"
4682: $as_echo 'EGREP' >> "conftest.nl"
4683: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4684: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4685: as_fn_arith $ac_count + 1 && ac_count=$as_val
4686: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4687: # Best one so far, save it but keep looking for a better one
4688: ac_cv_path_EGREP="$ac_path_EGREP"
4689: ac_path_EGREP_max=$ac_count
4690: fi
4691: # 10*(2^10) chars as input seems more than enough
4692: test $ac_count -gt 10 && break
4693: done
4694: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4695: esac
4696:
4697: $ac_path_EGREP_found && break 3
4698: done
4699: done
4700: done
4701: IFS=$as_save_IFS
4702: if test -z "$ac_cv_path_EGREP"; then
4703: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4704: fi
4705: else
4706: ac_cv_path_EGREP=$EGREP
4707: fi
4708:
4709: fi
4710: fi
4711: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4712: $as_echo "$ac_cv_path_EGREP" >&6; }
4713: EGREP="$ac_cv_path_EGREP"
4714:
4715:
4716:
4717:
4718:
4719:
4720: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if flex is the lexer generator" >&5
4721: $as_echo_n "checking if flex is the lexer generator... " >&6; }
4722: if ${ax_cv_prog_flex+:} false; then :
4723: $as_echo_n "(cached) " >&6
4724: else
4725:
4726: if $LEX --version 2>/dev/null | $EGREP -qw '^g?flex'; then :
4727: ax_cv_prog_flex=yes
4728: else
4729: ax_cv_prog_flex=no
4730: fi
4731:
4732: fi
4733: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_flex" >&5
4734: $as_echo "$ax_cv_prog_flex" >&6; }
4735: if test "$ax_cv_prog_flex" = "yes"; then :
4736:
4737: else
4738: as_fn_error $? "Requires flex" "$LINENO" 5
4739:
4740: fi
4741:
4742: for ac_prog in 'bison -y' byacc
4743: do
4744: # Extract the first word of "$ac_prog", so it can be a program name with args.
4745: set dummy $ac_prog; ac_word=$2
4746: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4747: $as_echo_n "checking for $ac_word... " >&6; }
4748: if ${ac_cv_prog_YACC+:} false; then :
4749: $as_echo_n "(cached) " >&6
4750: else
4751: if test -n "$YACC"; then
4752: ac_cv_prog_YACC="$YACC" # Let the user override the test.
4753: else
4754: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755: for as_dir in $PATH
4756: do
4757: IFS=$as_save_IFS
4758: test -z "$as_dir" && as_dir=.
4759: for ac_exec_ext in '' $ac_executable_extensions; do
4760: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4761: ac_cv_prog_YACC="$ac_prog"
4762: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4763: break 2
4764: fi
4765: done
4766: done
4767: IFS=$as_save_IFS
4768:
4769: fi
4770: fi
4771: YACC=$ac_cv_prog_YACC
4772: if test -n "$YACC"; then
4773: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4774: $as_echo "$YACC" >&6; }
4775: else
4776: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4777: $as_echo "no" >&6; }
4778: fi
4779:
4780:
4781: test -n "$YACC" && break
4782: done
4783: test -n "$YACC" || YACC="yacc"
4784:
4785: if test "$LEX" = :; then
4786: LEX=${am_missing_run}flex
4787: fi
4788:
4789: # Checks for libraries.
4790:
4791:
4792:
4793:
4794:
4795:
4796:
4797: if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4798: if test -n "$ac_tool_prefix"; then
4799: # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4800: set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4801: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4802: $as_echo_n "checking for $ac_word... " >&6; }
4803: if ${ac_cv_path_PKG_CONFIG+:} false; then :
4804: $as_echo_n "(cached) " >&6
4805: else
4806: case $PKG_CONFIG in
4807: [\\/]* | ?:[\\/]*)
4808: ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4809: ;;
4810: *)
4811: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4812: for as_dir in $PATH
4813: do
4814: IFS=$as_save_IFS
4815: test -z "$as_dir" && as_dir=.
4816: for ac_exec_ext in '' $ac_executable_extensions; do
4817: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4818: ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4819: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4820: break 2
4821: fi
4822: done
4823: done
4824: IFS=$as_save_IFS
4825:
4826: ;;
4827: esac
4828: fi
4829: PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4830: if test -n "$PKG_CONFIG"; then
4831: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4832: $as_echo "$PKG_CONFIG" >&6; }
4833: else
4834: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4835: $as_echo "no" >&6; }
4836: fi
4837:
4838:
4839: fi
4840: if test -z "$ac_cv_path_PKG_CONFIG"; then
4841: ac_pt_PKG_CONFIG=$PKG_CONFIG
4842: # Extract the first word of "pkg-config", so it can be a program name with args.
4843: set dummy pkg-config; ac_word=$2
4844: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4845: $as_echo_n "checking for $ac_word... " >&6; }
4846: if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4847: $as_echo_n "(cached) " >&6
4848: else
4849: case $ac_pt_PKG_CONFIG in
4850: [\\/]* | ?:[\\/]*)
4851: ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4852: ;;
4853: *)
4854: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855: for as_dir in $PATH
4856: do
4857: IFS=$as_save_IFS
4858: test -z "$as_dir" && as_dir=.
4859: for ac_exec_ext in '' $ac_executable_extensions; do
4860: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4861: ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4862: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4863: break 2
4864: fi
4865: done
4866: done
4867: IFS=$as_save_IFS
4868:
4869: ;;
4870: esac
4871: fi
4872: ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4873: if test -n "$ac_pt_PKG_CONFIG"; then
4874: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4875: $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4876: else
4877: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4878: $as_echo "no" >&6; }
4879: fi
4880:
4881: if test "x$ac_pt_PKG_CONFIG" = x; then
4882: PKG_CONFIG=""
4883: else
4884: case $cross_compiling:$ac_tool_warned in
4885: yes:)
4886: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4887: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4888: ac_tool_warned=yes ;;
4889: esac
4890: PKG_CONFIG=$ac_pt_PKG_CONFIG
4891: fi
4892: else
4893: PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4894: fi
4895:
4896: fi
4897: if test -n "$PKG_CONFIG"; then
4898: _pkg_min_version=0.9.0
4899: { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4900: $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4901: if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4902: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4903: $as_echo "yes" >&6; }
4904: else
4905: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4906: $as_echo "no" >&6; }
4907: PKG_CONFIG=""
4908: fi
4909: fi
4910:
4911: pkg_failed=no
4912: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BDW_GC" >&5
4913: $as_echo_n "checking for BDW_GC... " >&6; }
4914:
4915: if test -n "$BDW_GC_CFLAGS"; then
4916: pkg_cv_BDW_GC_CFLAGS="$BDW_GC_CFLAGS"
4917: elif test -n "$PKG_CONFIG"; then
4918: if test -n "$PKG_CONFIG" && \
4919: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bdw-gc\""; } >&5
4920: ($PKG_CONFIG --exists --print-errors "bdw-gc") 2>&5
4921: ac_status=$?
4922: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4923: test $ac_status = 0; }; then
4924: pkg_cv_BDW_GC_CFLAGS=`$PKG_CONFIG --cflags "bdw-gc" 2>/dev/null`
4925: test "x$?" != "x0" && pkg_failed=yes
4926: else
4927: pkg_failed=yes
4928: fi
4929: else
4930: pkg_failed=untried
4931: fi
4932: if test -n "$BDW_GC_LIBS"; then
4933: pkg_cv_BDW_GC_LIBS="$BDW_GC_LIBS"
4934: elif test -n "$PKG_CONFIG"; then
4935: if test -n "$PKG_CONFIG" && \
4936: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bdw-gc\""; } >&5
4937: ($PKG_CONFIG --exists --print-errors "bdw-gc") 2>&5
4938: ac_status=$?
4939: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4940: test $ac_status = 0; }; then
4941: pkg_cv_BDW_GC_LIBS=`$PKG_CONFIG --libs "bdw-gc" 2>/dev/null`
4942: test "x$?" != "x0" && pkg_failed=yes
4943: else
4944: pkg_failed=yes
4945: fi
4946: else
4947: pkg_failed=untried
4948: fi
4949:
4950:
4951:
4952: if test $pkg_failed = yes; then
4953: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4954: $as_echo "no" >&6; }
4955:
4956: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4957: _pkg_short_errors_supported=yes
4958: else
4959: _pkg_short_errors_supported=no
4960: fi
4961: if test $_pkg_short_errors_supported = yes; then
4962: BDW_GC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bdw-gc" 2>&1`
4963: else
4964: BDW_GC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bdw-gc" 2>&1`
4965: fi
4966: # Put the nasty error message in config.log where it belongs
4967: echo "$BDW_GC_PKG_ERRORS" >&5
4968:
4969: as_fn_error $? "Package requirements (bdw-gc) were not met:
4970:
4971: $BDW_GC_PKG_ERRORS
4972:
4973: Consider adjusting the PKG_CONFIG_PATH environment variable if you
4974: installed software in a non-standard prefix.
4975:
4976: Alternatively, you may set the environment variables BDW_GC_CFLAGS
4977: and BDW_GC_LIBS to avoid the need to call pkg-config.
4978: See the pkg-config man page for more details." "$LINENO" 5
4979: elif test $pkg_failed = untried; then
4980: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4981: $as_echo "no" >&6; }
4982: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4983: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4984: as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
4985: is in your PATH or set the PKG_CONFIG environment variable to the full
4986: path to pkg-config.
4987:
4988: Alternatively, you may set the environment variables BDW_GC_CFLAGS
4989: and BDW_GC_LIBS to avoid the need to call pkg-config.
4990: See the pkg-config man page for more details.
4991:
4992: To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4993: See \`config.log' for more details" "$LINENO" 5; }
4994: else
4995: BDW_GC_CFLAGS=$pkg_cv_BDW_GC_CFLAGS
4996: BDW_GC_LIBS=$pkg_cv_BDW_GC_LIBS
4997: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4998: $as_echo "yes" >&6; }
4999:
5000: fi
5001:
5002: if test "X$prefix" = "XNONE"; then
5003: acl_final_prefix="$ac_default_prefix"
5004: else
5005: acl_final_prefix="$prefix"
5006: fi
5007: if test "X$exec_prefix" = "XNONE"; then
5008: acl_final_exec_prefix='${prefix}'
5009: else
5010: acl_final_exec_prefix="$exec_prefix"
5011: fi
5012: acl_save_prefix="$prefix"
5013: prefix="$acl_final_prefix"
5014: eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5015: prefix="$acl_save_prefix"
5016:
5017: # Make sure we can run config.sub.
5018: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5019: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5020:
5021: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5022: $as_echo_n "checking build system type... " >&6; }
5023: if ${ac_cv_build+:} false; then :
5024: $as_echo_n "(cached) " >&6
5025: else
5026: ac_build_alias=$build_alias
5027: test "x$ac_build_alias" = x &&
5028: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5029: test "x$ac_build_alias" = x &&
5030: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5031: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5032: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5033:
5034: fi
5035: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5036: $as_echo "$ac_cv_build" >&6; }
5037: case $ac_cv_build in
5038: *-*-*) ;;
5039: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5040: esac
5041: build=$ac_cv_build
5042: ac_save_IFS=$IFS; IFS='-'
5043: set x $ac_cv_build
5044: shift
5045: build_cpu=$1
5046: build_vendor=$2
5047: shift; shift
5048: # Remember, the first character of IFS is used to create $*,
5049: # except with old shells:
5050: build_os=$*
5051: IFS=$ac_save_IFS
5052: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5053:
5054:
5055: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5056: $as_echo_n "checking host system type... " >&6; }
5057: if ${ac_cv_host+:} false; then :
5058: $as_echo_n "(cached) " >&6
5059: else
5060: if test "x$host_alias" = x; then
5061: ac_cv_host=$ac_cv_build
5062: else
5063: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5064: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5065: fi
5066:
5067: fi
5068: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5069: $as_echo "$ac_cv_host" >&6; }
5070: case $ac_cv_host in
5071: *-*-*) ;;
5072: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5073: esac
5074: host=$ac_cv_host
5075: ac_save_IFS=$IFS; IFS='-'
5076: set x $ac_cv_host
5077: shift
5078: host_cpu=$1
5079: host_vendor=$2
5080: shift; shift
5081: # Remember, the first character of IFS is used to create $*,
5082: # except with old shells:
5083: host_os=$*
5084: IFS=$ac_save_IFS
5085: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5086:
5087:
5088:
5089:
5090: # Check whether --with-gnu-ld was given.
5091: if test "${with_gnu_ld+set}" = set; then :
5092: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5093: else
5094: with_gnu_ld=no
5095: fi
5096:
5097: # Prepare PATH_SEPARATOR.
5098: # The user is always right.
5099: if test "${PATH_SEPARATOR+set}" != set; then
5100: # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5101: # contains only /bin. Note that ksh looks also at the FPATH variable,
5102: # so we have to set that as well for the test.
5103: PATH_SEPARATOR=:
5104: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5105: && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5106: || PATH_SEPARATOR=';'
5107: }
5108: fi
5109:
5110: ac_prog=ld
5111: if test "$GCC" = yes; then
5112: # Check if gcc -print-prog-name=ld gives a path.
5113: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5114: $as_echo_n "checking for ld used by $CC... " >&6; }
5115: case $host in
5116: *-*-mingw*)
5117: # gcc leaves a trailing carriage return which upsets mingw
5118: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5119: *)
5120: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5121: esac
5122: case $ac_prog in
5123: # Accept absolute paths.
5124: [\\/]* | ?:[\\/]*)
5125: re_direlt='/[^/][^/]*/\.\./'
5126: # Canonicalize the pathname of ld
5127: ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
5128: while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
5129: ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5130: done
5131: test -z "$LD" && LD="$ac_prog"
5132: ;;
5133: "")
5134: # If it fails, then pretend we aren't using GCC.
5135: ac_prog=ld
5136: ;;
5137: *)
5138: # If it is relative, then search for the first ld in PATH.
5139: with_gnu_ld=unknown
5140: ;;
5141: esac
5142: elif test "$with_gnu_ld" = yes; then
5143: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5144: $as_echo_n "checking for GNU ld... " >&6; }
5145: else
5146: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5147: $as_echo_n "checking for non-GNU ld... " >&6; }
5148: fi
5149: if ${acl_cv_path_LD+:} false; then :
5150: $as_echo_n "(cached) " >&6
5151: else
5152: if test -z "$LD"; then
5153: acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5154: for ac_dir in $PATH; do
5155: IFS="$acl_save_ifs"
5156: test -z "$ac_dir" && ac_dir=.
5157: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5158: acl_cv_path_LD="$ac_dir/$ac_prog"
5159: # Check to see if the program is GNU ld. I'd rather use --version,
5160: # but apparently some variants of GNU ld only accept -v.
5161: # Break only if it was the GNU/non-GNU ld that we prefer.
5162: case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
5163: *GNU* | *'with BFD'*)
5164: test "$with_gnu_ld" != no && break
5165: ;;
5166: *)
5167: test "$with_gnu_ld" != yes && break
5168: ;;
5169: esac
5170: fi
5171: done
5172: IFS="$acl_save_ifs"
5173: else
5174: acl_cv_path_LD="$LD" # Let the user override the test with a path.
5175: fi
5176: fi
5177:
5178: LD="$acl_cv_path_LD"
5179: if test -n "$LD"; then
5180: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5181: $as_echo "$LD" >&6; }
5182: else
5183: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184: $as_echo "no" >&6; }
5185: fi
5186: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5187: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5188: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5189: if ${acl_cv_prog_gnu_ld+:} false; then :
5190: $as_echo_n "(cached) " >&6
5191: else
5192: # I'd rather use --version here, but apparently some GNU lds only accept -v.
5193: case `$LD -v 2>&1 </dev/null` in
5194: *GNU* | *'with BFD'*)
5195: acl_cv_prog_gnu_ld=yes
5196: ;;
5197: *)
5198: acl_cv_prog_gnu_ld=no
5199: ;;
5200: esac
5201: fi
5202: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5203: $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5204: with_gnu_ld=$acl_cv_prog_gnu_ld
5205:
5206:
5207:
5208:
5209: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5210: $as_echo_n "checking for shared library run path origin... " >&6; }
5211: if ${acl_cv_rpath+:} false; then :
5212: $as_echo_n "(cached) " >&6
5213: else
5214:
5215: CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5216: ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5217: . ./conftest.sh
5218: rm -f ./conftest.sh
5219: acl_cv_rpath=done
5220:
5221: fi
5222: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5223: $as_echo "$acl_cv_rpath" >&6; }
5224: wl="$acl_cv_wl"
5225: acl_libext="$acl_cv_libext"
5226: acl_shlibext="$acl_cv_shlibext"
5227: acl_libname_spec="$acl_cv_libname_spec"
5228: acl_library_names_spec="$acl_cv_library_names_spec"
5229: acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5230: acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5231: acl_hardcode_direct="$acl_cv_hardcode_direct"
5232: acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5233: # Check whether --enable-rpath was given.
5234: if test "${enable_rpath+set}" = set; then :
5235: enableval=$enable_rpath; :
5236: else
5237: enable_rpath=yes
5238: fi
5239:
5240:
5241: ac_ext=c
5242: ac_cpp='$CPP $CPPFLAGS'
5243: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5244: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5245: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5246: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5247: $as_echo_n "checking how to run the C preprocessor... " >&6; }
5248: # On Suns, sometimes $CPP names a directory.
5249: if test -n "$CPP" && test -d "$CPP"; then
5250: CPP=
5251: fi
5252: if test -z "$CPP"; then
5253: if ${ac_cv_prog_CPP+:} false; then :
5254: $as_echo_n "(cached) " >&6
5255: else
5256: # Double quotes because CPP needs to be expanded
5257: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5258: do
5259: ac_preproc_ok=false
5260: for ac_c_preproc_warn_flag in '' yes
5261: do
5262: # Use a header file that comes with gcc, so configuring glibc
5263: # with a fresh cross-compiler works.
5264: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5265: # <limits.h> exists even on freestanding compilers.
5266: # On the NeXT, cc -E runs the code through the compiler's parser,
5267: # not just through cpp. "Syntax error" is here to catch this case.
5268: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269: /* end confdefs.h. */
5270: #ifdef __STDC__
5271: # include <limits.h>
5272: #else
5273: # include <assert.h>
5274: #endif
5275: Syntax error
5276: _ACEOF
5277: if ac_fn_c_try_cpp "$LINENO"; then :
5278:
5279: else
5280: # Broken: fails on valid input.
5281: continue
5282: fi
5283: rm -f conftest.err conftest.i conftest.$ac_ext
5284:
5285: # OK, works on sane cases. Now check whether nonexistent headers
5286: # can be detected and how.
5287: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288: /* end confdefs.h. */
5289: #include <ac_nonexistent.h>
5290: _ACEOF
5291: if ac_fn_c_try_cpp "$LINENO"; then :
5292: # Broken: success on invalid input.
5293: continue
5294: else
5295: # Passes both tests.
5296: ac_preproc_ok=:
5297: break
5298: fi
5299: rm -f conftest.err conftest.i conftest.$ac_ext
5300:
5301: done
5302: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5303: rm -f conftest.i conftest.err conftest.$ac_ext
5304: if $ac_preproc_ok; then :
5305: break
5306: fi
5307:
5308: done
5309: ac_cv_prog_CPP=$CPP
5310:
5311: fi
5312: CPP=$ac_cv_prog_CPP
5313: else
5314: ac_cv_prog_CPP=$CPP
5315: fi
5316: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5317: $as_echo "$CPP" >&6; }
5318: ac_preproc_ok=false
5319: for ac_c_preproc_warn_flag in '' yes
5320: do
5321: # Use a header file that comes with gcc, so configuring glibc
5322: # with a fresh cross-compiler works.
5323: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5324: # <limits.h> exists even on freestanding compilers.
5325: # On the NeXT, cc -E runs the code through the compiler's parser,
5326: # not just through cpp. "Syntax error" is here to catch this case.
5327: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328: /* end confdefs.h. */
5329: #ifdef __STDC__
5330: # include <limits.h>
5331: #else
5332: # include <assert.h>
5333: #endif
5334: Syntax error
5335: _ACEOF
5336: if ac_fn_c_try_cpp "$LINENO"; then :
5337:
5338: else
5339: # Broken: fails on valid input.
5340: continue
5341: fi
5342: rm -f conftest.err conftest.i conftest.$ac_ext
5343:
5344: # OK, works on sane cases. Now check whether nonexistent headers
5345: # can be detected and how.
5346: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5347: /* end confdefs.h. */
5348: #include <ac_nonexistent.h>
5349: _ACEOF
5350: if ac_fn_c_try_cpp "$LINENO"; then :
5351: # Broken: success on invalid input.
5352: continue
5353: else
5354: # Passes both tests.
5355: ac_preproc_ok=:
5356: break
5357: fi
5358: rm -f conftest.err conftest.i conftest.$ac_ext
5359:
5360: done
5361: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5362: rm -f conftest.i conftest.err conftest.$ac_ext
5363: if $ac_preproc_ok; then :
5364:
5365: else
5366: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5367: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5368: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5369: See \`config.log' for more details" "$LINENO" 5; }
5370: fi
5371:
5372: ac_ext=c
5373: ac_cpp='$CPP $CPPFLAGS'
5374: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5375: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5376: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5377:
5378:
5379:
5380:
5381: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
5382: $as_echo_n "checking for the common suffixes of directories in the library search path... " >&6; }
5383: if ${acl_cv_libdirstems+:} false; then :
5384: $as_echo_n "(cached) " >&6
5385: else
5386: acl_libdirstem=lib
5387: acl_libdirstem2=
5388: case "$host_os" in
5389: solaris*)
5390: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5391: $as_echo_n "checking for 64-bit host... " >&6; }
5392: if ${gl_cv_solaris_64bit+:} false; then :
5393: $as_echo_n "(cached) " >&6
5394: else
5395: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5396: /* end confdefs.h. */
5397:
5398: #ifdef _LP64
5399: sixtyfour bits
5400: #endif
5401:
5402: _ACEOF
5403: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5404: $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5405: gl_cv_solaris_64bit=yes
5406: else
5407: gl_cv_solaris_64bit=no
5408: fi
5409: rm -f conftest*
5410:
5411:
5412: fi
5413: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5414: $as_echo "$gl_cv_solaris_64bit" >&6; }
5415: if test $gl_cv_solaris_64bit = yes; then
5416: acl_libdirstem=lib/64
5417: case "$host_cpu" in
5418: sparc*) acl_libdirstem2=lib/sparcv9 ;;
5419: i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5420: esac
5421: fi
5422: ;;
5423: *)
5424: searchpath=`(if test -f /usr/bin/gcc \
5425: && LC_ALL=C /usr/bin/gcc -print-search-dirs >/dev/null 2>/dev/null; then \
5426: LC_ALL=C /usr/bin/gcc -print-search-dirs; \
5427: else \
5428: LC_ALL=C $CC -print-search-dirs; \
5429: fi) 2>/dev/null \
5430: | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5431: if test -n "$searchpath"; then
5432: acl_save_IFS="${IFS= }"; IFS=":"
5433: for searchdir in $searchpath; do
5434: if test -d "$searchdir"; then
5435: case "$searchdir" in
5436: */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5437: */../ | */.. )
5438: # Better ignore directories of this form. They are misleading.
5439: ;;
5440: *) searchdir=`cd "$searchdir" && pwd`
5441: case "$searchdir" in
5442: */lib64 ) acl_libdirstem=lib64 ;;
5443: esac ;;
5444: esac
5445: fi
5446: done
5447: IFS="$acl_save_IFS"
5448: fi
5449: ;;
5450: esac
5451: test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5452: acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2"
5453:
5454: fi
5455: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
5456: $as_echo "$acl_cv_libdirstems" >&6; }
5457: # Decompose acl_cv_libdirstems into acl_libdirstem and acl_libdirstem2.
5458: acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
5459: acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e '/,/s/.*,//'`
5460:
5461:
5462:
5463:
5464:
5465:
5466:
5467:
5468:
5469:
5470:
5471:
5472:
5473:
5474:
5475: use_additional=yes
5476:
5477: acl_save_prefix="$prefix"
5478: prefix="$acl_final_prefix"
5479: acl_save_exec_prefix="$exec_prefix"
5480: exec_prefix="$acl_final_exec_prefix"
5481:
5482: eval additional_includedir=\"$includedir\"
5483: eval additional_libdir=\"$libdir\"
5484:
5485: exec_prefix="$acl_save_exec_prefix"
5486: prefix="$acl_save_prefix"
5487:
5488:
5489: # Check whether --with-libsigsegv-prefix was given.
5490: if test "${with_libsigsegv_prefix+set}" = set; then :
5491: withval=$with_libsigsegv_prefix;
5492: if test "X$withval" = "Xno"; then
5493: use_additional=no
5494: else
5495: if test "X$withval" = "X"; then
5496:
5497: acl_save_prefix="$prefix"
5498: prefix="$acl_final_prefix"
5499: acl_save_exec_prefix="$exec_prefix"
5500: exec_prefix="$acl_final_exec_prefix"
5501:
5502: eval additional_includedir=\"$includedir\"
5503: eval additional_libdir=\"$libdir\"
5504:
5505: exec_prefix="$acl_save_exec_prefix"
5506: prefix="$acl_save_prefix"
5507:
5508: else
5509: additional_includedir="$withval/include"
5510: additional_libdir="$withval/$acl_libdirstem"
5511: if test "$acl_libdirstem2" != "$acl_libdirstem" \
5512: && ! test -d "$withval/$acl_libdirstem"; then
5513: additional_libdir="$withval/$acl_libdirstem2"
5514: fi
5515: fi
5516: fi
5517:
5518: fi
5519:
5520: LIBSIGSEGV=
5521: LTLIBSIGSEGV=
5522: INCSIGSEGV=
5523: LIBSIGSEGV_PREFIX=
5524: HAVE_LIBSIGSEGV=
5525: rpathdirs=
5526: ltrpathdirs=
5527: names_already_handled=
5528: names_next_round='sigsegv '
5529: while test -n "$names_next_round"; do
5530: names_this_round="$names_next_round"
5531: names_next_round=
5532: for name in $names_this_round; do
5533: already_handled=
5534: for n in $names_already_handled; do
5535: if test "$n" = "$name"; then
5536: already_handled=yes
5537: break
5538: fi
5539: done
5540: if test -z "$already_handled"; then
5541: names_already_handled="$names_already_handled $name"
5542: uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
5543: eval value=\"\$HAVE_LIB$uppername\"
5544: if test -n "$value"; then
5545: if test "$value" = yes; then
5546: eval value=\"\$LIB$uppername\"
5547: test -z "$value" || LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$value"
5548: eval value=\"\$LTLIB$uppername\"
5549: test -z "$value" || LTLIBSIGSEGV="${LTLIBSIGSEGV}${LTLIBSIGSEGV:+ }$value"
5550: else
5551: :
5552: fi
5553: else
5554: found_dir=
5555: found_la=
5556: found_so=
5557: found_a=
5558: eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5559: if test -n "$acl_shlibext"; then
5560: shrext=".$acl_shlibext" # typically: shrext=.so
5561: else
5562: shrext=
5563: fi
5564: if test $use_additional = yes; then
5565: dir="$additional_libdir"
5566: if test -n "$acl_shlibext"; then
5567: if test -f "$dir/$libname$shrext"; then
5568: found_dir="$dir"
5569: found_so="$dir/$libname$shrext"
5570: else
5571: if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5572: ver=`(cd "$dir" && \
5573: for f in "$libname$shrext".*; do echo "$f"; done \
5574: | sed -e "s,^$libname$shrext\\\\.,," \
5575: | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5576: | sed 1q ) 2>/dev/null`
5577: if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5578: found_dir="$dir"
5579: found_so="$dir/$libname$shrext.$ver"
5580: fi
5581: else
5582: eval library_names=\"$acl_library_names_spec\"
5583: for f in $library_names; do
5584: if test -f "$dir/$f"; then
5585: found_dir="$dir"
5586: found_so="$dir/$f"
5587: break
5588: fi
5589: done
5590: fi
5591: fi
5592: fi
5593: if test "X$found_dir" = "X"; then
5594: if test -f "$dir/$libname.$acl_libext"; then
5595: found_dir="$dir"
5596: found_a="$dir/$libname.$acl_libext"
5597: fi
5598: fi
5599: if test "X$found_dir" != "X"; then
5600: if test -f "$dir/$libname.la"; then
5601: found_la="$dir/$libname.la"
5602: fi
5603: fi
5604: fi
5605: if test "X$found_dir" = "X"; then
5606: for x in $LDFLAGS $LTLIBSIGSEGV; do
5607:
5608: acl_save_prefix="$prefix"
5609: prefix="$acl_final_prefix"
5610: acl_save_exec_prefix="$exec_prefix"
5611: exec_prefix="$acl_final_exec_prefix"
5612: eval x=\"$x\"
5613: exec_prefix="$acl_save_exec_prefix"
5614: prefix="$acl_save_prefix"
5615:
5616: case "$x" in
5617: -L*)
5618: dir=`echo "X$x" | sed -e 's/^X-L//'`
5619: if test -n "$acl_shlibext"; then
5620: if test -f "$dir/$libname$shrext"; then
5621: found_dir="$dir"
5622: found_so="$dir/$libname$shrext"
5623: else
5624: if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5625: ver=`(cd "$dir" && \
5626: for f in "$libname$shrext".*; do echo "$f"; done \
5627: | sed -e "s,^$libname$shrext\\\\.,," \
5628: | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5629: | sed 1q ) 2>/dev/null`
5630: if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5631: found_dir="$dir"
5632: found_so="$dir/$libname$shrext.$ver"
5633: fi
5634: else
5635: eval library_names=\"$acl_library_names_spec\"
5636: for f in $library_names; do
5637: if test -f "$dir/$f"; then
5638: found_dir="$dir"
5639: found_so="$dir/$f"
5640: break
5641: fi
5642: done
5643: fi
5644: fi
5645: fi
5646: if test "X$found_dir" = "X"; then
5647: if test -f "$dir/$libname.$acl_libext"; then
5648: found_dir="$dir"
5649: found_a="$dir/$libname.$acl_libext"
5650: fi
5651: fi
5652: if test "X$found_dir" != "X"; then
5653: if test -f "$dir/$libname.la"; then
5654: found_la="$dir/$libname.la"
5655: fi
5656: fi
5657: ;;
5658: esac
5659: if test "X$found_dir" != "X"; then
5660: break
5661: fi
5662: done
5663: fi
5664: if test "X$found_dir" != "X"; then
5665: LTLIBSIGSEGV="${LTLIBSIGSEGV}${LTLIBSIGSEGV:+ }-L$found_dir -l$name"
5666: if test "X$found_so" != "X"; then
5667: if test "$enable_rpath" = no \
5668: || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5669: || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5670: LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$found_so"
5671: else
5672: haveit=
5673: for x in $ltrpathdirs; do
5674: if test "X$x" = "X$found_dir"; then
5675: haveit=yes
5676: break
5677: fi
5678: done
5679: if test -z "$haveit"; then
5680: ltrpathdirs="$ltrpathdirs $found_dir"
5681: fi
5682: if test "$acl_hardcode_direct" = yes; then
5683: LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$found_so"
5684: else
5685: if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5686: LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$found_so"
5687: haveit=
5688: for x in $rpathdirs; do
5689: if test "X$x" = "X$found_dir"; then
5690: haveit=yes
5691: break
5692: fi
5693: done
5694: if test -z "$haveit"; then
5695: rpathdirs="$rpathdirs $found_dir"
5696: fi
5697: else
5698: haveit=
5699: for x in $LDFLAGS $LIBSIGSEGV; do
5700:
5701: acl_save_prefix="$prefix"
5702: prefix="$acl_final_prefix"
5703: acl_save_exec_prefix="$exec_prefix"
5704: exec_prefix="$acl_final_exec_prefix"
5705: eval x=\"$x\"
5706: exec_prefix="$acl_save_exec_prefix"
5707: prefix="$acl_save_prefix"
5708:
5709: if test "X$x" = "X-L$found_dir"; then
5710: haveit=yes
5711: break
5712: fi
5713: done
5714: if test -z "$haveit"; then
5715: LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }-L$found_dir"
5716: fi
5717: if test "$acl_hardcode_minus_L" != no; then
5718: LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$found_so"
5719: else
5720: LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }-l$name"
5721: fi
5722: fi
5723: fi
5724: fi
5725: else
5726: if test "X$found_a" != "X"; then
5727: LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$found_a"
5728: else
5729: LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }-L$found_dir -l$name"
5730: fi
5731: fi
5732: additional_includedir=
5733: case "$found_dir" in
5734: */$acl_libdirstem | */$acl_libdirstem/)
5735: basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5736: if test "$name" = 'sigsegv'; then
5737: LIBSIGSEGV_PREFIX="$basedir"
5738: fi
5739: additional_includedir="$basedir/include"
5740: ;;
5741: */$acl_libdirstem2 | */$acl_libdirstem2/)
5742: basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5743: if test "$name" = 'sigsegv'; then
5744: LIBSIGSEGV_PREFIX="$basedir"
5745: fi
5746: additional_includedir="$basedir/include"
5747: ;;
5748: esac
5749: if test "X$additional_includedir" != "X"; then
5750: if test "X$additional_includedir" != "X/usr/include"; then
5751: haveit=
5752: if test "X$additional_includedir" = "X/usr/local/include"; then
5753: if test -n "$GCC"; then
5754: case $host_os in
5755: linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5756: esac
5757: fi
5758: fi
5759: if test -z "$haveit"; then
5760: for x in $CPPFLAGS $INCSIGSEGV; do
5761:
5762: acl_save_prefix="$prefix"
5763: prefix="$acl_final_prefix"
5764: acl_save_exec_prefix="$exec_prefix"
5765: exec_prefix="$acl_final_exec_prefix"
5766: eval x=\"$x\"
5767: exec_prefix="$acl_save_exec_prefix"
5768: prefix="$acl_save_prefix"
5769:
5770: if test "X$x" = "X-I$additional_includedir"; then
5771: haveit=yes
5772: break
5773: fi
5774: done
5775: if test -z "$haveit"; then
5776: if test -d "$additional_includedir"; then
5777: INCSIGSEGV="${INCSIGSEGV}${INCSIGSEGV:+ }-I$additional_includedir"
5778: fi
5779: fi
5780: fi
5781: fi
5782: fi
5783: if test -n "$found_la"; then
5784: save_libdir="$libdir"
5785: case "$found_la" in
5786: */* | *\\*) . "$found_la" ;;
5787: *) . "./$found_la" ;;
5788: esac
5789: libdir="$save_libdir"
5790: for dep in $dependency_libs; do
5791: case "$dep" in
5792: -L*)
5793: additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5794: if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5795: && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5796: haveit=
5797: if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5798: || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5799: if test -n "$GCC"; then
5800: case $host_os in
5801: linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5802: esac
5803: fi
5804: fi
5805: if test -z "$haveit"; then
5806: haveit=
5807: for x in $LDFLAGS $LIBSIGSEGV; do
5808:
5809: acl_save_prefix="$prefix"
5810: prefix="$acl_final_prefix"
5811: acl_save_exec_prefix="$exec_prefix"
5812: exec_prefix="$acl_final_exec_prefix"
5813: eval x=\"$x\"
5814: exec_prefix="$acl_save_exec_prefix"
5815: prefix="$acl_save_prefix"
5816:
5817: if test "X$x" = "X-L$additional_libdir"; then
5818: haveit=yes
5819: break
5820: fi
5821: done
5822: if test -z "$haveit"; then
5823: if test -d "$additional_libdir"; then
5824: LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }-L$additional_libdir"
5825: fi
5826: fi
5827: haveit=
5828: for x in $LDFLAGS $LTLIBSIGSEGV; do
5829:
5830: acl_save_prefix="$prefix"
5831: prefix="$acl_final_prefix"
5832: acl_save_exec_prefix="$exec_prefix"
5833: exec_prefix="$acl_final_exec_prefix"
5834: eval x=\"$x\"
5835: exec_prefix="$acl_save_exec_prefix"
5836: prefix="$acl_save_prefix"
5837:
5838: if test "X$x" = "X-L$additional_libdir"; then
5839: haveit=yes
5840: break
5841: fi
5842: done
5843: if test -z "$haveit"; then
5844: if test -d "$additional_libdir"; then
5845: LTLIBSIGSEGV="${LTLIBSIGSEGV}${LTLIBSIGSEGV:+ }-L$additional_libdir"
5846: fi
5847: fi
5848: fi
5849: fi
5850: ;;
5851: -R*)
5852: dir=`echo "X$dep" | sed -e 's/^X-R//'`
5853: if test "$enable_rpath" != no; then
5854: haveit=
5855: for x in $rpathdirs; do
5856: if test "X$x" = "X$dir"; then
5857: haveit=yes
5858: break
5859: fi
5860: done
5861: if test -z "$haveit"; then
5862: rpathdirs="$rpathdirs $dir"
5863: fi
5864: haveit=
5865: for x in $ltrpathdirs; do
5866: if test "X$x" = "X$dir"; then
5867: haveit=yes
5868: break
5869: fi
5870: done
5871: if test -z "$haveit"; then
5872: ltrpathdirs="$ltrpathdirs $dir"
5873: fi
5874: fi
5875: ;;
5876: -l*)
5877: names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5878: ;;
5879: *.la)
5880: names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5881: ;;
5882: *)
5883: LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$dep"
5884: LTLIBSIGSEGV="${LTLIBSIGSEGV}${LTLIBSIGSEGV:+ }$dep"
5885: ;;
5886: esac
5887: done
5888: fi
5889: else
5890: LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }-l$name"
5891: LTLIBSIGSEGV="${LTLIBSIGSEGV}${LTLIBSIGSEGV:+ }-l$name"
5892: fi
5893: fi
5894: fi
5895: done
5896: done
5897: if test "X$rpathdirs" != "X"; then
5898: if test -n "$acl_hardcode_libdir_separator"; then
5899: alldirs=
5900: for found_dir in $rpathdirs; do
5901: alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5902: done
5903: acl_save_libdir="$libdir"
5904: libdir="$alldirs"
5905: eval flag=\"$acl_hardcode_libdir_flag_spec\"
5906: libdir="$acl_save_libdir"
5907: LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$flag"
5908: else
5909: for found_dir in $rpathdirs; do
5910: acl_save_libdir="$libdir"
5911: libdir="$found_dir"
5912: eval flag=\"$acl_hardcode_libdir_flag_spec\"
5913: libdir="$acl_save_libdir"
5914: LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$flag"
5915: done
5916: fi
5917: fi
5918: if test "X$ltrpathdirs" != "X"; then
5919: for found_dir in $ltrpathdirs; do
5920: LTLIBSIGSEGV="${LTLIBSIGSEGV}${LTLIBSIGSEGV:+ }-R$found_dir"
5921: done
5922: fi
5923:
5924:
5925:
5926:
5927:
5928:
5929:
5930: ac_save_CPPFLAGS="$CPPFLAGS"
5931:
5932: for element in $INCSIGSEGV; do
5933: haveit=
5934: for x in $CPPFLAGS; do
5935:
5936: acl_save_prefix="$prefix"
5937: prefix="$acl_final_prefix"
5938: acl_save_exec_prefix="$exec_prefix"
5939: exec_prefix="$acl_final_exec_prefix"
5940: eval x=\"$x\"
5941: exec_prefix="$acl_save_exec_prefix"
5942: prefix="$acl_save_prefix"
5943:
5944: if test "X$x" = "X$element"; then
5945: haveit=yes
5946: break
5947: fi
5948: done
5949: if test -z "$haveit"; then
5950: CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5951: fi
5952: done
5953:
5954:
5955: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsigsegv" >&5
5956: $as_echo_n "checking for libsigsegv... " >&6; }
5957: if ${ac_cv_libsigsegv+:} false; then :
5958: $as_echo_n "(cached) " >&6
5959: else
5960:
5961: ac_save_LIBS="$LIBS"
5962: case " $LIBSIGSEGV" in
5963: *" -l"*) LIBS="$LIBS $LIBSIGSEGV" ;;
5964: *) LIBS="$LIBSIGSEGV $LIBS" ;;
5965: esac
5966: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5967: /* end confdefs.h. */
5968: #include <sigsegv.h>
5969: int
5970: main ()
5971: {
5972: sigsegv_deinstall_handler();
5973: ;
5974: return 0;
5975: }
5976: _ACEOF
5977: if ac_fn_c_try_link "$LINENO"; then :
5978: ac_cv_libsigsegv=yes
5979: else
5980: ac_cv_libsigsegv='as_fn_error $? "requires GNU libsigsegv" "$LINENO" 5'
5981: fi
5982: rm -f core conftest.err conftest.$ac_objext \
5983: conftest$ac_exeext conftest.$ac_ext
5984: LIBS="$ac_save_LIBS"
5985:
5986: fi
5987: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libsigsegv" >&5
5988: $as_echo "$ac_cv_libsigsegv" >&6; }
5989: if test "$ac_cv_libsigsegv" = yes; then
5990: HAVE_LIBSIGSEGV=yes
5991:
5992: $as_echo "#define HAVE_LIBSIGSEGV 1" >>confdefs.h
5993:
5994: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libsigsegv" >&5
5995: $as_echo_n "checking how to link with libsigsegv... " >&6; }
5996: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBSIGSEGV" >&5
5997: $as_echo "$LIBSIGSEGV" >&6; }
5998: else
5999: HAVE_LIBSIGSEGV=no
6000: CPPFLAGS="$ac_save_CPPFLAGS"
6001: LIBSIGSEGV=
6002: LTLIBSIGSEGV=
6003: LIBSIGSEGV_PREFIX=
6004: fi
6005:
6006:
6007:
6008:
6009:
6010:
6011:
6012: gl_cv_lib_sigsegv="$ac_cv_libsigsegv"
6013:
6014: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6015: $as_echo_n "checking for ANSI C header files... " >&6; }
6016: if ${ac_cv_header_stdc+:} false; then :
6017: $as_echo_n "(cached) " >&6
6018: else
6019: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6020: /* end confdefs.h. */
6021: #include <stdlib.h>
6022: #include <stdarg.h>
6023: #include <string.h>
6024: #include <float.h>
6025:
6026: int
6027: main ()
6028: {
6029:
6030: ;
6031: return 0;
6032: }
6033: _ACEOF
6034: if ac_fn_c_try_compile "$LINENO"; then :
6035: ac_cv_header_stdc=yes
6036: else
6037: ac_cv_header_stdc=no
6038: fi
6039: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6040:
6041: if test $ac_cv_header_stdc = yes; then
6042: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6043: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6044: /* end confdefs.h. */
6045: #include <string.h>
6046:
6047: _ACEOF
6048: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6049: $EGREP "memchr" >/dev/null 2>&1; then :
6050:
6051: else
6052: ac_cv_header_stdc=no
6053: fi
6054: rm -f conftest*
6055:
6056: fi
6057:
6058: if test $ac_cv_header_stdc = yes; then
6059: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6060: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6061: /* end confdefs.h. */
6062: #include <stdlib.h>
6063:
6064: _ACEOF
6065: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6066: $EGREP "free" >/dev/null 2>&1; then :
6067:
6068: else
6069: ac_cv_header_stdc=no
6070: fi
6071: rm -f conftest*
6072:
6073: fi
6074:
6075: if test $ac_cv_header_stdc = yes; then
6076: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6077: if test "$cross_compiling" = yes; then :
6078: :
6079: else
6080: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6081: /* end confdefs.h. */
6082: #include <ctype.h>
6083: #include <stdlib.h>
6084: #if ((' ' & 0x0FF) == 0x020)
6085: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6086: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6087: #else
6088: # define ISLOWER(c) \
6089: (('a' <= (c) && (c) <= 'i') \
6090: || ('j' <= (c) && (c) <= 'r') \
6091: || ('s' <= (c) && (c) <= 'z'))
6092: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6093: #endif
6094:
6095: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6096: int
6097: main ()
6098: {
6099: int i;
6100: for (i = 0; i < 256; i++)
6101: if (XOR (islower (i), ISLOWER (i))
6102: || toupper (i) != TOUPPER (i))
6103: return 2;
6104: return 0;
6105: }
6106: _ACEOF
6107: if ac_fn_c_try_run "$LINENO"; then :
6108:
6109: else
6110: ac_cv_header_stdc=no
6111: fi
6112: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6113: conftest.$ac_objext conftest.beam conftest.$ac_ext
6114: fi
6115:
6116: fi
6117: fi
6118: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6119: $as_echo "$ac_cv_header_stdc" >&6; }
6120: if test $ac_cv_header_stdc = yes; then
6121:
6122: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6123:
6124: fi
6125:
6126: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6127: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6128: inttypes.h stdint.h unistd.h
6129: do :
6130: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6131: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6132: "
6133: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6134: cat >>confdefs.h <<_ACEOF
6135: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6136: _ACEOF
6137:
6138: fi
6139:
6140: done
6141:
6142:
6143:
6144:
6145:
6146:
6147:
6148:
6149:
6150:
6151:
6152:
6153:
6154: use_additional=yes
6155:
6156: acl_save_prefix="$prefix"
6157: prefix="$acl_final_prefix"
6158: acl_save_exec_prefix="$exec_prefix"
6159: exec_prefix="$acl_final_exec_prefix"
6160:
6161: eval additional_includedir=\"$includedir\"
6162: eval additional_libdir=\"$libdir\"
6163:
6164: exec_prefix="$acl_save_exec_prefix"
6165: prefix="$acl_save_prefix"
6166:
6167:
6168: # Check whether --with-libreadline-prefix was given.
6169: if test "${with_libreadline_prefix+set}" = set; then :
6170: withval=$with_libreadline_prefix;
6171: if test "X$withval" = "Xno"; then
6172: use_additional=no
6173: else
6174: if test "X$withval" = "X"; then
6175:
6176: acl_save_prefix="$prefix"
6177: prefix="$acl_final_prefix"
6178: acl_save_exec_prefix="$exec_prefix"
6179: exec_prefix="$acl_final_exec_prefix"
6180:
6181: eval additional_includedir=\"$includedir\"
6182: eval additional_libdir=\"$libdir\"
6183:
6184: exec_prefix="$acl_save_exec_prefix"
6185: prefix="$acl_save_prefix"
6186:
6187: else
6188: additional_includedir="$withval/include"
6189: additional_libdir="$withval/$acl_libdirstem"
6190: if test "$acl_libdirstem2" != "$acl_libdirstem" \
6191: && ! test -d "$withval/$acl_libdirstem"; then
6192: additional_libdir="$withval/$acl_libdirstem2"
6193: fi
6194: fi
6195: fi
6196:
6197: fi
6198:
6199: LIBREADLINE=
6200: LTLIBREADLINE=
6201: INCREADLINE=
6202: LIBREADLINE_PREFIX=
6203: HAVE_LIBREADLINE=
6204: rpathdirs=
6205: ltrpathdirs=
6206: names_already_handled=
6207: names_next_round='readline '
6208: while test -n "$names_next_round"; do
6209: names_this_round="$names_next_round"
6210: names_next_round=
6211: for name in $names_this_round; do
6212: already_handled=
6213: for n in $names_already_handled; do
6214: if test "$n" = "$name"; then
6215: already_handled=yes
6216: break
6217: fi
6218: done
6219: if test -z "$already_handled"; then
6220: names_already_handled="$names_already_handled $name"
6221: uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
6222: eval value=\"\$HAVE_LIB$uppername\"
6223: if test -n "$value"; then
6224: if test "$value" = yes; then
6225: eval value=\"\$LIB$uppername\"
6226: test -z "$value" || LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$value"
6227: eval value=\"\$LTLIB$uppername\"
6228: test -z "$value" || LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }$value"
6229: else
6230: :
6231: fi
6232: else
6233: found_dir=
6234: found_la=
6235: found_so=
6236: found_a=
6237: eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6238: if test -n "$acl_shlibext"; then
6239: shrext=".$acl_shlibext" # typically: shrext=.so
6240: else
6241: shrext=
6242: fi
6243: if test $use_additional = yes; then
6244: dir="$additional_libdir"
6245: if test -n "$acl_shlibext"; then
6246: if test -f "$dir/$libname$shrext"; then
6247: found_dir="$dir"
6248: found_so="$dir/$libname$shrext"
6249: else
6250: if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6251: ver=`(cd "$dir" && \
6252: for f in "$libname$shrext".*; do echo "$f"; done \
6253: | sed -e "s,^$libname$shrext\\\\.,," \
6254: | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6255: | sed 1q ) 2>/dev/null`
6256: if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6257: found_dir="$dir"
6258: found_so="$dir/$libname$shrext.$ver"
6259: fi
6260: else
6261: eval library_names=\"$acl_library_names_spec\"
6262: for f in $library_names; do
6263: if test -f "$dir/$f"; then
6264: found_dir="$dir"
6265: found_so="$dir/$f"
6266: break
6267: fi
6268: done
6269: fi
6270: fi
6271: fi
6272: if test "X$found_dir" = "X"; then
6273: if test -f "$dir/$libname.$acl_libext"; then
6274: found_dir="$dir"
6275: found_a="$dir/$libname.$acl_libext"
6276: fi
6277: fi
6278: if test "X$found_dir" != "X"; then
6279: if test -f "$dir/$libname.la"; then
6280: found_la="$dir/$libname.la"
6281: fi
6282: fi
6283: fi
6284: if test "X$found_dir" = "X"; then
6285: for x in $LDFLAGS $LTLIBREADLINE; do
6286:
6287: acl_save_prefix="$prefix"
6288: prefix="$acl_final_prefix"
6289: acl_save_exec_prefix="$exec_prefix"
6290: exec_prefix="$acl_final_exec_prefix"
6291: eval x=\"$x\"
6292: exec_prefix="$acl_save_exec_prefix"
6293: prefix="$acl_save_prefix"
6294:
6295: case "$x" in
6296: -L*)
6297: dir=`echo "X$x" | sed -e 's/^X-L//'`
6298: if test -n "$acl_shlibext"; then
6299: if test -f "$dir/$libname$shrext"; then
6300: found_dir="$dir"
6301: found_so="$dir/$libname$shrext"
6302: else
6303: if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6304: ver=`(cd "$dir" && \
6305: for f in "$libname$shrext".*; do echo "$f"; done \
6306: | sed -e "s,^$libname$shrext\\\\.,," \
6307: | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6308: | sed 1q ) 2>/dev/null`
6309: if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6310: found_dir="$dir"
6311: found_so="$dir/$libname$shrext.$ver"
6312: fi
6313: else
6314: eval library_names=\"$acl_library_names_spec\"
6315: for f in $library_names; do
6316: if test -f "$dir/$f"; then
6317: found_dir="$dir"
6318: found_so="$dir/$f"
6319: break
6320: fi
6321: done
6322: fi
6323: fi
6324: fi
6325: if test "X$found_dir" = "X"; then
6326: if test -f "$dir/$libname.$acl_libext"; then
6327: found_dir="$dir"
6328: found_a="$dir/$libname.$acl_libext"
6329: fi
6330: fi
6331: if test "X$found_dir" != "X"; then
6332: if test -f "$dir/$libname.la"; then
6333: found_la="$dir/$libname.la"
6334: fi
6335: fi
6336: ;;
6337: esac
6338: if test "X$found_dir" != "X"; then
6339: break
6340: fi
6341: done
6342: fi
6343: if test "X$found_dir" != "X"; then
6344: LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }-L$found_dir -l$name"
6345: if test "X$found_so" != "X"; then
6346: if test "$enable_rpath" = no \
6347: || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6348: || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6349: LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$found_so"
6350: else
6351: haveit=
6352: for x in $ltrpathdirs; do
6353: if test "X$x" = "X$found_dir"; then
6354: haveit=yes
6355: break
6356: fi
6357: done
6358: if test -z "$haveit"; then
6359: ltrpathdirs="$ltrpathdirs $found_dir"
6360: fi
6361: if test "$acl_hardcode_direct" = yes; then
6362: LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$found_so"
6363: else
6364: if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6365: LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$found_so"
6366: haveit=
6367: for x in $rpathdirs; do
6368: if test "X$x" = "X$found_dir"; then
6369: haveit=yes
6370: break
6371: fi
6372: done
6373: if test -z "$haveit"; then
6374: rpathdirs="$rpathdirs $found_dir"
6375: fi
6376: else
6377: haveit=
6378: for x in $LDFLAGS $LIBREADLINE; do
6379:
6380: acl_save_prefix="$prefix"
6381: prefix="$acl_final_prefix"
6382: acl_save_exec_prefix="$exec_prefix"
6383: exec_prefix="$acl_final_exec_prefix"
6384: eval x=\"$x\"
6385: exec_prefix="$acl_save_exec_prefix"
6386: prefix="$acl_save_prefix"
6387:
6388: if test "X$x" = "X-L$found_dir"; then
6389: haveit=yes
6390: break
6391: fi
6392: done
6393: if test -z "$haveit"; then
6394: LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }-L$found_dir"
6395: fi
6396: if test "$acl_hardcode_minus_L" != no; then
6397: LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$found_so"
6398: else
6399: LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }-l$name"
6400: fi
6401: fi
6402: fi
6403: fi
6404: else
6405: if test "X$found_a" != "X"; then
6406: LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$found_a"
6407: else
6408: LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }-L$found_dir -l$name"
6409: fi
6410: fi
6411: additional_includedir=
6412: case "$found_dir" in
6413: */$acl_libdirstem | */$acl_libdirstem/)
6414: basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6415: if test "$name" = 'readline'; then
6416: LIBREADLINE_PREFIX="$basedir"
6417: fi
6418: additional_includedir="$basedir/include"
6419: ;;
6420: */$acl_libdirstem2 | */$acl_libdirstem2/)
6421: basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6422: if test "$name" = 'readline'; then
6423: LIBREADLINE_PREFIX="$basedir"
6424: fi
6425: additional_includedir="$basedir/include"
6426: ;;
6427: esac
6428: if test "X$additional_includedir" != "X"; then
6429: if test "X$additional_includedir" != "X/usr/include"; then
6430: haveit=
6431: if test "X$additional_includedir" = "X/usr/local/include"; then
6432: if test -n "$GCC"; then
6433: case $host_os in
6434: linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6435: esac
6436: fi
6437: fi
6438: if test -z "$haveit"; then
6439: for x in $CPPFLAGS $INCREADLINE; do
6440:
6441: acl_save_prefix="$prefix"
6442: prefix="$acl_final_prefix"
6443: acl_save_exec_prefix="$exec_prefix"
6444: exec_prefix="$acl_final_exec_prefix"
6445: eval x=\"$x\"
6446: exec_prefix="$acl_save_exec_prefix"
6447: prefix="$acl_save_prefix"
6448:
6449: if test "X$x" = "X-I$additional_includedir"; then
6450: haveit=yes
6451: break
6452: fi
6453: done
6454: if test -z "$haveit"; then
6455: if test -d "$additional_includedir"; then
6456: INCREADLINE="${INCREADLINE}${INCREADLINE:+ }-I$additional_includedir"
6457: fi
6458: fi
6459: fi
6460: fi
6461: fi
6462: if test -n "$found_la"; then
6463: save_libdir="$libdir"
6464: case "$found_la" in
6465: */* | *\\*) . "$found_la" ;;
6466: *) . "./$found_la" ;;
6467: esac
6468: libdir="$save_libdir"
6469: for dep in $dependency_libs; do
6470: case "$dep" in
6471: -L*)
6472: additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6473: if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6474: && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6475: haveit=
6476: if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6477: || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6478: if test -n "$GCC"; then
6479: case $host_os in
6480: linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6481: esac
6482: fi
6483: fi
6484: if test -z "$haveit"; then
6485: haveit=
6486: for x in $LDFLAGS $LIBREADLINE; do
6487:
6488: acl_save_prefix="$prefix"
6489: prefix="$acl_final_prefix"
6490: acl_save_exec_prefix="$exec_prefix"
6491: exec_prefix="$acl_final_exec_prefix"
6492: eval x=\"$x\"
6493: exec_prefix="$acl_save_exec_prefix"
6494: prefix="$acl_save_prefix"
6495:
6496: if test "X$x" = "X-L$additional_libdir"; then
6497: haveit=yes
6498: break
6499: fi
6500: done
6501: if test -z "$haveit"; then
6502: if test -d "$additional_libdir"; then
6503: LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }-L$additional_libdir"
6504: fi
6505: fi
6506: haveit=
6507: for x in $LDFLAGS $LTLIBREADLINE; do
6508:
6509: acl_save_prefix="$prefix"
6510: prefix="$acl_final_prefix"
6511: acl_save_exec_prefix="$exec_prefix"
6512: exec_prefix="$acl_final_exec_prefix"
6513: eval x=\"$x\"
6514: exec_prefix="$acl_save_exec_prefix"
6515: prefix="$acl_save_prefix"
6516:
6517: if test "X$x" = "X-L$additional_libdir"; then
6518: haveit=yes
6519: break
6520: fi
6521: done
6522: if test -z "$haveit"; then
6523: if test -d "$additional_libdir"; then
6524: LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }-L$additional_libdir"
6525: fi
6526: fi
6527: fi
6528: fi
6529: ;;
6530: -R*)
6531: dir=`echo "X$dep" | sed -e 's/^X-R//'`
6532: if test "$enable_rpath" != no; then
6533: haveit=
6534: for x in $rpathdirs; do
6535: if test "X$x" = "X$dir"; then
6536: haveit=yes
6537: break
6538: fi
6539: done
6540: if test -z "$haveit"; then
6541: rpathdirs="$rpathdirs $dir"
6542: fi
6543: haveit=
6544: for x in $ltrpathdirs; do
6545: if test "X$x" = "X$dir"; then
6546: haveit=yes
6547: break
6548: fi
6549: done
6550: if test -z "$haveit"; then
6551: ltrpathdirs="$ltrpathdirs $dir"
6552: fi
6553: fi
6554: ;;
6555: -l*)
6556: names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6557: ;;
6558: *.la)
6559: names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6560: ;;
6561: *)
6562: LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$dep"
6563: LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }$dep"
6564: ;;
6565: esac
6566: done
6567: fi
6568: else
6569: LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }-l$name"
6570: LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }-l$name"
6571: fi
6572: fi
6573: fi
6574: done
6575: done
6576: if test "X$rpathdirs" != "X"; then
6577: if test -n "$acl_hardcode_libdir_separator"; then
6578: alldirs=
6579: for found_dir in $rpathdirs; do
6580: alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6581: done
6582: acl_save_libdir="$libdir"
6583: libdir="$alldirs"
6584: eval flag=\"$acl_hardcode_libdir_flag_spec\"
6585: libdir="$acl_save_libdir"
6586: LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$flag"
6587: else
6588: for found_dir in $rpathdirs; do
6589: acl_save_libdir="$libdir"
6590: libdir="$found_dir"
6591: eval flag=\"$acl_hardcode_libdir_flag_spec\"
6592: libdir="$acl_save_libdir"
6593: LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$flag"
6594: done
6595: fi
6596: fi
6597: if test "X$ltrpathdirs" != "X"; then
6598: for found_dir in $ltrpathdirs; do
6599: LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }-R$found_dir"
6600: done
6601: fi
6602:
6603:
6604:
6605:
6606:
6607:
6608:
6609: am_save_CPPFLAGS="$CPPFLAGS"
6610:
6611: for element in $INCREADLINE; do
6612: haveit=
6613: for x in $CPPFLAGS; do
6614:
6615: acl_save_prefix="$prefix"
6616: prefix="$acl_final_prefix"
6617: acl_save_exec_prefix="$exec_prefix"
6618: exec_prefix="$acl_final_exec_prefix"
6619: eval x=\"$x\"
6620: exec_prefix="$acl_save_exec_prefix"
6621: prefix="$acl_save_prefix"
6622:
6623: if test "X$x" = "X$element"; then
6624: haveit=yes
6625: break
6626: fi
6627: done
6628: if test -z "$haveit"; then
6629: CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6630: fi
6631: done
6632:
6633:
6634: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline" >&5
6635: $as_echo_n "checking for readline... " >&6; }
6636: if ${gl_cv_lib_readline+:} false; then :
6637: $as_echo_n "(cached) " >&6
6638: else
6639:
6640: gl_cv_lib_readline=no
6641: am_save_LIBS="$LIBS"
6642: for extra_lib in "" ncurses termcap curses; do
6643: LIBS="$am_save_LIBS $LIBREADLINE"
6644: if test -n "$extra_lib"; then
6645: LIBS="$LIBS -l$extra_lib"
6646: fi
6647: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6648: /* end confdefs.h. */
6649: #include <stdio.h>
6650: #include <readline/readline.h>
6651: int
6652: main ()
6653: {
6654: readline((char*)0);
6655: ;
6656: return 0;
6657: }
6658: _ACEOF
6659: if ac_fn_c_try_link "$LINENO"; then :
6660: if test -n "$extra_lib"; then
6661: gl_cv_lib_readline="yes, requires -l$extra_lib"
6662: else
6663: gl_cv_lib_readline="yes"
6664: fi
6665:
6666: fi
6667: rm -f core conftest.err conftest.$ac_objext \
6668: conftest$ac_exeext conftest.$ac_ext
6669: if test "$gl_cv_lib_readline" != no; then
6670: break
6671: fi
6672: done
6673: LIBS="$am_save_LIBS"
6674:
6675: fi
6676: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_readline" >&5
6677: $as_echo "$gl_cv_lib_readline" >&6; }
6678:
6679: if test "$gl_cv_lib_readline" != no; then
6680:
6681: $as_echo "#define HAVE_READLINE 1" >>confdefs.h
6682:
6683: extra_lib=`echo "$gl_cv_lib_readline" | sed -n -e 's/yes, requires //p'`
6684: if test -n "$extra_lib"; then
6685: LIBREADLINE="$LIBREADLINE $extra_lib"
6686: LTLIBREADLINE="$LTLIBREADLINE $extra_lib"
6687: fi
6688: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libreadline" >&5
6689: $as_echo_n "checking how to link with libreadline... " >&6; }
6690: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBREADLINE" >&5
6691: $as_echo "$LIBREADLINE" >&6; }
6692: else
6693: CPPFLAGS="$am_save_CPPFLAGS"
6694: LIBREADLINE=
6695: LTLIBREADLINE=
6696: fi
6697:
6698:
6699:
6700: for ac_header in readline/readline.h readline/history.h
6701: do :
6702: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6703: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6704: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6705: cat >>confdefs.h <<_ACEOF
6706: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6707: _ACEOF
6708:
6709: fi
6710:
6711: done
6712:
6713:
6714:
6715: # Checks for header files.
6716: for ac_header in inttypes.h limits.h stdint.h stdlib.h string.h strings.h sys/time.h unistd.h
6717: do :
6718: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6719: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6720: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6721: cat >>confdefs.h <<_ACEOF
6722: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6723: _ACEOF
6724:
6725: fi
6726:
6727: done
6728:
6729:
6730: # Checks for typedefs, structures, and compiler characteristics.
6731: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6732: $as_echo_n "checking for inline... " >&6; }
6733: if ${ac_cv_c_inline+:} false; then :
6734: $as_echo_n "(cached) " >&6
6735: else
6736: ac_cv_c_inline=no
6737: for ac_kw in inline __inline__ __inline; do
6738: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739: /* end confdefs.h. */
6740: #ifndef __cplusplus
6741: typedef int foo_t;
6742: static $ac_kw foo_t static_foo () {return 0; }
6743: $ac_kw foo_t foo () {return 0; }
6744: #endif
6745:
6746: _ACEOF
6747: if ac_fn_c_try_compile "$LINENO"; then :
6748: ac_cv_c_inline=$ac_kw
6749: fi
6750: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6751: test "$ac_cv_c_inline" != no && break
6752: done
6753:
6754: fi
6755: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6756: $as_echo "$ac_cv_c_inline" >&6; }
6757:
6758: case $ac_cv_c_inline in
6759: inline | yes) ;;
6760: *)
6761: case $ac_cv_c_inline in
6762: no) ac_val=;;
6763: *) ac_val=$ac_cv_c_inline;;
6764: esac
6765: cat >>confdefs.h <<_ACEOF
6766: #ifndef __cplusplus
6767: #define inline $ac_val
6768: #endif
6769: _ACEOF
6770: ;;
6771: esac
6772:
6773: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6774: if test "x$ac_cv_type_size_t" = xyes; then :
6775:
6776: else
6777:
6778: cat >>confdefs.h <<_ACEOF
6779: #define size_t unsigned int
6780: _ACEOF
6781:
6782: fi
6783:
6784:
6785: # Checks for library functions.
6786: # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6787: # for constant arguments. Useless!
6788: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6789: $as_echo_n "checking for working alloca.h... " >&6; }
6790: if ${ac_cv_working_alloca_h+:} false; then :
6791: $as_echo_n "(cached) " >&6
6792: else
6793: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6794: /* end confdefs.h. */
6795: #include <alloca.h>
6796: int
6797: main ()
6798: {
6799: char *p = (char *) alloca (2 * sizeof (int));
6800: if (p) return 0;
6801: ;
6802: return 0;
6803: }
6804: _ACEOF
6805: if ac_fn_c_try_link "$LINENO"; then :
6806: ac_cv_working_alloca_h=yes
6807: else
6808: ac_cv_working_alloca_h=no
6809: fi
6810: rm -f core conftest.err conftest.$ac_objext \
6811: conftest$ac_exeext conftest.$ac_ext
6812: fi
6813: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6814: $as_echo "$ac_cv_working_alloca_h" >&6; }
6815: if test $ac_cv_working_alloca_h = yes; then
6816:
6817: $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6818:
6819: fi
6820:
6821: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6822: $as_echo_n "checking for alloca... " >&6; }
6823: if ${ac_cv_func_alloca_works+:} false; then :
6824: $as_echo_n "(cached) " >&6
6825: else
6826: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827: /* end confdefs.h. */
6828: #ifdef __GNUC__
6829: # define alloca __builtin_alloca
6830: #else
6831: # ifdef _MSC_VER
6832: # include <malloc.h>
6833: # define alloca _alloca
6834: # else
6835: # ifdef HAVE_ALLOCA_H
6836: # include <alloca.h>
6837: # else
6838: # ifdef _AIX
6839: #pragma alloca
6840: # else
6841: # ifndef alloca /* predefined by HP cc +Olibcalls */
6842: void *alloca (size_t);
6843: # endif
6844: # endif
6845: # endif
6846: # endif
6847: #endif
6848:
6849: int
6850: main ()
6851: {
6852: char *p = (char *) alloca (1);
6853: if (p) return 0;
6854: ;
6855: return 0;
6856: }
6857: _ACEOF
6858: if ac_fn_c_try_link "$LINENO"; then :
6859: ac_cv_func_alloca_works=yes
6860: else
6861: ac_cv_func_alloca_works=no
6862: fi
6863: rm -f core conftest.err conftest.$ac_objext \
6864: conftest$ac_exeext conftest.$ac_ext
6865: fi
6866: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6867: $as_echo "$ac_cv_func_alloca_works" >&6; }
6868:
6869: if test $ac_cv_func_alloca_works = yes; then
6870:
6871: $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6872:
6873: else
6874: # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6875: # that cause trouble. Some versions do not even contain alloca or
6876: # contain a buggy version. If you still want to use their alloca,
6877: # use ar to extract alloca.o from them instead of compiling alloca.c.
6878:
6879: ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6880:
6881: $as_echo "#define C_ALLOCA 1" >>confdefs.h
6882:
6883:
6884: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6885: $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6886: if ${ac_cv_os_cray+:} false; then :
6887: $as_echo_n "(cached) " >&6
6888: else
6889: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6890: /* end confdefs.h. */
6891: #if defined CRAY && ! defined CRAY2
6892: webecray
6893: #else
6894: wenotbecray
6895: #endif
6896:
6897: _ACEOF
6898: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6899: $EGREP "webecray" >/dev/null 2>&1; then :
6900: ac_cv_os_cray=yes
6901: else
6902: ac_cv_os_cray=no
6903: fi
6904: rm -f conftest*
6905:
6906: fi
6907: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6908: $as_echo "$ac_cv_os_cray" >&6; }
6909: if test $ac_cv_os_cray = yes; then
6910: for ac_func in _getb67 GETB67 getb67; do
6911: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6912: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6913: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6914:
6915: cat >>confdefs.h <<_ACEOF
6916: #define CRAY_STACKSEG_END $ac_func
6917: _ACEOF
6918:
6919: break
6920: fi
6921:
6922: done
6923: fi
6924:
6925: { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6926: $as_echo_n "checking stack direction for C alloca... " >&6; }
6927: if ${ac_cv_c_stack_direction+:} false; then :
6928: $as_echo_n "(cached) " >&6
6929: else
6930: if test "$cross_compiling" = yes; then :
6931: ac_cv_c_stack_direction=0
6932: else
6933: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6934: /* end confdefs.h. */
6935: $ac_includes_default
6936: int
6937: find_stack_direction (int *addr, int depth)
6938: {
6939: int dir, dummy = 0;
6940: if (! addr)
6941: addr = &dummy;
6942: *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6943: dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6944: return dir + dummy;
6945: }
6946:
6947: int
6948: main (int argc, char **argv)
6949: {
6950: return find_stack_direction (0, argc + !argv + 20) < 0;
6951: }
6952: _ACEOF
6953: if ac_fn_c_try_run "$LINENO"; then :
6954: ac_cv_c_stack_direction=1
6955: else
6956: ac_cv_c_stack_direction=-1
6957: fi
6958: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6959: conftest.$ac_objext conftest.beam conftest.$ac_ext
6960: fi
6961:
6962: fi
6963: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6964: $as_echo "$ac_cv_c_stack_direction" >&6; }
6965: cat >>confdefs.h <<_ACEOF
6966: #define STACK_DIRECTION $ac_cv_c_stack_direction
6967: _ACEOF
6968:
6969:
6970: fi
6971:
6972: for ac_header in stdlib.h
6973: do :
6974: ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6975: if test "x$ac_cv_header_stdlib_h" = xyes; then :
6976: cat >>confdefs.h <<_ACEOF
6977: #define HAVE_STDLIB_H 1
6978: _ACEOF
6979:
6980: fi
6981:
6982: done
6983:
6984: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6985: $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6986: if ${ac_cv_func_malloc_0_nonnull+:} false; then :
6987: $as_echo_n "(cached) " >&6
6988: else
6989: if test "$cross_compiling" = yes; then :
6990: ac_cv_func_malloc_0_nonnull=no
6991: else
6992: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6993: /* end confdefs.h. */
6994: #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6995: # include <stdlib.h>
6996: #else
6997: char *malloc ();
6998: #endif
6999:
7000: int
7001: main ()
7002: {
7003: return ! malloc (0);
7004: ;
7005: return 0;
7006: }
7007: _ACEOF
7008: if ac_fn_c_try_run "$LINENO"; then :
7009: ac_cv_func_malloc_0_nonnull=yes
7010: else
7011: ac_cv_func_malloc_0_nonnull=no
7012: fi
7013: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7014: conftest.$ac_objext conftest.beam conftest.$ac_ext
7015: fi
7016:
7017: fi
7018: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
7019: $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
7020: if test $ac_cv_func_malloc_0_nonnull = yes; then :
7021:
7022: $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
7023:
7024: else
7025: $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
7026:
7027: case " $LIBOBJS " in
7028: *" malloc.$ac_objext "* ) ;;
7029: *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7030: ;;
7031: esac
7032:
7033:
7034: $as_echo "#define malloc rpl_malloc" >>confdefs.h
7035:
7036: fi
7037:
7038:
7039: for ac_func in gettimeofday memset strtol
7040: do :
7041: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7042: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7043: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7044: cat >>confdefs.h <<_ACEOF
7045: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7046: _ACEOF
7047:
7048: fi
7049: done
7050:
7051:
7052: case `pwd` in
7053: *\ * | *\ *)
7054: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7055: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7056: esac
7057:
7058:
7059:
7060: macro_version='2.4.6'
7061: macro_revision='2.4.6'
7062:
7063:
7064:
7065:
7066:
7067:
7068:
7069:
7070:
7071:
7072:
7073:
7074:
7075: ltmain=$ac_aux_dir/ltmain.sh
7076:
7077: # Backslashify metacharacters that are still active within
7078: # double-quoted strings.
7079: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7080:
7081: # Same as above, but do not quote variable references.
7082: double_quote_subst='s/\(["`\\]\)/\\\1/g'
7083:
7084: # Sed substitution to delay expansion of an escaped shell variable in a
7085: # double_quote_subst'ed string.
7086: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7087:
7088: # Sed substitution to delay expansion of an escaped single quote.
7089: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7090:
7091: # Sed substitution to avoid accidental globbing in evaled expressions
7092: no_glob_subst='s/\*/\\\*/g'
7093:
7094: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7095: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7096: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7097:
7098: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7099: $as_echo_n "checking how to print strings... " >&6; }
7100: # Test print first, because it will be a builtin if present.
7101: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7102: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7103: ECHO='print -r --'
7104: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7105: ECHO='printf %s\n'
7106: else
7107: # Use this function as a fallback that always works.
7108: func_fallback_echo ()
7109: {
7110: eval 'cat <<_LTECHO_EOF
7111: $1
7112: _LTECHO_EOF'
7113: }
7114: ECHO='func_fallback_echo'
7115: fi
7116:
7117: # func_echo_all arg...
7118: # Invoke $ECHO with all args, space-separated.
7119: func_echo_all ()
7120: {
7121: $ECHO ""
7122: }
7123:
7124: case $ECHO in
7125: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7126: $as_echo "printf" >&6; } ;;
7127: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7128: $as_echo "print -r" >&6; } ;;
7129: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7130: $as_echo "cat" >&6; } ;;
7131: esac
7132:
7133:
7134:
7135:
7136:
7137:
7138:
7139:
7140:
7141:
7142:
7143:
7144:
7145:
7146: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7147: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7148: if ${ac_cv_path_SED+:} false; then :
7149: $as_echo_n "(cached) " >&6
7150: else
7151: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7152: for ac_i in 1 2 3 4 5 6 7; do
7153: ac_script="$ac_script$as_nl$ac_script"
7154: done
7155: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7156: { ac_script=; unset ac_script;}
7157: if test -z "$SED"; then
7158: ac_path_SED_found=false
7159: # Loop through the user's path and test for each of PROGNAME-LIST
7160: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161: for as_dir in $PATH
7162: do
7163: IFS=$as_save_IFS
7164: test -z "$as_dir" && as_dir=.
7165: for ac_prog in sed gsed; do
7166: for ac_exec_ext in '' $ac_executable_extensions; do
7167: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7168: as_fn_executable_p "$ac_path_SED" || continue
7169: # Check for GNU ac_path_SED and select it if it is found.
7170: # Check for GNU $ac_path_SED
7171: case `"$ac_path_SED" --version 2>&1` in
7172: *GNU*)
7173: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7174: *)
7175: ac_count=0
7176: $as_echo_n 0123456789 >"conftest.in"
7177: while :
7178: do
7179: cat "conftest.in" "conftest.in" >"conftest.tmp"
7180: mv "conftest.tmp" "conftest.in"
7181: cp "conftest.in" "conftest.nl"
7182: $as_echo '' >> "conftest.nl"
7183: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7184: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7185: as_fn_arith $ac_count + 1 && ac_count=$as_val
7186: if test $ac_count -gt ${ac_path_SED_max-0}; then
7187: # Best one so far, save it but keep looking for a better one
7188: ac_cv_path_SED="$ac_path_SED"
7189: ac_path_SED_max=$ac_count
7190: fi
7191: # 10*(2^10) chars as input seems more than enough
7192: test $ac_count -gt 10 && break
7193: done
7194: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7195: esac
7196:
7197: $ac_path_SED_found && break 3
7198: done
7199: done
7200: done
7201: IFS=$as_save_IFS
7202: if test -z "$ac_cv_path_SED"; then
7203: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7204: fi
7205: else
7206: ac_cv_path_SED=$SED
7207: fi
7208:
7209: fi
7210: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7211: $as_echo "$ac_cv_path_SED" >&6; }
7212: SED="$ac_cv_path_SED"
7213: rm -f conftest.sed
7214:
7215: test -z "$SED" && SED=sed
7216: Xsed="$SED -e 1s/^X//"
7217:
7218:
7219:
7220:
7221:
7222:
7223:
7224:
7225:
7226:
7227:
7228: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7229: $as_echo_n "checking for fgrep... " >&6; }
7230: if ${ac_cv_path_FGREP+:} false; then :
7231: $as_echo_n "(cached) " >&6
7232: else
7233: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7234: then ac_cv_path_FGREP="$GREP -F"
7235: else
7236: if test -z "$FGREP"; then
7237: ac_path_FGREP_found=false
7238: # Loop through the user's path and test for each of PROGNAME-LIST
7239: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7241: do
7242: IFS=$as_save_IFS
7243: test -z "$as_dir" && as_dir=.
7244: for ac_prog in fgrep; do
7245: for ac_exec_ext in '' $ac_executable_extensions; do
7246: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7247: as_fn_executable_p "$ac_path_FGREP" || continue
7248: # Check for GNU ac_path_FGREP and select it if it is found.
7249: # Check for GNU $ac_path_FGREP
7250: case `"$ac_path_FGREP" --version 2>&1` in
7251: *GNU*)
7252: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7253: *)
7254: ac_count=0
7255: $as_echo_n 0123456789 >"conftest.in"
7256: while :
7257: do
7258: cat "conftest.in" "conftest.in" >"conftest.tmp"
7259: mv "conftest.tmp" "conftest.in"
7260: cp "conftest.in" "conftest.nl"
7261: $as_echo 'FGREP' >> "conftest.nl"
7262: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7263: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7264: as_fn_arith $ac_count + 1 && ac_count=$as_val
7265: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7266: # Best one so far, save it but keep looking for a better one
7267: ac_cv_path_FGREP="$ac_path_FGREP"
7268: ac_path_FGREP_max=$ac_count
7269: fi
7270: # 10*(2^10) chars as input seems more than enough
7271: test $ac_count -gt 10 && break
7272: done
7273: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7274: esac
7275:
7276: $ac_path_FGREP_found && break 3
7277: done
7278: done
7279: done
7280: IFS=$as_save_IFS
7281: if test -z "$ac_cv_path_FGREP"; then
7282: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7283: fi
7284: else
7285: ac_cv_path_FGREP=$FGREP
7286: fi
7287:
7288: fi
7289: fi
7290: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7291: $as_echo "$ac_cv_path_FGREP" >&6; }
7292: FGREP="$ac_cv_path_FGREP"
7293:
7294:
7295: test -z "$GREP" && GREP=grep
7296:
7297:
7298:
7299:
7300:
7301:
7302:
7303:
7304:
7305:
7306:
7307:
7308:
7309:
7310:
7311:
7312:
7313:
7314:
7315: # Check whether --with-gnu-ld was given.
7316: if test "${with_gnu_ld+set}" = set; then :
7317: withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7318: else
7319: with_gnu_ld=no
7320: fi
7321:
7322: ac_prog=ld
7323: if test yes = "$GCC"; then
7324: # Check if gcc -print-prog-name=ld gives a path.
7325: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7326: $as_echo_n "checking for ld used by $CC... " >&6; }
7327: case $host in
7328: *-*-mingw*)
7329: # gcc leaves a trailing carriage return, which upsets mingw
7330: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7331: *)
7332: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7333: esac
7334: case $ac_prog in
7335: # Accept absolute paths.
7336: [\\/]* | ?:[\\/]*)
7337: re_direlt='/[^/][^/]*/\.\./'
7338: # Canonicalize the pathname of ld
7339: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7340: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7341: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7342: done
7343: test -z "$LD" && LD=$ac_prog
7344: ;;
7345: "")
7346: # If it fails, then pretend we aren't using GCC.
7347: ac_prog=ld
7348: ;;
7349: *)
7350: # If it is relative, then search for the first ld in PATH.
7351: with_gnu_ld=unknown
7352: ;;
7353: esac
7354: elif test yes = "$with_gnu_ld"; then
7355: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7356: $as_echo_n "checking for GNU ld... " >&6; }
7357: else
7358: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7359: $as_echo_n "checking for non-GNU ld... " >&6; }
7360: fi
7361: if ${lt_cv_path_LD+:} false; then :
7362: $as_echo_n "(cached) " >&6
7363: else
7364: if test -z "$LD"; then
7365: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7366: for ac_dir in $PATH; do
7367: IFS=$lt_save_ifs
7368: test -z "$ac_dir" && ac_dir=.
7369: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7370: lt_cv_path_LD=$ac_dir/$ac_prog
7371: # Check to see if the program is GNU ld. I'd rather use --version,
7372: # but apparently some variants of GNU ld only accept -v.
7373: # Break only if it was the GNU/non-GNU ld that we prefer.
7374: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7375: *GNU* | *'with BFD'*)
7376: test no != "$with_gnu_ld" && break
7377: ;;
7378: *)
7379: test yes != "$with_gnu_ld" && break
7380: ;;
7381: esac
7382: fi
7383: done
7384: IFS=$lt_save_ifs
7385: else
7386: lt_cv_path_LD=$LD # Let the user override the test with a path.
7387: fi
7388: fi
7389:
7390: LD=$lt_cv_path_LD
7391: if test -n "$LD"; then
7392: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7393: $as_echo "$LD" >&6; }
7394: else
7395: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7396: $as_echo "no" >&6; }
7397: fi
7398: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7399: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7400: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7401: if ${lt_cv_prog_gnu_ld+:} false; then :
7402: $as_echo_n "(cached) " >&6
7403: else
7404: # I'd rather use --version here, but apparently some GNU lds only accept -v.
7405: case `$LD -v 2>&1 </dev/null` in
7406: *GNU* | *'with BFD'*)
7407: lt_cv_prog_gnu_ld=yes
7408: ;;
7409: *)
7410: lt_cv_prog_gnu_ld=no
7411: ;;
7412: esac
7413: fi
7414: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7415: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7416: with_gnu_ld=$lt_cv_prog_gnu_ld
7417:
7418:
7419:
7420:
7421:
7422:
7423:
7424:
7425:
7426: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7427: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7428: if ${lt_cv_path_NM+:} false; then :
7429: $as_echo_n "(cached) " >&6
7430: else
7431: if test -n "$NM"; then
7432: # Let the user override the test.
7433: lt_cv_path_NM=$NM
7434: else
7435: lt_nm_to_check=${ac_tool_prefix}nm
7436: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7437: lt_nm_to_check="$lt_nm_to_check nm"
7438: fi
7439: for lt_tmp_nm in $lt_nm_to_check; do
7440: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7441: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7442: IFS=$lt_save_ifs
7443: test -z "$ac_dir" && ac_dir=.
7444: tmp_nm=$ac_dir/$lt_tmp_nm
7445: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7446: # Check to see if the nm accepts a BSD-compat flag.
7447: # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7448: # nm: unknown option "B" ignored
7449: # Tru64's nm complains that /dev/null is an invalid object file
7450: # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7451: case $build_os in
7452: mingw*) lt_bad_file=conftest.nm/nofile ;;
7453: *) lt_bad_file=/dev/null ;;
7454: esac
7455: case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7456: *$lt_bad_file* | *'Invalid file or object type'*)
7457: lt_cv_path_NM="$tmp_nm -B"
7458: break 2
7459: ;;
7460: *)
7461: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7462: */dev/null*)
7463: lt_cv_path_NM="$tmp_nm -p"
7464: break 2
7465: ;;
7466: *)
7467: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7468: continue # so that we can try to find one that supports BSD flags
7469: ;;
7470: esac
7471: ;;
7472: esac
7473: fi
7474: done
7475: IFS=$lt_save_ifs
7476: done
7477: : ${lt_cv_path_NM=no}
7478: fi
7479: fi
7480: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7481: $as_echo "$lt_cv_path_NM" >&6; }
7482: if test no != "$lt_cv_path_NM"; then
7483: NM=$lt_cv_path_NM
7484: else
7485: # Didn't find any BSD compatible name lister, look for dumpbin.
7486: if test -n "$DUMPBIN"; then :
7487: # Let the user override the test.
7488: else
7489: if test -n "$ac_tool_prefix"; then
7490: for ac_prog in dumpbin "link -dump"
7491: do
7492: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7493: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7494: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7495: $as_echo_n "checking for $ac_word... " >&6; }
7496: if ${ac_cv_prog_DUMPBIN+:} false; then :
7497: $as_echo_n "(cached) " >&6
7498: else
7499: if test -n "$DUMPBIN"; then
7500: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7501: else
7502: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503: for as_dir in $PATH
7504: do
7505: IFS=$as_save_IFS
7506: test -z "$as_dir" && as_dir=.
7507: for ac_exec_ext in '' $ac_executable_extensions; do
7508: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7509: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7510: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7511: break 2
7512: fi
7513: done
7514: done
7515: IFS=$as_save_IFS
7516:
7517: fi
7518: fi
7519: DUMPBIN=$ac_cv_prog_DUMPBIN
7520: if test -n "$DUMPBIN"; then
7521: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7522: $as_echo "$DUMPBIN" >&6; }
7523: else
7524: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7525: $as_echo "no" >&6; }
7526: fi
7527:
7528:
7529: test -n "$DUMPBIN" && break
7530: done
7531: fi
7532: if test -z "$DUMPBIN"; then
7533: ac_ct_DUMPBIN=$DUMPBIN
7534: for ac_prog in dumpbin "link -dump"
7535: do
7536: # Extract the first word of "$ac_prog", so it can be a program name with args.
7537: set dummy $ac_prog; ac_word=$2
7538: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7539: $as_echo_n "checking for $ac_word... " >&6; }
7540: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7541: $as_echo_n "(cached) " >&6
7542: else
7543: if test -n "$ac_ct_DUMPBIN"; then
7544: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7545: else
7546: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547: for as_dir in $PATH
7548: do
7549: IFS=$as_save_IFS
7550: test -z "$as_dir" && as_dir=.
7551: for ac_exec_ext in '' $ac_executable_extensions; do
7552: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7553: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7554: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7555: break 2
7556: fi
7557: done
7558: done
7559: IFS=$as_save_IFS
7560:
7561: fi
7562: fi
7563: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7564: if test -n "$ac_ct_DUMPBIN"; then
7565: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7566: $as_echo "$ac_ct_DUMPBIN" >&6; }
7567: else
7568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569: $as_echo "no" >&6; }
7570: fi
7571:
7572:
7573: test -n "$ac_ct_DUMPBIN" && break
7574: done
7575:
7576: if test "x$ac_ct_DUMPBIN" = x; then
7577: DUMPBIN=":"
7578: else
7579: case $cross_compiling:$ac_tool_warned in
7580: yes:)
7581: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7582: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7583: ac_tool_warned=yes ;;
7584: esac
7585: DUMPBIN=$ac_ct_DUMPBIN
7586: fi
7587: fi
7588:
7589: case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7590: *COFF*)
7591: DUMPBIN="$DUMPBIN -symbols -headers"
7592: ;;
7593: *)
7594: DUMPBIN=:
7595: ;;
7596: esac
7597: fi
7598:
7599: if test : != "$DUMPBIN"; then
7600: NM=$DUMPBIN
7601: fi
7602: fi
7603: test -z "$NM" && NM=nm
7604:
7605:
7606:
7607:
7608:
7609:
7610: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7611: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7612: if ${lt_cv_nm_interface+:} false; then :
7613: $as_echo_n "(cached) " >&6
7614: else
7615: lt_cv_nm_interface="BSD nm"
7616: echo "int some_variable = 0;" > conftest.$ac_ext
7617: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7618: (eval "$ac_compile" 2>conftest.err)
7619: cat conftest.err >&5
7620: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7621: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7622: cat conftest.err >&5
7623: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7624: cat conftest.out >&5
7625: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7626: lt_cv_nm_interface="MS dumpbin"
7627: fi
7628: rm -f conftest*
7629: fi
7630: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7631: $as_echo "$lt_cv_nm_interface" >&6; }
7632:
7633: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7634: $as_echo_n "checking whether ln -s works... " >&6; }
7635: LN_S=$as_ln_s
7636: if test "$LN_S" = "ln -s"; then
7637: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7638: $as_echo "yes" >&6; }
7639: else
7640: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7641: $as_echo "no, using $LN_S" >&6; }
7642: fi
7643:
7644: # find the maximum length of command line arguments
7645: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7646: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7647: if ${lt_cv_sys_max_cmd_len+:} false; then :
7648: $as_echo_n "(cached) " >&6
7649: else
7650: i=0
7651: teststring=ABCD
7652:
7653: case $build_os in
7654: msdosdjgpp*)
7655: # On DJGPP, this test can blow up pretty badly due to problems in libc
7656: # (any single argument exceeding 2000 bytes causes a buffer overrun
7657: # during glob expansion). Even if it were fixed, the result of this
7658: # check would be larger than it should be.
7659: lt_cv_sys_max_cmd_len=12288; # 12K is about right
7660: ;;
7661:
7662: gnu*)
7663: # Under GNU Hurd, this test is not required because there is
7664: # no limit to the length of command line arguments.
7665: # Libtool will interpret -1 as no limit whatsoever
7666: lt_cv_sys_max_cmd_len=-1;
7667: ;;
7668:
7669: cygwin* | mingw* | cegcc*)
7670: # On Win9x/ME, this test blows up -- it succeeds, but takes
7671: # about 5 minutes as the teststring grows exponentially.
7672: # Worse, since 9x/ME are not pre-emptively multitasking,
7673: # you end up with a "frozen" computer, even though with patience
7674: # the test eventually succeeds (with a max line length of 256k).
7675: # Instead, let's just punt: use the minimum linelength reported by
7676: # all of the supported platforms: 8192 (on NT/2K/XP).
7677: lt_cv_sys_max_cmd_len=8192;
7678: ;;
7679:
7680: mint*)
7681: # On MiNT this can take a long time and run out of memory.
7682: lt_cv_sys_max_cmd_len=8192;
7683: ;;
7684:
7685: amigaos*)
7686: # On AmigaOS with pdksh, this test takes hours, literally.
7687: # So we just punt and use a minimum line length of 8192.
7688: lt_cv_sys_max_cmd_len=8192;
7689: ;;
7690:
7691: bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7692: # This has been around since 386BSD, at least. Likely further.
7693: if test -x /sbin/sysctl; then
7694: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7695: elif test -x /usr/sbin/sysctl; then
7696: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7697: else
7698: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7699: fi
7700: # And add a safety zone
7701: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7702: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7703: ;;
7704:
7705: interix*)
7706: # We know the value 262144 and hardcode it with a safety zone (like BSD)
7707: lt_cv_sys_max_cmd_len=196608
7708: ;;
7709:
7710: os2*)
7711: # The test takes a long time on OS/2.
7712: lt_cv_sys_max_cmd_len=8192
7713: ;;
7714:
7715: osf*)
7716: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7717: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7718: # nice to cause kernel panics so lets avoid the loop below.
7719: # First set a reasonable default.
7720: lt_cv_sys_max_cmd_len=16384
7721: #
7722: if test -x /sbin/sysconfig; then
7723: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7724: *1*) lt_cv_sys_max_cmd_len=-1 ;;
7725: esac
7726: fi
7727: ;;
7728: sco3.2v5*)
7729: lt_cv_sys_max_cmd_len=102400
7730: ;;
7731: sysv5* | sco5v6* | sysv4.2uw2*)
7732: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7733: if test -n "$kargmax"; then
7734: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7735: else
7736: lt_cv_sys_max_cmd_len=32768
7737: fi
7738: ;;
7739: *)
7740: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7741: if test -n "$lt_cv_sys_max_cmd_len" && \
7742: test undefined != "$lt_cv_sys_max_cmd_len"; then
7743: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7744: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7745: else
7746: # Make teststring a little bigger before we do anything with it.
7747: # a 1K string should be a reasonable start.
7748: for i in 1 2 3 4 5 6 7 8; do
7749: teststring=$teststring$teststring
7750: done
7751: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7752: # If test is not a shell built-in, we'll probably end up computing a
7753: # maximum length that is only half of the actual maximum length, but
7754: # we can't tell.
7755: while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7756: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7757: test 17 != "$i" # 1/2 MB should be enough
7758: do
7759: i=`expr $i + 1`
7760: teststring=$teststring$teststring
7761: done
7762: # Only check the string length outside the loop.
7763: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7764: teststring=
7765: # Add a significant safety factor because C++ compilers can tack on
7766: # massive amounts of additional arguments before passing them to the
7767: # linker. It appears as though 1/2 is a usable value.
7768: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7769: fi
7770: ;;
7771: esac
7772:
7773: fi
7774:
7775: if test -n "$lt_cv_sys_max_cmd_len"; then
7776: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7777: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7778: else
7779: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7780: $as_echo "none" >&6; }
7781: fi
7782: max_cmd_len=$lt_cv_sys_max_cmd_len
7783:
7784:
7785:
7786:
7787:
7788:
7789: : ${CP="cp -f"}
7790: : ${MV="mv -f"}
7791: : ${RM="rm -f"}
7792:
7793: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7794: lt_unset=unset
7795: else
7796: lt_unset=false
7797: fi
7798:
7799:
7800:
7801:
7802:
7803: # test EBCDIC or ASCII
7804: case `echo X|tr X '\101'` in
7805: A) # ASCII based system
7806: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7807: lt_SP2NL='tr \040 \012'
7808: lt_NL2SP='tr \015\012 \040\040'
7809: ;;
7810: *) # EBCDIC based system
7811: lt_SP2NL='tr \100 \n'
7812: lt_NL2SP='tr \r\n \100\100'
7813: ;;
7814: esac
7815:
7816:
7817:
7818:
7819:
7820:
7821:
7822:
7823:
7824: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7825: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7826: if ${lt_cv_to_host_file_cmd+:} false; then :
7827: $as_echo_n "(cached) " >&6
7828: else
7829: case $host in
7830: *-*-mingw* )
7831: case $build in
7832: *-*-mingw* ) # actually msys
7833: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7834: ;;
7835: *-*-cygwin* )
7836: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7837: ;;
7838: * ) # otherwise, assume *nix
7839: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7840: ;;
7841: esac
7842: ;;
7843: *-*-cygwin* )
7844: case $build in
7845: *-*-mingw* ) # actually msys
7846: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7847: ;;
7848: *-*-cygwin* )
7849: lt_cv_to_host_file_cmd=func_convert_file_noop
7850: ;;
7851: * ) # otherwise, assume *nix
7852: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7853: ;;
7854: esac
7855: ;;
7856: * ) # unhandled hosts (and "normal" native builds)
7857: lt_cv_to_host_file_cmd=func_convert_file_noop
7858: ;;
7859: esac
7860:
7861: fi
7862:
7863: to_host_file_cmd=$lt_cv_to_host_file_cmd
7864: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7865: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7866:
7867:
7868:
7869:
7870:
7871: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7872: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7873: if ${lt_cv_to_tool_file_cmd+:} false; then :
7874: $as_echo_n "(cached) " >&6
7875: else
7876: #assume ordinary cross tools, or native build.
7877: lt_cv_to_tool_file_cmd=func_convert_file_noop
7878: case $host in
7879: *-*-mingw* )
7880: case $build in
7881: *-*-mingw* ) # actually msys
7882: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7883: ;;
7884: esac
7885: ;;
7886: esac
7887:
7888: fi
7889:
7890: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7891: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7892: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7893:
7894:
7895:
7896:
7897:
7898: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7899: $as_echo_n "checking for $LD option to reload object files... " >&6; }
7900: if ${lt_cv_ld_reload_flag+:} false; then :
7901: $as_echo_n "(cached) " >&6
7902: else
7903: lt_cv_ld_reload_flag='-r'
7904: fi
7905: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7906: $as_echo "$lt_cv_ld_reload_flag" >&6; }
7907: reload_flag=$lt_cv_ld_reload_flag
7908: case $reload_flag in
7909: "" | " "*) ;;
7910: *) reload_flag=" $reload_flag" ;;
7911: esac
7912: reload_cmds='$LD$reload_flag -o $output$reload_objs'
7913: case $host_os in
7914: cygwin* | mingw* | pw32* | cegcc*)
7915: if test yes != "$GCC"; then
7916: reload_cmds=false
7917: fi
7918: ;;
7919: darwin*)
7920: if test yes = "$GCC"; then
7921: reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7922: else
7923: reload_cmds='$LD$reload_flag -o $output$reload_objs'
7924: fi
7925: ;;
7926: esac
7927:
7928:
7929:
7930:
7931:
7932:
7933:
7934:
7935:
7936: if test -n "$ac_tool_prefix"; then
7937: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7938: set dummy ${ac_tool_prefix}objdump; ac_word=$2
7939: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940: $as_echo_n "checking for $ac_word... " >&6; }
7941: if ${ac_cv_prog_OBJDUMP+:} false; then :
7942: $as_echo_n "(cached) " >&6
7943: else
7944: if test -n "$OBJDUMP"; then
7945: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7946: else
7947: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948: for as_dir in $PATH
7949: do
7950: IFS=$as_save_IFS
7951: test -z "$as_dir" && as_dir=.
7952: for ac_exec_ext in '' $ac_executable_extensions; do
7953: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7954: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7955: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7956: break 2
7957: fi
7958: done
7959: done
7960: IFS=$as_save_IFS
7961:
7962: fi
7963: fi
7964: OBJDUMP=$ac_cv_prog_OBJDUMP
7965: if test -n "$OBJDUMP"; then
7966: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7967: $as_echo "$OBJDUMP" >&6; }
7968: else
7969: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970: $as_echo "no" >&6; }
7971: fi
7972:
7973:
7974: fi
7975: if test -z "$ac_cv_prog_OBJDUMP"; then
7976: ac_ct_OBJDUMP=$OBJDUMP
7977: # Extract the first word of "objdump", so it can be a program name with args.
7978: set dummy objdump; ac_word=$2
7979: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7980: $as_echo_n "checking for $ac_word... " >&6; }
7981: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7982: $as_echo_n "(cached) " >&6
7983: else
7984: if test -n "$ac_ct_OBJDUMP"; then
7985: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7986: else
7987: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7988: for as_dir in $PATH
7989: do
7990: IFS=$as_save_IFS
7991: test -z "$as_dir" && as_dir=.
7992: for ac_exec_ext in '' $ac_executable_extensions; do
7993: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7994: ac_cv_prog_ac_ct_OBJDUMP="objdump"
7995: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7996: break 2
7997: fi
7998: done
7999: done
8000: IFS=$as_save_IFS
8001:
8002: fi
8003: fi
8004: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8005: if test -n "$ac_ct_OBJDUMP"; then
8006: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8007: $as_echo "$ac_ct_OBJDUMP" >&6; }
8008: else
8009: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8010: $as_echo "no" >&6; }
8011: fi
8012:
8013: if test "x$ac_ct_OBJDUMP" = x; then
8014: OBJDUMP="false"
8015: else
8016: case $cross_compiling:$ac_tool_warned in
8017: yes:)
8018: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8019: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8020: ac_tool_warned=yes ;;
8021: esac
8022: OBJDUMP=$ac_ct_OBJDUMP
8023: fi
8024: else
8025: OBJDUMP="$ac_cv_prog_OBJDUMP"
8026: fi
8027:
8028: test -z "$OBJDUMP" && OBJDUMP=objdump
8029:
8030:
8031:
8032:
8033:
8034:
8035:
8036:
8037:
8038: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8039: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8040: if ${lt_cv_deplibs_check_method+:} false; then :
8041: $as_echo_n "(cached) " >&6
8042: else
8043: lt_cv_file_magic_cmd='$MAGIC_CMD'
8044: lt_cv_file_magic_test_file=
8045: lt_cv_deplibs_check_method='unknown'
8046: # Need to set the preceding variable on all platforms that support
8047: # interlibrary dependencies.
8048: # 'none' -- dependencies not supported.
8049: # 'unknown' -- same as none, but documents that we really don't know.
8050: # 'pass_all' -- all dependencies passed with no checks.
8051: # 'test_compile' -- check by making test program.
8052: # 'file_magic [[regex]]' -- check by looking for files in library path
8053: # that responds to the $file_magic_cmd with a given extended regex.
8054: # If you have 'file' or equivalent on your system and you're not sure
8055: # whether 'pass_all' will *always* work, you probably want this one.
8056:
8057: case $host_os in
8058: aix[4-9]*)
8059: lt_cv_deplibs_check_method=pass_all
8060: ;;
8061:
8062: beos*)
8063: lt_cv_deplibs_check_method=pass_all
8064: ;;
8065:
8066: bsdi[45]*)
8067: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8068: lt_cv_file_magic_cmd='/usr/bin/file -L'
8069: lt_cv_file_magic_test_file=/shlib/libc.so
8070: ;;
8071:
8072: cygwin*)
8073: # func_win32_libid is a shell function defined in ltmain.sh
8074: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8075: lt_cv_file_magic_cmd='func_win32_libid'
8076: ;;
8077:
8078: mingw* | pw32*)
8079: # Base MSYS/MinGW do not provide the 'file' command needed by
8080: # func_win32_libid shell function, so use a weaker test based on 'objdump',
8081: # unless we find 'file', for example because we are cross-compiling.
8082: if ( file / ) >/dev/null 2>&1; then
8083: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8084: lt_cv_file_magic_cmd='func_win32_libid'
8085: else
8086: # Keep this pattern in sync with the one in func_win32_libid.
8087: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8088: lt_cv_file_magic_cmd='$OBJDUMP -f'
8089: fi
8090: ;;
8091:
8092: cegcc*)
8093: # use the weaker test based on 'objdump'. See mingw*.
8094: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8095: lt_cv_file_magic_cmd='$OBJDUMP -f'
8096: ;;
8097:
8098: darwin* | rhapsody*)
8099: lt_cv_deplibs_check_method=pass_all
8100: ;;
8101:
8102: freebsd* | dragonfly*)
8103: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8104: case $host_cpu in
8105: i*86 )
8106: # Not sure whether the presence of OpenBSD here was a mistake.
8107: # Let's accept both of them until this is cleared up.
8108: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8109: lt_cv_file_magic_cmd=/usr/bin/file
8110: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8111: ;;
8112: esac
8113: else
8114: lt_cv_deplibs_check_method=pass_all
8115: fi
8116: ;;
8117:
8118: haiku*)
8119: lt_cv_deplibs_check_method=pass_all
8120: ;;
8121:
8122: hpux10.20* | hpux11*)
8123: lt_cv_file_magic_cmd=/usr/bin/file
8124: case $host_cpu in
8125: ia64*)
8126: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8127: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8128: ;;
8129: hppa*64*)
8130: 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]'
8131: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8132: ;;
8133: *)
8134: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8135: lt_cv_file_magic_test_file=/usr/lib/libc.sl
8136: ;;
8137: esac
8138: ;;
8139:
8140: interix[3-9]*)
8141: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8142: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8143: ;;
8144:
8145: irix5* | irix6* | nonstopux*)
8146: case $LD in
8147: *-32|*"-32 ") libmagic=32-bit;;
8148: *-n32|*"-n32 ") libmagic=N32;;
8149: *-64|*"-64 ") libmagic=64-bit;;
8150: *) libmagic=never-match;;
8151: esac
8152: lt_cv_deplibs_check_method=pass_all
8153: ;;
8154:
8155: # This must be glibc/ELF.
8156: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8157: lt_cv_deplibs_check_method=pass_all
8158: ;;
8159:
8160: netbsd*)
8161: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8162: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8163: else
8164: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8165: fi
8166: ;;
8167:
8168: newos6*)
8169: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8170: lt_cv_file_magic_cmd=/usr/bin/file
8171: lt_cv_file_magic_test_file=/usr/lib/libnls.so
8172: ;;
8173:
8174: *nto* | *qnx*)
8175: lt_cv_deplibs_check_method=pass_all
8176: ;;
8177:
8178: openbsd* | bitrig*)
8179: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8180: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8181: else
8182: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8183: fi
8184: ;;
8185:
8186: osf3* | osf4* | osf5*)
8187: lt_cv_deplibs_check_method=pass_all
8188: ;;
8189:
8190: rdos*)
8191: lt_cv_deplibs_check_method=pass_all
8192: ;;
8193:
8194: solaris*)
8195: lt_cv_deplibs_check_method=pass_all
8196: ;;
8197:
8198: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8199: lt_cv_deplibs_check_method=pass_all
8200: ;;
8201:
8202: sysv4 | sysv4.3*)
8203: case $host_vendor in
8204: motorola)
8205: 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]'
8206: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8207: ;;
8208: ncr)
8209: lt_cv_deplibs_check_method=pass_all
8210: ;;
8211: sequent)
8212: lt_cv_file_magic_cmd='/bin/file'
8213: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8214: ;;
8215: sni)
8216: lt_cv_file_magic_cmd='/bin/file'
8217: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8218: lt_cv_file_magic_test_file=/lib/libc.so
8219: ;;
8220: siemens)
8221: lt_cv_deplibs_check_method=pass_all
8222: ;;
8223: pc)
8224: lt_cv_deplibs_check_method=pass_all
8225: ;;
8226: esac
8227: ;;
8228:
8229: tpf*)
8230: lt_cv_deplibs_check_method=pass_all
8231: ;;
8232: os2*)
8233: lt_cv_deplibs_check_method=pass_all
8234: ;;
8235: esac
8236:
8237: fi
8238: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8239: $as_echo "$lt_cv_deplibs_check_method" >&6; }
8240:
8241: file_magic_glob=
8242: want_nocaseglob=no
8243: if test "$build" = "$host"; then
8244: case $host_os in
8245: mingw* | pw32*)
8246: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8247: want_nocaseglob=yes
8248: else
8249: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8250: fi
8251: ;;
8252: esac
8253: fi
8254:
8255: file_magic_cmd=$lt_cv_file_magic_cmd
8256: deplibs_check_method=$lt_cv_deplibs_check_method
8257: test -z "$deplibs_check_method" && deplibs_check_method=unknown
8258:
8259:
8260:
8261:
8262:
8263:
8264:
8265:
8266:
8267:
8268:
8269:
8270:
8271:
8272:
8273:
8274:
8275:
8276:
8277:
8278:
8279:
8280: if test -n "$ac_tool_prefix"; then
8281: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8282: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8283: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8284: $as_echo_n "checking for $ac_word... " >&6; }
8285: if ${ac_cv_prog_DLLTOOL+:} false; then :
8286: $as_echo_n "(cached) " >&6
8287: else
8288: if test -n "$DLLTOOL"; then
8289: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8290: else
8291: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8292: for as_dir in $PATH
8293: do
8294: IFS=$as_save_IFS
8295: test -z "$as_dir" && as_dir=.
8296: for ac_exec_ext in '' $ac_executable_extensions; do
8297: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8298: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8299: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8300: break 2
8301: fi
8302: done
8303: done
8304: IFS=$as_save_IFS
8305:
8306: fi
8307: fi
8308: DLLTOOL=$ac_cv_prog_DLLTOOL
8309: if test -n "$DLLTOOL"; then
8310: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8311: $as_echo "$DLLTOOL" >&6; }
8312: else
8313: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8314: $as_echo "no" >&6; }
8315: fi
8316:
8317:
8318: fi
8319: if test -z "$ac_cv_prog_DLLTOOL"; then
8320: ac_ct_DLLTOOL=$DLLTOOL
8321: # Extract the first word of "dlltool", so it can be a program name with args.
8322: set dummy dlltool; ac_word=$2
8323: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8324: $as_echo_n "checking for $ac_word... " >&6; }
8325: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8326: $as_echo_n "(cached) " >&6
8327: else
8328: if test -n "$ac_ct_DLLTOOL"; then
8329: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8330: else
8331: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8332: for as_dir in $PATH
8333: do
8334: IFS=$as_save_IFS
8335: test -z "$as_dir" && as_dir=.
8336: for ac_exec_ext in '' $ac_executable_extensions; do
8337: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8338: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8339: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8340: break 2
8341: fi
8342: done
8343: done
8344: IFS=$as_save_IFS
8345:
8346: fi
8347: fi
8348: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8349: if test -n "$ac_ct_DLLTOOL"; then
8350: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8351: $as_echo "$ac_ct_DLLTOOL" >&6; }
8352: else
8353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8354: $as_echo "no" >&6; }
8355: fi
8356:
8357: if test "x$ac_ct_DLLTOOL" = x; then
8358: DLLTOOL="false"
8359: else
8360: case $cross_compiling:$ac_tool_warned in
8361: yes:)
8362: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8363: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8364: ac_tool_warned=yes ;;
8365: esac
8366: DLLTOOL=$ac_ct_DLLTOOL
8367: fi
8368: else
8369: DLLTOOL="$ac_cv_prog_DLLTOOL"
8370: fi
8371:
8372: test -z "$DLLTOOL" && DLLTOOL=dlltool
8373:
8374:
8375:
8376:
8377:
8378:
8379:
8380:
8381:
8382:
8383: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8384: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8385: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8386: $as_echo_n "(cached) " >&6
8387: else
8388: lt_cv_sharedlib_from_linklib_cmd='unknown'
8389:
8390: case $host_os in
8391: cygwin* | mingw* | pw32* | cegcc*)
8392: # two different shell functions defined in ltmain.sh;
8393: # decide which one to use based on capabilities of $DLLTOOL
8394: case `$DLLTOOL --help 2>&1` in
8395: *--identify-strict*)
8396: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8397: ;;
8398: *)
8399: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8400: ;;
8401: esac
8402: ;;
8403: *)
8404: # fallback: assume linklib IS sharedlib
8405: lt_cv_sharedlib_from_linklib_cmd=$ECHO
8406: ;;
8407: esac
8408:
8409: fi
8410: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8411: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8412: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8413: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8414:
8415:
8416:
8417:
8418:
8419:
8420:
8421: if test -n "$ac_tool_prefix"; then
8422: for ac_prog in ar
8423: do
8424: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8425: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8426: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8427: $as_echo_n "checking for $ac_word... " >&6; }
8428: if ${ac_cv_prog_AR+:} false; then :
8429: $as_echo_n "(cached) " >&6
8430: else
8431: if test -n "$AR"; then
8432: ac_cv_prog_AR="$AR" # Let the user override the test.
8433: else
8434: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8435: for as_dir in $PATH
8436: do
8437: IFS=$as_save_IFS
8438: test -z "$as_dir" && as_dir=.
8439: for ac_exec_ext in '' $ac_executable_extensions; do
8440: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8441: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8442: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8443: break 2
8444: fi
8445: done
8446: done
8447: IFS=$as_save_IFS
8448:
8449: fi
8450: fi
8451: AR=$ac_cv_prog_AR
8452: if test -n "$AR"; then
8453: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8454: $as_echo "$AR" >&6; }
8455: else
8456: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8457: $as_echo "no" >&6; }
8458: fi
8459:
8460:
8461: test -n "$AR" && break
8462: done
8463: fi
8464: if test -z "$AR"; then
8465: ac_ct_AR=$AR
8466: for ac_prog in ar
8467: do
8468: # Extract the first word of "$ac_prog", so it can be a program name with args.
8469: set dummy $ac_prog; ac_word=$2
8470: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8471: $as_echo_n "checking for $ac_word... " >&6; }
8472: if ${ac_cv_prog_ac_ct_AR+:} false; then :
8473: $as_echo_n "(cached) " >&6
8474: else
8475: if test -n "$ac_ct_AR"; then
8476: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8477: else
8478: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479: for as_dir in $PATH
8480: do
8481: IFS=$as_save_IFS
8482: test -z "$as_dir" && as_dir=.
8483: for ac_exec_ext in '' $ac_executable_extensions; do
8484: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8485: ac_cv_prog_ac_ct_AR="$ac_prog"
8486: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8487: break 2
8488: fi
8489: done
8490: done
8491: IFS=$as_save_IFS
8492:
8493: fi
8494: fi
8495: ac_ct_AR=$ac_cv_prog_ac_ct_AR
8496: if test -n "$ac_ct_AR"; then
8497: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8498: $as_echo "$ac_ct_AR" >&6; }
8499: else
8500: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8501: $as_echo "no" >&6; }
8502: fi
8503:
8504:
8505: test -n "$ac_ct_AR" && break
8506: done
8507:
8508: if test "x$ac_ct_AR" = x; then
8509: AR="false"
8510: else
8511: case $cross_compiling:$ac_tool_warned in
8512: yes:)
8513: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8514: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8515: ac_tool_warned=yes ;;
8516: esac
8517: AR=$ac_ct_AR
8518: fi
8519: fi
8520:
8521: : ${AR=ar}
8522: : ${AR_FLAGS=cru}
8523:
8524:
8525:
8526:
8527:
8528:
8529:
8530:
8531:
8532:
8533:
8534: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8535: $as_echo_n "checking for archiver @FILE support... " >&6; }
8536: if ${lt_cv_ar_at_file+:} false; then :
8537: $as_echo_n "(cached) " >&6
8538: else
8539: lt_cv_ar_at_file=no
8540: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8541: /* end confdefs.h. */
8542:
8543: int
8544: main ()
8545: {
8546:
8547: ;
8548: return 0;
8549: }
8550: _ACEOF
8551: if ac_fn_c_try_compile "$LINENO"; then :
8552: echo conftest.$ac_objext > conftest.lst
8553: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8554: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8555: (eval $lt_ar_try) 2>&5
8556: ac_status=$?
8557: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8558: test $ac_status = 0; }
8559: if test 0 -eq "$ac_status"; then
8560: # Ensure the archiver fails upon bogus file names.
8561: rm -f conftest.$ac_objext libconftest.a
8562: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8563: (eval $lt_ar_try) 2>&5
8564: ac_status=$?
8565: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8566: test $ac_status = 0; }
8567: if test 0 -ne "$ac_status"; then
8568: lt_cv_ar_at_file=@
8569: fi
8570: fi
8571: rm -f conftest.* libconftest.a
8572:
8573: fi
8574: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8575:
8576: fi
8577: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8578: $as_echo "$lt_cv_ar_at_file" >&6; }
8579:
8580: if test no = "$lt_cv_ar_at_file"; then
8581: archiver_list_spec=
8582: else
8583: archiver_list_spec=$lt_cv_ar_at_file
8584: fi
8585:
8586:
8587:
8588:
8589:
8590:
8591:
8592: if test -n "$ac_tool_prefix"; then
8593: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8594: set dummy ${ac_tool_prefix}strip; ac_word=$2
8595: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8596: $as_echo_n "checking for $ac_word... " >&6; }
8597: if ${ac_cv_prog_STRIP+:} false; then :
8598: $as_echo_n "(cached) " >&6
8599: else
8600: if test -n "$STRIP"; then
8601: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8602: else
8603: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8604: for as_dir in $PATH
8605: do
8606: IFS=$as_save_IFS
8607: test -z "$as_dir" && as_dir=.
8608: for ac_exec_ext in '' $ac_executable_extensions; do
8609: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8610: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8611: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8612: break 2
8613: fi
8614: done
8615: done
8616: IFS=$as_save_IFS
8617:
8618: fi
8619: fi
8620: STRIP=$ac_cv_prog_STRIP
8621: if test -n "$STRIP"; then
8622: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8623: $as_echo "$STRIP" >&6; }
8624: else
8625: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8626: $as_echo "no" >&6; }
8627: fi
8628:
8629:
8630: fi
8631: if test -z "$ac_cv_prog_STRIP"; then
8632: ac_ct_STRIP=$STRIP
8633: # Extract the first word of "strip", so it can be a program name with args.
8634: set dummy strip; ac_word=$2
8635: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8636: $as_echo_n "checking for $ac_word... " >&6; }
8637: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8638: $as_echo_n "(cached) " >&6
8639: else
8640: if test -n "$ac_ct_STRIP"; then
8641: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8642: else
8643: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8644: for as_dir in $PATH
8645: do
8646: IFS=$as_save_IFS
8647: test -z "$as_dir" && as_dir=.
8648: for ac_exec_ext in '' $ac_executable_extensions; do
8649: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8650: ac_cv_prog_ac_ct_STRIP="strip"
8651: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8652: break 2
8653: fi
8654: done
8655: done
8656: IFS=$as_save_IFS
8657:
8658: fi
8659: fi
8660: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8661: if test -n "$ac_ct_STRIP"; then
8662: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8663: $as_echo "$ac_ct_STRIP" >&6; }
8664: else
8665: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8666: $as_echo "no" >&6; }
8667: fi
8668:
8669: if test "x$ac_ct_STRIP" = x; then
8670: STRIP=":"
8671: else
8672: case $cross_compiling:$ac_tool_warned in
8673: yes:)
8674: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8675: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8676: ac_tool_warned=yes ;;
8677: esac
8678: STRIP=$ac_ct_STRIP
8679: fi
8680: else
8681: STRIP="$ac_cv_prog_STRIP"
8682: fi
8683:
8684: test -z "$STRIP" && STRIP=:
8685:
8686:
8687:
8688:
8689:
8690:
8691: if test -n "$ac_tool_prefix"; then
8692: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8693: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8694: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8695: $as_echo_n "checking for $ac_word... " >&6; }
8696: if ${ac_cv_prog_RANLIB+:} false; then :
8697: $as_echo_n "(cached) " >&6
8698: else
8699: if test -n "$RANLIB"; then
8700: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8701: else
8702: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8703: for as_dir in $PATH
8704: do
8705: IFS=$as_save_IFS
8706: test -z "$as_dir" && as_dir=.
8707: for ac_exec_ext in '' $ac_executable_extensions; do
8708: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8709: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8710: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8711: break 2
8712: fi
8713: done
8714: done
8715: IFS=$as_save_IFS
8716:
8717: fi
8718: fi
8719: RANLIB=$ac_cv_prog_RANLIB
8720: if test -n "$RANLIB"; then
8721: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8722: $as_echo "$RANLIB" >&6; }
8723: else
8724: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8725: $as_echo "no" >&6; }
8726: fi
8727:
8728:
8729: fi
8730: if test -z "$ac_cv_prog_RANLIB"; then
8731: ac_ct_RANLIB=$RANLIB
8732: # Extract the first word of "ranlib", so it can be a program name with args.
8733: set dummy ranlib; ac_word=$2
8734: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8735: $as_echo_n "checking for $ac_word... " >&6; }
8736: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8737: $as_echo_n "(cached) " >&6
8738: else
8739: if test -n "$ac_ct_RANLIB"; then
8740: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8741: else
8742: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8743: for as_dir in $PATH
8744: do
8745: IFS=$as_save_IFS
8746: test -z "$as_dir" && as_dir=.
8747: for ac_exec_ext in '' $ac_executable_extensions; do
8748: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8749: ac_cv_prog_ac_ct_RANLIB="ranlib"
8750: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8751: break 2
8752: fi
8753: done
8754: done
8755: IFS=$as_save_IFS
8756:
8757: fi
8758: fi
8759: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8760: if test -n "$ac_ct_RANLIB"; then
8761: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8762: $as_echo "$ac_ct_RANLIB" >&6; }
8763: else
8764: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8765: $as_echo "no" >&6; }
8766: fi
8767:
8768: if test "x$ac_ct_RANLIB" = x; then
8769: RANLIB=":"
8770: else
8771: case $cross_compiling:$ac_tool_warned in
8772: yes:)
8773: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8774: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8775: ac_tool_warned=yes ;;
8776: esac
8777: RANLIB=$ac_ct_RANLIB
8778: fi
8779: else
8780: RANLIB="$ac_cv_prog_RANLIB"
8781: fi
8782:
8783: test -z "$RANLIB" && RANLIB=:
8784:
8785:
8786:
8787:
8788:
8789:
8790: # Determine commands to create old-style static archives.
8791: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8792: old_postinstall_cmds='chmod 644 $oldlib'
8793: old_postuninstall_cmds=
8794:
8795: if test -n "$RANLIB"; then
8796: case $host_os in
8797: bitrig* | openbsd*)
8798: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8799: ;;
8800: *)
8801: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8802: ;;
8803: esac
8804: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8805: fi
8806:
8807: case $host_os in
8808: darwin*)
8809: lock_old_archive_extraction=yes ;;
8810: *)
8811: lock_old_archive_extraction=no ;;
8812: esac
8813:
8814:
8815:
8816:
8817:
8818:
8819:
8820:
8821:
8822:
8823:
8824:
8825:
8826:
8827:
8828:
8829:
8830:
8831:
8832:
8833:
8834:
8835:
8836:
8837:
8838:
8839:
8840:
8841:
8842:
8843:
8844:
8845:
8846:
8847:
8848:
8849:
8850:
8851:
8852: # If no C compiler was specified, use CC.
8853: LTCC=${LTCC-"$CC"}
8854:
8855: # If no C compiler flags were specified, use CFLAGS.
8856: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8857:
8858: # Allow CC to be a program name with arguments.
8859: compiler=$CC
8860:
8861:
8862: # Check for command to grab the raw symbol name followed by C symbol from nm.
8863: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8864: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8865: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8866: $as_echo_n "(cached) " >&6
8867: else
8868:
8869: # These are sane defaults that work on at least a few old systems.
8870: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8871:
8872: # Character class describing NM global symbol codes.
8873: symcode='[BCDEGRST]'
8874:
8875: # Regexp to match symbols that can be accessed directly from C.
8876: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8877:
8878: # Define system-specific variables.
8879: case $host_os in
8880: aix*)
8881: symcode='[BCDT]'
8882: ;;
8883: cygwin* | mingw* | pw32* | cegcc*)
8884: symcode='[ABCDGISTW]'
8885: ;;
8886: hpux*)
8887: if test ia64 = "$host_cpu"; then
8888: symcode='[ABCDEGRST]'
8889: fi
8890: ;;
8891: irix* | nonstopux*)
8892: symcode='[BCDEGRST]'
8893: ;;
8894: osf*)
8895: symcode='[BCDEGQRST]'
8896: ;;
8897: solaris*)
8898: symcode='[BDRT]'
8899: ;;
8900: sco3.2v5*)
8901: symcode='[DT]'
8902: ;;
8903: sysv4.2uw2*)
8904: symcode='[DT]'
8905: ;;
8906: sysv5* | sco5v6* | unixware* | OpenUNIX*)
8907: symcode='[ABDT]'
8908: ;;
8909: sysv4)
8910: symcode='[DFNSTU]'
8911: ;;
8912: esac
8913:
8914: # If we're using GNU nm, then use its standard symbol codes.
8915: case `$NM -V 2>&1` in
8916: *GNU* | *'with BFD'*)
8917: symcode='[ABCDGIRSTW]' ;;
8918: esac
8919:
8920: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8921: # Gets list of data symbols to import.
8922: lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8923: # Adjust the below global symbol transforms to fixup imported variables.
8924: lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8925: lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8926: lt_c_name_lib_hook="\
8927: -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8928: -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8929: else
8930: # Disable hooks by default.
8931: lt_cv_sys_global_symbol_to_import=
8932: lt_cdecl_hook=
8933: lt_c_name_hook=
8934: lt_c_name_lib_hook=
8935: fi
8936:
8937: # Transform an extracted symbol line into a proper C declaration.
8938: # Some systems (esp. on ia64) link data and code symbols differently,
8939: # so use this general approach.
8940: lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8941: $lt_cdecl_hook\
8942: " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8943: " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8944:
8945: # Transform an extracted symbol line into symbol name and symbol address
8946: lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8947: $lt_c_name_hook\
8948: " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8949: " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8950:
8951: # Transform an extracted symbol line into symbol name with lib prefix and
8952: # symbol address.
8953: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8954: $lt_c_name_lib_hook\
8955: " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8956: " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8957: " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8958:
8959: # Handle CRLF in mingw tool chain
8960: opt_cr=
8961: case $build_os in
8962: mingw*)
8963: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8964: ;;
8965: esac
8966:
8967: # Try without a prefix underscore, then with it.
8968: for ac_symprfx in "" "_"; do
8969:
8970: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8971: symxfrm="\\1 $ac_symprfx\\2 \\2"
8972:
8973: # Write the raw and C identifiers.
8974: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8975: # Fake it for dumpbin and say T for any non-static function,
8976: # D for any global variable and I for any imported variable.
8977: # Also find C++ and __fastcall symbols from MSVC++,
8978: # which start with @ or ?.
8979: lt_cv_sys_global_symbol_pipe="$AWK '"\
8980: " {last_section=section; section=\$ 3};"\
8981: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8982: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8983: " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8984: " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8985: " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8986: " \$ 0!~/External *\|/{next};"\
8987: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8988: " {if(hide[section]) next};"\
8989: " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8990: " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8991: " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8992: " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8993: " ' prfx=^$ac_symprfx"
8994: else
8995: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8996: fi
8997: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8998:
8999: # Check to see that the pipe works correctly.
9000: pipe_works=no
9001:
9002: rm -f conftest*
9003: cat > conftest.$ac_ext <<_LT_EOF
9004: #ifdef __cplusplus
9005: extern "C" {
9006: #endif
9007: char nm_test_var;
9008: void nm_test_func(void);
9009: void nm_test_func(void){}
9010: #ifdef __cplusplus
9011: }
9012: #endif
9013: int main(){nm_test_var='a';nm_test_func();return(0);}
9014: _LT_EOF
9015:
9016: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9017: (eval $ac_compile) 2>&5
9018: ac_status=$?
9019: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9020: test $ac_status = 0; }; then
9021: # Now try to grab the symbols.
9022: nlist=conftest.nm
9023: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9024: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9025: ac_status=$?
9026: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9027: test $ac_status = 0; } && test -s "$nlist"; then
9028: # Try sorting and uniquifying the output.
9029: if sort "$nlist" | uniq > "$nlist"T; then
9030: mv -f "$nlist"T "$nlist"
9031: else
9032: rm -f "$nlist"T
9033: fi
9034:
9035: # Make sure that we snagged all the symbols we need.
9036: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9037: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9038: cat <<_LT_EOF > conftest.$ac_ext
9039: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9040: #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9041: /* DATA imports from DLLs on WIN32 can't be const, because runtime
9042: relocations are performed -- see ld's documentation on pseudo-relocs. */
9043: # define LT_DLSYM_CONST
9044: #elif defined __osf__
9045: /* This system does not cope well with relocations in const data. */
9046: # define LT_DLSYM_CONST
9047: #else
9048: # define LT_DLSYM_CONST const
9049: #endif
9050:
9051: #ifdef __cplusplus
9052: extern "C" {
9053: #endif
9054:
9055: _LT_EOF
9056: # Now generate the symbol file.
9057: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9058:
9059: cat <<_LT_EOF >> conftest.$ac_ext
9060:
9061: /* The mapping between symbol names and symbols. */
9062: LT_DLSYM_CONST struct {
9063: const char *name;
9064: void *address;
9065: }
9066: lt__PROGRAM__LTX_preloaded_symbols[] =
9067: {
9068: { "@PROGRAM@", (void *) 0 },
9069: _LT_EOF
9070: $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9071: cat <<\_LT_EOF >> conftest.$ac_ext
9072: {0, (void *) 0}
9073: };
9074:
9075: /* This works around a problem in FreeBSD linker */
9076: #ifdef FREEBSD_WORKAROUND
9077: static const void *lt_preloaded_setup() {
9078: return lt__PROGRAM__LTX_preloaded_symbols;
9079: }
9080: #endif
9081:
9082: #ifdef __cplusplus
9083: }
9084: #endif
9085: _LT_EOF
9086: # Now try linking the two files.
9087: mv conftest.$ac_objext conftstm.$ac_objext
9088: lt_globsym_save_LIBS=$LIBS
9089: lt_globsym_save_CFLAGS=$CFLAGS
9090: LIBS=conftstm.$ac_objext
9091: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9092: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9093: (eval $ac_link) 2>&5
9094: ac_status=$?
9095: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9096: test $ac_status = 0; } && test -s conftest$ac_exeext; then
9097: pipe_works=yes
9098: fi
9099: LIBS=$lt_globsym_save_LIBS
9100: CFLAGS=$lt_globsym_save_CFLAGS
9101: else
9102: echo "cannot find nm_test_func in $nlist" >&5
9103: fi
9104: else
9105: echo "cannot find nm_test_var in $nlist" >&5
9106: fi
9107: else
9108: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9109: fi
9110: else
9111: echo "$progname: failed program was:" >&5
9112: cat conftest.$ac_ext >&5
9113: fi
9114: rm -rf conftest* conftst*
9115:
9116: # Do not use the global_symbol_pipe unless it works.
9117: if test yes = "$pipe_works"; then
9118: break
9119: else
9120: lt_cv_sys_global_symbol_pipe=
9121: fi
9122: done
9123:
9124: fi
9125:
9126: if test -z "$lt_cv_sys_global_symbol_pipe"; then
9127: lt_cv_sys_global_symbol_to_cdecl=
9128: fi
9129: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9130: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9131: $as_echo "failed" >&6; }
9132: else
9133: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9134: $as_echo "ok" >&6; }
9135: fi
9136:
9137: # Response file support.
9138: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9139: nm_file_list_spec='@'
9140: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9141: nm_file_list_spec='@'
9142: fi
9143:
9144:
9145:
9146:
9147:
9148:
9149:
9150:
9151:
9152:
9153:
9154:
9155:
9156:
9157:
9158:
9159:
9160:
9161:
9162:
9163:
9164:
9165:
9166:
9167:
9168:
9169:
9170:
9171:
9172:
9173:
9174:
9175:
9176:
9177:
9178:
9179:
9180: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9181: $as_echo_n "checking for sysroot... " >&6; }
9182:
9183: # Check whether --with-sysroot was given.
9184: if test "${with_sysroot+set}" = set; then :
9185: withval=$with_sysroot;
9186: else
9187: with_sysroot=no
9188: fi
9189:
9190:
9191: lt_sysroot=
9192: case $with_sysroot in #(
9193: yes)
9194: if test yes = "$GCC"; then
9195: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9196: fi
9197: ;; #(
9198: /*)
9199: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9200: ;; #(
9201: no|'')
9202: ;; #(
9203: *)
9204: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9205: $as_echo "$with_sysroot" >&6; }
9206: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9207: ;;
9208: esac
9209:
9210: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9211: $as_echo "${lt_sysroot:-no}" >&6; }
9212:
9213:
9214:
9215:
9216:
9217: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9218: $as_echo_n "checking for a working dd... " >&6; }
9219: if ${ac_cv_path_lt_DD+:} false; then :
9220: $as_echo_n "(cached) " >&6
9221: else
9222: printf 0123456789abcdef0123456789abcdef >conftest.i
9223: cat conftest.i conftest.i >conftest2.i
9224: : ${lt_DD:=$DD}
9225: if test -z "$lt_DD"; then
9226: ac_path_lt_DD_found=false
9227: # Loop through the user's path and test for each of PROGNAME-LIST
9228: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9229: for as_dir in $PATH
9230: do
9231: IFS=$as_save_IFS
9232: test -z "$as_dir" && as_dir=.
9233: for ac_prog in dd; do
9234: for ac_exec_ext in '' $ac_executable_extensions; do
9235: ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9236: as_fn_executable_p "$ac_path_lt_DD" || continue
9237: if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9238: cmp -s conftest.i conftest.out \
9239: && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9240: fi
9241: $ac_path_lt_DD_found && break 3
9242: done
9243: done
9244: done
9245: IFS=$as_save_IFS
9246: if test -z "$ac_cv_path_lt_DD"; then
9247: :
9248: fi
9249: else
9250: ac_cv_path_lt_DD=$lt_DD
9251: fi
9252:
9253: rm -f conftest.i conftest2.i conftest.out
9254: fi
9255: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9256: $as_echo "$ac_cv_path_lt_DD" >&6; }
9257:
9258:
9259: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9260: $as_echo_n "checking how to truncate binary pipes... " >&6; }
9261: if ${lt_cv_truncate_bin+:} false; then :
9262: $as_echo_n "(cached) " >&6
9263: else
9264: printf 0123456789abcdef0123456789abcdef >conftest.i
9265: cat conftest.i conftest.i >conftest2.i
9266: lt_cv_truncate_bin=
9267: if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9268: cmp -s conftest.i conftest.out \
9269: && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9270: fi
9271: rm -f conftest.i conftest2.i conftest.out
9272: test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9273: fi
9274: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9275: $as_echo "$lt_cv_truncate_bin" >&6; }
9276:
9277:
9278:
9279:
9280:
9281:
9282:
9283: # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9284: func_cc_basename ()
9285: {
9286: for cc_temp in $*""; do
9287: case $cc_temp in
9288: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9289: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9290: \-*) ;;
9291: *) break;;
9292: esac
9293: done
9294: func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9295: }
9296:
9297: # Check whether --enable-libtool-lock was given.
9298: if test "${enable_libtool_lock+set}" = set; then :
9299: enableval=$enable_libtool_lock;
9300: fi
9301:
9302: test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9303:
9304: # Some flags need to be propagated to the compiler or linker for good
9305: # libtool support.
9306: case $host in
9307: ia64-*-hpux*)
9308: # Find out what ABI is being produced by ac_compile, and set mode
9309: # options accordingly.
9310: echo 'int i;' > conftest.$ac_ext
9311: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9312: (eval $ac_compile) 2>&5
9313: ac_status=$?
9314: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9315: test $ac_status = 0; }; then
9316: case `/usr/bin/file conftest.$ac_objext` in
9317: *ELF-32*)
9318: HPUX_IA64_MODE=32
9319: ;;
9320: *ELF-64*)
9321: HPUX_IA64_MODE=64
9322: ;;
9323: esac
9324: fi
9325: rm -rf conftest*
9326: ;;
9327: *-*-irix6*)
9328: # Find out what ABI is being produced by ac_compile, and set linker
9329: # options accordingly.
9330: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9331: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9332: (eval $ac_compile) 2>&5
9333: ac_status=$?
9334: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9335: test $ac_status = 0; }; then
9336: if test yes = "$lt_cv_prog_gnu_ld"; then
9337: case `/usr/bin/file conftest.$ac_objext` in
9338: *32-bit*)
9339: LD="${LD-ld} -melf32bsmip"
9340: ;;
9341: *N32*)
9342: LD="${LD-ld} -melf32bmipn32"
9343: ;;
9344: *64-bit*)
9345: LD="${LD-ld} -melf64bmip"
9346: ;;
9347: esac
9348: else
9349: case `/usr/bin/file conftest.$ac_objext` in
9350: *32-bit*)
9351: LD="${LD-ld} -32"
9352: ;;
9353: *N32*)
9354: LD="${LD-ld} -n32"
9355: ;;
9356: *64-bit*)
9357: LD="${LD-ld} -64"
9358: ;;
9359: esac
9360: fi
9361: fi
9362: rm -rf conftest*
9363: ;;
9364:
9365: mips64*-*linux*)
9366: # Find out what ABI is being produced by ac_compile, and set linker
9367: # options accordingly.
9368: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9369: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9370: (eval $ac_compile) 2>&5
9371: ac_status=$?
9372: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9373: test $ac_status = 0; }; then
9374: emul=elf
9375: case `/usr/bin/file conftest.$ac_objext` in
9376: *32-bit*)
9377: emul="${emul}32"
9378: ;;
9379: *64-bit*)
9380: emul="${emul}64"
9381: ;;
9382: esac
9383: case `/usr/bin/file conftest.$ac_objext` in
9384: *MSB*)
9385: emul="${emul}btsmip"
9386: ;;
9387: *LSB*)
9388: emul="${emul}ltsmip"
9389: ;;
9390: esac
9391: case `/usr/bin/file conftest.$ac_objext` in
9392: *N32*)
9393: emul="${emul}n32"
9394: ;;
9395: esac
9396: LD="${LD-ld} -m $emul"
9397: fi
9398: rm -rf conftest*
9399: ;;
9400:
9401: x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9402: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9403: # Find out what ABI is being produced by ac_compile, and set linker
9404: # options accordingly. Note that the listed cases only cover the
9405: # situations where additional linker options are needed (such as when
9406: # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9407: # vice versa); the common cases where no linker options are needed do
9408: # not appear in the list.
9409: echo 'int i;' > conftest.$ac_ext
9410: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9411: (eval $ac_compile) 2>&5
9412: ac_status=$?
9413: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9414: test $ac_status = 0; }; then
9415: case `/usr/bin/file conftest.o` in
9416: *32-bit*)
9417: case $host in
9418: x86_64-*kfreebsd*-gnu)
9419: LD="${LD-ld} -m elf_i386_fbsd"
9420: ;;
9421: x86_64-*linux*)
9422: case `/usr/bin/file conftest.o` in
9423: *x86-64*)
9424: LD="${LD-ld} -m elf32_x86_64"
9425: ;;
9426: *)
9427: LD="${LD-ld} -m elf_i386"
9428: ;;
9429: esac
9430: ;;
9431: powerpc64le-*linux*)
9432: LD="${LD-ld} -m elf32lppclinux"
9433: ;;
9434: powerpc64-*linux*)
9435: LD="${LD-ld} -m elf32ppclinux"
9436: ;;
9437: s390x-*linux*)
9438: LD="${LD-ld} -m elf_s390"
9439: ;;
9440: sparc64-*linux*)
9441: LD="${LD-ld} -m elf32_sparc"
9442: ;;
9443: esac
9444: ;;
9445: *64-bit*)
9446: case $host in
9447: x86_64-*kfreebsd*-gnu)
9448: LD="${LD-ld} -m elf_x86_64_fbsd"
9449: ;;
9450: x86_64-*linux*)
9451: LD="${LD-ld} -m elf_x86_64"
9452: ;;
9453: powerpcle-*linux*)
9454: LD="${LD-ld} -m elf64lppc"
9455: ;;
9456: powerpc-*linux*)
9457: LD="${LD-ld} -m elf64ppc"
9458: ;;
9459: s390*-*linux*|s390*-*tpf*)
9460: LD="${LD-ld} -m elf64_s390"
9461: ;;
9462: sparc*-*linux*)
9463: LD="${LD-ld} -m elf64_sparc"
9464: ;;
9465: esac
9466: ;;
9467: esac
9468: fi
9469: rm -rf conftest*
9470: ;;
9471:
9472: *-*-sco3.2v5*)
9473: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9474: SAVE_CFLAGS=$CFLAGS
9475: CFLAGS="$CFLAGS -belf"
9476: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9477: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9478: if ${lt_cv_cc_needs_belf+:} false; then :
9479: $as_echo_n "(cached) " >&6
9480: else
9481: ac_ext=c
9482: ac_cpp='$CPP $CPPFLAGS'
9483: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9484: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9485: ac_compiler_gnu=$ac_cv_c_compiler_gnu
9486:
9487: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9488: /* end confdefs.h. */
9489:
9490: int
9491: main ()
9492: {
9493:
9494: ;
9495: return 0;
9496: }
9497: _ACEOF
9498: if ac_fn_c_try_link "$LINENO"; then :
9499: lt_cv_cc_needs_belf=yes
9500: else
9501: lt_cv_cc_needs_belf=no
9502: fi
9503: rm -f core conftest.err conftest.$ac_objext \
9504: conftest$ac_exeext conftest.$ac_ext
9505: ac_ext=c
9506: ac_cpp='$CPP $CPPFLAGS'
9507: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9508: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9509: ac_compiler_gnu=$ac_cv_c_compiler_gnu
9510:
9511: fi
9512: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9513: $as_echo "$lt_cv_cc_needs_belf" >&6; }
9514: if test yes != "$lt_cv_cc_needs_belf"; then
9515: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9516: CFLAGS=$SAVE_CFLAGS
9517: fi
9518: ;;
9519: *-*solaris*)
9520: # Find out what ABI is being produced by ac_compile, and set linker
9521: # options accordingly.
9522: echo 'int i;' > conftest.$ac_ext
9523: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9524: (eval $ac_compile) 2>&5
9525: ac_status=$?
9526: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9527: test $ac_status = 0; }; then
9528: case `/usr/bin/file conftest.o` in
9529: *64-bit*)
9530: case $lt_cv_prog_gnu_ld in
9531: yes*)
9532: case $host in
9533: i?86-*-solaris*|x86_64-*-solaris*)
9534: LD="${LD-ld} -m elf_x86_64"
9535: ;;
9536: sparc*-*-solaris*)
9537: LD="${LD-ld} -m elf64_sparc"
9538: ;;
9539: esac
9540: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9541: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9542: LD=${LD-ld}_sol2
9543: fi
9544: ;;
9545: *)
9546: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9547: LD="${LD-ld} -64"
9548: fi
9549: ;;
9550: esac
9551: ;;
9552: esac
9553: fi
9554: rm -rf conftest*
9555: ;;
9556: esac
9557:
9558: need_locks=$enable_libtool_lock
9559:
9560: if test -n "$ac_tool_prefix"; then
9561: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9562: set dummy ${ac_tool_prefix}mt; ac_word=$2
9563: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9564: $as_echo_n "checking for $ac_word... " >&6; }
9565: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9566: $as_echo_n "(cached) " >&6
9567: else
9568: if test -n "$MANIFEST_TOOL"; then
9569: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9570: else
9571: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9572: for as_dir in $PATH
9573: do
9574: IFS=$as_save_IFS
9575: test -z "$as_dir" && as_dir=.
9576: for ac_exec_ext in '' $ac_executable_extensions; do
9577: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9578: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9579: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9580: break 2
9581: fi
9582: done
9583: done
9584: IFS=$as_save_IFS
9585:
9586: fi
9587: fi
9588: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9589: if test -n "$MANIFEST_TOOL"; then
9590: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9591: $as_echo "$MANIFEST_TOOL" >&6; }
9592: else
9593: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9594: $as_echo "no" >&6; }
9595: fi
9596:
9597:
9598: fi
9599: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9600: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9601: # Extract the first word of "mt", so it can be a program name with args.
9602: set dummy mt; ac_word=$2
9603: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9604: $as_echo_n "checking for $ac_word... " >&6; }
9605: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9606: $as_echo_n "(cached) " >&6
9607: else
9608: if test -n "$ac_ct_MANIFEST_TOOL"; then
9609: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9610: else
9611: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9612: for as_dir in $PATH
9613: do
9614: IFS=$as_save_IFS
9615: test -z "$as_dir" && as_dir=.
9616: for ac_exec_ext in '' $ac_executable_extensions; do
9617: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9618: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9619: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9620: break 2
9621: fi
9622: done
9623: done
9624: IFS=$as_save_IFS
9625:
9626: fi
9627: fi
9628: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9629: if test -n "$ac_ct_MANIFEST_TOOL"; then
9630: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9631: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9632: else
9633: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9634: $as_echo "no" >&6; }
9635: fi
9636:
9637: if test "x$ac_ct_MANIFEST_TOOL" = x; then
9638: MANIFEST_TOOL=":"
9639: else
9640: case $cross_compiling:$ac_tool_warned in
9641: yes:)
9642: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9643: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9644: ac_tool_warned=yes ;;
9645: esac
9646: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9647: fi
9648: else
9649: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9650: fi
9651:
9652: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9653: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9654: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9655: if ${lt_cv_path_mainfest_tool+:} false; then :
9656: $as_echo_n "(cached) " >&6
9657: else
9658: lt_cv_path_mainfest_tool=no
9659: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9660: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9661: cat conftest.err >&5
9662: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9663: lt_cv_path_mainfest_tool=yes
9664: fi
9665: rm -f conftest*
9666: fi
9667: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9668: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9669: if test yes != "$lt_cv_path_mainfest_tool"; then
9670: MANIFEST_TOOL=:
9671: fi
9672:
9673:
9674:
9675:
9676:
9677:
9678: case $host_os in
9679: rhapsody* | darwin*)
9680: if test -n "$ac_tool_prefix"; then
9681: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9682: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9683: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9684: $as_echo_n "checking for $ac_word... " >&6; }
9685: if ${ac_cv_prog_DSYMUTIL+:} false; then :
9686: $as_echo_n "(cached) " >&6
9687: else
9688: if test -n "$DSYMUTIL"; then
9689: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9690: else
9691: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9692: for as_dir in $PATH
9693: do
9694: IFS=$as_save_IFS
9695: test -z "$as_dir" && as_dir=.
9696: for ac_exec_ext in '' $ac_executable_extensions; do
9697: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9698: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9699: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9700: break 2
9701: fi
9702: done
9703: done
9704: IFS=$as_save_IFS
9705:
9706: fi
9707: fi
9708: DSYMUTIL=$ac_cv_prog_DSYMUTIL
9709: if test -n "$DSYMUTIL"; then
9710: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9711: $as_echo "$DSYMUTIL" >&6; }
9712: else
9713: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9714: $as_echo "no" >&6; }
9715: fi
9716:
9717:
9718: fi
9719: if test -z "$ac_cv_prog_DSYMUTIL"; then
9720: ac_ct_DSYMUTIL=$DSYMUTIL
9721: # Extract the first word of "dsymutil", so it can be a program name with args.
9722: set dummy dsymutil; ac_word=$2
9723: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9724: $as_echo_n "checking for $ac_word... " >&6; }
9725: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9726: $as_echo_n "(cached) " >&6
9727: else
9728: if test -n "$ac_ct_DSYMUTIL"; then
9729: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9730: else
9731: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9732: for as_dir in $PATH
9733: do
9734: IFS=$as_save_IFS
9735: test -z "$as_dir" && as_dir=.
9736: for ac_exec_ext in '' $ac_executable_extensions; do
9737: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9738: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9739: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9740: break 2
9741: fi
9742: done
9743: done
9744: IFS=$as_save_IFS
9745:
9746: fi
9747: fi
9748: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9749: if test -n "$ac_ct_DSYMUTIL"; then
9750: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9751: $as_echo "$ac_ct_DSYMUTIL" >&6; }
9752: else
9753: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9754: $as_echo "no" >&6; }
9755: fi
9756:
9757: if test "x$ac_ct_DSYMUTIL" = x; then
9758: DSYMUTIL=":"
9759: else
9760: case $cross_compiling:$ac_tool_warned in
9761: yes:)
9762: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9763: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9764: ac_tool_warned=yes ;;
9765: esac
9766: DSYMUTIL=$ac_ct_DSYMUTIL
9767: fi
9768: else
9769: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9770: fi
9771:
9772: if test -n "$ac_tool_prefix"; then
9773: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9774: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9775: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9776: $as_echo_n "checking for $ac_word... " >&6; }
9777: if ${ac_cv_prog_NMEDIT+:} false; then :
9778: $as_echo_n "(cached) " >&6
9779: else
9780: if test -n "$NMEDIT"; then
9781: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9782: else
9783: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9784: for as_dir in $PATH
9785: do
9786: IFS=$as_save_IFS
9787: test -z "$as_dir" && as_dir=.
9788: for ac_exec_ext in '' $ac_executable_extensions; do
9789: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9790: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9791: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9792: break 2
9793: fi
9794: done
9795: done
9796: IFS=$as_save_IFS
9797:
9798: fi
9799: fi
9800: NMEDIT=$ac_cv_prog_NMEDIT
9801: if test -n "$NMEDIT"; then
9802: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9803: $as_echo "$NMEDIT" >&6; }
9804: else
9805: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9806: $as_echo "no" >&6; }
9807: fi
9808:
9809:
9810: fi
9811: if test -z "$ac_cv_prog_NMEDIT"; then
9812: ac_ct_NMEDIT=$NMEDIT
9813: # Extract the first word of "nmedit", so it can be a program name with args.
9814: set dummy nmedit; ac_word=$2
9815: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9816: $as_echo_n "checking for $ac_word... " >&6; }
9817: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9818: $as_echo_n "(cached) " >&6
9819: else
9820: if test -n "$ac_ct_NMEDIT"; then
9821: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9822: else
9823: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9824: for as_dir in $PATH
9825: do
9826: IFS=$as_save_IFS
9827: test -z "$as_dir" && as_dir=.
9828: for ac_exec_ext in '' $ac_executable_extensions; do
9829: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9830: ac_cv_prog_ac_ct_NMEDIT="nmedit"
9831: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9832: break 2
9833: fi
9834: done
9835: done
9836: IFS=$as_save_IFS
9837:
9838: fi
9839: fi
9840: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9841: if test -n "$ac_ct_NMEDIT"; then
9842: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9843: $as_echo "$ac_ct_NMEDIT" >&6; }
9844: else
9845: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9846: $as_echo "no" >&6; }
9847: fi
9848:
9849: if test "x$ac_ct_NMEDIT" = x; then
9850: NMEDIT=":"
9851: else
9852: case $cross_compiling:$ac_tool_warned in
9853: yes:)
9854: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9855: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9856: ac_tool_warned=yes ;;
9857: esac
9858: NMEDIT=$ac_ct_NMEDIT
9859: fi
9860: else
9861: NMEDIT="$ac_cv_prog_NMEDIT"
9862: fi
9863:
9864: if test -n "$ac_tool_prefix"; then
9865: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9866: set dummy ${ac_tool_prefix}lipo; ac_word=$2
9867: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9868: $as_echo_n "checking for $ac_word... " >&6; }
9869: if ${ac_cv_prog_LIPO+:} false; then :
9870: $as_echo_n "(cached) " >&6
9871: else
9872: if test -n "$LIPO"; then
9873: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9874: else
9875: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9876: for as_dir in $PATH
9877: do
9878: IFS=$as_save_IFS
9879: test -z "$as_dir" && as_dir=.
9880: for ac_exec_ext in '' $ac_executable_extensions; do
9881: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9882: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9883: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9884: break 2
9885: fi
9886: done
9887: done
9888: IFS=$as_save_IFS
9889:
9890: fi
9891: fi
9892: LIPO=$ac_cv_prog_LIPO
9893: if test -n "$LIPO"; then
9894: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9895: $as_echo "$LIPO" >&6; }
9896: else
9897: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9898: $as_echo "no" >&6; }
9899: fi
9900:
9901:
9902: fi
9903: if test -z "$ac_cv_prog_LIPO"; then
9904: ac_ct_LIPO=$LIPO
9905: # Extract the first word of "lipo", so it can be a program name with args.
9906: set dummy lipo; ac_word=$2
9907: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9908: $as_echo_n "checking for $ac_word... " >&6; }
9909: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9910: $as_echo_n "(cached) " >&6
9911: else
9912: if test -n "$ac_ct_LIPO"; then
9913: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9914: else
9915: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9916: for as_dir in $PATH
9917: do
9918: IFS=$as_save_IFS
9919: test -z "$as_dir" && as_dir=.
9920: for ac_exec_ext in '' $ac_executable_extensions; do
9921: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9922: ac_cv_prog_ac_ct_LIPO="lipo"
9923: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9924: break 2
9925: fi
9926: done
9927: done
9928: IFS=$as_save_IFS
9929:
9930: fi
9931: fi
9932: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9933: if test -n "$ac_ct_LIPO"; then
9934: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9935: $as_echo "$ac_ct_LIPO" >&6; }
9936: else
9937: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9938: $as_echo "no" >&6; }
9939: fi
9940:
9941: if test "x$ac_ct_LIPO" = x; then
9942: LIPO=":"
9943: else
9944: case $cross_compiling:$ac_tool_warned in
9945: yes:)
9946: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9947: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9948: ac_tool_warned=yes ;;
9949: esac
9950: LIPO=$ac_ct_LIPO
9951: fi
9952: else
9953: LIPO="$ac_cv_prog_LIPO"
9954: fi
9955:
9956: if test -n "$ac_tool_prefix"; then
9957: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9958: set dummy ${ac_tool_prefix}otool; ac_word=$2
9959: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9960: $as_echo_n "checking for $ac_word... " >&6; }
9961: if ${ac_cv_prog_OTOOL+:} false; then :
9962: $as_echo_n "(cached) " >&6
9963: else
9964: if test -n "$OTOOL"; then
9965: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9966: else
9967: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9968: for as_dir in $PATH
9969: do
9970: IFS=$as_save_IFS
9971: test -z "$as_dir" && as_dir=.
9972: for ac_exec_ext in '' $ac_executable_extensions; do
9973: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9974: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9975: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9976: break 2
9977: fi
9978: done
9979: done
9980: IFS=$as_save_IFS
9981:
9982: fi
9983: fi
9984: OTOOL=$ac_cv_prog_OTOOL
9985: if test -n "$OTOOL"; then
9986: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9987: $as_echo "$OTOOL" >&6; }
9988: else
9989: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9990: $as_echo "no" >&6; }
9991: fi
9992:
9993:
9994: fi
9995: if test -z "$ac_cv_prog_OTOOL"; then
9996: ac_ct_OTOOL=$OTOOL
9997: # Extract the first word of "otool", so it can be a program name with args.
9998: set dummy otool; ac_word=$2
9999: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10000: $as_echo_n "checking for $ac_word... " >&6; }
10001: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10002: $as_echo_n "(cached) " >&6
10003: else
10004: if test -n "$ac_ct_OTOOL"; then
10005: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10006: else
10007: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10008: for as_dir in $PATH
10009: do
10010: IFS=$as_save_IFS
10011: test -z "$as_dir" && as_dir=.
10012: for ac_exec_ext in '' $ac_executable_extensions; do
10013: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10014: ac_cv_prog_ac_ct_OTOOL="otool"
10015: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10016: break 2
10017: fi
10018: done
10019: done
10020: IFS=$as_save_IFS
10021:
10022: fi
10023: fi
10024: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10025: if test -n "$ac_ct_OTOOL"; then
10026: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10027: $as_echo "$ac_ct_OTOOL" >&6; }
10028: else
10029: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10030: $as_echo "no" >&6; }
10031: fi
10032:
10033: if test "x$ac_ct_OTOOL" = x; then
10034: OTOOL=":"
10035: else
10036: case $cross_compiling:$ac_tool_warned in
10037: yes:)
10038: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10039: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10040: ac_tool_warned=yes ;;
10041: esac
10042: OTOOL=$ac_ct_OTOOL
10043: fi
10044: else
10045: OTOOL="$ac_cv_prog_OTOOL"
10046: fi
10047:
10048: if test -n "$ac_tool_prefix"; then
10049: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10050: set dummy ${ac_tool_prefix}otool64; ac_word=$2
10051: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10052: $as_echo_n "checking for $ac_word... " >&6; }
10053: if ${ac_cv_prog_OTOOL64+:} false; then :
10054: $as_echo_n "(cached) " >&6
10055: else
10056: if test -n "$OTOOL64"; then
10057: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10058: else
10059: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10060: for as_dir in $PATH
10061: do
10062: IFS=$as_save_IFS
10063: test -z "$as_dir" && as_dir=.
10064: for ac_exec_ext in '' $ac_executable_extensions; do
10065: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10066: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10067: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10068: break 2
10069: fi
10070: done
10071: done
10072: IFS=$as_save_IFS
10073:
10074: fi
10075: fi
10076: OTOOL64=$ac_cv_prog_OTOOL64
10077: if test -n "$OTOOL64"; then
10078: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10079: $as_echo "$OTOOL64" >&6; }
10080: else
10081: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10082: $as_echo "no" >&6; }
10083: fi
10084:
10085:
10086: fi
10087: if test -z "$ac_cv_prog_OTOOL64"; then
10088: ac_ct_OTOOL64=$OTOOL64
10089: # Extract the first word of "otool64", so it can be a program name with args.
10090: set dummy otool64; ac_word=$2
10091: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10092: $as_echo_n "checking for $ac_word... " >&6; }
10093: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10094: $as_echo_n "(cached) " >&6
10095: else
10096: if test -n "$ac_ct_OTOOL64"; then
10097: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10098: else
10099: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10100: for as_dir in $PATH
10101: do
10102: IFS=$as_save_IFS
10103: test -z "$as_dir" && as_dir=.
10104: for ac_exec_ext in '' $ac_executable_extensions; do
10105: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10106: ac_cv_prog_ac_ct_OTOOL64="otool64"
10107: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10108: break 2
10109: fi
10110: done
10111: done
10112: IFS=$as_save_IFS
10113:
10114: fi
10115: fi
10116: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10117: if test -n "$ac_ct_OTOOL64"; then
10118: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10119: $as_echo "$ac_ct_OTOOL64" >&6; }
10120: else
10121: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10122: $as_echo "no" >&6; }
10123: fi
10124:
10125: if test "x$ac_ct_OTOOL64" = x; then
10126: OTOOL64=":"
10127: else
10128: case $cross_compiling:$ac_tool_warned in
10129: yes:)
10130: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10131: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10132: ac_tool_warned=yes ;;
10133: esac
10134: OTOOL64=$ac_ct_OTOOL64
10135: fi
10136: else
10137: OTOOL64="$ac_cv_prog_OTOOL64"
10138: fi
10139:
10140:
10141:
10142:
10143:
10144:
10145:
10146:
10147:
10148:
10149:
10150:
10151:
10152:
10153:
10154:
10155:
10156:
10157:
10158:
10159:
10160:
10161:
10162:
10163:
10164:
10165:
10166: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10167: $as_echo_n "checking for -single_module linker flag... " >&6; }
10168: if ${lt_cv_apple_cc_single_mod+:} false; then :
10169: $as_echo_n "(cached) " >&6
10170: else
10171: lt_cv_apple_cc_single_mod=no
10172: if test -z "$LT_MULTI_MODULE"; then
10173: # By default we will add the -single_module flag. You can override
10174: # by either setting the environment variable LT_MULTI_MODULE
10175: # non-empty at configure time, or by adding -multi_module to the
10176: # link flags.
10177: rm -rf libconftest.dylib*
10178: echo "int foo(void){return 1;}" > conftest.c
10179: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10180: -dynamiclib -Wl,-single_module conftest.c" >&5
10181: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10182: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10183: _lt_result=$?
10184: # If there is a non-empty error log, and "single_module"
10185: # appears in it, assume the flag caused a linker warning
10186: if test -s conftest.err && $GREP single_module conftest.err; then
10187: cat conftest.err >&5
10188: # Otherwise, if the output was created with a 0 exit code from
10189: # the compiler, it worked.
10190: elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10191: lt_cv_apple_cc_single_mod=yes
10192: else
10193: cat conftest.err >&5
10194: fi
10195: rm -rf libconftest.dylib*
10196: rm -f conftest.*
10197: fi
10198: fi
10199: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10200: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10201:
10202: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10203: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10204: if ${lt_cv_ld_exported_symbols_list+:} false; then :
10205: $as_echo_n "(cached) " >&6
10206: else
10207: lt_cv_ld_exported_symbols_list=no
10208: save_LDFLAGS=$LDFLAGS
10209: echo "_main" > conftest.sym
10210: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10211: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10212: /* end confdefs.h. */
10213:
10214: int
10215: main ()
10216: {
10217:
10218: ;
10219: return 0;
10220: }
10221: _ACEOF
10222: if ac_fn_c_try_link "$LINENO"; then :
10223: lt_cv_ld_exported_symbols_list=yes
10224: else
10225: lt_cv_ld_exported_symbols_list=no
10226: fi
10227: rm -f core conftest.err conftest.$ac_objext \
10228: conftest$ac_exeext conftest.$ac_ext
10229: LDFLAGS=$save_LDFLAGS
10230:
10231: fi
10232: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10233: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10234:
10235: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10236: $as_echo_n "checking for -force_load linker flag... " >&6; }
10237: if ${lt_cv_ld_force_load+:} false; then :
10238: $as_echo_n "(cached) " >&6
10239: else
10240: lt_cv_ld_force_load=no
10241: cat > conftest.c << _LT_EOF
10242: int forced_loaded() { return 2;}
10243: _LT_EOF
10244: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10245: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10246: echo "$AR cru libconftest.a conftest.o" >&5
10247: $AR cru libconftest.a conftest.o 2>&5
10248: echo "$RANLIB libconftest.a" >&5
10249: $RANLIB libconftest.a 2>&5
10250: cat > conftest.c << _LT_EOF
10251: int main() { return 0;}
10252: _LT_EOF
10253: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10254: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10255: _lt_result=$?
10256: if test -s conftest.err && $GREP force_load conftest.err; then
10257: cat conftest.err >&5
10258: elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10259: lt_cv_ld_force_load=yes
10260: else
10261: cat conftest.err >&5
10262: fi
10263: rm -f conftest.err libconftest.a conftest conftest.c
10264: rm -rf conftest.dSYM
10265:
10266: fi
10267: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10268: $as_echo "$lt_cv_ld_force_load" >&6; }
10269: case $host_os in
10270: rhapsody* | darwin1.[012])
10271: _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10272: darwin1.*)
10273: _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10274: darwin*) # darwin 5.x on
10275: # if running on 10.5 or later, the deployment target defaults
10276: # to the OS version, if on x86, and 10.4, the deployment
10277: # target defaults to 10.4. Don't you love it?
10278: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10279: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10280: _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10281: 10.[012][,.]*)
10282: _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10283: 10.*)
10284: _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10285: esac
10286: ;;
10287: esac
10288: if test yes = "$lt_cv_apple_cc_single_mod"; then
10289: _lt_dar_single_mod='$single_module'
10290: fi
10291: if test yes = "$lt_cv_ld_exported_symbols_list"; then
10292: _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10293: else
10294: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10295: fi
10296: if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10297: _lt_dsymutil='~$DSYMUTIL $lib || :'
10298: else
10299: _lt_dsymutil=
10300: fi
10301: ;;
10302: esac
10303:
10304: # func_munge_path_list VARIABLE PATH
10305: # -----------------------------------
10306: # VARIABLE is name of variable containing _space_ separated list of
10307: # directories to be munged by the contents of PATH, which is string
10308: # having a format:
10309: # "DIR[:DIR]:"
10310: # string "DIR[ DIR]" will be prepended to VARIABLE
10311: # ":DIR[:DIR]"
10312: # string "DIR[ DIR]" will be appended to VARIABLE
10313: # "DIRP[:DIRP]::[DIRA:]DIRA"
10314: # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10315: # "DIRA[ DIRA]" will be appended to VARIABLE
10316: # "DIR[:DIR]"
10317: # VARIABLE will be replaced by "DIR[ DIR]"
10318: func_munge_path_list ()
10319: {
10320: case x$2 in
10321: x)
10322: ;;
10323: *:)
10324: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10325: ;;
10326: x:*)
10327: eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10328: ;;
10329: *::*)
10330: eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10331: eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10332: ;;
10333: *)
10334: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10335: ;;
10336: esac
10337: }
10338:
10339: for ac_header in dlfcn.h
10340: do :
10341: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10342: "
10343: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10344: cat >>confdefs.h <<_ACEOF
10345: #define HAVE_DLFCN_H 1
10346: _ACEOF
10347:
10348: fi
10349:
10350: done
10351:
10352:
10353:
10354:
10355:
10356: # Set options
10357:
10358:
10359:
10360: enable_dlopen=no
10361:
10362:
10363: enable_win32_dll=no
10364:
10365:
10366: # Check whether --enable-shared was given.
10367: if test "${enable_shared+set}" = set; then :
10368: enableval=$enable_shared; p=${PACKAGE-default}
10369: case $enableval in
10370: yes) enable_shared=yes ;;
10371: no) enable_shared=no ;;
10372: *)
10373: enable_shared=no
10374: # Look at the argument we got. We use all the common list separators.
10375: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10376: for pkg in $enableval; do
10377: IFS=$lt_save_ifs
10378: if test "X$pkg" = "X$p"; then
10379: enable_shared=yes
10380: fi
10381: done
10382: IFS=$lt_save_ifs
10383: ;;
10384: esac
10385: else
10386: enable_shared=yes
10387: fi
10388:
10389:
10390:
10391:
10392:
10393:
10394:
10395:
10396:
10397: # Check whether --enable-static was given.
10398: if test "${enable_static+set}" = set; then :
10399: enableval=$enable_static; p=${PACKAGE-default}
10400: case $enableval in
10401: yes) enable_static=yes ;;
10402: no) enable_static=no ;;
10403: *)
10404: enable_static=no
10405: # Look at the argument we got. We use all the common list separators.
10406: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10407: for pkg in $enableval; do
10408: IFS=$lt_save_ifs
10409: if test "X$pkg" = "X$p"; then
10410: enable_static=yes
10411: fi
10412: done
10413: IFS=$lt_save_ifs
10414: ;;
10415: esac
10416: else
10417: enable_static=yes
10418: fi
10419:
10420:
10421:
10422:
10423:
10424:
10425:
10426:
10427:
10428:
10429: # Check whether --with-pic was given.
10430: if test "${with_pic+set}" = set; then :
10431: withval=$with_pic; lt_p=${PACKAGE-default}
10432: case $withval in
10433: yes|no) pic_mode=$withval ;;
10434: *)
10435: pic_mode=default
10436: # Look at the argument we got. We use all the common list separators.
10437: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10438: for lt_pkg in $withval; do
10439: IFS=$lt_save_ifs
10440: if test "X$lt_pkg" = "X$lt_p"; then
10441: pic_mode=yes
10442: fi
10443: done
10444: IFS=$lt_save_ifs
10445: ;;
10446: esac
10447: else
10448: pic_mode=default
10449: fi
10450:
10451:
10452:
10453:
10454:
10455:
10456:
10457:
10458: # Check whether --enable-fast-install was given.
10459: if test "${enable_fast_install+set}" = set; then :
10460: enableval=$enable_fast_install; p=${PACKAGE-default}
10461: case $enableval in
10462: yes) enable_fast_install=yes ;;
10463: no) enable_fast_install=no ;;
10464: *)
10465: enable_fast_install=no
10466: # Look at the argument we got. We use all the common list separators.
10467: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10468: for pkg in $enableval; do
10469: IFS=$lt_save_ifs
10470: if test "X$pkg" = "X$p"; then
10471: enable_fast_install=yes
10472: fi
10473: done
10474: IFS=$lt_save_ifs
10475: ;;
10476: esac
10477: else
10478: enable_fast_install=yes
10479: fi
10480:
10481:
10482:
10483:
10484:
10485:
10486:
10487:
10488: shared_archive_member_spec=
10489: case $host,$enable_shared in
10490: power*-*-aix[5-9]*,yes)
10491: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10492: $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10493:
10494: # Check whether --with-aix-soname was given.
10495: if test "${with_aix_soname+set}" = set; then :
10496: withval=$with_aix_soname; case $withval in
10497: aix|svr4|both)
10498: ;;
10499: *)
10500: as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10501: ;;
10502: esac
10503: lt_cv_with_aix_soname=$with_aix_soname
10504: else
10505: if ${lt_cv_with_aix_soname+:} false; then :
10506: $as_echo_n "(cached) " >&6
10507: else
10508: lt_cv_with_aix_soname=aix
10509: fi
10510:
10511: with_aix_soname=$lt_cv_with_aix_soname
10512: fi
10513:
10514: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10515: $as_echo "$with_aix_soname" >&6; }
10516: if test aix != "$with_aix_soname"; then
10517: # For the AIX way of multilib, we name the shared archive member
10518: # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10519: # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10520: # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10521: # the AIX toolchain works better with OBJECT_MODE set (default 32).
10522: if test 64 = "${OBJECT_MODE-32}"; then
10523: shared_archive_member_spec=shr_64
10524: else
10525: shared_archive_member_spec=shr
10526: fi
10527: fi
10528: ;;
10529: *)
10530: with_aix_soname=aix
10531: ;;
10532: esac
10533:
10534:
10535:
10536:
10537:
10538:
10539:
10540:
10541:
10542:
10543: # This can be used to rebuild libtool when needed
10544: LIBTOOL_DEPS=$ltmain
10545:
10546: # Always use our own libtool.
10547: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10548:
10549:
10550:
10551:
10552:
10553:
10554:
10555:
10556:
10557:
10558:
10559:
10560:
10561:
10562:
10563:
10564:
10565:
10566:
10567:
10568:
10569:
10570:
10571:
10572:
10573:
10574:
10575:
10576:
10577:
10578: test -z "$LN_S" && LN_S="ln -s"
10579:
10580:
10581:
10582:
10583:
10584:
10585:
10586:
10587:
10588:
10589:
10590:
10591:
10592:
10593: if test -n "${ZSH_VERSION+set}"; then
10594: setopt NO_GLOB_SUBST
10595: fi
10596:
10597: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10598: $as_echo_n "checking for objdir... " >&6; }
10599: if ${lt_cv_objdir+:} false; then :
10600: $as_echo_n "(cached) " >&6
10601: else
10602: rm -f .libs 2>/dev/null
10603: mkdir .libs 2>/dev/null
10604: if test -d .libs; then
10605: lt_cv_objdir=.libs
10606: else
10607: # MS-DOS does not allow filenames that begin with a dot.
10608: lt_cv_objdir=_libs
10609: fi
10610: rmdir .libs 2>/dev/null
10611: fi
10612: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10613: $as_echo "$lt_cv_objdir" >&6; }
10614: objdir=$lt_cv_objdir
10615:
10616:
10617:
10618:
10619:
10620: cat >>confdefs.h <<_ACEOF
10621: #define LT_OBJDIR "$lt_cv_objdir/"
10622: _ACEOF
10623:
10624:
10625:
10626:
10627: case $host_os in
10628: aix3*)
10629: # AIX sometimes has problems with the GCC collect2 program. For some
10630: # reason, if we set the COLLECT_NAMES environment variable, the problems
10631: # vanish in a puff of smoke.
10632: if test set != "${COLLECT_NAMES+set}"; then
10633: COLLECT_NAMES=
10634: export COLLECT_NAMES
10635: fi
10636: ;;
10637: esac
10638:
10639: # Global variables:
10640: ofile=libtool
10641: can_build_shared=yes
10642:
10643: # All known linkers require a '.a' archive for static linking (except MSVC,
10644: # which needs '.lib').
10645: libext=a
10646:
10647: with_gnu_ld=$lt_cv_prog_gnu_ld
10648:
10649: old_CC=$CC
10650: old_CFLAGS=$CFLAGS
10651:
10652: # Set sane defaults for various variables
10653: test -z "$CC" && CC=cc
10654: test -z "$LTCC" && LTCC=$CC
10655: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10656: test -z "$LD" && LD=ld
10657: test -z "$ac_objext" && ac_objext=o
10658:
10659: func_cc_basename $compiler
10660: cc_basename=$func_cc_basename_result
10661:
10662:
10663: # Only perform the check for file, if the check method requires it
10664: test -z "$MAGIC_CMD" && MAGIC_CMD=file
10665: case $deplibs_check_method in
10666: file_magic*)
10667: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10668: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10669: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10670: if ${lt_cv_path_MAGIC_CMD+:} false; then :
10671: $as_echo_n "(cached) " >&6
10672: else
10673: case $MAGIC_CMD in
10674: [\\/*] | ?:[\\/]*)
10675: lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10676: ;;
10677: *)
10678: lt_save_MAGIC_CMD=$MAGIC_CMD
10679: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10680: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10681: for ac_dir in $ac_dummy; do
10682: IFS=$lt_save_ifs
10683: test -z "$ac_dir" && ac_dir=.
10684: if test -f "$ac_dir/${ac_tool_prefix}file"; then
10685: lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10686: if test -n "$file_magic_test_file"; then
10687: case $deplibs_check_method in
10688: "file_magic "*)
10689: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10690: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10691: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10692: $EGREP "$file_magic_regex" > /dev/null; then
10693: :
10694: else
10695: cat <<_LT_EOF 1>&2
10696:
10697: *** Warning: the command libtool uses to detect shared libraries,
10698: *** $file_magic_cmd, produces output that libtool cannot recognize.
10699: *** The result is that libtool may fail to recognize shared libraries
10700: *** as such. This will affect the creation of libtool libraries that
10701: *** depend on shared libraries, but programs linked with such libtool
10702: *** libraries will work regardless of this problem. Nevertheless, you
10703: *** may want to report the problem to your system manager and/or to
10704: *** bug-libtool@gnu.org
10705:
10706: _LT_EOF
10707: fi ;;
10708: esac
10709: fi
10710: break
10711: fi
10712: done
10713: IFS=$lt_save_ifs
10714: MAGIC_CMD=$lt_save_MAGIC_CMD
10715: ;;
10716: esac
10717: fi
10718:
10719: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10720: if test -n "$MAGIC_CMD"; then
10721: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10722: $as_echo "$MAGIC_CMD" >&6; }
10723: else
10724: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10725: $as_echo "no" >&6; }
10726: fi
10727:
10728:
10729:
10730:
10731:
10732: if test -z "$lt_cv_path_MAGIC_CMD"; then
10733: if test -n "$ac_tool_prefix"; then
10734: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10735: $as_echo_n "checking for file... " >&6; }
10736: if ${lt_cv_path_MAGIC_CMD+:} false; then :
10737: $as_echo_n "(cached) " >&6
10738: else
10739: case $MAGIC_CMD in
10740: [\\/*] | ?:[\\/]*)
10741: lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10742: ;;
10743: *)
10744: lt_save_MAGIC_CMD=$MAGIC_CMD
10745: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10746: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10747: for ac_dir in $ac_dummy; do
10748: IFS=$lt_save_ifs
10749: test -z "$ac_dir" && ac_dir=.
10750: if test -f "$ac_dir/file"; then
10751: lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10752: if test -n "$file_magic_test_file"; then
10753: case $deplibs_check_method in
10754: "file_magic "*)
10755: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10756: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10757: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10758: $EGREP "$file_magic_regex" > /dev/null; then
10759: :
10760: else
10761: cat <<_LT_EOF 1>&2
10762:
10763: *** Warning: the command libtool uses to detect shared libraries,
10764: *** $file_magic_cmd, produces output that libtool cannot recognize.
10765: *** The result is that libtool may fail to recognize shared libraries
10766: *** as such. This will affect the creation of libtool libraries that
10767: *** depend on shared libraries, but programs linked with such libtool
10768: *** libraries will work regardless of this problem. Nevertheless, you
10769: *** may want to report the problem to your system manager and/or to
10770: *** bug-libtool@gnu.org
10771:
10772: _LT_EOF
10773: fi ;;
10774: esac
10775: fi
10776: break
10777: fi
10778: done
10779: IFS=$lt_save_ifs
10780: MAGIC_CMD=$lt_save_MAGIC_CMD
10781: ;;
10782: esac
10783: fi
10784:
10785: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10786: if test -n "$MAGIC_CMD"; then
10787: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10788: $as_echo "$MAGIC_CMD" >&6; }
10789: else
10790: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10791: $as_echo "no" >&6; }
10792: fi
10793:
10794:
10795: else
10796: MAGIC_CMD=:
10797: fi
10798: fi
10799:
10800: fi
10801: ;;
10802: esac
10803:
10804: # Use C for the default configuration in the libtool script
10805:
10806: lt_save_CC=$CC
10807: ac_ext=c
10808: ac_cpp='$CPP $CPPFLAGS'
10809: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10810: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10811: ac_compiler_gnu=$ac_cv_c_compiler_gnu
10812:
10813:
10814: # Source file extension for C test sources.
10815: ac_ext=c
10816:
10817: # Object file extension for compiled C test sources.
10818: objext=o
10819: objext=$objext
10820:
10821: # Code to be used in simple compile tests
10822: lt_simple_compile_test_code="int some_variable = 0;"
10823:
10824: # Code to be used in simple link tests
10825: lt_simple_link_test_code='int main(){return(0);}'
10826:
10827:
10828:
10829:
10830:
10831:
10832:
10833: # If no C compiler was specified, use CC.
10834: LTCC=${LTCC-"$CC"}
10835:
10836: # If no C compiler flags were specified, use CFLAGS.
10837: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10838:
10839: # Allow CC to be a program name with arguments.
10840: compiler=$CC
10841:
10842: # Save the default compiler, since it gets overwritten when the other
10843: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10844: compiler_DEFAULT=$CC
10845:
10846: # save warnings/boilerplate of simple test code
10847: ac_outfile=conftest.$ac_objext
10848: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10849: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10850: _lt_compiler_boilerplate=`cat conftest.err`
10851: $RM conftest*
10852:
10853: ac_outfile=conftest.$ac_objext
10854: echo "$lt_simple_link_test_code" >conftest.$ac_ext
10855: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10856: _lt_linker_boilerplate=`cat conftest.err`
10857: $RM -r conftest*
10858:
10859:
10860: ## CAVEAT EMPTOR:
10861: ## There is no encapsulation within the following macros, do not change
10862: ## the running order or otherwise move them around unless you know exactly
10863: ## what you are doing...
10864: if test -n "$compiler"; then
10865:
10866: lt_prog_compiler_no_builtin_flag=
10867:
10868: if test yes = "$GCC"; then
10869: case $cc_basename in
10870: nvcc*)
10871: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10872: *)
10873: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10874: esac
10875:
10876: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10877: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10878: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10879: $as_echo_n "(cached) " >&6
10880: else
10881: lt_cv_prog_compiler_rtti_exceptions=no
10882: ac_outfile=conftest.$ac_objext
10883: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10884: lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10885: # Insert the option either (1) after the last *FLAGS variable, or
10886: # (2) before a word containing "conftest.", or (3) at the end.
10887: # Note that $ac_compile itself does not contain backslashes and begins
10888: # with a dollar sign (not a hyphen), so the echo should work correctly.
10889: # The option is referenced via a variable to avoid confusing sed.
10890: lt_compile=`echo "$ac_compile" | $SED \
10891: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10892: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10893: -e 's:$: $lt_compiler_flag:'`
10894: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10895: (eval "$lt_compile" 2>conftest.err)
10896: ac_status=$?
10897: cat conftest.err >&5
10898: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899: if (exit $ac_status) && test -s "$ac_outfile"; then
10900: # The compiler can only warn and ignore the option if not recognized
10901: # So say no if there are warnings other than the usual output.
10902: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10903: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10904: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10905: lt_cv_prog_compiler_rtti_exceptions=yes
10906: fi
10907: fi
10908: $RM conftest*
10909:
10910: fi
10911: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10912: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10913:
10914: if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10915: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10916: else
10917: :
10918: fi
10919:
10920: fi
10921:
10922:
10923:
10924:
10925:
10926:
10927: lt_prog_compiler_wl=
10928: lt_prog_compiler_pic=
10929: lt_prog_compiler_static=
10930:
10931:
10932: if test yes = "$GCC"; then
10933: lt_prog_compiler_wl='-Wl,'
10934: lt_prog_compiler_static='-static'
10935:
10936: case $host_os in
10937: aix*)
10938: # All AIX code is PIC.
10939: if test ia64 = "$host_cpu"; then
10940: # AIX 5 now supports IA64 processor
10941: lt_prog_compiler_static='-Bstatic'
10942: fi
10943: lt_prog_compiler_pic='-fPIC'
10944: ;;
10945:
10946: amigaos*)
10947: case $host_cpu in
10948: powerpc)
10949: # see comment about AmigaOS4 .so support
10950: lt_prog_compiler_pic='-fPIC'
10951: ;;
10952: m68k)
10953: # FIXME: we need at least 68020 code to build shared libraries, but
10954: # adding the '-m68020' flag to GCC prevents building anything better,
10955: # like '-m68040'.
10956: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10957: ;;
10958: esac
10959: ;;
10960:
10961: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10962: # PIC is the default for these OSes.
10963: ;;
10964:
10965: mingw* | cygwin* | pw32* | os2* | cegcc*)
10966: # This hack is so that the source file can tell whether it is being
10967: # built for inclusion in a dll (and should export symbols for example).
10968: # Although the cygwin gcc ignores -fPIC, still need this for old-style
10969: # (--disable-auto-import) libraries
10970: lt_prog_compiler_pic='-DDLL_EXPORT'
10971: case $host_os in
10972: os2*)
10973: lt_prog_compiler_static='$wl-static'
10974: ;;
10975: esac
10976: ;;
10977:
10978: darwin* | rhapsody*)
10979: # PIC is the default on this platform
10980: # Common symbols not allowed in MH_DYLIB files
10981: lt_prog_compiler_pic='-fno-common'
10982: ;;
10983:
10984: haiku*)
10985: # PIC is the default for Haiku.
10986: # The "-static" flag exists, but is broken.
10987: lt_prog_compiler_static=
10988: ;;
10989:
10990: hpux*)
10991: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10992: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10993: # sets the default TLS model and affects inlining.
10994: case $host_cpu in
10995: hppa*64*)
10996: # +Z the default
10997: ;;
10998: *)
10999: lt_prog_compiler_pic='-fPIC'
11000: ;;
11001: esac
11002: ;;
11003:
11004: interix[3-9]*)
11005: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11006: # Instead, we relocate shared libraries at runtime.
11007: ;;
11008:
11009: msdosdjgpp*)
11010: # Just because we use GCC doesn't mean we suddenly get shared libraries
11011: # on systems that don't support them.
11012: lt_prog_compiler_can_build_shared=no
11013: enable_shared=no
11014: ;;
11015:
11016: *nto* | *qnx*)
11017: # QNX uses GNU C++, but need to define -shared option too, otherwise
11018: # it will coredump.
11019: lt_prog_compiler_pic='-fPIC -shared'
11020: ;;
11021:
11022: sysv4*MP*)
11023: if test -d /usr/nec; then
11024: lt_prog_compiler_pic=-Kconform_pic
11025: fi
11026: ;;
11027:
11028: *)
11029: lt_prog_compiler_pic='-fPIC'
11030: ;;
11031: esac
11032:
11033: case $cc_basename in
11034: nvcc*) # Cuda Compiler Driver 2.2
11035: lt_prog_compiler_wl='-Xlinker '
11036: if test -n "$lt_prog_compiler_pic"; then
11037: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11038: fi
11039: ;;
11040: esac
11041: else
11042: # PORTME Check for flag to pass linker flags through the system compiler.
11043: case $host_os in
11044: aix*)
11045: lt_prog_compiler_wl='-Wl,'
11046: if test ia64 = "$host_cpu"; then
11047: # AIX 5 now supports IA64 processor
11048: lt_prog_compiler_static='-Bstatic'
11049: else
11050: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11051: fi
11052: ;;
11053:
11054: darwin* | rhapsody*)
11055: # PIC is the default on this platform
11056: # Common symbols not allowed in MH_DYLIB files
11057: lt_prog_compiler_pic='-fno-common'
11058: case $cc_basename in
11059: nagfor*)
11060: # NAG Fortran compiler
11061: lt_prog_compiler_wl='-Wl,-Wl,,'
11062: lt_prog_compiler_pic='-PIC'
11063: lt_prog_compiler_static='-Bstatic'
11064: ;;
11065: esac
11066: ;;
11067:
11068: mingw* | cygwin* | pw32* | os2* | cegcc*)
11069: # This hack is so that the source file can tell whether it is being
11070: # built for inclusion in a dll (and should export symbols for example).
11071: lt_prog_compiler_pic='-DDLL_EXPORT'
11072: case $host_os in
11073: os2*)
11074: lt_prog_compiler_static='$wl-static'
11075: ;;
11076: esac
11077: ;;
11078:
11079: hpux9* | hpux10* | hpux11*)
11080: lt_prog_compiler_wl='-Wl,'
11081: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11082: # not for PA HP-UX.
11083: case $host_cpu in
11084: hppa*64*|ia64*)
11085: # +Z the default
11086: ;;
11087: *)
11088: lt_prog_compiler_pic='+Z'
11089: ;;
11090: esac
11091: # Is there a better lt_prog_compiler_static that works with the bundled CC?
11092: lt_prog_compiler_static='$wl-a ${wl}archive'
11093: ;;
11094:
11095: irix5* | irix6* | nonstopux*)
11096: lt_prog_compiler_wl='-Wl,'
11097: # PIC (with -KPIC) is the default.
11098: lt_prog_compiler_static='-non_shared'
11099: ;;
11100:
11101: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11102: case $cc_basename in
11103: # old Intel for x86_64, which still supported -KPIC.
11104: ecc*)
11105: lt_prog_compiler_wl='-Wl,'
11106: lt_prog_compiler_pic='-KPIC'
11107: lt_prog_compiler_static='-static'
11108: ;;
11109: # icc used to be incompatible with GCC.
11110: # ICC 10 doesn't accept -KPIC any more.
11111: icc* | ifort*)
11112: lt_prog_compiler_wl='-Wl,'
11113: lt_prog_compiler_pic='-fPIC'
11114: lt_prog_compiler_static='-static'
11115: ;;
11116: # Lahey Fortran 8.1.
11117: lf95*)
11118: lt_prog_compiler_wl='-Wl,'
11119: lt_prog_compiler_pic='--shared'
11120: lt_prog_compiler_static='--static'
11121: ;;
11122: nagfor*)
11123: # NAG Fortran compiler
11124: lt_prog_compiler_wl='-Wl,-Wl,,'
11125: lt_prog_compiler_pic='-PIC'
11126: lt_prog_compiler_static='-Bstatic'
11127: ;;
11128: tcc*)
11129: # Fabrice Bellard et al's Tiny C Compiler
11130: lt_prog_compiler_wl='-Wl,'
11131: lt_prog_compiler_pic='-fPIC'
11132: lt_prog_compiler_static='-static'
11133: ;;
11134: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11135: # Portland Group compilers (*not* the Pentium gcc compiler,
11136: # which looks to be a dead project)
11137: lt_prog_compiler_wl='-Wl,'
11138: lt_prog_compiler_pic='-fpic'
11139: lt_prog_compiler_static='-Bstatic'
11140: ;;
11141: ccc*)
11142: lt_prog_compiler_wl='-Wl,'
11143: # All Alpha code is PIC.
11144: lt_prog_compiler_static='-non_shared'
11145: ;;
11146: xl* | bgxl* | bgf* | mpixl*)
11147: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11148: lt_prog_compiler_wl='-Wl,'
11149: lt_prog_compiler_pic='-qpic'
11150: lt_prog_compiler_static='-qstaticlink'
11151: ;;
11152: *)
11153: case `$CC -V 2>&1 | sed 5q` in
11154: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11155: # Sun Fortran 8.3 passes all unrecognized flags to the linker
11156: lt_prog_compiler_pic='-KPIC'
11157: lt_prog_compiler_static='-Bstatic'
11158: lt_prog_compiler_wl=''
11159: ;;
11160: *Sun\ F* | *Sun*Fortran*)
11161: lt_prog_compiler_pic='-KPIC'
11162: lt_prog_compiler_static='-Bstatic'
11163: lt_prog_compiler_wl='-Qoption ld '
11164: ;;
11165: *Sun\ C*)
11166: # Sun C 5.9
11167: lt_prog_compiler_pic='-KPIC'
11168: lt_prog_compiler_static='-Bstatic'
11169: lt_prog_compiler_wl='-Wl,'
11170: ;;
11171: *Intel*\ [CF]*Compiler*)
11172: lt_prog_compiler_wl='-Wl,'
11173: lt_prog_compiler_pic='-fPIC'
11174: lt_prog_compiler_static='-static'
11175: ;;
11176: *Portland\ Group*)
11177: lt_prog_compiler_wl='-Wl,'
11178: lt_prog_compiler_pic='-fpic'
11179: lt_prog_compiler_static='-Bstatic'
11180: ;;
11181: esac
11182: ;;
11183: esac
11184: ;;
11185:
11186: newsos6)
11187: lt_prog_compiler_pic='-KPIC'
11188: lt_prog_compiler_static='-Bstatic'
11189: ;;
11190:
11191: *nto* | *qnx*)
11192: # QNX uses GNU C++, but need to define -shared option too, otherwise
11193: # it will coredump.
11194: lt_prog_compiler_pic='-fPIC -shared'
11195: ;;
11196:
11197: osf3* | osf4* | osf5*)
11198: lt_prog_compiler_wl='-Wl,'
11199: # All OSF/1 code is PIC.
11200: lt_prog_compiler_static='-non_shared'
11201: ;;
11202:
11203: rdos*)
11204: lt_prog_compiler_static='-non_shared'
11205: ;;
11206:
11207: solaris*)
11208: lt_prog_compiler_pic='-KPIC'
11209: lt_prog_compiler_static='-Bstatic'
11210: case $cc_basename in
11211: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11212: lt_prog_compiler_wl='-Qoption ld ';;
11213: *)
11214: lt_prog_compiler_wl='-Wl,';;
11215: esac
11216: ;;
11217:
11218: sunos4*)
11219: lt_prog_compiler_wl='-Qoption ld '
11220: lt_prog_compiler_pic='-PIC'
11221: lt_prog_compiler_static='-Bstatic'
11222: ;;
11223:
11224: sysv4 | sysv4.2uw2* | sysv4.3*)
11225: lt_prog_compiler_wl='-Wl,'
11226: lt_prog_compiler_pic='-KPIC'
11227: lt_prog_compiler_static='-Bstatic'
11228: ;;
11229:
11230: sysv4*MP*)
11231: if test -d /usr/nec; then
11232: lt_prog_compiler_pic='-Kconform_pic'
11233: lt_prog_compiler_static='-Bstatic'
11234: fi
11235: ;;
11236:
11237: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11238: lt_prog_compiler_wl='-Wl,'
11239: lt_prog_compiler_pic='-KPIC'
11240: lt_prog_compiler_static='-Bstatic'
11241: ;;
11242:
11243: unicos*)
11244: lt_prog_compiler_wl='-Wl,'
11245: lt_prog_compiler_can_build_shared=no
11246: ;;
11247:
11248: uts4*)
11249: lt_prog_compiler_pic='-pic'
11250: lt_prog_compiler_static='-Bstatic'
11251: ;;
11252:
11253: *)
11254: lt_prog_compiler_can_build_shared=no
11255: ;;
11256: esac
11257: fi
11258:
11259: case $host_os in
11260: # For platforms that do not support PIC, -DPIC is meaningless:
11261: *djgpp*)
11262: lt_prog_compiler_pic=
11263: ;;
11264: *)
11265: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11266: ;;
11267: esac
11268:
11269: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11270: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11271: if ${lt_cv_prog_compiler_pic+:} false; then :
11272: $as_echo_n "(cached) " >&6
11273: else
11274: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11275: fi
11276: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11277: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11278: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11279:
11280: #
11281: # Check to make sure the PIC flag actually works.
11282: #
11283: if test -n "$lt_prog_compiler_pic"; then
11284: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11285: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11286: if ${lt_cv_prog_compiler_pic_works+:} false; then :
11287: $as_echo_n "(cached) " >&6
11288: else
11289: lt_cv_prog_compiler_pic_works=no
11290: ac_outfile=conftest.$ac_objext
11291: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11292: lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11293: # Insert the option either (1) after the last *FLAGS variable, or
11294: # (2) before a word containing "conftest.", or (3) at the end.
11295: # Note that $ac_compile itself does not contain backslashes and begins
11296: # with a dollar sign (not a hyphen), so the echo should work correctly.
11297: # The option is referenced via a variable to avoid confusing sed.
11298: lt_compile=`echo "$ac_compile" | $SED \
11299: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11300: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11301: -e 's:$: $lt_compiler_flag:'`
11302: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11303: (eval "$lt_compile" 2>conftest.err)
11304: ac_status=$?
11305: cat conftest.err >&5
11306: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307: if (exit $ac_status) && test -s "$ac_outfile"; then
11308: # The compiler can only warn and ignore the option if not recognized
11309: # So say no if there are warnings other than the usual output.
11310: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11311: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11312: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11313: lt_cv_prog_compiler_pic_works=yes
11314: fi
11315: fi
11316: $RM conftest*
11317:
11318: fi
11319: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11320: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11321:
11322: if test yes = "$lt_cv_prog_compiler_pic_works"; then
11323: case $lt_prog_compiler_pic in
11324: "" | " "*) ;;
11325: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11326: esac
11327: else
11328: lt_prog_compiler_pic=
11329: lt_prog_compiler_can_build_shared=no
11330: fi
11331:
11332: fi
11333:
11334:
11335:
11336:
11337:
11338:
11339:
11340:
11341:
11342:
11343:
11344: #
11345: # Check to make sure the static flag actually works.
11346: #
11347: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11348: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11349: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11350: if ${lt_cv_prog_compiler_static_works+:} false; then :
11351: $as_echo_n "(cached) " >&6
11352: else
11353: lt_cv_prog_compiler_static_works=no
11354: save_LDFLAGS=$LDFLAGS
11355: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11356: echo "$lt_simple_link_test_code" > conftest.$ac_ext
11357: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11358: # The linker can only warn and ignore the option if not recognized
11359: # So say no if there are warnings
11360: if test -s conftest.err; then
11361: # Append any errors to the config.log.
11362: cat conftest.err 1>&5
11363: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11364: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11365: if diff conftest.exp conftest.er2 >/dev/null; then
11366: lt_cv_prog_compiler_static_works=yes
11367: fi
11368: else
11369: lt_cv_prog_compiler_static_works=yes
11370: fi
11371: fi
11372: $RM -r conftest*
11373: LDFLAGS=$save_LDFLAGS
11374:
11375: fi
11376: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11377: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11378:
11379: if test yes = "$lt_cv_prog_compiler_static_works"; then
11380: :
11381: else
11382: lt_prog_compiler_static=
11383: fi
11384:
11385:
11386:
11387:
11388:
11389:
11390:
11391: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11392: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11393: if ${lt_cv_prog_compiler_c_o+:} false; then :
11394: $as_echo_n "(cached) " >&6
11395: else
11396: lt_cv_prog_compiler_c_o=no
11397: $RM -r conftest 2>/dev/null
11398: mkdir conftest
11399: cd conftest
11400: mkdir out
11401: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11402:
11403: lt_compiler_flag="-o out/conftest2.$ac_objext"
11404: # Insert the option either (1) after the last *FLAGS variable, or
11405: # (2) before a word containing "conftest.", or (3) at the end.
11406: # Note that $ac_compile itself does not contain backslashes and begins
11407: # with a dollar sign (not a hyphen), so the echo should work correctly.
11408: lt_compile=`echo "$ac_compile" | $SED \
11409: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11410: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11411: -e 's:$: $lt_compiler_flag:'`
11412: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11413: (eval "$lt_compile" 2>out/conftest.err)
11414: ac_status=$?
11415: cat out/conftest.err >&5
11416: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417: if (exit $ac_status) && test -s out/conftest2.$ac_objext
11418: then
11419: # The compiler can only warn and ignore the option if not recognized
11420: # So say no if there are warnings
11421: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11422: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11423: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11424: lt_cv_prog_compiler_c_o=yes
11425: fi
11426: fi
11427: chmod u+w . 2>&5
11428: $RM conftest*
11429: # SGI C++ compiler will create directory out/ii_files/ for
11430: # template instantiation
11431: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11432: $RM out/* && rmdir out
11433: cd ..
11434: $RM -r conftest
11435: $RM conftest*
11436:
11437: fi
11438: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11439: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11440:
11441:
11442:
11443:
11444:
11445:
11446: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11447: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11448: if ${lt_cv_prog_compiler_c_o+:} false; then :
11449: $as_echo_n "(cached) " >&6
11450: else
11451: lt_cv_prog_compiler_c_o=no
11452: $RM -r conftest 2>/dev/null
11453: mkdir conftest
11454: cd conftest
11455: mkdir out
11456: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11457:
11458: lt_compiler_flag="-o out/conftest2.$ac_objext"
11459: # Insert the option either (1) after the last *FLAGS variable, or
11460: # (2) before a word containing "conftest.", or (3) at the end.
11461: # Note that $ac_compile itself does not contain backslashes and begins
11462: # with a dollar sign (not a hyphen), so the echo should work correctly.
11463: lt_compile=`echo "$ac_compile" | $SED \
11464: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11465: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11466: -e 's:$: $lt_compiler_flag:'`
11467: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11468: (eval "$lt_compile" 2>out/conftest.err)
11469: ac_status=$?
11470: cat out/conftest.err >&5
11471: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472: if (exit $ac_status) && test -s out/conftest2.$ac_objext
11473: then
11474: # The compiler can only warn and ignore the option if not recognized
11475: # So say no if there are warnings
11476: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11477: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11478: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11479: lt_cv_prog_compiler_c_o=yes
11480: fi
11481: fi
11482: chmod u+w . 2>&5
11483: $RM conftest*
11484: # SGI C++ compiler will create directory out/ii_files/ for
11485: # template instantiation
11486: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11487: $RM out/* && rmdir out
11488: cd ..
11489: $RM -r conftest
11490: $RM conftest*
11491:
11492: fi
11493: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11494: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11495:
11496:
11497:
11498:
11499: hard_links=nottested
11500: if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11501: # do not overwrite the value of need_locks provided by the user
11502: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11503: $as_echo_n "checking if we can lock with hard links... " >&6; }
11504: hard_links=yes
11505: $RM conftest*
11506: ln conftest.a conftest.b 2>/dev/null && hard_links=no
11507: touch conftest.a
11508: ln conftest.a conftest.b 2>&5 || hard_links=no
11509: ln conftest.a conftest.b 2>/dev/null && hard_links=no
11510: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11511: $as_echo "$hard_links" >&6; }
11512: if test no = "$hard_links"; then
11513: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11514: $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11515: need_locks=warn
11516: fi
11517: else
11518: need_locks=no
11519: fi
11520:
11521:
11522:
11523:
11524:
11525:
11526: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11527: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11528:
11529: runpath_var=
11530: allow_undefined_flag=
11531: always_export_symbols=no
11532: archive_cmds=
11533: archive_expsym_cmds=
11534: compiler_needs_object=no
11535: enable_shared_with_static_runtimes=no
11536: export_dynamic_flag_spec=
11537: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11538: hardcode_automatic=no
11539: hardcode_direct=no
11540: hardcode_direct_absolute=no
11541: hardcode_libdir_flag_spec=
11542: hardcode_libdir_separator=
11543: hardcode_minus_L=no
11544: hardcode_shlibpath_var=unsupported
11545: inherit_rpath=no
11546: link_all_deplibs=unknown
11547: module_cmds=
11548: module_expsym_cmds=
11549: old_archive_from_new_cmds=
11550: old_archive_from_expsyms_cmds=
11551: thread_safe_flag_spec=
11552: whole_archive_flag_spec=
11553: # include_expsyms should be a list of space-separated symbols to be *always*
11554: # included in the symbol list
11555: include_expsyms=
11556: # exclude_expsyms can be an extended regexp of symbols to exclude
11557: # it will be wrapped by ' (' and ')$', so one must not match beginning or
11558: # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11559: # as well as any symbol that contains 'd'.
11560: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11561: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11562: # platforms (ab)use it in PIC code, but their linkers get confused if
11563: # the symbol is explicitly referenced. Since portable code cannot
11564: # rely on this symbol name, it's probably fine to never include it in
11565: # preloaded symbol tables.
11566: # Exclude shared library initialization/finalization symbols.
11567: extract_expsyms_cmds=
11568:
11569: case $host_os in
11570: cygwin* | mingw* | pw32* | cegcc*)
11571: # FIXME: the MSVC++ port hasn't been tested in a loooong time
11572: # When not using gcc, we currently assume that we are using
11573: # Microsoft Visual C++.
11574: if test yes != "$GCC"; then
11575: with_gnu_ld=no
11576: fi
11577: ;;
11578: interix*)
11579: # we just hope/assume this is gcc and not c89 (= MSVC++)
11580: with_gnu_ld=yes
11581: ;;
11582: openbsd* | bitrig*)
11583: with_gnu_ld=no
11584: ;;
11585: esac
11586:
11587: ld_shlibs=yes
11588:
11589: # On some targets, GNU ld is compatible enough with the native linker
11590: # that we're better off using the native interface for both.
11591: lt_use_gnu_ld_interface=no
11592: if test yes = "$with_gnu_ld"; then
11593: case $host_os in
11594: aix*)
11595: # The AIX port of GNU ld has always aspired to compatibility
11596: # with the native linker. However, as the warning in the GNU ld
11597: # block says, versions before 2.19.5* couldn't really create working
11598: # shared libraries, regardless of the interface used.
11599: case `$LD -v 2>&1` in
11600: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11601: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11602: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11603: *)
11604: lt_use_gnu_ld_interface=yes
11605: ;;
11606: esac
11607: ;;
11608: *)
11609: lt_use_gnu_ld_interface=yes
11610: ;;
11611: esac
11612: fi
11613:
11614: if test yes = "$lt_use_gnu_ld_interface"; then
11615: # If archive_cmds runs LD, not CC, wlarc should be empty
11616: wlarc='$wl'
11617:
11618: # Set some defaults for GNU ld with shared library support. These
11619: # are reset later if shared libraries are not supported. Putting them
11620: # here allows them to be overridden if necessary.
11621: runpath_var=LD_RUN_PATH
11622: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11623: export_dynamic_flag_spec='$wl--export-dynamic'
11624: # ancient GNU ld didn't support --whole-archive et. al.
11625: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11626: whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11627: else
11628: whole_archive_flag_spec=
11629: fi
11630: supports_anon_versioning=no
11631: case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11632: *GNU\ gold*) supports_anon_versioning=yes ;;
11633: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11634: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11635: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11636: *\ 2.11.*) ;; # other 2.11 versions
11637: *) supports_anon_versioning=yes ;;
11638: esac
11639:
11640: # See if GNU ld supports shared libraries.
11641: case $host_os in
11642: aix[3-9]*)
11643: # On AIX/PPC, the GNU linker is very broken
11644: if test ia64 != "$host_cpu"; then
11645: ld_shlibs=no
11646: cat <<_LT_EOF 1>&2
11647:
11648: *** Warning: the GNU linker, at least up to release 2.19, is reported
11649: *** to be unable to reliably create shared libraries on AIX.
11650: *** Therefore, libtool is disabling shared libraries support. If you
11651: *** really care for shared libraries, you may want to install binutils
11652: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11653: *** You will then need to restart the configuration process.
11654:
11655: _LT_EOF
11656: fi
11657: ;;
11658:
11659: amigaos*)
11660: case $host_cpu in
11661: powerpc)
11662: # see comment about AmigaOS4 .so support
11663: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11664: archive_expsym_cmds=''
11665: ;;
11666: m68k)
11667: 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)'
11668: hardcode_libdir_flag_spec='-L$libdir'
11669: hardcode_minus_L=yes
11670: ;;
11671: esac
11672: ;;
11673:
11674: beos*)
11675: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11676: allow_undefined_flag=unsupported
11677: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11678: # support --undefined. This deserves some investigation. FIXME
11679: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11680: else
11681: ld_shlibs=no
11682: fi
11683: ;;
11684:
11685: cygwin* | mingw* | pw32* | cegcc*)
11686: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11687: # as there is no search path for DLLs.
11688: hardcode_libdir_flag_spec='-L$libdir'
11689: export_dynamic_flag_spec='$wl--export-all-symbols'
11690: allow_undefined_flag=unsupported
11691: always_export_symbols=no
11692: enable_shared_with_static_runtimes=yes
11693: 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'
11694: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11695:
11696: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11697: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11698: # If the export-symbols file already is a .def file, use it as
11699: # is; otherwise, prepend EXPORTS...
11700: archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11701: cp $export_symbols $output_objdir/$soname.def;
11702: else
11703: echo EXPORTS > $output_objdir/$soname.def;
11704: cat $export_symbols >> $output_objdir/$soname.def;
11705: fi~
11706: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11707: else
11708: ld_shlibs=no
11709: fi
11710: ;;
11711:
11712: haiku*)
11713: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11714: link_all_deplibs=yes
11715: ;;
11716:
11717: os2*)
11718: hardcode_libdir_flag_spec='-L$libdir'
11719: hardcode_minus_L=yes
11720: allow_undefined_flag=unsupported
11721: shrext_cmds=.dll
11722: archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11723: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11724: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11725: $ECHO EXPORTS >> $output_objdir/$libname.def~
11726: emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11727: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11728: emximp -o $lib $output_objdir/$libname.def'
11729: archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11730: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11731: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11732: $ECHO EXPORTS >> $output_objdir/$libname.def~
11733: prefix_cmds="$SED"~
11734: if test EXPORTS = "`$SED 1q $export_symbols`"; then
11735: prefix_cmds="$prefix_cmds -e 1d";
11736: fi~
11737: prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11738: cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11739: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11740: emximp -o $lib $output_objdir/$libname.def'
11741: old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11742: enable_shared_with_static_runtimes=yes
11743: ;;
11744:
11745: interix[3-9]*)
11746: hardcode_direct=no
11747: hardcode_shlibpath_var=no
11748: hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11749: export_dynamic_flag_spec='$wl-E'
11750: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11751: # Instead, shared libraries are loaded at an image base (0x10000000 by
11752: # default) and relocated if they conflict, which is a slow very memory
11753: # consuming and fragmenting process. To avoid this, we pick a random,
11754: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11755: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11756: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11757: 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'
11758: ;;
11759:
11760: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11761: tmp_diet=no
11762: if test linux-dietlibc = "$host_os"; then
11763: case $cc_basename in
11764: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11765: esac
11766: fi
11767: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11768: && test no = "$tmp_diet"
11769: then
11770: tmp_addflag=' $pic_flag'
11771: tmp_sharedflag='-shared'
11772: case $cc_basename,$host_cpu in
11773: pgcc*) # Portland Group C compiler
11774: 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'
11775: tmp_addflag=' $pic_flag'
11776: ;;
11777: pgf77* | pgf90* | pgf95* | pgfortran*)
11778: # Portland Group f77 and f90 compilers
11779: 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'
11780: tmp_addflag=' $pic_flag -Mnomain' ;;
11781: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11782: tmp_addflag=' -i_dynamic' ;;
11783: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11784: tmp_addflag=' -i_dynamic -nofor_main' ;;
11785: ifc* | ifort*) # Intel Fortran compiler
11786: tmp_addflag=' -nofor_main' ;;
11787: lf95*) # Lahey Fortran 8.1
11788: whole_archive_flag_spec=
11789: tmp_sharedflag='--shared' ;;
11790: nagfor*) # NAGFOR 5.3
11791: tmp_sharedflag='-Wl,-shared' ;;
11792: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11793: tmp_sharedflag='-qmkshrobj'
11794: tmp_addflag= ;;
11795: nvcc*) # Cuda Compiler Driver 2.2
11796: 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'
11797: compiler_needs_object=yes
11798: ;;
11799: esac
11800: case `$CC -V 2>&1 | sed 5q` in
11801: *Sun\ C*) # Sun C 5.9
11802: 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'
11803: compiler_needs_object=yes
11804: tmp_sharedflag='-G' ;;
11805: *Sun\ F*) # Sun Fortran 8.3
11806: tmp_sharedflag='-G' ;;
11807: esac
11808: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11809:
11810: if test yes = "$supports_anon_versioning"; then
11811: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11812: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11813: echo "local: *; };" >> $output_objdir/$libname.ver~
11814: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11815: fi
11816:
11817: case $cc_basename in
11818: tcc*)
11819: export_dynamic_flag_spec='-rdynamic'
11820: ;;
11821: xlf* | bgf* | bgxlf* | mpixlf*)
11822: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11823: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11824: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11825: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11826: if test yes = "$supports_anon_versioning"; then
11827: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11828: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11829: echo "local: *; };" >> $output_objdir/$libname.ver~
11830: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11831: fi
11832: ;;
11833: esac
11834: else
11835: ld_shlibs=no
11836: fi
11837: ;;
11838:
11839: netbsd*)
11840: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11841: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11842: wlarc=
11843: else
11844: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11845: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11846: fi
11847: ;;
11848:
11849: solaris*)
11850: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11851: ld_shlibs=no
11852: cat <<_LT_EOF 1>&2
11853:
11854: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11855: *** create shared libraries on Solaris systems. Therefore, libtool
11856: *** is disabling shared libraries support. We urge you to upgrade GNU
11857: *** binutils to release 2.9.1 or newer. Another option is to modify
11858: *** your PATH or compiler configuration so that the native linker is
11859: *** used, and then restart.
11860:
11861: _LT_EOF
11862: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11863: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11864: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11865: else
11866: ld_shlibs=no
11867: fi
11868: ;;
11869:
11870: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11871: case `$LD -v 2>&1` in
11872: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11873: ld_shlibs=no
11874: cat <<_LT_EOF 1>&2
11875:
11876: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11877: *** reliably create shared libraries on SCO systems. Therefore, libtool
11878: *** is disabling shared libraries support. We urge you to upgrade GNU
11879: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11880: *** your PATH or compiler configuration so that the native linker is
11881: *** used, and then restart.
11882:
11883: _LT_EOF
11884: ;;
11885: *)
11886: # For security reasons, it is highly recommended that you always
11887: # use absolute paths for naming shared libraries, and exclude the
11888: # DT_RUNPATH tag from executables and libraries. But doing so
11889: # requires that you compile everything twice, which is a pain.
11890: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11891: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11892: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11893: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11894: else
11895: ld_shlibs=no
11896: fi
11897: ;;
11898: esac
11899: ;;
11900:
11901: sunos4*)
11902: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11903: wlarc=
11904: hardcode_direct=yes
11905: hardcode_shlibpath_var=no
11906: ;;
11907:
11908: *)
11909: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11910: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11911: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11912: else
11913: ld_shlibs=no
11914: fi
11915: ;;
11916: esac
11917:
11918: if test no = "$ld_shlibs"; then
11919: runpath_var=
11920: hardcode_libdir_flag_spec=
11921: export_dynamic_flag_spec=
11922: whole_archive_flag_spec=
11923: fi
11924: else
11925: # PORTME fill in a description of your system's linker (not GNU ld)
11926: case $host_os in
11927: aix3*)
11928: allow_undefined_flag=unsupported
11929: always_export_symbols=yes
11930: 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'
11931: # Note: this linker hardcodes the directories in LIBPATH if there
11932: # are no directories specified by -L.
11933: hardcode_minus_L=yes
11934: if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11935: # Neither direct hardcoding nor static linking is supported with a
11936: # broken collect2.
11937: hardcode_direct=unsupported
11938: fi
11939: ;;
11940:
11941: aix[4-9]*)
11942: if test ia64 = "$host_cpu"; then
11943: # On IA64, the linker does run time linking by default, so we don't
11944: # have to do anything special.
11945: aix_use_runtimelinking=no
11946: exp_sym_flag='-Bexport'
11947: no_entry_flag=
11948: else
11949: # If we're using GNU nm, then we don't want the "-C" option.
11950: # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11951: # Without the "-l" option, or with the "-B" option, AIX nm treats
11952: # weak defined symbols like other global defined symbols, whereas
11953: # GNU nm marks them as "W".
11954: # While the 'weak' keyword is ignored in the Export File, we need
11955: # it in the Import File for the 'aix-soname' feature, so we have
11956: # to replace the "-B" option with "-P" for AIX nm.
11957: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11958: 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'
11959: else
11960: 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'
11961: fi
11962: aix_use_runtimelinking=no
11963:
11964: # Test if we are trying to use run time linking or normal
11965: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11966: # have runtime linking enabled, and use it for executables.
11967: # For shared libraries, we enable/disable runtime linking
11968: # depending on the kind of the shared library created -
11969: # when "with_aix_soname,aix_use_runtimelinking" is:
11970: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11971: # "aix,yes" lib.so shared, rtl:yes, for executables
11972: # lib.a static archive
11973: # "both,no" lib.so.V(shr.o) shared, rtl:yes
11974: # lib.a(lib.so.V) shared, rtl:no, for executables
11975: # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11976: # lib.a(lib.so.V) shared, rtl:no
11977: # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11978: # lib.a static archive
11979: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11980: for ld_flag in $LDFLAGS; do
11981: if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11982: aix_use_runtimelinking=yes
11983: break
11984: fi
11985: done
11986: if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11987: # With aix-soname=svr4, we create the lib.so.V shared archives only,
11988: # so we don't have lib.a shared libs to link our executables.
11989: # We have to force runtime linking in this case.
11990: aix_use_runtimelinking=yes
11991: LDFLAGS="$LDFLAGS -Wl,-brtl"
11992: fi
11993: ;;
11994: esac
11995:
11996: exp_sym_flag='-bexport'
11997: no_entry_flag='-bnoentry'
11998: fi
11999:
12000: # When large executables or shared objects are built, AIX ld can
12001: # have problems creating the table of contents. If linking a library
12002: # or program results in "error TOC overflow" add -mminimal-toc to
12003: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12004: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12005:
12006: archive_cmds=''
12007: hardcode_direct=yes
12008: hardcode_direct_absolute=yes
12009: hardcode_libdir_separator=':'
12010: link_all_deplibs=yes
12011: file_list_spec='$wl-f,'
12012: case $with_aix_soname,$aix_use_runtimelinking in
12013: aix,*) ;; # traditional, no import file
12014: svr4,* | *,yes) # use import file
12015: # The Import File defines what to hardcode.
12016: hardcode_direct=no
12017: hardcode_direct_absolute=no
12018: ;;
12019: esac
12020:
12021: if test yes = "$GCC"; then
12022: case $host_os in aix4.[012]|aix4.[012].*)
12023: # We only want to do this on AIX 4.2 and lower, the check
12024: # below for broken collect2 doesn't work under 4.3+
12025: collect2name=`$CC -print-prog-name=collect2`
12026: if test -f "$collect2name" &&
12027: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12028: then
12029: # We have reworked collect2
12030: :
12031: else
12032: # We have old collect2
12033: hardcode_direct=unsupported
12034: # It fails to find uninstalled libraries when the uninstalled
12035: # path is not listed in the libpath. Setting hardcode_minus_L
12036: # to unsupported forces relinking
12037: hardcode_minus_L=yes
12038: hardcode_libdir_flag_spec='-L$libdir'
12039: hardcode_libdir_separator=
12040: fi
12041: ;;
12042: esac
12043: shared_flag='-shared'
12044: if test yes = "$aix_use_runtimelinking"; then
12045: shared_flag="$shared_flag "'$wl-G'
12046: fi
12047: # Need to ensure runtime linking is disabled for the traditional
12048: # shared library, or the linker may eventually find shared libraries
12049: # /with/ Import File - we do not want to mix them.
12050: shared_flag_aix='-shared'
12051: shared_flag_svr4='-shared $wl-G'
12052: else
12053: # not using gcc
12054: if test ia64 = "$host_cpu"; then
12055: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12056: # chokes on -Wl,-G. The following line is correct:
12057: shared_flag='-G'
12058: else
12059: if test yes = "$aix_use_runtimelinking"; then
12060: shared_flag='$wl-G'
12061: else
12062: shared_flag='$wl-bM:SRE'
12063: fi
12064: shared_flag_aix='$wl-bM:SRE'
12065: shared_flag_svr4='$wl-G'
12066: fi
12067: fi
12068:
12069: export_dynamic_flag_spec='$wl-bexpall'
12070: # It seems that -bexpall does not export symbols beginning with
12071: # underscore (_), so it is better to generate a list of symbols to export.
12072: always_export_symbols=yes
12073: if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12074: # Warning - without using the other runtime loading flags (-brtl),
12075: # -berok will link without error, but may produce a broken library.
12076: allow_undefined_flag='-berok'
12077: # Determine the default libpath from the value encoded in an
12078: # empty executable.
12079: if test set = "${lt_cv_aix_libpath+set}"; then
12080: aix_libpath=$lt_cv_aix_libpath
12081: else
12082: if ${lt_cv_aix_libpath_+:} false; then :
12083: $as_echo_n "(cached) " >&6
12084: else
12085: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12086: /* end confdefs.h. */
12087:
12088: int
12089: main ()
12090: {
12091:
12092: ;
12093: return 0;
12094: }
12095: _ACEOF
12096: if ac_fn_c_try_link "$LINENO"; then :
12097:
12098: lt_aix_libpath_sed='
12099: /Import File Strings/,/^$/ {
12100: /^0/ {
12101: s/^0 *\([^ ]*\) *$/\1/
12102: p
12103: }
12104: }'
12105: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12106: # Check for a 64-bit object if we didn't find anything.
12107: if test -z "$lt_cv_aix_libpath_"; then
12108: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12109: fi
12110: fi
12111: rm -f core conftest.err conftest.$ac_objext \
12112: conftest$ac_exeext conftest.$ac_ext
12113: if test -z "$lt_cv_aix_libpath_"; then
12114: lt_cv_aix_libpath_=/usr/lib:/lib
12115: fi
12116:
12117: fi
12118:
12119: aix_libpath=$lt_cv_aix_libpath_
12120: fi
12121:
12122: hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12123: 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
12124: else
12125: if test ia64 = "$host_cpu"; then
12126: hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12127: allow_undefined_flag="-z nodefs"
12128: 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"
12129: else
12130: # Determine the default libpath from the value encoded in an
12131: # empty executable.
12132: if test set = "${lt_cv_aix_libpath+set}"; then
12133: aix_libpath=$lt_cv_aix_libpath
12134: else
12135: if ${lt_cv_aix_libpath_+:} false; then :
12136: $as_echo_n "(cached) " >&6
12137: else
12138: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12139: /* end confdefs.h. */
12140:
12141: int
12142: main ()
12143: {
12144:
12145: ;
12146: return 0;
12147: }
12148: _ACEOF
12149: if ac_fn_c_try_link "$LINENO"; then :
12150:
12151: lt_aix_libpath_sed='
12152: /Import File Strings/,/^$/ {
12153: /^0/ {
12154: s/^0 *\([^ ]*\) *$/\1/
12155: p
12156: }
12157: }'
12158: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12159: # Check for a 64-bit object if we didn't find anything.
12160: if test -z "$lt_cv_aix_libpath_"; then
12161: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12162: fi
12163: fi
12164: rm -f core conftest.err conftest.$ac_objext \
12165: conftest$ac_exeext conftest.$ac_ext
12166: if test -z "$lt_cv_aix_libpath_"; then
12167: lt_cv_aix_libpath_=/usr/lib:/lib
12168: fi
12169:
12170: fi
12171:
12172: aix_libpath=$lt_cv_aix_libpath_
12173: fi
12174:
12175: hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12176: # Warning - without using the other run time loading flags,
12177: # -berok will link without error, but may produce a broken library.
12178: no_undefined_flag=' $wl-bernotok'
12179: allow_undefined_flag=' $wl-berok'
12180: if test yes = "$with_gnu_ld"; then
12181: # We only use this code for GNU lds that support --whole-archive.
12182: whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12183: else
12184: # Exported symbols can be pulled into shared objects from archives
12185: whole_archive_flag_spec='$convenience'
12186: fi
12187: archive_cmds_need_lc=yes
12188: archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12189: # -brtl affects multiple linker settings, -berok does not and is overridden later
12190: compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12191: if test svr4 != "$with_aix_soname"; then
12192: # This is similar to how AIX traditionally builds its shared libraries.
12193: 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'
12194: fi
12195: if test aix != "$with_aix_soname"; then
12196: 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'
12197: else
12198: # used by -dlpreopen to get the symbols
12199: archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12200: fi
12201: archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12202: fi
12203: fi
12204: ;;
12205:
12206: amigaos*)
12207: case $host_cpu in
12208: powerpc)
12209: # see comment about AmigaOS4 .so support
12210: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12211: archive_expsym_cmds=''
12212: ;;
12213: m68k)
12214: 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)'
12215: hardcode_libdir_flag_spec='-L$libdir'
12216: hardcode_minus_L=yes
12217: ;;
12218: esac
12219: ;;
12220:
12221: bsdi[45]*)
12222: export_dynamic_flag_spec=-rdynamic
12223: ;;
12224:
12225: cygwin* | mingw* | pw32* | cegcc*)
12226: # When not using gcc, we currently assume that we are using
12227: # Microsoft Visual C++.
12228: # hardcode_libdir_flag_spec is actually meaningless, as there is
12229: # no search path for DLLs.
12230: case $cc_basename in
12231: cl*)
12232: # Native MSVC
12233: hardcode_libdir_flag_spec=' '
12234: allow_undefined_flag=unsupported
12235: always_export_symbols=yes
12236: file_list_spec='@'
12237: # Tell ltmain to make .lib files, not .a files.
12238: libext=lib
12239: # Tell ltmain to make .dll files, not .so files.
12240: shrext_cmds=.dll
12241: # FIXME: Setting linknames here is a bad hack.
12242: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12243: archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12244: cp "$export_symbols" "$output_objdir/$soname.def";
12245: echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12246: else
12247: $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12248: fi~
12249: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12250: linknames='
12251: # The linker will not automatically build a static lib if we build a DLL.
12252: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12253: enable_shared_with_static_runtimes=yes
12254: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12255: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12256: # Don't use ranlib
12257: old_postinstall_cmds='chmod 644 $oldlib'
12258: postlink_cmds='lt_outputfile="@OUTPUT@"~
12259: lt_tool_outputfile="@TOOL_OUTPUT@"~
12260: case $lt_outputfile in
12261: *.exe|*.EXE) ;;
12262: *)
12263: lt_outputfile=$lt_outputfile.exe
12264: lt_tool_outputfile=$lt_tool_outputfile.exe
12265: ;;
12266: esac~
12267: if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12268: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12269: $RM "$lt_outputfile.manifest";
12270: fi'
12271: ;;
12272: *)
12273: # Assume MSVC wrapper
12274: hardcode_libdir_flag_spec=' '
12275: allow_undefined_flag=unsupported
12276: # Tell ltmain to make .lib files, not .a files.
12277: libext=lib
12278: # Tell ltmain to make .dll files, not .so files.
12279: shrext_cmds=.dll
12280: # FIXME: Setting linknames here is a bad hack.
12281: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12282: # The linker will automatically build a .lib file if we build a DLL.
12283: old_archive_from_new_cmds='true'
12284: # FIXME: Should let the user specify the lib program.
12285: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12286: enable_shared_with_static_runtimes=yes
12287: ;;
12288: esac
12289: ;;
12290:
12291: darwin* | rhapsody*)
12292:
12293:
12294: archive_cmds_need_lc=no
12295: hardcode_direct=no
12296: hardcode_automatic=yes
12297: hardcode_shlibpath_var=unsupported
12298: if test yes = "$lt_cv_ld_force_load"; then
12299: 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\"`'
12300:
12301: else
12302: whole_archive_flag_spec=''
12303: fi
12304: link_all_deplibs=yes
12305: allow_undefined_flag=$_lt_dar_allow_undefined
12306: case $cc_basename in
12307: ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12308: *) _lt_dar_can_shared=$GCC ;;
12309: esac
12310: if test yes = "$_lt_dar_can_shared"; then
12311: output_verbose_link_cmd=func_echo_all
12312: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12313: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12314: 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"
12315: 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"
12316:
12317: else
12318: ld_shlibs=no
12319: fi
12320:
12321: ;;
12322:
12323: dgux*)
12324: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12325: hardcode_libdir_flag_spec='-L$libdir'
12326: hardcode_shlibpath_var=no
12327: ;;
12328:
12329: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12330: # support. Future versions do this automatically, but an explicit c++rt0.o
12331: # does not break anything, and helps significantly (at the cost of a little
12332: # extra space).
12333: freebsd2.2*)
12334: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12335: hardcode_libdir_flag_spec='-R$libdir'
12336: hardcode_direct=yes
12337: hardcode_shlibpath_var=no
12338: ;;
12339:
12340: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12341: freebsd2.*)
12342: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12343: hardcode_direct=yes
12344: hardcode_minus_L=yes
12345: hardcode_shlibpath_var=no
12346: ;;
12347:
12348: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12349: freebsd* | dragonfly*)
12350: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12351: hardcode_libdir_flag_spec='-R$libdir'
12352: hardcode_direct=yes
12353: hardcode_shlibpath_var=no
12354: ;;
12355:
12356: hpux9*)
12357: if test yes = "$GCC"; then
12358: 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'
12359: else
12360: 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'
12361: fi
12362: hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12363: hardcode_libdir_separator=:
12364: hardcode_direct=yes
12365:
12366: # hardcode_minus_L: Not really in the search PATH,
12367: # but as the default location of the library.
12368: hardcode_minus_L=yes
12369: export_dynamic_flag_spec='$wl-E'
12370: ;;
12371:
12372: hpux10*)
12373: if test yes,no = "$GCC,$with_gnu_ld"; then
12374: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12375: else
12376: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12377: fi
12378: if test no = "$with_gnu_ld"; then
12379: hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12380: hardcode_libdir_separator=:
12381: hardcode_direct=yes
12382: hardcode_direct_absolute=yes
12383: export_dynamic_flag_spec='$wl-E'
12384: # hardcode_minus_L: Not really in the search PATH,
12385: # but as the default location of the library.
12386: hardcode_minus_L=yes
12387: fi
12388: ;;
12389:
12390: hpux11*)
12391: if test yes,no = "$GCC,$with_gnu_ld"; then
12392: case $host_cpu in
12393: hppa*64*)
12394: archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12395: ;;
12396: ia64*)
12397: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12398: ;;
12399: *)
12400: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12401: ;;
12402: esac
12403: else
12404: case $host_cpu in
12405: hppa*64*)
12406: archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12407: ;;
12408: ia64*)
12409: archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12410: ;;
12411: *)
12412:
12413: # Older versions of the 11.00 compiler do not understand -b yet
12414: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12415: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12416: $as_echo_n "checking if $CC understands -b... " >&6; }
12417: if ${lt_cv_prog_compiler__b+:} false; then :
12418: $as_echo_n "(cached) " >&6
12419: else
12420: lt_cv_prog_compiler__b=no
12421: save_LDFLAGS=$LDFLAGS
12422: LDFLAGS="$LDFLAGS -b"
12423: echo "$lt_simple_link_test_code" > conftest.$ac_ext
12424: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12425: # The linker can only warn and ignore the option if not recognized
12426: # So say no if there are warnings
12427: if test -s conftest.err; then
12428: # Append any errors to the config.log.
12429: cat conftest.err 1>&5
12430: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12431: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12432: if diff conftest.exp conftest.er2 >/dev/null; then
12433: lt_cv_prog_compiler__b=yes
12434: fi
12435: else
12436: lt_cv_prog_compiler__b=yes
12437: fi
12438: fi
12439: $RM -r conftest*
12440: LDFLAGS=$save_LDFLAGS
12441:
12442: fi
12443: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12444: $as_echo "$lt_cv_prog_compiler__b" >&6; }
12445:
12446: if test yes = "$lt_cv_prog_compiler__b"; then
12447: archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12448: else
12449: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12450: fi
12451:
12452: ;;
12453: esac
12454: fi
12455: if test no = "$with_gnu_ld"; then
12456: hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12457: hardcode_libdir_separator=:
12458:
12459: case $host_cpu in
12460: hppa*64*|ia64*)
12461: hardcode_direct=no
12462: hardcode_shlibpath_var=no
12463: ;;
12464: *)
12465: hardcode_direct=yes
12466: hardcode_direct_absolute=yes
12467: export_dynamic_flag_spec='$wl-E'
12468:
12469: # hardcode_minus_L: Not really in the search PATH,
12470: # but as the default location of the library.
12471: hardcode_minus_L=yes
12472: ;;
12473: esac
12474: fi
12475: ;;
12476:
12477: irix5* | irix6* | nonstopux*)
12478: if test yes = "$GCC"; then
12479: 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'
12480: # Try to use the -exported_symbol ld option, if it does not
12481: # work, assume that -exports_file does not work either and
12482: # implicitly export all symbols.
12483: # This should be the same for all languages, so no per-tag cache variable.
12484: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12485: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12486: if ${lt_cv_irix_exported_symbol+:} false; then :
12487: $as_echo_n "(cached) " >&6
12488: else
12489: save_LDFLAGS=$LDFLAGS
12490: LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12491: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12492: /* end confdefs.h. */
12493: int foo (void) { return 0; }
12494: _ACEOF
12495: if ac_fn_c_try_link "$LINENO"; then :
12496: lt_cv_irix_exported_symbol=yes
12497: else
12498: lt_cv_irix_exported_symbol=no
12499: fi
12500: rm -f core conftest.err conftest.$ac_objext \
12501: conftest$ac_exeext conftest.$ac_ext
12502: LDFLAGS=$save_LDFLAGS
12503: fi
12504: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12505: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12506: if test yes = "$lt_cv_irix_exported_symbol"; then
12507: 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'
12508: fi
12509: else
12510: 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'
12511: 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'
12512: fi
12513: archive_cmds_need_lc='no'
12514: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12515: hardcode_libdir_separator=:
12516: inherit_rpath=yes
12517: link_all_deplibs=yes
12518: ;;
12519:
12520: linux*)
12521: case $cc_basename in
12522: tcc*)
12523: # Fabrice Bellard et al's Tiny C Compiler
12524: ld_shlibs=yes
12525: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12526: ;;
12527: esac
12528: ;;
12529:
12530: netbsd*)
12531: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12532: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12533: else
12534: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12535: fi
12536: hardcode_libdir_flag_spec='-R$libdir'
12537: hardcode_direct=yes
12538: hardcode_shlibpath_var=no
12539: ;;
12540:
12541: newsos6)
12542: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12543: hardcode_direct=yes
12544: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12545: hardcode_libdir_separator=:
12546: hardcode_shlibpath_var=no
12547: ;;
12548:
12549: *nto* | *qnx*)
12550: ;;
12551:
12552: openbsd* | bitrig*)
12553: if test -f /usr/libexec/ld.so; then
12554: hardcode_direct=yes
12555: hardcode_shlibpath_var=no
12556: hardcode_direct_absolute=yes
12557: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12558: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12559: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12560: hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12561: export_dynamic_flag_spec='$wl-E'
12562: else
12563: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12564: hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12565: fi
12566: else
12567: ld_shlibs=no
12568: fi
12569: ;;
12570:
12571: os2*)
12572: hardcode_libdir_flag_spec='-L$libdir'
12573: hardcode_minus_L=yes
12574: allow_undefined_flag=unsupported
12575: shrext_cmds=.dll
12576: archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12577: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12578: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12579: $ECHO EXPORTS >> $output_objdir/$libname.def~
12580: emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12581: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12582: emximp -o $lib $output_objdir/$libname.def'
12583: archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12584: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12585: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12586: $ECHO EXPORTS >> $output_objdir/$libname.def~
12587: prefix_cmds="$SED"~
12588: if test EXPORTS = "`$SED 1q $export_symbols`"; then
12589: prefix_cmds="$prefix_cmds -e 1d";
12590: fi~
12591: prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12592: cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12593: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12594: emximp -o $lib $output_objdir/$libname.def'
12595: old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12596: enable_shared_with_static_runtimes=yes
12597: ;;
12598:
12599: osf3*)
12600: if test yes = "$GCC"; then
12601: allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12602: 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'
12603: else
12604: allow_undefined_flag=' -expect_unresolved \*'
12605: 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'
12606: fi
12607: archive_cmds_need_lc='no'
12608: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12609: hardcode_libdir_separator=:
12610: ;;
12611:
12612: osf4* | osf5*) # as osf3* with the addition of -msym flag
12613: if test yes = "$GCC"; then
12614: allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12615: 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'
12616: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12617: else
12618: allow_undefined_flag=' -expect_unresolved \*'
12619: 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'
12620: 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~
12621: $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'
12622:
12623: # Both c and cxx compiler support -rpath directly
12624: hardcode_libdir_flag_spec='-rpath $libdir'
12625: fi
12626: archive_cmds_need_lc='no'
12627: hardcode_libdir_separator=:
12628: ;;
12629:
12630: solaris*)
12631: no_undefined_flag=' -z defs'
12632: if test yes = "$GCC"; then
12633: wlarc='$wl'
12634: archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12635: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12636: $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'
12637: else
12638: case `$CC -V 2>&1` in
12639: *"Compilers 5.0"*)
12640: wlarc=''
12641: archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12642: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12643: $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12644: ;;
12645: *)
12646: wlarc='$wl'
12647: archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12648: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12649: $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12650: ;;
12651: esac
12652: fi
12653: hardcode_libdir_flag_spec='-R$libdir'
12654: hardcode_shlibpath_var=no
12655: case $host_os in
12656: solaris2.[0-5] | solaris2.[0-5].*) ;;
12657: *)
12658: # The compiler driver will combine and reorder linker options,
12659: # but understands '-z linker_flag'. GCC discards it without '$wl',
12660: # but is careful enough not to reorder.
12661: # Supported since Solaris 2.6 (maybe 2.5.1?)
12662: if test yes = "$GCC"; then
12663: whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12664: else
12665: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12666: fi
12667: ;;
12668: esac
12669: link_all_deplibs=yes
12670: ;;
12671:
12672: sunos4*)
12673: if test sequent = "$host_vendor"; then
12674: # Use $CC to link under sequent, because it throws in some extra .o
12675: # files that make .init and .fini sections work.
12676: archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12677: else
12678: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12679: fi
12680: hardcode_libdir_flag_spec='-L$libdir'
12681: hardcode_direct=yes
12682: hardcode_minus_L=yes
12683: hardcode_shlibpath_var=no
12684: ;;
12685:
12686: sysv4)
12687: case $host_vendor in
12688: sni)
12689: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12690: hardcode_direct=yes # is this really true???
12691: ;;
12692: siemens)
12693: ## LD is ld it makes a PLAMLIB
12694: ## CC just makes a GrossModule.
12695: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12696: reload_cmds='$CC -r -o $output$reload_objs'
12697: hardcode_direct=no
12698: ;;
12699: motorola)
12700: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12701: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12702: ;;
12703: esac
12704: runpath_var='LD_RUN_PATH'
12705: hardcode_shlibpath_var=no
12706: ;;
12707:
12708: sysv4.3*)
12709: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12710: hardcode_shlibpath_var=no
12711: export_dynamic_flag_spec='-Bexport'
12712: ;;
12713:
12714: sysv4*MP*)
12715: if test -d /usr/nec; then
12716: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12717: hardcode_shlibpath_var=no
12718: runpath_var=LD_RUN_PATH
12719: hardcode_runpath_var=yes
12720: ld_shlibs=yes
12721: fi
12722: ;;
12723:
12724: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12725: no_undefined_flag='$wl-z,text'
12726: archive_cmds_need_lc=no
12727: hardcode_shlibpath_var=no
12728: runpath_var='LD_RUN_PATH'
12729:
12730: if test yes = "$GCC"; then
12731: archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12732: archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12733: else
12734: archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12735: archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12736: fi
12737: ;;
12738:
12739: sysv5* | sco3.2v5* | sco5v6*)
12740: # Note: We CANNOT use -z defs as we might desire, because we do not
12741: # link with -lc, and that would cause any symbols used from libc to
12742: # always be unresolved, which means just about no library would
12743: # ever link correctly. If we're not using GNU ld we use -z text
12744: # though, which does catch some bad symbols but isn't as heavy-handed
12745: # as -z defs.
12746: no_undefined_flag='$wl-z,text'
12747: allow_undefined_flag='$wl-z,nodefs'
12748: archive_cmds_need_lc=no
12749: hardcode_shlibpath_var=no
12750: hardcode_libdir_flag_spec='$wl-R,$libdir'
12751: hardcode_libdir_separator=':'
12752: link_all_deplibs=yes
12753: export_dynamic_flag_spec='$wl-Bexport'
12754: runpath_var='LD_RUN_PATH'
12755:
12756: if test yes = "$GCC"; then
12757: archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12758: archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12759: else
12760: archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12761: archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12762: fi
12763: ;;
12764:
12765: uts4*)
12766: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12767: hardcode_libdir_flag_spec='-L$libdir'
12768: hardcode_shlibpath_var=no
12769: ;;
12770:
12771: *)
12772: ld_shlibs=no
12773: ;;
12774: esac
12775:
12776: if test sni = "$host_vendor"; then
12777: case $host in
12778: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12779: export_dynamic_flag_spec='$wl-Blargedynsym'
12780: ;;
12781: esac
12782: fi
12783: fi
12784:
12785: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12786: $as_echo "$ld_shlibs" >&6; }
12787: test no = "$ld_shlibs" && can_build_shared=no
12788:
12789: with_gnu_ld=$with_gnu_ld
12790:
12791:
12792:
12793:
12794:
12795:
12796:
12797:
12798:
12799:
12800:
12801:
12802:
12803:
12804:
12805: #
12806: # Do we need to explicitly link libc?
12807: #
12808: case "x$archive_cmds_need_lc" in
12809: x|xyes)
12810: # Assume -lc should be added
12811: archive_cmds_need_lc=yes
12812:
12813: if test yes,yes = "$GCC,$enable_shared"; then
12814: case $archive_cmds in
12815: *'~'*)
12816: # FIXME: we may have to deal with multi-command sequences.
12817: ;;
12818: '$CC '*)
12819: # Test whether the compiler implicitly links with -lc since on some
12820: # systems, -lgcc has to come before -lc. If gcc already passes -lc
12821: # to ld, don't add -lc before -lgcc.
12822: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12823: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12824: if ${lt_cv_archive_cmds_need_lc+:} false; then :
12825: $as_echo_n "(cached) " >&6
12826: else
12827: $RM conftest*
12828: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12829:
12830: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12831: (eval $ac_compile) 2>&5
12832: ac_status=$?
12833: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12834: test $ac_status = 0; } 2>conftest.err; then
12835: soname=conftest
12836: lib=conftest
12837: libobjs=conftest.$ac_objext
12838: deplibs=
12839: wl=$lt_prog_compiler_wl
12840: pic_flag=$lt_prog_compiler_pic
12841: compiler_flags=-v
12842: linker_flags=-v
12843: verstring=
12844: output_objdir=.
12845: libname=conftest
12846: lt_save_allow_undefined_flag=$allow_undefined_flag
12847: allow_undefined_flag=
12848: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12849: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12850: ac_status=$?
12851: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12852: test $ac_status = 0; }
12853: then
12854: lt_cv_archive_cmds_need_lc=no
12855: else
12856: lt_cv_archive_cmds_need_lc=yes
12857: fi
12858: allow_undefined_flag=$lt_save_allow_undefined_flag
12859: else
12860: cat conftest.err 1>&5
12861: fi
12862: $RM conftest*
12863:
12864: fi
12865: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12866: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12867: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12868: ;;
12869: esac
12870: fi
12871: ;;
12872: esac
12873:
12874:
12875:
12876:
12877:
12878:
12879:
12880:
12881:
12882:
12883:
12884:
12885:
12886:
12887:
12888:
12889:
12890:
12891:
12892:
12893:
12894:
12895:
12896:
12897:
12898:
12899:
12900:
12901:
12902:
12903:
12904:
12905:
12906:
12907:
12908:
12909:
12910:
12911:
12912:
12913:
12914:
12915:
12916:
12917:
12918:
12919:
12920:
12921:
12922:
12923:
12924:
12925:
12926:
12927:
12928:
12929:
12930:
12931:
12932:
12933:
12934:
12935:
12936:
12937:
12938:
12939:
12940:
12941:
12942:
12943:
12944:
12945:
12946:
12947:
12948:
12949:
12950:
12951:
12952:
12953:
12954:
12955:
12956:
12957:
12958:
12959:
12960:
12961:
12962:
12963:
12964:
12965:
12966:
12967:
12968:
12969:
12970:
12971:
12972:
12973:
12974:
12975:
12976:
12977:
12978:
12979:
12980:
12981:
12982:
12983:
12984:
12985:
12986:
12987:
12988:
12989:
12990:
12991:
12992:
12993:
12994:
12995:
12996:
12997:
12998:
12999:
13000:
13001:
13002:
13003:
13004:
13005:
13006:
13007:
13008:
13009:
13010:
13011:
13012:
13013:
13014:
13015:
13016:
13017:
13018:
13019:
13020:
13021:
13022:
13023:
13024:
13025: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13026: $as_echo_n "checking dynamic linker characteristics... " >&6; }
13027:
13028: if test yes = "$GCC"; then
13029: case $host_os in
13030: darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13031: *) lt_awk_arg='/^libraries:/' ;;
13032: esac
13033: case $host_os in
13034: mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13035: *) lt_sed_strip_eq='s|=/|/|g' ;;
13036: esac
13037: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13038: case $lt_search_path_spec in
13039: *\;*)
13040: # if the path contains ";" then we assume it to be the separator
13041: # otherwise default to the standard path separator (i.e. ":") - it is
13042: # assumed that no part of a normal pathname contains ";" but that should
13043: # okay in the real world where ";" in dirpaths is itself problematic.
13044: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13045: ;;
13046: *)
13047: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13048: ;;
13049: esac
13050: # Ok, now we have the path, separated by spaces, we can step through it
13051: # and add multilib dir if necessary...
13052: lt_tmp_lt_search_path_spec=
13053: lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13054: # ...but if some path component already ends with the multilib dir we assume
13055: # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13056: case "$lt_multi_os_dir; $lt_search_path_spec " in
13057: "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13058: lt_multi_os_dir=
13059: ;;
13060: esac
13061: for lt_sys_path in $lt_search_path_spec; do
13062: if test -d "$lt_sys_path$lt_multi_os_dir"; then
13063: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13064: elif test -n "$lt_multi_os_dir"; then
13065: test -d "$lt_sys_path" && \
13066: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13067: fi
13068: done
13069: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13070: BEGIN {RS = " "; FS = "/|\n";} {
13071: lt_foo = "";
13072: lt_count = 0;
13073: for (lt_i = NF; lt_i > 0; lt_i--) {
13074: if ($lt_i != "" && $lt_i != ".") {
13075: if ($lt_i == "..") {
13076: lt_count++;
13077: } else {
13078: if (lt_count == 0) {
13079: lt_foo = "/" $lt_i lt_foo;
13080: } else {
13081: lt_count--;
13082: }
13083: }
13084: }
13085: }
13086: if (lt_foo != "") { lt_freq[lt_foo]++; }
13087: if (lt_freq[lt_foo] == 1) { print lt_foo; }
13088: }'`
13089: # AWK program above erroneously prepends '/' to C:/dos/paths
13090: # for these hosts.
13091: case $host_os in
13092: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13093: $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13094: esac
13095: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13096: else
13097: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13098: fi
13099: library_names_spec=
13100: libname_spec='lib$name'
13101: soname_spec=
13102: shrext_cmds=.so
13103: postinstall_cmds=
13104: postuninstall_cmds=
13105: finish_cmds=
13106: finish_eval=
13107: shlibpath_var=
13108: shlibpath_overrides_runpath=unknown
13109: version_type=none
13110: dynamic_linker="$host_os ld.so"
13111: sys_lib_dlsearch_path_spec="/lib /usr/lib"
13112: need_lib_prefix=unknown
13113: hardcode_into_libs=no
13114:
13115: # when you set need_version to no, make sure it does not cause -set_version
13116: # flags to be left without arguments
13117: need_version=unknown
13118:
13119:
13120:
13121: case $host_os in
13122: aix3*)
13123: version_type=linux # correct to gnu/linux during the next big refactor
13124: library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13125: shlibpath_var=LIBPATH
13126:
13127: # AIX 3 has no versioning support, so we append a major version to the name.
13128: soname_spec='$libname$release$shared_ext$major'
13129: ;;
13130:
13131: aix[4-9]*)
13132: version_type=linux # correct to gnu/linux during the next big refactor
13133: need_lib_prefix=no
13134: need_version=no
13135: hardcode_into_libs=yes
13136: if test ia64 = "$host_cpu"; then
13137: # AIX 5 supports IA64
13138: library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13139: shlibpath_var=LD_LIBRARY_PATH
13140: else
13141: # With GCC up to 2.95.x, collect2 would create an import file
13142: # for dependence libraries. The import file would start with
13143: # the line '#! .'. This would cause the generated library to
13144: # depend on '.', always an invalid library. This was fixed in
13145: # development snapshots of GCC prior to 3.0.
13146: case $host_os in
13147: aix4 | aix4.[01] | aix4.[01].*)
13148: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13149: echo ' yes '
13150: echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13151: :
13152: else
13153: can_build_shared=no
13154: fi
13155: ;;
13156: esac
13157: # Using Import Files as archive members, it is possible to support
13158: # filename-based versioning of shared library archives on AIX. While
13159: # this would work for both with and without runtime linking, it will
13160: # prevent static linking of such archives. So we do filename-based
13161: # shared library versioning with .so extension only, which is used
13162: # when both runtime linking and shared linking is enabled.
13163: # Unfortunately, runtime linking may impact performance, so we do
13164: # not want this to be the default eventually. Also, we use the
13165: # versioned .so libs for executables only if there is the -brtl
13166: # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13167: # To allow for filename-based versioning support, we need to create
13168: # libNAME.so.V as an archive file, containing:
13169: # *) an Import File, referring to the versioned filename of the
13170: # archive as well as the shared archive member, telling the
13171: # bitwidth (32 or 64) of that shared object, and providing the
13172: # list of exported symbols of that shared object, eventually
13173: # decorated with the 'weak' keyword
13174: # *) the shared object with the F_LOADONLY flag set, to really avoid
13175: # it being seen by the linker.
13176: # At run time we better use the real file rather than another symlink,
13177: # but for link time we create the symlink libNAME.so -> libNAME.so.V
13178:
13179: case $with_aix_soname,$aix_use_runtimelinking in
13180: # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13181: # soname into executable. Probably we can add versioning support to
13182: # collect2, so additional links can be useful in future.
13183: aix,yes) # traditional libtool
13184: dynamic_linker='AIX unversionable lib.so'
13185: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13186: # instead of lib<name>.a to let people know that these are not
13187: # typical AIX shared libraries.
13188: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13189: ;;
13190: aix,no) # traditional AIX only
13191: dynamic_linker='AIX lib.a(lib.so.V)'
13192: # We preserve .a as extension for shared libraries through AIX4.2
13193: # and later when we are not doing run time linking.
13194: library_names_spec='$libname$release.a $libname.a'
13195: soname_spec='$libname$release$shared_ext$major'
13196: ;;
13197: svr4,*) # full svr4 only
13198: dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13199: library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13200: # We do not specify a path in Import Files, so LIBPATH fires.
13201: shlibpath_overrides_runpath=yes
13202: ;;
13203: *,yes) # both, prefer svr4
13204: dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13205: library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13206: # unpreferred sharedlib libNAME.a needs extra handling
13207: 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"'
13208: 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"'
13209: # We do not specify a path in Import Files, so LIBPATH fires.
13210: shlibpath_overrides_runpath=yes
13211: ;;
13212: *,no) # both, prefer aix
13213: dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13214: library_names_spec='$libname$release.a $libname.a'
13215: soname_spec='$libname$release$shared_ext$major'
13216: # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13217: 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)'
13218: 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"'
13219: ;;
13220: esac
13221: shlibpath_var=LIBPATH
13222: fi
13223: ;;
13224:
13225: amigaos*)
13226: case $host_cpu in
13227: powerpc)
13228: # Since July 2007 AmigaOS4 officially supports .so libraries.
13229: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13230: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13231: ;;
13232: m68k)
13233: library_names_spec='$libname.ixlibrary $libname.a'
13234: # Create ${libname}_ixlibrary.a entries in /sys/libs.
13235: 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'
13236: ;;
13237: esac
13238: ;;
13239:
13240: beos*)
13241: library_names_spec='$libname$shared_ext'
13242: dynamic_linker="$host_os ld.so"
13243: shlibpath_var=LIBRARY_PATH
13244: ;;
13245:
13246: bsdi[45]*)
13247: version_type=linux # correct to gnu/linux during the next big refactor
13248: need_version=no
13249: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13250: soname_spec='$libname$release$shared_ext$major'
13251: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13252: shlibpath_var=LD_LIBRARY_PATH
13253: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13254: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13255: # the default ld.so.conf also contains /usr/contrib/lib and
13256: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13257: # libtool to hard-code these into programs
13258: ;;
13259:
13260: cygwin* | mingw* | pw32* | cegcc*)
13261: version_type=windows
13262: shrext_cmds=.dll
13263: need_version=no
13264: need_lib_prefix=no
13265:
13266: case $GCC,$cc_basename in
13267: yes,*)
13268: # gcc
13269: library_names_spec='$libname.dll.a'
13270: # DLL is installed to $(libdir)/../bin by postinstall_cmds
13271: postinstall_cmds='base_file=`basename \$file`~
13272: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13273: dldir=$destdir/`dirname \$dlpath`~
13274: test -d \$dldir || mkdir -p \$dldir~
13275: $install_prog $dir/$dlname \$dldir/$dlname~
13276: chmod a+x \$dldir/$dlname~
13277: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13278: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13279: fi'
13280: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13281: dlpath=$dir/\$dldll~
13282: $RM \$dlpath'
13283: shlibpath_overrides_runpath=yes
13284:
13285: case $host_os in
13286: cygwin*)
13287: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13288: soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13289:
13290: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13291: ;;
13292: mingw* | cegcc*)
13293: # MinGW DLLs use traditional 'lib' prefix
13294: soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13295: ;;
13296: pw32*)
13297: # pw32 DLLs use 'pw' prefix rather than 'lib'
13298: library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13299: ;;
13300: esac
13301: dynamic_linker='Win32 ld.exe'
13302: ;;
13303:
13304: *,cl*)
13305: # Native MSVC
13306: libname_spec='$name'
13307: soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13308: library_names_spec='$libname.dll.lib'
13309:
13310: case $build_os in
13311: mingw*)
13312: sys_lib_search_path_spec=
13313: lt_save_ifs=$IFS
13314: IFS=';'
13315: for lt_path in $LIB
13316: do
13317: IFS=$lt_save_ifs
13318: # Let DOS variable expansion print the short 8.3 style file name.
13319: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13320: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13321: done
13322: IFS=$lt_save_ifs
13323: # Convert to MSYS style.
13324: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13325: ;;
13326: cygwin*)
13327: # Convert to unix form, then to dos form, then back to unix form
13328: # but this time dos style (no spaces!) so that the unix form looks
13329: # like /cygdrive/c/PROGRA~1:/cygdr...
13330: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13331: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13332: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13333: ;;
13334: *)
13335: sys_lib_search_path_spec=$LIB
13336: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13337: # It is most probably a Windows format PATH.
13338: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13339: else
13340: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13341: fi
13342: # FIXME: find the short name or the path components, as spaces are
13343: # common. (e.g. "Program Files" -> "PROGRA~1")
13344: ;;
13345: esac
13346:
13347: # DLL is installed to $(libdir)/../bin by postinstall_cmds
13348: postinstall_cmds='base_file=`basename \$file`~
13349: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13350: dldir=$destdir/`dirname \$dlpath`~
13351: test -d \$dldir || mkdir -p \$dldir~
13352: $install_prog $dir/$dlname \$dldir/$dlname'
13353: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13354: dlpath=$dir/\$dldll~
13355: $RM \$dlpath'
13356: shlibpath_overrides_runpath=yes
13357: dynamic_linker='Win32 link.exe'
13358: ;;
13359:
13360: *)
13361: # Assume MSVC wrapper
13362: library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13363: dynamic_linker='Win32 ld.exe'
13364: ;;
13365: esac
13366: # FIXME: first we should search . and the directory the executable is in
13367: shlibpath_var=PATH
13368: ;;
13369:
13370: darwin* | rhapsody*)
13371: dynamic_linker="$host_os dyld"
13372: version_type=darwin
13373: need_lib_prefix=no
13374: need_version=no
13375: library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13376: soname_spec='$libname$release$major$shared_ext'
13377: shlibpath_overrides_runpath=yes
13378: shlibpath_var=DYLD_LIBRARY_PATH
13379: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13380:
13381: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13382: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13383: ;;
13384:
13385: dgux*)
13386: version_type=linux # correct to gnu/linux during the next big refactor
13387: need_lib_prefix=no
13388: need_version=no
13389: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13390: soname_spec='$libname$release$shared_ext$major'
13391: shlibpath_var=LD_LIBRARY_PATH
13392: ;;
13393:
13394: freebsd* | dragonfly*)
13395: # DragonFly does not have aout. When/if they implement a new
13396: # versioning mechanism, adjust this.
13397: if test -x /usr/bin/objformat; then
13398: objformat=`/usr/bin/objformat`
13399: else
13400: case $host_os in
13401: freebsd[23].*) objformat=aout ;;
13402: *) objformat=elf ;;
13403: esac
13404: fi
13405: version_type=freebsd-$objformat
13406: case $version_type in
13407: freebsd-elf*)
13408: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13409: soname_spec='$libname$release$shared_ext$major'
13410: need_version=no
13411: need_lib_prefix=no
13412: ;;
13413: freebsd-*)
13414: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13415: need_version=yes
13416: ;;
13417: esac
13418: shlibpath_var=LD_LIBRARY_PATH
13419: case $host_os in
13420: freebsd2.*)
13421: shlibpath_overrides_runpath=yes
13422: ;;
13423: freebsd3.[01]* | freebsdelf3.[01]*)
13424: shlibpath_overrides_runpath=yes
13425: hardcode_into_libs=yes
13426: ;;
13427: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13428: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13429: shlibpath_overrides_runpath=no
13430: hardcode_into_libs=yes
13431: ;;
13432: *) # from 4.6 on, and DragonFly
13433: shlibpath_overrides_runpath=yes
13434: hardcode_into_libs=yes
13435: ;;
13436: esac
13437: ;;
13438:
13439: haiku*)
13440: version_type=linux # correct to gnu/linux during the next big refactor
13441: need_lib_prefix=no
13442: need_version=no
13443: dynamic_linker="$host_os runtime_loader"
13444: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13445: soname_spec='$libname$release$shared_ext$major'
13446: shlibpath_var=LIBRARY_PATH
13447: shlibpath_overrides_runpath=no
13448: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13449: hardcode_into_libs=yes
13450: ;;
13451:
13452: hpux9* | hpux10* | hpux11*)
13453: # Give a soname corresponding to the major version so that dld.sl refuses to
13454: # link against other versions.
13455: version_type=sunos
13456: need_lib_prefix=no
13457: need_version=no
13458: case $host_cpu in
13459: ia64*)
13460: shrext_cmds='.so'
13461: hardcode_into_libs=yes
13462: dynamic_linker="$host_os dld.so"
13463: shlibpath_var=LD_LIBRARY_PATH
13464: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13465: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13466: soname_spec='$libname$release$shared_ext$major'
13467: if test 32 = "$HPUX_IA64_MODE"; then
13468: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13469: sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13470: else
13471: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13472: sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13473: fi
13474: ;;
13475: hppa*64*)
13476: shrext_cmds='.sl'
13477: hardcode_into_libs=yes
13478: dynamic_linker="$host_os dld.sl"
13479: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13480: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13481: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13482: soname_spec='$libname$release$shared_ext$major'
13483: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13484: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13485: ;;
13486: *)
13487: shrext_cmds='.sl'
13488: dynamic_linker="$host_os dld.sl"
13489: shlibpath_var=SHLIB_PATH
13490: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13491: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13492: soname_spec='$libname$release$shared_ext$major'
13493: ;;
13494: esac
13495: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13496: postinstall_cmds='chmod 555 $lib'
13497: # or fails outright, so override atomically:
13498: install_override_mode=555
13499: ;;
13500:
13501: interix[3-9]*)
13502: version_type=linux # correct to gnu/linux during the next big refactor
13503: need_lib_prefix=no
13504: need_version=no
13505: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13506: soname_spec='$libname$release$shared_ext$major'
13507: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13508: shlibpath_var=LD_LIBRARY_PATH
13509: shlibpath_overrides_runpath=no
13510: hardcode_into_libs=yes
13511: ;;
13512:
13513: irix5* | irix6* | nonstopux*)
13514: case $host_os in
13515: nonstopux*) version_type=nonstopux ;;
13516: *)
13517: if test yes = "$lt_cv_prog_gnu_ld"; then
13518: version_type=linux # correct to gnu/linux during the next big refactor
13519: else
13520: version_type=irix
13521: fi ;;
13522: esac
13523: need_lib_prefix=no
13524: need_version=no
13525: soname_spec='$libname$release$shared_ext$major'
13526: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13527: case $host_os in
13528: irix5* | nonstopux*)
13529: libsuff= shlibsuff=
13530: ;;
13531: *)
13532: case $LD in # libtool.m4 will add one of these switches to LD
13533: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13534: libsuff= shlibsuff= libmagic=32-bit;;
13535: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13536: libsuff=32 shlibsuff=N32 libmagic=N32;;
13537: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13538: libsuff=64 shlibsuff=64 libmagic=64-bit;;
13539: *) libsuff= shlibsuff= libmagic=never-match;;
13540: esac
13541: ;;
13542: esac
13543: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13544: shlibpath_overrides_runpath=no
13545: sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13546: sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13547: hardcode_into_libs=yes
13548: ;;
13549:
13550: # No shared lib support for Linux oldld, aout, or coff.
13551: linux*oldld* | linux*aout* | linux*coff*)
13552: dynamic_linker=no
13553: ;;
13554:
13555: linux*android*)
13556: version_type=none # Android doesn't support versioned libraries.
13557: need_lib_prefix=no
13558: need_version=no
13559: library_names_spec='$libname$release$shared_ext'
13560: soname_spec='$libname$release$shared_ext'
13561: finish_cmds=
13562: shlibpath_var=LD_LIBRARY_PATH
13563: shlibpath_overrides_runpath=yes
13564:
13565: # This implies no fast_install, which is unacceptable.
13566: # Some rework will be needed to allow for fast_install
13567: # before this can be enabled.
13568: hardcode_into_libs=yes
13569:
13570: dynamic_linker='Android linker'
13571: # Don't embed -rpath directories since the linker doesn't support them.
13572: hardcode_libdir_flag_spec='-L$libdir'
13573: ;;
13574:
13575: # This must be glibc/ELF.
13576: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13577: version_type=linux # correct to gnu/linux during the next big refactor
13578: need_lib_prefix=no
13579: need_version=no
13580: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13581: soname_spec='$libname$release$shared_ext$major'
13582: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13583: shlibpath_var=LD_LIBRARY_PATH
13584: shlibpath_overrides_runpath=no
13585:
13586: # Some binutils ld are patched to set DT_RUNPATH
13587: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13588: $as_echo_n "(cached) " >&6
13589: else
13590: lt_cv_shlibpath_overrides_runpath=no
13591: save_LDFLAGS=$LDFLAGS
13592: save_libdir=$libdir
13593: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13594: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13595: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13596: /* end confdefs.h. */
13597:
13598: int
13599: main ()
13600: {
13601:
13602: ;
13603: return 0;
13604: }
13605: _ACEOF
13606: if ac_fn_c_try_link "$LINENO"; then :
13607: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13608: lt_cv_shlibpath_overrides_runpath=yes
13609: fi
13610: fi
13611: rm -f core conftest.err conftest.$ac_objext \
13612: conftest$ac_exeext conftest.$ac_ext
13613: LDFLAGS=$save_LDFLAGS
13614: libdir=$save_libdir
13615:
13616: fi
13617:
13618: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13619:
13620: # This implies no fast_install, which is unacceptable.
13621: # Some rework will be needed to allow for fast_install
13622: # before this can be enabled.
13623: hardcode_into_libs=yes
13624:
13625: # Add ABI-specific directories to the system library path.
13626: sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13627:
13628: # Ideally, we could use ldconfig to report *all* directores which are
13629: # searched for libraries, however this is still not possible. Aside from not
13630: # being certain /sbin/ldconfig is available, command
13631: # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13632: # even though it is searched at run-time. Try to do the best guess by
13633: # appending ld.so.conf contents (and includes) to the search path.
13634: if test -f /etc/ld.so.conf; then
13635: 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' ' '`
13636: sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13637: fi
13638:
13639: # We used to test for /lib/ld.so.1 and disable shared libraries on
13640: # powerpc, because MkLinux only supported shared libraries with the
13641: # GNU dynamic linker. Since this was broken with cross compilers,
13642: # most powerpc-linux boxes support dynamic linking these days and
13643: # people can always --disable-shared, the test was removed, and we
13644: # assume the GNU/Linux dynamic linker is in use.
13645: dynamic_linker='GNU/Linux ld.so'
13646: ;;
13647:
13648: netbsd*)
13649: version_type=sunos
13650: need_lib_prefix=no
13651: need_version=no
13652: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13653: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13654: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13655: dynamic_linker='NetBSD (a.out) ld.so'
13656: else
13657: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13658: soname_spec='$libname$release$shared_ext$major'
13659: dynamic_linker='NetBSD ld.elf_so'
13660: fi
13661: shlibpath_var=LD_LIBRARY_PATH
13662: shlibpath_overrides_runpath=yes
13663: hardcode_into_libs=yes
13664: ;;
13665:
13666: newsos6)
13667: version_type=linux # correct to gnu/linux during the next big refactor
13668: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13669: shlibpath_var=LD_LIBRARY_PATH
13670: shlibpath_overrides_runpath=yes
13671: ;;
13672:
13673: *nto* | *qnx*)
13674: version_type=qnx
13675: need_lib_prefix=no
13676: need_version=no
13677: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13678: soname_spec='$libname$release$shared_ext$major'
13679: shlibpath_var=LD_LIBRARY_PATH
13680: shlibpath_overrides_runpath=no
13681: hardcode_into_libs=yes
13682: dynamic_linker='ldqnx.so'
13683: ;;
13684:
13685: openbsd* | bitrig*)
13686: version_type=sunos
13687: sys_lib_dlsearch_path_spec=/usr/lib
13688: need_lib_prefix=no
13689: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13690: need_version=no
13691: else
13692: need_version=yes
13693: fi
13694: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13695: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13696: shlibpath_var=LD_LIBRARY_PATH
13697: shlibpath_overrides_runpath=yes
13698: ;;
13699:
13700: os2*)
13701: libname_spec='$name'
13702: version_type=windows
13703: shrext_cmds=.dll
13704: need_version=no
13705: need_lib_prefix=no
13706: # OS/2 can only load a DLL with a base name of 8 characters or less.
13707: soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13708: v=$($ECHO $release$versuffix | tr -d .-);
13709: n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13710: $ECHO $n$v`$shared_ext'
13711: library_names_spec='${libname}_dll.$libext'
13712: dynamic_linker='OS/2 ld.exe'
13713: shlibpath_var=BEGINLIBPATH
13714: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13715: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13716: postinstall_cmds='base_file=`basename \$file`~
13717: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13718: dldir=$destdir/`dirname \$dlpath`~
13719: test -d \$dldir || mkdir -p \$dldir~
13720: $install_prog $dir/$dlname \$dldir/$dlname~
13721: chmod a+x \$dldir/$dlname~
13722: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13723: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13724: fi'
13725: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13726: dlpath=$dir/\$dldll~
13727: $RM \$dlpath'
13728: ;;
13729:
13730: osf3* | osf4* | osf5*)
13731: version_type=osf
13732: need_lib_prefix=no
13733: need_version=no
13734: soname_spec='$libname$release$shared_ext$major'
13735: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13736: shlibpath_var=LD_LIBRARY_PATH
13737: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13738: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13739: ;;
13740:
13741: rdos*)
13742: dynamic_linker=no
13743: ;;
13744:
13745: solaris*)
13746: version_type=linux # correct to gnu/linux during the next big refactor
13747: need_lib_prefix=no
13748: need_version=no
13749: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13750: soname_spec='$libname$release$shared_ext$major'
13751: shlibpath_var=LD_LIBRARY_PATH
13752: shlibpath_overrides_runpath=yes
13753: hardcode_into_libs=yes
13754: # ldd complains unless libraries are executable
13755: postinstall_cmds='chmod +x $lib'
13756: ;;
13757:
13758: sunos4*)
13759: version_type=sunos
13760: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13761: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13762: shlibpath_var=LD_LIBRARY_PATH
13763: shlibpath_overrides_runpath=yes
13764: if test yes = "$with_gnu_ld"; then
13765: need_lib_prefix=no
13766: fi
13767: need_version=yes
13768: ;;
13769:
13770: sysv4 | sysv4.3*)
13771: version_type=linux # correct to gnu/linux during the next big refactor
13772: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13773: soname_spec='$libname$release$shared_ext$major'
13774: shlibpath_var=LD_LIBRARY_PATH
13775: case $host_vendor in
13776: sni)
13777: shlibpath_overrides_runpath=no
13778: need_lib_prefix=no
13779: runpath_var=LD_RUN_PATH
13780: ;;
13781: siemens)
13782: need_lib_prefix=no
13783: ;;
13784: motorola)
13785: need_lib_prefix=no
13786: need_version=no
13787: shlibpath_overrides_runpath=no
13788: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13789: ;;
13790: esac
13791: ;;
13792:
13793: sysv4*MP*)
13794: if test -d /usr/nec; then
13795: version_type=linux # correct to gnu/linux during the next big refactor
13796: library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13797: soname_spec='$libname$shared_ext.$major'
13798: shlibpath_var=LD_LIBRARY_PATH
13799: fi
13800: ;;
13801:
13802: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13803: version_type=sco
13804: need_lib_prefix=no
13805: need_version=no
13806: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13807: soname_spec='$libname$release$shared_ext$major'
13808: shlibpath_var=LD_LIBRARY_PATH
13809: shlibpath_overrides_runpath=yes
13810: hardcode_into_libs=yes
13811: if test yes = "$with_gnu_ld"; then
13812: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13813: else
13814: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13815: case $host_os in
13816: sco3.2v5*)
13817: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13818: ;;
13819: esac
13820: fi
13821: sys_lib_dlsearch_path_spec='/usr/lib'
13822: ;;
13823:
13824: tpf*)
13825: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13826: version_type=linux # correct to gnu/linux during the next big refactor
13827: need_lib_prefix=no
13828: need_version=no
13829: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13830: shlibpath_var=LD_LIBRARY_PATH
13831: shlibpath_overrides_runpath=no
13832: hardcode_into_libs=yes
13833: ;;
13834:
13835: uts4*)
13836: version_type=linux # correct to gnu/linux during the next big refactor
13837: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13838: soname_spec='$libname$release$shared_ext$major'
13839: shlibpath_var=LD_LIBRARY_PATH
13840: ;;
13841:
13842: *)
13843: dynamic_linker=no
13844: ;;
13845: esac
13846: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13847: $as_echo "$dynamic_linker" >&6; }
13848: test no = "$dynamic_linker" && can_build_shared=no
13849:
13850: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13851: if test yes = "$GCC"; then
13852: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13853: fi
13854:
13855: if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13856: sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13857: fi
13858:
13859: if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13860: sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13861: fi
13862:
13863: # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13864: configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13865:
13866: # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13867: func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13868:
13869: # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13870: configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13871:
13872:
13873:
13874:
13875:
13876:
13877:
13878:
13879:
13880:
13881:
13882:
13883:
13884:
13885:
13886:
13887:
13888:
13889:
13890:
13891:
13892:
13893:
13894:
13895:
13896:
13897:
13898:
13899:
13900:
13901:
13902:
13903:
13904:
13905:
13906:
13907:
13908:
13909:
13910:
13911:
13912:
13913:
13914:
13915:
13916:
13917:
13918:
13919:
13920:
13921:
13922:
13923:
13924:
13925:
13926:
13927:
13928:
13929:
13930:
13931:
13932:
13933:
13934:
13935:
13936:
13937:
13938:
13939:
13940:
13941:
13942:
13943:
13944:
13945:
13946:
13947:
13948:
13949:
13950:
13951:
13952:
13953:
13954:
13955:
13956:
13957:
13958:
13959:
13960:
13961:
13962:
13963:
13964:
13965:
13966:
13967:
13968: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13969: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13970: hardcode_action=
13971: if test -n "$hardcode_libdir_flag_spec" ||
13972: test -n "$runpath_var" ||
13973: test yes = "$hardcode_automatic"; then
13974:
13975: # We can hardcode non-existent directories.
13976: if test no != "$hardcode_direct" &&
13977: # If the only mechanism to avoid hardcoding is shlibpath_var, we
13978: # have to relink, otherwise we might link with an installed library
13979: # when we should be linking with a yet-to-be-installed one
13980: ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13981: test no != "$hardcode_minus_L"; then
13982: # Linking always hardcodes the temporary library directory.
13983: hardcode_action=relink
13984: else
13985: # We can link without hardcoding, and we can hardcode nonexisting dirs.
13986: hardcode_action=immediate
13987: fi
13988: else
13989: # We cannot hardcode anything, or else we can only hardcode existing
13990: # directories.
13991: hardcode_action=unsupported
13992: fi
13993: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13994: $as_echo "$hardcode_action" >&6; }
13995:
13996: if test relink = "$hardcode_action" ||
13997: test yes = "$inherit_rpath"; then
13998: # Fast installation is not supported
13999: enable_fast_install=no
14000: elif test yes = "$shlibpath_overrides_runpath" ||
14001: test no = "$enable_shared"; then
14002: # Fast installation is not necessary
14003: enable_fast_install=needless
14004: fi
14005:
14006:
14007:
14008:
14009:
14010:
14011: if test yes != "$enable_dlopen"; then
14012: enable_dlopen=unknown
14013: enable_dlopen_self=unknown
14014: enable_dlopen_self_static=unknown
14015: else
14016: lt_cv_dlopen=no
14017: lt_cv_dlopen_libs=
14018:
14019: case $host_os in
14020: beos*)
14021: lt_cv_dlopen=load_add_on
14022: lt_cv_dlopen_libs=
14023: lt_cv_dlopen_self=yes
14024: ;;
14025:
14026: mingw* | pw32* | cegcc*)
14027: lt_cv_dlopen=LoadLibrary
14028: lt_cv_dlopen_libs=
14029: ;;
14030:
14031: cygwin*)
14032: lt_cv_dlopen=dlopen
14033: lt_cv_dlopen_libs=
14034: ;;
14035:
14036: darwin*)
14037: # if libdl is installed we need to link against it
14038: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14039: $as_echo_n "checking for dlopen in -ldl... " >&6; }
14040: if ${ac_cv_lib_dl_dlopen+:} false; then :
14041: $as_echo_n "(cached) " >&6
14042: else
14043: ac_check_lib_save_LIBS=$LIBS
14044: LIBS="-ldl $LIBS"
14045: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14046: /* end confdefs.h. */
14047:
14048: /* Override any GCC internal prototype to avoid an error.
14049: Use char because int might match the return type of a GCC
14050: builtin and then its argument prototype would still apply. */
14051: #ifdef __cplusplus
14052: extern "C"
14053: #endif
14054: char dlopen ();
14055: int
14056: main ()
14057: {
14058: return dlopen ();
14059: ;
14060: return 0;
14061: }
14062: _ACEOF
14063: if ac_fn_c_try_link "$LINENO"; then :
14064: ac_cv_lib_dl_dlopen=yes
14065: else
14066: ac_cv_lib_dl_dlopen=no
14067: fi
14068: rm -f core conftest.err conftest.$ac_objext \
14069: conftest$ac_exeext conftest.$ac_ext
14070: LIBS=$ac_check_lib_save_LIBS
14071: fi
14072: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14073: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14074: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14075: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14076: else
14077:
14078: lt_cv_dlopen=dyld
14079: lt_cv_dlopen_libs=
14080: lt_cv_dlopen_self=yes
14081:
14082: fi
14083:
14084: ;;
14085:
14086: tpf*)
14087: # Don't try to run any link tests for TPF. We know it's impossible
14088: # because TPF is a cross-compiler, and we know how we open DSOs.
14089: lt_cv_dlopen=dlopen
14090: lt_cv_dlopen_libs=
14091: lt_cv_dlopen_self=no
14092: ;;
14093:
14094: *)
14095: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14096: if test "x$ac_cv_func_shl_load" = xyes; then :
14097: lt_cv_dlopen=shl_load
14098: else
14099: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14100: $as_echo_n "checking for shl_load in -ldld... " >&6; }
14101: if ${ac_cv_lib_dld_shl_load+:} false; then :
14102: $as_echo_n "(cached) " >&6
14103: else
14104: ac_check_lib_save_LIBS=$LIBS
14105: LIBS="-ldld $LIBS"
14106: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14107: /* end confdefs.h. */
14108:
14109: /* Override any GCC internal prototype to avoid an error.
14110: Use char because int might match the return type of a GCC
14111: builtin and then its argument prototype would still apply. */
14112: #ifdef __cplusplus
14113: extern "C"
14114: #endif
14115: char shl_load ();
14116: int
14117: main ()
14118: {
14119: return shl_load ();
14120: ;
14121: return 0;
14122: }
14123: _ACEOF
14124: if ac_fn_c_try_link "$LINENO"; then :
14125: ac_cv_lib_dld_shl_load=yes
14126: else
14127: ac_cv_lib_dld_shl_load=no
14128: fi
14129: rm -f core conftest.err conftest.$ac_objext \
14130: conftest$ac_exeext conftest.$ac_ext
14131: LIBS=$ac_check_lib_save_LIBS
14132: fi
14133: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14134: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14135: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14136: lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14137: else
14138: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14139: if test "x$ac_cv_func_dlopen" = xyes; then :
14140: lt_cv_dlopen=dlopen
14141: else
14142: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14143: $as_echo_n "checking for dlopen in -ldl... " >&6; }
14144: if ${ac_cv_lib_dl_dlopen+:} false; then :
14145: $as_echo_n "(cached) " >&6
14146: else
14147: ac_check_lib_save_LIBS=$LIBS
14148: LIBS="-ldl $LIBS"
14149: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14150: /* end confdefs.h. */
14151:
14152: /* Override any GCC internal prototype to avoid an error.
14153: Use char because int might match the return type of a GCC
14154: builtin and then its argument prototype would still apply. */
14155: #ifdef __cplusplus
14156: extern "C"
14157: #endif
14158: char dlopen ();
14159: int
14160: main ()
14161: {
14162: return dlopen ();
14163: ;
14164: return 0;
14165: }
14166: _ACEOF
14167: if ac_fn_c_try_link "$LINENO"; then :
14168: ac_cv_lib_dl_dlopen=yes
14169: else
14170: ac_cv_lib_dl_dlopen=no
14171: fi
14172: rm -f core conftest.err conftest.$ac_objext \
14173: conftest$ac_exeext conftest.$ac_ext
14174: LIBS=$ac_check_lib_save_LIBS
14175: fi
14176: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14177: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14178: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14179: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14180: else
14181: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14182: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14183: if ${ac_cv_lib_svld_dlopen+:} false; then :
14184: $as_echo_n "(cached) " >&6
14185: else
14186: ac_check_lib_save_LIBS=$LIBS
14187: LIBS="-lsvld $LIBS"
14188: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14189: /* end confdefs.h. */
14190:
14191: /* Override any GCC internal prototype to avoid an error.
14192: Use char because int might match the return type of a GCC
14193: builtin and then its argument prototype would still apply. */
14194: #ifdef __cplusplus
14195: extern "C"
14196: #endif
14197: char dlopen ();
14198: int
14199: main ()
14200: {
14201: return dlopen ();
14202: ;
14203: return 0;
14204: }
14205: _ACEOF
14206: if ac_fn_c_try_link "$LINENO"; then :
14207: ac_cv_lib_svld_dlopen=yes
14208: else
14209: ac_cv_lib_svld_dlopen=no
14210: fi
14211: rm -f core conftest.err conftest.$ac_objext \
14212: conftest$ac_exeext conftest.$ac_ext
14213: LIBS=$ac_check_lib_save_LIBS
14214: fi
14215: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14216: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14217: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14218: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14219: else
14220: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14221: $as_echo_n "checking for dld_link in -ldld... " >&6; }
14222: if ${ac_cv_lib_dld_dld_link+:} false; then :
14223: $as_echo_n "(cached) " >&6
14224: else
14225: ac_check_lib_save_LIBS=$LIBS
14226: LIBS="-ldld $LIBS"
14227: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14228: /* end confdefs.h. */
14229:
14230: /* Override any GCC internal prototype to avoid an error.
14231: Use char because int might match the return type of a GCC
14232: builtin and then its argument prototype would still apply. */
14233: #ifdef __cplusplus
14234: extern "C"
14235: #endif
14236: char dld_link ();
14237: int
14238: main ()
14239: {
14240: return dld_link ();
14241: ;
14242: return 0;
14243: }
14244: _ACEOF
14245: if ac_fn_c_try_link "$LINENO"; then :
14246: ac_cv_lib_dld_dld_link=yes
14247: else
14248: ac_cv_lib_dld_dld_link=no
14249: fi
14250: rm -f core conftest.err conftest.$ac_objext \
14251: conftest$ac_exeext conftest.$ac_ext
14252: LIBS=$ac_check_lib_save_LIBS
14253: fi
14254: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14255: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14256: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14257: lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14258: fi
14259:
14260:
14261: fi
14262:
14263:
14264: fi
14265:
14266:
14267: fi
14268:
14269:
14270: fi
14271:
14272:
14273: fi
14274:
14275: ;;
14276: esac
14277:
14278: if test no = "$lt_cv_dlopen"; then
14279: enable_dlopen=no
14280: else
14281: enable_dlopen=yes
14282: fi
14283:
14284: case $lt_cv_dlopen in
14285: dlopen)
14286: save_CPPFLAGS=$CPPFLAGS
14287: test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14288:
14289: save_LDFLAGS=$LDFLAGS
14290: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14291:
14292: save_LIBS=$LIBS
14293: LIBS="$lt_cv_dlopen_libs $LIBS"
14294:
14295: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14296: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14297: if ${lt_cv_dlopen_self+:} false; then :
14298: $as_echo_n "(cached) " >&6
14299: else
14300: if test yes = "$cross_compiling"; then :
14301: lt_cv_dlopen_self=cross
14302: else
14303: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14304: lt_status=$lt_dlunknown
14305: cat > conftest.$ac_ext <<_LT_EOF
14306: #line $LINENO "configure"
14307: #include "confdefs.h"
14308:
14309: #if HAVE_DLFCN_H
14310: #include <dlfcn.h>
14311: #endif
14312:
14313: #include <stdio.h>
14314:
14315: #ifdef RTLD_GLOBAL
14316: # define LT_DLGLOBAL RTLD_GLOBAL
14317: #else
14318: # ifdef DL_GLOBAL
14319: # define LT_DLGLOBAL DL_GLOBAL
14320: # else
14321: # define LT_DLGLOBAL 0
14322: # endif
14323: #endif
14324:
14325: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14326: find out it does not work in some platform. */
14327: #ifndef LT_DLLAZY_OR_NOW
14328: # ifdef RTLD_LAZY
14329: # define LT_DLLAZY_OR_NOW RTLD_LAZY
14330: # else
14331: # ifdef DL_LAZY
14332: # define LT_DLLAZY_OR_NOW DL_LAZY
14333: # else
14334: # ifdef RTLD_NOW
14335: # define LT_DLLAZY_OR_NOW RTLD_NOW
14336: # else
14337: # ifdef DL_NOW
14338: # define LT_DLLAZY_OR_NOW DL_NOW
14339: # else
14340: # define LT_DLLAZY_OR_NOW 0
14341: # endif
14342: # endif
14343: # endif
14344: # endif
14345: #endif
14346:
14347: /* When -fvisibility=hidden is used, assume the code has been annotated
14348: correspondingly for the symbols needed. */
14349: #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14350: int fnord () __attribute__((visibility("default")));
14351: #endif
14352:
14353: int fnord () { return 42; }
14354: int main ()
14355: {
14356: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14357: int status = $lt_dlunknown;
14358:
14359: if (self)
14360: {
14361: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14362: else
14363: {
14364: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14365: else puts (dlerror ());
14366: }
14367: /* dlclose (self); */
14368: }
14369: else
14370: puts (dlerror ());
14371:
14372: return status;
14373: }
14374: _LT_EOF
14375: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14376: (eval $ac_link) 2>&5
14377: ac_status=$?
14378: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14379: test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14380: (./conftest; exit; ) >&5 2>/dev/null
14381: lt_status=$?
14382: case x$lt_status in
14383: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14384: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14385: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14386: esac
14387: else :
14388: # compilation failed
14389: lt_cv_dlopen_self=no
14390: fi
14391: fi
14392: rm -fr conftest*
14393:
14394:
14395: fi
14396: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14397: $as_echo "$lt_cv_dlopen_self" >&6; }
14398:
14399: if test yes = "$lt_cv_dlopen_self"; then
14400: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14401: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14402: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14403: if ${lt_cv_dlopen_self_static+:} false; then :
14404: $as_echo_n "(cached) " >&6
14405: else
14406: if test yes = "$cross_compiling"; then :
14407: lt_cv_dlopen_self_static=cross
14408: else
14409: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14410: lt_status=$lt_dlunknown
14411: cat > conftest.$ac_ext <<_LT_EOF
14412: #line $LINENO "configure"
14413: #include "confdefs.h"
14414:
14415: #if HAVE_DLFCN_H
14416: #include <dlfcn.h>
14417: #endif
14418:
14419: #include <stdio.h>
14420:
14421: #ifdef RTLD_GLOBAL
14422: # define LT_DLGLOBAL RTLD_GLOBAL
14423: #else
14424: # ifdef DL_GLOBAL
14425: # define LT_DLGLOBAL DL_GLOBAL
14426: # else
14427: # define LT_DLGLOBAL 0
14428: # endif
14429: #endif
14430:
14431: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14432: find out it does not work in some platform. */
14433: #ifndef LT_DLLAZY_OR_NOW
14434: # ifdef RTLD_LAZY
14435: # define LT_DLLAZY_OR_NOW RTLD_LAZY
14436: # else
14437: # ifdef DL_LAZY
14438: # define LT_DLLAZY_OR_NOW DL_LAZY
14439: # else
14440: # ifdef RTLD_NOW
14441: # define LT_DLLAZY_OR_NOW RTLD_NOW
14442: # else
14443: # ifdef DL_NOW
14444: # define LT_DLLAZY_OR_NOW DL_NOW
14445: # else
14446: # define LT_DLLAZY_OR_NOW 0
14447: # endif
14448: # endif
14449: # endif
14450: # endif
14451: #endif
14452:
14453: /* When -fvisibility=hidden is used, assume the code has been annotated
14454: correspondingly for the symbols needed. */
14455: #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14456: int fnord () __attribute__((visibility("default")));
14457: #endif
14458:
14459: int fnord () { return 42; }
14460: int main ()
14461: {
14462: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14463: int status = $lt_dlunknown;
14464:
14465: if (self)
14466: {
14467: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14468: else
14469: {
14470: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14471: else puts (dlerror ());
14472: }
14473: /* dlclose (self); */
14474: }
14475: else
14476: puts (dlerror ());
14477:
14478: return status;
14479: }
14480: _LT_EOF
14481: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14482: (eval $ac_link) 2>&5
14483: ac_status=$?
14484: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14485: test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14486: (./conftest; exit; ) >&5 2>/dev/null
14487: lt_status=$?
14488: case x$lt_status in
14489: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14490: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14491: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14492: esac
14493: else :
14494: # compilation failed
14495: lt_cv_dlopen_self_static=no
14496: fi
14497: fi
14498: rm -fr conftest*
14499:
14500:
14501: fi
14502: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14503: $as_echo "$lt_cv_dlopen_self_static" >&6; }
14504: fi
14505:
14506: CPPFLAGS=$save_CPPFLAGS
14507: LDFLAGS=$save_LDFLAGS
14508: LIBS=$save_LIBS
14509: ;;
14510: esac
14511:
14512: case $lt_cv_dlopen_self in
14513: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14514: *) enable_dlopen_self=unknown ;;
14515: esac
14516:
14517: case $lt_cv_dlopen_self_static in
14518: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14519: *) enable_dlopen_self_static=unknown ;;
14520: esac
14521: fi
14522:
14523:
14524:
14525:
14526:
14527:
14528:
14529:
14530:
14531:
14532:
14533:
14534:
14535:
14536:
14537:
14538:
14539: striplib=
14540: old_striplib=
14541: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14542: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14543: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14544: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14545: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14546: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14547: $as_echo "yes" >&6; }
14548: else
14549: # FIXME - insert some real tests, host_os isn't really good enough
14550: case $host_os in
14551: darwin*)
14552: if test -n "$STRIP"; then
14553: striplib="$STRIP -x"
14554: old_striplib="$STRIP -S"
14555: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14556: $as_echo "yes" >&6; }
14557: else
14558: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14559: $as_echo "no" >&6; }
14560: fi
14561: ;;
14562: *)
14563: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14564: $as_echo "no" >&6; }
14565: ;;
14566: esac
14567: fi
14568:
14569:
14570:
14571:
14572:
14573:
14574:
14575:
14576:
14577:
14578:
14579:
14580: # Report what library types will actually be built
14581: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14582: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14583: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14584: $as_echo "$can_build_shared" >&6; }
14585:
14586: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14587: $as_echo_n "checking whether to build shared libraries... " >&6; }
14588: test no = "$can_build_shared" && enable_shared=no
14589:
14590: # On AIX, shared libraries and static libraries use the same namespace, and
14591: # are all built from PIC.
14592: case $host_os in
14593: aix3*)
14594: test yes = "$enable_shared" && enable_static=no
14595: if test -n "$RANLIB"; then
14596: archive_cmds="$archive_cmds~\$RANLIB \$lib"
14597: postinstall_cmds='$RANLIB $lib'
14598: fi
14599: ;;
14600:
14601: aix[4-9]*)
14602: if test ia64 != "$host_cpu"; then
14603: case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14604: yes,aix,yes) ;; # shared object as lib.so file only
14605: yes,svr4,*) ;; # shared object as lib.so archive member only
14606: yes,*) enable_static=no ;; # shared object in lib.a archive as well
14607: esac
14608: fi
14609: ;;
14610: esac
14611: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14612: $as_echo "$enable_shared" >&6; }
14613:
14614: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14615: $as_echo_n "checking whether to build static libraries... " >&6; }
14616: # Make sure either enable_shared or enable_static is yes.
14617: test yes = "$enable_shared" || enable_static=yes
14618: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14619: $as_echo "$enable_static" >&6; }
14620:
14621:
14622:
14623:
14624: fi
14625: ac_ext=c
14626: ac_cpp='$CPP $CPPFLAGS'
14627: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14628: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14629: ac_compiler_gnu=$ac_cv_c_compiler_gnu
14630:
14631: CC=$lt_save_CC
14632:
14633:
14634:
14635:
14636:
14637:
14638:
14639:
14640:
14641:
14642:
14643:
14644:
14645:
14646:
14647: ac_config_commands="$ac_config_commands libtool"
14648:
14649:
14650:
14651:
14652: # Only expand once:
14653:
14654:
14655:
14656: CPPFLAGS = -DLAC_SYSDIR='"$(datadir)"' @CPPFLAGS@
14657:
14658: ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/repl/Makefile examples/Makefile docs/Makefile"
14659:
14660: ac_config_headers="$ac_config_headers config.h"
14661:
14662: cat >confcache <<\_ACEOF
14663: # This file is a shell script that caches the results of configure
14664: # tests run on this system so they can be shared between configure
14665: # scripts and configure runs, see configure's option --config-cache.
14666: # It is not useful on other systems. If it contains results you don't
14667: # want to keep, you may remove or edit it.
14668: #
14669: # config.status only pays attention to the cache file if you give it
14670: # the --recheck option to rerun configure.
14671: #
14672: # `ac_cv_env_foo' variables (set or unset) will be overridden when
14673: # loading this file, other *unset* `ac_cv_foo' will be assigned the
14674: # following values.
14675:
14676: _ACEOF
14677:
14678: # The following way of writing the cache mishandles newlines in values,
14679: # but we know of no workaround that is simple, portable, and efficient.
14680: # So, we kill variables containing newlines.
14681: # Ultrix sh set writes to stderr and can't be redirected directly,
14682: # and sets the high bit in the cache file unless we assign to the vars.
14683: (
14684: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14685: eval ac_val=\$$ac_var
14686: case $ac_val in #(
14687: *${as_nl}*)
14688: case $ac_var in #(
14689: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14690: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14691: esac
14692: case $ac_var in #(
14693: _ | IFS | as_nl) ;; #(
14694: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14695: *) { eval $ac_var=; unset $ac_var;} ;;
14696: esac ;;
14697: esac
14698: done
14699:
14700: (set) 2>&1 |
14701: case $as_nl`(ac_space=' '; set) 2>&1` in #(
14702: *${as_nl}ac_space=\ *)
14703: # `set' does not quote correctly, so add quotes: double-quote
14704: # substitution turns \\\\ into \\, and sed turns \\ into \.
14705: sed -n \
14706: "s/'/'\\\\''/g;
14707: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14708: ;; #(
14709: *)
14710: # `set' quotes correctly as required by POSIX, so do not add quotes.
14711: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14712: ;;
14713: esac |
14714: sort
14715: ) |
14716: sed '
14717: /^ac_cv_env_/b end
14718: t clear
14719: :clear
14720: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14721: t end
14722: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14723: :end' >>confcache
14724: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14725: if test -w "$cache_file"; then
14726: if test "x$cache_file" != "x/dev/null"; then
14727: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14728: $as_echo "$as_me: updating cache $cache_file" >&6;}
14729: if test ! -f "$cache_file" || test -h "$cache_file"; then
14730: cat confcache >"$cache_file"
14731: else
14732: case $cache_file in #(
14733: */* | ?:*)
14734: mv -f confcache "$cache_file"$$ &&
14735: mv -f "$cache_file"$$ "$cache_file" ;; #(
14736: *)
14737: mv -f confcache "$cache_file" ;;
14738: esac
14739: fi
14740: fi
14741: else
14742: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14743: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14744: fi
14745: fi
14746: rm -f confcache
14747:
14748: test "x$prefix" = xNONE && prefix=$ac_default_prefix
14749: # Let make expand exec_prefix.
14750: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14751:
14752: DEFS=-DHAVE_CONFIG_H
14753:
14754: ac_libobjs=
14755: ac_ltlibobjs=
14756: U=
14757: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14758: # 1. Remove the extension, and $U if already installed.
14759: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14760: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14761: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14762: # will be set to the directory where LIBOBJS objects are built.
14763: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14764: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14765: done
14766: LIBOBJS=$ac_libobjs
14767:
14768: LTLIBOBJS=$ac_ltlibobjs
14769:
14770:
14771: { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14772: $as_echo_n "checking that generated files are newer than configure... " >&6; }
14773: if test -n "$am_sleep_pid"; then
14774: # Hide warnings about reused PIDs.
14775: wait $am_sleep_pid 2>/dev/null
14776: fi
14777: { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14778: $as_echo "done" >&6; }
14779: if test -n "$EXEEXT"; then
14780: am__EXEEXT_TRUE=
14781: am__EXEEXT_FALSE='#'
14782: else
14783: am__EXEEXT_TRUE='#'
14784: am__EXEEXT_FALSE=
14785: fi
14786:
14787: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14788: as_fn_error $? "conditional \"AMDEP\" was never defined.
14789: Usually this means the macro was only invoked conditionally." "$LINENO" 5
14790: fi
14791: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14792: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14793: Usually this means the macro was only invoked conditionally." "$LINENO" 5
14794: fi
14795:
14796: : "${CONFIG_STATUS=./config.status}"
14797: ac_write_fail=0
14798: ac_clean_files_save=$ac_clean_files
14799: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14800: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14801: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14802: as_write_fail=0
14803: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14804: #! $SHELL
14805: # Generated by $as_me.
14806: # Run this file to recreate the current configuration.
14807: # Compiler output produced by configure, useful for debugging
14808: # configure, is in config.log if it exists.
14809:
14810: debug=false
14811: ac_cs_recheck=false
14812: ac_cs_silent=false
14813:
14814: SHELL=\${CONFIG_SHELL-$SHELL}
14815: export SHELL
14816: _ASEOF
14817: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14818: ## -------------------- ##
14819: ## M4sh Initialization. ##
14820: ## -------------------- ##
14821:
14822: # Be more Bourne compatible
14823: DUALCASE=1; export DUALCASE # for MKS sh
14824: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14825: emulate sh
14826: NULLCMD=:
14827: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14828: # is contrary to our usage. Disable this feature.
14829: alias -g '${1+"$@"}'='"$@"'
14830: setopt NO_GLOB_SUBST
14831: else
14832: case `(set -o) 2>/dev/null` in #(
14833: *posix*) :
14834: set -o posix ;; #(
14835: *) :
14836: ;;
14837: esac
14838: fi
14839:
14840:
14841: as_nl='
14842: '
14843: export as_nl
14844: # Printing a long string crashes Solaris 7 /usr/bin/printf.
14845: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14846: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14847: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14848: # Prefer a ksh shell builtin over an external printf program on Solaris,
14849: # but without wasting forks for bash or zsh.
14850: if test -z "$BASH_VERSION$ZSH_VERSION" \
14851: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14852: as_echo='print -r --'
14853: as_echo_n='print -rn --'
14854: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14855: as_echo='printf %s\n'
14856: as_echo_n='printf %s'
14857: else
14858: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14859: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14860: as_echo_n='/usr/ucb/echo -n'
14861: else
14862: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14863: as_echo_n_body='eval
14864: arg=$1;
14865: case $arg in #(
14866: *"$as_nl"*)
14867: expr "X$arg" : "X\\(.*\\)$as_nl";
14868: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14869: esac;
14870: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14871: '
14872: export as_echo_n_body
14873: as_echo_n='sh -c $as_echo_n_body as_echo'
14874: fi
14875: export as_echo_body
14876: as_echo='sh -c $as_echo_body as_echo'
14877: fi
14878:
14879: # The user is always right.
14880: if test "${PATH_SEPARATOR+set}" != set; then
14881: PATH_SEPARATOR=:
14882: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14883: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14884: PATH_SEPARATOR=';'
14885: }
14886: fi
14887:
14888:
14889: # IFS
14890: # We need space, tab and new line, in precisely that order. Quoting is
14891: # there to prevent editors from complaining about space-tab.
14892: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14893: # splitting by setting IFS to empty value.)
14894: IFS=" "" $as_nl"
14895:
14896: # Find who we are. Look in the path if we contain no directory separator.
14897: as_myself=
14898: case $0 in #((
14899: *[\\/]* ) as_myself=$0 ;;
14900: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14901: for as_dir in $PATH
14902: do
14903: IFS=$as_save_IFS
14904: test -z "$as_dir" && as_dir=.
14905: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14906: done
14907: IFS=$as_save_IFS
14908:
14909: ;;
14910: esac
14911: # We did not find ourselves, most probably we were run as `sh COMMAND'
14912: # in which case we are not to be found in the path.
14913: if test "x$as_myself" = x; then
14914: as_myself=$0
14915: fi
14916: if test ! -f "$as_myself"; then
14917: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14918: exit 1
14919: fi
14920:
14921: # Unset variables that we do not need and which cause bugs (e.g. in
14922: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14923: # suppresses any "Segmentation fault" message there. '((' could
14924: # trigger a bug in pdksh 5.2.14.
14925: for as_var in BASH_ENV ENV MAIL MAILPATH
14926: do eval test x\${$as_var+set} = xset \
14927: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14928: done
14929: PS1='$ '
14930: PS2='> '
14931: PS4='+ '
14932:
14933: # NLS nuisances.
14934: LC_ALL=C
14935: export LC_ALL
14936: LANGUAGE=C
14937: export LANGUAGE
14938:
14939: # CDPATH.
14940: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14941:
14942:
14943: # as_fn_error STATUS ERROR [LINENO LOG_FD]
14944: # ----------------------------------------
14945: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14946: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14947: # script with STATUS, using 1 if that was 0.
14948: as_fn_error ()
14949: {
14950: as_status=$1; test $as_status -eq 0 && as_status=1
14951: if test "$4"; then
14952: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14953: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14954: fi
14955: $as_echo "$as_me: error: $2" >&2
14956: as_fn_exit $as_status
14957: } # as_fn_error
14958:
14959:
14960: # as_fn_set_status STATUS
14961: # -----------------------
14962: # Set $? to STATUS, without forking.
14963: as_fn_set_status ()
14964: {
14965: return $1
14966: } # as_fn_set_status
14967:
14968: # as_fn_exit STATUS
14969: # -----------------
14970: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14971: as_fn_exit ()
14972: {
14973: set +e
14974: as_fn_set_status $1
14975: exit $1
14976: } # as_fn_exit
14977:
14978: # as_fn_unset VAR
14979: # ---------------
14980: # Portably unset VAR.
14981: as_fn_unset ()
14982: {
14983: { eval $1=; unset $1;}
14984: }
14985: as_unset=as_fn_unset
14986: # as_fn_append VAR VALUE
14987: # ----------------------
14988: # Append the text in VALUE to the end of the definition contained in VAR. Take
14989: # advantage of any shell optimizations that allow amortized linear growth over
14990: # repeated appends, instead of the typical quadratic growth present in naive
14991: # implementations.
14992: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14993: eval 'as_fn_append ()
14994: {
14995: eval $1+=\$2
14996: }'
14997: else
14998: as_fn_append ()
14999: {
15000: eval $1=\$$1\$2
15001: }
15002: fi # as_fn_append
15003:
15004: # as_fn_arith ARG...
15005: # ------------------
15006: # Perform arithmetic evaluation on the ARGs, and store the result in the
15007: # global $as_val. Take advantage of shells that can avoid forks. The arguments
15008: # must be portable across $(()) and expr.
15009: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15010: eval 'as_fn_arith ()
15011: {
15012: as_val=$(( $* ))
15013: }'
15014: else
15015: as_fn_arith ()
15016: {
15017: as_val=`expr "$@" || test $? -eq 1`
15018: }
15019: fi # as_fn_arith
15020:
15021:
15022: if expr a : '\(a\)' >/dev/null 2>&1 &&
15023: test "X`expr 00001 : '.*\(...\)'`" = X001; then
15024: as_expr=expr
15025: else
15026: as_expr=false
15027: fi
15028:
15029: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15030: as_basename=basename
15031: else
15032: as_basename=false
15033: fi
15034:
15035: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15036: as_dirname=dirname
15037: else
15038: as_dirname=false
15039: fi
15040:
15041: as_me=`$as_basename -- "$0" ||
15042: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15043: X"$0" : 'X\(//\)$' \| \
15044: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15045: $as_echo X/"$0" |
15046: sed '/^.*\/\([^/][^/]*\)\/*$/{
15047: s//\1/
15048: q
15049: }
15050: /^X\/\(\/\/\)$/{
15051: s//\1/
15052: q
15053: }
15054: /^X\/\(\/\).*/{
15055: s//\1/
15056: q
15057: }
15058: s/.*/./; q'`
15059:
15060: # Avoid depending upon Character Ranges.
15061: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15062: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15063: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15064: as_cr_digits='0123456789'
15065: as_cr_alnum=$as_cr_Letters$as_cr_digits
15066:
15067: ECHO_C= ECHO_N= ECHO_T=
15068: case `echo -n x` in #(((((
15069: -n*)
15070: case `echo 'xy\c'` in
15071: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15072: xy) ECHO_C='\c';;
15073: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15074: ECHO_T=' ';;
15075: esac;;
15076: *)
15077: ECHO_N='-n';;
15078: esac
15079:
15080: rm -f conf$$ conf$$.exe conf$$.file
15081: if test -d conf$$.dir; then
15082: rm -f conf$$.dir/conf$$.file
15083: else
15084: rm -f conf$$.dir
15085: mkdir conf$$.dir 2>/dev/null
15086: fi
15087: if (echo >conf$$.file) 2>/dev/null; then
15088: if ln -s conf$$.file conf$$ 2>/dev/null; then
15089: as_ln_s='ln -s'
15090: # ... but there are two gotchas:
15091: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15092: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15093: # In both cases, we have to default to `cp -pR'.
15094: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15095: as_ln_s='cp -pR'
15096: elif ln conf$$.file conf$$ 2>/dev/null; then
15097: as_ln_s=ln
15098: else
15099: as_ln_s='cp -pR'
15100: fi
15101: else
15102: as_ln_s='cp -pR'
15103: fi
15104: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15105: rmdir conf$$.dir 2>/dev/null
15106:
15107:
15108: # as_fn_mkdir_p
15109: # -------------
15110: # Create "$as_dir" as a directory, including parents if necessary.
15111: as_fn_mkdir_p ()
15112: {
15113:
15114: case $as_dir in #(
15115: -*) as_dir=./$as_dir;;
15116: esac
15117: test -d "$as_dir" || eval $as_mkdir_p || {
15118: as_dirs=
15119: while :; do
15120: case $as_dir in #(
15121: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15122: *) as_qdir=$as_dir;;
15123: esac
15124: as_dirs="'$as_qdir' $as_dirs"
15125: as_dir=`$as_dirname -- "$as_dir" ||
15126: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15127: X"$as_dir" : 'X\(//\)[^/]' \| \
15128: X"$as_dir" : 'X\(//\)$' \| \
15129: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15130: $as_echo X"$as_dir" |
15131: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15132: s//\1/
15133: q
15134: }
15135: /^X\(\/\/\)[^/].*/{
15136: s//\1/
15137: q
15138: }
15139: /^X\(\/\/\)$/{
15140: s//\1/
15141: q
15142: }
15143: /^X\(\/\).*/{
15144: s//\1/
15145: q
15146: }
15147: s/.*/./; q'`
15148: test -d "$as_dir" && break
15149: done
15150: test -z "$as_dirs" || eval "mkdir $as_dirs"
15151: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15152:
15153:
15154: } # as_fn_mkdir_p
15155: if mkdir -p . 2>/dev/null; then
15156: as_mkdir_p='mkdir -p "$as_dir"'
15157: else
15158: test -d ./-p && rmdir ./-p
15159: as_mkdir_p=false
15160: fi
15161:
15162:
15163: # as_fn_executable_p FILE
15164: # -----------------------
15165: # Test if FILE is an executable regular file.
15166: as_fn_executable_p ()
15167: {
15168: test -f "$1" && test -x "$1"
15169: } # as_fn_executable_p
15170: as_test_x='test -x'
15171: as_executable_p=as_fn_executable_p
15172:
15173: # Sed expression to map a string onto a valid CPP name.
15174: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15175:
15176: # Sed expression to map a string onto a valid variable name.
15177: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15178:
15179:
15180: exec 6>&1
15181: ## ----------------------------------- ##
15182: ## Main body of $CONFIG_STATUS script. ##
15183: ## ----------------------------------- ##
15184: _ASEOF
15185: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15186:
15187: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15188: # Save the log message, to keep $0 and so on meaningful, and to
15189: # report actual input values of CONFIG_FILES etc. instead of their
15190: # values after options handling.
15191: ac_log="
15192: This file was extended by lac $as_me 0.1.0, which was
15193: generated by GNU Autoconf 2.69. Invocation command line was
15194:
15195: CONFIG_FILES = $CONFIG_FILES
15196: CONFIG_HEADERS = $CONFIG_HEADERS
15197: CONFIG_LINKS = $CONFIG_LINKS
15198: CONFIG_COMMANDS = $CONFIG_COMMANDS
15199: $ $0 $@
15200:
15201: on `(hostname || uname -n) 2>/dev/null | sed 1q`
15202: "
15203:
15204: _ACEOF
15205:
15206: case $ac_config_files in *"
15207: "*) set x $ac_config_files; shift; ac_config_files=$*;;
15208: esac
15209:
15210: case $ac_config_headers in *"
15211: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15212: esac
15213:
15214:
15215: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15216: # Files that config.status was made for.
15217: config_files="$ac_config_files"
15218: config_headers="$ac_config_headers"
15219: config_commands="$ac_config_commands"
15220:
15221: _ACEOF
15222:
15223: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15224: ac_cs_usage="\
15225: \`$as_me' instantiates files and other configuration actions
15226: from templates according to the current configuration. Unless the files
15227: and actions are specified as TAGs, all are instantiated by default.
15228:
15229: Usage: $0 [OPTION]... [TAG]...
15230:
15231: -h, --help print this help, then exit
15232: -V, --version print version number and configuration settings, then exit
15233: --config print configuration, then exit
15234: -q, --quiet, --silent
15235: do not print progress messages
15236: -d, --debug don't remove temporary files
15237: --recheck update $as_me by reconfiguring in the same conditions
15238: --file=FILE[:TEMPLATE]
15239: instantiate the configuration file FILE
15240: --header=FILE[:TEMPLATE]
15241: instantiate the configuration header FILE
15242:
15243: Configuration files:
15244: $config_files
15245:
15246: Configuration headers:
15247: $config_headers
15248:
15249: Configuration commands:
15250: $config_commands
15251:
15252: Report bugs to <lac@tlbflush.org>."
15253:
15254: _ACEOF
15255: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15256: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15257: ac_cs_version="\\
15258: lac config.status 0.1.0
15259: configured by $0, generated by GNU Autoconf 2.69,
15260: with options \\"\$ac_cs_config\\"
15261:
15262: Copyright (C) 2012 Free Software Foundation, Inc.
15263: This config.status script is free software; the Free Software Foundation
15264: gives unlimited permission to copy, distribute and modify it."
15265:
15266: ac_pwd='$ac_pwd'
15267: srcdir='$srcdir'
15268: INSTALL='$INSTALL'
15269: MKDIR_P='$MKDIR_P'
15270: AWK='$AWK'
15271: test -n "\$AWK" || AWK=awk
15272: _ACEOF
15273:
15274: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15275: # The default lists apply if the user does not specify any file.
15276: ac_need_defaults=:
15277: while test $# != 0
15278: do
15279: case $1 in
15280: --*=?*)
15281: ac_option=`expr "X$1" : 'X\([^=]*\)='`
15282: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15283: ac_shift=:
15284: ;;
15285: --*=)
15286: ac_option=`expr "X$1" : 'X\([^=]*\)='`
15287: ac_optarg=
15288: ac_shift=:
15289: ;;
15290: *)
15291: ac_option=$1
15292: ac_optarg=$2
15293: ac_shift=shift
15294: ;;
15295: esac
15296:
15297: case $ac_option in
15298: # Handling of the options.
15299: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15300: ac_cs_recheck=: ;;
15301: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15302: $as_echo "$ac_cs_version"; exit ;;
15303: --config | --confi | --conf | --con | --co | --c )
15304: $as_echo "$ac_cs_config"; exit ;;
15305: --debug | --debu | --deb | --de | --d | -d )
15306: debug=: ;;
15307: --file | --fil | --fi | --f )
15308: $ac_shift
15309: case $ac_optarg in
15310: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15311: '') as_fn_error $? "missing file argument" ;;
15312: esac
15313: as_fn_append CONFIG_FILES " '$ac_optarg'"
15314: ac_need_defaults=false;;
15315: --header | --heade | --head | --hea )
15316: $ac_shift
15317: case $ac_optarg in
15318: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15319: esac
15320: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15321: ac_need_defaults=false;;
15322: --he | --h)
15323: # Conflict between --help and --header
15324: as_fn_error $? "ambiguous option: \`$1'
15325: Try \`$0 --help' for more information.";;
15326: --help | --hel | -h )
15327: $as_echo "$ac_cs_usage"; exit ;;
15328: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15329: | -silent | --silent | --silen | --sile | --sil | --si | --s)
15330: ac_cs_silent=: ;;
15331:
15332: # This is an error.
15333: -*) as_fn_error $? "unrecognized option: \`$1'
15334: Try \`$0 --help' for more information." ;;
15335:
15336: *) as_fn_append ac_config_targets " $1"
15337: ac_need_defaults=false ;;
15338:
15339: esac
15340: shift
15341: done
15342:
15343: ac_configure_extra_args=
15344:
15345: if $ac_cs_silent; then
15346: exec 6>/dev/null
15347: ac_configure_extra_args="$ac_configure_extra_args --silent"
15348: fi
15349:
15350: _ACEOF
15351: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15352: if \$ac_cs_recheck; then
15353: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15354: shift
15355: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15356: CONFIG_SHELL='$SHELL'
15357: export CONFIG_SHELL
15358: exec "\$@"
15359: fi
15360:
15361: _ACEOF
15362: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15363: exec 5>>config.log
15364: {
15365: echo
15366: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15367: ## Running $as_me. ##
15368: _ASBOX
15369: $as_echo "$ac_log"
15370: } >&5
15371:
15372: _ACEOF
15373: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15374: #
15375: # INIT-COMMANDS
15376: #
15377: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15378:
15379:
15380: # The HP-UX ksh and POSIX shell print the target directory to stdout
15381: # if CDPATH is set.
15382: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15383:
15384: sed_quote_subst='$sed_quote_subst'
15385: double_quote_subst='$double_quote_subst'
15386: delay_variable_subst='$delay_variable_subst'
15387: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15388: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15389: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15390: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15391: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15392: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15393: shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15394: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15395: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15396: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15397: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15398: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15399: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15400: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15401: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15402: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15403: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15404: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15405: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15406: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15407: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15408: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15409: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15410: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15411: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15412: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15413: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15414: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15415: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15416: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15417: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15418: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15419: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15420: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15421: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15422: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15423: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15424: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15425: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15426: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15427: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15428: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15429: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15430: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15431: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15432: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15433: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15434: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15435: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15436: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15437: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15438: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15439: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15440: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15441: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15442: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15443: lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15444: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15445: 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"`'
15446: lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15447: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15448: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15449: lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15450: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15451: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15452: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15453: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15454: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15455: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15456: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15457: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15458: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15459: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15460: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15461: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15462: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15463: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15464: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15465: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15466: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15467: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15468: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15469: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15470: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15471: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15472: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15473: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15474: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15475: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15476: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15477: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15478: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15479: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15480: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15481: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15482: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15483: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15484: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15485: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15486: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15487: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15488: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15489: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15490: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15491: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15492: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15493: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15494: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15495: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15496: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15497: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15498: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15499: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15500: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15501: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15502: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15503: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15504: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15505: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15506: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15507: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15508: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15509: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15510: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15511: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15512: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15513: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15514: configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15515: configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15516: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15517: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15518: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15519: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15520: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15521: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15522:
15523: LTCC='$LTCC'
15524: LTCFLAGS='$LTCFLAGS'
15525: compiler='$compiler_DEFAULT'
15526:
15527: # A function that is used when there is no print builtin or printf.
15528: func_fallback_echo ()
15529: {
15530: eval 'cat <<_LTECHO_EOF
15531: \$1
15532: _LTECHO_EOF'
15533: }
15534:
15535: # Quote evaled strings.
15536: for var in SHELL \
15537: ECHO \
15538: PATH_SEPARATOR \
15539: SED \
15540: GREP \
15541: EGREP \
15542: FGREP \
15543: LD \
15544: NM \
15545: LN_S \
15546: lt_SP2NL \
15547: lt_NL2SP \
15548: reload_flag \
15549: OBJDUMP \
15550: deplibs_check_method \
15551: file_magic_cmd \
15552: file_magic_glob \
15553: want_nocaseglob \
15554: DLLTOOL \
15555: sharedlib_from_linklib_cmd \
15556: AR \
15557: AR_FLAGS \
15558: archiver_list_spec \
15559: STRIP \
15560: RANLIB \
15561: CC \
15562: CFLAGS \
15563: compiler \
15564: lt_cv_sys_global_symbol_pipe \
15565: lt_cv_sys_global_symbol_to_cdecl \
15566: lt_cv_sys_global_symbol_to_import \
15567: lt_cv_sys_global_symbol_to_c_name_address \
15568: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15569: lt_cv_nm_interface \
15570: nm_file_list_spec \
15571: lt_cv_truncate_bin \
15572: lt_prog_compiler_no_builtin_flag \
15573: lt_prog_compiler_pic \
15574: lt_prog_compiler_wl \
15575: lt_prog_compiler_static \
15576: lt_cv_prog_compiler_c_o \
15577: need_locks \
15578: MANIFEST_TOOL \
15579: DSYMUTIL \
15580: NMEDIT \
15581: LIPO \
15582: OTOOL \
15583: OTOOL64 \
15584: shrext_cmds \
15585: export_dynamic_flag_spec \
15586: whole_archive_flag_spec \
15587: compiler_needs_object \
15588: with_gnu_ld \
15589: allow_undefined_flag \
15590: no_undefined_flag \
15591: hardcode_libdir_flag_spec \
15592: hardcode_libdir_separator \
15593: exclude_expsyms \
15594: include_expsyms \
15595: file_list_spec \
15596: variables_saved_for_relink \
15597: libname_spec \
15598: library_names_spec \
15599: soname_spec \
15600: install_override_mode \
15601: finish_eval \
15602: old_striplib \
15603: striplib; do
15604: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15605: *[\\\\\\\`\\"\\\$]*)
15606: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15607: ;;
15608: *)
15609: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15610: ;;
15611: esac
15612: done
15613:
15614: # Double-quote double-evaled strings.
15615: for var in reload_cmds \
15616: old_postinstall_cmds \
15617: old_postuninstall_cmds \
15618: old_archive_cmds \
15619: extract_expsyms_cmds \
15620: old_archive_from_new_cmds \
15621: old_archive_from_expsyms_cmds \
15622: archive_cmds \
15623: archive_expsym_cmds \
15624: module_cmds \
15625: module_expsym_cmds \
15626: export_symbols_cmds \
15627: prelink_cmds \
15628: postlink_cmds \
15629: postinstall_cmds \
15630: postuninstall_cmds \
15631: finish_cmds \
15632: sys_lib_search_path_spec \
15633: configure_time_dlsearch_path \
15634: configure_time_lt_sys_library_path; do
15635: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15636: *[\\\\\\\`\\"\\\$]*)
15637: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15638: ;;
15639: *)
15640: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15641: ;;
15642: esac
15643: done
15644:
15645: ac_aux_dir='$ac_aux_dir'
15646:
15647: # See if we are running on zsh, and set the options that allow our
15648: # commands through without removal of \ escapes INIT.
15649: if test -n "\${ZSH_VERSION+set}"; then
15650: setopt NO_GLOB_SUBST
15651: fi
15652:
15653:
15654: PACKAGE='$PACKAGE'
15655: VERSION='$VERSION'
15656: RM='$RM'
15657: ofile='$ofile'
15658:
15659:
15660:
15661:
15662: _ACEOF
15663:
15664: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15665:
15666: # Handling of arguments.
15667: for ac_config_target in $ac_config_targets
15668: do
15669: case $ac_config_target in
15670: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15671: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15672: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15673: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15674: "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
15675: "src/repl/Makefile") CONFIG_FILES="$CONFIG_FILES src/repl/Makefile" ;;
15676: "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
15677: "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
15678: "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15679:
15680: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15681: esac
15682: done
15683:
15684:
15685: # If the user did not use the arguments to specify the items to instantiate,
15686: # then the envvar interface is used. Set only those that are not.
15687: # We use the long form for the default assignment because of an extremely
15688: # bizarre bug on SunOS 4.1.3.
15689: if $ac_need_defaults; then
15690: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15691: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15692: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15693: fi
15694:
15695: # Have a temporary directory for convenience. Make it in the build tree
15696: # simply because there is no reason against having it here, and in addition,
15697: # creating and moving files from /tmp can sometimes cause problems.
15698: # Hook for its removal unless debugging.
15699: # Note that there is a small window in which the directory will not be cleaned:
15700: # after its creation but before its name has been assigned to `$tmp'.
15701: $debug ||
15702: {
15703: tmp= ac_tmp=
15704: trap 'exit_status=$?
15705: : "${ac_tmp:=$tmp}"
15706: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15707: ' 0
15708: trap 'as_fn_exit 1' 1 2 13 15
15709: }
15710: # Create a (secure) tmp directory for tmp files.
15711:
15712: {
15713: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15714: test -d "$tmp"
15715: } ||
15716: {
15717: tmp=./conf$$-$RANDOM
15718: (umask 077 && mkdir "$tmp")
15719: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15720: ac_tmp=$tmp
15721:
15722: # Set up the scripts for CONFIG_FILES section.
15723: # No need to generate them if there are no CONFIG_FILES.
15724: # This happens for instance with `./config.status config.h'.
15725: if test -n "$CONFIG_FILES"; then
15726:
15727:
15728: ac_cr=`echo X | tr X '\015'`
15729: # On cygwin, bash can eat \r inside `` if the user requested igncr.
15730: # But we know of no other shell where ac_cr would be empty at this
15731: # point, so we can use a bashism as a fallback.
15732: if test "x$ac_cr" = x; then
15733: eval ac_cr=\$\'\\r\'
15734: fi
15735: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15736: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15737: ac_cs_awk_cr='\\r'
15738: else
15739: ac_cs_awk_cr=$ac_cr
15740: fi
15741:
15742: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15743: _ACEOF
15744:
15745:
15746: {
15747: echo "cat >conf$$subs.awk <<_ACEOF" &&
15748: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15749: echo "_ACEOF"
15750: } >conf$$subs.sh ||
15751: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15752: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15753: ac_delim='%!_!# '
15754: for ac_last_try in false false false false false :; do
15755: . ./conf$$subs.sh ||
15756: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15757:
15758: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15759: if test $ac_delim_n = $ac_delim_num; then
15760: break
15761: elif $ac_last_try; then
15762: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15763: else
15764: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15765: fi
15766: done
15767: rm -f conf$$subs.sh
15768:
15769: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15770: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15771: _ACEOF
15772: sed -n '
15773: h
15774: s/^/S["/; s/!.*/"]=/
15775: p
15776: g
15777: s/^[^!]*!//
15778: :repl
15779: t repl
15780: s/'"$ac_delim"'$//
15781: t delim
15782: :nl
15783: h
15784: s/\(.\{148\}\)..*/\1/
15785: t more1
15786: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15787: p
15788: n
15789: b repl
15790: :more1
15791: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15792: p
15793: g
15794: s/.\{148\}//
15795: t nl
15796: :delim
15797: h
15798: s/\(.\{148\}\)..*/\1/
15799: t more2
15800: s/["\\]/\\&/g; s/^/"/; s/$/"/
15801: p
15802: b
15803: :more2
15804: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15805: p
15806: g
15807: s/.\{148\}//
15808: t delim
15809: ' <conf$$subs.awk | sed '
15810: /^[^""]/{
15811: N
15812: s/\n//
15813: }
15814: ' >>$CONFIG_STATUS || ac_write_fail=1
15815: rm -f conf$$subs.awk
15816: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15817: _ACAWK
15818: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15819: for (key in S) S_is_set[key] = 1
15820: FS = ""
15821:
15822: }
15823: {
15824: line = $ 0
15825: nfields = split(line, field, "@")
15826: substed = 0
15827: len = length(field[1])
15828: for (i = 2; i < nfields; i++) {
15829: key = field[i]
15830: keylen = length(key)
15831: if (S_is_set[key]) {
15832: value = S[key]
15833: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15834: len += length(value) + length(field[++i])
15835: substed = 1
15836: } else
15837: len += 1 + keylen
15838: }
15839:
15840: print line
15841: }
15842:
15843: _ACAWK
15844: _ACEOF
15845: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15846: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15847: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15848: else
15849: cat
15850: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15851: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15852: _ACEOF
15853:
15854: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15855: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15856: # trailing colons and then remove the whole line if VPATH becomes empty
15857: # (actually we leave an empty line to preserve line numbers).
15858: if test "x$srcdir" = x.; then
15859: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15860: h
15861: s///
15862: s/^/:/
15863: s/[ ]*$/:/
15864: s/:\$(srcdir):/:/g
15865: s/:\${srcdir}:/:/g
15866: s/:@srcdir@:/:/g
15867: s/^:*//
15868: s/:*$//
15869: x
15870: s/\(=[ ]*\).*/\1/
15871: G
15872: s/\n//
15873: s/^[^=]*=[ ]*$//
15874: }'
15875: fi
15876:
15877: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15878: fi # test -n "$CONFIG_FILES"
15879:
15880: # Set up the scripts for CONFIG_HEADERS section.
15881: # No need to generate them if there are no CONFIG_HEADERS.
15882: # This happens for instance with `./config.status Makefile'.
15883: if test -n "$CONFIG_HEADERS"; then
15884: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15885: BEGIN {
15886: _ACEOF
15887:
15888: # Transform confdefs.h into an awk script `defines.awk', embedded as
15889: # here-document in config.status, that substitutes the proper values into
15890: # config.h.in to produce config.h.
15891:
15892: # Create a delimiter string that does not exist in confdefs.h, to ease
15893: # handling of long lines.
15894: ac_delim='%!_!# '
15895: for ac_last_try in false false :; do
15896: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15897: if test -z "$ac_tt"; then
15898: break
15899: elif $ac_last_try; then
15900: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15901: else
15902: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15903: fi
15904: done
15905:
15906: # For the awk script, D is an array of macro values keyed by name,
15907: # likewise P contains macro parameters if any. Preserve backslash
15908: # newline sequences.
15909:
15910: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15911: sed -n '
15912: s/.\{148\}/&'"$ac_delim"'/g
15913: t rset
15914: :rset
15915: s/^[ ]*#[ ]*define[ ][ ]*/ /
15916: t def
15917: d
15918: :def
15919: s/\\$//
15920: t bsnl
15921: s/["\\]/\\&/g
15922: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15923: D["\1"]=" \3"/p
15924: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15925: d
15926: :bsnl
15927: s/["\\]/\\&/g
15928: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15929: D["\1"]=" \3\\\\\\n"\\/p
15930: t cont
15931: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15932: t cont
15933: d
15934: :cont
15935: n
15936: s/.\{148\}/&'"$ac_delim"'/g
15937: t clear
15938: :clear
15939: s/\\$//
15940: t bsnlc
15941: s/["\\]/\\&/g; s/^/"/; s/$/"/p
15942: d
15943: :bsnlc
15944: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15945: b cont
15946: ' <confdefs.h | sed '
15947: s/'"$ac_delim"'/"\\\
15948: "/g' >>$CONFIG_STATUS || ac_write_fail=1
15949:
15950: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15951: for (key in D) D_is_set[key] = 1
15952: FS = ""
15953: }
15954: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15955: line = \$ 0
15956: split(line, arg, " ")
15957: if (arg[1] == "#") {
15958: defundef = arg[2]
15959: mac1 = arg[3]
15960: } else {
15961: defundef = substr(arg[1], 2)
15962: mac1 = arg[2]
15963: }
15964: split(mac1, mac2, "(") #)
15965: macro = mac2[1]
15966: prefix = substr(line, 1, index(line, defundef) - 1)
15967: if (D_is_set[macro]) {
15968: # Preserve the white space surrounding the "#".
15969: print prefix "define", macro P[macro] D[macro]
15970: next
15971: } else {
15972: # Replace #undef with comments. This is necessary, for example,
15973: # in the case of _POSIX_SOURCE, which is predefined and required
15974: # on some systems where configure will not decide to define it.
15975: if (defundef == "undef") {
15976: print "/*", prefix defundef, macro, "*/"
15977: next
15978: }
15979: }
15980: }
15981: { print }
15982: _ACAWK
15983: _ACEOF
15984: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15985: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15986: fi # test -n "$CONFIG_HEADERS"
15987:
15988:
15989: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15990: shift
15991: for ac_tag
15992: do
15993: case $ac_tag in
15994: :[FHLC]) ac_mode=$ac_tag; continue;;
15995: esac
15996: case $ac_mode$ac_tag in
15997: :[FHL]*:*);;
15998: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15999: :[FH]-) ac_tag=-:-;;
16000: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16001: esac
16002: ac_save_IFS=$IFS
16003: IFS=:
16004: set x $ac_tag
16005: IFS=$ac_save_IFS
16006: shift
16007: ac_file=$1
16008: shift
16009:
16010: case $ac_mode in
16011: :L) ac_source=$1;;
16012: :[FH])
16013: ac_file_inputs=
16014: for ac_f
16015: do
16016: case $ac_f in
16017: -) ac_f="$ac_tmp/stdin";;
16018: *) # Look for the file first in the build tree, then in the source tree
16019: # (if the path is not absolute). The absolute path cannot be DOS-style,
16020: # because $ac_f cannot contain `:'.
16021: test -f "$ac_f" ||
16022: case $ac_f in
16023: [\\/$]*) false;;
16024: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16025: esac ||
16026: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16027: esac
16028: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16029: as_fn_append ac_file_inputs " '$ac_f'"
16030: done
16031:
16032: # Let's still pretend it is `configure' which instantiates (i.e., don't
16033: # use $as_me), people would be surprised to read:
16034: # /* config.h. Generated by config.status. */
16035: configure_input='Generated from '`
16036: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16037: `' by configure.'
16038: if test x"$ac_file" != x-; then
16039: configure_input="$ac_file. $configure_input"
16040: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16041: $as_echo "$as_me: creating $ac_file" >&6;}
16042: fi
16043: # Neutralize special characters interpreted by sed in replacement strings.
16044: case $configure_input in #(
16045: *\&* | *\|* | *\\* )
16046: ac_sed_conf_input=`$as_echo "$configure_input" |
16047: sed 's/[\\\\&|]/\\\\&/g'`;; #(
16048: *) ac_sed_conf_input=$configure_input;;
16049: esac
16050:
16051: case $ac_tag in
16052: *:-:* | *:-) cat >"$ac_tmp/stdin" \
16053: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16054: esac
16055: ;;
16056: esac
16057:
16058: ac_dir=`$as_dirname -- "$ac_file" ||
16059: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16060: X"$ac_file" : 'X\(//\)[^/]' \| \
16061: X"$ac_file" : 'X\(//\)$' \| \
16062: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16063: $as_echo X"$ac_file" |
16064: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16065: s//\1/
16066: q
16067: }
16068: /^X\(\/\/\)[^/].*/{
16069: s//\1/
16070: q
16071: }
16072: /^X\(\/\/\)$/{
16073: s//\1/
16074: q
16075: }
16076: /^X\(\/\).*/{
16077: s//\1/
16078: q
16079: }
16080: s/.*/./; q'`
16081: as_dir="$ac_dir"; as_fn_mkdir_p
16082: ac_builddir=.
16083:
16084: case "$ac_dir" in
16085: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16086: *)
16087: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16088: # A ".." for each directory in $ac_dir_suffix.
16089: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16090: case $ac_top_builddir_sub in
16091: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16092: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16093: esac ;;
16094: esac
16095: ac_abs_top_builddir=$ac_pwd
16096: ac_abs_builddir=$ac_pwd$ac_dir_suffix
16097: # for backward compatibility:
16098: ac_top_builddir=$ac_top_build_prefix
16099:
16100: case $srcdir in
16101: .) # We are building in place.
16102: ac_srcdir=.
16103: ac_top_srcdir=$ac_top_builddir_sub
16104: ac_abs_top_srcdir=$ac_pwd ;;
16105: [\\/]* | ?:[\\/]* ) # Absolute name.
16106: ac_srcdir=$srcdir$ac_dir_suffix;
16107: ac_top_srcdir=$srcdir
16108: ac_abs_top_srcdir=$srcdir ;;
16109: *) # Relative name.
16110: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16111: ac_top_srcdir=$ac_top_build_prefix$srcdir
16112: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16113: esac
16114: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16115:
16116:
16117: case $ac_mode in
16118: :F)
16119: #
16120: # CONFIG_FILE
16121: #
16122:
16123: case $INSTALL in
16124: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16125: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16126: esac
16127: ac_MKDIR_P=$MKDIR_P
16128: case $MKDIR_P in
16129: [\\/$]* | ?:[\\/]* ) ;;
16130: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16131: esac
16132: _ACEOF
16133:
16134: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16135: # If the template does not know about datarootdir, expand it.
16136: # FIXME: This hack should be removed a few years after 2.60.
16137: ac_datarootdir_hack=; ac_datarootdir_seen=
16138: ac_sed_dataroot='
16139: /datarootdir/ {
16140: p
16141: q
16142: }
16143: /@datadir@/p
16144: /@docdir@/p
16145: /@infodir@/p
16146: /@localedir@/p
16147: /@mandir@/p'
16148: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16149: *datarootdir*) ac_datarootdir_seen=yes;;
16150: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16151: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16152: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16153: _ACEOF
16154: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16155: ac_datarootdir_hack='
16156: s&@datadir@&$datadir&g
16157: s&@docdir@&$docdir&g
16158: s&@infodir@&$infodir&g
16159: s&@localedir@&$localedir&g
16160: s&@mandir@&$mandir&g
16161: s&\\\${datarootdir}&$datarootdir&g' ;;
16162: esac
16163: _ACEOF
16164:
16165: # Neutralize VPATH when `$srcdir' = `.'.
16166: # Shell code in configure.ac might set extrasub.
16167: # FIXME: do we really want to maintain this feature?
16168: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16169: ac_sed_extra="$ac_vpsub
16170: $extrasub
16171: _ACEOF
16172: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16173: :t
16174: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16175: s|@configure_input@|$ac_sed_conf_input|;t t
16176: s&@top_builddir@&$ac_top_builddir_sub&;t t
16177: s&@top_build_prefix@&$ac_top_build_prefix&;t t
16178: s&@srcdir@&$ac_srcdir&;t t
16179: s&@abs_srcdir@&$ac_abs_srcdir&;t t
16180: s&@top_srcdir@&$ac_top_srcdir&;t t
16181: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16182: s&@builddir@&$ac_builddir&;t t
16183: s&@abs_builddir@&$ac_abs_builddir&;t t
16184: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16185: s&@INSTALL@&$ac_INSTALL&;t t
16186: s&@MKDIR_P@&$ac_MKDIR_P&;t t
16187: $ac_datarootdir_hack
16188: "
16189: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16190: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16191:
16192: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16193: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16194: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16195: "$ac_tmp/out"`; test -z "$ac_out"; } &&
16196: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16197: which seems to be undefined. Please make sure it is defined" >&5
16198: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16199: which seems to be undefined. Please make sure it is defined" >&2;}
16200:
16201: rm -f "$ac_tmp/stdin"
16202: case $ac_file in
16203: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16204: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16205: esac \
16206: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16207: ;;
16208: :H)
16209: #
16210: # CONFIG_HEADER
16211: #
16212: if test x"$ac_file" != x-; then
16213: {
16214: $as_echo "/* $configure_input */" \
16215: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16216: } >"$ac_tmp/config.h" \
16217: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16218: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16219: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16220: $as_echo "$as_me: $ac_file is unchanged" >&6;}
16221: else
16222: rm -f "$ac_file"
16223: mv "$ac_tmp/config.h" "$ac_file" \
16224: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16225: fi
16226: else
16227: $as_echo "/* $configure_input */" \
16228: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16229: || as_fn_error $? "could not create -" "$LINENO" 5
16230: fi
16231: # Compute "$ac_file"'s index in $config_headers.
16232: _am_arg="$ac_file"
16233: _am_stamp_count=1
16234: for _am_header in $config_headers :; do
16235: case $_am_header in
16236: $_am_arg | $_am_arg:* )
16237: break ;;
16238: * )
16239: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16240: esac
16241: done
16242: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16243: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16244: X"$_am_arg" : 'X\(//\)[^/]' \| \
16245: X"$_am_arg" : 'X\(//\)$' \| \
16246: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16247: $as_echo X"$_am_arg" |
16248: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16249: s//\1/
16250: q
16251: }
16252: /^X\(\/\/\)[^/].*/{
16253: s//\1/
16254: q
16255: }
16256: /^X\(\/\/\)$/{
16257: s//\1/
16258: q
16259: }
16260: /^X\(\/\).*/{
16261: s//\1/
16262: q
16263: }
16264: s/.*/./; q'`/stamp-h$_am_stamp_count
16265: ;;
16266:
16267: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16268: $as_echo "$as_me: executing $ac_file commands" >&6;}
16269: ;;
16270: esac
16271:
16272:
16273: case $ac_file$ac_mode in
16274: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16275: # Older Autoconf quotes --file arguments for eval, but not when files
16276: # are listed without --file. Let's play safe and only enable the eval
16277: # if we detect the quoting.
16278: case $CONFIG_FILES in
16279: *\'*) eval set x "$CONFIG_FILES" ;;
16280: *) set x $CONFIG_FILES ;;
16281: esac
16282: shift
16283: for mf
16284: do
16285: # Strip MF so we end up with the name of the file.
16286: mf=`echo "$mf" | sed -e 's/:.*$//'`
16287: # Check whether this is an Automake generated Makefile or not.
16288: # We used to match only the files named 'Makefile.in', but
16289: # some people rename them; so instead we look at the file content.
16290: # Grep'ing the first line is not enough: some people post-process
16291: # each Makefile.in and add a new line on top of each file to say so.
16292: # Grep'ing the whole file is not good either: AIX grep has a line
16293: # limit of 2048, but all sed's we know have understand at least 4000.
16294: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16295: dirpart=`$as_dirname -- "$mf" ||
16296: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16297: X"$mf" : 'X\(//\)[^/]' \| \
16298: X"$mf" : 'X\(//\)$' \| \
16299: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16300: $as_echo X"$mf" |
16301: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16302: s//\1/
16303: q
16304: }
16305: /^X\(\/\/\)[^/].*/{
16306: s//\1/
16307: q
16308: }
16309: /^X\(\/\/\)$/{
16310: s//\1/
16311: q
16312: }
16313: /^X\(\/\).*/{
16314: s//\1/
16315: q
16316: }
16317: s/.*/./; q'`
16318: else
16319: continue
16320: fi
16321: # Extract the definition of DEPDIR, am__include, and am__quote
16322: # from the Makefile without running 'make'.
16323: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16324: test -z "$DEPDIR" && continue
16325: am__include=`sed -n 's/^am__include = //p' < "$mf"`
16326: test -z "$am__include" && continue
16327: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16328: # Find all dependency output files, they are included files with
16329: # $(DEPDIR) in their names. We invoke sed twice because it is the
16330: # simplest approach to changing $(DEPDIR) to its actual value in the
16331: # expansion.
16332: for file in `sed -n "
16333: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16334: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16335: # Make sure the directory exists.
16336: test -f "$dirpart/$file" && continue
16337: fdir=`$as_dirname -- "$file" ||
16338: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16339: X"$file" : 'X\(//\)[^/]' \| \
16340: X"$file" : 'X\(//\)$' \| \
16341: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16342: $as_echo X"$file" |
16343: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16344: s//\1/
16345: q
16346: }
16347: /^X\(\/\/\)[^/].*/{
16348: s//\1/
16349: q
16350: }
16351: /^X\(\/\/\)$/{
16352: s//\1/
16353: q
16354: }
16355: /^X\(\/\).*/{
16356: s//\1/
16357: q
16358: }
16359: s/.*/./; q'`
16360: as_dir=$dirpart/$fdir; as_fn_mkdir_p
16361: # echo "creating $dirpart/$file"
16362: echo '# dummy' > "$dirpart/$file"
16363: done
16364: done
16365: }
16366: ;;
16367: "libtool":C)
16368:
16369: # See if we are running on zsh, and set the options that allow our
16370: # commands through without removal of \ escapes.
16371: if test -n "${ZSH_VERSION+set}"; then
16372: setopt NO_GLOB_SUBST
16373: fi
16374:
16375: cfgfile=${ofile}T
16376: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16377: $RM "$cfgfile"
16378:
16379: cat <<_LT_EOF >> "$cfgfile"
16380: #! $SHELL
16381: # Generated automatically by $as_me ($PACKAGE) $VERSION
16382: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16383: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16384:
16385: # Provide generalized library-building support services.
16386: # Written by Gordon Matzigkeit, 1996
16387:
16388: # Copyright (C) 2014 Free Software Foundation, Inc.
16389: # This is free software; see the source for copying conditions. There is NO
16390: # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16391:
16392: # GNU Libtool is free software; you can redistribute it and/or modify
16393: # it under the terms of the GNU General Public License as published by
16394: # the Free Software Foundation; either version 2 of of the License, or
16395: # (at your option) any later version.
16396: #
16397: # As a special exception to the GNU General Public License, if you
16398: # distribute this file as part of a program or library that is built
16399: # using GNU Libtool, you may include this file under the same
16400: # distribution terms that you use for the rest of that program.
16401: #
16402: # GNU Libtool is distributed in the hope that it will be useful, but
16403: # WITHOUT ANY WARRANTY; without even the implied warranty of
16404: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16405: # GNU General Public License for more details.
16406: #
16407: # You should have received a copy of the GNU General Public License
16408: # along with this program. If not, see <http://www.gnu.org/licenses/>.
16409:
16410:
16411: # The names of the tagged configurations supported by this script.
16412: available_tags=''
16413:
16414: # Configured defaults for sys_lib_dlsearch_path munging.
16415: : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16416:
16417: # ### BEGIN LIBTOOL CONFIG
16418:
16419: # Which release of libtool.m4 was used?
16420: macro_version=$macro_version
16421: macro_revision=$macro_revision
16422:
16423: # Whether or not to build shared libraries.
16424: build_libtool_libs=$enable_shared
16425:
16426: # Whether or not to build static libraries.
16427: build_old_libs=$enable_static
16428:
16429: # What type of objects to build.
16430: pic_mode=$pic_mode
16431:
16432: # Whether or not to optimize for fast installation.
16433: fast_install=$enable_fast_install
16434:
16435: # Shared archive member basename,for filename based shared library versioning on AIX.
16436: shared_archive_member_spec=$shared_archive_member_spec
16437:
16438: # Shell to use when invoking shell scripts.
16439: SHELL=$lt_SHELL
16440:
16441: # An echo program that protects backslashes.
16442: ECHO=$lt_ECHO
16443:
16444: # The PATH separator for the build system.
16445: PATH_SEPARATOR=$lt_PATH_SEPARATOR
16446:
16447: # The host system.
16448: host_alias=$host_alias
16449: host=$host
16450: host_os=$host_os
16451:
16452: # The build system.
16453: build_alias=$build_alias
16454: build=$build
16455: build_os=$build_os
16456:
16457: # A sed program that does not truncate output.
16458: SED=$lt_SED
16459:
16460: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16461: Xsed="\$SED -e 1s/^X//"
16462:
16463: # A grep program that handles long lines.
16464: GREP=$lt_GREP
16465:
16466: # An ERE matcher.
16467: EGREP=$lt_EGREP
16468:
16469: # A literal string matcher.
16470: FGREP=$lt_FGREP
16471:
16472: # A BSD- or MS-compatible name lister.
16473: NM=$lt_NM
16474:
16475: # Whether we need soft or hard links.
16476: LN_S=$lt_LN_S
16477:
16478: # What is the maximum length of a command?
16479: max_cmd_len=$max_cmd_len
16480:
16481: # Object file suffix (normally "o").
16482: objext=$ac_objext
16483:
16484: # Executable file suffix (normally "").
16485: exeext=$exeext
16486:
16487: # whether the shell understands "unset".
16488: lt_unset=$lt_unset
16489:
16490: # turn spaces into newlines.
16491: SP2NL=$lt_lt_SP2NL
16492:
16493: # turn newlines into spaces.
16494: NL2SP=$lt_lt_NL2SP
16495:
16496: # convert \$build file names to \$host format.
16497: to_host_file_cmd=$lt_cv_to_host_file_cmd
16498:
16499: # convert \$build files to toolchain format.
16500: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16501:
16502: # An object symbol dumper.
16503: OBJDUMP=$lt_OBJDUMP
16504:
16505: # Method to check whether dependent libraries are shared objects.
16506: deplibs_check_method=$lt_deplibs_check_method
16507:
16508: # Command to use when deplibs_check_method = "file_magic".
16509: file_magic_cmd=$lt_file_magic_cmd
16510:
16511: # How to find potential files when deplibs_check_method = "file_magic".
16512: file_magic_glob=$lt_file_magic_glob
16513:
16514: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16515: want_nocaseglob=$lt_want_nocaseglob
16516:
16517: # DLL creation program.
16518: DLLTOOL=$lt_DLLTOOL
16519:
16520: # Command to associate shared and link libraries.
16521: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16522:
16523: # The archiver.
16524: AR=$lt_AR
16525:
16526: # Flags to create an archive.
16527: AR_FLAGS=$lt_AR_FLAGS
16528:
16529: # How to feed a file listing to the archiver.
16530: archiver_list_spec=$lt_archiver_list_spec
16531:
16532: # A symbol stripping program.
16533: STRIP=$lt_STRIP
16534:
16535: # Commands used to install an old-style archive.
16536: RANLIB=$lt_RANLIB
16537: old_postinstall_cmds=$lt_old_postinstall_cmds
16538: old_postuninstall_cmds=$lt_old_postuninstall_cmds
16539:
16540: # Whether to use a lock for old archive extraction.
16541: lock_old_archive_extraction=$lock_old_archive_extraction
16542:
16543: # A C compiler.
16544: LTCC=$lt_CC
16545:
16546: # LTCC compiler flags.
16547: LTCFLAGS=$lt_CFLAGS
16548:
16549: # Take the output of nm and produce a listing of raw symbols and C names.
16550: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16551:
16552: # Transform the output of nm in a proper C declaration.
16553: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16554:
16555: # Transform the output of nm into a list of symbols to manually relocate.
16556: global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16557:
16558: # Transform the output of nm in a C name address pair.
16559: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16560:
16561: # Transform the output of nm in a C name address pair when lib prefix is needed.
16562: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16563:
16564: # The name lister interface.
16565: nm_interface=$lt_lt_cv_nm_interface
16566:
16567: # Specify filename containing input files for \$NM.
16568: nm_file_list_spec=$lt_nm_file_list_spec
16569:
16570: # The root where to search for dependent libraries,and where our libraries should be installed.
16571: lt_sysroot=$lt_sysroot
16572:
16573: # Command to truncate a binary pipe.
16574: lt_truncate_bin=$lt_lt_cv_truncate_bin
16575:
16576: # The name of the directory that contains temporary libtool files.
16577: objdir=$objdir
16578:
16579: # Used to examine libraries when file_magic_cmd begins with "file".
16580: MAGIC_CMD=$MAGIC_CMD
16581:
16582: # Must we lock files when doing compilation?
16583: need_locks=$lt_need_locks
16584:
16585: # Manifest tool.
16586: MANIFEST_TOOL=$lt_MANIFEST_TOOL
16587:
16588: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16589: DSYMUTIL=$lt_DSYMUTIL
16590:
16591: # Tool to change global to local symbols on Mac OS X.
16592: NMEDIT=$lt_NMEDIT
16593:
16594: # Tool to manipulate fat objects and archives on Mac OS X.
16595: LIPO=$lt_LIPO
16596:
16597: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16598: OTOOL=$lt_OTOOL
16599:
16600: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16601: OTOOL64=$lt_OTOOL64
16602:
16603: # Old archive suffix (normally "a").
16604: libext=$libext
16605:
16606: # Shared library suffix (normally ".so").
16607: shrext_cmds=$lt_shrext_cmds
16608:
16609: # The commands to extract the exported symbol list from a shared archive.
16610: extract_expsyms_cmds=$lt_extract_expsyms_cmds
16611:
16612: # Variables whose values should be saved in libtool wrapper scripts and
16613: # restored at link time.
16614: variables_saved_for_relink=$lt_variables_saved_for_relink
16615:
16616: # Do we need the "lib" prefix for modules?
16617: need_lib_prefix=$need_lib_prefix
16618:
16619: # Do we need a version for libraries?
16620: need_version=$need_version
16621:
16622: # Library versioning type.
16623: version_type=$version_type
16624:
16625: # Shared library runtime path variable.
16626: runpath_var=$runpath_var
16627:
16628: # Shared library path variable.
16629: shlibpath_var=$shlibpath_var
16630:
16631: # Is shlibpath searched before the hard-coded library search path?
16632: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16633:
16634: # Format of library name prefix.
16635: libname_spec=$lt_libname_spec
16636:
16637: # List of archive names. First name is the real one, the rest are links.
16638: # The last name is the one that the linker finds with -lNAME
16639: library_names_spec=$lt_library_names_spec
16640:
16641: # The coded name of the library, if different from the real name.
16642: soname_spec=$lt_soname_spec
16643:
16644: # Permission mode override for installation of shared libraries.
16645: install_override_mode=$lt_install_override_mode
16646:
16647: # Command to use after installation of a shared archive.
16648: postinstall_cmds=$lt_postinstall_cmds
16649:
16650: # Command to use after uninstallation of a shared archive.
16651: postuninstall_cmds=$lt_postuninstall_cmds
16652:
16653: # Commands used to finish a libtool library installation in a directory.
16654: finish_cmds=$lt_finish_cmds
16655:
16656: # As "finish_cmds", except a single script fragment to be evaled but
16657: # not shown.
16658: finish_eval=$lt_finish_eval
16659:
16660: # Whether we should hardcode library paths into libraries.
16661: hardcode_into_libs=$hardcode_into_libs
16662:
16663: # Compile-time system search path for libraries.
16664: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16665:
16666: # Detected run-time system search path for libraries.
16667: sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16668:
16669: # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16670: configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16671:
16672: # Whether dlopen is supported.
16673: dlopen_support=$enable_dlopen
16674:
16675: # Whether dlopen of programs is supported.
16676: dlopen_self=$enable_dlopen_self
16677:
16678: # Whether dlopen of statically linked programs is supported.
16679: dlopen_self_static=$enable_dlopen_self_static
16680:
16681: # Commands to strip libraries.
16682: old_striplib=$lt_old_striplib
16683: striplib=$lt_striplib
16684:
16685:
16686: # The linker used to build libraries.
16687: LD=$lt_LD
16688:
16689: # How to create reloadable object files.
16690: reload_flag=$lt_reload_flag
16691: reload_cmds=$lt_reload_cmds
16692:
16693: # Commands used to build an old-style archive.
16694: old_archive_cmds=$lt_old_archive_cmds
16695:
16696: # A language specific compiler.
16697: CC=$lt_compiler
16698:
16699: # Is the compiler the GNU compiler?
16700: with_gcc=$GCC
16701:
16702: # Compiler flag to turn off builtin functions.
16703: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16704:
16705: # Additional compiler flags for building library objects.
16706: pic_flag=$lt_lt_prog_compiler_pic
16707:
16708: # How to pass a linker flag through the compiler.
16709: wl=$lt_lt_prog_compiler_wl
16710:
16711: # Compiler flag to prevent dynamic linking.
16712: link_static_flag=$lt_lt_prog_compiler_static
16713:
16714: # Does compiler simultaneously support -c and -o options?
16715: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16716:
16717: # Whether or not to add -lc for building shared libraries.
16718: build_libtool_need_lc=$archive_cmds_need_lc
16719:
16720: # Whether or not to disallow shared libs when runtime libs are static.
16721: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16722:
16723: # Compiler flag to allow reflexive dlopens.
16724: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16725:
16726: # Compiler flag to generate shared objects directly from archives.
16727: whole_archive_flag_spec=$lt_whole_archive_flag_spec
16728:
16729: # Whether the compiler copes with passing no objects directly.
16730: compiler_needs_object=$lt_compiler_needs_object
16731:
16732: # Create an old-style archive from a shared archive.
16733: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16734:
16735: # Create a temporary old-style archive to link instead of a shared archive.
16736: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16737:
16738: # Commands used to build a shared archive.
16739: archive_cmds=$lt_archive_cmds
16740: archive_expsym_cmds=$lt_archive_expsym_cmds
16741:
16742: # Commands used to build a loadable module if different from building
16743: # a shared archive.
16744: module_cmds=$lt_module_cmds
16745: module_expsym_cmds=$lt_module_expsym_cmds
16746:
16747: # Whether we are building with GNU ld or not.
16748: with_gnu_ld=$lt_with_gnu_ld
16749:
16750: # Flag that allows shared libraries with undefined symbols to be built.
16751: allow_undefined_flag=$lt_allow_undefined_flag
16752:
16753: # Flag that enforces no undefined symbols.
16754: no_undefined_flag=$lt_no_undefined_flag
16755:
16756: # Flag to hardcode \$libdir into a binary during linking.
16757: # This must work even if \$libdir does not exist
16758: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16759:
16760: # Whether we need a single "-rpath" flag with a separated argument.
16761: hardcode_libdir_separator=$lt_hardcode_libdir_separator
16762:
16763: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16764: # DIR into the resulting binary.
16765: hardcode_direct=$hardcode_direct
16766:
16767: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16768: # DIR into the resulting binary and the resulting library dependency is
16769: # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16770: # library is relocated.
16771: hardcode_direct_absolute=$hardcode_direct_absolute
16772:
16773: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16774: # into the resulting binary.
16775: hardcode_minus_L=$hardcode_minus_L
16776:
16777: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16778: # into the resulting binary.
16779: hardcode_shlibpath_var=$hardcode_shlibpath_var
16780:
16781: # Set to "yes" if building a shared library automatically hardcodes DIR
16782: # into the library and all subsequent libraries and executables linked
16783: # against it.
16784: hardcode_automatic=$hardcode_automatic
16785:
16786: # Set to yes if linker adds runtime paths of dependent libraries
16787: # to runtime path list.
16788: inherit_rpath=$inherit_rpath
16789:
16790: # Whether libtool must link a program against all its dependency libraries.
16791: link_all_deplibs=$link_all_deplibs
16792:
16793: # Set to "yes" if exported symbols are required.
16794: always_export_symbols=$always_export_symbols
16795:
16796: # The commands to list exported symbols.
16797: export_symbols_cmds=$lt_export_symbols_cmds
16798:
16799: # Symbols that should not be listed in the preloaded symbols.
16800: exclude_expsyms=$lt_exclude_expsyms
16801:
16802: # Symbols that must always be exported.
16803: include_expsyms=$lt_include_expsyms
16804:
16805: # Commands necessary for linking programs (against libraries) with templates.
16806: prelink_cmds=$lt_prelink_cmds
16807:
16808: # Commands necessary for finishing linking programs.
16809: postlink_cmds=$lt_postlink_cmds
16810:
16811: # Specify filename containing input files.
16812: file_list_spec=$lt_file_list_spec
16813:
16814: # How to hardcode a shared library path into an executable.
16815: hardcode_action=$hardcode_action
16816:
16817: # ### END LIBTOOL CONFIG
16818:
16819: _LT_EOF
16820:
16821: cat <<'_LT_EOF' >> "$cfgfile"
16822:
16823: # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16824:
16825: # func_munge_path_list VARIABLE PATH
16826: # -----------------------------------
16827: # VARIABLE is name of variable containing _space_ separated list of
16828: # directories to be munged by the contents of PATH, which is string
16829: # having a format:
16830: # "DIR[:DIR]:"
16831: # string "DIR[ DIR]" will be prepended to VARIABLE
16832: # ":DIR[:DIR]"
16833: # string "DIR[ DIR]" will be appended to VARIABLE
16834: # "DIRP[:DIRP]::[DIRA:]DIRA"
16835: # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16836: # "DIRA[ DIRA]" will be appended to VARIABLE
16837: # "DIR[:DIR]"
16838: # VARIABLE will be replaced by "DIR[ DIR]"
16839: func_munge_path_list ()
16840: {
16841: case x$2 in
16842: x)
16843: ;;
16844: *:)
16845: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16846: ;;
16847: x:*)
16848: eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16849: ;;
16850: *::*)
16851: eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16852: eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16853: ;;
16854: *)
16855: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16856: ;;
16857: esac
16858: }
16859:
16860:
16861: # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16862: func_cc_basename ()
16863: {
16864: for cc_temp in $*""; do
16865: case $cc_temp in
16866: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16867: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16868: \-*) ;;
16869: *) break;;
16870: esac
16871: done
16872: func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16873: }
16874:
16875:
16876: # ### END FUNCTIONS SHARED WITH CONFIGURE
16877:
16878: _LT_EOF
16879:
16880: case $host_os in
16881: aix3*)
16882: cat <<\_LT_EOF >> "$cfgfile"
16883: # AIX sometimes has problems with the GCC collect2 program. For some
16884: # reason, if we set the COLLECT_NAMES environment variable, the problems
16885: # vanish in a puff of smoke.
16886: if test set != "${COLLECT_NAMES+set}"; then
16887: COLLECT_NAMES=
16888: export COLLECT_NAMES
16889: fi
16890: _LT_EOF
16891: ;;
16892: esac
16893:
16894:
16895: ltmain=$ac_aux_dir/ltmain.sh
16896:
16897:
16898: # We use sed instead of cat because bash on DJGPP gets confused if
16899: # if finds mixed CR/LF and LF-only lines. Since sed operates in
16900: # text mode, it properly converts lines to CR/LF. This bash problem
16901: # is reportedly fixed, but why not run on old versions too?
16902: sed '$q' "$ltmain" >> "$cfgfile" \
16903: || (rm -f "$cfgfile"; exit 1)
16904:
16905: mv -f "$cfgfile" "$ofile" ||
16906: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16907: chmod +x "$ofile"
16908:
16909: ;;
16910:
16911: esac
16912: done # for ac_tag
16913:
16914:
16915: as_fn_exit 0
16916: _ACEOF
16917: ac_clean_files=$ac_clean_files_save
16918:
16919: test $ac_write_fail = 0 ||
16920: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16921:
16922:
16923: # configure is writing to config.log, and then calls config.status.
16924: # config.status does its own redirection, appending to config.log.
16925: # Unfortunately, on DOS this fails, as config.log is still kept open
16926: # by configure, so config.status won't be able to write to it; its
16927: # output is simply discarded. So we exec the FD to /dev/null,
16928: # effectively closing config.log, so it can be properly (re)opened and
16929: # appended to by config.status. When coming back to configure, we
16930: # need to make the FD available again.
16931: if test "$no_create" != yes; then
16932: ac_cs_success=:
16933: ac_config_status_args=
16934: test "$silent" = yes &&
16935: ac_config_status_args="$ac_config_status_args --quiet"
16936: exec 5>/dev/null
16937: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16938: exec 5>>config.log
16939: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16940: # would make configure fail if this is the last instruction.
16941: $ac_cs_success || as_fn_exit 1
16942: fi
16943: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16944: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16945: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16946: fi
16947:
Generated by git2html.