Debian Codegraph @

engine/read_only/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libmarpa 11.0.2.
4 #
5 # Report bugs to <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Marpa>.
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
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || 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 [email protected] and
278 $0: http://rt.cpan.org/NoAuth/Bugs.html?Dist=Marpa about
279 $0: your system, including any error possibly output before
280 $0: this message. Then install a modern shell, or manually
281 $0: run the script under such a shell if you do 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='libmarpa'
592 PACKAGE_TARNAME='libmarpa'
593 PACKAGE_VERSION='11.0.2'
594 PACKAGE_STRING='libmarpa 11.0.2'
595 PACKAGE_BUGREPORT='http://rt.cpan.org/NoAuth/Bugs.html?Dist=Marpa'
596 PACKAGE_URL=''
597
598 ac_unique_file="marpa_ami.h"
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 LIBOBJS
639 MARPA_DEBUG_FLAG
640 MARPA_LIB_MICRO_VERSION
641 MARPA_LIB_MINOR_VERSION
642 MARPA_LIB_MAJOR_VERSION
643 WARNING_CPPFLAGS
644 WARNING_CFLAGS
645 CPP
646 LT_SYS_LIBRARY_PATH
647 OTOOL64
648 OTOOL
649 LIPO
650 NMEDIT
651 DSYMUTIL
652 MANIFEST_TOOL
653 RANLIB
654 ac_ct_AR
655 AR
656 DLLTOOL
657 OBJDUMP
658 LN_S
659 NM
660 ac_ct_DUMPBIN
661 DUMPBIN
662 LD
663 FGREP
664 EGREP
665 GREP
666 SED
667 am__fastdepCC_FALSE
668 am__fastdepCC_TRUE
669 CCDEPMODE
670 am__nodep
671 AMDEPBACKSLASH
672 AMDEP_FALSE
673 AMDEP_TRUE
674 am__include
675 DEPDIR
676 OBJEXT
677 EXEEXT
678 ac_ct_CC
679 CPPFLAGS
680 LDFLAGS
681 CFLAGS
682 CC
683 host_os
684 host_vendor
685 host_cpu
686 host
687 build_os
688 build_vendor
689 build_cpu
690 build
691 LIBTOOL
692 AM_BACKSLASH
693 AM_DEFAULT_VERBOSITY
694 AM_DEFAULT_V
695 AM_V
696 am__untar
697 am__tar
698 AMTAR
699 am__leading_dot
700 SET_MAKE
701 AWK
702 mkdir_p
703 MKDIR_P
704 INSTALL_STRIP_PROGRAM
705 STRIP
706 install_sh
707 MAKEINFO
708 AUTOHEADER
709 AUTOMAKE
710 AUTOCONF
711 ACLOCAL
712 VERSION
713 PACKAGE
714 CYGPATH_W
715 am__isrc
716 INSTALL_DATA
717 INSTALL_SCRIPT
718 INSTALL_PROGRAM
719 MAINT
720 MAINTAINER_MODE_FALSE
721 MAINTAINER_MODE_TRUE
722 target_alias
723 host_alias
724 build_alias
725 LIBS
726 ECHO_T
727 ECHO_N
728 ECHO_C
729 DEFS
730 mandir
731 localedir
732 libdir
733 psdir
734 pdfdir
735 dvidir
736 htmldir
737 infodir
738 docdir
739 oldincludedir
740 includedir
741 runstatedir
742 localstatedir
743 sharedstatedir
744 sysconfdir
745 datadir
746 datarootdir
747 libexecdir
748 sbindir
749 bindir
750 program_transform_name
751 prefix
752 exec_prefix
753 PACKAGE_URL
754 PACKAGE_BUGREPORT
755 PACKAGE_STRING
756 PACKAGE_VERSION
757 PACKAGE_TARNAME
758 PACKAGE_NAME
759 PATH_SEPARATOR
760 SHELL
761 am__quote'
762 ac_subst_files=''
763 ac_user_opts='
764 enable_option_checking
765 enable_maintainer_mode
766 enable_silent_rules
767 enable_shared
768 enable_static
769 with_pic
770 enable_fast_install
771 with_aix_soname
772 enable_dependency_tracking
773 with_gnu_ld
774 with_sysroot
775 enable_libtool_lock
776 '
777 ac_precious_vars='build_alias
778 host_alias
779 target_alias
780 CC
781 CFLAGS
782 LDFLAGS
783 LIBS
784 CPPFLAGS
785 LT_SYS_LIBRARY_PATH
786 CPP
787 MARPA_DEBUG_FLAG'
788
789
790 # Initialize some variables set by options.
791 ac_init_help=
792 ac_init_version=false
793 ac_unrecognized_opts=
794 ac_unrecognized_sep=
795 # The variables have the same names as the options, with
796 # dashes changed to underlines.
797 cache_file=/dev/null
798 exec_prefix=NONE
799 no_create=
800 no_recursion=
801 prefix=NONE
802 program_prefix=NONE
803 program_suffix=NONE
804 program_transform_name=s,x,x,
805 silent=
806 site=
807 srcdir=
808 verbose=
809 x_includes=NONE
810 x_libraries=NONE
811
812 # Installation directory options.
813 # These are left unexpanded so users can "make install exec_prefix=/foo"
814 # and all the variables that are supposed to be based on exec_prefix
815 # by default will actually change.
816 # Use braces instead of parens because sh, perl, etc. also accept them.
817 # (The list follows the same order as the GNU Coding Standards.)
818 bindir='${exec_prefix}/bin'
819 sbindir='${exec_prefix}/sbin'
820 libexecdir='${exec_prefix}/libexec'
821 datarootdir='${prefix}/share'
822 datadir='${datarootdir}'
823 sysconfdir='${prefix}/etc'
824 sharedstatedir='${prefix}/com'
825 localstatedir='${prefix}/var'
826 runstatedir='${localstatedir}/run'
827 includedir='${prefix}/include'
828 oldincludedir='/usr/include'
829 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
830 infodir='${datarootdir}/info'
831 htmldir='${docdir}'
832 dvidir='${docdir}'
833 pdfdir='${docdir}'
834 psdir='${docdir}'
835 libdir='${exec_prefix}/lib'
836 localedir='${datarootdir}/locale'
837 mandir='${datarootdir}/man'
838
839 ac_prev=
840 ac_dashdash=
841 for ac_option
842 do
843 # If the previous option needs an argument, assign it.
844 if test -n "$ac_prev"; then
845 eval $ac_prev=\$ac_option
846 ac_prev=
847 continue
848 fi
849
850 case $ac_option in
851 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
852 *=) ac_optarg= ;;
853 *) ac_optarg=yes ;;
854 esac
855
856 # Accept the important Cygnus configure options, so we can diagnose typos.
857
858 case $ac_dashdash$ac_option in
859 --)
860 ac_dashdash=yes ;;
861
862 -bindir | --bindir | --bindi | --bind | --bin | --bi)
863 ac_prev=bindir ;;
864 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
865 bindir=$ac_optarg ;;
866
867 -build | --build | --buil | --bui | --bu)
868 ac_prev=build_alias ;;
869 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
870 build_alias=$ac_optarg ;;
871
872 -cache-file | --cache-file | --cache-fil | --cache-fi \
873 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
874 ac_prev=cache_file ;;
875 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
876 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
877 cache_file=$ac_optarg ;;
878
879 --config-cache | -C)
880 cache_file=config.cache ;;
881
882 -datadir | --datadir | --datadi | --datad)
883 ac_prev=datadir ;;
884 -datadir=* | --datadir=* | --datadi=* | --datad=*)
885 datadir=$ac_optarg ;;
886
887 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
888 | --dataroo | --dataro | --datar)
889 ac_prev=datarootdir ;;
890 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
891 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
892 datarootdir=$ac_optarg ;;
893
894 -disable-* | --disable-*)
895 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
896 # Reject names that are not valid shell variable names.
897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
898 as_fn_error $? "invalid feature name: $ac_useropt"
899 ac_useropt_orig=$ac_useropt
900 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
901 case $ac_user_opts in
902 *"
903 "enable_$ac_useropt"
904 "*) ;;
905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
906 ac_unrecognized_sep=', ';;
907 esac
908 eval enable_$ac_useropt=no ;;
909
910 -docdir | --docdir | --docdi | --doc | --do)
911 ac_prev=docdir ;;
912 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
913 docdir=$ac_optarg ;;
914
915 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
916 ac_prev=dvidir ;;
917 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
918 dvidir=$ac_optarg ;;
919
920 -enable-* | --enable-*)
921 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
922 # Reject names that are not valid shell variable names.
923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924 as_fn_error $? "invalid feature name: $ac_useropt"
925 ac_useropt_orig=$ac_useropt
926 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
927 case $ac_user_opts in
928 *"
929 "enable_$ac_useropt"
930 "*) ;;
931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
932 ac_unrecognized_sep=', ';;
933 esac
934 eval enable_$ac_useropt=\$ac_optarg ;;
935
936 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
937 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
938 | --exec | --exe | --ex)
939 ac_prev=exec_prefix ;;
940 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
941 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
942 | --exec=* | --exe=* | --ex=*)
943 exec_prefix=$ac_optarg ;;
944
945 -gas | --gas | --ga | --g)
946 # Obsolete; use --with-gas.
947 with_gas=yes ;;
948
949 -help | --help | --hel | --he | -h)
950 ac_init_help=long ;;
951 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
952 ac_init_help=recursive ;;
953 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
954 ac_init_help=short ;;
955
956 -host | --host | --hos | --ho)
957 ac_prev=host_alias ;;
958 -host=* | --host=* | --hos=* | --ho=*)
959 host_alias=$ac_optarg ;;
960
961 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
962 ac_prev=htmldir ;;
963 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
964 | --ht=*)
965 htmldir=$ac_optarg ;;
966
967 -includedir | --includedir | --includedi | --included | --include \
968 | --includ | --inclu | --incl | --inc)
969 ac_prev=includedir ;;
970 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
971 | --includ=* | --inclu=* | --incl=* | --inc=*)
972 includedir=$ac_optarg ;;
973
974 -infodir | --infodir | --infodi | --infod | --info | --inf)
975 ac_prev=infodir ;;
976 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
977 infodir=$ac_optarg ;;
978
979 -libdir | --libdir | --libdi | --libd)
980 ac_prev=libdir ;;
981 -libdir=* | --libdir=* | --libdi=* | --libd=*)
982 libdir=$ac_optarg ;;
983
984 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
985 | --libexe | --libex | --libe)
986 ac_prev=libexecdir ;;
987 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
988 | --libexe=* | --libex=* | --libe=*)
989 libexecdir=$ac_optarg ;;
990
991 -localedir | --localedir | --localedi | --localed | --locale)
992 ac_prev=localedir ;;
993 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
994 localedir=$ac_optarg ;;
995
996 -localstatedir | --localstatedir | --localstatedi | --localstated \
997 | --localstate | --localstat | --localsta | --localst | --locals)
998 ac_prev=localstatedir ;;
999 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1000 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1001 localstatedir=$ac_optarg ;;
1002
1003 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1004 ac_prev=mandir ;;
1005 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1006 mandir=$ac_optarg ;;
1007
1008 -nfp | --nfp | --nf)
1009 # Obsolete; use --without-fp.
1010 with_fp=no ;;
1011
1012 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1013 | --no-cr | --no-c | -n)
1014 no_create=yes ;;
1015
1016 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1017 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1018 no_recursion=yes ;;
1019
1020 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1021 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1022 | --oldin | --oldi | --old | --ol | --o)
1023 ac_prev=oldincludedir ;;
1024 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1025 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1026 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1027 oldincludedir=$ac_optarg ;;
1028
1029 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1030 ac_prev=prefix ;;
1031 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1032 prefix=$ac_optarg ;;
1033
1034 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1035 | --program-pre | --program-pr | --program-p)
1036 ac_prev=program_prefix ;;
1037 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1038 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1039 program_prefix=$ac_optarg ;;
1040
1041 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1042 | --program-suf | --program-su | --program-s)
1043 ac_prev=program_suffix ;;
1044 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1045 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1046 program_suffix=$ac_optarg ;;
1047
1048 -program-transform-name | --program-transform-name \
1049 | --program-transform-nam | --program-transform-na \
1050 | --program-transform-n | --program-transform- \
1051 | --program-transform | --program-transfor \
1052 | --program-transfo | --program-transf \
1053 | --program-trans | --program-tran \
1054 | --progr-tra | --program-tr | --program-t)
1055 ac_prev=program_transform_name ;;
1056 -program-transform-name=* | --program-transform-name=* \
1057 | --program-transform-nam=* | --program-transform-na=* \
1058 | --program-transform-n=* | --program-transform-=* \
1059 | --program-transform=* | --program-transfor=* \
1060 | --program-transfo=* | --program-transf=* \
1061 | --program-trans=* | --program-tran=* \
1062 | --progr-tra=* | --program-tr=* | --program-t=*)
1063 program_transform_name=$ac_optarg ;;
1064
1065 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1066 ac_prev=pdfdir ;;
1067 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1068 pdfdir=$ac_optarg ;;
1069
1070 -psdir | --psdir | --psdi | --psd | --ps)
1071 ac_prev=psdir ;;
1072 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1073 psdir=$ac_optarg ;;
1074
1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 | -silent | --silent | --silen | --sile | --sil)
1077 silent=yes ;;
1078
1079 -runstatedir | --runstatedir | --runstatedi | --runstated \
1080 | --runstate | --runstat | --runsta | --runst | --runs \
1081 | --run | --ru | --r)
1082 ac_prev=runstatedir ;;
1083 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1084 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1085 | --run=* | --ru=* | --r=*)
1086 runstatedir=$ac_optarg ;;
1087
1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089 ac_prev=sbindir ;;
1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091 | --sbi=* | --sb=*)
1092 sbindir=$ac_optarg ;;
1093
1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096 | --sharedst | --shareds | --shared | --share | --shar \
1097 | --sha | --sh)
1098 ac_prev=sharedstatedir ;;
1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102 | --sha=* | --sh=*)
1103 sharedstatedir=$ac_optarg ;;
1104
1105 -site | --site | --sit)
1106 ac_prev=site ;;
1107 -site=* | --site=* | --sit=*)
1108 site=$ac_optarg ;;
1109
1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111 ac_prev=srcdir ;;
1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113 srcdir=$ac_optarg ;;
1114
1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116 | --syscon | --sysco | --sysc | --sys | --sy)
1117 ac_prev=sysconfdir ;;
1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120 sysconfdir=$ac_optarg ;;
1121
1122 -target | --target | --targe | --targ | --tar | --ta | --t)
1123 ac_prev=target_alias ;;
1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125 target_alias=$ac_optarg ;;
1126
1127 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1128 verbose=yes ;;
1129
1130 -version | --version | --versio | --versi | --vers | -V)
1131 ac_init_version=: ;;
1132
1133 -with-* | --with-*)
1134 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137 as_fn_error $? "invalid package name: $ac_useropt"
1138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1141 *"
1142 "with_$ac_useropt"
1143 "*) ;;
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
1146 esac
1147 eval with_$ac_useropt=\$ac_optarg ;;
1148
1149 -without-* | --without-*)
1150 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error $? "invalid package name: $ac_useropt"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1157 *"
1158 "with_$ac_useropt"
1159 "*) ;;
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1162 esac
1163 eval with_$ac_useropt=no ;;
1164
1165 --x)
1166 # Obsolete; use --with-x.
1167 with_x=yes ;;
1168
1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170 | --x-incl | --x-inc | --x-in | --x-i)
1171 ac_prev=x_includes ;;
1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174 x_includes=$ac_optarg ;;
1175
1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178 ac_prev=x_libraries ;;
1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181 x_libraries=$ac_optarg ;;
1182
1183 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1184 Try \`$0 --help' for more information"
1185 ;;
1186
1187 *=*)
1188 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1189 # Reject names that are not valid shell variable names.
1190 case $ac_envvar in #(
1191 '' | [0-9]* | *[!_$as_cr_alnum]* )
1192 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1193 esac
1194 eval $ac_envvar=\$ac_optarg
1195 export $ac_envvar ;;
1196
1197 *)
1198 # FIXME: should be removed in autoconf 3.0.
1199 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1202 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1203 ;;
1204
1205 esac
1206 done
1207
1208 if test -n "$ac_prev"; then
1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1210 as_fn_error $? "missing argument to $ac_option"
1211 fi
1212
1213 if test -n "$ac_unrecognized_opts"; then
1214 case $enable_option_checking in
1215 no) ;;
1216 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1217 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1218 esac
1219 fi
1220
1221 # Check all directory arguments for consistency.
1222 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1223 datadir sysconfdir sharedstatedir localstatedir includedir \
1224 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1225 libdir localedir mandir runstatedir
1226 do
1227 eval ac_val=\$$ac_var
1228 # Remove trailing slashes.
1229 case $ac_val in
1230 */ )
1231 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1232 eval $ac_var=\$ac_val;;
1233 esac
1234 # Be sure to have absolute directory names.
1235 case $ac_val in
1236 [\\/$]* | ?:[\\/]* ) continue;;
1237 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1238 esac
1239 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1240 done
1241
1242 # There might be people who depend on the old broken behavior: `$host'
1243 # used to hold the argument of --host etc.
1244 # FIXME: To remove some day.
1245 build=$build_alias
1246 host=$host_alias
1247 target=$target_alias
1248
1249 # FIXME: To remove some day.
1250 if test "x$host_alias" != x; then
1251 if test "x$build_alias" = x; then
1252 cross_compiling=maybe
1253 elif test "x$build_alias" != "x$host_alias"; then
1254 cross_compiling=yes
1255 fi
1256 fi
1257
1258 ac_tool_prefix=
1259 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1260
1261 test "$silent" = yes && exec 6>/dev/null
1262
1263
1264 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1265 ac_ls_di=`ls -di .` &&
1266 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1267 as_fn_error $? "working directory cannot be determined"
1268 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1269 as_fn_error $? "pwd does not report name of working directory"
1270
1271
1272 # Find the source files, if location was not specified.
1273 if test -z "$srcdir"; then
1274 ac_srcdir_defaulted=yes
1275 # Try the directory containing this script, then the parent directory.
1276 ac_confdir=`$as_dirname -- "$as_myself" ||
1277 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1278 X"$as_myself" : 'X\(//\)[^/]' \| \
1279 X"$as_myself" : 'X\(//\)$' \| \
1280 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1281 $as_echo X"$as_myself" |
1282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\/\)[^/].*/{
1287 s//\1/
1288 q
1289 }
1290 /^X\(\/\/\)$/{
1291 s//\1/
1292 q
1293 }
1294 /^X\(\/\).*/{
1295 s//\1/
1296 q
1297 }
1298 s/.*/./; q'`
1299 srcdir=$ac_confdir
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301 srcdir=..
1302 fi
1303 else
1304 ac_srcdir_defaulted=no
1305 fi
1306 if test ! -r "$srcdir/$ac_unique_file"; then
1307 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1308 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1309 fi
1310 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1311 ac_abs_confdir=`(
1312 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1313 pwd)`
1314 # When building in place, set srcdir=.
1315 if test "$ac_abs_confdir" = "$ac_pwd"; then
1316 srcdir=.
1317 fi
1318 # Remove unnecessary trailing slashes from srcdir.
1319 # Double slashes in file names in object file debugging info
1320 # mess up M-x gdb in Emacs.
1321 case $srcdir in
1322 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1323 esac
1324 for ac_var in $ac_precious_vars; do
1325 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_env_${ac_var}_value=\$${ac_var}
1327 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1329 done
1330
1331 #
1332 # Report the --help message.
1333 #
1334 if test "$ac_init_help" = "long"; then
1335 # Omit some internal or obsolete options to make the list less imposing.
1336 # This message is too long to be a string in the A/UX 3.1 sh.
1337 cat <<_ACEOF
1338 \`configure' configures libmarpa 11.0.2 to adapt to many kinds of systems.
1339
1340 Usage: $0 [OPTION]... [VAR=VALUE]...
1341
1342 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1343 VAR=VALUE. See below for descriptions of some of the useful variables.
1344
1345 Defaults for the options are specified in brackets.
1346
1347 Configuration:
1348 -h, --help display this help and exit
1349 --help=short display options specific to this package
1350 --help=recursive display the short help of all the included packages
1351 -V, --version display version information and exit
1352 -q, --quiet, --silent do not print \`checking ...' messages
1353 --cache-file=FILE cache test results in FILE [disabled]
1354 -C, --config-cache alias for \`--cache-file=config.cache'
1355 -n, --no-create do not create output files
1356 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1357
1358 Installation directories:
1359 --prefix=PREFIX install architecture-independent files in PREFIX
1360 [$ac_default_prefix]
1361 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1362 [PREFIX]
1363
1364 By default, \`make install' will install all the files in
1365 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1366 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1367 for instance \`--prefix=\$HOME'.
1368
1369 For better control, use the options below.
1370
1371 Fine tuning of the installation directories:
1372 --bindir=DIR user executables [EPREFIX/bin]
1373 --sbindir=DIR system admin executables [EPREFIX/sbin]
1374 --libexecdir=DIR program executables [EPREFIX/libexec]
1375 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1376 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1377 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1378 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1379 --libdir=DIR object code libraries [EPREFIX/lib]
1380 --includedir=DIR C header files [PREFIX/include]
1381 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1382 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1383 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1384 --infodir=DIR info documentation [DATAROOTDIR/info]
1385 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1386 --mandir=DIR man documentation [DATAROOTDIR/man]
1387 --docdir=DIR documentation root [DATAROOTDIR/doc/libmarpa]
1388 --htmldir=DIR html documentation [DOCDIR]
1389 --dvidir=DIR dvi documentation [DOCDIR]
1390 --pdfdir=DIR pdf documentation [DOCDIR]
1391 --psdir=DIR ps documentation [DOCDIR]
1392 _ACEOF
1393
1394 cat <<\_ACEOF
1395
1396 Program names:
1397 --program-prefix=PREFIX prepend PREFIX to installed program names
1398 --program-suffix=SUFFIX append SUFFIX to installed program names
1399 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1400
1401 System types:
1402 --build=BUILD configure for building on BUILD [guessed]
1403 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1404 _ACEOF
1405 fi
1406
1407 if test -n "$ac_init_help"; then
1408 case $ac_init_help in
1409 short | recursive ) echo "Configuration of libmarpa 11.0.2:";;
1410 esac
1411 cat <<\_ACEOF
1412
1413 Optional Features:
1414 --disable-option-checking ignore unrecognized --enable/--with options
1415 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1416 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1417 --disable-maintainer-mode
1418 disable make rules and dependencies not useful (and
1419 sometimes confusing) to the casual installer
1420 --enable-silent-rules less verbose build output (undo: "make V=1")
1421 --disable-silent-rules verbose build output (undo: "make V=0")
1422 --enable-shared[=PKGS] build shared libraries [default=yes]
1423 --enable-static[=PKGS] build static libraries [default=yes]
1424 --enable-fast-install[=PKGS]
1425 optimize for fast installation [default=yes]
1426 --enable-dependency-tracking
1427 do not reject slow dependency extractors
1428 --disable-dependency-tracking
1429 speeds up one-time build
1430 --disable-libtool-lock avoid locking (might break parallel builds)
1431
1432 Optional Packages:
1433 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1434 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1435 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1436 both]
1437 --with-aix-soname=aix|svr4|both
1438 shared library versioning (aka "SONAME") variant to
1439 provide on AIX, [default=aix].
1440 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1441 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1442 compiler's sysroot if not specified).
1443
1444 Some influential environment variables:
1445 CC C compiler command
1446 CFLAGS C compiler flags
1447 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1448 nonstandard directory <lib dir>
1449 LIBS libraries to pass to the linker, e.g. -l<library>
1450 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1451 you have headers in a nonstandard directory <include dir>
1452 LT_SYS_LIBRARY_PATH
1453 User-defined run-time library search path.
1454 CPP C preprocessor
1455 MARPA_DEBUG_FLAG
1456 Marpa debugging
1457
1458 Use these variables to override the choices made by `configure' or to help
1459 it to find libraries and programs with nonstandard names/locations.
1460
1461 Report bugs to <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Marpa>.
1462 _ACEOF
1463 ac_status=$?
1464 fi
1465
1466 if test "$ac_init_help" = "recursive"; then
1467 # If there are subdirs, report their specific --help.
1468 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1469 test -d "$ac_dir" ||
1470 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1471 continue
1472 ac_builddir=.
1473
1474 case "$ac_dir" in
1475 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476 *)
1477 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1478 # A ".." for each directory in $ac_dir_suffix.
1479 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1480 case $ac_top_builddir_sub in
1481 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1483 esac ;;
1484 esac
1485 ac_abs_top_builddir=$ac_pwd
1486 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1487 # for backward compatibility:
1488 ac_top_builddir=$ac_top_build_prefix
1489
1490 case $srcdir in
1491 .) # We are building in place.
1492 ac_srcdir=.
1493 ac_top_srcdir=$ac_top_builddir_sub
1494 ac_abs_top_srcdir=$ac_pwd ;;
1495 [\\/]* | ?:[\\/]* ) # Absolute name.
1496 ac_srcdir=$srcdir$ac_dir_suffix;
1497 ac_top_srcdir=$srcdir
1498 ac_abs_top_srcdir=$srcdir ;;
1499 *) # Relative name.
1500 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1501 ac_top_srcdir=$ac_top_build_prefix$srcdir
1502 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1503 esac
1504 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1505
1506 cd "$ac_dir" || { ac_status=$?; continue; }
1507 # Check for guested configure.
1508 if test -f "$ac_srcdir/configure.gnu"; then
1509 echo &&
1510 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1511 elif test -f "$ac_srcdir/configure"; then
1512 echo &&
1513 $SHELL "$ac_srcdir/configure" --help=recursive
1514 else
1515 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1516 fi || ac_status=$?
1517 cd "$ac_pwd" || { ac_status=$?; break; }
1518 done
1519 fi
1520
1521 test -n "$ac_init_help" && exit $ac_status
1522 if $ac_init_version; then
1523 cat <<\_ACEOF
1524 libmarpa configure 11.0.2
1525 generated by GNU Autoconf 2.69
1526
1527 Copyright (C) 2012 Free Software Foundation, Inc.
1528 This configure script is free software; the Free Software Foundation
1529 gives unlimited permission to copy, distribute and modify it.
1530 _ACEOF
1531 exit
1532 fi
1533
1534 ## ------------------------ ##
1535 ## Autoconf initialization. ##
1536 ## ------------------------ ##
1537
1538 # ac_fn_c_try_compile LINENO
1539 # --------------------------
1540 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1541 ac_fn_c_try_compile ()
1542 {
1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544 rm -f conftest.$ac_objext
1545 if { { ac_try="$ac_compile"
1546 case "(($ac_try" in
1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548 *) ac_try_echo=$ac_try;;
1549 esac
1550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551 $as_echo "$ac_try_echo"; } >&5
1552 (eval "$ac_compile") 2>conftest.err
1553 ac_status=$?
1554 if test -s conftest.err; then
1555 grep -v '^ *+' conftest.err >conftest.er1
1556 cat conftest.er1 >&5
1557 mv -f conftest.er1 conftest.err
1558 fi
1559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1560 test $ac_status = 0; } && {
1561 test -z "$ac_c_werror_flag" ||
1562 test ! -s conftest.err
1563 } && test -s conftest.$ac_objext; then :
1564 ac_retval=0
1565 else
1566 $as_echo "$as_me: failed program was:" >&5
1567 sed 's/^/| /' conftest.$ac_ext >&5
1568
1569 ac_retval=1
1570 fi
1571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1572 as_fn_set_status $ac_retval
1573
1574 } # ac_fn_c_try_compile
1575
1576 # ac_fn_c_try_link LINENO
1577 # -----------------------
1578 # Try to link conftest.$ac_ext, and return whether this succeeded.
1579 ac_fn_c_try_link ()
1580 {
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 rm -f conftest.$ac_objext conftest$ac_exeext
1583 if { { ac_try="$ac_link"
1584 case "(($ac_try" in
1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586 *) ac_try_echo=$ac_try;;
1587 esac
1588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589 $as_echo "$ac_try_echo"; } >&5
1590 (eval "$ac_link") 2>conftest.err
1591 ac_status=$?
1592 if test -s conftest.err; then
1593 grep -v '^ *+' conftest.err >conftest.er1
1594 cat conftest.er1 >&5
1595 mv -f conftest.er1 conftest.err
1596 fi
1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598 test $ac_status = 0; } && {
1599 test -z "$ac_c_werror_flag" ||
1600 test ! -s conftest.err
1601 } && test -s conftest$ac_exeext && {
1602 test "$cross_compiling" = yes ||
1603 test -x conftest$ac_exeext
1604 }; then :
1605 ac_retval=0
1606 else
1607 $as_echo "$as_me: failed program was:" >&5
1608 sed 's/^/| /' conftest.$ac_ext >&5
1609
1610 ac_retval=1
1611 fi
1612 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1613 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1614 # interfere with the next link command; also delete a directory that is
1615 # left behind by Apple's compiler. We do this before executing the actions.
1616 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618 as_fn_set_status $ac_retval
1619
1620 } # ac_fn_c_try_link
1621
1622 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1623 # -------------------------------------------------------
1624 # Tests whether HEADER exists and can be compiled using the include files in
1625 # INCLUDES, setting the cache variable VAR accordingly.
1626 ac_fn_c_check_header_compile ()
1627 {
1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1630 $as_echo_n "checking for $2... " >&6; }
1631 if eval \${$3+:} false; then :
1632 $as_echo_n "(cached) " >&6
1633 else
1634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1635 /* end confdefs.h. */
1636 $4
1637 #include <$2>
1638 _ACEOF
1639 if ac_fn_c_try_compile "$LINENO"; then :
1640 eval "$3=yes"
1641 else
1642 eval "$3=no"
1643 fi
1644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1645 fi
1646 eval ac_res=\$$3
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1648 $as_echo "$ac_res" >&6; }
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650
1651 } # ac_fn_c_check_header_compile
1652
1653 # ac_fn_c_try_cpp LINENO
1654 # ----------------------
1655 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1656 ac_fn_c_try_cpp ()
1657 {
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 if { { ac_try="$ac_cpp conftest.$ac_ext"
1660 case "(($ac_try" in
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1663 esac
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1667 ac_status=$?
1668 if test -s conftest.err; then
1669 grep -v '^ *+' conftest.err >conftest.er1
1670 cat conftest.er1 >&5
1671 mv -f conftest.er1 conftest.err
1672 fi
1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; } > conftest.i && {
1675 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1676 test ! -s conftest.err
1677 }; then :
1678 ac_retval=0
1679 else
1680 $as_echo "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1682
1683 ac_retval=1
1684 fi
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686 as_fn_set_status $ac_retval
1687
1688 } # ac_fn_c_try_cpp
1689
1690 # ac_fn_c_try_run LINENO
1691 # ----------------------
1692 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1693 # that executables *can* be run.
1694 ac_fn_c_try_run ()
1695 {
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 if { { ac_try="$ac_link"
1698 case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_link") 2>&5
1705 ac_status=$?
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1708 { { case "(($ac_try" in
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1711 esac
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_try") 2>&5
1715 ac_status=$?
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; }; }; then :
1718 ac_retval=0
1719 else
1720 $as_echo "$as_me: program exited with status $ac_status" >&5
1721 $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1723
1724 ac_retval=$ac_status
1725 fi
1726 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728 as_fn_set_status $ac_retval
1729
1730 } # ac_fn_c_try_run
1731
1732 # ac_fn_c_check_func LINENO FUNC VAR
1733 # ----------------------------------
1734 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1735 ac_fn_c_check_func ()
1736 {
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if eval \${$3+:} false; then :
1741 $as_echo_n "(cached) " >&6
1742 else
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1745 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1747 #define $2 innocuous_$2
1748
1749 /* System header to define __stub macros and hopefully few prototypes,
1750 which can conflict with char $2 (); below.
1751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1752 <limits.h> exists even on freestanding compilers. */
1753
1754 #ifdef __STDC__
1755 # include <limits.h>
1756 #else
1757 # include <assert.h>
1758 #endif
1759
1760 #undef $2
1761
1762 /* Override any GCC internal prototype to avoid an error.
1763 Use char because int might match the return type of a GCC
1764 builtin and then its argument prototype would still apply. */
1765 #ifdef __cplusplus
1766 extern "C"
1767 #endif
1768 char $2 ();
1769 /* The GNU C library defines this for functions which it implements
1770 to always fail with ENOSYS. Some functions are actually named
1771 something starting with __ and the normal name is an alias. */
1772 #if defined __stub_$2 || defined __stub___$2
1773 choke me
1774 #endif
1775
1776 int
1777 main ()
1778 {
1779 return $2 ();
1780 ;
1781 return 0;
1782 }
1783 _ACEOF
1784 if ac_fn_c_try_link "$LINENO"; then :
1785 eval "$3=yes"
1786 else
1787 eval "$3=no"
1788 fi
1789 rm -f core conftest.err conftest.$ac_objext \
1790 conftest$ac_exeext conftest.$ac_ext
1791 fi
1792 eval ac_res=\$$3
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794 $as_echo "$ac_res" >&6; }
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796
1797 } # ac_fn_c_check_func
1798
1799 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1800 # -------------------------------------------------------
1801 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1802 # the include files in INCLUDES and setting the cache variable VAR
1803 # accordingly.
1804 ac_fn_c_check_header_mongrel ()
1805 {
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 if eval \${$3+:} false; then :
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809 $as_echo_n "checking for $2... " >&6; }
1810 if eval \${$3+:} false; then :
1811 $as_echo_n "(cached) " >&6
1812 fi
1813 eval ac_res=\$$3
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815 $as_echo "$ac_res" >&6; }
1816 else
1817 # Is the header compilable?
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1819 $as_echo_n "checking $2 usability... " >&6; }
1820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821 /* end confdefs.h. */
1822 $4
1823 #include <$2>
1824 _ACEOF
1825 if ac_fn_c_try_compile "$LINENO"; then :
1826 ac_header_compiler=yes
1827 else
1828 ac_header_compiler=no
1829 fi
1830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1832 $as_echo "$ac_header_compiler" >&6; }
1833
1834 # Is the header present?
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1836 $as_echo_n "checking $2 presence... " >&6; }
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1839 #include <$2>
1840 _ACEOF
1841 if ac_fn_c_try_cpp "$LINENO"; then :
1842 ac_header_preproc=yes
1843 else
1844 ac_header_preproc=no
1845 fi
1846 rm -f conftest.err conftest.i conftest.$ac_ext
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1848 $as_echo "$ac_header_preproc" >&6; }
1849
1850 # So? What about this header?
1851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1852 yes:no: )
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1854 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1856 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1857 ;;
1858 no:yes:* )
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1860 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1862 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1864 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1866 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1868 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1869 ( $as_echo "## ------------------------------------------------------------- ##
1870 ## Report this to http://rt.cpan.org/NoAuth/Bugs.html?Dist=Marpa ##
1871 ## ------------------------------------------------------------- ##"
1872 ) | sed "s/^/$as_me: WARNING: /" >&2
1873 ;;
1874 esac
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1876 $as_echo_n "checking for $2... " >&6; }
1877 if eval \${$3+:} false; then :
1878 $as_echo_n "(cached) " >&6
1879 else
1880 eval "$3=\$ac_header_compiler"
1881 fi
1882 eval ac_res=\$$3
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1884 $as_echo "$ac_res" >&6; }
1885 fi
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887
1888 } # ac_fn_c_check_header_mongrel
1889
1890 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1891 # -------------------------------------------
1892 # Tests whether TYPE exists after having included INCLUDES, setting cache
1893 # variable VAR accordingly.
1894 ac_fn_c_check_type ()
1895 {
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898 $as_echo_n "checking for $2... " >&6; }
1899 if eval \${$3+:} false; then :
1900 $as_echo_n "(cached) " >&6
1901 else
1902 eval "$3=no"
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1905 $4
1906 int
1907 main ()
1908 {
1909 if (sizeof ($2))
1910 return 0;
1911 ;
1912 return 0;
1913 }
1914 _ACEOF
1915 if ac_fn_c_try_compile "$LINENO"; then :
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h. */
1918 $4
1919 int
1920 main ()
1921 {
1922 if (sizeof (($2)))
1923 return 0;
1924 ;
1925 return 0;
1926 }
1927 _ACEOF
1928 if ac_fn_c_try_compile "$LINENO"; then :
1929
1930 else
1931 eval "$3=yes"
1932 fi
1933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1934 fi
1935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936 fi
1937 eval ac_res=\$$3
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939 $as_echo "$ac_res" >&6; }
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941
1942 } # ac_fn_c_check_type
1943
1944 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1945 # --------------------------------------------
1946 # Tries to find the compile-time value of EXPR in a program that includes
1947 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1948 # computed
1949 ac_fn_c_compute_int ()
1950 {
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 if test "$cross_compiling" = yes; then
1953 # Depending upon the size, compute the lo and hi bounds.
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h. */
1956 $4
1957 int
1958 main ()
1959 {
1960 static int test_array [1 - 2 * !(($2) >= 0)];
1961 test_array [0] = 0;
1962 return test_array [0];
1963
1964 ;
1965 return 0;
1966 }
1967 _ACEOF
1968 if ac_fn_c_try_compile "$LINENO"; then :
1969 ac_lo=0 ac_mid=0
1970 while :; do
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h. */
1973 $4
1974 int
1975 main ()
1976 {
1977 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1978 test_array [0] = 0;
1979 return test_array [0];
1980
1981 ;
1982 return 0;
1983 }
1984 _ACEOF
1985 if ac_fn_c_try_compile "$LINENO"; then :
1986 ac_hi=$ac_mid; break
1987 else
1988 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1989 if test $ac_lo -le $ac_mid; then
1990 ac_lo= ac_hi=
1991 break
1992 fi
1993 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1994 fi
1995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996 done
1997 else
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h. */
2000 $4
2001 int
2002 main ()
2003 {
2004 static int test_array [1 - 2 * !(($2) < 0)];
2005 test_array [0] = 0;
2006 return test_array [0];
2007
2008 ;
2009 return 0;
2010 }
2011 _ACEOF
2012 if ac_fn_c_try_compile "$LINENO"; then :
2013 ac_hi=-1 ac_mid=-1
2014 while :; do
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h. */
2017 $4
2018 int
2019 main ()
2020 {
2021 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2022 test_array [0] = 0;
2023 return test_array [0];
2024
2025 ;
2026 return 0;
2027 }
2028 _ACEOF
2029 if ac_fn_c_try_compile "$LINENO"; then :
2030 ac_lo=$ac_mid; break
2031 else
2032 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2033 if test $ac_mid -le $ac_hi; then
2034 ac_lo= ac_hi=
2035 break
2036 fi
2037 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2038 fi
2039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2040 done
2041 else
2042 ac_lo= ac_hi=
2043 fi
2044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045 fi
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 # Binary search between lo and hi bounds.
2048 while test "x$ac_lo" != "x$ac_hi"; do
2049 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h. */
2052 $4
2053 int
2054 main ()
2055 {
2056 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2057 test_array [0] = 0;
2058 return test_array [0];
2059
2060 ;
2061 return 0;
2062 }
2063 _ACEOF
2064 if ac_fn_c_try_compile "$LINENO"; then :
2065 ac_hi=$ac_mid
2066 else
2067 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2068 fi
2069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070 done
2071 case $ac_lo in #((
2072 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2073 '') ac_retval=1 ;;
2074 esac
2075 else
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2078 $4
2079 static long int longval () { return $2; }
2080 static unsigned long int ulongval () { return $2; }
2081 #include <stdio.h>
2082 #include <stdlib.h>
2083 int
2084 main ()
2085 {
2086
2087 FILE *f = fopen ("conftest.val", "w");
2088 if (! f)
2089 return 1;
2090 if (($2) < 0)
2091 {
2092 long int i = longval ();
2093 if (i != ($2))
2094 return 1;
2095 fprintf (f, "%ld", i);
2096 }
2097 else
2098 {
2099 unsigned long int i = ulongval ();
2100 if (i != ($2))
2101 return 1;
2102 fprintf (f, "%lu", i);
2103 }
2104 /* Do not output a trailing newline, as this causes \r\n confusion
2105 on some platforms. */
2106 return ferror (f) || fclose (f) != 0;
2107
2108 ;
2109 return 0;
2110 }
2111 _ACEOF
2112 if ac_fn_c_try_run "$LINENO"; then :
2113 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2114 else
2115 ac_retval=1
2116 fi
2117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2118 conftest.$ac_objext conftest.beam conftest.$ac_ext
2119 rm -f conftest.val
2120
2121 fi
2122 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2123 as_fn_set_status $ac_retval
2124
2125 } # ac_fn_c_compute_int
2126 cat >config.log <<_ACEOF
2127 This file contains any messages produced by compilers while
2128 running configure, to aid debugging if configure makes a mistake.
2129
2130 It was created by libmarpa $as_me 11.0.2, which was
2131 generated by GNU Autoconf 2.69. Invocation command line was
2132
2133 $ $0 $@
2134
2135 _ACEOF
2136 exec 5>>config.log
2137 {
2138 cat <<_ASUNAME
2139 ## --------- ##
2140 ## Platform. ##
2141 ## --------- ##
2142
2143 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2144 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2145 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2146 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2147 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2148
2149 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2150 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2151
2152 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2153 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2154 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2155 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2156 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2157 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2158 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2159
2160 _ASUNAME
2161
2162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163 for as_dir in $PATH
2164 do
2165 IFS=$as_save_IFS
2166 test -z "$as_dir" && as_dir=.
2167 $as_echo "PATH: $as_dir"
2168 done
2169 IFS=$as_save_IFS
2170
2171 } >&5
2172
2173 cat >&5 <<_ACEOF
2174
2175
2176 ## ----------- ##
2177 ## Core tests. ##
2178 ## ----------- ##
2179
2180 _ACEOF
2181
2182
2183 # Keep a trace of the command line.
2184 # Strip out --no-create and --no-recursion so they do not pile up.
2185 # Strip out --silent because we don't want to record it for future runs.
2186 # Also quote any args containing shell meta-characters.
2187 # Make two passes to allow for proper duplicate-argument suppression.
2188 ac_configure_args=
2189 ac_configure_args0=
2190 ac_configure_args1=
2191 ac_must_keep_next=false
2192 for ac_pass in 1 2
2193 do
2194 for ac_arg
2195 do
2196 case $ac_arg in
2197 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2198 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2199 | -silent | --silent | --silen | --sile | --sil)
2200 continue ;;
2201 *\'*)
2202 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2203 esac
2204 case $ac_pass in
2205 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2206 2)
2207 as_fn_append ac_configure_args1 " '$ac_arg'"
2208 if test $ac_must_keep_next = true; then
2209 ac_must_keep_next=false # Got value, back to normal.
2210 else
2211 case $ac_arg in
2212 *=* | --config-cache | -C | -disable-* | --disable-* \
2213 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2214 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2215 | -with-* | --with-* | -without-* | --without-* | --x)
2216 case "$ac_configure_args0 " in
2217 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2218 esac
2219 ;;
2220 -* ) ac_must_keep_next=true ;;
2221 esac
2222 fi
2223 as_fn_append ac_configure_args " '$ac_arg'"
2224 ;;
2225 esac
2226 done
2227 done
2228 { ac_configure_args0=; unset ac_configure_args0;}
2229 { ac_configure_args1=; unset ac_configure_args1;}
2230
2231 # When interrupted or exit'd, cleanup temporary files, and complete
2232 # config.log. We remove comments because anyway the quotes in there
2233 # would cause problems or look ugly.
2234 # WARNING: Use '\'' to represent an apostrophe within the trap.
2235 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2236 trap 'exit_status=$?
2237 # Save into config.log some information that might help in debugging.
2238 {
2239 echo
2240
2241 $as_echo "## ---------------- ##
2242 ## Cache variables. ##
2243 ## ---------------- ##"
2244 echo
2245 # The following way of writing the cache mishandles newlines in values,
2246 (
2247 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2248 eval ac_val=\$$ac_var
2249 case $ac_val in #(
2250 *${as_nl}*)
2251 case $ac_var in #(
2252 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2253 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2254 esac
2255 case $ac_var in #(
2256 _ | IFS | as_nl) ;; #(
2257 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2258 *) { eval $ac_var=; unset $ac_var;} ;;
2259 esac ;;
2260 esac
2261 done
2262 (set) 2>&1 |
2263 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2264 *${as_nl}ac_space=\ *)
2265 sed -n \
2266 "s/'\''/'\''\\\\'\'''\''/g;
2267 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2268 ;; #(
2269 *)
2270 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2271 ;;
2272 esac |
2273 sort
2274 )
2275 echo
2276
2277 $as_echo "## ----------------- ##
2278 ## Output variables. ##
2279 ## ----------------- ##"
2280 echo
2281 for ac_var in $ac_subst_vars
2282 do
2283 eval ac_val=\$$ac_var
2284 case $ac_val in
2285 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2286 esac
2287 $as_echo "$ac_var='\''$ac_val'\''"
2288 done | sort
2289 echo
2290
2291 if test -n "$ac_subst_files"; then
2292 $as_echo "## ------------------- ##
2293 ## File substitutions. ##
2294 ## ------------------- ##"
2295 echo
2296 for ac_var in $ac_subst_files
2297 do
2298 eval ac_val=\$$ac_var
2299 case $ac_val in
2300 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2301 esac
2302 $as_echo "$ac_var='\''$ac_val'\''"
2303 done | sort
2304 echo
2305 fi
2306
2307 if test -s confdefs.h; then
2308 $as_echo "## ----------- ##
2309 ## confdefs.h. ##
2310 ## ----------- ##"
2311 echo
2312 cat confdefs.h
2313 echo
2314 fi
2315 test "$ac_signal" != 0 &&
2316 $as_echo "$as_me: caught signal $ac_signal"
2317 $as_echo "$as_me: exit $exit_status"
2318 } >&5
2319 rm -f core *.core core.conftest.* &&
2320 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2321 exit $exit_status
2322 ' 0
2323 for ac_signal in 1 2 13 15; do
2324 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2325 done
2326 ac_signal=0
2327
2328 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2329 rm -f -r conftest* confdefs.h
2330
2331 $as_echo "/* confdefs.h */" > confdefs.h
2332
2333 # Predefined preprocessor variables.
2334
2335 cat >>confdefs.h <<_ACEOF
2336 #define PACKAGE_NAME "$PACKAGE_NAME"
2337 _ACEOF
2338
2339 cat >>confdefs.h <<_ACEOF
2340 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2341 _ACEOF
2342
2343 cat >>confdefs.h <<_ACEOF
2344 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2345 _ACEOF
2346
2347 cat >>confdefs.h <<_ACEOF
2348 #define PACKAGE_STRING "$PACKAGE_STRING"
2349 _ACEOF
2350
2351 cat >>confdefs.h <<_ACEOF
2352 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2353 _ACEOF
2354
2355 cat >>confdefs.h <<_ACEOF
2356 #define PACKAGE_URL "$PACKAGE_URL"
2357 _ACEOF
2358
2359
2360 # Let the site file select an alternate cache file if it wants to.
2361 # Prefer an explicitly selected file to automatically selected ones.
2362 ac_site_file1=NONE
2363 ac_site_file2=NONE
2364 if test -n "$CONFIG_SITE"; then
2365 # We do not want a PATH search for config.site.
2366 case $CONFIG_SITE in #((
2367 -*) ac_site_file1=./$CONFIG_SITE;;
2368 */*) ac_site_file1=$CONFIG_SITE;;
2369 *) ac_site_file1=./$CONFIG_SITE;;
2370 esac
2371 elif test "x$prefix" != xNONE; then
2372 ac_site_file1=$prefix/share/config.site
2373 ac_site_file2=$prefix/etc/config.site
2374 else
2375 ac_site_file1=$ac_default_prefix/share/config.site
2376 ac_site_file2=$ac_default_prefix/etc/config.site
2377 fi
2378 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2379 do
2380 test "x$ac_site_file" = xNONE && continue
2381 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2383 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2384 sed 's/^/| /' "$ac_site_file" >&5
2385 . "$ac_site_file" \
2386 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2388 as_fn_error $? "failed to load site script $ac_site_file
2389 See \`config.log' for more details" "$LINENO" 5; }
2390 fi
2391 done
2392
2393 if test -r "$cache_file"; then
2394 # Some versions of bash will fail to source /dev/null (special files
2395 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2396 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2398 $as_echo "$as_me: loading cache $cache_file" >&6;}
2399 case $cache_file in
2400 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2401 *) . "./$cache_file";;
2402 esac
2403 fi
2404 else
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2406 $as_echo "$as_me: creating cache $cache_file" >&6;}
2407 >$cache_file
2408 fi
2409
2410 # Check that the precious variables saved in the cache have kept the same
2411 # value.
2412 ac_cache_corrupted=false
2413 for ac_var in $ac_precious_vars; do
2414 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2415 eval ac_new_set=\$ac_env_${ac_var}_set
2416 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2417 eval ac_new_val=\$ac_env_${ac_var}_value
2418 case $ac_old_set,$ac_new_set in
2419 set,)
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2421 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2422 ac_cache_corrupted=: ;;
2423 ,set)
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2425 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2426 ac_cache_corrupted=: ;;
2427 ,);;
2428 *)
2429 if test "x$ac_old_val" != "x$ac_new_val"; then
2430 # differences in whitespace do not lead to failure.
2431 ac_old_val_w=`echo x $ac_old_val`
2432 ac_new_val_w=`echo x $ac_new_val`
2433 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2435 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2436 ac_cache_corrupted=:
2437 else
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2439 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2440 eval $ac_var=\$ac_old_val
2441 fi
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2443 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2445 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2446 fi;;
2447 esac
2448 # Pass precious variables to config.status.
2449 if test "$ac_new_set" = set; then
2450 case $ac_new_val in
2451 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2452 *) ac_arg=$ac_var=$ac_new_val ;;
2453 esac
2454 case " $ac_configure_args " in
2455 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2456 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2457 esac
2458 fi
2459 done
2460 if $ac_cache_corrupted; then
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2464 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2465 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2466 fi
2467 ## -------------------- ##
2468 ## Main body of script. ##
2469 ## -------------------- ##
2470
2471 ac_ext=c
2472 ac_cpp='$CPP $CPPFLAGS'
2473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2476
2477
2478
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2480 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2481 # Check whether --enable-maintainer-mode was given.
2482 if test "${enable_maintainer_mode+set}" = set; then :
2483 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2484 else
2485 USE_MAINTAINER_MODE=yes
2486 fi
2487
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2489 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2490 if test $USE_MAINTAINER_MODE = yes; then
2491 MAINTAINER_MODE_TRUE=
2492 MAINTAINER_MODE_FALSE='#'
2493 else
2494 MAINTAINER_MODE_TRUE='#'
2495 MAINTAINER_MODE_FALSE=
2496 fi
2497
2498 MAINT=$MAINTAINER_MODE_TRUE
2499
2500
2501
2502 # The safety check of the next line is as suggested by autoscan
2503
2504
2505
2506
2507 am__api_version='1.16'
2508
2509 ac_aux_dir=
2510 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2511 if test -f "$ac_dir/install-sh"; then
2512 ac_aux_dir=$ac_dir
2513 ac_install_sh="$ac_aux_dir/install-sh -c"
2514 break
2515 elif test -f "$ac_dir/install.sh"; then
2516 ac_aux_dir=$ac_dir
2517 ac_install_sh="$ac_aux_dir/install.sh -c"
2518 break
2519 elif test -f "$ac_dir/shtool"; then
2520 ac_aux_dir=$ac_dir
2521 ac_install_sh="$ac_aux_dir/shtool install -c"
2522 break
2523 fi
2524 done
2525 if test -z "$ac_aux_dir"; then
2526 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2527 fi
2528
2529 # These three variables are undocumented and unsupported,
2530 # and are intended to be withdrawn in a future Autoconf release.
2531 # They can cause serious problems if a builder's source tree is in a directory
2532 # whose full name contains unusual characters.
2533 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2534 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2535 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2536
2537
2538 # Find a good install program. We prefer a C program (faster),
2539 # so one script is as good as another. But avoid the broken or
2540 # incompatible versions:
2541 # SysV /etc/install, /usr/sbin/install
2542 # SunOS /usr/etc/install
2543 # IRIX /sbin/install
2544 # AIX /bin/install
2545 # AmigaOS /C/install, which installs bootblocks on floppy discs
2546 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2547 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2548 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2549 # OS/2's system install, which has a completely different semantic
2550 # ./install, which can be erroneously created by make from ./install.sh.
2551 # Reject install programs that cannot install multiple files.
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2553 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2554 if test -z "$INSTALL"; then
2555 if ${ac_cv_path_install+:} false; then :
2556 $as_echo_n "(cached) " >&6
2557 else
2558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559 for as_dir in $PATH
2560 do
2561 IFS=$as_save_IFS
2562 test -z "$as_dir" && as_dir=.
2563 # Account for people who put trailing slashes in PATH elements.
2564 case $as_dir/ in #((
2565 ./ | .// | /[cC]/* | \
2566 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2567 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2568 /usr/ucb/* ) ;;
2569 *)
2570 # OSF1 and SCO ODT 3.0 have their own names for install.
2571 # Don't use installbsd from OSF since it installs stuff as root
2572 # by default.
2573 for ac_prog in ginstall scoinst install; do
2574 for ac_exec_ext in '' $ac_executable_extensions; do
2575 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2576 if test $ac_prog = install &&
2577 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2578 # AIX install. It has an incompatible calling convention.
2579 :
2580 elif test $ac_prog = install &&
2581 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2582 # program-specific install script used by HP pwplus--don't use.
2583 :
2584 else
2585 rm -rf conftest.one conftest.two conftest.dir
2586 echo one > conftest.one
2587 echo two > conftest.two
2588 mkdir conftest.dir
2589 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2590 test -s conftest.one && test -s conftest.two &&
2591 test -s conftest.dir/conftest.one &&
2592 test -s conftest.dir/conftest.two
2593 then
2594 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2595 break 3
2596 fi
2597 fi
2598 fi
2599 done
2600 done
2601 ;;
2602 esac
2603
2604 done
2605 IFS=$as_save_IFS
2606
2607 rm -rf conftest.one conftest.two conftest.dir
2608
2609 fi
2610 if test "${ac_cv_path_install+set}" = set; then
2611 INSTALL=$ac_cv_path_install
2612 else
2613 # As a last resort, use the slow shell script. Don't cache a
2614 # value for INSTALL within a source directory, because that will
2615 # break other packages using the cache if that directory is
2616 # removed, or if the value is a relative name.
2617 INSTALL=$ac_install_sh
2618 fi
2619 fi
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2621 $as_echo "$INSTALL" >&6; }
2622
2623 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2624 # It thinks the first close brace ends the variable substitution.
2625 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2626
2627 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2628
2629 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2630
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2632 $as_echo_n "checking whether build environment is sane... " >&6; }
2633 # Reject unsafe characters in $srcdir or the absolute working directory
2634 # name. Accept space and tab only in the latter.
2635 am_lf='
2636 '
2637 case `pwd` in
2638 *[\\\"\#\$\&\'\`$am_lf]*)
2639 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2640 esac
2641 case $srcdir in
2642 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2643 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2644 esac
2645
2646 # Do 'set' in a subshell so we don't clobber the current shell's
2647 # arguments. Must try -L first in case configure is actually a
2648 # symlink; some systems play weird games with the mod time of symlinks
2649 # (eg FreeBSD returns the mod time of the symlink's containing
2650 # directory).
2651 if (
2652 am_has_slept=no
2653 for am_try in 1 2; do
2654 echo "timestamp, slept: $am_has_slept" > conftest.file
2655 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2656 if test "$*" = "X"; then
2657 # -L didn't work.
2658 set X `ls -t "$srcdir/configure" conftest.file`
2659 fi
2660 if test "$*" != "X $srcdir/configure conftest.file" \
2661 && test "$*" != "X conftest.file $srcdir/configure"; then
2662
2663 # If neither matched, then we have a broken ls. This can happen
2664 # if, for instance, CONFIG_SHELL is bash and it inherits a
2665 # broken ls alias from the environment. This has actually
2666 # happened. Such a system could not be considered "sane".
2667 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2668 alias in your environment" "$LINENO" 5
2669 fi
2670 if test "$2" = conftest.file || test $am_try -eq 2; then
2671 break
2672 fi
2673 # Just in case.
2674 sleep 1
2675 am_has_slept=yes
2676 done
2677 test "$2" = conftest.file
2678 )
2679 then
2680 # Ok.
2681 :
2682 else
2683 as_fn_error $? "newly created file is older than distributed files!
2684 Check your system clock" "$LINENO" 5
2685 fi
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2687 $as_echo "yes" >&6; }
2688 # If we didn't sleep, we still need to ensure time stamps of config.status and
2689 # generated files are strictly newer.
2690 am_sleep_pid=
2691 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2692 ( sleep 1 ) &
2693 am_sleep_pid=$!
2694 fi
2695
2696 rm -f conftest.file
2697
2698 test "$program_prefix" != NONE &&
2699 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2700 # Use a double $ so make ignores it.
2701 test "$program_suffix" != NONE &&
2702 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2703 # Double any \ or $.
2704 # By default was `s,x,x', remove it if useless.
2705 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2706 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2707
2708 # Expand $ac_aux_dir to an absolute path.
2709 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2710
2711 if test x"${MISSING+set}" != xset; then
2712 case $am_aux_dir in
2713 *\ * | *\ *)
2714 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2715 *)
2716 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2717 esac
2718 fi
2719 # Use eval to expand $SHELL
2720 if eval "$MISSING --is-lightweight"; then
2721 am_missing_run="$MISSING "
2722 else
2723 am_missing_run=
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2725 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2726 fi
2727
2728 if test x"${install_sh+set}" != xset; then
2729 case $am_aux_dir in
2730 *\ * | *\ *)
2731 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2732 *)
2733 install_sh="\${SHELL} $am_aux_dir/install-sh"
2734 esac
2735 fi
2736
2737 # Installed binaries are usually stripped using 'strip' when the user
2738 # run "make install-strip". However 'strip' might not be the right
2739 # tool to use in cross-compilation environments, therefore Automake
2740 # will honor the 'STRIP' environment variable to overrule this program.
2741 if test "$cross_compiling" != no; then
2742 if test -n "$ac_tool_prefix"; then
2743 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2744 set dummy ${ac_tool_prefix}strip; ac_word=$2
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2746 $as_echo_n "checking for $ac_word... " >&6; }
2747 if ${ac_cv_prog_STRIP+:} false; then :
2748 $as_echo_n "(cached) " >&6
2749 else
2750 if test -n "$STRIP"; then
2751 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2752 else
2753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754 for as_dir in $PATH
2755 do
2756 IFS=$as_save_IFS
2757 test -z "$as_dir" && as_dir=.
2758 for ac_exec_ext in '' $ac_executable_extensions; do
2759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2760 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2762 break 2
2763 fi
2764 done
2765 done
2766 IFS=$as_save_IFS
2767
2768 fi
2769 fi
2770 STRIP=$ac_cv_prog_STRIP
2771 if test -n "$STRIP"; then
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2773 $as_echo "$STRIP" >&6; }
2774 else
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2776 $as_echo "no" >&6; }
2777 fi
2778
2779
2780 fi
2781 if test -z "$ac_cv_prog_STRIP"; then
2782 ac_ct_STRIP=$STRIP
2783 # Extract the first word of "strip", so it can be a program name with args.
2784 set dummy strip; ac_word=$2
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2786 $as_echo_n "checking for $ac_word... " >&6; }
2787 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2788 $as_echo_n "(cached) " >&6
2789 else
2790 if test -n "$ac_ct_STRIP"; then
2791 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2792 else
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 for as_dir in $PATH
2795 do
2796 IFS=$as_save_IFS
2797 test -z "$as_dir" && as_dir=.
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2800 ac_cv_prog_ac_ct_STRIP="strip"
2801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 break 2
2803 fi
2804 done
2805 done
2806 IFS=$as_save_IFS
2807
2808 fi
2809 fi
2810 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2811 if test -n "$ac_ct_STRIP"; then
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2813 $as_echo "$ac_ct_STRIP" >&6; }
2814 else
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816 $as_echo "no" >&6; }
2817 fi
2818
2819 if test "x$ac_ct_STRIP" = x; then
2820 STRIP=":"
2821 else
2822 case $cross_compiling:$ac_tool_warned in
2823 yes:)
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2826 ac_tool_warned=yes ;;
2827 esac
2828 STRIP=$ac_ct_STRIP
2829 fi
2830 else
2831 STRIP="$ac_cv_prog_STRIP"
2832 fi
2833
2834 fi
2835 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2836
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2838 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2839 if test -z "$MKDIR_P"; then
2840 if ${ac_cv_path_mkdir+:} false; then :
2841 $as_echo_n "(cached) " >&6
2842 else
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2845 do
2846 IFS=$as_save_IFS
2847 test -z "$as_dir" && as_dir=.
2848 for ac_prog in mkdir gmkdir; do
2849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2851 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2852 'mkdir (GNU coreutils) '* | \
2853 'mkdir (coreutils) '* | \
2854 'mkdir (fileutils) '4.1*)
2855 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2856 break 3;;
2857 esac
2858 done
2859 done
2860 done
2861 IFS=$as_save_IFS
2862
2863 fi
2864
2865 test -d ./--version && rmdir ./--version
2866 if test "${ac_cv_path_mkdir+set}" = set; then
2867 MKDIR_P="$ac_cv_path_mkdir -p"
2868 else
2869 # As a last resort, use the slow shell script. Don't cache a
2870 # value for MKDIR_P within a source directory, because that will
2871 # break other packages using the cache if that directory is
2872 # removed, or if the value is a relative name.
2873 MKDIR_P="$ac_install_sh -d"
2874 fi
2875 fi
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2877 $as_echo "$MKDIR_P" >&6; }
2878
2879 for ac_prog in gawk mawk nawk awk
2880 do
2881 # Extract the first word of "$ac_prog", so it can be a program name with args.
2882 set dummy $ac_prog; ac_word=$2
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884 $as_echo_n "checking for $ac_word... " >&6; }
2885 if ${ac_cv_prog_AWK+:} false; then :
2886 $as_echo_n "(cached) " >&6
2887 else
2888 if test -n "$AWK"; then
2889 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2890 else
2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 for as_dir in $PATH
2893 do
2894 IFS=$as_save_IFS
2895 test -z "$as_dir" && as_dir=.
2896 for ac_exec_ext in '' $ac_executable_extensions; do
2897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2898 ac_cv_prog_AWK="$ac_prog"
2899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2900 break 2
2901 fi
2902 done
2903 done
2904 IFS=$as_save_IFS
2905
2906 fi
2907 fi
2908 AWK=$ac_cv_prog_AWK
2909 if test -n "$AWK"; then
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2911 $as_echo "$AWK" >&6; }
2912 else
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914 $as_echo "no" >&6; }
2915 fi
2916
2917
2918 test -n "$AWK" && break
2919 done
2920
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2922 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2923 set x ${MAKE-make}
2924 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2925 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2926 $as_echo_n "(cached) " >&6
2927 else
2928 cat >conftest.make <<\_ACEOF
2929 SHELL = /bin/sh
2930 all:
2931 @echo '@@@%%%=$(MAKE)=@@@%%%'
2932 _ACEOF
2933 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2934 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2935 *@@@%%%=?*=@@@%%%*)
2936 eval ac_cv_prog_make_${ac_make}_set=yes;;
2937 *)
2938 eval ac_cv_prog_make_${ac_make}_set=no;;
2939 esac
2940 rm -f conftest.make
2941 fi
2942 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2944 $as_echo "yes" >&6; }
2945 SET_MAKE=
2946 else
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2948 $as_echo "no" >&6; }
2949 SET_MAKE="MAKE=${MAKE-make}"
2950 fi
2951
2952 rm -rf .tst 2>/dev/null
2953 mkdir .tst 2>/dev/null
2954 if test -d .tst; then
2955 am__leading_dot=.
2956 else
2957 am__leading_dot=_
2958 fi
2959 rmdir .tst 2>/dev/null
2960
2961 # Check whether --enable-silent-rules was given.
2962 if test "${enable_silent_rules+set}" = set; then :
2963 enableval=$enable_silent_rules;
2964 fi
2965
2966 case $enable_silent_rules in # (((
2967 yes) AM_DEFAULT_VERBOSITY=0;;
2968 no) AM_DEFAULT_VERBOSITY=1;;
2969 *) AM_DEFAULT_VERBOSITY=1;;
2970 esac
2971 am_make=${MAKE-make}
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2973 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2974 if ${am_cv_make_support_nested_variables+:} false; then :
2975 $as_echo_n "(cached) " >&6
2976 else
2977 if $as_echo 'TRUE=$(BAR$(V))
2978 BAR0=false
2979 BAR1=true
2980 V=1
2981 am__doit:
2982 @$(TRUE)
2983 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2984 am_cv_make_support_nested_variables=yes
2985 else
2986 am_cv_make_support_nested_variables=no
2987 fi
2988 fi
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2990 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2991 if test $am_cv_make_support_nested_variables = yes; then
2992 AM_V='$(V)'
2993 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2994 else
2995 AM_V=$AM_DEFAULT_VERBOSITY
2996 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2997 fi
2998 AM_BACKSLASH='\'
2999
3000 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3001 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3002 # is not polluted with repeated "-I."
3003 am__isrc=' -I$(srcdir)'
3004 # test to see if srcdir already configured
3005 if test -f $srcdir/config.status; then
3006 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3007 fi
3008 fi
3009
3010 # test whether we have cygpath
3011 if test -z "$CYGPATH_W"; then
3012 if (cygpath --version) >/dev/null 2>/dev/null; then
3013 CYGPATH_W='cygpath -w'
3014 else
3015 CYGPATH_W=echo
3016 fi
3017 fi
3018
3019
3020 # Define the identity of the package.
3021 PACKAGE='libmarpa'
3022 VERSION='11.0.2'
3023
3024
3025 cat >>confdefs.h <<_ACEOF
3026 #define PACKAGE "$PACKAGE"
3027 _ACEOF
3028
3029
3030 cat >>confdefs.h <<_ACEOF
3031 #define VERSION "$VERSION"
3032 _ACEOF
3033
3034 # Some tools Automake needs.
3035
3036 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3037
3038
3039 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3040
3041
3042 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3043
3044
3045 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3046
3047
3048 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3049
3050 # For better backward compatibility. To be removed once Automake 1.9.x
3051 # dies out for good. For more background, see:
3052 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3053 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3054 mkdir_p='$(MKDIR_P)'
3055
3056 # We need awk for the "check" target (and possibly the TAP driver). The
3057 # system "awk" is bad on some platforms.
3058 # Always define AMTAR for backward compatibility. Yes, it's still used
3059 # in the wild :-( We should find a proper way to deprecate it ...
3060 AMTAR='$${TAR-tar}'
3061
3062
3063 # We'll loop over all known methods to create a tar archive until one works.
3064 _am_tools='gnutar pax cpio none'
3065
3066 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3067
3068
3069
3070
3071
3072
3073 # POSIX will say in a future version that running "rm -f" with no argument
3074 # is OK; and we want to be able to make that assumption in our Makefile
3075 # recipes. So use an aggressive probe to check that the usage we want is
3076 # actually supported "in the wild" to an acceptable degree.
3077 # See automake bug#10828.
3078 # To make any issue more visible, cause the running configure to be aborted
3079 # by default if the 'rm' program in use doesn't match our expectations; the
3080 # user can still override this though.
3081 if rm -f && rm -fr && rm -rf; then : OK; else
3082 cat >&2 <<'END'
3083 Oops!
3084
3085 Your 'rm' program seems unable to run without file operands specified
3086 on the command line, even when the '-f' option is present. This is contrary
3087 to the behaviour of most rm programs out there, and not conforming with
3088 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3089
3090 Please tell [email protected] about your system, including the value
3091 of your $PATH and any error possibly output before this message. This
3092 can help us improve future automake versions.
3093
3094 END
3095 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3096 echo 'Configuration will proceed anyway, since you have set the' >&2
3097 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3098 echo >&2
3099 else
3100 cat >&2 <<'END'
3101 Aborting the configuration process, to ensure you take notice of the issue.
3102
3103 You can download and install GNU coreutils to get an 'rm' implementation
3104 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3105
3106 If you want to complete the configuration process using your problematic
3107 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3108 to "yes", and re-run configure.
3109
3110 END
3111 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3112 fi
3113 fi
3114
3115
3116 # Specify a configuration file
3117 ac_config_headers="$ac_config_headers config.h"
3118
3119
3120 case `pwd` in
3121 *\ * | *\ *)
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3123 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3124 esac
3125
3126
3127
3128 macro_version='2.4.6'
3129 macro_revision='2.4.6'
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143 ltmain=$ac_aux_dir/ltmain.sh
3144
3145 # Make sure we can run config.sub.
3146 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3147 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3148
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3150 $as_echo_n "checking build system type... " >&6; }
3151 if ${ac_cv_build+:} false; then :
3152 $as_echo_n "(cached) " >&6
3153 else
3154 ac_build_alias=$build_alias
3155 test "x$ac_build_alias" = x &&
3156 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3157 test "x$ac_build_alias" = x &&
3158 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3159 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3160 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3161
3162 fi
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3164 $as_echo "$ac_cv_build" >&6; }
3165 case $ac_cv_build in
3166 *-*-*) ;;
3167 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3168 esac
3169 build=$ac_cv_build
3170 ac_save_IFS=$IFS; IFS='-'
3171 set x $ac_cv_build
3172 shift
3173 build_cpu=$1
3174 build_vendor=$2
3175 shift; shift
3176 # Remember, the first character of IFS is used to create $*,
3177 # except with old shells:
3178 build_os=$*
3179 IFS=$ac_save_IFS
3180 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3181
3182
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3184 $as_echo_n "checking host system type... " >&6; }
3185 if ${ac_cv_host+:} false; then :
3186 $as_echo_n "(cached) " >&6
3187 else
3188 if test "x$host_alias" = x; then
3189 ac_cv_host=$ac_cv_build
3190 else
3191 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3192 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3193 fi
3194
3195 fi
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3197 $as_echo "$ac_cv_host" >&6; }
3198 case $ac_cv_host in
3199 *-*-*) ;;
3200 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3201 esac
3202 host=$ac_cv_host
3203 ac_save_IFS=$IFS; IFS='-'
3204 set x $ac_cv_host
3205 shift
3206 host_cpu=$1
3207 host_vendor=$2
3208 shift; shift
3209 # Remember, the first character of IFS is used to create $*,
3210 # except with old shells:
3211 host_os=$*
3212 IFS=$ac_save_IFS
3213 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3214
3215
3216 # Backslashify metacharacters that are still active within
3217 # double-quoted strings.
3218 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3219
3220 # Same as above, but do not quote variable references.
3221 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3222
3223 # Sed substitution to delay expansion of an escaped shell variable in a
3224 # double_quote_subst'ed string.
3225 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3226
3227 # Sed substitution to delay expansion of an escaped single quote.
3228 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3229
3230 # Sed substitution to avoid accidental globbing in evaled expressions
3231 no_glob_subst='s/\*/\\\*/g'
3232
3233 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3234 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3235 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3236
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3238 $as_echo_n "checking how to print strings... " >&6; }
3239 # Test print first, because it will be a builtin if present.
3240 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3241 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3242 ECHO='print -r --'
3243 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3244 ECHO='printf %s\n'
3245 else
3246 # Use this function as a fallback that always works.
3247 func_fallback_echo ()
3248 {
3249 eval 'cat <<_LTECHO_EOF
3250 $1
3251 _LTECHO_EOF'
3252 }
3253 ECHO='func_fallback_echo'
3254 fi
3255
3256 # func_echo_all arg...
3257 # Invoke $ECHO with all args, space-separated.
3258 func_echo_all ()
3259 {
3260 $ECHO ""
3261 }
3262
3263 case $ECHO in
3264 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3265 $as_echo "printf" >&6; } ;;
3266 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3267 $as_echo "print -r" >&6; } ;;
3268 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3269 $as_echo "cat" >&6; } ;;
3270 esac
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285 DEPDIR="${am__leading_dot}deps"
3286
3287 ac_config_commands="$ac_config_commands depfiles"
3288
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3290 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3291 cat > confinc.mk << 'END'
3292 am__doit:
3293 @echo this is the am__doit target >confinc.out
3294 .PHONY: am__doit
3295 END
3296 am__include="#"
3297 am__quote=
3298 # BSD make does it like this.
3299 echo '.include "confinc.mk" # ignored' > confmf.BSD
3300 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3301 echo 'include confinc.mk # ignored' > confmf.GNU
3302 _am_result=no
3303 for s in GNU BSD; do
3304 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3305 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3306 ac_status=$?
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }
3309 case $?:`cat confinc.out 2>/dev/null` in #(
3310 '0:this is the am__doit target') :
3311 case $s in #(
3312 BSD) :
3313 am__include='.include' am__quote='"' ;; #(
3314 *) :
3315 am__include='include' am__quote='' ;;
3316 esac ;; #(
3317 *) :
3318 ;;
3319 esac
3320 if test "$am__include" != "#"; then
3321 _am_result="yes ($s style)"
3322 break
3323 fi
3324 done
3325 rm -f confinc.* confmf.*
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3327 $as_echo "${_am_result}" >&6; }
3328
3329 # Check whether --enable-dependency-tracking was given.
3330 if test "${enable_dependency_tracking+set}" = set; then :
3331 enableval=$enable_dependency_tracking;
3332 fi
3333
3334 if test "x$enable_dependency_tracking" != xno; then
3335 am_depcomp="$ac_aux_dir/depcomp"
3336 AMDEPBACKSLASH='\'
3337 am__nodep='_no'
3338 fi
3339 if test "x$enable_dependency_tracking" != xno; then
3340 AMDEP_TRUE=
3341 AMDEP_FALSE='#'
3342 else
3343 AMDEP_TRUE='#'
3344 AMDEP_FALSE=
3345 fi
3346
3347
3348 ac_ext=c
3349 ac_cpp='$CPP $CPPFLAGS'
3350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3353 if test -n "$ac_tool_prefix"; then
3354 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3355 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3357 $as_echo_n "checking for $ac_word... " >&6; }
3358 if ${ac_cv_prog_CC+:} false; then :
3359 $as_echo_n "(cached) " >&6
3360 else
3361 if test -n "$CC"; then
3362 ac_cv_prog_CC="$CC" # Let the user override the test.
3363 else
3364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365 for as_dir in $PATH
3366 do
3367 IFS=$as_save_IFS
3368 test -z "$as_dir" && as_dir=.
3369 for ac_exec_ext in '' $ac_executable_extensions; do
3370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3371 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3373 break 2
3374 fi
3375 done
3376 done
3377 IFS=$as_save_IFS
3378
3379 fi
3380 fi
3381 CC=$ac_cv_prog_CC
3382 if test -n "$CC"; then
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3384 $as_echo "$CC" >&6; }
3385 else
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3387 $as_echo "no" >&6; }
3388 fi
3389
3390
3391 fi
3392 if test -z "$ac_cv_prog_CC"; then
3393 ac_ct_CC=$CC
3394 # Extract the first word of "gcc", so it can be a program name with args.
3395 set dummy gcc; ac_word=$2
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3397 $as_echo_n "checking for $ac_word... " >&6; }
3398 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3399 $as_echo_n "(cached) " >&6
3400 else
3401 if test -n "$ac_ct_CC"; then
3402 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3403 else
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 for as_dir in $PATH
3406 do
3407 IFS=$as_save_IFS
3408 test -z "$as_dir" && as_dir=.
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3411 ac_cv_prog_ac_ct_CC="gcc"
3412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 break 2
3414 fi
3415 done
3416 done
3417 IFS=$as_save_IFS
3418
3419 fi
3420 fi
3421 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3422 if test -n "$ac_ct_CC"; then
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3424 $as_echo "$ac_ct_CC" >&6; }
3425 else
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427 $as_echo "no" >&6; }
3428 fi
3429
3430 if test "x$ac_ct_CC" = x; then
3431 CC=""
3432 else
3433 case $cross_compiling:$ac_tool_warned in
3434 yes:)
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3437 ac_tool_warned=yes ;;
3438 esac
3439 CC=$ac_ct_CC
3440 fi
3441 else
3442 CC="$ac_cv_prog_CC"
3443 fi
3444
3445 if test -z "$CC"; then
3446 if test -n "$ac_tool_prefix"; then
3447 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3448 set dummy ${ac_tool_prefix}cc; ac_word=$2
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3450 $as_echo_n "checking for $ac_word... " >&6; }
3451 if ${ac_cv_prog_CC+:} false; then :
3452 $as_echo_n "(cached) " >&6
3453 else
3454 if test -n "$CC"; then
3455 ac_cv_prog_CC="$CC" # Let the user override the test.
3456 else
3457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3458 for as_dir in $PATH
3459 do
3460 IFS=$as_save_IFS
3461 test -z "$as_dir" && as_dir=.
3462 for ac_exec_ext in '' $ac_executable_extensions; do
3463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3464 ac_cv_prog_CC="${ac_tool_prefix}cc"
3465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3466 break 2
3467 fi
3468 done
3469 done
3470 IFS=$as_save_IFS
3471
3472 fi
3473 fi
3474 CC=$ac_cv_prog_CC
3475 if test -n "$CC"; then
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3477 $as_echo "$CC" >&6; }
3478 else
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3480 $as_echo "no" >&6; }
3481 fi
3482
3483
3484 fi
3485 fi
3486 if test -z "$CC"; then
3487 # Extract the first word of "cc", so it can be a program name with args.
3488 set dummy cc; ac_word=$2
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3490 $as_echo_n "checking for $ac_word... " >&6; }
3491 if ${ac_cv_prog_CC+:} false; then :
3492 $as_echo_n "(cached) " >&6
3493 else
3494 if test -n "$CC"; then
3495 ac_cv_prog_CC="$CC" # Let the user override the test.
3496 else
3497 ac_prog_rejected=no
3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499 for as_dir in $PATH
3500 do
3501 IFS=$as_save_IFS
3502 test -z "$as_dir" && as_dir=.
3503 for ac_exec_ext in '' $ac_executable_extensions; do
3504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3505 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3506 ac_prog_rejected=yes
3507 continue
3508 fi
3509 ac_cv_prog_CC="cc"
3510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3511 break 2
3512 fi
3513 done
3514 done
3515 IFS=$as_save_IFS
3516
3517 if test $ac_prog_rejected = yes; then
3518 # We found a bogon in the path, so make sure we never use it.
3519 set dummy $ac_cv_prog_CC
3520 shift
3521 if test $# != 0; then
3522 # We chose a different compiler from the bogus one.
3523 # However, it has the same basename, so the bogon will be chosen
3524 # first if we set CC to just the basename; use the full file name.
3525 shift
3526 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3527 fi
3528 fi
3529 fi
3530 fi
3531 CC=$ac_cv_prog_CC
3532 if test -n "$CC"; then
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3534 $as_echo "$CC" >&6; }
3535 else
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3537 $as_echo "no" >&6; }
3538 fi
3539
3540
3541 fi
3542 if test -z "$CC"; then
3543 if test -n "$ac_tool_prefix"; then
3544 for ac_prog in cl.exe
3545 do
3546 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3547 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3549 $as_echo_n "checking for $ac_word... " >&6; }
3550 if ${ac_cv_prog_CC+:} false; then :
3551 $as_echo_n "(cached) " >&6
3552 else
3553 if test -n "$CC"; then
3554 ac_cv_prog_CC="$CC" # Let the user override the test.
3555 else
3556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557 for as_dir in $PATH
3558 do
3559 IFS=$as_save_IFS
3560 test -z "$as_dir" && as_dir=.
3561 for ac_exec_ext in '' $ac_executable_extensions; do
3562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3563 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3565 break 2
3566 fi
3567 done
3568 done
3569 IFS=$as_save_IFS
3570
3571 fi
3572 fi
3573 CC=$ac_cv_prog_CC
3574 if test -n "$CC"; then
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3576 $as_echo "$CC" >&6; }
3577 else
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579 $as_echo "no" >&6; }
3580 fi
3581
3582
3583 test -n "$CC" && break
3584 done
3585 fi
3586 if test -z "$CC"; then
3587 ac_ct_CC=$CC
3588 for ac_prog in cl.exe
3589 do
3590 # Extract the first word of "$ac_prog", so it can be a program name with args.
3591 set dummy $ac_prog; ac_word=$2
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3593 $as_echo_n "checking for $ac_word... " >&6; }
3594 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3595 $as_echo_n "(cached) " >&6
3596 else
3597 if test -n "$ac_ct_CC"; then
3598 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3599 else
3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601 for as_dir in $PATH
3602 do
3603 IFS=$as_save_IFS
3604 test -z "$as_dir" && as_dir=.
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3607 ac_cv_prog_ac_ct_CC="$ac_prog"
3608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3609 break 2
3610 fi
3611 done
3612 done
3613 IFS=$as_save_IFS
3614
3615 fi
3616 fi
3617 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3618 if test -n "$ac_ct_CC"; then
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3620 $as_echo "$ac_ct_CC" >&6; }
3621 else
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3623 $as_echo "no" >&6; }
3624 fi
3625
3626
3627 test -n "$ac_ct_CC" && break
3628 done
3629
3630 if test "x$ac_ct_CC" = x; then
3631 CC=""
3632 else
3633 case $cross_compiling:$ac_tool_warned in
3634 yes:)
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3637 ac_tool_warned=yes ;;
3638 esac
3639 CC=$ac_ct_CC
3640 fi
3641 fi
3642
3643 fi
3644
3645
3646 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3648 as_fn_error $? "no acceptable C compiler found in \$PATH
3649 See \`config.log' for more details" "$LINENO" 5; }
3650
3651 # Provide some information about the compiler.
3652 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3653 set X $ac_compile
3654 ac_compiler=$2
3655 for ac_option in --version -v -V -qversion; do
3656 { { ac_try="$ac_compiler $ac_option >&5"
3657 case "(($ac_try" in
3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3660 esac
3661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3662 $as_echo "$ac_try_echo"; } >&5
3663 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3664 ac_status=$?
3665 if test -s conftest.err; then
3666 sed '10a\
3667 ... rest of stderr output deleted ...
3668 10q' conftest.err >conftest.er1
3669 cat conftest.er1 >&5
3670 fi
3671 rm -f conftest.er1 conftest.err
3672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3673 test $ac_status = 0; }
3674 done
3675
3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677 /* end confdefs.h. */
3678
3679 int
3680 main ()
3681 {
3682
3683 ;
3684 return 0;
3685 }
3686 _ACEOF
3687 ac_clean_files_save=$ac_clean_files
3688 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3689 # Try to create an executable without -o first, disregard a.out.
3690 # It will help us diagnose broken compilers, and finding out an intuition
3691 # of exeext.
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3693 $as_echo_n "checking whether the C compiler works... " >&6; }
3694 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3695
3696 # The possible output files:
3697 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3698
3699 ac_rmfiles=
3700 for ac_file in $ac_files
3701 do
3702 case $ac_file in
3703 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3704 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3705 esac
3706 done
3707 rm -f $ac_rmfiles
3708
3709 if { { ac_try="$ac_link_default"
3710 case "(($ac_try" in
3711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3712 *) ac_try_echo=$ac_try;;
3713 esac
3714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3715 $as_echo "$ac_try_echo"; } >&5
3716 (eval "$ac_link_default") 2>&5
3717 ac_status=$?
3718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3719 test $ac_status = 0; }; then :
3720 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3721 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3722 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3723 # so that the user can short-circuit this test for compilers unknown to
3724 # Autoconf.
3725 for ac_file in $ac_files ''
3726 do
3727 test -f "$ac_file" || continue
3728 case $ac_file in
3729 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3730 ;;
3731 [ab].out )
3732 # We found the default executable, but exeext='' is most
3733 # certainly right.
3734 break;;
3735 *.* )
3736 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3737 then :; else
3738 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3739 fi
3740 # We set ac_cv_exeext here because the later test for it is not
3741 # safe: cross compilers may not add the suffix if given an `-o'
3742 # argument, so we may need to know it at that point already.
3743 # Even if this section looks crufty: it has the advantage of
3744 # actually working.
3745 break;;
3746 * )
3747 break;;
3748 esac
3749 done
3750 test "$ac_cv_exeext" = no && ac_cv_exeext=
3751
3752 else
3753 ac_file=''
3754 fi
3755 if test -z "$ac_file"; then :
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3757 $as_echo "no" >&6; }
3758 $as_echo "$as_me: failed program was:" >&5
3759 sed 's/^/| /' conftest.$ac_ext >&5
3760
3761 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3763 as_fn_error 77 "C compiler cannot create executables
3764 See \`config.log' for more details" "$LINENO" 5; }
3765 else
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3767 $as_echo "yes" >&6; }
3768 fi
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3770 $as_echo_n "checking for C compiler default output file name... " >&6; }
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3772 $as_echo "$ac_file" >&6; }
3773 ac_exeext=$ac_cv_exeext
3774
3775 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3776 ac_clean_files=$ac_clean_files_save
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3778 $as_echo_n "checking for suffix of executables... " >&6; }
3779 if { { ac_try="$ac_link"
3780 case "(($ac_try" in
3781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782 *) ac_try_echo=$ac_try;;
3783 esac
3784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3785 $as_echo "$ac_try_echo"; } >&5
3786 (eval "$ac_link") 2>&5
3787 ac_status=$?
3788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3789 test $ac_status = 0; }; then :
3790 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3791 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3792 # work properly (i.e., refer to `conftest.exe'), while it won't with
3793 # `rm'.
3794 for ac_file in conftest.exe conftest conftest.*; do
3795 test -f "$ac_file" || continue
3796 case $ac_file in
3797 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3798 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3799 break;;
3800 * ) break;;
3801 esac
3802 done
3803 else
3804 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3806 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3807 See \`config.log' for more details" "$LINENO" 5; }
3808 fi
3809 rm -f conftest conftest$ac_cv_exeext
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3811 $as_echo "$ac_cv_exeext" >&6; }
3812
3813 rm -f conftest.$ac_ext
3814 EXEEXT=$ac_cv_exeext
3815 ac_exeext=$EXEEXT
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3818 #include <stdio.h>
3819 int
3820 main ()
3821 {
3822 FILE *f = fopen ("conftest.out", "w");
3823 return ferror (f) || fclose (f) != 0;
3824
3825 ;
3826 return 0;
3827 }
3828 _ACEOF
3829 ac_clean_files="$ac_clean_files conftest.out"
3830 # Check that the compiler produces executables we can run. If not, either
3831 # the compiler is broken, or we cross compile.
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3833 $as_echo_n "checking whether we are cross compiling... " >&6; }
3834 if test "$cross_compiling" != yes; then
3835 { { ac_try="$ac_link"
3836 case "(($ac_try" in
3837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838 *) ac_try_echo=$ac_try;;
3839 esac
3840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3841 $as_echo "$ac_try_echo"; } >&5
3842 (eval "$ac_link") 2>&5
3843 ac_status=$?
3844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3845 test $ac_status = 0; }
3846 if { ac_try='./conftest$ac_cv_exeext'
3847 { { case "(($ac_try" in
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3850 esac
3851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3852 $as_echo "$ac_try_echo"; } >&5
3853 (eval "$ac_try") 2>&5
3854 ac_status=$?
3855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3856 test $ac_status = 0; }; }; then
3857 cross_compiling=no
3858 else
3859 if test "$cross_compiling" = maybe; then
3860 cross_compiling=yes
3861 else
3862 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3864 as_fn_error $? "cannot run C compiled programs.
3865 If you meant to cross compile, use \`--host'.
3866 See \`config.log' for more details" "$LINENO" 5; }
3867 fi
3868 fi
3869 fi
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3871 $as_echo "$cross_compiling" >&6; }
3872
3873 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3874 ac_clean_files=$ac_clean_files_save
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3876 $as_echo_n "checking for suffix of object files... " >&6; }
3877 if ${ac_cv_objext+:} false; then :
3878 $as_echo_n "(cached) " >&6
3879 else
3880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h. */
3882
3883 int
3884 main ()
3885 {
3886
3887 ;
3888 return 0;
3889 }
3890 _ACEOF
3891 rm -f conftest.o conftest.obj
3892 if { { ac_try="$ac_compile"
3893 case "(($ac_try" in
3894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3895 *) ac_try_echo=$ac_try;;
3896 esac
3897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3898 $as_echo "$ac_try_echo"; } >&5
3899 (eval "$ac_compile") 2>&5
3900 ac_status=$?
3901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3902 test $ac_status = 0; }; then :
3903 for ac_file in conftest.o conftest.obj conftest.*; do
3904 test -f "$ac_file" || continue;
3905 case $ac_file in
3906 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3907 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3908 break;;
3909 esac
3910 done
3911 else
3912 $as_echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3914
3915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3917 as_fn_error $? "cannot compute suffix of object files: cannot compile
3918 See \`config.log' for more details" "$LINENO" 5; }
3919 fi
3920 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3921 fi
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3923 $as_echo "$ac_cv_objext" >&6; }
3924 OBJEXT=$ac_cv_objext
3925 ac_objext=$OBJEXT
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3927 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3928 if ${ac_cv_c_compiler_gnu+:} false; then :
3929 $as_echo_n "(cached) " >&6
3930 else
3931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932 /* end confdefs.h. */
3933
3934 int
3935 main ()
3936 {
3937 #ifndef __GNUC__
3938 choke me
3939 #endif
3940
3941 ;
3942 return 0;
3943 }
3944 _ACEOF
3945 if ac_fn_c_try_compile "$LINENO"; then :
3946 ac_compiler_gnu=yes
3947 else
3948 ac_compiler_gnu=no
3949 fi
3950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3951 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3952
3953 fi
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3955 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3956 if test $ac_compiler_gnu = yes; then
3957 GCC=yes
3958 else
3959 GCC=
3960 fi
3961 ac_test_CFLAGS=${CFLAGS+set}
3962 ac_save_CFLAGS=$CFLAGS
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3964 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3965 if ${ac_cv_prog_cc_g+:} false; then :
3966 $as_echo_n "(cached) " >&6
3967 else
3968 ac_save_c_werror_flag=$ac_c_werror_flag
3969 ac_c_werror_flag=yes
3970 ac_cv_prog_cc_g=no
3971 CFLAGS="-g"
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h. */
3974
3975 int
3976 main ()
3977 {
3978
3979 ;
3980 return 0;
3981 }
3982 _ACEOF
3983 if ac_fn_c_try_compile "$LINENO"; then :
3984 ac_cv_prog_cc_g=yes
3985 else
3986 CFLAGS=""
3987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988 /* end confdefs.h. */
3989
3990 int
3991 main ()
3992 {
3993
3994 ;
3995 return 0;
3996 }
3997 _ACEOF
3998 if ac_fn_c_try_compile "$LINENO"; then :
3999
4000 else
4001 ac_c_werror_flag=$ac_save_c_werror_flag
4002 CFLAGS="-g"
4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h. */
4005
4006 int
4007 main ()
4008 {
4009
4010 ;
4011 return 0;
4012 }
4013 _ACEOF
4014 if ac_fn_c_try_compile "$LINENO"; then :
4015 ac_cv_prog_cc_g=yes
4016 fi
4017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4018 fi
4019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4020 fi
4021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4022 ac_c_werror_flag=$ac_save_c_werror_flag
4023 fi
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4025 $as_echo "$ac_cv_prog_cc_g" >&6; }
4026 if test "$ac_test_CFLAGS" = set; then
4027 CFLAGS=$ac_save_CFLAGS
4028 elif test $ac_cv_prog_cc_g = yes; then
4029 if test "$GCC" = yes; then
4030 CFLAGS="-g -O2"
4031 else
4032 CFLAGS="-g"
4033 fi
4034 else
4035 if test "$GCC" = yes; then
4036 CFLAGS="-O2"
4037 else
4038 CFLAGS=
4039 fi
4040 fi
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4042 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4043 if ${ac_cv_prog_cc_c89+:} false; then :
4044 $as_echo_n "(cached) " >&6
4045 else
4046 ac_cv_prog_cc_c89=no
4047 ac_save_CC=$CC
4048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049 /* end confdefs.h. */
4050 #include <stdarg.h>
4051 #include <stdio.h>
4052 struct stat;
4053 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4054 struct buf { int x; };
4055 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4056 static char *e (p, i)
4057 char **p;
4058 int i;
4059 {
4060 return p[i];
4061 }
4062 static char *f (char * (*g) (char **, int), char **p, ...)
4063 {
4064 char *s;
4065 va_list v;
4066 va_start (v,p);
4067 s = g (p, va_arg (v,int));
4068 va_end (v);
4069 return s;
4070 }
4071
4072 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4073 function prototypes and stuff, but not '\xHH' hex character constants.
4074 These don't provoke an error unfortunately, instead are silently treated
4075 as 'x'. The following induces an error, until -std is added to get
4076 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4077 array size at least. It's necessary to write '\x00'==0 to get something
4078 that's true only with -std. */
4079 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4080
4081 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4082 inside strings and character constants. */
4083 #define FOO(x) 'x'
4084 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4085
4086 int test (int i, double x);
4087 struct s1 {int (*f) (int a);};
4088 struct s2 {int (*f) (double a);};
4089 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4090 int argc;
4091 char **argv;
4092 int
4093 main ()
4094 {
4095 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4096 ;
4097 return 0;
4098 }
4099 _ACEOF
4100 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4101 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4102 do
4103 CC="$ac_save_CC $ac_arg"
4104 if ac_fn_c_try_compile "$LINENO"; then :
4105 ac_cv_prog_cc_c89=$ac_arg
4106 fi
4107 rm -f core conftest.err conftest.$ac_objext
4108 test "x$ac_cv_prog_cc_c89" != "xno" && break
4109 done
4110 rm -f conftest.$ac_ext
4111 CC=$ac_save_CC
4112
4113 fi
4114 # AC_CACHE_VAL
4115 case "x$ac_cv_prog_cc_c89" in
4116 x)
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4118 $as_echo "none needed" >&6; } ;;
4119 xno)
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4121 $as_echo "unsupported" >&6; } ;;
4122 *)
4123 CC="$CC $ac_cv_prog_cc_c89"
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4125 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4126 esac
4127 if test "x$ac_cv_prog_cc_c89" != xno; then :
4128
4129 fi
4130
4131 ac_ext=c
4132 ac_cpp='$CPP $CPPFLAGS'
4133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4136
4137 ac_ext=c
4138 ac_cpp='$CPP $CPPFLAGS'
4139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4143 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4144 if ${am_cv_prog_cc_c_o+:} false; then :
4145 $as_echo_n "(cached) " >&6
4146 else
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4149
4150 int
4151 main ()
4152 {
4153
4154 ;
4155 return 0;
4156 }
4157 _ACEOF
4158 # Make sure it works both with $CC and with simple cc.
4159 # Following AC_PROG_CC_C_O, we do the test twice because some
4160 # compilers refuse to overwrite an existing .o file with -o,
4161 # though they will create one.
4162 am_cv_prog_cc_c_o=yes
4163 for am_i in 1 2; do
4164 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4165 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4166 ac_status=$?
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); } \
4169 && test -f conftest2.$ac_objext; then
4170 : OK
4171 else
4172 am_cv_prog_cc_c_o=no
4173 break
4174 fi
4175 done
4176 rm -f core conftest*
4177 unset am_i
4178 fi
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4180 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4181 if test "$am_cv_prog_cc_c_o" != yes; then
4182 # Losing compiler, so override with the script.
4183 # FIXME: It is wrong to rewrite CC.
4184 # But if we don't then we get into trouble of one sort or another.
4185 # A longer-term fix would be to have automake use am__CC in this case,
4186 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4187 CC="$am_aux_dir/compile $CC"
4188 fi
4189 ac_ext=c
4190 ac_cpp='$CPP $CPPFLAGS'
4191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4194
4195
4196 depcc="$CC" am_compiler_list=
4197
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4199 $as_echo_n "checking dependency style of $depcc... " >&6; }
4200 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4201 $as_echo_n "(cached) " >&6
4202 else
4203 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4204 # We make a subdir and do the tests there. Otherwise we can end up
4205 # making bogus files that we don't know about and never remove. For
4206 # instance it was reported that on HP-UX the gcc test will end up
4207 # making a dummy file named 'D' -- because '-MD' means "put the output
4208 # in D".
4209 rm -rf conftest.dir
4210 mkdir conftest.dir
4211 # Copy depcomp to subdir because otherwise we won't find it if we're
4212 # using a relative directory.
4213 cp "$am_depcomp" conftest.dir
4214 cd conftest.dir
4215 # We will build objects and dependencies in a subdirectory because
4216 # it helps to detect inapplicable dependency modes. For instance
4217 # both Tru64's cc and ICC support -MD to output dependencies as a
4218 # side effect of compilation, but ICC will put the dependencies in
4219 # the current directory while Tru64 will put them in the object
4220 # directory.
4221 mkdir sub
4222
4223 am_cv_CC_dependencies_compiler_type=none
4224 if test "$am_compiler_list" = ""; then
4225 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4226 fi
4227 am__universal=false
4228 case " $depcc " in #(
4229 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4230 esac
4231
4232 for depmode in $am_compiler_list; do
4233 # Setup a source with many dependencies, because some compilers
4234 # like to wrap large dependency lists on column 80 (with \), and
4235 # we should not choose a depcomp mode which is confused by this.
4236 #
4237 # We need to recreate these files for each test, as the compiler may
4238 # overwrite some of them when testing with obscure command lines.
4239 # This happens at least with the AIX C compiler.
4240 : > sub/conftest.c
4241 for i in 1 2 3 4 5 6; do
4242 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4243 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4244 # Solaris 10 /bin/sh.
4245 echo '/* dummy */' > sub/conftst$i.h
4246 done
4247 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4248
4249 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4250 # mode. It turns out that the SunPro C++ compiler does not properly
4251 # handle '-M -o', and we need to detect this. Also, some Intel
4252 # versions had trouble with output in subdirs.
4253 am__obj=sub/conftest.${OBJEXT-o}
4254 am__minus_obj="-o $am__obj"
4255 case $depmode in
4256 gcc)
4257 # This depmode causes a compiler race in universal mode.
4258 test "$am__universal" = false || continue
4259 ;;
4260 nosideeffect)
4261 # After this tag, mechanisms are not by side-effect, so they'll
4262 # only be used when explicitly requested.
4263 if test "x$enable_dependency_tracking" = xyes; then
4264 continue
4265 else
4266 break
4267 fi
4268 ;;
4269 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4270 # This compiler won't grok '-c -o', but also, the minuso test has
4271 # not run yet. These depmodes are late enough in the game, and
4272 # so weak that their functioning should not be impacted.
4273 am__obj=conftest.${OBJEXT-o}
4274 am__minus_obj=
4275 ;;
4276 none) break ;;
4277 esac
4278 if depmode=$depmode \
4279 source=sub/conftest.c object=$am__obj \
4280 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4281 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4282 >/dev/null 2>conftest.err &&
4283 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4284 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4285 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4286 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4287 # icc doesn't choke on unknown options, it will just issue warnings
4288 # or remarks (even with -Werror). So we grep stderr for any message
4289 # that says an option was ignored or not supported.
4290 # When given -MP, icc 7.0 and 7.1 complain thusly:
4291 # icc: Command line warning: ignoring option '-M'; no argument required
4292 # The diagnosis changed in icc 8.0:
4293 # icc: Command line remark: option '-MP' not supported
4294 if (grep 'ignoring option' conftest.err ||
4295 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4296 am_cv_CC_dependencies_compiler_type=$depmode
4297 break
4298 fi
4299 fi
4300 done
4301
4302 cd ..
4303 rm -rf conftest.dir
4304 else
4305 am_cv_CC_dependencies_compiler_type=none
4306 fi
4307
4308 fi
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4310 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4311 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4312
4313 if
4314 test "x$enable_dependency_tracking" != xno \
4315 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4316 am__fastdepCC_TRUE=
4317 am__fastdepCC_FALSE='#'
4318 else
4319 am__fastdepCC_TRUE='#'
4320 am__fastdepCC_FALSE=
4321 fi
4322
4323
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4325 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4326 if ${ac_cv_path_SED+:} false; then :
4327 $as_echo_n "(cached) " >&6
4328 else
4329 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4330 for ac_i in 1 2 3 4 5 6 7; do
4331 ac_script="$ac_script$as_nl$ac_script"
4332 done
4333 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4334 { ac_script=; unset ac_script;}
4335 if test -z "$SED"; then
4336 ac_path_SED_found=false
4337 # Loop through the user's path and test for each of PROGNAME-LIST
4338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339 for as_dir in $PATH
4340 do
4341 IFS=$as_save_IFS
4342 test -z "$as_dir" && as_dir=.
4343 for ac_prog in sed gsed; do
4344 for ac_exec_ext in '' $ac_executable_extensions; do
4345 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4346 as_fn_executable_p "$ac_path_SED" || continue
4347 # Check for GNU ac_path_SED and select it if it is found.
4348 # Check for GNU $ac_path_SED
4349 case `"$ac_path_SED" --version 2>&1` in
4350 *GNU*)
4351 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4352 *)
4353 ac_count=0
4354 $as_echo_n 0123456789 >"conftest.in"
4355 while :
4356 do
4357 cat "conftest.in" "conftest.in" >"conftest.tmp"
4358 mv "conftest.tmp" "conftest.in"
4359 cp "conftest.in" "conftest.nl"
4360 $as_echo '' >> "conftest.nl"
4361 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4362 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4363 as_fn_arith $ac_count + 1 && ac_count=$as_val
4364 if test $ac_count -gt ${ac_path_SED_max-0}; then
4365 # Best one so far, save it but keep looking for a better one
4366 ac_cv_path_SED="$ac_path_SED"
4367 ac_path_SED_max=$ac_count
4368 fi
4369 # 10*(2^10) chars as input seems more than enough
4370 test $ac_count -gt 10 && break
4371 done
4372 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4373 esac
4374
4375 $ac_path_SED_found && break 3
4376 done
4377 done
4378 done
4379 IFS=$as_save_IFS
4380 if test -z "$ac_cv_path_SED"; then
4381 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4382 fi
4383 else
4384 ac_cv_path_SED=$SED
4385 fi
4386
4387 fi
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4389 $as_echo "$ac_cv_path_SED" >&6; }
4390 SED="$ac_cv_path_SED"
4391 rm -f conftest.sed
4392
4393 test -z "$SED" && SED=sed
4394 Xsed="$SED -e 1s/^X//"
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4407 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4408 if ${ac_cv_path_GREP+:} false; then :
4409 $as_echo_n "(cached) " >&6
4410 else
4411 if test -z "$GREP"; then
4412 ac_path_GREP_found=false
4413 # Loop through the user's path and test for each of PROGNAME-LIST
4414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4416 do
4417 IFS=$as_save_IFS
4418 test -z "$as_dir" && as_dir=.
4419 for ac_prog in grep ggrep; do
4420 for ac_exec_ext in '' $ac_executable_extensions; do
4421 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4422 as_fn_executable_p "$ac_path_GREP" || continue
4423 # Check for GNU ac_path_GREP and select it if it is found.
4424 # Check for GNU $ac_path_GREP
4425 case `"$ac_path_GREP" --version 2>&1` in
4426 *GNU*)
4427 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4428 *)
4429 ac_count=0
4430 $as_echo_n 0123456789 >"conftest.in"
4431 while :
4432 do
4433 cat "conftest.in" "conftest.in" >"conftest.tmp"
4434 mv "conftest.tmp" "conftest.in"
4435 cp "conftest.in" "conftest.nl"
4436 $as_echo 'GREP' >> "conftest.nl"
4437 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4438 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4439 as_fn_arith $ac_count + 1 && ac_count=$as_val
4440 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4441 # Best one so far, save it but keep looking for a better one
4442 ac_cv_path_GREP="$ac_path_GREP"
4443 ac_path_GREP_max=$ac_count
4444 fi
4445 # 10*(2^10) chars as input seems more than enough
4446 test $ac_count -gt 10 && break
4447 done
4448 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4449 esac
4450
4451 $ac_path_GREP_found && break 3
4452 done
4453 done
4454 done
4455 IFS=$as_save_IFS
4456 if test -z "$ac_cv_path_GREP"; then
4457 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4458 fi
4459 else
4460 ac_cv_path_GREP=$GREP
4461 fi
4462
4463 fi
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4465 $as_echo "$ac_cv_path_GREP" >&6; }
4466 GREP="$ac_cv_path_GREP"
4467
4468
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4470 $as_echo_n "checking for egrep... " >&6; }
4471 if ${ac_cv_path_EGREP+:} false; then :
4472 $as_echo_n "(cached) " >&6
4473 else
4474 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4475 then ac_cv_path_EGREP="$GREP -E"
4476 else
4477 if test -z "$EGREP"; then
4478 ac_path_EGREP_found=false
4479 # Loop through the user's path and test for each of PROGNAME-LIST
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4482 do
4483 IFS=$as_save_IFS
4484 test -z "$as_dir" && as_dir=.
4485 for ac_prog in egrep; do
4486 for ac_exec_ext in '' $ac_executable_extensions; do
4487 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4488 as_fn_executable_p "$ac_path_EGREP" || continue
4489 # Check for GNU ac_path_EGREP and select it if it is found.
4490 # Check for GNU $ac_path_EGREP
4491 case `"$ac_path_EGREP" --version 2>&1` in
4492 *GNU*)
4493 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4494 *)
4495 ac_count=0
4496 $as_echo_n 0123456789 >"conftest.in"
4497 while :
4498 do
4499 cat "conftest.in" "conftest.in" >"conftest.tmp"
4500 mv "conftest.tmp" "conftest.in"
4501 cp "conftest.in" "conftest.nl"
4502 $as_echo 'EGREP' >> "conftest.nl"
4503 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4504 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4505 as_fn_arith $ac_count + 1 && ac_count=$as_val
4506 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4507 # Best one so far, save it but keep looking for a better one
4508 ac_cv_path_EGREP="$ac_path_EGREP"
4509 ac_path_EGREP_max=$ac_count
4510 fi
4511 # 10*(2^10) chars as input seems more than enough
4512 test $ac_count -gt 10 && break
4513 done
4514 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4515 esac
4516
4517 $ac_path_EGREP_found && break 3
4518 done
4519 done
4520 done
4521 IFS=$as_save_IFS
4522 if test -z "$ac_cv_path_EGREP"; then
4523 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4524 fi
4525 else
4526 ac_cv_path_EGREP=$EGREP
4527 fi
4528
4529 fi
4530 fi
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4532 $as_echo "$ac_cv_path_EGREP" >&6; }
4533 EGREP="$ac_cv_path_EGREP"
4534
4535
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4537 $as_echo_n "checking for fgrep... " >&6; }
4538 if ${ac_cv_path_FGREP+:} false; then :
4539 $as_echo_n "(cached) " >&6
4540 else
4541 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4542 then ac_cv_path_FGREP="$GREP -F"
4543 else
4544 if test -z "$FGREP"; then
4545 ac_path_FGREP_found=false
4546 # Loop through the user's path and test for each of PROGNAME-LIST
4547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4549 do
4550 IFS=$as_save_IFS
4551 test -z "$as_dir" && as_dir=.
4552 for ac_prog in fgrep; do
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4555 as_fn_executable_p "$ac_path_FGREP" || continue
4556 # Check for GNU ac_path_FGREP and select it if it is found.
4557 # Check for GNU $ac_path_FGREP
4558 case `"$ac_path_FGREP" --version 2>&1` in
4559 *GNU*)
4560 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4561 *)
4562 ac_count=0
4563 $as_echo_n 0123456789 >"conftest.in"
4564 while :
4565 do
4566 cat "conftest.in" "conftest.in" >"conftest.tmp"
4567 mv "conftest.tmp" "conftest.in"
4568 cp "conftest.in" "conftest.nl"
4569 $as_echo 'FGREP' >> "conftest.nl"
4570 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4571 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4572 as_fn_arith $ac_count + 1 && ac_count=$as_val
4573 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4574 # Best one so far, save it but keep looking for a better one
4575 ac_cv_path_FGREP="$ac_path_FGREP"
4576 ac_path_FGREP_max=$ac_count
4577 fi
4578 # 10*(2^10) chars as input seems more than enough
4579 test $ac_count -gt 10 && break
4580 done
4581 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4582 esac
4583
4584 $ac_path_FGREP_found && break 3
4585 done
4586 done
4587 done
4588 IFS=$as_save_IFS
4589 if test -z "$ac_cv_path_FGREP"; then
4590 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4591 fi
4592 else
4593 ac_cv_path_FGREP=$FGREP
4594 fi
4595
4596 fi
4597 fi
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4599 $as_echo "$ac_cv_path_FGREP" >&6; }
4600 FGREP="$ac_cv_path_FGREP"
4601
4602
4603 test -z "$GREP" && GREP=grep
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623 # Check whether --with-gnu-ld was given.
4624 if test "${with_gnu_ld+set}" = set; then :
4625 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4626 else
4627 with_gnu_ld=no
4628 fi
4629
4630 ac_prog=ld
4631 if test yes = "$GCC"; then
4632 # Check if gcc -print-prog-name=ld gives a path.
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4634 $as_echo_n "checking for ld used by $CC... " >&6; }
4635 case $host in
4636 *-*-mingw*)
4637 # gcc leaves a trailing carriage return, which upsets mingw
4638 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4639 *)
4640 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4641 esac
4642 case $ac_prog in
4643 # Accept absolute paths.
4644 [\\/]* | ?:[\\/]*)
4645 re_direlt='/[^/][^/]*/\.\./'
4646 # Canonicalize the pathname of ld
4647 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4648 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4649 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4650 done
4651 test -z "$LD" && LD=$ac_prog
4652 ;;
4653 "")
4654 # If it fails, then pretend we aren't using GCC.
4655 ac_prog=ld
4656 ;;
4657 *)
4658 # If it is relative, then search for the first ld in PATH.
4659 with_gnu_ld=unknown
4660 ;;
4661 esac
4662 elif test yes = "$with_gnu_ld"; then
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4664 $as_echo_n "checking for GNU ld... " >&6; }
4665 else
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4667 $as_echo_n "checking for non-GNU ld... " >&6; }
4668 fi
4669 if ${lt_cv_path_LD+:} false; then :
4670 $as_echo_n "(cached) " >&6
4671 else
4672 if test -z "$LD"; then
4673 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4674 for ac_dir in $PATH; do
4675 IFS=$lt_save_ifs
4676 test -z "$ac_dir" && ac_dir=.
4677 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4678 lt_cv_path_LD=$ac_dir/$ac_prog
4679 # Check to see if the program is GNU ld. I'd rather use --version,
4680 # but apparently some variants of GNU ld only accept -v.
4681 # Break only if it was the GNU/non-GNU ld that we prefer.
4682 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4683 *GNU* | *'with BFD'*)
4684 test no != "$with_gnu_ld" && break
4685 ;;
4686 *)
4687 test yes != "$with_gnu_ld" && break
4688 ;;
4689 esac
4690 fi
4691 done
4692 IFS=$lt_save_ifs
4693 else
4694 lt_cv_path_LD=$LD # Let the user override the test with a path.
4695 fi
4696 fi
4697
4698 LD=$lt_cv_path_LD
4699 if test -n "$LD"; then
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4701 $as_echo "$LD" >&6; }
4702 else
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4704 $as_echo "no" >&6; }
4705 fi
4706 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4708 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4709 if ${lt_cv_prog_gnu_ld+:} false; then :
4710 $as_echo_n "(cached) " >&6
4711 else
4712 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4713 case `$LD -v 2>&1 </dev/null` in
4714 *GNU* | *'with BFD'*)
4715 lt_cv_prog_gnu_ld=yes
4716 ;;
4717 *)
4718 lt_cv_prog_gnu_ld=no
4719 ;;
4720 esac
4721 fi
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4723 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4724 with_gnu_ld=$lt_cv_prog_gnu_ld
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4735 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4736 if ${lt_cv_path_NM+:} false; then :
4737 $as_echo_n "(cached) " >&6
4738 else
4739 if test -n "$NM"; then
4740 # Let the user override the test.
4741 lt_cv_path_NM=$NM
4742 else
4743 lt_nm_to_check=${ac_tool_prefix}nm
4744 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4745 lt_nm_to_check="$lt_nm_to_check nm"
4746 fi
4747 for lt_tmp_nm in $lt_nm_to_check; do
4748 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4749 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4750 IFS=$lt_save_ifs
4751 test -z "$ac_dir" && ac_dir=.
4752 tmp_nm=$ac_dir/$lt_tmp_nm
4753 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4754 # Check to see if the nm accepts a BSD-compat flag.
4755 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4756 # nm: unknown option "B" ignored
4757 # Tru64's nm complains that /dev/null is an invalid object file
4758 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4759 case $build_os in
4760 mingw*) lt_bad_file=conftest.nm/nofile ;;
4761 *) lt_bad_file=/dev/null ;;
4762 esac
4763 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4764 *$lt_bad_file* | *'Invalid file or object type'*)
4765 lt_cv_path_NM="$tmp_nm -B"
4766 break 2
4767 ;;
4768 *)
4769 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4770 */dev/null*)
4771 lt_cv_path_NM="$tmp_nm -p"
4772 break 2
4773 ;;
4774 *)
4775 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4776 continue # so that we can try to find one that supports BSD flags
4777 ;;
4778 esac
4779 ;;
4780 esac
4781 fi
4782 done
4783 IFS=$lt_save_ifs
4784 done
4785 : ${lt_cv_path_NM=no}
4786 fi
4787 fi
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4789 $as_echo "$lt_cv_path_NM" >&6; }
4790 if test no != "$lt_cv_path_NM"; then
4791 NM=$lt_cv_path_NM
4792 else
4793 # Didn't find any BSD compatible name lister, look for dumpbin.
4794 if test -n "$DUMPBIN"; then :
4795 # Let the user override the test.
4796 else
4797 if test -n "$ac_tool_prefix"; then
4798 for ac_prog in dumpbin "link -dump"
4799 do
4800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4801 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4803 $as_echo_n "checking for $ac_word... " >&6; }
4804 if ${ac_cv_prog_DUMPBIN+:} false; then :
4805 $as_echo_n "(cached) " >&6
4806 else
4807 if test -n "$DUMPBIN"; then
4808 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4809 else
4810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811 for as_dir in $PATH
4812 do
4813 IFS=$as_save_IFS
4814 test -z "$as_dir" && as_dir=.
4815 for ac_exec_ext in '' $ac_executable_extensions; do
4816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4817 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4819 break 2
4820 fi
4821 done
4822 done
4823 IFS=$as_save_IFS
4824
4825 fi
4826 fi
4827 DUMPBIN=$ac_cv_prog_DUMPBIN
4828 if test -n "$DUMPBIN"; then
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4830 $as_echo "$DUMPBIN" >&6; }
4831 else
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4833 $as_echo "no" >&6; }
4834 fi
4835
4836
4837 test -n "$DUMPBIN" && break
4838 done
4839 fi
4840 if test -z "$DUMPBIN"; then
4841 ac_ct_DUMPBIN=$DUMPBIN
4842 for ac_prog in dumpbin "link -dump"
4843 do
4844 # Extract the first word of "$ac_prog", so it can be a program name with args.
4845 set dummy $ac_prog; ac_word=$2
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4847 $as_echo_n "checking for $ac_word... " >&6; }
4848 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4849 $as_echo_n "(cached) " >&6
4850 else
4851 if test -n "$ac_ct_DUMPBIN"; then
4852 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4853 else
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_prog_ac_ct_DUMPBIN="$ac_prog"
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 fi
4870 fi
4871 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4872 if test -n "$ac_ct_DUMPBIN"; then
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4874 $as_echo "$ac_ct_DUMPBIN" >&6; }
4875 else
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4877 $as_echo "no" >&6; }
4878 fi
4879
4880
4881 test -n "$ac_ct_DUMPBIN" && break
4882 done
4883
4884 if test "x$ac_ct_DUMPBIN" = x; then
4885 DUMPBIN=":"
4886 else
4887 case $cross_compiling:$ac_tool_warned in
4888 yes:)
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4891 ac_tool_warned=yes ;;
4892 esac
4893 DUMPBIN=$ac_ct_DUMPBIN
4894 fi
4895 fi
4896
4897 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4898 *COFF*)
4899 DUMPBIN="$DUMPBIN -symbols -headers"
4900 ;;
4901 *)
4902 DUMPBIN=:
4903 ;;
4904 esac
4905 fi
4906
4907 if test : != "$DUMPBIN"; then
4908 NM=$DUMPBIN
4909 fi
4910 fi
4911 test -z "$NM" && NM=nm
4912
4913
4914
4915
4916
4917
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4919 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4920 if ${lt_cv_nm_interface+:} false; then :
4921 $as_echo_n "(cached) " >&6
4922 else
4923 lt_cv_nm_interface="BSD nm"
4924 echo "int some_variable = 0;" > conftest.$ac_ext
4925 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4926 (eval "$ac_compile" 2>conftest.err)
4927 cat conftest.err >&5
4928 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4929 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4930 cat conftest.err >&5
4931 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4932 cat conftest.out >&5
4933 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4934 lt_cv_nm_interface="MS dumpbin"
4935 fi
4936 rm -f conftest*
4937 fi
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4939 $as_echo "$lt_cv_nm_interface" >&6; }
4940
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4942 $as_echo_n "checking whether ln -s works... " >&6; }
4943 LN_S=$as_ln_s
4944 if test "$LN_S" = "ln -s"; then
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4946 $as_echo "yes" >&6; }
4947 else
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4949 $as_echo "no, using $LN_S" >&6; }
4950 fi
4951
4952 # find the maximum length of command line arguments
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4954 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4955 if ${lt_cv_sys_max_cmd_len+:} false; then :
4956 $as_echo_n "(cached) " >&6
4957 else
4958 i=0
4959 teststring=ABCD
4960
4961 case $build_os in
4962 msdosdjgpp*)
4963 # On DJGPP, this test can blow up pretty badly due to problems in libc
4964 # (any single argument exceeding 2000 bytes causes a buffer overrun
4965 # during glob expansion). Even if it were fixed, the result of this
4966 # check would be larger than it should be.
4967 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4968 ;;
4969
4970 gnu*)
4971 # Under GNU Hurd, this test is not required because there is
4972 # no limit to the length of command line arguments.
4973 # Libtool will interpret -1 as no limit whatsoever
4974 lt_cv_sys_max_cmd_len=-1;
4975 ;;
4976
4977 cygwin* | mingw* | cegcc*)
4978 # On Win9x/ME, this test blows up -- it succeeds, but takes
4979 # about 5 minutes as the teststring grows exponentially.
4980 # Worse, since 9x/ME are not pre-emptively multitasking,
4981 # you end up with a "frozen" computer, even though with patience
4982 # the test eventually succeeds (with a max line length of 256k).
4983 # Instead, let's just punt: use the minimum linelength reported by
4984 # all of the supported platforms: 8192 (on NT/2K/XP).
4985 lt_cv_sys_max_cmd_len=8192;
4986 ;;
4987
4988 mint*)
4989 # On MiNT this can take a long time and run out of memory.
4990 lt_cv_sys_max_cmd_len=8192;
4991 ;;
4992
4993 amigaos*)
4994 # On AmigaOS with pdksh, this test takes hours, literally.
4995 # So we just punt and use a minimum line length of 8192.
4996 lt_cv_sys_max_cmd_len=8192;
4997 ;;
4998
4999 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5000 # This has been around since 386BSD, at least. Likely further.
5001 if test -x /sbin/sysctl; then
5002 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5003 elif test -x /usr/sbin/sysctl; then
5004 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5005 else
5006 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5007 fi
5008 # And add a safety zone
5009 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5010 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5011 ;;
5012
5013 interix*)
5014 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5015 lt_cv_sys_max_cmd_len=196608
5016 ;;
5017
5018 os2*)
5019 # The test takes a long time on OS/2.
5020 lt_cv_sys_max_cmd_len=8192
5021 ;;
5022
5023 osf*)
5024 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5025 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5026 # nice to cause kernel panics so lets avoid the loop below.
5027 # First set a reasonable default.
5028 lt_cv_sys_max_cmd_len=16384
5029 #
5030 if test -x /sbin/sysconfig; then
5031 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5032 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5033 esac
5034 fi
5035 ;;
5036 sco3.2v5*)
5037 lt_cv_sys_max_cmd_len=102400
5038 ;;
5039 sysv5* | sco5v6* | sysv4.2uw2*)
5040 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5041 if test -n "$kargmax"; then
5042 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5043 else
5044 lt_cv_sys_max_cmd_len=32768
5045 fi
5046 ;;
5047 *)
5048 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5049 if test -n "$lt_cv_sys_max_cmd_len" && \
5050 test undefined != "$lt_cv_sys_max_cmd_len"; then
5051 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5052 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5053 else
5054 # Make teststring a little bigger before we do anything with it.
5055 # a 1K string should be a reasonable start.
5056 for i in 1 2 3 4 5 6 7 8; do
5057 teststring=$teststring$teststring
5058 done
5059 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5060 # If test is not a shell built-in, we'll probably end up computing a
5061 # maximum length that is only half of the actual maximum length, but
5062 # we can't tell.
5063 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5064 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5065 test 17 != "$i" # 1/2 MB should be enough
5066 do
5067 i=`expr $i + 1`
5068 teststring=$teststring$teststring
5069 done
5070 # Only check the string length outside the loop.
5071 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5072 teststring=
5073 # Add a significant safety factor because C++ compilers can tack on
5074 # massive amounts of additional arguments before passing them to the
5075 # linker. It appears as though 1/2 is a usable value.
5076 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5077 fi
5078 ;;
5079 esac
5080
5081 fi
5082
5083 if test -n "$lt_cv_sys_max_cmd_len"; then
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5085 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5086 else
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5088 $as_echo "none" >&6; }
5089 fi
5090 max_cmd_len=$lt_cv_sys_max_cmd_len
5091
5092
5093
5094
5095
5096
5097 : ${CP="cp -f"}
5098 : ${MV="mv -f"}
5099 : ${RM="rm -f"}
5100
5101 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5102 lt_unset=unset
5103 else
5104 lt_unset=false
5105 fi
5106
5107
5108
5109
5110
5111 # test EBCDIC or ASCII
5112 case `echo X|tr X '\101'` in
5113 A) # ASCII based system
5114 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5115 lt_SP2NL='tr \040 \012'
5116 lt_NL2SP='tr \015\012 \040\040'
5117 ;;
5118 *) # EBCDIC based system
5119 lt_SP2NL='tr \100 \n'
5120 lt_NL2SP='tr \r\n \100\100'
5121 ;;
5122 esac
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5133 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5134 if ${lt_cv_to_host_file_cmd+:} false; then :
5135 $as_echo_n "(cached) " >&6
5136 else
5137 case $host in
5138 *-*-mingw* )
5139 case $build in
5140 *-*-mingw* ) # actually msys
5141 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5142 ;;
5143 *-*-cygwin* )
5144 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5145 ;;
5146 * ) # otherwise, assume *nix
5147 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5148 ;;
5149 esac
5150 ;;
5151 *-*-cygwin* )
5152 case $build in
5153 *-*-mingw* ) # actually msys
5154 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5155 ;;
5156 *-*-cygwin* )
5157 lt_cv_to_host_file_cmd=func_convert_file_noop
5158 ;;
5159 * ) # otherwise, assume *nix
5160 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5161 ;;
5162 esac
5163 ;;
5164 * ) # unhandled hosts (and "normal" native builds)
5165 lt_cv_to_host_file_cmd=func_convert_file_noop
5166 ;;
5167 esac
5168
5169 fi
5170
5171 to_host_file_cmd=$lt_cv_to_host_file_cmd
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5173 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5174
5175
5176
5177
5178
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5180 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5181 if ${lt_cv_to_tool_file_cmd+:} false; then :
5182 $as_echo_n "(cached) " >&6
5183 else
5184 #assume ordinary cross tools, or native build.
5185 lt_cv_to_tool_file_cmd=func_convert_file_noop
5186 case $host in
5187 *-*-mingw* )
5188 case $build in
5189 *-*-mingw* ) # actually msys
5190 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5191 ;;
5192 esac
5193 ;;
5194 esac
5195
5196 fi
5197
5198 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5200 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5201
5202
5203
5204
5205
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5207 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5208 if ${lt_cv_ld_reload_flag+:} false; then :
5209 $as_echo_n "(cached) " >&6
5210 else
5211 lt_cv_ld_reload_flag='-r'
5212 fi
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5214 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5215 reload_flag=$lt_cv_ld_reload_flag
5216 case $reload_flag in
5217 "" | " "*) ;;
5218 *) reload_flag=" $reload_flag" ;;
5219 esac
5220 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5221 case $host_os in
5222 cygwin* | mingw* | pw32* | cegcc*)
5223 if test yes != "$GCC"; then
5224 reload_cmds=false
5225 fi
5226 ;;
5227 darwin*)
5228 if test yes = "$GCC"; then
5229 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5230 else
5231 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5232 fi
5233 ;;
5234 esac
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244 if test -n "$ac_tool_prefix"; then
5245 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5246 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248 $as_echo_n "checking for $ac_word... " >&6; }
5249 if ${ac_cv_prog_OBJDUMP+:} false; then :
5250 $as_echo_n "(cached) " >&6
5251 else
5252 if test -n "$OBJDUMP"; then
5253 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5254 else
5255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 for as_dir in $PATH
5257 do
5258 IFS=$as_save_IFS
5259 test -z "$as_dir" && as_dir=.
5260 for ac_exec_ext in '' $ac_executable_extensions; do
5261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5262 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5264 break 2
5265 fi
5266 done
5267 done
5268 IFS=$as_save_IFS
5269
5270 fi
5271 fi
5272 OBJDUMP=$ac_cv_prog_OBJDUMP
5273 if test -n "$OBJDUMP"; then
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5275 $as_echo "$OBJDUMP" >&6; }
5276 else
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5278 $as_echo "no" >&6; }
5279 fi
5280
5281
5282 fi
5283 if test -z "$ac_cv_prog_OBJDUMP"; then
5284 ac_ct_OBJDUMP=$OBJDUMP
5285 # Extract the first word of "objdump", so it can be a program name with args.
5286 set dummy objdump; ac_word=$2
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5288 $as_echo_n "checking for $ac_word... " >&6; }
5289 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5290 $as_echo_n "(cached) " >&6
5291 else
5292 if test -n "$ac_ct_OBJDUMP"; then
5293 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5294 else
5295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5296 for as_dir in $PATH
5297 do
5298 IFS=$as_save_IFS
5299 test -z "$as_dir" && as_dir=.
5300 for ac_exec_ext in '' $ac_executable_extensions; do
5301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5302 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5304 break 2
5305 fi
5306 done
5307 done
5308 IFS=$as_save_IFS
5309
5310 fi
5311 fi
5312 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5313 if test -n "$ac_ct_OBJDUMP"; then
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5315 $as_echo "$ac_ct_OBJDUMP" >&6; }
5316 else
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5318 $as_echo "no" >&6; }
5319 fi
5320
5321 if test "x$ac_ct_OBJDUMP" = x; then
5322 OBJDUMP="false"
5323 else
5324 case $cross_compiling:$ac_tool_warned in
5325 yes:)
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5328 ac_tool_warned=yes ;;
5329 esac
5330 OBJDUMP=$ac_ct_OBJDUMP
5331 fi
5332 else
5333 OBJDUMP="$ac_cv_prog_OBJDUMP"
5334 fi
5335
5336 test -z "$OBJDUMP" && OBJDUMP=objdump
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5347 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5348 if ${lt_cv_deplibs_check_method+:} false; then :
5349 $as_echo_n "(cached) " >&6
5350 else
5351 lt_cv_file_magic_cmd='$MAGIC_CMD'
5352 lt_cv_file_magic_test_file=
5353 lt_cv_deplibs_check_method='unknown'
5354 # Need to set the preceding variable on all platforms that support
5355 # interlibrary dependencies.
5356 # 'none' -- dependencies not supported.
5357 # 'unknown' -- same as none, but documents that we really don't know.
5358 # 'pass_all' -- all dependencies passed with no checks.
5359 # 'test_compile' -- check by making test program.
5360 # 'file_magic [[regex]]' -- check by looking for files in library path
5361 # that responds to the $file_magic_cmd with a given extended regex.
5362 # If you have 'file' or equivalent on your system and you're not sure
5363 # whether 'pass_all' will *always* work, you probably want this one.
5364
5365 case $host_os in
5366 aix[4-9]*)
5367 lt_cv_deplibs_check_method=pass_all
5368 ;;
5369
5370 beos*)
5371 lt_cv_deplibs_check_method=pass_all
5372 ;;
5373
5374 bsdi[45]*)
5375 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5376 lt_cv_file_magic_cmd='/usr/bin/file -L'
5377 lt_cv_file_magic_test_file=/shlib/libc.so
5378 ;;
5379
5380 cygwin*)
5381 # func_win32_libid is a shell function defined in ltmain.sh
5382 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5383 lt_cv_file_magic_cmd='func_win32_libid'
5384 ;;
5385
5386 mingw* | pw32*)
5387 # Base MSYS/MinGW do not provide the 'file' command needed by
5388 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5389 # unless we find 'file', for example because we are cross-compiling.
5390 if ( file / ) >/dev/null 2>&1; then
5391 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5392 lt_cv_file_magic_cmd='func_win32_libid'
5393 else
5394 # Keep this pattern in sync with the one in func_win32_libid.
5395 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5396 lt_cv_file_magic_cmd='$OBJDUMP -f'
5397 fi
5398 ;;
5399
5400 cegcc*)
5401 # use the weaker test based on 'objdump'. See mingw*.
5402 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5403 lt_cv_file_magic_cmd='$OBJDUMP -f'
5404 ;;
5405
5406 darwin* | rhapsody*)
5407 lt_cv_deplibs_check_method=pass_all
5408 ;;
5409
5410 freebsd* | dragonfly*)
5411 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5412 case $host_cpu in
5413 i*86 )
5414 # Not sure whether the presence of OpenBSD here was a mistake.
5415 # Let's accept both of them until this is cleared up.
5416 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5417 lt_cv_file_magic_cmd=/usr/bin/file
5418 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5419 ;;
5420 esac
5421 else
5422 lt_cv_deplibs_check_method=pass_all
5423 fi
5424 ;;
5425
5426 haiku*)
5427 lt_cv_deplibs_check_method=pass_all
5428 ;;
5429
5430 hpux10.20* | hpux11*)
5431 lt_cv_file_magic_cmd=/usr/bin/file
5432 case $host_cpu in
5433 ia64*)
5434 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5435 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5436 ;;
5437 hppa*64*)
5438 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]'
5439 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5440 ;;
5441 *)
5442 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5443 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5444 ;;
5445 esac
5446 ;;
5447
5448 interix[3-9]*)
5449 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5450 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5451 ;;
5452
5453 irix5* | irix6* | nonstopux*)
5454 case $LD in
5455 *-32|*"-32 ") libmagic=32-bit;;
5456 *-n32|*"-n32 ") libmagic=N32;;
5457 *-64|*"-64 ") libmagic=64-bit;;
5458 *) libmagic=never-match;;
5459 esac
5460 lt_cv_deplibs_check_method=pass_all
5461 ;;
5462
5463 # This must be glibc/ELF.
5464 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5465 lt_cv_deplibs_check_method=pass_all
5466 ;;
5467
5468 netbsd* | netbsdelf*-gnu)
5469 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5470 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5471 else
5472 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5473 fi
5474 ;;
5475
5476 newos6*)
5477 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5478 lt_cv_file_magic_cmd=/usr/bin/file
5479 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5480 ;;
5481
5482 *nto* | *qnx*)
5483 lt_cv_deplibs_check_method=pass_all
5484 ;;
5485
5486 openbsd* | bitrig*)
5487 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5488 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5489 else
5490 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5491 fi
5492 ;;
5493
5494 osf3* | osf4* | osf5*)
5495 lt_cv_deplibs_check_method=pass_all
5496 ;;
5497
5498 rdos*)
5499 lt_cv_deplibs_check_method=pass_all
5500 ;;
5501
5502 solaris*)
5503 lt_cv_deplibs_check_method=pass_all
5504 ;;
5505
5506 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5507 lt_cv_deplibs_check_method=pass_all
5508 ;;
5509
5510 sysv4 | sysv4.3*)
5511 case $host_vendor in
5512 motorola)
5513 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]'
5514 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5515 ;;
5516 ncr)
5517 lt_cv_deplibs_check_method=pass_all
5518 ;;
5519 sequent)
5520 lt_cv_file_magic_cmd='/bin/file'
5521 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5522 ;;
5523 sni)
5524 lt_cv_file_magic_cmd='/bin/file'
5525 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5526 lt_cv_file_magic_test_file=/lib/libc.so
5527 ;;
5528 siemens)
5529 lt_cv_deplibs_check_method=pass_all
5530 ;;
5531 pc)
5532 lt_cv_deplibs_check_method=pass_all
5533 ;;
5534 esac
5535 ;;
5536
5537 tpf*)
5538 lt_cv_deplibs_check_method=pass_all
5539 ;;
5540 os2*)
5541 lt_cv_deplibs_check_method=pass_all
5542 ;;
5543 esac
5544
5545 fi
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5547 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5548
5549 file_magic_glob=
5550 want_nocaseglob=no
5551 if test "$build" = "$host"; then
5552 case $host_os in
5553 mingw* | pw32*)
5554 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5555 want_nocaseglob=yes
5556 else
5557 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5558 fi
5559 ;;
5560 esac
5561 fi
5562
5563 file_magic_cmd=$lt_cv_file_magic_cmd
5564 deplibs_check_method=$lt_cv_deplibs_check_method
5565 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588 if test -n "$ac_tool_prefix"; then
5589 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5590 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5592 $as_echo_n "checking for $ac_word... " >&6; }
5593 if ${ac_cv_prog_DLLTOOL+:} false; then :
5594 $as_echo_n "(cached) " >&6
5595 else
5596 if test -n "$DLLTOOL"; then
5597 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5598 else
5599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5600 for as_dir in $PATH
5601 do
5602 IFS=$as_save_IFS
5603 test -z "$as_dir" && as_dir=.
5604 for ac_exec_ext in '' $ac_executable_extensions; do
5605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5606 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5608 break 2
5609 fi
5610 done
5611 done
5612 IFS=$as_save_IFS
5613
5614 fi
5615 fi
5616 DLLTOOL=$ac_cv_prog_DLLTOOL
5617 if test -n "$DLLTOOL"; then
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5619 $as_echo "$DLLTOOL" >&6; }
5620 else
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5622 $as_echo "no" >&6; }
5623 fi
5624
5625
5626 fi
5627 if test -z "$ac_cv_prog_DLLTOOL"; then
5628 ac_ct_DLLTOOL=$DLLTOOL
5629 # Extract the first word of "dlltool", so it can be a program name with args.
5630 set dummy dlltool; ac_word=$2
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5632 $as_echo_n "checking for $ac_word... " >&6; }
5633 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5634 $as_echo_n "(cached) " >&6
5635 else
5636 if test -n "$ac_ct_DLLTOOL"; then
5637 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5638 else
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640 for as_dir in $PATH
5641 do
5642 IFS=$as_save_IFS
5643 test -z "$as_dir" && as_dir=.
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5646 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5648 break 2
5649 fi
5650 done
5651 done
5652 IFS=$as_save_IFS
5653
5654 fi
5655 fi
5656 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5657 if test -n "$ac_ct_DLLTOOL"; then
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5659 $as_echo "$ac_ct_DLLTOOL" >&6; }
5660 else
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662 $as_echo "no" >&6; }
5663 fi
5664
5665 if test "x$ac_ct_DLLTOOL" = x; then
5666 DLLTOOL="false"
5667 else
5668 case $cross_compiling:$ac_tool_warned in
5669 yes:)
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5672 ac_tool_warned=yes ;;
5673 esac
5674 DLLTOOL=$ac_ct_DLLTOOL
5675 fi
5676 else
5677 DLLTOOL="$ac_cv_prog_DLLTOOL"
5678 fi
5679
5680 test -z "$DLLTOOL" && DLLTOOL=dlltool
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5692 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5693 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5694 $as_echo_n "(cached) " >&6
5695 else
5696 lt_cv_sharedlib_from_linklib_cmd='unknown'
5697
5698 case $host_os in
5699 cygwin* | mingw* | pw32* | cegcc*)
5700 # two different shell functions defined in ltmain.sh;
5701 # decide which one to use based on capabilities of $DLLTOOL
5702 case `$DLLTOOL --help 2>&1` in
5703 *--identify-strict*)
5704 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5705 ;;
5706 *)
5707 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5708 ;;
5709 esac
5710 ;;
5711 *)
5712 # fallback: assume linklib IS sharedlib
5713 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5714 ;;
5715 esac
5716
5717 fi
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5719 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5720 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5721 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5722
5723
5724
5725
5726
5727
5728
5729
5730 if test -n "$ac_tool_prefix"; then
5731 for ac_prog in ar
5732 do
5733 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5734 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5736 $as_echo_n "checking for $ac_word... " >&6; }
5737 if ${ac_cv_prog_AR+:} false; then :
5738 $as_echo_n "(cached) " >&6
5739 else
5740 if test -n "$AR"; then
5741 ac_cv_prog_AR="$AR" # Let the user override the test.
5742 else
5743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5744 for as_dir in $PATH
5745 do
5746 IFS=$as_save_IFS
5747 test -z "$as_dir" && as_dir=.
5748 for ac_exec_ext in '' $ac_executable_extensions; do
5749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5750 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5752 break 2
5753 fi
5754 done
5755 done
5756 IFS=$as_save_IFS
5757
5758 fi
5759 fi
5760 AR=$ac_cv_prog_AR
5761 if test -n "$AR"; then
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5763 $as_echo "$AR" >&6; }
5764 else
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5766 $as_echo "no" >&6; }
5767 fi
5768
5769
5770 test -n "$AR" && break
5771 done
5772 fi
5773 if test -z "$AR"; then
5774 ac_ct_AR=$AR
5775 for ac_prog in ar
5776 do
5777 # Extract the first word of "$ac_prog", so it can be a program name with args.
5778 set dummy $ac_prog; ac_word=$2
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5780 $as_echo_n "checking for $ac_word... " >&6; }
5781 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5782 $as_echo_n "(cached) " >&6
5783 else
5784 if test -n "$ac_ct_AR"; then
5785 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5786 else
5787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5788 for as_dir in $PATH
5789 do
5790 IFS=$as_save_IFS
5791 test -z "$as_dir" && as_dir=.
5792 for ac_exec_ext in '' $ac_executable_extensions; do
5793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5794 ac_cv_prog_ac_ct_AR="$ac_prog"
5795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5796 break 2
5797 fi
5798 done
5799 done
5800 IFS=$as_save_IFS
5801
5802 fi
5803 fi
5804 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5805 if test -n "$ac_ct_AR"; then
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5807 $as_echo "$ac_ct_AR" >&6; }
5808 else
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5810 $as_echo "no" >&6; }
5811 fi
5812
5813
5814 test -n "$ac_ct_AR" && break
5815 done
5816
5817 if test "x$ac_ct_AR" = x; then
5818 AR="false"
5819 else
5820 case $cross_compiling:$ac_tool_warned in
5821 yes:)
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5824 ac_tool_warned=yes ;;
5825 esac
5826 AR=$ac_ct_AR
5827 fi
5828 fi
5829
5830 : ${AR=ar}
5831 : ${AR_FLAGS=cru}
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5844 $as_echo_n "checking for archiver @FILE support... " >&6; }
5845 if ${lt_cv_ar_at_file+:} false; then :
5846 $as_echo_n "(cached) " >&6
5847 else
5848 lt_cv_ar_at_file=no
5849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5850 /* end confdefs.h. */
5851
5852 int
5853 main ()
5854 {
5855
5856 ;
5857 return 0;
5858 }
5859 _ACEOF
5860 if ac_fn_c_try_compile "$LINENO"; then :
5861 echo conftest.$ac_objext > conftest.lst
5862 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5864 (eval $lt_ar_try) 2>&5
5865 ac_status=$?
5866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5867 test $ac_status = 0; }
5868 if test 0 -eq "$ac_status"; then
5869 # Ensure the archiver fails upon bogus file names.
5870 rm -f conftest.$ac_objext libconftest.a
5871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5872 (eval $lt_ar_try) 2>&5
5873 ac_status=$?
5874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5875 test $ac_status = 0; }
5876 if test 0 -ne "$ac_status"; then
5877 lt_cv_ar_at_file=@
5878 fi
5879 fi
5880 rm -f conftest.* libconftest.a
5881
5882 fi
5883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5884
5885 fi
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5887 $as_echo "$lt_cv_ar_at_file" >&6; }
5888
5889 if test no = "$lt_cv_ar_at_file"; then
5890 archiver_list_spec=
5891 else
5892 archiver_list_spec=$lt_cv_ar_at_file
5893 fi
5894
5895
5896
5897
5898
5899
5900
5901 if test -n "$ac_tool_prefix"; then
5902 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5903 set dummy ${ac_tool_prefix}strip; ac_word=$2
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5905 $as_echo_n "checking for $ac_word... " >&6; }
5906 if ${ac_cv_prog_STRIP+:} false; then :
5907 $as_echo_n "(cached) " >&6
5908 else
5909 if test -n "$STRIP"; then
5910 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5911 else
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH
5914 do
5915 IFS=$as_save_IFS
5916 test -z "$as_dir" && as_dir=.
5917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5919 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5921 break 2
5922 fi
5923 done
5924 done
5925 IFS=$as_save_IFS
5926
5927 fi
5928 fi
5929 STRIP=$ac_cv_prog_STRIP
5930 if test -n "$STRIP"; then
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5932 $as_echo "$STRIP" >&6; }
5933 else
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5935 $as_echo "no" >&6; }
5936 fi
5937
5938
5939 fi
5940 if test -z "$ac_cv_prog_STRIP"; then
5941 ac_ct_STRIP=$STRIP
5942 # Extract the first word of "strip", so it can be a program name with args.
5943 set dummy strip; ac_word=$2
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5945 $as_echo_n "checking for $ac_word... " >&6; }
5946 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5947 $as_echo_n "(cached) " >&6
5948 else
5949 if test -n "$ac_ct_STRIP"; then
5950 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5951 else
5952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953 for as_dir in $PATH
5954 do
5955 IFS=$as_save_IFS
5956 test -z "$as_dir" && as_dir=.
5957 for ac_exec_ext in '' $ac_executable_extensions; do
5958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5959 ac_cv_prog_ac_ct_STRIP="strip"
5960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5961 break 2
5962 fi
5963 done
5964 done
5965 IFS=$as_save_IFS
5966
5967 fi
5968 fi
5969 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5970 if test -n "$ac_ct_STRIP"; then
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5972 $as_echo "$ac_ct_STRIP" >&6; }
5973 else
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5975 $as_echo "no" >&6; }
5976 fi
5977
5978 if test "x$ac_ct_STRIP" = x; then
5979 STRIP=":"
5980 else
5981 case $cross_compiling:$ac_tool_warned in
5982 yes:)
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5985 ac_tool_warned=yes ;;
5986 esac
5987 STRIP=$ac_ct_STRIP
5988 fi
5989 else
5990 STRIP="$ac_cv_prog_STRIP"
5991 fi
5992
5993 test -z "$STRIP" && STRIP=:
5994
5995
5996
5997
5998
5999
6000 if test -n "$ac_tool_prefix"; then
6001 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6002 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6004 $as_echo_n "checking for $ac_word... " >&6; }
6005 if ${ac_cv_prog_RANLIB+:} false; then :
6006 $as_echo_n "(cached) " >&6
6007 else
6008 if test -n "$RANLIB"; then
6009 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6010 else
6011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012 for as_dir in $PATH
6013 do
6014 IFS=$as_save_IFS
6015 test -z "$as_dir" && as_dir=.
6016 for ac_exec_ext in '' $ac_executable_extensions; do
6017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6018 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6020 break 2
6021 fi
6022 done
6023 done
6024 IFS=$as_save_IFS
6025
6026 fi
6027 fi
6028 RANLIB=$ac_cv_prog_RANLIB
6029 if test -n "$RANLIB"; then
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6031 $as_echo "$RANLIB" >&6; }
6032 else
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6034 $as_echo "no" >&6; }
6035 fi
6036
6037
6038 fi
6039 if test -z "$ac_cv_prog_RANLIB"; then
6040 ac_ct_RANLIB=$RANLIB
6041 # Extract the first word of "ranlib", so it can be a program name with args.
6042 set dummy ranlib; ac_word=$2
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6044 $as_echo_n "checking for $ac_word... " >&6; }
6045 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6046 $as_echo_n "(cached) " >&6
6047 else
6048 if test -n "$ac_ct_RANLIB"; then
6049 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6050 else
6051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 for as_dir in $PATH
6053 do
6054 IFS=$as_save_IFS
6055 test -z "$as_dir" && as_dir=.
6056 for ac_exec_ext in '' $ac_executable_extensions; do
6057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6058 ac_cv_prog_ac_ct_RANLIB="ranlib"
6059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6060 break 2
6061 fi
6062 done
6063 done
6064 IFS=$as_save_IFS
6065
6066 fi
6067 fi
6068 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6069 if test -n "$ac_ct_RANLIB"; then
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6071 $as_echo "$ac_ct_RANLIB" >&6; }
6072 else
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6074 $as_echo "no" >&6; }
6075 fi
6076
6077 if test "x$ac_ct_RANLIB" = x; then
6078 RANLIB=":"
6079 else
6080 case $cross_compiling:$ac_tool_warned in
6081 yes:)
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6084 ac_tool_warned=yes ;;
6085 esac
6086 RANLIB=$ac_ct_RANLIB
6087 fi
6088 else
6089 RANLIB="$ac_cv_prog_RANLIB"
6090 fi
6091
6092 test -z "$RANLIB" && RANLIB=:
6093
6094
6095
6096
6097
6098
6099 # Determine commands to create old-style static archives.
6100 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6101 old_postinstall_cmds='chmod 644 $oldlib'
6102 old_postuninstall_cmds=
6103
6104 if test -n "$RANLIB"; then
6105 case $host_os in
6106 bitrig* | openbsd*)
6107 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6108 ;;
6109 *)
6110 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6111 ;;
6112 esac
6113 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6114 fi
6115
6116 case $host_os in
6117 darwin*)
6118 lock_old_archive_extraction=yes ;;
6119 *)
6120 lock_old_archive_extraction=no ;;
6121 esac
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161 # If no C compiler was specified, use CC.
6162 LTCC=${LTCC-"$CC"}
6163
6164 # If no C compiler flags were specified, use CFLAGS.
6165 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6166
6167 # Allow CC to be a program name with arguments.
6168 compiler=$CC
6169
6170
6171 # Check for command to grab the raw symbol name followed by C symbol from nm.
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6173 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6174 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6175 $as_echo_n "(cached) " >&6
6176 else
6177
6178 # These are sane defaults that work on at least a few old systems.
6179 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6180
6181 # Character class describing NM global symbol codes.
6182 symcode='[BCDEGRST]'
6183
6184 # Regexp to match symbols that can be accessed directly from C.
6185 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6186
6187 # Define system-specific variables.
6188 case $host_os in
6189 aix*)
6190 symcode='[BCDT]'
6191 ;;
6192 cygwin* | mingw* | pw32* | cegcc*)
6193 symcode='[ABCDGISTW]'
6194 ;;
6195 hpux*)
6196 if test ia64 = "$host_cpu"; then
6197 symcode='[ABCDEGRST]'
6198 fi
6199 ;;
6200 irix* | nonstopux*)
6201 symcode='[BCDEGRST]'
6202 ;;
6203 osf*)
6204 symcode='[BCDEGQRST]'
6205 ;;
6206 solaris*)
6207 symcode='[BDRT]'
6208 ;;
6209 sco3.2v5*)
6210 symcode='[DT]'
6211 ;;
6212 sysv4.2uw2*)
6213 symcode='[DT]'
6214 ;;
6215 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6216 symcode='[ABDT]'
6217 ;;
6218 sysv4)
6219 symcode='[DFNSTU]'
6220 ;;
6221 esac
6222
6223 # If we're using GNU nm, then use its standard symbol codes.
6224 case `$NM -V 2>&1` in
6225 *GNU* | *'with BFD'*)
6226 symcode='[ABCDGIRSTW]' ;;
6227 esac
6228
6229 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6230 # Gets list of data symbols to import.
6231 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6232 # Adjust the below global symbol transforms to fixup imported variables.
6233 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6234 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6235 lt_c_name_lib_hook="\
6236 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6237 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6238 else
6239 # Disable hooks by default.
6240 lt_cv_sys_global_symbol_to_import=
6241 lt_cdecl_hook=
6242 lt_c_name_hook=
6243 lt_c_name_lib_hook=
6244 fi
6245
6246 # Transform an extracted symbol line into a proper C declaration.
6247 # Some systems (esp. on ia64) link data and code symbols differently,
6248 # so use this general approach.
6249 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6250 $lt_cdecl_hook\
6251 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6252 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6253
6254 # Transform an extracted symbol line into symbol name and symbol address
6255 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6256 $lt_c_name_hook\
6257 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6258 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6259
6260 # Transform an extracted symbol line into symbol name with lib prefix and
6261 # symbol address.
6262 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6263 $lt_c_name_lib_hook\
6264 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6265 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6266 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6267
6268 # Handle CRLF in mingw tool chain
6269 opt_cr=
6270 case $build_os in
6271 mingw*)
6272 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6273 ;;
6274 esac
6275
6276 # Try without a prefix underscore, then with it.
6277 for ac_symprfx in "" "_"; do
6278
6279 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6280 symxfrm="\\1 $ac_symprfx\\2 \\2"
6281
6282 # Write the raw and C identifiers.
6283 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6284 # Fake it for dumpbin and say T for any non-static function,
6285 # D for any global variable and I for any imported variable.
6286 # Also find C++ and __fastcall symbols from MSVC++,
6287 # which start with @ or ?.
6288 lt_cv_sys_global_symbol_pipe="$AWK '"\
6289 " {last_section=section; section=\$ 3};"\
6290 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6291 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6292 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6293 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6294 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6295 " \$ 0!~/External *\|/{next};"\
6296 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6297 " {if(hide[section]) next};"\
6298 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6299 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6300 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6301 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6302 " ' prfx=^$ac_symprfx"
6303 else
6304 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6305 fi
6306 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6307
6308 # Check to see that the pipe works correctly.
6309 pipe_works=no
6310
6311 rm -f conftest*
6312 cat > conftest.$ac_ext <<_LT_EOF
6313 #ifdef __cplusplus
6314 extern "C" {
6315 #endif
6316 char nm_test_var;
6317 void nm_test_func(void);
6318 void nm_test_func(void){}
6319 #ifdef __cplusplus
6320 }
6321 #endif
6322 int main(){nm_test_var='a';nm_test_func();return(0);}
6323 _LT_EOF
6324
6325 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6326 (eval $ac_compile) 2>&5
6327 ac_status=$?
6328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6329 test $ac_status = 0; }; then
6330 # Now try to grab the symbols.
6331 nlist=conftest.nm
6332 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6333 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6334 # Try sorting and uniquifying the output.
6335 if sort "$nlist" | uniq > "$nlist"T; then
6336 mv -f "$nlist"T "$nlist"
6337 else
6338 rm -f "$nlist"T
6339 fi
6340
6341 # Make sure that we snagged all the symbols we need.
6342 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6343 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6344 cat <<_LT_EOF > conftest.$ac_ext
6345 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6346 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6347 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6348 relocations are performed -- see ld's documentation on pseudo-relocs. */
6349 # define LT_DLSYM_CONST
6350 #elif defined __osf__
6351 /* This system does not cope well with relocations in const data. */
6352 # define LT_DLSYM_CONST
6353 #else
6354 # define LT_DLSYM_CONST const
6355 #endif
6356
6357 #ifdef __cplusplus
6358 extern "C" {
6359 #endif
6360
6361 _LT_EOF
6362 # Now generate the symbol file.
6363 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6364
6365 cat <<_LT_EOF >> conftest.$ac_ext
6366
6367 /* The mapping between symbol names and symbols. */
6368 LT_DLSYM_CONST struct {
6369 const char *name;
6370 void *address;
6371 }
6372 lt__PROGRAM__LTX_preloaded_symbols[] =
6373 {
6374 { "@PROGRAM@", (void *) 0 },
6375 _LT_EOF
6376 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6377 cat <<\_LT_EOF >> conftest.$ac_ext
6378 {0, (void *) 0}
6379 };
6380
6381 /* This works around a problem in FreeBSD linker */
6382 #ifdef FREEBSD_WORKAROUND
6383 static const void *lt_preloaded_setup() {
6384 return lt__PROGRAM__LTX_preloaded_symbols;
6385 }
6386 #endif
6387
6388 #ifdef __cplusplus
6389 }
6390 #endif
6391 _LT_EOF
6392 # Now try linking the two files.
6393 mv conftest.$ac_objext conftstm.$ac_objext
6394 lt_globsym_save_LIBS=$LIBS
6395 lt_globsym_save_CFLAGS=$CFLAGS
6396 LIBS=conftstm.$ac_objext
6397 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6398 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6399 (eval $ac_link) 2>&5
6400 ac_status=$?
6401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6402 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6403 pipe_works=yes
6404 fi
6405 LIBS=$lt_globsym_save_LIBS
6406 CFLAGS=$lt_globsym_save_CFLAGS
6407 else
6408 echo "cannot find nm_test_func in $nlist" >&5
6409 fi
6410 else
6411 echo "cannot find nm_test_var in $nlist" >&5
6412 fi
6413 else
6414 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6415 fi
6416 else
6417 echo "$progname: failed program was:" >&5
6418 cat conftest.$ac_ext >&5
6419 fi
6420 rm -rf conftest* conftst*
6421
6422 # Do not use the global_symbol_pipe unless it works.
6423 if test yes = "$pipe_works"; then
6424 break
6425 else
6426 lt_cv_sys_global_symbol_pipe=
6427 fi
6428 done
6429
6430 fi
6431
6432 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6433 lt_cv_sys_global_symbol_to_cdecl=
6434 fi
6435 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6437 $as_echo "failed" >&6; }
6438 else
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6440 $as_echo "ok" >&6; }
6441 fi
6442
6443 # Response file support.
6444 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6445 nm_file_list_spec='@'
6446 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6447 nm_file_list_spec='@'
6448 fi
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6487 $as_echo_n "checking for sysroot... " >&6; }
6488
6489 # Check whether --with-sysroot was given.
6490 if test "${with_sysroot+set}" = set; then :
6491 withval=$with_sysroot;
6492 else
6493 with_sysroot=no
6494 fi
6495
6496
6497 lt_sysroot=
6498 case $with_sysroot in #(
6499 yes)
6500 if test yes = "$GCC"; then
6501 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6502 fi
6503 ;; #(
6504 /*)
6505 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6506 ;; #(
6507 no|'')
6508 ;; #(
6509 *)
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6511 $as_echo "$with_sysroot" >&6; }
6512 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6513 ;;
6514 esac
6515
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6517 $as_echo "${lt_sysroot:-no}" >&6; }
6518
6519
6520
6521
6522
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6524 $as_echo_n "checking for a working dd... " >&6; }
6525 if ${ac_cv_path_lt_DD+:} false; then :
6526 $as_echo_n "(cached) " >&6
6527 else
6528 printf 0123456789abcdef0123456789abcdef >conftest.i
6529 cat conftest.i conftest.i >conftest2.i
6530 : ${lt_DD:=$DD}
6531 if test -z "$lt_DD"; then
6532 ac_path_lt_DD_found=false
6533 # Loop through the user's path and test for each of PROGNAME-LIST
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 for as_dir in $PATH
6536 do
6537 IFS=$as_save_IFS
6538 test -z "$as_dir" && as_dir=.
6539 for ac_prog in dd; do
6540 for ac_exec_ext in '' $ac_executable_extensions; do
6541 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6542 as_fn_executable_p "$ac_path_lt_DD" || continue
6543 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6544 cmp -s conftest.i conftest.out \
6545 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6546 fi
6547 $ac_path_lt_DD_found && break 3
6548 done
6549 done
6550 done
6551 IFS=$as_save_IFS
6552 if test -z "$ac_cv_path_lt_DD"; then
6553 :
6554 fi
6555 else
6556 ac_cv_path_lt_DD=$lt_DD
6557 fi
6558
6559 rm -f conftest.i conftest2.i conftest.out
6560 fi
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6562 $as_echo "$ac_cv_path_lt_DD" >&6; }
6563
6564
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6566 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6567 if ${lt_cv_truncate_bin+:} false; then :
6568 $as_echo_n "(cached) " >&6
6569 else
6570 printf 0123456789abcdef0123456789abcdef >conftest.i
6571 cat conftest.i conftest.i >conftest2.i
6572 lt_cv_truncate_bin=
6573 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6574 cmp -s conftest.i conftest.out \
6575 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6576 fi
6577 rm -f conftest.i conftest2.i conftest.out
6578 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6579 fi
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6581 $as_echo "$lt_cv_truncate_bin" >&6; }
6582
6583
6584
6585
6586
6587
6588
6589 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6590 func_cc_basename ()
6591 {
6592 for cc_temp in $*""; do
6593 case $cc_temp in
6594 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6595 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6596 \-*) ;;
6597 *) break;;
6598 esac
6599 done
6600 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6601 }
6602
6603 # Check whether --enable-libtool-lock was given.
6604 if test "${enable_libtool_lock+set}" = set; then :
6605 enableval=$enable_libtool_lock;
6606 fi
6607
6608 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6609
6610 # Some flags need to be propagated to the compiler or linker for good
6611 # libtool support.
6612 case $host in
6613 ia64-*-hpux*)
6614 # Find out what ABI is being produced by ac_compile, and set mode
6615 # options accordingly.
6616 echo 'int i;' > conftest.$ac_ext
6617 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6618 (eval $ac_compile) 2>&5
6619 ac_status=$?
6620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6621 test $ac_status = 0; }; then
6622 case `/usr/bin/file conftest.$ac_objext` in
6623 *ELF-32*)
6624 HPUX_IA64_MODE=32
6625 ;;
6626 *ELF-64*)
6627 HPUX_IA64_MODE=64
6628 ;;
6629 esac
6630 fi
6631 rm -rf conftest*
6632 ;;
6633 *-*-irix6*)
6634 # Find out what ABI is being produced by ac_compile, and set linker
6635 # options accordingly.
6636 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6638 (eval $ac_compile) 2>&5
6639 ac_status=$?
6640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6641 test $ac_status = 0; }; then
6642 if test yes = "$lt_cv_prog_gnu_ld"; then
6643 case `/usr/bin/file conftest.$ac_objext` in
6644 *32-bit*)
6645 LD="${LD-ld} -melf32bsmip"
6646 ;;
6647 *N32*)
6648 LD="${LD-ld} -melf32bmipn32"
6649 ;;
6650 *64-bit*)
6651 LD="${LD-ld} -melf64bmip"
6652 ;;
6653 esac
6654 else
6655 case `/usr/bin/file conftest.$ac_objext` in
6656 *32-bit*)
6657 LD="${LD-ld} -32"
6658 ;;
6659 *N32*)
6660 LD="${LD-ld} -n32"
6661 ;;
6662 *64-bit*)
6663 LD="${LD-ld} -64"
6664 ;;
6665 esac
6666 fi
6667 fi
6668 rm -rf conftest*
6669 ;;
6670
6671 mips64*-*linux*)
6672 # Find out what ABI is being produced by ac_compile, and set linker
6673 # options accordingly.
6674 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6676 (eval $ac_compile) 2>&5
6677 ac_status=$?
6678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6679 test $ac_status = 0; }; then
6680 emul=elf
6681 case `/usr/bin/file conftest.$ac_objext` in
6682 *32-bit*)
6683 emul="${emul}32"
6684 ;;
6685 *64-bit*)
6686 emul="${emul}64"
6687 ;;
6688 esac
6689 case `/usr/bin/file conftest.$ac_objext` in
6690 *MSB*)
6691 emul="${emul}btsmip"
6692 ;;
6693 *LSB*)
6694 emul="${emul}ltsmip"
6695 ;;
6696 esac
6697 case `/usr/bin/file conftest.$ac_objext` in
6698 *N32*)
6699 emul="${emul}n32"
6700 ;;
6701 esac
6702 LD="${LD-ld} -m $emul"
6703 fi
6704 rm -rf conftest*
6705 ;;
6706
6707 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6708 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6709 # Find out what ABI is being produced by ac_compile, and set linker
6710 # options accordingly. Note that the listed cases only cover the
6711 # situations where additional linker options are needed (such as when
6712 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6713 # vice versa); the common cases where no linker options are needed do
6714 # not appear in the list.
6715 echo 'int i;' > conftest.$ac_ext
6716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6717 (eval $ac_compile) 2>&5
6718 ac_status=$?
6719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6720 test $ac_status = 0; }; then
6721 case `/usr/bin/file conftest.o` in
6722 *32-bit*)
6723 case $host in
6724 x86_64-*kfreebsd*-gnu)
6725 LD="${LD-ld} -m elf_i386_fbsd"
6726 ;;
6727 x86_64-*linux*)
6728 case `/usr/bin/file conftest.o` in
6729 *x86-64*)
6730 LD="${LD-ld} -m elf32_x86_64"
6731 ;;
6732 *)
6733 LD="${LD-ld} -m elf_i386"
6734 ;;
6735 esac
6736 ;;
6737 powerpc64le-*linux*)
6738 LD="${LD-ld} -m elf32lppclinux"
6739 ;;
6740 powerpc64-*linux*)
6741 LD="${LD-ld} -m elf32ppclinux"
6742 ;;
6743 s390x-*linux*)
6744 LD="${LD-ld} -m elf_s390"
6745 ;;
6746 sparc64-*linux*)
6747 LD="${LD-ld} -m elf32_sparc"
6748 ;;
6749 esac
6750 ;;
6751 *64-bit*)
6752 case $host in
6753 x86_64-*kfreebsd*-gnu)
6754 LD="${LD-ld} -m elf_x86_64_fbsd"
6755 ;;
6756 x86_64-*linux*)
6757 LD="${LD-ld} -m elf_x86_64"
6758 ;;
6759 powerpcle-*linux*)
6760 LD="${LD-ld} -m elf64lppc"
6761 ;;
6762 powerpc-*linux*)
6763 LD="${LD-ld} -m elf64ppc"
6764 ;;
6765 s390*-*linux*|s390*-*tpf*)
6766 LD="${LD-ld} -m elf64_s390"
6767 ;;
6768 sparc*-*linux*)
6769 LD="${LD-ld} -m elf64_sparc"
6770 ;;
6771 esac
6772 ;;
6773 esac
6774 fi
6775 rm -rf conftest*
6776 ;;
6777
6778 *-*-sco3.2v5*)
6779 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6780 SAVE_CFLAGS=$CFLAGS
6781 CFLAGS="$CFLAGS -belf"
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6783 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6784 if ${lt_cv_cc_needs_belf+:} false; then :
6785 $as_echo_n "(cached) " >&6
6786 else
6787 ac_ext=c
6788 ac_cpp='$CPP $CPPFLAGS'
6789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6792
6793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6794 /* end confdefs.h. */
6795
6796 int
6797 main ()
6798 {
6799
6800 ;
6801 return 0;
6802 }
6803 _ACEOF
6804 if ac_fn_c_try_link "$LINENO"; then :
6805 lt_cv_cc_needs_belf=yes
6806 else
6807 lt_cv_cc_needs_belf=no
6808 fi
6809 rm -f core conftest.err conftest.$ac_objext \
6810 conftest$ac_exeext conftest.$ac_ext
6811 ac_ext=c
6812 ac_cpp='$CPP $CPPFLAGS'
6813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6816
6817 fi
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6819 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6820 if test yes != "$lt_cv_cc_needs_belf"; then
6821 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6822 CFLAGS=$SAVE_CFLAGS
6823 fi
6824 ;;
6825 *-*solaris*)
6826 # Find out what ABI is being produced by ac_compile, and set linker
6827 # options accordingly.
6828 echo 'int i;' > conftest.$ac_ext
6829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6830 (eval $ac_compile) 2>&5
6831 ac_status=$?
6832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6833 test $ac_status = 0; }; then
6834 case `/usr/bin/file conftest.o` in
6835 *64-bit*)
6836 case $lt_cv_prog_gnu_ld in
6837 yes*)
6838 case $host in
6839 i?86-*-solaris*|x86_64-*-solaris*)
6840 LD="${LD-ld} -m elf_x86_64"
6841 ;;
6842 sparc*-*-solaris*)
6843 LD="${LD-ld} -m elf64_sparc"
6844 ;;
6845 esac
6846 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6847 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6848 LD=${LD-ld}_sol2
6849 fi
6850 ;;
6851 *)
6852 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6853 LD="${LD-ld} -64"
6854 fi
6855 ;;
6856 esac
6857 ;;
6858 esac
6859 fi
6860 rm -rf conftest*
6861 ;;
6862 esac
6863
6864 need_locks=$enable_libtool_lock
6865
6866 if test -n "$ac_tool_prefix"; then
6867 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6868 set dummy ${ac_tool_prefix}mt; ac_word=$2
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6870 $as_echo_n "checking for $ac_word... " >&6; }
6871 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6872 $as_echo_n "(cached) " >&6
6873 else
6874 if test -n "$MANIFEST_TOOL"; then
6875 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6876 else
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878 for as_dir in $PATH
6879 do
6880 IFS=$as_save_IFS
6881 test -z "$as_dir" && as_dir=.
6882 for ac_exec_ext in '' $ac_executable_extensions; do
6883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6884 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6886 break 2
6887 fi
6888 done
6889 done
6890 IFS=$as_save_IFS
6891
6892 fi
6893 fi
6894 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6895 if test -n "$MANIFEST_TOOL"; then
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6897 $as_echo "$MANIFEST_TOOL" >&6; }
6898 else
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6900 $as_echo "no" >&6; }
6901 fi
6902
6903
6904 fi
6905 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6906 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6907 # Extract the first word of "mt", so it can be a program name with args.
6908 set dummy mt; ac_word=$2
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6910 $as_echo_n "checking for $ac_word... " >&6; }
6911 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6912 $as_echo_n "(cached) " >&6
6913 else
6914 if test -n "$ac_ct_MANIFEST_TOOL"; then
6915 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6916 else
6917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918 for as_dir in $PATH
6919 do
6920 IFS=$as_save_IFS
6921 test -z "$as_dir" && as_dir=.
6922 for ac_exec_ext in '' $ac_executable_extensions; do
6923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6924 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6926 break 2
6927 fi
6928 done
6929 done
6930 IFS=$as_save_IFS
6931
6932 fi
6933 fi
6934 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6935 if test -n "$ac_ct_MANIFEST_TOOL"; then
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6937 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6938 else
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6940 $as_echo "no" >&6; }
6941 fi
6942
6943 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6944 MANIFEST_TOOL=":"
6945 else
6946 case $cross_compiling:$ac_tool_warned in
6947 yes:)
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6949 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6950 ac_tool_warned=yes ;;
6951 esac
6952 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6953 fi
6954 else
6955 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6956 fi
6957
6958 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6960 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6961 if ${lt_cv_path_mainfest_tool+:} false; then :
6962 $as_echo_n "(cached) " >&6
6963 else
6964 lt_cv_path_mainfest_tool=no
6965 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6966 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6967 cat conftest.err >&5
6968 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6969 lt_cv_path_mainfest_tool=yes
6970 fi
6971 rm -f conftest*
6972 fi
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6974 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6975 if test yes != "$lt_cv_path_mainfest_tool"; then
6976 MANIFEST_TOOL=:
6977 fi
6978
6979
6980
6981
6982
6983
6984 case $host_os in
6985 rhapsody* | darwin*)
6986 if test -n "$ac_tool_prefix"; then
6987 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6988 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6990 $as_echo_n "checking for $ac_word... " >&6; }
6991 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6992 $as_echo_n "(cached) " >&6
6993 else
6994 if test -n "$DSYMUTIL"; then
6995 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6996 else
6997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6998 for as_dir in $PATH
6999 do
7000 IFS=$as_save_IFS
7001 test -z "$as_dir" && as_dir=.
7002 for ac_exec_ext in '' $ac_executable_extensions; do
7003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7004 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7006 break 2
7007 fi
7008 done
7009 done
7010 IFS=$as_save_IFS
7011
7012 fi
7013 fi
7014 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7015 if test -n "$DSYMUTIL"; then
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7017 $as_echo "$DSYMUTIL" >&6; }
7018 else
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7020 $as_echo "no" >&6; }
7021 fi
7022
7023
7024 fi
7025 if test -z "$ac_cv_prog_DSYMUTIL"; then
7026 ac_ct_DSYMUTIL=$DSYMUTIL
7027 # Extract the first word of "dsymutil", so it can be a program name with args.
7028 set dummy dsymutil; ac_word=$2
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7030 $as_echo_n "checking for $ac_word... " >&6; }
7031 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7032 $as_echo_n "(cached) " >&6
7033 else
7034 if test -n "$ac_ct_DSYMUTIL"; then
7035 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7036 else
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038 for as_dir in $PATH
7039 do
7040 IFS=$as_save_IFS
7041 test -z "$as_dir" && as_dir=.
7042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7044 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7046 break 2
7047 fi
7048 done
7049 done
7050 IFS=$as_save_IFS
7051
7052 fi
7053 fi
7054 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7055 if test -n "$ac_ct_DSYMUTIL"; then
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7057 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7058 else
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7060 $as_echo "no" >&6; }
7061 fi
7062
7063 if test "x$ac_ct_DSYMUTIL" = x; then
7064 DSYMUTIL=":"
7065 else
7066 case $cross_compiling:$ac_tool_warned in
7067 yes:)
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7070 ac_tool_warned=yes ;;
7071 esac
7072 DSYMUTIL=$ac_ct_DSYMUTIL
7073 fi
7074 else
7075 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7076 fi
7077
7078 if test -n "$ac_tool_prefix"; then
7079 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7080 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7082 $as_echo_n "checking for $ac_word... " >&6; }
7083 if ${ac_cv_prog_NMEDIT+:} false; then :
7084 $as_echo_n "(cached) " >&6
7085 else
7086 if test -n "$NMEDIT"; then
7087 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7088 else
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 for as_dir in $PATH
7091 do
7092 IFS=$as_save_IFS
7093 test -z "$as_dir" && as_dir=.
7094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7096 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7098 break 2
7099 fi
7100 done
7101 done
7102 IFS=$as_save_IFS
7103
7104 fi
7105 fi
7106 NMEDIT=$ac_cv_prog_NMEDIT
7107 if test -n "$NMEDIT"; then
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7109 $as_echo "$NMEDIT" >&6; }
7110 else
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7112 $as_echo "no" >&6; }
7113 fi
7114
7115
7116 fi
7117 if test -z "$ac_cv_prog_NMEDIT"; then
7118 ac_ct_NMEDIT=$NMEDIT
7119 # Extract the first word of "nmedit", so it can be a program name with args.
7120 set dummy nmedit; ac_word=$2
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7122 $as_echo_n "checking for $ac_word... " >&6; }
7123 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7124 $as_echo_n "(cached) " >&6
7125 else
7126 if test -n "$ac_ct_NMEDIT"; then
7127 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7128 else
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 for as_dir in $PATH
7131 do
7132 IFS=$as_save_IFS
7133 test -z "$as_dir" && as_dir=.
7134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7136 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7138 break 2
7139 fi
7140 done
7141 done
7142 IFS=$as_save_IFS
7143
7144 fi
7145 fi
7146 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7147 if test -n "$ac_ct_NMEDIT"; then
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7149 $as_echo "$ac_ct_NMEDIT" >&6; }
7150 else
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7152 $as_echo "no" >&6; }
7153 fi
7154
7155 if test "x$ac_ct_NMEDIT" = x; then
7156 NMEDIT=":"
7157 else
7158 case $cross_compiling:$ac_tool_warned in
7159 yes:)
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7162 ac_tool_warned=yes ;;
7163 esac
7164 NMEDIT=$ac_ct_NMEDIT
7165 fi
7166 else
7167 NMEDIT="$ac_cv_prog_NMEDIT"
7168 fi
7169
7170 if test -n "$ac_tool_prefix"; then
7171 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7172 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7174 $as_echo_n "checking for $ac_word... " >&6; }
7175 if ${ac_cv_prog_LIPO+:} false; then :
7176 $as_echo_n "(cached) " >&6
7177 else
7178 if test -n "$LIPO"; then
7179 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7180 else
7181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182 for as_dir in $PATH
7183 do
7184 IFS=$as_save_IFS
7185 test -z "$as_dir" && as_dir=.
7186 for ac_exec_ext in '' $ac_executable_extensions; do
7187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7188 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7190 break 2
7191 fi
7192 done
7193 done
7194 IFS=$as_save_IFS
7195
7196 fi
7197 fi
7198 LIPO=$ac_cv_prog_LIPO
7199 if test -n "$LIPO"; then
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7201 $as_echo "$LIPO" >&6; }
7202 else
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7204 $as_echo "no" >&6; }
7205 fi
7206
7207
7208 fi
7209 if test -z "$ac_cv_prog_LIPO"; then
7210 ac_ct_LIPO=$LIPO
7211 # Extract the first word of "lipo", so it can be a program name with args.
7212 set dummy lipo; ac_word=$2
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7214 $as_echo_n "checking for $ac_word... " >&6; }
7215 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7216 $as_echo_n "(cached) " >&6
7217 else
7218 if test -n "$ac_ct_LIPO"; then
7219 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7220 else
7221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222 for as_dir in $PATH
7223 do
7224 IFS=$as_save_IFS
7225 test -z "$as_dir" && as_dir=.
7226 for ac_exec_ext in '' $ac_executable_extensions; do
7227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7228 ac_cv_prog_ac_ct_LIPO="lipo"
7229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7230 break 2
7231 fi
7232 done
7233 done
7234 IFS=$as_save_IFS
7235
7236 fi
7237 fi
7238 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7239 if test -n "$ac_ct_LIPO"; then
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7241 $as_echo "$ac_ct_LIPO" >&6; }
7242 else
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7244 $as_echo "no" >&6; }
7245 fi
7246
7247 if test "x$ac_ct_LIPO" = x; then
7248 LIPO=":"
7249 else
7250 case $cross_compiling:$ac_tool_warned in
7251 yes:)
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7254 ac_tool_warned=yes ;;
7255 esac
7256 LIPO=$ac_ct_LIPO
7257 fi
7258 else
7259 LIPO="$ac_cv_prog_LIPO"
7260 fi
7261
7262 if test -n "$ac_tool_prefix"; then
7263 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7264 set dummy ${ac_tool_prefix}otool; ac_word=$2
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7266 $as_echo_n "checking for $ac_word... " >&6; }
7267 if ${ac_cv_prog_OTOOL+:} false; then :
7268 $as_echo_n "(cached) " >&6
7269 else
7270 if test -n "$OTOOL"; then
7271 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7272 else
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274 for as_dir in $PATH
7275 do
7276 IFS=$as_save_IFS
7277 test -z "$as_dir" && as_dir=.
7278 for ac_exec_ext in '' $ac_executable_extensions; do
7279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7280 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7282 break 2
7283 fi
7284 done
7285 done
7286 IFS=$as_save_IFS
7287
7288 fi
7289 fi
7290 OTOOL=$ac_cv_prog_OTOOL
7291 if test -n "$OTOOL"; then
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7293 $as_echo "$OTOOL" >&6; }
7294 else
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7296 $as_echo "no" >&6; }
7297 fi
7298
7299
7300 fi
7301 if test -z "$ac_cv_prog_OTOOL"; then
7302 ac_ct_OTOOL=$OTOOL
7303 # Extract the first word of "otool", so it can be a program name with args.
7304 set dummy otool; ac_word=$2
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7306 $as_echo_n "checking for $ac_word... " >&6; }
7307 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7308 $as_echo_n "(cached) " >&6
7309 else
7310 if test -n "$ac_ct_OTOOL"; then
7311 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7312 else
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 for as_dir in $PATH
7315 do
7316 IFS=$as_save_IFS
7317 test -z "$as_dir" && as_dir=.
7318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7320 ac_cv_prog_ac_ct_OTOOL="otool"
7321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7322 break 2
7323 fi
7324 done
7325 done
7326 IFS=$as_save_IFS
7327
7328 fi
7329 fi
7330 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7331 if test -n "$ac_ct_OTOOL"; then
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7333 $as_echo "$ac_ct_OTOOL" >&6; }
7334 else
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7336 $as_echo "no" >&6; }
7337 fi
7338
7339 if test "x$ac_ct_OTOOL" = x; then
7340 OTOOL=":"
7341 else
7342 case $cross_compiling:$ac_tool_warned in
7343 yes:)
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7346 ac_tool_warned=yes ;;
7347 esac
7348 OTOOL=$ac_ct_OTOOL
7349 fi
7350 else
7351 OTOOL="$ac_cv_prog_OTOOL"
7352 fi
7353
7354 if test -n "$ac_tool_prefix"; then
7355 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7356 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7358 $as_echo_n "checking for $ac_word... " >&6; }
7359 if ${ac_cv_prog_OTOOL64+:} false; then :
7360 $as_echo_n "(cached) " >&6
7361 else
7362 if test -n "$OTOOL64"; then
7363 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7364 else
7365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366 for as_dir in $PATH
7367 do
7368 IFS=$as_save_IFS
7369 test -z "$as_dir" && as_dir=.
7370 for ac_exec_ext in '' $ac_executable_extensions; do
7371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7372 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7374 break 2
7375 fi
7376 done
7377 done
7378 IFS=$as_save_IFS
7379
7380 fi
7381 fi
7382 OTOOL64=$ac_cv_prog_OTOOL64
7383 if test -n "$OTOOL64"; then
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7385 $as_echo "$OTOOL64" >&6; }
7386 else
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388 $as_echo "no" >&6; }
7389 fi
7390
7391
7392 fi
7393 if test -z "$ac_cv_prog_OTOOL64"; then
7394 ac_ct_OTOOL64=$OTOOL64
7395 # Extract the first word of "otool64", so it can be a program name with args.
7396 set dummy otool64; ac_word=$2
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7398 $as_echo_n "checking for $ac_word... " >&6; }
7399 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7400 $as_echo_n "(cached) " >&6
7401 else
7402 if test -n "$ac_ct_OTOOL64"; then
7403 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7404 else
7405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406 for as_dir in $PATH
7407 do
7408 IFS=$as_save_IFS
7409 test -z "$as_dir" && as_dir=.
7410 for ac_exec_ext in '' $ac_executable_extensions; do
7411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7412 ac_cv_prog_ac_ct_OTOOL64="otool64"
7413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7414 break 2
7415 fi
7416 done
7417 done
7418 IFS=$as_save_IFS
7419
7420 fi
7421 fi
7422 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7423 if test -n "$ac_ct_OTOOL64"; then
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7425 $as_echo "$ac_ct_OTOOL64" >&6; }
7426 else
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7428 $as_echo "no" >&6; }
7429 fi
7430
7431 if test "x$ac_ct_OTOOL64" = x; then
7432 OTOOL64=":"
7433 else
7434 case $cross_compiling:$ac_tool_warned in
7435 yes:)
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7438 ac_tool_warned=yes ;;
7439 esac
7440 OTOOL64=$ac_ct_OTOOL64
7441 fi
7442 else
7443 OTOOL64="$ac_cv_prog_OTOOL64"
7444 fi
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7473 $as_echo_n "checking for -single_module linker flag... " >&6; }
7474 if ${lt_cv_apple_cc_single_mod+:} false; then :
7475 $as_echo_n "(cached) " >&6
7476 else
7477 lt_cv_apple_cc_single_mod=no
7478 if test -z "$LT_MULTI_MODULE"; then
7479 # By default we will add the -single_module flag. You can override
7480 # by either setting the environment variable LT_MULTI_MODULE
7481 # non-empty at configure time, or by adding -multi_module to the
7482 # link flags.
7483 rm -rf libconftest.dylib*
7484 echo "int foo(void){return 1;}" > conftest.c
7485 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7486 -dynamiclib -Wl,-single_module conftest.c" >&5
7487 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7488 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7489 _lt_result=$?
7490 # If there is a non-empty error log, and "single_module"
7491 # appears in it, assume the flag caused a linker warning
7492 if test -s conftest.err && $GREP single_module conftest.err; then
7493 cat conftest.err >&5
7494 # Otherwise, if the output was created with a 0 exit code from
7495 # the compiler, it worked.
7496 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7497 lt_cv_apple_cc_single_mod=yes
7498 else
7499 cat conftest.err >&5
7500 fi
7501 rm -rf libconftest.dylib*
7502 rm -f conftest.*
7503 fi
7504 fi
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7506 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7507
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7509 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7510 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7511 $as_echo_n "(cached) " >&6
7512 else
7513 lt_cv_ld_exported_symbols_list=no
7514 save_LDFLAGS=$LDFLAGS
7515 echo "_main" > conftest.sym
7516 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518 /* end confdefs.h. */
7519
7520 int
7521 main ()
7522 {
7523
7524 ;
7525 return 0;
7526 }
7527 _ACEOF
7528 if ac_fn_c_try_link "$LINENO"; then :
7529 lt_cv_ld_exported_symbols_list=yes
7530 else
7531 lt_cv_ld_exported_symbols_list=no
7532 fi
7533 rm -f core conftest.err conftest.$ac_objext \
7534 conftest$ac_exeext conftest.$ac_ext
7535 LDFLAGS=$save_LDFLAGS
7536
7537 fi
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7539 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7540
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7542 $as_echo_n "checking for -force_load linker flag... " >&6; }
7543 if ${lt_cv_ld_force_load+:} false; then :
7544 $as_echo_n "(cached) " >&6
7545 else
7546 lt_cv_ld_force_load=no
7547 cat > conftest.c << _LT_EOF
7548 int forced_loaded() { return 2;}
7549 _LT_EOF
7550 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7551 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7552 echo "$AR cru libconftest.a conftest.o" >&5
7553 $AR cru libconftest.a conftest.o 2>&5
7554 echo "$RANLIB libconftest.a" >&5
7555 $RANLIB libconftest.a 2>&5
7556 cat > conftest.c << _LT_EOF
7557 int main() { return 0;}
7558 _LT_EOF
7559 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7560 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7561 _lt_result=$?
7562 if test -s conftest.err && $GREP force_load conftest.err; then
7563 cat conftest.err >&5
7564 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7565 lt_cv_ld_force_load=yes
7566 else
7567 cat conftest.err >&5
7568 fi
7569 rm -f conftest.err libconftest.a conftest conftest.c
7570 rm -rf conftest.dSYM
7571
7572 fi
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7574 $as_echo "$lt_cv_ld_force_load" >&6; }
7575 case $host_os in
7576 rhapsody* | darwin1.[012])
7577 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7578 darwin1.*)
7579 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7580 darwin*) # darwin 5.x on
7581 # if running on 10.5 or later, the deployment target defaults
7582 # to the OS version, if on x86, and 10.4, the deployment
7583 # target defaults to 10.4. Don't you love it?
7584 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7585 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7586 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7587 10.[012][,.]*)
7588 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7589 10.*)
7590 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7591 esac
7592 ;;
7593 esac
7594 if test yes = "$lt_cv_apple_cc_single_mod"; then
7595 _lt_dar_single_mod='$single_module'
7596 fi
7597 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7598 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7599 else
7600 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7601 fi
7602 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7603 _lt_dsymutil='~$DSYMUTIL $lib || :'
7604 else
7605 _lt_dsymutil=
7606 fi
7607 ;;
7608 esac
7609
7610 # func_munge_path_list VARIABLE PATH
7611 # -----------------------------------
7612 # VARIABLE is name of variable containing _space_ separated list of
7613 # directories to be munged by the contents of PATH, which is string
7614 # having a format:
7615 # "DIR[:DIR]:"
7616 # string "DIR[ DIR]" will be prepended to VARIABLE
7617 # ":DIR[:DIR]"
7618 # string "DIR[ DIR]" will be appended to VARIABLE
7619 # "DIRP[:DIRP]::[DIRA:]DIRA"
7620 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7621 # "DIRA[ DIRA]" will be appended to VARIABLE
7622 # "DIR[:DIR]"
7623 # VARIABLE will be replaced by "DIR[ DIR]"
7624 func_munge_path_list ()
7625 {
7626 case x$2 in
7627 x)
7628 ;;
7629 *:)
7630 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7631 ;;
7632 x:*)
7633 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7634 ;;
7635 *::*)
7636 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7637 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7638 ;;
7639 *)
7640 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7641 ;;
7642 esac
7643 }
7644
7645 ac_ext=c
7646 ac_cpp='$CPP $CPPFLAGS'
7647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7651 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7652 # On Suns, sometimes $CPP names a directory.
7653 if test -n "$CPP" && test -d "$CPP"; then
7654 CPP=
7655 fi
7656 if test -z "$CPP"; then
7657 if ${ac_cv_prog_CPP+:} false; then :
7658 $as_echo_n "(cached) " >&6
7659 else
7660 # Double quotes because CPP needs to be expanded
7661 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7662 do
7663 ac_preproc_ok=false
7664 for ac_c_preproc_warn_flag in '' yes
7665 do
7666 # Use a header file that comes with gcc, so configuring glibc
7667 # with a fresh cross-compiler works.
7668 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7669 # <limits.h> exists even on freestanding compilers.
7670 # On the NeXT, cc -E runs the code through the compiler's parser,
7671 # not just through cpp. "Syntax error" is here to catch this case.
7672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7673 /* end confdefs.h. */
7674 #ifdef __STDC__
7675 # include <limits.h>
7676 #else
7677 # include <assert.h>
7678 #endif
7679 Syntax error
7680 _ACEOF
7681 if ac_fn_c_try_cpp "$LINENO"; then :
7682
7683 else
7684 # Broken: fails on valid input.
7685 continue
7686 fi
7687 rm -f conftest.err conftest.i conftest.$ac_ext
7688
7689 # OK, works on sane cases. Now check whether nonexistent headers
7690 # can be detected and how.
7691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7692 /* end confdefs.h. */
7693 #include <ac_nonexistent.h>
7694 _ACEOF
7695 if ac_fn_c_try_cpp "$LINENO"; then :
7696 # Broken: success on invalid input.
7697 continue
7698 else
7699 # Passes both tests.
7700 ac_preproc_ok=:
7701 break
7702 fi
7703 rm -f conftest.err conftest.i conftest.$ac_ext
7704
7705 done
7706 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7707 rm -f conftest.i conftest.err conftest.$ac_ext
7708 if $ac_preproc_ok; then :
7709 break
7710 fi
7711
7712 done
7713 ac_cv_prog_CPP=$CPP
7714
7715 fi
7716 CPP=$ac_cv_prog_CPP
7717 else
7718 ac_cv_prog_CPP=$CPP
7719 fi
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7721 $as_echo "$CPP" >&6; }
7722 ac_preproc_ok=false
7723 for ac_c_preproc_warn_flag in '' yes
7724 do
7725 # Use a header file that comes with gcc, so configuring glibc
7726 # with a fresh cross-compiler works.
7727 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7728 # <limits.h> exists even on freestanding compilers.
7729 # On the NeXT, cc -E runs the code through the compiler's parser,
7730 # not just through cpp. "Syntax error" is here to catch this case.
7731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732 /* end confdefs.h. */
7733 #ifdef __STDC__
7734 # include <limits.h>
7735 #else
7736 # include <assert.h>
7737 #endif
7738 Syntax error
7739 _ACEOF
7740 if ac_fn_c_try_cpp "$LINENO"; then :
7741
7742 else
7743 # Broken: fails on valid input.
7744 continue
7745 fi
7746 rm -f conftest.err conftest.i conftest.$ac_ext
7747
7748 # OK, works on sane cases. Now check whether nonexistent headers
7749 # can be detected and how.
7750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7751 /* end confdefs.h. */
7752 #include <ac_nonexistent.h>
7753 _ACEOF
7754 if ac_fn_c_try_cpp "$LINENO"; then :
7755 # Broken: success on invalid input.
7756 continue
7757 else
7758 # Passes both tests.
7759 ac_preproc_ok=:
7760 break
7761 fi
7762 rm -f conftest.err conftest.i conftest.$ac_ext
7763
7764 done
7765 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7766 rm -f conftest.i conftest.err conftest.$ac_ext
7767 if $ac_preproc_ok; then :
7768
7769 else
7770 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7771 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7772 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7773 See \`config.log' for more details" "$LINENO" 5; }
7774 fi
7775
7776 ac_ext=c
7777 ac_cpp='$CPP $CPPFLAGS'
7778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7781
7782
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7784 $as_echo_n "checking for ANSI C header files... " >&6; }
7785 if ${ac_cv_header_stdc+:} false; then :
7786 $as_echo_n "(cached) " >&6
7787 else
7788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789 /* end confdefs.h. */
7790 #include <stdlib.h>
7791 #include <stdarg.h>
7792 #include <string.h>
7793 #include <float.h>
7794
7795 int
7796 main ()
7797 {
7798
7799 ;
7800 return 0;
7801 }
7802 _ACEOF
7803 if ac_fn_c_try_compile "$LINENO"; then :
7804 ac_cv_header_stdc=yes
7805 else
7806 ac_cv_header_stdc=no
7807 fi
7808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7809
7810 if test $ac_cv_header_stdc = yes; then
7811 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813 /* end confdefs.h. */
7814 #include <string.h>
7815
7816 _ACEOF
7817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7818 $EGREP "memchr" >/dev/null 2>&1; then :
7819
7820 else
7821 ac_cv_header_stdc=no
7822 fi
7823 rm -f conftest*
7824
7825 fi
7826
7827 if test $ac_cv_header_stdc = yes; then
7828 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7830 /* end confdefs.h. */
7831 #include <stdlib.h>
7832
7833 _ACEOF
7834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7835 $EGREP "free" >/dev/null 2>&1; then :
7836
7837 else
7838 ac_cv_header_stdc=no
7839 fi
7840 rm -f conftest*
7841
7842 fi
7843
7844 if test $ac_cv_header_stdc = yes; then
7845 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7846 if test "$cross_compiling" = yes; then :
7847 :
7848 else
7849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7850 /* end confdefs.h. */
7851 #include <ctype.h>
7852 #include <stdlib.h>
7853 #if ((' ' & 0x0FF) == 0x020)
7854 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7855 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7856 #else
7857 # define ISLOWER(c) \
7858 (('a' <= (c) && (c) <= 'i') \
7859 || ('j' <= (c) && (c) <= 'r') \
7860 || ('s' <= (c) && (c) <= 'z'))
7861 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7862 #endif
7863
7864 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7865 int
7866 main ()
7867 {
7868 int i;
7869 for (i = 0; i < 256; i++)
7870 if (XOR (islower (i), ISLOWER (i))
7871 || toupper (i) != TOUPPER (i))
7872 return 2;
7873 return 0;
7874 }
7875 _ACEOF
7876 if ac_fn_c_try_run "$LINENO"; then :
7877
7878 else
7879 ac_cv_header_stdc=no
7880 fi
7881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7882 conftest.$ac_objext conftest.beam conftest.$ac_ext
7883 fi
7884
7885 fi
7886 fi
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7888 $as_echo "$ac_cv_header_stdc" >&6; }
7889 if test $ac_cv_header_stdc = yes; then
7890
7891 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7892
7893 fi
7894
7895 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7896 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7897 inttypes.h stdint.h unistd.h
7898 do :
7899 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7900 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7901 "
7902 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7903 cat >>confdefs.h <<_ACEOF
7904 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7905 _ACEOF
7906
7907 fi
7908
7909 done
7910
7911
7912 for ac_header in dlfcn.h
7913 do :
7914 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7915 "
7916 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7917 cat >>confdefs.h <<_ACEOF
7918 #define HAVE_DLFCN_H 1
7919 _ACEOF
7920
7921 fi
7922
7923 done
7924
7925
7926
7927
7928
7929 # Set options
7930
7931
7932
7933 enable_dlopen=no
7934
7935
7936 enable_win32_dll=no
7937
7938
7939 # Check whether --enable-shared was given.
7940 if test "${enable_shared+set}" = set; then :
7941 enableval=$enable_shared; p=${PACKAGE-default}
7942 case $enableval in
7943 yes) enable_shared=yes ;;
7944 no) enable_shared=no ;;
7945 *)
7946 enable_shared=no
7947 # Look at the argument we got. We use all the common list separators.
7948 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7949 for pkg in $enableval; do
7950 IFS=$lt_save_ifs
7951 if test "X$pkg" = "X$p"; then
7952 enable_shared=yes
7953 fi
7954 done
7955 IFS=$lt_save_ifs
7956 ;;
7957 esac
7958 else
7959 enable_shared=yes
7960 fi
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970 # Check whether --enable-static was given.
7971 if test "${enable_static+set}" = set; then :
7972 enableval=$enable_static; p=${PACKAGE-default}
7973 case $enableval in
7974 yes) enable_static=yes ;;
7975 no) enable_static=no ;;
7976 *)
7977 enable_static=no
7978 # Look at the argument we got. We use all the common list separators.
7979 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7980 for pkg in $enableval; do
7981 IFS=$lt_save_ifs
7982 if test "X$pkg" = "X$p"; then
7983 enable_static=yes
7984 fi
7985 done
7986 IFS=$lt_save_ifs
7987 ;;
7988 esac
7989 else
7990 enable_static=yes
7991 fi
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002 # Check whether --with-pic was given.
8003 if test "${with_pic+set}" = set; then :
8004 withval=$with_pic; lt_p=${PACKAGE-default}
8005 case $withval in
8006 yes|no) pic_mode=$withval ;;
8007 *)
8008 pic_mode=default
8009 # Look at the argument we got. We use all the common list separators.
8010 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8011 for lt_pkg in $withval; do
8012 IFS=$lt_save_ifs
8013 if test "X$lt_pkg" = "X$lt_p"; then
8014 pic_mode=yes
8015 fi
8016 done
8017 IFS=$lt_save_ifs
8018 ;;
8019 esac
8020 else
8021 pic_mode=default
8022 fi
8023
8024
8025
8026
8027
8028
8029
8030
8031 # Check whether --enable-fast-install was given.
8032 if test "${enable_fast_install+set}" = set; then :
8033 enableval=$enable_fast_install; p=${PACKAGE-default}
8034 case $enableval in
8035 yes) enable_fast_install=yes ;;
8036 no) enable_fast_install=no ;;
8037 *)
8038 enable_fast_install=no
8039 # Look at the argument we got. We use all the common list separators.
8040 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8041 for pkg in $enableval; do
8042 IFS=$lt_save_ifs
8043 if test "X$pkg" = "X$p"; then
8044 enable_fast_install=yes
8045 fi
8046 done
8047 IFS=$lt_save_ifs
8048 ;;
8049 esac
8050 else
8051 enable_fast_install=yes
8052 fi
8053
8054
8055
8056
8057
8058
8059
8060
8061 shared_archive_member_spec=
8062 case $host,$enable_shared in
8063 power*-*-aix[5-9]*,yes)
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8065 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8066
8067 # Check whether --with-aix-soname was given.
8068 if test "${with_aix_soname+set}" = set; then :
8069 withval=$with_aix_soname; case $withval in
8070 aix|svr4|both)
8071 ;;
8072 *)
8073 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8074 ;;
8075 esac
8076 lt_cv_with_aix_soname=$with_aix_soname
8077 else
8078 if ${lt_cv_with_aix_soname+:} false; then :
8079 $as_echo_n "(cached) " >&6
8080 else
8081 lt_cv_with_aix_soname=aix
8082 fi
8083
8084 with_aix_soname=$lt_cv_with_aix_soname
8085 fi
8086
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8088 $as_echo "$with_aix_soname" >&6; }
8089 if test aix != "$with_aix_soname"; then
8090 # For the AIX way of multilib, we name the shared archive member
8091 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8092 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8093 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8094 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8095 if test 64 = "${OBJECT_MODE-32}"; then
8096 shared_archive_member_spec=shr_64
8097 else
8098 shared_archive_member_spec=shr
8099 fi
8100 fi
8101 ;;
8102 *)
8103 with_aix_soname=aix
8104 ;;
8105 esac
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116 # This can be used to rebuild libtool when needed
8117 LIBTOOL_DEPS=$ltmain
8118
8119 # Always use our own libtool.
8120 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151 test -z "$LN_S" && LN_S="ln -s"
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166 if test -n "${ZSH_VERSION+set}"; then
8167 setopt NO_GLOB_SUBST
8168 fi
8169
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8171 $as_echo_n "checking for objdir... " >&6; }
8172 if ${lt_cv_objdir+:} false; then :
8173 $as_echo_n "(cached) " >&6
8174 else
8175 rm -f .libs 2>/dev/null
8176 mkdir .libs 2>/dev/null
8177 if test -d .libs; then
8178 lt_cv_objdir=.libs
8179 else
8180 # MS-DOS does not allow filenames that begin with a dot.
8181 lt_cv_objdir=_libs
8182 fi
8183 rmdir .libs 2>/dev/null
8184 fi
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8186 $as_echo "$lt_cv_objdir" >&6; }
8187 objdir=$lt_cv_objdir
8188
8189
8190
8191
8192
8193 cat >>confdefs.h <<_ACEOF
8194 #define LT_OBJDIR "$lt_cv_objdir/"
8195 _ACEOF
8196
8197
8198
8199
8200 case $host_os in
8201 aix3*)
8202 # AIX sometimes has problems with the GCC collect2 program. For some
8203 # reason, if we set the COLLECT_NAMES environment variable, the problems
8204 # vanish in a puff of smoke.
8205 if test set != "${COLLECT_NAMES+set}"; then
8206 COLLECT_NAMES=
8207 export COLLECT_NAMES
8208 fi
8209 ;;
8210 esac
8211
8212 # Global variables:
8213 ofile=libtool
8214 can_build_shared=yes
8215
8216 # All known linkers require a '.a' archive for static linking (except MSVC,
8217 # which needs '.lib').
8218 libext=a
8219
8220 with_gnu_ld=$lt_cv_prog_gnu_ld
8221
8222 old_CC=$CC
8223 old_CFLAGS=$CFLAGS
8224
8225 # Set sane defaults for various variables
8226 test -z "$CC" && CC=cc
8227 test -z "$LTCC" && LTCC=$CC
8228 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8229 test -z "$LD" && LD=ld
8230 test -z "$ac_objext" && ac_objext=o
8231
8232 func_cc_basename $compiler
8233 cc_basename=$func_cc_basename_result
8234
8235
8236 # Only perform the check for file, if the check method requires it
8237 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8238 case $deplibs_check_method in
8239 file_magic*)
8240 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8242 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8243 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8244 $as_echo_n "(cached) " >&6
8245 else
8246 case $MAGIC_CMD in
8247 [\\/*] | ?:[\\/]*)
8248 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8249 ;;
8250 *)
8251 lt_save_MAGIC_CMD=$MAGIC_CMD
8252 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8253 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8254 for ac_dir in $ac_dummy; do
8255 IFS=$lt_save_ifs
8256 test -z "$ac_dir" && ac_dir=.
8257 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8258 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8259 if test -n "$file_magic_test_file"; then
8260 case $deplibs_check_method in
8261 "file_magic "*)
8262 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8263 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8264 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8265 $EGREP "$file_magic_regex" > /dev/null; then
8266 :
8267 else
8268 cat <<_LT_EOF 1>&2
8269
8270 *** Warning: the command libtool uses to detect shared libraries,
8271 *** $file_magic_cmd, produces output that libtool cannot recognize.
8272 *** The result is that libtool may fail to recognize shared libraries
8273 *** as such. This will affect the creation of libtool libraries that
8274 *** depend on shared libraries, but programs linked with such libtool
8275 *** libraries will work regardless of this problem. Nevertheless, you
8276 *** may want to report the problem to your system manager and/or to
8277 *** [email protected]
8278
8279 _LT_EOF
8280 fi ;;
8281 esac
8282 fi
8283 break
8284 fi
8285 done
8286 IFS=$lt_save_ifs
8287 MAGIC_CMD=$lt_save_MAGIC_CMD
8288 ;;
8289 esac
8290 fi
8291
8292 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8293 if test -n "$MAGIC_CMD"; then
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8295 $as_echo "$MAGIC_CMD" >&6; }
8296 else
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8298 $as_echo "no" >&6; }
8299 fi
8300
8301
8302
8303
8304
8305 if test -z "$lt_cv_path_MAGIC_CMD"; then
8306 if test -n "$ac_tool_prefix"; then
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8308 $as_echo_n "checking for file... " >&6; }
8309 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8310 $as_echo_n "(cached) " >&6
8311 else
8312 case $MAGIC_CMD in
8313 [\\/*] | ?:[\\/]*)
8314 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8315 ;;
8316 *)
8317 lt_save_MAGIC_CMD=$MAGIC_CMD
8318 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8319 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8320 for ac_dir in $ac_dummy; do
8321 IFS=$lt_save_ifs
8322 test -z "$ac_dir" && ac_dir=.
8323 if test -f "$ac_dir/file"; then
8324 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8325 if test -n "$file_magic_test_file"; then
8326 case $deplibs_check_method in
8327 "file_magic "*)
8328 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8329 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8330 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8331 $EGREP "$file_magic_regex" > /dev/null; then
8332 :
8333 else
8334 cat <<_LT_EOF 1>&2
8335
8336 *** Warning: the command libtool uses to detect shared libraries,
8337 *** $file_magic_cmd, produces output that libtool cannot recognize.
8338 *** The result is that libtool may fail to recognize shared libraries
8339 *** as such. This will affect the creation of libtool libraries that
8340 *** depend on shared libraries, but programs linked with such libtool
8341 *** libraries will work regardless of this problem. Nevertheless, you
8342 *** may want to report the problem to your system manager and/or to
8343 *** [email protected]
8344
8345 _LT_EOF
8346 fi ;;
8347 esac
8348 fi
8349 break
8350 fi
8351 done
8352 IFS=$lt_save_ifs
8353 MAGIC_CMD=$lt_save_MAGIC_CMD
8354 ;;
8355 esac
8356 fi
8357
8358 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8359 if test -n "$MAGIC_CMD"; then
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8361 $as_echo "$MAGIC_CMD" >&6; }
8362 else
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364 $as_echo "no" >&6; }
8365 fi
8366
8367
8368 else
8369 MAGIC_CMD=:
8370 fi
8371 fi
8372
8373 fi
8374 ;;
8375 esac
8376
8377 # Use C for the default configuration in the libtool script
8378
8379 lt_save_CC=$CC
8380 ac_ext=c
8381 ac_cpp='$CPP $CPPFLAGS'
8382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8385
8386
8387 # Source file extension for C test sources.
8388 ac_ext=c
8389
8390 # Object file extension for compiled C test sources.
8391 objext=o
8392 objext=$objext
8393
8394 # Code to be used in simple compile tests
8395 lt_simple_compile_test_code="int some_variable = 0;"
8396
8397 # Code to be used in simple link tests
8398 lt_simple_link_test_code='int main(){return(0);}'
8399
8400
8401
8402
8403
8404
8405
8406 # If no C compiler was specified, use CC.
8407 LTCC=${LTCC-"$CC"}
8408
8409 # If no C compiler flags were specified, use CFLAGS.
8410 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8411
8412 # Allow CC to be a program name with arguments.
8413 compiler=$CC
8414
8415 # Save the default compiler, since it gets overwritten when the other
8416 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8417 compiler_DEFAULT=$CC
8418
8419 # save warnings/boilerplate of simple test code
8420 ac_outfile=conftest.$ac_objext
8421 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8422 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8423 _lt_compiler_boilerplate=`cat conftest.err`
8424 $RM conftest*
8425
8426 ac_outfile=conftest.$ac_objext
8427 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8428 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8429 _lt_linker_boilerplate=`cat conftest.err`
8430 $RM -r conftest*
8431
8432
8433 ## CAVEAT EMPTOR:
8434 ## There is no encapsulation within the following macros, do not change
8435 ## the running order or otherwise move them around unless you know exactly
8436 ## what you are doing...
8437 if test -n "$compiler"; then
8438
8439 lt_prog_compiler_no_builtin_flag=
8440
8441 if test yes = "$GCC"; then
8442 case $cc_basename in
8443 nvcc*)
8444 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8445 *)
8446 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8447 esac
8448
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8450 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8451 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8452 $as_echo_n "(cached) " >&6
8453 else
8454 lt_cv_prog_compiler_rtti_exceptions=no
8455 ac_outfile=conftest.$ac_objext
8456 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8457 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8458 # Insert the option either (1) after the last *FLAGS variable, or
8459 # (2) before a word containing "conftest.", or (3) at the end.
8460 # Note that $ac_compile itself does not contain backslashes and begins
8461 # with a dollar sign (not a hyphen), so the echo should work correctly.
8462 # The option is referenced via a variable to avoid confusing sed.
8463 lt_compile=`echo "$ac_compile" | $SED \
8464 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8465 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8466 -e 's:$: $lt_compiler_flag:'`
8467 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8468 (eval "$lt_compile" 2>conftest.err)
8469 ac_status=$?
8470 cat conftest.err >&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 if (exit $ac_status) && test -s "$ac_outfile"; then
8473 # The compiler can only warn and ignore the option if not recognized
8474 # So say no if there are warnings other than the usual output.
8475 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8476 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8477 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8478 lt_cv_prog_compiler_rtti_exceptions=yes
8479 fi
8480 fi
8481 $RM conftest*
8482
8483 fi
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8485 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8486
8487 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8488 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8489 else
8490 :
8491 fi
8492
8493 fi
8494
8495
8496
8497
8498
8499
8500 lt_prog_compiler_wl=
8501 lt_prog_compiler_pic=
8502 lt_prog_compiler_static=
8503
8504
8505 if test yes = "$GCC"; then
8506 lt_prog_compiler_wl='-Wl,'
8507 lt_prog_compiler_static='-static'
8508
8509 case $host_os in
8510 aix*)
8511 # All AIX code is PIC.
8512 if test ia64 = "$host_cpu"; then
8513 # AIX 5 now supports IA64 processor
8514 lt_prog_compiler_static='-Bstatic'
8515 fi
8516 lt_prog_compiler_pic='-fPIC'
8517 ;;
8518
8519 amigaos*)
8520 case $host_cpu in
8521 powerpc)
8522 # see comment about AmigaOS4 .so support
8523 lt_prog_compiler_pic='-fPIC'
8524 ;;
8525 m68k)
8526 # FIXME: we need at least 68020 code to build shared libraries, but
8527 # adding the '-m68020' flag to GCC prevents building anything better,
8528 # like '-m68040'.
8529 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8530 ;;
8531 esac
8532 ;;
8533
8534 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8535 # PIC is the default for these OSes.
8536 ;;
8537
8538 mingw* | cygwin* | pw32* | os2* | cegcc*)
8539 # This hack is so that the source file can tell whether it is being
8540 # built for inclusion in a dll (and should export symbols for example).
8541 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8542 # (--disable-auto-import) libraries
8543 lt_prog_compiler_pic='-DDLL_EXPORT'
8544 case $host_os in
8545 os2*)
8546 lt_prog_compiler_static='$wl-static'
8547 ;;
8548 esac
8549 ;;
8550
8551 darwin* | rhapsody*)
8552 # PIC is the default on this platform
8553 # Common symbols not allowed in MH_DYLIB files
8554 lt_prog_compiler_pic='-fno-common'
8555 ;;
8556
8557 haiku*)
8558 # PIC is the default for Haiku.
8559 # The "-static" flag exists, but is broken.
8560 lt_prog_compiler_static=
8561 ;;
8562
8563 hpux*)
8564 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8565 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8566 # sets the default TLS model and affects inlining.
8567 case $host_cpu in
8568 hppa*64*)
8569 # +Z the default
8570 ;;
8571 *)
8572 lt_prog_compiler_pic='-fPIC'
8573 ;;
8574 esac
8575 ;;
8576
8577 interix[3-9]*)
8578 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8579 # Instead, we relocate shared libraries at runtime.
8580 ;;
8581
8582 msdosdjgpp*)
8583 # Just because we use GCC doesn't mean we suddenly get shared libraries
8584 # on systems that don't support them.
8585 lt_prog_compiler_can_build_shared=no
8586 enable_shared=no
8587 ;;
8588
8589 *nto* | *qnx*)
8590 # QNX uses GNU C++, but need to define -shared option too, otherwise
8591 # it will coredump.
8592 lt_prog_compiler_pic='-fPIC -shared'
8593 ;;
8594
8595 sysv4*MP*)
8596 if test -d /usr/nec; then
8597 lt_prog_compiler_pic=-Kconform_pic
8598 fi
8599 ;;
8600
8601 *)
8602 lt_prog_compiler_pic='-fPIC'
8603 ;;
8604 esac
8605
8606 case $cc_basename in
8607 nvcc*) # Cuda Compiler Driver 2.2
8608 lt_prog_compiler_wl='-Xlinker '
8609 if test -n "$lt_prog_compiler_pic"; then
8610 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8611 fi
8612 ;;
8613 esac
8614 else
8615 # PORTME Check for flag to pass linker flags through the system compiler.
8616 case $host_os in
8617 aix*)
8618 lt_prog_compiler_wl='-Wl,'
8619 if test ia64 = "$host_cpu"; then
8620 # AIX 5 now supports IA64 processor
8621 lt_prog_compiler_static='-Bstatic'
8622 else
8623 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8624 fi
8625 ;;
8626
8627 darwin* | rhapsody*)
8628 # PIC is the default on this platform
8629 # Common symbols not allowed in MH_DYLIB files
8630 lt_prog_compiler_pic='-fno-common'
8631 case $cc_basename in
8632 nagfor*)
8633 # NAG Fortran compiler
8634 lt_prog_compiler_wl='-Wl,-Wl,,'
8635 lt_prog_compiler_pic='-PIC'
8636 lt_prog_compiler_static='-Bstatic'
8637 ;;
8638 esac
8639 ;;
8640
8641 mingw* | cygwin* | pw32* | os2* | cegcc*)
8642 # This hack is so that the source file can tell whether it is being
8643 # built for inclusion in a dll (and should export symbols for example).
8644 lt_prog_compiler_pic='-DDLL_EXPORT'
8645 case $host_os in
8646 os2*)
8647 lt_prog_compiler_static='$wl-static'
8648 ;;
8649 esac
8650 ;;
8651
8652 hpux9* | hpux10* | hpux11*)
8653 lt_prog_compiler_wl='-Wl,'
8654 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8655 # not for PA HP-UX.
8656 case $host_cpu in
8657 hppa*64*|ia64*)
8658 # +Z the default
8659 ;;
8660 *)
8661 lt_prog_compiler_pic='+Z'
8662 ;;
8663 esac
8664 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8665 lt_prog_compiler_static='$wl-a ${wl}archive'
8666 ;;
8667
8668 irix5* | irix6* | nonstopux*)
8669 lt_prog_compiler_wl='-Wl,'
8670 # PIC (with -KPIC) is the default.
8671 lt_prog_compiler_static='-non_shared'
8672 ;;
8673
8674 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8675 case $cc_basename in
8676 # old Intel for x86_64, which still supported -KPIC.
8677 ecc*)
8678 lt_prog_compiler_wl='-Wl,'
8679 lt_prog_compiler_pic='-KPIC'
8680 lt_prog_compiler_static='-static'
8681 ;;
8682 # icc used to be incompatible with GCC.
8683 # ICC 10 doesn't accept -KPIC any more.
8684 icc* | ifort*)
8685 lt_prog_compiler_wl='-Wl,'
8686 lt_prog_compiler_pic='-fPIC'
8687 lt_prog_compiler_static='-static'
8688 ;;
8689 # Lahey Fortran 8.1.
8690 lf95*)
8691 lt_prog_compiler_wl='-Wl,'
8692 lt_prog_compiler_pic='--shared'
8693 lt_prog_compiler_static='--static'
8694 ;;
8695 nagfor*)
8696 # NAG Fortran compiler
8697 lt_prog_compiler_wl='-Wl,-Wl,,'
8698 lt_prog_compiler_pic='-PIC'
8699 lt_prog_compiler_static='-Bstatic'
8700 ;;
8701 tcc*)
8702 # Fabrice Bellard et al's Tiny C Compiler
8703 lt_prog_compiler_wl='-Wl,'
8704 lt_prog_compiler_pic='-fPIC'
8705 lt_prog_compiler_static='-static'
8706 ;;
8707 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8708 # Portland Group compilers (*not* the Pentium gcc compiler,
8709 # which looks to be a dead project)
8710 lt_prog_compiler_wl='-Wl,'
8711 lt_prog_compiler_pic='-fpic'
8712 lt_prog_compiler_static='-Bstatic'
8713 ;;
8714 ccc*)
8715 lt_prog_compiler_wl='-Wl,'
8716 # All Alpha code is PIC.
8717 lt_prog_compiler_static='-non_shared'
8718 ;;
8719 xl* | bgxl* | bgf* | mpixl*)
8720 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8721 lt_prog_compiler_wl='-Wl,'
8722 lt_prog_compiler_pic='-qpic'
8723 lt_prog_compiler_static='-qstaticlink'
8724 ;;
8725 *)
8726 case `$CC -V 2>&1 | sed 5q` in
8727 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8728 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8729 lt_prog_compiler_pic='-KPIC'
8730 lt_prog_compiler_static='-Bstatic'
8731 lt_prog_compiler_wl=''
8732 ;;
8733 *Sun\ F* | *Sun*Fortran*)
8734 lt_prog_compiler_pic='-KPIC'
8735 lt_prog_compiler_static='-Bstatic'
8736 lt_prog_compiler_wl='-Qoption ld '
8737 ;;
8738 *Sun\ C*)
8739 # Sun C 5.9
8740 lt_prog_compiler_pic='-KPIC'
8741 lt_prog_compiler_static='-Bstatic'
8742 lt_prog_compiler_wl='-Wl,'
8743 ;;
8744 *Intel*\ [CF]*Compiler*)
8745 lt_prog_compiler_wl='-Wl,'
8746 lt_prog_compiler_pic='-fPIC'
8747 lt_prog_compiler_static='-static'
8748 ;;
8749 *Portland\ Group*)
8750 lt_prog_compiler_wl='-Wl,'
8751 lt_prog_compiler_pic='-fpic'
8752 lt_prog_compiler_static='-Bstatic'
8753 ;;
8754 esac
8755 ;;
8756 esac
8757 ;;
8758
8759 newsos6)
8760 lt_prog_compiler_pic='-KPIC'
8761 lt_prog_compiler_static='-Bstatic'
8762 ;;
8763
8764 *nto* | *qnx*)
8765 # QNX uses GNU C++, but need to define -shared option too, otherwise
8766 # it will coredump.
8767 lt_prog_compiler_pic='-fPIC -shared'
8768 ;;
8769
8770 osf3* | osf4* | osf5*)
8771 lt_prog_compiler_wl='-Wl,'
8772 # All OSF/1 code is PIC.
8773 lt_prog_compiler_static='-non_shared'
8774 ;;
8775
8776 rdos*)
8777 lt_prog_compiler_static='-non_shared'
8778 ;;
8779
8780 solaris*)
8781 lt_prog_compiler_pic='-KPIC'
8782 lt_prog_compiler_static='-Bstatic'
8783 case $cc_basename in
8784 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8785 lt_prog_compiler_wl='-Qoption ld ';;
8786 *)
8787 lt_prog_compiler_wl='-Wl,';;
8788 esac
8789 ;;
8790
8791 sunos4*)
8792 lt_prog_compiler_wl='-Qoption ld '
8793 lt_prog_compiler_pic='-PIC'
8794 lt_prog_compiler_static='-Bstatic'
8795 ;;
8796
8797 sysv4 | sysv4.2uw2* | sysv4.3*)
8798 lt_prog_compiler_wl='-Wl,'
8799 lt_prog_compiler_pic='-KPIC'
8800 lt_prog_compiler_static='-Bstatic'
8801 ;;
8802
8803 sysv4*MP*)
8804 if test -d /usr/nec; then
8805 lt_prog_compiler_pic='-Kconform_pic'
8806 lt_prog_compiler_static='-Bstatic'
8807 fi
8808 ;;
8809
8810 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8811 lt_prog_compiler_wl='-Wl,'
8812 lt_prog_compiler_pic='-KPIC'
8813 lt_prog_compiler_static='-Bstatic'
8814 ;;
8815
8816 unicos*)
8817 lt_prog_compiler_wl='-Wl,'
8818 lt_prog_compiler_can_build_shared=no
8819 ;;
8820
8821 uts4*)
8822 lt_prog_compiler_pic='-pic'
8823 lt_prog_compiler_static='-Bstatic'
8824 ;;
8825
8826 *)
8827 lt_prog_compiler_can_build_shared=no
8828 ;;
8829 esac
8830 fi
8831
8832 case $host_os in
8833 # For platforms that do not support PIC, -DPIC is meaningless:
8834 *djgpp*)
8835 lt_prog_compiler_pic=
8836 ;;
8837 *)
8838 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8839 ;;
8840 esac
8841
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8843 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8844 if ${lt_cv_prog_compiler_pic+:} false; then :
8845 $as_echo_n "(cached) " >&6
8846 else
8847 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8848 fi
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8850 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8851 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8852
8853 #
8854 # Check to make sure the PIC flag actually works.
8855 #
8856 if test -n "$lt_prog_compiler_pic"; then
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8858 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8859 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8860 $as_echo_n "(cached) " >&6
8861 else
8862 lt_cv_prog_compiler_pic_works=no
8863 ac_outfile=conftest.$ac_objext
8864 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8865 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8866 # Insert the option either (1) after the last *FLAGS variable, or
8867 # (2) before a word containing "conftest.", or (3) at the end.
8868 # Note that $ac_compile itself does not contain backslashes and begins
8869 # with a dollar sign (not a hyphen), so the echo should work correctly.
8870 # The option is referenced via a variable to avoid confusing sed.
8871 lt_compile=`echo "$ac_compile" | $SED \
8872 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8873 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8874 -e 's:$: $lt_compiler_flag:'`
8875 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8876 (eval "$lt_compile" 2>conftest.err)
8877 ac_status=$?
8878 cat conftest.err >&5
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 if (exit $ac_status) && test -s "$ac_outfile"; then
8881 # The compiler can only warn and ignore the option if not recognized
8882 # So say no if there are warnings other than the usual output.
8883 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8884 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8885 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8886 lt_cv_prog_compiler_pic_works=yes
8887 fi
8888 fi
8889 $RM conftest*
8890
8891 fi
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8893 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8894
8895 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8896 case $lt_prog_compiler_pic in
8897 "" | " "*) ;;
8898 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8899 esac
8900 else
8901 lt_prog_compiler_pic=
8902 lt_prog_compiler_can_build_shared=no
8903 fi
8904
8905 fi
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917 #
8918 # Check to make sure the static flag actually works.
8919 #
8920 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8922 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8923 if ${lt_cv_prog_compiler_static_works+:} false; then :
8924 $as_echo_n "(cached) " >&6
8925 else
8926 lt_cv_prog_compiler_static_works=no
8927 save_LDFLAGS=$LDFLAGS
8928 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8929 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8930 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8931 # The linker can only warn and ignore the option if not recognized
8932 # So say no if there are warnings
8933 if test -s conftest.err; then
8934 # Append any errors to the config.log.
8935 cat conftest.err 1>&5
8936 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8937 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8938 if diff conftest.exp conftest.er2 >/dev/null; then
8939 lt_cv_prog_compiler_static_works=yes
8940 fi
8941 else
8942 lt_cv_prog_compiler_static_works=yes
8943 fi
8944 fi
8945 $RM -r conftest*
8946 LDFLAGS=$save_LDFLAGS
8947
8948 fi
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8950 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8951
8952 if test yes = "$lt_cv_prog_compiler_static_works"; then
8953 :
8954 else
8955 lt_prog_compiler_static=
8956 fi
8957
8958
8959
8960
8961
8962
8963
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8965 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8966 if ${lt_cv_prog_compiler_c_o+:} false; then :
8967 $as_echo_n "(cached) " >&6
8968 else
8969 lt_cv_prog_compiler_c_o=no
8970 $RM -r conftest 2>/dev/null
8971 mkdir conftest
8972 cd conftest
8973 mkdir out
8974 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8975
8976 lt_compiler_flag="-o out/conftest2.$ac_objext"
8977 # Insert the option either (1) after the last *FLAGS variable, or
8978 # (2) before a word containing "conftest.", or (3) at the end.
8979 # Note that $ac_compile itself does not contain backslashes and begins
8980 # with a dollar sign (not a hyphen), so the echo should work correctly.
8981 lt_compile=`echo "$ac_compile" | $SED \
8982 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8983 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8984 -e 's:$: $lt_compiler_flag:'`
8985 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8986 (eval "$lt_compile" 2>out/conftest.err)
8987 ac_status=$?
8988 cat out/conftest.err >&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8991 then
8992 # The compiler can only warn and ignore the option if not recognized
8993 # So say no if there are warnings
8994 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8995 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8996 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8997 lt_cv_prog_compiler_c_o=yes
8998 fi
8999 fi
9000 chmod u+w . 2>&5
9001 $RM conftest*
9002 # SGI C++ compiler will create directory out/ii_files/ for
9003 # template instantiation
9004 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9005 $RM out/* && rmdir out
9006 cd ..
9007 $RM -r conftest
9008 $RM conftest*
9009
9010 fi
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9012 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9013
9014
9015
9016
9017
9018
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9020 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9021 if ${lt_cv_prog_compiler_c_o+:} false; then :
9022 $as_echo_n "(cached) " >&6
9023 else
9024 lt_cv_prog_compiler_c_o=no
9025 $RM -r conftest 2>/dev/null
9026 mkdir conftest
9027 cd conftest
9028 mkdir out
9029 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9030
9031 lt_compiler_flag="-o out/conftest2.$ac_objext"
9032 # Insert the option either (1) after the last *FLAGS variable, or
9033 # (2) before a word containing "conftest.", or (3) at the end.
9034 # Note that $ac_compile itself does not contain backslashes and begins
9035 # with a dollar sign (not a hyphen), so the echo should work correctly.
9036 lt_compile=`echo "$ac_compile" | $SED \
9037 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9038 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9039 -e 's:$: $lt_compiler_flag:'`
9040 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9041 (eval "$lt_compile" 2>out/conftest.err)
9042 ac_status=$?
9043 cat out/conftest.err >&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9046 then
9047 # The compiler can only warn and ignore the option if not recognized
9048 # So say no if there are warnings
9049 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9050 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9051 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9052 lt_cv_prog_compiler_c_o=yes
9053 fi
9054 fi
9055 chmod u+w . 2>&5
9056 $RM conftest*
9057 # SGI C++ compiler will create directory out/ii_files/ for
9058 # template instantiation
9059 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9060 $RM out/* && rmdir out
9061 cd ..
9062 $RM -r conftest
9063 $RM conftest*
9064
9065 fi
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9067 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9068
9069
9070
9071
9072 hard_links=nottested
9073 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9074 # do not overwrite the value of need_locks provided by the user
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9076 $as_echo_n "checking if we can lock with hard links... " >&6; }
9077 hard_links=yes
9078 $RM conftest*
9079 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9080 touch conftest.a
9081 ln conftest.a conftest.b 2>&5 || hard_links=no
9082 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9084 $as_echo "$hard_links" >&6; }
9085 if test no = "$hard_links"; then
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9087 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9088 need_locks=warn
9089 fi
9090 else
9091 need_locks=no
9092 fi
9093
9094
9095
9096
9097
9098
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9100 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9101
9102 runpath_var=
9103 allow_undefined_flag=
9104 always_export_symbols=no
9105 archive_cmds=
9106 archive_expsym_cmds=
9107 compiler_needs_object=no
9108 enable_shared_with_static_runtimes=no
9109 export_dynamic_flag_spec=
9110 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9111 hardcode_automatic=no
9112 hardcode_direct=no
9113 hardcode_direct_absolute=no
9114 hardcode_libdir_flag_spec=
9115 hardcode_libdir_separator=
9116 hardcode_minus_L=no
9117 hardcode_shlibpath_var=unsupported
9118 inherit_rpath=no
9119 link_all_deplibs=unknown
9120 module_cmds=
9121 module_expsym_cmds=
9122 old_archive_from_new_cmds=
9123 old_archive_from_expsyms_cmds=
9124 thread_safe_flag_spec=
9125 whole_archive_flag_spec=
9126 # include_expsyms should be a list of space-separated symbols to be *always*
9127 # included in the symbol list
9128 include_expsyms=
9129 # exclude_expsyms can be an extended regexp of symbols to exclude
9130 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9131 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9132 # as well as any symbol that contains 'd'.
9133 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9134 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9135 # platforms (ab)use it in PIC code, but their linkers get confused if
9136 # the symbol is explicitly referenced. Since portable code cannot
9137 # rely on this symbol name, it's probably fine to never include it in
9138 # preloaded symbol tables.
9139 # Exclude shared library initialization/finalization symbols.
9140 extract_expsyms_cmds=
9141
9142 case $host_os in
9143 cygwin* | mingw* | pw32* | cegcc*)
9144 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9145 # When not using gcc, we currently assume that we are using
9146 # Microsoft Visual C++.
9147 if test yes != "$GCC"; then
9148 with_gnu_ld=no
9149 fi
9150 ;;
9151 interix*)
9152 # we just hope/assume this is gcc and not c89 (= MSVC++)
9153 with_gnu_ld=yes
9154 ;;
9155 openbsd* | bitrig*)
9156 with_gnu_ld=no
9157 ;;
9158 linux* | k*bsd*-gnu | gnu*)
9159 link_all_deplibs=no
9160 ;;
9161 esac
9162
9163 ld_shlibs=yes
9164
9165 # On some targets, GNU ld is compatible enough with the native linker
9166 # that we're better off using the native interface for both.
9167 lt_use_gnu_ld_interface=no
9168 if test yes = "$with_gnu_ld"; then
9169 case $host_os in
9170 aix*)
9171 # The AIX port of GNU ld has always aspired to compatibility
9172 # with the native linker. However, as the warning in the GNU ld
9173 # block says, versions before 2.19.5* couldn't really create working
9174 # shared libraries, regardless of the interface used.
9175 case `$LD -v 2>&1` in
9176 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9177 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9178 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9179 *)
9180 lt_use_gnu_ld_interface=yes
9181 ;;
9182 esac
9183 ;;
9184 *)
9185 lt_use_gnu_ld_interface=yes
9186 ;;
9187 esac
9188 fi
9189
9190 if test yes = "$lt_use_gnu_ld_interface"; then
9191 # If archive_cmds runs LD, not CC, wlarc should be empty
9192 wlarc='$wl'
9193
9194 # Set some defaults for GNU ld with shared library support. These
9195 # are reset later if shared libraries are not supported. Putting them
9196 # here allows them to be overridden if necessary.
9197 runpath_var=LD_RUN_PATH
9198 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9199 export_dynamic_flag_spec='$wl--export-dynamic'
9200 # ancient GNU ld didn't support --whole-archive et. al.
9201 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9202 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9203 else
9204 whole_archive_flag_spec=
9205 fi
9206 supports_anon_versioning=no
9207 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9208 *GNU\ gold*) supports_anon_versioning=yes ;;
9209 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9210 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9211 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9212 *\ 2.11.*) ;; # other 2.11 versions
9213 *) supports_anon_versioning=yes ;;
9214 esac
9215
9216 # See if GNU ld supports shared libraries.
9217 case $host_os in
9218 aix[3-9]*)
9219 # On AIX/PPC, the GNU linker is very broken
9220 if test ia64 != "$host_cpu"; then
9221 ld_shlibs=no
9222 cat <<_LT_EOF 1>&2
9223
9224 *** Warning: the GNU linker, at least up to release 2.19, is reported
9225 *** to be unable to reliably create shared libraries on AIX.
9226 *** Therefore, libtool is disabling shared libraries support. If you
9227 *** really care for shared libraries, you may want to install binutils
9228 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9229 *** You will then need to restart the configuration process.
9230
9231 _LT_EOF
9232 fi
9233 ;;
9234
9235 amigaos*)
9236 case $host_cpu in
9237 powerpc)
9238 # see comment about AmigaOS4 .so support
9239 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9240 archive_expsym_cmds=''
9241 ;;
9242 m68k)
9243 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)'
9244 hardcode_libdir_flag_spec='-L$libdir'
9245 hardcode_minus_L=yes
9246 ;;
9247 esac
9248 ;;
9249
9250 beos*)
9251 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9252 allow_undefined_flag=unsupported
9253 # Joseph Beckenbach <[email protected]> says some releases of gcc
9254 # support --undefined. This deserves some investigation. FIXME
9255 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9256 else
9257 ld_shlibs=no
9258 fi
9259 ;;
9260
9261 cygwin* | mingw* | pw32* | cegcc*)
9262 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9263 # as there is no search path for DLLs.
9264 hardcode_libdir_flag_spec='-L$libdir'
9265 export_dynamic_flag_spec='$wl--export-all-symbols'
9266 allow_undefined_flag=unsupported
9267 always_export_symbols=no
9268 enable_shared_with_static_runtimes=yes
9269 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'
9270 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9271
9272 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9273 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9274 # If the export-symbols file already is a .def file, use it as
9275 # is; otherwise, prepend EXPORTS...
9276 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9277 cp $export_symbols $output_objdir/$soname.def;
9278 else
9279 echo EXPORTS > $output_objdir/$soname.def;
9280 cat $export_symbols >> $output_objdir/$soname.def;
9281 fi~
9282 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9283 else
9284 ld_shlibs=no
9285 fi
9286 ;;
9287
9288 haiku*)
9289 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9290 link_all_deplibs=yes
9291 ;;
9292
9293 os2*)
9294 hardcode_libdir_flag_spec='-L$libdir'
9295 hardcode_minus_L=yes
9296 allow_undefined_flag=unsupported
9297 shrext_cmds=.dll
9298 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9299 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9300 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9301 $ECHO EXPORTS >> $output_objdir/$libname.def~
9302 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9303 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9304 emximp -o $lib $output_objdir/$libname.def'
9305 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9306 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9307 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9308 $ECHO EXPORTS >> $output_objdir/$libname.def~
9309 prefix_cmds="$SED"~
9310 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9311 prefix_cmds="$prefix_cmds -e 1d";
9312 fi~
9313 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9314 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9315 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9316 emximp -o $lib $output_objdir/$libname.def'
9317 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9318 enable_shared_with_static_runtimes=yes
9319 ;;
9320
9321 interix[3-9]*)
9322 hardcode_direct=no
9323 hardcode_shlibpath_var=no
9324 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9325 export_dynamic_flag_spec='$wl-E'
9326 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9327 # Instead, shared libraries are loaded at an image base (0x10000000 by
9328 # default) and relocated if they conflict, which is a slow very memory
9329 # consuming and fragmenting process. To avoid this, we pick a random,
9330 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9331 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9332 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9333 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'
9334 ;;
9335
9336 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9337 tmp_diet=no
9338 if test linux-dietlibc = "$host_os"; then
9339 case $cc_basename in
9340 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9341 esac
9342 fi
9343 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9344 && test no = "$tmp_diet"
9345 then
9346 tmp_addflag=' $pic_flag'
9347 tmp_sharedflag='-shared'
9348 case $cc_basename,$host_cpu in
9349 pgcc*) # Portland Group C compiler
9350 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'
9351 tmp_addflag=' $pic_flag'
9352 ;;
9353 pgf77* | pgf90* | pgf95* | pgfortran*)
9354 # Portland Group f77 and f90 compilers
9355 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'
9356 tmp_addflag=' $pic_flag -Mnomain' ;;
9357 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9358 tmp_addflag=' -i_dynamic' ;;
9359 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9360 tmp_addflag=' -i_dynamic -nofor_main' ;;
9361 ifc* | ifort*) # Intel Fortran compiler
9362 tmp_addflag=' -nofor_main' ;;
9363 lf95*) # Lahey Fortran 8.1
9364 whole_archive_flag_spec=
9365 tmp_sharedflag='--shared' ;;
9366 nagfor*) # NAGFOR 5.3
9367 tmp_sharedflag='-Wl,-shared' ;;
9368 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9369 tmp_sharedflag='-qmkshrobj'
9370 tmp_addflag= ;;
9371 nvcc*) # Cuda Compiler Driver 2.2
9372 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'
9373 compiler_needs_object=yes
9374 ;;
9375 esac
9376 case `$CC -V 2>&1 | sed 5q` in
9377 *Sun\ C*) # Sun C 5.9
9378 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'
9379 compiler_needs_object=yes
9380 tmp_sharedflag='-G' ;;
9381 *Sun\ F*) # Sun Fortran 8.3
9382 tmp_sharedflag='-G' ;;
9383 esac
9384 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9385
9386 if test yes = "$supports_anon_versioning"; then
9387 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9388 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9389 echo "local: *; };" >> $output_objdir/$libname.ver~
9390 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9391 fi
9392
9393 case $cc_basename in
9394 tcc*)
9395 export_dynamic_flag_spec='-rdynamic'
9396 ;;
9397 xlf* | bgf* | bgxlf* | mpixlf*)
9398 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9399 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9400 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9401 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9402 if test yes = "$supports_anon_versioning"; then
9403 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9404 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9405 echo "local: *; };" >> $output_objdir/$libname.ver~
9406 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9407 fi
9408 ;;
9409 esac
9410 else
9411 ld_shlibs=no
9412 fi
9413 ;;
9414
9415 netbsd* | netbsdelf*-gnu)
9416 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9417 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9418 wlarc=
9419 else
9420 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9421 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9422 fi
9423 ;;
9424
9425 solaris*)
9426 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9427 ld_shlibs=no
9428 cat <<_LT_EOF 1>&2
9429
9430 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9431 *** create shared libraries on Solaris systems. Therefore, libtool
9432 *** is disabling shared libraries support. We urge you to upgrade GNU
9433 *** binutils to release 2.9.1 or newer. Another option is to modify
9434 *** your PATH or compiler configuration so that the native linker is
9435 *** used, and then restart.
9436
9437 _LT_EOF
9438 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9439 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9440 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9441 else
9442 ld_shlibs=no
9443 fi
9444 ;;
9445
9446 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9447 case `$LD -v 2>&1` in
9448 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9449 ld_shlibs=no
9450 cat <<_LT_EOF 1>&2
9451
9452 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9453 *** reliably create shared libraries on SCO systems. Therefore, libtool
9454 *** is disabling shared libraries support. We urge you to upgrade GNU
9455 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9456 *** your PATH or compiler configuration so that the native linker is
9457 *** used, and then restart.
9458
9459 _LT_EOF
9460 ;;
9461 *)
9462 # For security reasons, it is highly recommended that you always
9463 # use absolute paths for naming shared libraries, and exclude the
9464 # DT_RUNPATH tag from executables and libraries. But doing so
9465 # requires that you compile everything twice, which is a pain.
9466 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9467 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9468 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9469 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9470 else
9471 ld_shlibs=no
9472 fi
9473 ;;
9474 esac
9475 ;;
9476
9477 sunos4*)
9478 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9479 wlarc=
9480 hardcode_direct=yes
9481 hardcode_shlibpath_var=no
9482 ;;
9483
9484 *)
9485 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9486 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9487 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9488 else
9489 ld_shlibs=no
9490 fi
9491 ;;
9492 esac
9493
9494 if test no = "$ld_shlibs"; then
9495 runpath_var=
9496 hardcode_libdir_flag_spec=
9497 export_dynamic_flag_spec=
9498 whole_archive_flag_spec=
9499 fi
9500 else
9501 # PORTME fill in a description of your system's linker (not GNU ld)
9502 case $host_os in
9503 aix3*)
9504 allow_undefined_flag=unsupported
9505 always_export_symbols=yes
9506 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'
9507 # Note: this linker hardcodes the directories in LIBPATH if there
9508 # are no directories specified by -L.
9509 hardcode_minus_L=yes
9510 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9511 # Neither direct hardcoding nor static linking is supported with a
9512 # broken collect2.
9513 hardcode_direct=unsupported
9514 fi
9515 ;;
9516
9517 aix[4-9]*)
9518 if test ia64 = "$host_cpu"; then
9519 # On IA64, the linker does run time linking by default, so we don't
9520 # have to do anything special.
9521 aix_use_runtimelinking=no
9522 exp_sym_flag='-Bexport'
9523 no_entry_flag=
9524 else
9525 # If we're using GNU nm, then we don't want the "-C" option.
9526 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9527 # Without the "-l" option, or with the "-B" option, AIX nm treats
9528 # weak defined symbols like other global defined symbols, whereas
9529 # GNU nm marks them as "W".
9530 # While the 'weak' keyword is ignored in the Export File, we need
9531 # it in the Import File for the 'aix-soname' feature, so we have
9532 # to replace the "-B" option with "-P" for AIX nm.
9533 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9534 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'
9535 else
9536 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'
9537 fi
9538 aix_use_runtimelinking=no
9539
9540 # Test if we are trying to use run time linking or normal
9541 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9542 # have runtime linking enabled, and use it for executables.
9543 # For shared libraries, we enable/disable runtime linking
9544 # depending on the kind of the shared library created -
9545 # when "with_aix_soname,aix_use_runtimelinking" is:
9546 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9547 # "aix,yes" lib.so shared, rtl:yes, for executables
9548 # lib.a static archive
9549 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9550 # lib.a(lib.so.V) shared, rtl:no, for executables
9551 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9552 # lib.a(lib.so.V) shared, rtl:no
9553 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9554 # lib.a static archive
9555 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9556 for ld_flag in $LDFLAGS; do
9557 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9558 aix_use_runtimelinking=yes
9559 break
9560 fi
9561 done
9562 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9563 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9564 # so we don't have lib.a shared libs to link our executables.
9565 # We have to force runtime linking in this case.
9566 aix_use_runtimelinking=yes
9567 LDFLAGS="$LDFLAGS -Wl,-brtl"
9568 fi
9569 ;;
9570 esac
9571
9572 exp_sym_flag='-bexport'
9573 no_entry_flag='-bnoentry'
9574 fi
9575
9576 # When large executables or shared objects are built, AIX ld can
9577 # have problems creating the table of contents. If linking a library
9578 # or program results in "error TOC overflow" add -mminimal-toc to
9579 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9580 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9581
9582 archive_cmds=''
9583 hardcode_direct=yes
9584 hardcode_direct_absolute=yes
9585 hardcode_libdir_separator=':'
9586 link_all_deplibs=yes
9587 file_list_spec='$wl-f,'
9588 case $with_aix_soname,$aix_use_runtimelinking in
9589 aix,*) ;; # traditional, no import file
9590 svr4,* | *,yes) # use import file
9591 # The Import File defines what to hardcode.
9592 hardcode_direct=no
9593 hardcode_direct_absolute=no
9594 ;;
9595 esac
9596
9597 if test yes = "$GCC"; then
9598 case $host_os in aix4.[012]|aix4.[012].*)
9599 # We only want to do this on AIX 4.2 and lower, the check
9600 # below for broken collect2 doesn't work under 4.3+
9601 collect2name=`$CC -print-prog-name=collect2`
9602 if test -f "$collect2name" &&
9603 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9604 then
9605 # We have reworked collect2
9606 :
9607 else
9608 # We have old collect2
9609 hardcode_direct=unsupported
9610 # It fails to find uninstalled libraries when the uninstalled
9611 # path is not listed in the libpath. Setting hardcode_minus_L
9612 # to unsupported forces relinking
9613 hardcode_minus_L=yes
9614 hardcode_libdir_flag_spec='-L$libdir'
9615 hardcode_libdir_separator=
9616 fi
9617 ;;
9618 esac
9619 shared_flag='-shared'
9620 if test yes = "$aix_use_runtimelinking"; then
9621 shared_flag="$shared_flag "'$wl-G'
9622 fi
9623 # Need to ensure runtime linking is disabled for the traditional
9624 # shared library, or the linker may eventually find shared libraries
9625 # /with/ Import File - we do not want to mix them.
9626 shared_flag_aix='-shared'
9627 shared_flag_svr4='-shared $wl-G'
9628 else
9629 # not using gcc
9630 if test ia64 = "$host_cpu"; then
9631 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9632 # chokes on -Wl,-G. The following line is correct:
9633 shared_flag='-G'
9634 else
9635 if test yes = "$aix_use_runtimelinking"; then
9636 shared_flag='$wl-G'
9637 else
9638 shared_flag='$wl-bM:SRE'
9639 fi
9640 shared_flag_aix='$wl-bM:SRE'
9641 shared_flag_svr4='$wl-G'
9642 fi
9643 fi
9644
9645 export_dynamic_flag_spec='$wl-bexpall'
9646 # It seems that -bexpall does not export symbols beginning with
9647 # underscore (_), so it is better to generate a list of symbols to export.
9648 always_export_symbols=yes
9649 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9650 # Warning - without using the other runtime loading flags (-brtl),
9651 # -berok will link without error, but may produce a broken library.
9652 allow_undefined_flag='-berok'
9653 # Determine the default libpath from the value encoded in an
9654 # empty executable.
9655 if test set = "${lt_cv_aix_libpath+set}"; then
9656 aix_libpath=$lt_cv_aix_libpath
9657 else
9658 if ${lt_cv_aix_libpath_+:} false; then :
9659 $as_echo_n "(cached) " >&6
9660 else
9661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9662 /* end confdefs.h. */
9663
9664 int
9665 main ()
9666 {
9667
9668 ;
9669 return 0;
9670 }
9671 _ACEOF
9672 if ac_fn_c_try_link "$LINENO"; then :
9673
9674 lt_aix_libpath_sed='
9675 /Import File Strings/,/^$/ {
9676 /^0/ {
9677 s/^0 *\([^ ]*\) *$/\1/
9678 p
9679 }
9680 }'
9681 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9682 # Check for a 64-bit object if we didn't find anything.
9683 if test -z "$lt_cv_aix_libpath_"; then
9684 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9685 fi
9686 fi
9687 rm -f core conftest.err conftest.$ac_objext \
9688 conftest$ac_exeext conftest.$ac_ext
9689 if test -z "$lt_cv_aix_libpath_"; then
9690 lt_cv_aix_libpath_=/usr/lib:/lib
9691 fi
9692
9693 fi
9694
9695 aix_libpath=$lt_cv_aix_libpath_
9696 fi
9697
9698 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9699 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
9700 else
9701 if test ia64 = "$host_cpu"; then
9702 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9703 allow_undefined_flag="-z nodefs"
9704 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"
9705 else
9706 # Determine the default libpath from the value encoded in an
9707 # empty executable.
9708 if test set = "${lt_cv_aix_libpath+set}"; then
9709 aix_libpath=$lt_cv_aix_libpath
9710 else
9711 if ${lt_cv_aix_libpath_+:} false; then :
9712 $as_echo_n "(cached) " >&6
9713 else
9714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9715 /* end confdefs.h. */
9716
9717 int
9718 main ()
9719 {
9720
9721 ;
9722 return 0;
9723 }
9724 _ACEOF
9725 if ac_fn_c_try_link "$LINENO"; then :
9726
9727 lt_aix_libpath_sed='
9728 /Import File Strings/,/^$/ {
9729 /^0/ {
9730 s/^0 *\([^ ]*\) *$/\1/
9731 p
9732 }
9733 }'
9734 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9735 # Check for a 64-bit object if we didn't find anything.
9736 if test -z "$lt_cv_aix_libpath_"; then
9737 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9738 fi
9739 fi
9740 rm -f core conftest.err conftest.$ac_objext \
9741 conftest$ac_exeext conftest.$ac_ext
9742 if test -z "$lt_cv_aix_libpath_"; then
9743 lt_cv_aix_libpath_=/usr/lib:/lib
9744 fi
9745
9746 fi
9747
9748 aix_libpath=$lt_cv_aix_libpath_
9749 fi
9750
9751 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9752 # Warning - without using the other run time loading flags,
9753 # -berok will link without error, but may produce a broken library.
9754 no_undefined_flag=' $wl-bernotok'
9755 allow_undefined_flag=' $wl-berok'
9756 if test yes = "$with_gnu_ld"; then
9757 # We only use this code for GNU lds that support --whole-archive.
9758 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9759 else
9760 # Exported symbols can be pulled into shared objects from archives
9761 whole_archive_flag_spec='$convenience'
9762 fi
9763 archive_cmds_need_lc=yes
9764 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9765 # -brtl affects multiple linker settings, -berok does not and is overridden later
9766 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9767 if test svr4 != "$with_aix_soname"; then
9768 # This is similar to how AIX traditionally builds its shared libraries.
9769 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'
9770 fi
9771 if test aix != "$with_aix_soname"; then
9772 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'
9773 else
9774 # used by -dlpreopen to get the symbols
9775 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9776 fi
9777 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9778 fi
9779 fi
9780 ;;
9781
9782 amigaos*)
9783 case $host_cpu in
9784 powerpc)
9785 # see comment about AmigaOS4 .so support
9786 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9787 archive_expsym_cmds=''
9788 ;;
9789 m68k)
9790 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)'
9791 hardcode_libdir_flag_spec='-L$libdir'
9792 hardcode_minus_L=yes
9793 ;;
9794 esac
9795 ;;
9796
9797 bsdi[45]*)
9798 export_dynamic_flag_spec=-rdynamic
9799 ;;
9800
9801 cygwin* | mingw* | pw32* | cegcc*)
9802 # When not using gcc, we currently assume that we are using
9803 # Microsoft Visual C++.
9804 # hardcode_libdir_flag_spec is actually meaningless, as there is
9805 # no search path for DLLs.
9806 case $cc_basename in
9807 cl*)
9808 # Native MSVC
9809 hardcode_libdir_flag_spec=' '
9810 allow_undefined_flag=unsupported
9811 always_export_symbols=yes
9812 file_list_spec='@'
9813 # Tell ltmain to make .lib files, not .a files.
9814 libext=lib
9815 # Tell ltmain to make .dll files, not .so files.
9816 shrext_cmds=.dll
9817 # FIXME: Setting linknames here is a bad hack.
9818 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9819 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9820 cp "$export_symbols" "$output_objdir/$soname.def";
9821 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9822 else
9823 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9824 fi~
9825 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9826 linknames='
9827 # The linker will not automatically build a static lib if we build a DLL.
9828 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9829 enable_shared_with_static_runtimes=yes
9830 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9831 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9832 # Don't use ranlib
9833 old_postinstall_cmds='chmod 644 $oldlib'
9834 postlink_cmds='lt_outputfile="@OUTPUT@"~
9835 lt_tool_outputfile="@TOOL_OUTPUT@"~
9836 case $lt_outputfile in
9837 *.exe|*.EXE) ;;
9838 *)
9839 lt_outputfile=$lt_outputfile.exe
9840 lt_tool_outputfile=$lt_tool_outputfile.exe
9841 ;;
9842 esac~
9843 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9844 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9845 $RM "$lt_outputfile.manifest";
9846 fi'
9847 ;;
9848 *)
9849 # Assume MSVC wrapper
9850 hardcode_libdir_flag_spec=' '
9851 allow_undefined_flag=unsupported
9852 # Tell ltmain to make .lib files, not .a files.
9853 libext=lib
9854 # Tell ltmain to make .dll files, not .so files.
9855 shrext_cmds=.dll
9856 # FIXME: Setting linknames here is a bad hack.
9857 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9858 # The linker will automatically build a .lib file if we build a DLL.
9859 old_archive_from_new_cmds='true'
9860 # FIXME: Should let the user specify the lib program.
9861 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9862 enable_shared_with_static_runtimes=yes
9863 ;;
9864 esac
9865 ;;
9866
9867 darwin* | rhapsody*)
9868
9869
9870 archive_cmds_need_lc=no
9871 hardcode_direct=no
9872 hardcode_automatic=yes
9873 hardcode_shlibpath_var=unsupported
9874 if test yes = "$lt_cv_ld_force_load"; then
9875 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\"`'
9876
9877 else
9878 whole_archive_flag_spec=''
9879 fi
9880 link_all_deplibs=yes
9881 allow_undefined_flag=$_lt_dar_allow_undefined
9882 case $cc_basename in
9883 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9884 *) _lt_dar_can_shared=$GCC ;;
9885 esac
9886 if test yes = "$_lt_dar_can_shared"; then
9887 output_verbose_link_cmd=func_echo_all
9888 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9889 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9890 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"
9891 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"
9892
9893 else
9894 ld_shlibs=no
9895 fi
9896
9897 ;;
9898
9899 dgux*)
9900 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9901 hardcode_libdir_flag_spec='-L$libdir'
9902 hardcode_shlibpath_var=no
9903 ;;
9904
9905 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9906 # support. Future versions do this automatically, but an explicit c++rt0.o
9907 # does not break anything, and helps significantly (at the cost of a little
9908 # extra space).
9909 freebsd2.2*)
9910 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9911 hardcode_libdir_flag_spec='-R$libdir'
9912 hardcode_direct=yes
9913 hardcode_shlibpath_var=no
9914 ;;
9915
9916 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9917 freebsd2.*)
9918 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9919 hardcode_direct=yes
9920 hardcode_minus_L=yes
9921 hardcode_shlibpath_var=no
9922 ;;
9923
9924 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9925 freebsd* | dragonfly*)
9926 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9927 hardcode_libdir_flag_spec='-R$libdir'
9928 hardcode_direct=yes
9929 hardcode_shlibpath_var=no
9930 ;;
9931
9932 hpux9*)
9933 if test yes = "$GCC"; then
9934 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'
9935 else
9936 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'
9937 fi
9938 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9939 hardcode_libdir_separator=:
9940 hardcode_direct=yes
9941
9942 # hardcode_minus_L: Not really in the search PATH,
9943 # but as the default location of the library.
9944 hardcode_minus_L=yes
9945 export_dynamic_flag_spec='$wl-E'
9946 ;;
9947
9948 hpux10*)
9949 if test yes,no = "$GCC,$with_gnu_ld"; then
9950 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9951 else
9952 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9953 fi
9954 if test no = "$with_gnu_ld"; then
9955 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9956 hardcode_libdir_separator=:
9957 hardcode_direct=yes
9958 hardcode_direct_absolute=yes
9959 export_dynamic_flag_spec='$wl-E'
9960 # hardcode_minus_L: Not really in the search PATH,
9961 # but as the default location of the library.
9962 hardcode_minus_L=yes
9963 fi
9964 ;;
9965
9966 hpux11*)
9967 if test yes,no = "$GCC,$with_gnu_ld"; then
9968 case $host_cpu in
9969 hppa*64*)
9970 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9971 ;;
9972 ia64*)
9973 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9974 ;;
9975 *)
9976 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9977 ;;
9978 esac
9979 else
9980 case $host_cpu in
9981 hppa*64*)
9982 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9983 ;;
9984 ia64*)
9985 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9986 ;;
9987 *)
9988
9989 # Older versions of the 11.00 compiler do not understand -b yet
9990 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9992 $as_echo_n "checking if $CC understands -b... " >&6; }
9993 if ${lt_cv_prog_compiler__b+:} false; then :
9994 $as_echo_n "(cached) " >&6
9995 else
9996 lt_cv_prog_compiler__b=no
9997 save_LDFLAGS=$LDFLAGS
9998 LDFLAGS="$LDFLAGS -b"
9999 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10000 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10001 # The linker can only warn and ignore the option if not recognized
10002 # So say no if there are warnings
10003 if test -s conftest.err; then
10004 # Append any errors to the config.log.
10005 cat conftest.err 1>&5
10006 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10007 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10008 if diff conftest.exp conftest.er2 >/dev/null; then
10009 lt_cv_prog_compiler__b=yes
10010 fi
10011 else
10012 lt_cv_prog_compiler__b=yes
10013 fi
10014 fi
10015 $RM -r conftest*
10016 LDFLAGS=$save_LDFLAGS
10017
10018 fi
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10020 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10021
10022 if test yes = "$lt_cv_prog_compiler__b"; then
10023 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10024 else
10025 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10026 fi
10027
10028 ;;
10029 esac
10030 fi
10031 if test no = "$with_gnu_ld"; then
10032 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10033 hardcode_libdir_separator=:
10034
10035 case $host_cpu in
10036 hppa*64*|ia64*)
10037 hardcode_direct=no
10038 hardcode_shlibpath_var=no
10039 ;;
10040 *)
10041 hardcode_direct=yes
10042 hardcode_direct_absolute=yes
10043 export_dynamic_flag_spec='$wl-E'
10044
10045 # hardcode_minus_L: Not really in the search PATH,
10046 # but as the default location of the library.
10047 hardcode_minus_L=yes
10048 ;;
10049 esac
10050 fi
10051 ;;
10052
10053 irix5* | irix6* | nonstopux*)
10054 if test yes = "$GCC"; then
10055 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'
10056 # Try to use the -exported_symbol ld option, if it does not
10057 # work, assume that -exports_file does not work either and
10058 # implicitly export all symbols.
10059 # This should be the same for all languages, so no per-tag cache variable.
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10061 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10062 if ${lt_cv_irix_exported_symbol+:} false; then :
10063 $as_echo_n "(cached) " >&6
10064 else
10065 save_LDFLAGS=$LDFLAGS
10066 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10068 /* end confdefs.h. */
10069 int foo (void) { return 0; }
10070 _ACEOF
10071 if ac_fn_c_try_link "$LINENO"; then :
10072 lt_cv_irix_exported_symbol=yes
10073 else
10074 lt_cv_irix_exported_symbol=no
10075 fi
10076 rm -f core conftest.err conftest.$ac_objext \
10077 conftest$ac_exeext conftest.$ac_ext
10078 LDFLAGS=$save_LDFLAGS
10079 fi
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10081 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10082 if test yes = "$lt_cv_irix_exported_symbol"; then
10083 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'
10084 fi
10085 link_all_deplibs=no
10086 else
10087 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'
10088 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'
10089 fi
10090 archive_cmds_need_lc='no'
10091 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10092 hardcode_libdir_separator=:
10093 inherit_rpath=yes
10094 link_all_deplibs=yes
10095 ;;
10096
10097 linux*)
10098 case $cc_basename in
10099 tcc*)
10100 # Fabrice Bellard et al's Tiny C Compiler
10101 ld_shlibs=yes
10102 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10103 ;;
10104 esac
10105 ;;
10106
10107 netbsd* | netbsdelf*-gnu)
10108 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10109 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10110 else
10111 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10112 fi
10113 hardcode_libdir_flag_spec='-R$libdir'
10114 hardcode_direct=yes
10115 hardcode_shlibpath_var=no
10116 ;;
10117
10118 newsos6)
10119 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10120 hardcode_direct=yes
10121 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10122 hardcode_libdir_separator=:
10123 hardcode_shlibpath_var=no
10124 ;;
10125
10126 *nto* | *qnx*)
10127 ;;
10128
10129 openbsd* | bitrig*)
10130 if test -f /usr/libexec/ld.so; then
10131 hardcode_direct=yes
10132 hardcode_shlibpath_var=no
10133 hardcode_direct_absolute=yes
10134 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10135 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10136 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10137 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10138 export_dynamic_flag_spec='$wl-E'
10139 else
10140 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10141 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10142 fi
10143 else
10144 ld_shlibs=no
10145 fi
10146 ;;
10147
10148 os2*)
10149 hardcode_libdir_flag_spec='-L$libdir'
10150 hardcode_minus_L=yes
10151 allow_undefined_flag=unsupported
10152 shrext_cmds=.dll
10153 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10154 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10155 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10156 $ECHO EXPORTS >> $output_objdir/$libname.def~
10157 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10158 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10159 emximp -o $lib $output_objdir/$libname.def'
10160 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10161 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10162 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10163 $ECHO EXPORTS >> $output_objdir/$libname.def~
10164 prefix_cmds="$SED"~
10165 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10166 prefix_cmds="$prefix_cmds -e 1d";
10167 fi~
10168 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10169 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10170 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10171 emximp -o $lib $output_objdir/$libname.def'
10172 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10173 enable_shared_with_static_runtimes=yes
10174 ;;
10175
10176 osf3*)
10177 if test yes = "$GCC"; then
10178 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10179 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'
10180 else
10181 allow_undefined_flag=' -expect_unresolved \*'
10182 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'
10183 fi
10184 archive_cmds_need_lc='no'
10185 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10186 hardcode_libdir_separator=:
10187 ;;
10188
10189 osf4* | osf5*) # as osf3* with the addition of -msym flag
10190 if test yes = "$GCC"; then
10191 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10192 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'
10193 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10194 else
10195 allow_undefined_flag=' -expect_unresolved \*'
10196 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'
10197 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~
10198 $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'
10199
10200 # Both c and cxx compiler support -rpath directly
10201 hardcode_libdir_flag_spec='-rpath $libdir'
10202 fi
10203 archive_cmds_need_lc='no'
10204 hardcode_libdir_separator=:
10205 ;;
10206
10207 solaris*)
10208 no_undefined_flag=' -z defs'
10209 if test yes = "$GCC"; then
10210 wlarc='$wl'
10211 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10212 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10213 $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'
10214 else
10215 case `$CC -V 2>&1` in
10216 *"Compilers 5.0"*)
10217 wlarc=''
10218 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10219 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10220 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10221 ;;
10222 *)
10223 wlarc='$wl'
10224 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10225 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10226 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10227 ;;
10228 esac
10229 fi
10230 hardcode_libdir_flag_spec='-R$libdir'
10231 hardcode_shlibpath_var=no
10232 case $host_os in
10233 solaris2.[0-5] | solaris2.[0-5].*) ;;
10234 *)
10235 # The compiler driver will combine and reorder linker options,
10236 # but understands '-z linker_flag'. GCC discards it without '$wl',
10237 # but is careful enough not to reorder.
10238 # Supported since Solaris 2.6 (maybe 2.5.1?)
10239 if test yes = "$GCC"; then
10240 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10241 else
10242 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10243 fi
10244 ;;
10245 esac
10246 link_all_deplibs=yes
10247 ;;
10248
10249 sunos4*)
10250 if test sequent = "$host_vendor"; then
10251 # Use $CC to link under sequent, because it throws in some extra .o
10252 # files that make .init and .fini sections work.
10253 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10254 else
10255 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10256 fi
10257 hardcode_libdir_flag_spec='-L$libdir'
10258 hardcode_direct=yes
10259 hardcode_minus_L=yes
10260 hardcode_shlibpath_var=no
10261 ;;
10262
10263 sysv4)
10264 case $host_vendor in
10265 sni)
10266 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10267 hardcode_direct=yes # is this really true???
10268 ;;
10269 siemens)
10270 ## LD is ld it makes a PLAMLIB
10271 ## CC just makes a GrossModule.
10272 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10273 reload_cmds='$CC -r -o $output$reload_objs'
10274 hardcode_direct=no
10275 ;;
10276 motorola)
10277 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10278 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10279 ;;
10280 esac
10281 runpath_var='LD_RUN_PATH'
10282 hardcode_shlibpath_var=no
10283 ;;
10284
10285 sysv4.3*)
10286 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10287 hardcode_shlibpath_var=no
10288 export_dynamic_flag_spec='-Bexport'
10289 ;;
10290
10291 sysv4*MP*)
10292 if test -d /usr/nec; then
10293 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10294 hardcode_shlibpath_var=no
10295 runpath_var=LD_RUN_PATH
10296 hardcode_runpath_var=yes
10297 ld_shlibs=yes
10298 fi
10299 ;;
10300
10301 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10302 no_undefined_flag='$wl-z,text'
10303 archive_cmds_need_lc=no
10304 hardcode_shlibpath_var=no
10305 runpath_var='LD_RUN_PATH'
10306
10307 if test yes = "$GCC"; then
10308 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10309 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10310 else
10311 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10312 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10313 fi
10314 ;;
10315
10316 sysv5* | sco3.2v5* | sco5v6*)
10317 # Note: We CANNOT use -z defs as we might desire, because we do not
10318 # link with -lc, and that would cause any symbols used from libc to
10319 # always be unresolved, which means just about no library would
10320 # ever link correctly. If we're not using GNU ld we use -z text
10321 # though, which does catch some bad symbols but isn't as heavy-handed
10322 # as -z defs.
10323 no_undefined_flag='$wl-z,text'
10324 allow_undefined_flag='$wl-z,nodefs'
10325 archive_cmds_need_lc=no
10326 hardcode_shlibpath_var=no
10327 hardcode_libdir_flag_spec='$wl-R,$libdir'
10328 hardcode_libdir_separator=':'
10329 link_all_deplibs=yes
10330 export_dynamic_flag_spec='$wl-Bexport'
10331 runpath_var='LD_RUN_PATH'
10332
10333 if test yes = "$GCC"; then
10334 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10335 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10336 else
10337 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10338 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10339 fi
10340 ;;
10341
10342 uts4*)
10343 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10344 hardcode_libdir_flag_spec='-L$libdir'
10345 hardcode_shlibpath_var=no
10346 ;;
10347
10348 *)
10349 ld_shlibs=no
10350 ;;
10351 esac
10352
10353 if test sni = "$host_vendor"; then
10354 case $host in
10355 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10356 export_dynamic_flag_spec='$wl-Blargedynsym'
10357 ;;
10358 esac
10359 fi
10360 fi
10361
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10363 $as_echo "$ld_shlibs" >&6; }
10364 test no = "$ld_shlibs" && can_build_shared=no
10365
10366 with_gnu_ld=$with_gnu_ld
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382 #
10383 # Do we need to explicitly link libc?
10384 #
10385 case "x$archive_cmds_need_lc" in
10386 x|xyes)
10387 # Assume -lc should be added
10388 archive_cmds_need_lc=yes
10389
10390 if test yes,yes = "$GCC,$enable_shared"; then
10391 case $archive_cmds in
10392 *'~'*)
10393 # FIXME: we may have to deal with multi-command sequences.
10394 ;;
10395 '$CC '*)
10396 # Test whether the compiler implicitly links with -lc since on some
10397 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10398 # to ld, don't add -lc before -lgcc.
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10400 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10401 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10402 $as_echo_n "(cached) " >&6
10403 else
10404 $RM conftest*
10405 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10406
10407 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10408 (eval $ac_compile) 2>&5
10409 ac_status=$?
10410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10411 test $ac_status = 0; } 2>conftest.err; then
10412 soname=conftest
10413 lib=conftest
10414 libobjs=conftest.$ac_objext
10415 deplibs=
10416 wl=$lt_prog_compiler_wl
10417 pic_flag=$lt_prog_compiler_pic
10418 compiler_flags=-v
10419 linker_flags=-v
10420 verstring=
10421 output_objdir=.
10422 libname=conftest
10423 lt_save_allow_undefined_flag=$allow_undefined_flag
10424 allow_undefined_flag=
10425 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10426 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10427 ac_status=$?
10428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10429 test $ac_status = 0; }
10430 then
10431 lt_cv_archive_cmds_need_lc=no
10432 else
10433 lt_cv_archive_cmds_need_lc=yes
10434 fi
10435 allow_undefined_flag=$lt_save_allow_undefined_flag
10436 else
10437 cat conftest.err 1>&5
10438 fi
10439 $RM conftest*
10440
10441 fi
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10443 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10444 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10445 ;;
10446 esac
10447 fi
10448 ;;
10449 esac
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10603 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10604
10605 if test yes = "$GCC"; then
10606 case $host_os in
10607 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10608 *) lt_awk_arg='/^libraries:/' ;;
10609 esac
10610 case $host_os in
10611 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10612 *) lt_sed_strip_eq='s|=/|/|g' ;;
10613 esac
10614 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10615 case $lt_search_path_spec in
10616 *\;*)
10617 # if the path contains ";" then we assume it to be the separator
10618 # otherwise default to the standard path separator (i.e. ":") - it is
10619 # assumed that no part of a normal pathname contains ";" but that should
10620 # okay in the real world where ";" in dirpaths is itself problematic.
10621 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10622 ;;
10623 *)
10624 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10625 ;;
10626 esac
10627 # Ok, now we have the path, separated by spaces, we can step through it
10628 # and add multilib dir if necessary...
10629 lt_tmp_lt_search_path_spec=
10630 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10631 # ...but if some path component already ends with the multilib dir we assume
10632 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10633 case "$lt_multi_os_dir; $lt_search_path_spec " in
10634 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10635 lt_multi_os_dir=
10636 ;;
10637 esac
10638 for lt_sys_path in $lt_search_path_spec; do
10639 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10640 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10641 elif test -n "$lt_multi_os_dir"; then
10642 test -d "$lt_sys_path" && \
10643 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10644 fi
10645 done
10646 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10647 BEGIN {RS = " "; FS = "/|\n";} {
10648 lt_foo = "";
10649 lt_count = 0;
10650 for (lt_i = NF; lt_i > 0; lt_i--) {
10651 if ($lt_i != "" && $lt_i != ".") {
10652 if ($lt_i == "..") {
10653 lt_count++;
10654 } else {
10655 if (lt_count == 0) {
10656 lt_foo = "/" $lt_i lt_foo;
10657 } else {
10658 lt_count--;
10659 }
10660 }
10661 }
10662 }
10663 if (lt_foo != "") { lt_freq[lt_foo]++; }
10664 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10665 }'`
10666 # AWK program above erroneously prepends '/' to C:/dos/paths
10667 # for these hosts.
10668 case $host_os in
10669 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10670 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10671 esac
10672 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10673 else
10674 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10675 fi
10676 library_names_spec=
10677 libname_spec='lib$name'
10678 soname_spec=
10679 shrext_cmds=.so
10680 postinstall_cmds=
10681 postuninstall_cmds=
10682 finish_cmds=
10683 finish_eval=
10684 shlibpath_var=
10685 shlibpath_overrides_runpath=unknown
10686 version_type=none
10687 dynamic_linker="$host_os ld.so"
10688 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10689 need_lib_prefix=unknown
10690 hardcode_into_libs=no
10691
10692 # when you set need_version to no, make sure it does not cause -set_version
10693 # flags to be left without arguments
10694 need_version=unknown
10695
10696
10697
10698 case $host_os in
10699 aix3*)
10700 version_type=linux # correct to gnu/linux during the next big refactor
10701 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10702 shlibpath_var=LIBPATH
10703
10704 # AIX 3 has no versioning support, so we append a major version to the name.
10705 soname_spec='$libname$release$shared_ext$major'
10706 ;;
10707
10708 aix[4-9]*)
10709 version_type=linux # correct to gnu/linux during the next big refactor
10710 need_lib_prefix=no
10711 need_version=no
10712 hardcode_into_libs=yes
10713 if test ia64 = "$host_cpu"; then
10714 # AIX 5 supports IA64
10715 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10716 shlibpath_var=LD_LIBRARY_PATH
10717 else
10718 # With GCC up to 2.95.x, collect2 would create an import file
10719 # for dependence libraries. The import file would start with
10720 # the line '#! .'. This would cause the generated library to
10721 # depend on '.', always an invalid library. This was fixed in
10722 # development snapshots of GCC prior to 3.0.
10723 case $host_os in
10724 aix4 | aix4.[01] | aix4.[01].*)
10725 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10726 echo ' yes '
10727 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10728 :
10729 else
10730 can_build_shared=no
10731 fi
10732 ;;
10733 esac
10734 # Using Import Files as archive members, it is possible to support
10735 # filename-based versioning of shared library archives on AIX. While
10736 # this would work for both with and without runtime linking, it will
10737 # prevent static linking of such archives. So we do filename-based
10738 # shared library versioning with .so extension only, which is used
10739 # when both runtime linking and shared linking is enabled.
10740 # Unfortunately, runtime linking may impact performance, so we do
10741 # not want this to be the default eventually. Also, we use the
10742 # versioned .so libs for executables only if there is the -brtl
10743 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10744 # To allow for filename-based versioning support, we need to create
10745 # libNAME.so.V as an archive file, containing:
10746 # *) an Import File, referring to the versioned filename of the
10747 # archive as well as the shared archive member, telling the
10748 # bitwidth (32 or 64) of that shared object, and providing the
10749 # list of exported symbols of that shared object, eventually
10750 # decorated with the 'weak' keyword
10751 # *) the shared object with the F_LOADONLY flag set, to really avoid
10752 # it being seen by the linker.
10753 # At run time we better use the real file rather than another symlink,
10754 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10755
10756 case $with_aix_soname,$aix_use_runtimelinking in
10757 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10758 # soname into executable. Probably we can add versioning support to
10759 # collect2, so additional links can be useful in future.
10760 aix,yes) # traditional libtool
10761 dynamic_linker='AIX unversionable lib.so'
10762 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10763 # instead of lib<name>.a to let people know that these are not
10764 # typical AIX shared libraries.
10765 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10766 ;;
10767 aix,no) # traditional AIX only
10768 dynamic_linker='AIX lib.a(lib.so.V)'
10769 # We preserve .a as extension for shared libraries through AIX4.2
10770 # and later when we are not doing run time linking.
10771 library_names_spec='$libname$release.a $libname.a'
10772 soname_spec='$libname$release$shared_ext$major'
10773 ;;
10774 svr4,*) # full svr4 only
10775 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10776 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10777 # We do not specify a path in Import Files, so LIBPATH fires.
10778 shlibpath_overrides_runpath=yes
10779 ;;
10780 *,yes) # both, prefer svr4
10781 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10782 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10783 # unpreferred sharedlib libNAME.a needs extra handling
10784 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"'
10785 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"'
10786 # We do not specify a path in Import Files, so LIBPATH fires.
10787 shlibpath_overrides_runpath=yes
10788 ;;
10789 *,no) # both, prefer aix
10790 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10791 library_names_spec='$libname$release.a $libname.a'
10792 soname_spec='$libname$release$shared_ext$major'
10793 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10794 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)'
10795 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"'
10796 ;;
10797 esac
10798 shlibpath_var=LIBPATH
10799 fi
10800 ;;
10801
10802 amigaos*)
10803 case $host_cpu in
10804 powerpc)
10805 # Since July 2007 AmigaOS4 officially supports .so libraries.
10806 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10807 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10808 ;;
10809 m68k)
10810 library_names_spec='$libname.ixlibrary $libname.a'
10811 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10812 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'
10813 ;;
10814 esac
10815 ;;
10816
10817 beos*)
10818 library_names_spec='$libname$shared_ext'
10819 dynamic_linker="$host_os ld.so"
10820 shlibpath_var=LIBRARY_PATH
10821 ;;
10822
10823 bsdi[45]*)
10824 version_type=linux # correct to gnu/linux during the next big refactor
10825 need_version=no
10826 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10827 soname_spec='$libname$release$shared_ext$major'
10828 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10829 shlibpath_var=LD_LIBRARY_PATH
10830 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10831 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10832 # the default ld.so.conf also contains /usr/contrib/lib and
10833 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10834 # libtool to hard-code these into programs
10835 ;;
10836
10837 cygwin* | mingw* | pw32* | cegcc*)
10838 version_type=windows
10839 shrext_cmds=.dll
10840 need_version=no
10841 need_lib_prefix=no
10842
10843 case $GCC,$cc_basename in
10844 yes,*)
10845 # gcc
10846 library_names_spec='$libname.dll.a'
10847 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10848 postinstall_cmds='base_file=`basename \$file`~
10849 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10850 dldir=$destdir/`dirname \$dlpath`~
10851 test -d \$dldir || mkdir -p \$dldir~
10852 $install_prog $dir/$dlname \$dldir/$dlname~
10853 chmod a+x \$dldir/$dlname~
10854 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10855 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10856 fi'
10857 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10858 dlpath=$dir/\$dldll~
10859 $RM \$dlpath'
10860 shlibpath_overrides_runpath=yes
10861
10862 case $host_os in
10863 cygwin*)
10864 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10865 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10866
10867 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10868 ;;
10869 mingw* | cegcc*)
10870 # MinGW DLLs use traditional 'lib' prefix
10871 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10872 ;;
10873 pw32*)
10874 # pw32 DLLs use 'pw' prefix rather than 'lib'
10875 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10876 ;;
10877 esac
10878 dynamic_linker='Win32 ld.exe'
10879 ;;
10880
10881 *,cl*)
10882 # Native MSVC
10883 libname_spec='$name'
10884 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10885 library_names_spec='$libname.dll.lib'
10886
10887 case $build_os in
10888 mingw*)
10889 sys_lib_search_path_spec=
10890 lt_save_ifs=$IFS
10891 IFS=';'
10892 for lt_path in $LIB
10893 do
10894 IFS=$lt_save_ifs
10895 # Let DOS variable expansion print the short 8.3 style file name.
10896 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10897 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10898 done
10899 IFS=$lt_save_ifs
10900 # Convert to MSYS style.
10901 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10902 ;;
10903 cygwin*)
10904 # Convert to unix form, then to dos form, then back to unix form
10905 # but this time dos style (no spaces!) so that the unix form looks
10906 # like /cygdrive/c/PROGRA~1:/cygdr...
10907 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10908 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10909 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10910 ;;
10911 *)
10912 sys_lib_search_path_spec=$LIB
10913 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10914 # It is most probably a Windows format PATH.
10915 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10916 else
10917 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10918 fi
10919 # FIXME: find the short name or the path components, as spaces are
10920 # common. (e.g. "Program Files" -> "PROGRA~1")
10921 ;;
10922 esac
10923
10924 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10925 postinstall_cmds='base_file=`basename \$file`~
10926 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10927 dldir=$destdir/`dirname \$dlpath`~
10928 test -d \$dldir || mkdir -p \$dldir~
10929 $install_prog $dir/$dlname \$dldir/$dlname'
10930 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10931 dlpath=$dir/\$dldll~
10932 $RM \$dlpath'
10933 shlibpath_overrides_runpath=yes
10934 dynamic_linker='Win32 link.exe'
10935 ;;
10936
10937 *)
10938 # Assume MSVC wrapper
10939 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10940 dynamic_linker='Win32 ld.exe'
10941 ;;
10942 esac
10943 # FIXME: first we should search . and the directory the executable is in
10944 shlibpath_var=PATH
10945 ;;
10946
10947 darwin* | rhapsody*)
10948 dynamic_linker="$host_os dyld"
10949 version_type=darwin
10950 need_lib_prefix=no
10951 need_version=no
10952 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10953 soname_spec='$libname$release$major$shared_ext'
10954 shlibpath_overrides_runpath=yes
10955 shlibpath_var=DYLD_LIBRARY_PATH
10956 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10957
10958 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10959 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10960 ;;
10961
10962 dgux*)
10963 version_type=linux # correct to gnu/linux during the next big refactor
10964 need_lib_prefix=no
10965 need_version=no
10966 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10967 soname_spec='$libname$release$shared_ext$major'
10968 shlibpath_var=LD_LIBRARY_PATH
10969 ;;
10970
10971 freebsd* | dragonfly*)
10972 # DragonFly does not have aout. When/if they implement a new
10973 # versioning mechanism, adjust this.
10974 if test -x /usr/bin/objformat; then
10975 objformat=`/usr/bin/objformat`
10976 else
10977 case $host_os in
10978 freebsd[23].*) objformat=aout ;;
10979 *) objformat=elf ;;
10980 esac
10981 fi
10982 version_type=freebsd-$objformat
10983 case $version_type in
10984 freebsd-elf*)
10985 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10986 soname_spec='$libname$release$shared_ext$major'
10987 need_version=no
10988 need_lib_prefix=no
10989 ;;
10990 freebsd-*)
10991 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10992 need_version=yes
10993 ;;
10994 esac
10995 shlibpath_var=LD_LIBRARY_PATH
10996 case $host_os in
10997 freebsd2.*)
10998 shlibpath_overrides_runpath=yes
10999 ;;
11000 freebsd3.[01]* | freebsdelf3.[01]*)
11001 shlibpath_overrides_runpath=yes
11002 hardcode_into_libs=yes
11003 ;;
11004 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11005 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11006 shlibpath_overrides_runpath=no
11007 hardcode_into_libs=yes
11008 ;;
11009 *) # from 4.6 on, and DragonFly
11010 shlibpath_overrides_runpath=yes
11011 hardcode_into_libs=yes
11012 ;;
11013 esac
11014 ;;
11015
11016 haiku*)
11017 version_type=linux # correct to gnu/linux during the next big refactor
11018 need_lib_prefix=no
11019 need_version=no
11020 dynamic_linker="$host_os runtime_loader"
11021 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11022 soname_spec='$libname$release$shared_ext$major'
11023 shlibpath_var=LIBRARY_PATH
11024 shlibpath_overrides_runpath=no
11025 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11026 hardcode_into_libs=yes
11027 ;;
11028
11029 hpux9* | hpux10* | hpux11*)
11030 # Give a soname corresponding to the major version so that dld.sl refuses to
11031 # link against other versions.
11032 version_type=sunos
11033 need_lib_prefix=no
11034 need_version=no
11035 case $host_cpu in
11036 ia64*)
11037 shrext_cmds='.so'
11038 hardcode_into_libs=yes
11039 dynamic_linker="$host_os dld.so"
11040 shlibpath_var=LD_LIBRARY_PATH
11041 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11042 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11043 soname_spec='$libname$release$shared_ext$major'
11044 if test 32 = "$HPUX_IA64_MODE"; then
11045 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11046 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11047 else
11048 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11049 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11050 fi
11051 ;;
11052 hppa*64*)
11053 shrext_cmds='.sl'
11054 hardcode_into_libs=yes
11055 dynamic_linker="$host_os dld.sl"
11056 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11057 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11058 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11059 soname_spec='$libname$release$shared_ext$major'
11060 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11061 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11062 ;;
11063 *)
11064 shrext_cmds='.sl'
11065 dynamic_linker="$host_os dld.sl"
11066 shlibpath_var=SHLIB_PATH
11067 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11068 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11069 soname_spec='$libname$release$shared_ext$major'
11070 ;;
11071 esac
11072 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11073 postinstall_cmds='chmod 555 $lib'
11074 # or fails outright, so override atomically:
11075 install_override_mode=555
11076 ;;
11077
11078 interix[3-9]*)
11079 version_type=linux # correct to gnu/linux during the next big refactor
11080 need_lib_prefix=no
11081 need_version=no
11082 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11083 soname_spec='$libname$release$shared_ext$major'
11084 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11085 shlibpath_var=LD_LIBRARY_PATH
11086 shlibpath_overrides_runpath=no
11087 hardcode_into_libs=yes
11088 ;;
11089
11090 irix5* | irix6* | nonstopux*)
11091 case $host_os in
11092 nonstopux*) version_type=nonstopux ;;
11093 *)
11094 if test yes = "$lt_cv_prog_gnu_ld"; then
11095 version_type=linux # correct to gnu/linux during the next big refactor
11096 else
11097 version_type=irix
11098 fi ;;
11099 esac
11100 need_lib_prefix=no
11101 need_version=no
11102 soname_spec='$libname$release$shared_ext$major'
11103 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11104 case $host_os in
11105 irix5* | nonstopux*)
11106 libsuff= shlibsuff=
11107 ;;
11108 *)
11109 case $LD in # libtool.m4 will add one of these switches to LD
11110 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11111 libsuff= shlibsuff= libmagic=32-bit;;
11112 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11113 libsuff=32 shlibsuff=N32 libmagic=N32;;
11114 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11115 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11116 *) libsuff= shlibsuff= libmagic=never-match;;
11117 esac
11118 ;;
11119 esac
11120 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11121 shlibpath_overrides_runpath=no
11122 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11123 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11124 hardcode_into_libs=yes
11125 ;;
11126
11127 # No shared lib support for Linux oldld, aout, or coff.
11128 linux*oldld* | linux*aout* | linux*coff*)
11129 dynamic_linker=no
11130 ;;
11131
11132 linux*android*)
11133 version_type=none # Android doesn't support versioned libraries.
11134 need_lib_prefix=no
11135 need_version=no
11136 library_names_spec='$libname$release$shared_ext'
11137 soname_spec='$libname$release$shared_ext'
11138 finish_cmds=
11139 shlibpath_var=LD_LIBRARY_PATH
11140 shlibpath_overrides_runpath=yes
11141
11142 # This implies no fast_install, which is unacceptable.
11143 # Some rework will be needed to allow for fast_install
11144 # before this can be enabled.
11145 hardcode_into_libs=yes
11146
11147 dynamic_linker='Android linker'
11148 # Don't embed -rpath directories since the linker doesn't support them.
11149 hardcode_libdir_flag_spec='-L$libdir'
11150 ;;
11151
11152 # This must be glibc/ELF.
11153 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11154 version_type=linux # correct to gnu/linux during the next big refactor
11155 need_lib_prefix=no
11156 need_version=no
11157 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11158 soname_spec='$libname$release$shared_ext$major'
11159 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11160 shlibpath_var=LD_LIBRARY_PATH
11161 shlibpath_overrides_runpath=no
11162
11163 # Some binutils ld are patched to set DT_RUNPATH
11164 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11165 $as_echo_n "(cached) " >&6
11166 else
11167 lt_cv_shlibpath_overrides_runpath=no
11168 save_LDFLAGS=$LDFLAGS
11169 save_libdir=$libdir
11170 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11171 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11173 /* end confdefs.h. */
11174
11175 int
11176 main ()
11177 {
11178
11179 ;
11180 return 0;
11181 }
11182 _ACEOF
11183 if ac_fn_c_try_link "$LINENO"; then :
11184 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11185 lt_cv_shlibpath_overrides_runpath=yes
11186 fi
11187 fi
11188 rm -f core conftest.err conftest.$ac_objext \
11189 conftest$ac_exeext conftest.$ac_ext
11190 LDFLAGS=$save_LDFLAGS
11191 libdir=$save_libdir
11192
11193 fi
11194
11195 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11196
11197 # This implies no fast_install, which is unacceptable.
11198 # Some rework will be needed to allow for fast_install
11199 # before this can be enabled.
11200 hardcode_into_libs=yes
11201
11202 # Ideally, we could use ldconfig to report *all* directores which are
11203 # searched for libraries, however this is still not possible. Aside from not
11204 # being certain /sbin/ldconfig is available, command
11205 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11206 # even though it is searched at run-time. Try to do the best guess by
11207 # appending ld.so.conf contents (and includes) to the search path.
11208 if test -f /etc/ld.so.conf; then
11209 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' ' '`
11210 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11211 fi
11212
11213 # We used to test for /lib/ld.so.1 and disable shared libraries on
11214 # powerpc, because MkLinux only supported shared libraries with the
11215 # GNU dynamic linker. Since this was broken with cross compilers,
11216 # most powerpc-linux boxes support dynamic linking these days and
11217 # people can always --disable-shared, the test was removed, and we
11218 # assume the GNU/Linux dynamic linker is in use.
11219 dynamic_linker='GNU/Linux ld.so'
11220 ;;
11221
11222 netbsdelf*-gnu)
11223 version_type=linux
11224 need_lib_prefix=no
11225 need_version=no
11226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11227 soname_spec='${libname}${release}${shared_ext}$major'
11228 shlibpath_var=LD_LIBRARY_PATH
11229 shlibpath_overrides_runpath=no
11230 hardcode_into_libs=yes
11231 dynamic_linker='NetBSD ld.elf_so'
11232 ;;
11233
11234 netbsd*)
11235 version_type=sunos
11236 need_lib_prefix=no
11237 need_version=no
11238 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11239 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11240 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11241 dynamic_linker='NetBSD (a.out) ld.so'
11242 else
11243 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11244 soname_spec='$libname$release$shared_ext$major'
11245 dynamic_linker='NetBSD ld.elf_so'
11246 fi
11247 shlibpath_var=LD_LIBRARY_PATH
11248 shlibpath_overrides_runpath=yes
11249 hardcode_into_libs=yes
11250 ;;
11251
11252 newsos6)
11253 version_type=linux # correct to gnu/linux during the next big refactor
11254 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11255 shlibpath_var=LD_LIBRARY_PATH
11256 shlibpath_overrides_runpath=yes
11257 ;;
11258
11259 *nto* | *qnx*)
11260 version_type=qnx
11261 need_lib_prefix=no
11262 need_version=no
11263 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11264 soname_spec='$libname$release$shared_ext$major'
11265 shlibpath_var=LD_LIBRARY_PATH
11266 shlibpath_overrides_runpath=no
11267 hardcode_into_libs=yes
11268 dynamic_linker='ldqnx.so'
11269 ;;
11270
11271 openbsd* | bitrig*)
11272 version_type=sunos
11273 sys_lib_dlsearch_path_spec=/usr/lib
11274 need_lib_prefix=no
11275 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11276 need_version=no
11277 else
11278 need_version=yes
11279 fi
11280 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11281 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11282 shlibpath_var=LD_LIBRARY_PATH
11283 shlibpath_overrides_runpath=yes
11284 ;;
11285
11286 os2*)
11287 libname_spec='$name'
11288 version_type=windows
11289 shrext_cmds=.dll
11290 need_version=no
11291 need_lib_prefix=no
11292 # OS/2 can only load a DLL with a base name of 8 characters or less.
11293 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11294 v=$($ECHO $release$versuffix | tr -d .-);
11295 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11296 $ECHO $n$v`$shared_ext'
11297 library_names_spec='${libname}_dll.$libext'
11298 dynamic_linker='OS/2 ld.exe'
11299 shlibpath_var=BEGINLIBPATH
11300 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11301 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11302 postinstall_cmds='base_file=`basename \$file`~
11303 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11304 dldir=$destdir/`dirname \$dlpath`~
11305 test -d \$dldir || mkdir -p \$dldir~
11306 $install_prog $dir/$dlname \$dldir/$dlname~
11307 chmod a+x \$dldir/$dlname~
11308 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11309 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11310 fi'
11311 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11312 dlpath=$dir/\$dldll~
11313 $RM \$dlpath'
11314 ;;
11315
11316 osf3* | osf4* | osf5*)
11317 version_type=osf
11318 need_lib_prefix=no
11319 need_version=no
11320 soname_spec='$libname$release$shared_ext$major'
11321 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11322 shlibpath_var=LD_LIBRARY_PATH
11323 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11324 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11325 ;;
11326
11327 rdos*)
11328 dynamic_linker=no
11329 ;;
11330
11331 solaris*)
11332 version_type=linux # correct to gnu/linux during the next big refactor
11333 need_lib_prefix=no
11334 need_version=no
11335 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11336 soname_spec='$libname$release$shared_ext$major'
11337 shlibpath_var=LD_LIBRARY_PATH
11338 shlibpath_overrides_runpath=yes
11339 hardcode_into_libs=yes
11340 # ldd complains unless libraries are executable
11341 postinstall_cmds='chmod +x $lib'
11342 ;;
11343
11344 sunos4*)
11345 version_type=sunos
11346 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11347 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11348 shlibpath_var=LD_LIBRARY_PATH
11349 shlibpath_overrides_runpath=yes
11350 if test yes = "$with_gnu_ld"; then
11351 need_lib_prefix=no
11352 fi
11353 need_version=yes
11354 ;;
11355
11356 sysv4 | sysv4.3*)
11357 version_type=linux # correct to gnu/linux during the next big refactor
11358 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11359 soname_spec='$libname$release$shared_ext$major'
11360 shlibpath_var=LD_LIBRARY_PATH
11361 case $host_vendor in
11362 sni)
11363 shlibpath_overrides_runpath=no
11364 need_lib_prefix=no
11365 runpath_var=LD_RUN_PATH
11366 ;;
11367 siemens)
11368 need_lib_prefix=no
11369 ;;
11370 motorola)
11371 need_lib_prefix=no
11372 need_version=no
11373 shlibpath_overrides_runpath=no
11374 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11375 ;;
11376 esac
11377 ;;
11378
11379 sysv4*MP*)
11380 if test -d /usr/nec; then
11381 version_type=linux # correct to gnu/linux during the next big refactor
11382 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11383 soname_spec='$libname$shared_ext.$major'
11384 shlibpath_var=LD_LIBRARY_PATH
11385 fi
11386 ;;
11387
11388 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11389 version_type=sco
11390 need_lib_prefix=no
11391 need_version=no
11392 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11393 soname_spec='$libname$release$shared_ext$major'
11394 shlibpath_var=LD_LIBRARY_PATH
11395 shlibpath_overrides_runpath=yes
11396 hardcode_into_libs=yes
11397 if test yes = "$with_gnu_ld"; then
11398 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11399 else
11400 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11401 case $host_os in
11402 sco3.2v5*)
11403 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11404 ;;
11405 esac
11406 fi
11407 sys_lib_dlsearch_path_spec='/usr/lib'
11408 ;;
11409
11410 tpf*)
11411 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11412 version_type=linux # correct to gnu/linux during the next big refactor
11413 need_lib_prefix=no
11414 need_version=no
11415 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11416 shlibpath_var=LD_LIBRARY_PATH
11417 shlibpath_overrides_runpath=no
11418 hardcode_into_libs=yes
11419 ;;
11420
11421 uts4*)
11422 version_type=linux # correct to gnu/linux during the next big refactor
11423 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11424 soname_spec='$libname$release$shared_ext$major'
11425 shlibpath_var=LD_LIBRARY_PATH
11426 ;;
11427
11428 *)
11429 dynamic_linker=no
11430 ;;
11431 esac
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11433 $as_echo "$dynamic_linker" >&6; }
11434 test no = "$dynamic_linker" && can_build_shared=no
11435
11436 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11437 if test yes = "$GCC"; then
11438 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11439 fi
11440
11441 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11442 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11443 fi
11444
11445 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11446 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11447 fi
11448
11449 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11450 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11451
11452 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11453 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11454
11455 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11456 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11555 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11556 hardcode_action=
11557 if test -n "$hardcode_libdir_flag_spec" ||
11558 test -n "$runpath_var" ||
11559 test yes = "$hardcode_automatic"; then
11560
11561 # We can hardcode non-existent directories.
11562 if test no != "$hardcode_direct" &&
11563 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11564 # have to relink, otherwise we might link with an installed library
11565 # when we should be linking with a yet-to-be-installed one
11566 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11567 test no != "$hardcode_minus_L"; then
11568 # Linking always hardcodes the temporary library directory.
11569 hardcode_action=relink
11570 else
11571 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11572 hardcode_action=immediate
11573 fi
11574 else
11575 # We cannot hardcode anything, or else we can only hardcode existing
11576 # directories.
11577 hardcode_action=unsupported
11578 fi
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11580 $as_echo "$hardcode_action" >&6; }
11581
11582 if test relink = "$hardcode_action" ||
11583 test yes = "$inherit_rpath"; then
11584 # Fast installation is not supported
11585 enable_fast_install=no
11586 elif test yes = "$shlibpath_overrides_runpath" ||
11587 test no = "$enable_shared"; then
11588 # Fast installation is not necessary
11589 enable_fast_install=needless
11590 fi
11591
11592
11593
11594
11595
11596
11597 if test yes != "$enable_dlopen"; then
11598 enable_dlopen=unknown
11599 enable_dlopen_self=unknown
11600 enable_dlopen_self_static=unknown
11601 else
11602 lt_cv_dlopen=no
11603 lt_cv_dlopen_libs=
11604
11605 case $host_os in
11606 beos*)
11607 lt_cv_dlopen=load_add_on
11608 lt_cv_dlopen_libs=
11609 lt_cv_dlopen_self=yes
11610 ;;
11611
11612 mingw* | pw32* | cegcc*)
11613 lt_cv_dlopen=LoadLibrary
11614 lt_cv_dlopen_libs=
11615 ;;
11616
11617 cygwin*)
11618 lt_cv_dlopen=dlopen
11619 lt_cv_dlopen_libs=
11620 ;;
11621
11622 darwin*)
11623 # if libdl is installed we need to link against it
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11625 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11626 if ${ac_cv_lib_dl_dlopen+:} false; then :
11627 $as_echo_n "(cached) " >&6
11628 else
11629 ac_check_lib_save_LIBS=$LIBS
11630 LIBS="-ldl $LIBS"
11631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11632 /* end confdefs.h. */
11633
11634 /* Override any GCC internal prototype to avoid an error.
11635 Use char because int might match the return type of a GCC
11636 builtin and then its argument prototype would still apply. */
11637 #ifdef __cplusplus
11638 extern "C"
11639 #endif
11640 char dlopen ();
11641 int
11642 main ()
11643 {
11644 return dlopen ();
11645 ;
11646 return 0;
11647 }
11648 _ACEOF
11649 if ac_fn_c_try_link "$LINENO"; then :
11650 ac_cv_lib_dl_dlopen=yes
11651 else
11652 ac_cv_lib_dl_dlopen=no
11653 fi
11654 rm -f core conftest.err conftest.$ac_objext \
11655 conftest$ac_exeext conftest.$ac_ext
11656 LIBS=$ac_check_lib_save_LIBS
11657 fi
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11659 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11660 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11661 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11662 else
11663
11664 lt_cv_dlopen=dyld
11665 lt_cv_dlopen_libs=
11666 lt_cv_dlopen_self=yes
11667
11668 fi
11669
11670 ;;
11671
11672 tpf*)
11673 # Don't try to run any link tests for TPF. We know it's impossible
11674 # because TPF is a cross-compiler, and we know how we open DSOs.
11675 lt_cv_dlopen=dlopen
11676 lt_cv_dlopen_libs=
11677 lt_cv_dlopen_self=no
11678 ;;
11679
11680 *)
11681 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11682 if test "x$ac_cv_func_shl_load" = xyes; then :
11683 lt_cv_dlopen=shl_load
11684 else
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11686 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11687 if ${ac_cv_lib_dld_shl_load+:} false; then :
11688 $as_echo_n "(cached) " >&6
11689 else
11690 ac_check_lib_save_LIBS=$LIBS
11691 LIBS="-ldld $LIBS"
11692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11693 /* end confdefs.h. */
11694
11695 /* Override any GCC internal prototype to avoid an error.
11696 Use char because int might match the return type of a GCC
11697 builtin and then its argument prototype would still apply. */
11698 #ifdef __cplusplus
11699 extern "C"
11700 #endif
11701 char shl_load ();
11702 int
11703 main ()
11704 {
11705 return shl_load ();
11706 ;
11707 return 0;
11708 }
11709 _ACEOF
11710 if ac_fn_c_try_link "$LINENO"; then :
11711 ac_cv_lib_dld_shl_load=yes
11712 else
11713 ac_cv_lib_dld_shl_load=no
11714 fi
11715 rm -f core conftest.err conftest.$ac_objext \
11716 conftest$ac_exeext conftest.$ac_ext
11717 LIBS=$ac_check_lib_save_LIBS
11718 fi
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11720 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11721 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11722 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11723 else
11724 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11725 if test "x$ac_cv_func_dlopen" = xyes; then :
11726 lt_cv_dlopen=dlopen
11727 else
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11729 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11730 if ${ac_cv_lib_dl_dlopen+:} false; then :
11731 $as_echo_n "(cached) " >&6
11732 else
11733 ac_check_lib_save_LIBS=$LIBS
11734 LIBS="-ldl $LIBS"
11735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11736 /* end confdefs.h. */
11737
11738 /* Override any GCC internal prototype to avoid an error.
11739 Use char because int might match the return type of a GCC
11740 builtin and then its argument prototype would still apply. */
11741 #ifdef __cplusplus
11742 extern "C"
11743 #endif
11744 char dlopen ();
11745 int
11746 main ()
11747 {
11748 return dlopen ();
11749 ;
11750 return 0;
11751 }
11752 _ACEOF
11753 if ac_fn_c_try_link "$LINENO"; then :
11754 ac_cv_lib_dl_dlopen=yes
11755 else
11756 ac_cv_lib_dl_dlopen=no
11757 fi
11758 rm -f core conftest.err conftest.$ac_objext \
11759 conftest$ac_exeext conftest.$ac_ext
11760 LIBS=$ac_check_lib_save_LIBS
11761 fi
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11763 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11764 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11765 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11766 else
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11768 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11769 if ${ac_cv_lib_svld_dlopen+:} false; then :
11770 $as_echo_n "(cached) " >&6
11771 else
11772 ac_check_lib_save_LIBS=$LIBS
11773 LIBS="-lsvld $LIBS"
11774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11775 /* end confdefs.h. */
11776
11777 /* Override any GCC internal prototype to avoid an error.
11778 Use char because int might match the return type of a GCC
11779 builtin and then its argument prototype would still apply. */
11780 #ifdef __cplusplus
11781 extern "C"
11782 #endif
11783 char dlopen ();
11784 int
11785 main ()
11786 {
11787 return dlopen ();
11788 ;
11789 return 0;
11790 }
11791 _ACEOF
11792 if ac_fn_c_try_link "$LINENO"; then :
11793 ac_cv_lib_svld_dlopen=yes
11794 else
11795 ac_cv_lib_svld_dlopen=no
11796 fi
11797 rm -f core conftest.err conftest.$ac_objext \
11798 conftest$ac_exeext conftest.$ac_ext
11799 LIBS=$ac_check_lib_save_LIBS
11800 fi
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11802 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11803 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11804 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11805 else
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11807 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11808 if ${ac_cv_lib_dld_dld_link+:} false; then :
11809 $as_echo_n "(cached) " >&6
11810 else
11811 ac_check_lib_save_LIBS=$LIBS
11812 LIBS="-ldld $LIBS"
11813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11814 /* end confdefs.h. */
11815
11816 /* Override any GCC internal prototype to avoid an error.
11817 Use char because int might match the return type of a GCC
11818 builtin and then its argument prototype would still apply. */
11819 #ifdef __cplusplus
11820 extern "C"
11821 #endif
11822 char dld_link ();
11823 int
11824 main ()
11825 {
11826 return dld_link ();
11827 ;
11828 return 0;
11829 }
11830 _ACEOF
11831 if ac_fn_c_try_link "$LINENO"; then :
11832 ac_cv_lib_dld_dld_link=yes
11833 else
11834 ac_cv_lib_dld_dld_link=no
11835 fi
11836 rm -f core conftest.err conftest.$ac_objext \
11837 conftest$ac_exeext conftest.$ac_ext
11838 LIBS=$ac_check_lib_save_LIBS
11839 fi
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11841 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11842 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11843 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11844 fi
11845
11846
11847 fi
11848
11849
11850 fi
11851
11852
11853 fi
11854
11855
11856 fi
11857
11858
11859 fi
11860
11861 ;;
11862 esac
11863
11864 if test no = "$lt_cv_dlopen"; then
11865 enable_dlopen=no
11866 else
11867 enable_dlopen=yes
11868 fi
11869
11870 case $lt_cv_dlopen in
11871 dlopen)
11872 save_CPPFLAGS=$CPPFLAGS
11873 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11874
11875 save_LDFLAGS=$LDFLAGS
11876 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11877
11878 save_LIBS=$LIBS
11879 LIBS="$lt_cv_dlopen_libs $LIBS"
11880
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11882 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11883 if ${lt_cv_dlopen_self+:} false; then :
11884 $as_echo_n "(cached) " >&6
11885 else
11886 if test yes = "$cross_compiling"; then :
11887 lt_cv_dlopen_self=cross
11888 else
11889 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11890 lt_status=$lt_dlunknown
11891 cat > conftest.$ac_ext <<_LT_EOF
11892 #line $LINENO "configure"
11893 #include "confdefs.h"
11894
11895 #if HAVE_DLFCN_H
11896 #include <dlfcn.h>
11897 #endif
11898
11899 #include <stdio.h>
11900
11901 #ifdef RTLD_GLOBAL
11902 # define LT_DLGLOBAL RTLD_GLOBAL
11903 #else
11904 # ifdef DL_GLOBAL
11905 # define LT_DLGLOBAL DL_GLOBAL
11906 # else
11907 # define LT_DLGLOBAL 0
11908 # endif
11909 #endif
11910
11911 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11912 find out it does not work in some platform. */
11913 #ifndef LT_DLLAZY_OR_NOW
11914 # ifdef RTLD_LAZY
11915 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11916 # else
11917 # ifdef DL_LAZY
11918 # define LT_DLLAZY_OR_NOW DL_LAZY
11919 # else
11920 # ifdef RTLD_NOW
11921 # define LT_DLLAZY_OR_NOW RTLD_NOW
11922 # else
11923 # ifdef DL_NOW
11924 # define LT_DLLAZY_OR_NOW DL_NOW
11925 # else
11926 # define LT_DLLAZY_OR_NOW 0
11927 # endif
11928 # endif
11929 # endif
11930 # endif
11931 #endif
11932
11933 /* When -fvisibility=hidden is used, assume the code has been annotated
11934 correspondingly for the symbols needed. */
11935 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11936 int fnord () __attribute__((visibility("default")));
11937 #endif
11938
11939 int fnord () { return 42; }
11940 int main ()
11941 {
11942 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11943 int status = $lt_dlunknown;
11944
11945 if (self)
11946 {
11947 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11948 else
11949 {
11950 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11951 else puts (dlerror ());
11952 }
11953 /* dlclose (self); */
11954 }
11955 else
11956 puts (dlerror ());
11957
11958 return status;
11959 }
11960 _LT_EOF
11961 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11962 (eval $ac_link) 2>&5
11963 ac_status=$?
11964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11965 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11966 (./conftest; exit; ) >&5 2>/dev/null
11967 lt_status=$?
11968 case x$lt_status in
11969 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11970 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11971 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11972 esac
11973 else :
11974 # compilation failed
11975 lt_cv_dlopen_self=no
11976 fi
11977 fi
11978 rm -fr conftest*
11979
11980
11981 fi
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11983 $as_echo "$lt_cv_dlopen_self" >&6; }
11984
11985 if test yes = "$lt_cv_dlopen_self"; then
11986 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11988 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11989 if ${lt_cv_dlopen_self_static+:} false; then :
11990 $as_echo_n "(cached) " >&6
11991 else
11992 if test yes = "$cross_compiling"; then :
11993 lt_cv_dlopen_self_static=cross
11994 else
11995 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11996 lt_status=$lt_dlunknown
11997 cat > conftest.$ac_ext <<_LT_EOF
11998 #line $LINENO "configure"
11999 #include "confdefs.h"
12000
12001 #if HAVE_DLFCN_H
12002 #include <dlfcn.h>
12003 #endif
12004
12005 #include <stdio.h>
12006
12007 #ifdef RTLD_GLOBAL
12008 # define LT_DLGLOBAL RTLD_GLOBAL
12009 #else
12010 # ifdef DL_GLOBAL
12011 # define LT_DLGLOBAL DL_GLOBAL
12012 # else
12013 # define LT_DLGLOBAL 0
12014 # endif
12015 #endif
12016
12017 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12018 find out it does not work in some platform. */
12019 #ifndef LT_DLLAZY_OR_NOW
12020 # ifdef RTLD_LAZY
12021 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12022 # else
12023 # ifdef DL_LAZY
12024 # define LT_DLLAZY_OR_NOW DL_LAZY
12025 # else
12026 # ifdef RTLD_NOW
12027 # define LT_DLLAZY_OR_NOW RTLD_NOW
12028 # else
12029 # ifdef DL_NOW
12030 # define LT_DLLAZY_OR_NOW DL_NOW
12031 # else
12032 # define LT_DLLAZY_OR_NOW 0
12033 # endif
12034 # endif
12035 # endif
12036 # endif
12037 #endif
12038
12039 /* When -fvisibility=hidden is used, assume the code has been annotated
12040 correspondingly for the symbols needed. */
12041 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12042 int fnord () __attribute__((visibility("default")));
12043 #endif
12044
12045 int fnord () { return 42; }
12046 int main ()
12047 {
12048 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12049 int status = $lt_dlunknown;
12050
12051 if (self)
12052 {
12053 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12054 else
12055 {
12056 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12057 else puts (dlerror ());
12058 }
12059 /* dlclose (self); */
12060 }
12061 else
12062 puts (dlerror ());
12063
12064 return status;
12065 }
12066 _LT_EOF
12067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12068 (eval $ac_link) 2>&5
12069 ac_status=$?
12070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12071 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12072 (./conftest; exit; ) >&5 2>/dev/null
12073 lt_status=$?
12074 case x$lt_status in
12075 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12076 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12077 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12078 esac
12079 else :
12080 # compilation failed
12081 lt_cv_dlopen_self_static=no
12082 fi
12083 fi
12084 rm -fr conftest*
12085
12086
12087 fi
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12089 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12090 fi
12091
12092 CPPFLAGS=$save_CPPFLAGS
12093 LDFLAGS=$save_LDFLAGS
12094 LIBS=$save_LIBS
12095 ;;
12096 esac
12097
12098 case $lt_cv_dlopen_self in
12099 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12100 *) enable_dlopen_self=unknown ;;
12101 esac
12102
12103 case $lt_cv_dlopen_self_static in
12104 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12105 *) enable_dlopen_self_static=unknown ;;
12106 esac
12107 fi
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125 striplib=
12126 old_striplib=
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12128 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12129 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12130 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12131 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12133 $as_echo "yes" >&6; }
12134 else
12135 # FIXME - insert some real tests, host_os isn't really good enough
12136 case $host_os in
12137 darwin*)
12138 if test -n "$STRIP"; then
12139 striplib="$STRIP -x"
12140 old_striplib="$STRIP -S"
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12142 $as_echo "yes" >&6; }
12143 else
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12145 $as_echo "no" >&6; }
12146 fi
12147 ;;
12148 *)
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150 $as_echo "no" >&6; }
12151 ;;
12152 esac
12153 fi
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166 # Report what library types will actually be built
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12168 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12170 $as_echo "$can_build_shared" >&6; }
12171
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12173 $as_echo_n "checking whether to build shared libraries... " >&6; }
12174 test no = "$can_build_shared" && enable_shared=no
12175
12176 # On AIX, shared libraries and static libraries use the same namespace, and
12177 # are all built from PIC.
12178 case $host_os in
12179 aix3*)
12180 test yes = "$enable_shared" && enable_static=no
12181 if test -n "$RANLIB"; then
12182 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12183 postinstall_cmds='$RANLIB $lib'
12184 fi
12185 ;;
12186
12187 aix[4-9]*)
12188 if test ia64 != "$host_cpu"; then
12189 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12190 yes,aix,yes) ;; # shared object as lib.so file only
12191 yes,svr4,*) ;; # shared object as lib.so archive member only
12192 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12193 esac
12194 fi
12195 ;;
12196 esac
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12198 $as_echo "$enable_shared" >&6; }
12199
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12201 $as_echo_n "checking whether to build static libraries... " >&6; }
12202 # Make sure either enable_shared or enable_static is yes.
12203 test yes = "$enable_shared" || enable_static=yes
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12205 $as_echo "$enable_static" >&6; }
12206
12207
12208
12209
12210 fi
12211 ac_ext=c
12212 ac_cpp='$CPP $CPPFLAGS'
12213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12216
12217 CC=$lt_save_CC
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233 ac_config_commands="$ac_config_commands libtool"
12234
12235
12236
12237
12238 # Only expand once:
12239
12240
12241
12242 # Checks for programs.
12243 # The following were suggested by autoscan
12244 for ac_prog in gawk mawk nawk awk
12245 do
12246 # Extract the first word of "$ac_prog", so it can be a program name with args.
12247 set dummy $ac_prog; ac_word=$2
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12249 $as_echo_n "checking for $ac_word... " >&6; }
12250 if ${ac_cv_prog_AWK+:} false; then :
12251 $as_echo_n "(cached) " >&6
12252 else
12253 if test -n "$AWK"; then
12254 ac_cv_prog_AWK="$AWK" # Let the user override the test.
12255 else
12256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12257 for as_dir in $PATH
12258 do
12259 IFS=$as_save_IFS
12260 test -z "$as_dir" && as_dir=.
12261 for ac_exec_ext in '' $ac_executable_extensions; do
12262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12263 ac_cv_prog_AWK="$ac_prog"
12264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12265 break 2
12266 fi
12267 done
12268 done
12269 IFS=$as_save_IFS
12270
12271 fi
12272 fi
12273 AWK=$ac_cv_prog_AWK
12274 if test -n "$AWK"; then
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12276 $as_echo "$AWK" >&6; }
12277 else
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12279 $as_echo "no" >&6; }
12280 fi
12281
12282
12283 test -n "$AWK" && break
12284 done
12285
12286 ac_ext=c
12287 ac_cpp='$CPP $CPPFLAGS'
12288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12291 if test -n "$ac_tool_prefix"; then
12292 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12293 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12295 $as_echo_n "checking for $ac_word... " >&6; }
12296 if ${ac_cv_prog_CC+:} false; then :
12297 $as_echo_n "(cached) " >&6
12298 else
12299 if test -n "$CC"; then
12300 ac_cv_prog_CC="$CC" # Let the user override the test.
12301 else
12302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12303 for as_dir in $PATH
12304 do
12305 IFS=$as_save_IFS
12306 test -z "$as_dir" && as_dir=.
12307 for ac_exec_ext in '' $ac_executable_extensions; do
12308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12309 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12311 break 2
12312 fi
12313 done
12314 done
12315 IFS=$as_save_IFS
12316
12317 fi
12318 fi
12319 CC=$ac_cv_prog_CC
12320 if test -n "$CC"; then
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12322 $as_echo "$CC" >&6; }
12323 else
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12325 $as_echo "no" >&6; }
12326 fi
12327
12328
12329 fi
12330 if test -z "$ac_cv_prog_CC"; then
12331 ac_ct_CC=$CC
12332 # Extract the first word of "gcc", so it can be a program name with args.
12333 set dummy gcc; ac_word=$2
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12335 $as_echo_n "checking for $ac_word... " >&6; }
12336 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12337 $as_echo_n "(cached) " >&6
12338 else
12339 if test -n "$ac_ct_CC"; then
12340 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12341 else
12342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12343 for as_dir in $PATH
12344 do
12345 IFS=$as_save_IFS
12346 test -z "$as_dir" && as_dir=.
12347 for ac_exec_ext in '' $ac_executable_extensions; do
12348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12349 ac_cv_prog_ac_ct_CC="gcc"
12350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12351 break 2
12352 fi
12353 done
12354 done
12355 IFS=$as_save_IFS
12356
12357 fi
12358 fi
12359 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12360 if test -n "$ac_ct_CC"; then
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12362 $as_echo "$ac_ct_CC" >&6; }
12363 else
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12365 $as_echo "no" >&6; }
12366 fi
12367
12368 if test "x$ac_ct_CC" = x; then
12369 CC=""
12370 else
12371 case $cross_compiling:$ac_tool_warned in
12372 yes:)
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12375 ac_tool_warned=yes ;;
12376 esac
12377 CC=$ac_ct_CC
12378 fi
12379 else
12380 CC="$ac_cv_prog_CC"
12381 fi
12382
12383 if test -z "$CC"; then
12384 if test -n "$ac_tool_prefix"; then
12385 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12386 set dummy ${ac_tool_prefix}cc; ac_word=$2
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12388 $as_echo_n "checking for $ac_word... " >&6; }
12389 if ${ac_cv_prog_CC+:} false; then :
12390 $as_echo_n "(cached) " >&6
12391 else
12392 if test -n "$CC"; then
12393 ac_cv_prog_CC="$CC" # Let the user override the test.
12394 else
12395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12396 for as_dir in $PATH
12397 do
12398 IFS=$as_save_IFS
12399 test -z "$as_dir" && as_dir=.
12400 for ac_exec_ext in '' $ac_executable_extensions; do
12401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12402 ac_cv_prog_CC="${ac_tool_prefix}cc"
12403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12404 break 2
12405 fi
12406 done
12407 done
12408 IFS=$as_save_IFS
12409
12410 fi
12411 fi
12412 CC=$ac_cv_prog_CC
12413 if test -n "$CC"; then
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12415 $as_echo "$CC" >&6; }
12416 else
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12418 $as_echo "no" >&6; }
12419 fi
12420
12421
12422 fi
12423 fi
12424 if test -z "$CC"; then
12425 # Extract the first word of "cc", so it can be a program name with args.
12426 set dummy cc; ac_word=$2
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12428 $as_echo_n "checking for $ac_word... " >&6; }
12429 if ${ac_cv_prog_CC+:} false; then :
12430 $as_echo_n "(cached) " >&6
12431 else
12432 if test -n "$CC"; then
12433 ac_cv_prog_CC="$CC" # Let the user override the test.
12434 else
12435 ac_prog_rejected=no
12436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12437 for as_dir in $PATH
12438 do
12439 IFS=$as_save_IFS
12440 test -z "$as_dir" && as_dir=.
12441 for ac_exec_ext in '' $ac_executable_extensions; do
12442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12443 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12444 ac_prog_rejected=yes
12445 continue
12446 fi
12447 ac_cv_prog_CC="cc"
12448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12449 break 2
12450 fi
12451 done
12452 done
12453 IFS=$as_save_IFS
12454
12455 if test $ac_prog_rejected = yes; then
12456 # We found a bogon in the path, so make sure we never use it.
12457 set dummy $ac_cv_prog_CC
12458 shift
12459 if test $# != 0; then
12460 # We chose a different compiler from the bogus one.
12461 # However, it has the same basename, so the bogon will be chosen
12462 # first if we set CC to just the basename; use the full file name.
12463 shift
12464 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12465 fi
12466 fi
12467 fi
12468 fi
12469 CC=$ac_cv_prog_CC
12470 if test -n "$CC"; then
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12472 $as_echo "$CC" >&6; }
12473 else
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12475 $as_echo "no" >&6; }
12476 fi
12477
12478
12479 fi
12480 if test -z "$CC"; then
12481 if test -n "$ac_tool_prefix"; then
12482 for ac_prog in cl.exe
12483 do
12484 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12485 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12487 $as_echo_n "checking for $ac_word... " >&6; }
12488 if ${ac_cv_prog_CC+:} false; then :
12489 $as_echo_n "(cached) " >&6
12490 else
12491 if test -n "$CC"; then
12492 ac_cv_prog_CC="$CC" # Let the user override the test.
12493 else
12494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12495 for as_dir in $PATH
12496 do
12497 IFS=$as_save_IFS
12498 test -z "$as_dir" && as_dir=.
12499 for ac_exec_ext in '' $ac_executable_extensions; do
12500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12501 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12503 break 2
12504 fi
12505 done
12506 done
12507 IFS=$as_save_IFS
12508
12509 fi
12510 fi
12511 CC=$ac_cv_prog_CC
12512 if test -n "$CC"; then
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12514 $as_echo "$CC" >&6; }
12515 else
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12517 $as_echo "no" >&6; }
12518 fi
12519
12520
12521 test -n "$CC" && break
12522 done
12523 fi
12524 if test -z "$CC"; then
12525 ac_ct_CC=$CC
12526 for ac_prog in cl.exe
12527 do
12528 # Extract the first word of "$ac_prog", so it can be a program name with args.
12529 set dummy $ac_prog; ac_word=$2
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12531 $as_echo_n "checking for $ac_word... " >&6; }
12532 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12533 $as_echo_n "(cached) " >&6
12534 else
12535 if test -n "$ac_ct_CC"; then
12536 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12537 else
12538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12539 for as_dir in $PATH
12540 do
12541 IFS=$as_save_IFS
12542 test -z "$as_dir" && as_dir=.
12543 for ac_exec_ext in '' $ac_executable_extensions; do
12544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12545 ac_cv_prog_ac_ct_CC="$ac_prog"
12546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12547 break 2
12548 fi
12549 done
12550 done
12551 IFS=$as_save_IFS
12552
12553 fi
12554 fi
12555 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12556 if test -n "$ac_ct_CC"; then
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12558 $as_echo "$ac_ct_CC" >&6; }
12559 else
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12561 $as_echo "no" >&6; }
12562 fi
12563
12564
12565 test -n "$ac_ct_CC" && break
12566 done
12567
12568 if test "x$ac_ct_CC" = x; then
12569 CC=""
12570 else
12571 case $cross_compiling:$ac_tool_warned in
12572 yes:)
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12575 ac_tool_warned=yes ;;
12576 esac
12577 CC=$ac_ct_CC
12578 fi
12579 fi
12580
12581 fi
12582
12583
12584 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12586 as_fn_error $? "no acceptable C compiler found in \$PATH
12587 See \`config.log' for more details" "$LINENO" 5; }
12588
12589 # Provide some information about the compiler.
12590 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12591 set X $ac_compile
12592 ac_compiler=$2
12593 for ac_option in --version -v -V -qversion; do
12594 { { ac_try="$ac_compiler $ac_option >&5"
12595 case "(($ac_try" in
12596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12597 *) ac_try_echo=$ac_try;;
12598 esac
12599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12600 $as_echo "$ac_try_echo"; } >&5
12601 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12602 ac_status=$?
12603 if test -s conftest.err; then
12604 sed '10a\
12605 ... rest of stderr output deleted ...
12606 10q' conftest.err >conftest.er1
12607 cat conftest.er1 >&5
12608 fi
12609 rm -f conftest.er1 conftest.err
12610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12611 test $ac_status = 0; }
12612 done
12613
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12615 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12616 if ${ac_cv_c_compiler_gnu+:} false; then :
12617 $as_echo_n "(cached) " >&6
12618 else
12619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12620 /* end confdefs.h. */
12621
12622 int
12623 main ()
12624 {
12625 #ifndef __GNUC__
12626 choke me
12627 #endif
12628
12629 ;
12630 return 0;
12631 }
12632 _ACEOF
12633 if ac_fn_c_try_compile "$LINENO"; then :
12634 ac_compiler_gnu=yes
12635 else
12636 ac_compiler_gnu=no
12637 fi
12638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12639 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12640
12641 fi
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12643 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12644 if test $ac_compiler_gnu = yes; then
12645 GCC=yes
12646 else
12647 GCC=
12648 fi
12649 ac_test_CFLAGS=${CFLAGS+set}
12650 ac_save_CFLAGS=$CFLAGS
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12652 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12653 if ${ac_cv_prog_cc_g+:} false; then :
12654 $as_echo_n "(cached) " >&6
12655 else
12656 ac_save_c_werror_flag=$ac_c_werror_flag
12657 ac_c_werror_flag=yes
12658 ac_cv_prog_cc_g=no
12659 CFLAGS="-g"
12660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12661 /* end confdefs.h. */
12662
12663 int
12664 main ()
12665 {
12666
12667 ;
12668 return 0;
12669 }
12670 _ACEOF
12671 if ac_fn_c_try_compile "$LINENO"; then :
12672 ac_cv_prog_cc_g=yes
12673 else
12674 CFLAGS=""
12675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12676 /* end confdefs.h. */
12677
12678 int
12679 main ()
12680 {
12681
12682 ;
12683 return 0;
12684 }
12685 _ACEOF
12686 if ac_fn_c_try_compile "$LINENO"; then :
12687
12688 else
12689 ac_c_werror_flag=$ac_save_c_werror_flag
12690 CFLAGS="-g"
12691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12692 /* end confdefs.h. */
12693
12694 int
12695 main ()
12696 {
12697
12698 ;
12699 return 0;
12700 }
12701 _ACEOF
12702 if ac_fn_c_try_compile "$LINENO"; then :
12703 ac_cv_prog_cc_g=yes
12704 fi
12705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12706 fi
12707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12708 fi
12709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12710 ac_c_werror_flag=$ac_save_c_werror_flag
12711 fi
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12713 $as_echo "$ac_cv_prog_cc_g" >&6; }
12714 if test "$ac_test_CFLAGS" = set; then
12715 CFLAGS=$ac_save_CFLAGS
12716 elif test $ac_cv_prog_cc_g = yes; then
12717 if test "$GCC" = yes; then
12718 CFLAGS="-g -O2"
12719 else
12720 CFLAGS="-g"
12721 fi
12722 else
12723 if test "$GCC" = yes; then
12724 CFLAGS="-O2"
12725 else
12726 CFLAGS=
12727 fi
12728 fi
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12730 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12731 if ${ac_cv_prog_cc_c89+:} false; then :
12732 $as_echo_n "(cached) " >&6
12733 else
12734 ac_cv_prog_cc_c89=no
12735 ac_save_CC=$CC
12736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12737 /* end confdefs.h. */
12738 #include <stdarg.h>
12739 #include <stdio.h>
12740 struct stat;
12741 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12742 struct buf { int x; };
12743 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12744 static char *e (p, i)
12745 char **p;
12746 int i;
12747 {
12748 return p[i];
12749 }
12750 static char *f (char * (*g) (char **, int), char **p, ...)
12751 {
12752 char *s;
12753 va_list v;
12754 va_start (v,p);
12755 s = g (p, va_arg (v,int));
12756 va_end (v);
12757 return s;
12758 }
12759
12760 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12761 function prototypes and stuff, but not '\xHH' hex character constants.
12762 These don't provoke an error unfortunately, instead are silently treated
12763 as 'x'. The following induces an error, until -std is added to get
12764 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12765 array size at least. It's necessary to write '\x00'==0 to get something
12766 that's true only with -std. */
12767 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12768
12769 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12770 inside strings and character constants. */
12771 #define FOO(x) 'x'
12772 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12773
12774 int test (int i, double x);
12775 struct s1 {int (*f) (int a);};
12776 struct s2 {int (*f) (double a);};
12777 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12778 int argc;
12779 char **argv;
12780 int
12781 main ()
12782 {
12783 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12784 ;
12785 return 0;
12786 }
12787 _ACEOF
12788 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12789 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12790 do
12791 CC="$ac_save_CC $ac_arg"
12792 if ac_fn_c_try_compile "$LINENO"; then :
12793 ac_cv_prog_cc_c89=$ac_arg
12794 fi
12795 rm -f core conftest.err conftest.$ac_objext
12796 test "x$ac_cv_prog_cc_c89" != "xno" && break
12797 done
12798 rm -f conftest.$ac_ext
12799 CC=$ac_save_CC
12800
12801 fi
12802 # AC_CACHE_VAL
12803 case "x$ac_cv_prog_cc_c89" in
12804 x)
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12806 $as_echo "none needed" >&6; } ;;
12807 xno)
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12809 $as_echo "unsupported" >&6; } ;;
12810 *)
12811 CC="$CC $ac_cv_prog_cc_c89"
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12813 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12814 esac
12815 if test "x$ac_cv_prog_cc_c89" != xno; then :
12816
12817 fi
12818
12819 ac_ext=c
12820 ac_cpp='$CPP $CPPFLAGS'
12821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12824
12825 ac_ext=c
12826 ac_cpp='$CPP $CPPFLAGS'
12827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12831 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12832 if ${am_cv_prog_cc_c_o+:} false; then :
12833 $as_echo_n "(cached) " >&6
12834 else
12835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12836 /* end confdefs.h. */
12837
12838 int
12839 main ()
12840 {
12841
12842 ;
12843 return 0;
12844 }
12845 _ACEOF
12846 # Make sure it works both with $CC and with simple cc.
12847 # Following AC_PROG_CC_C_O, we do the test twice because some
12848 # compilers refuse to overwrite an existing .o file with -o,
12849 # though they will create one.
12850 am_cv_prog_cc_c_o=yes
12851 for am_i in 1 2; do
12852 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12853 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12854 ac_status=$?
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); } \
12857 && test -f conftest2.$ac_objext; then
12858 : OK
12859 else
12860 am_cv_prog_cc_c_o=no
12861 break
12862 fi
12863 done
12864 rm -f core conftest*
12865 unset am_i
12866 fi
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12868 $as_echo "$am_cv_prog_cc_c_o" >&6; }
12869 if test "$am_cv_prog_cc_c_o" != yes; then
12870 # Losing compiler, so override with the script.
12871 # FIXME: It is wrong to rewrite CC.
12872 # But if we don't then we get into trouble of one sort or another.
12873 # A longer-term fix would be to have automake use am__CC in this case,
12874 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12875 CC="$am_aux_dir/compile $CC"
12876 fi
12877 ac_ext=c
12878 ac_cpp='$CPP $CPPFLAGS'
12879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12882
12883
12884 depcc="$CC" am_compiler_list=
12885
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12887 $as_echo_n "checking dependency style of $depcc... " >&6; }
12888 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12889 $as_echo_n "(cached) " >&6
12890 else
12891 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12892 # We make a subdir and do the tests there. Otherwise we can end up
12893 # making bogus files that we don't know about and never remove. For
12894 # instance it was reported that on HP-UX the gcc test will end up
12895 # making a dummy file named 'D' -- because '-MD' means "put the output
12896 # in D".
12897 rm -rf conftest.dir
12898 mkdir conftest.dir
12899 # Copy depcomp to subdir because otherwise we won't find it if we're
12900 # using a relative directory.
12901 cp "$am_depcomp" conftest.dir
12902 cd conftest.dir
12903 # We will build objects and dependencies in a subdirectory because
12904 # it helps to detect inapplicable dependency modes. For instance
12905 # both Tru64's cc and ICC support -MD to output dependencies as a
12906 # side effect of compilation, but ICC will put the dependencies in
12907 # the current directory while Tru64 will put them in the object
12908 # directory.
12909 mkdir sub
12910
12911 am_cv_CC_dependencies_compiler_type=none
12912 if test "$am_compiler_list" = ""; then
12913 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12914 fi
12915 am__universal=false
12916 case " $depcc " in #(
12917 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12918 esac
12919
12920 for depmode in $am_compiler_list; do
12921 # Setup a source with many dependencies, because some compilers
12922 # like to wrap large dependency lists on column 80 (with \), and
12923 # we should not choose a depcomp mode which is confused by this.
12924 #
12925 # We need to recreate these files for each test, as the compiler may
12926 # overwrite some of them when testing with obscure command lines.
12927 # This happens at least with the AIX C compiler.
12928 : > sub/conftest.c
12929 for i in 1 2 3 4 5 6; do
12930 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12931 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12932 # Solaris 10 /bin/sh.
12933 echo '/* dummy */' > sub/conftst$i.h
12934 done
12935 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12936
12937 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12938 # mode. It turns out that the SunPro C++ compiler does not properly
12939 # handle '-M -o', and we need to detect this. Also, some Intel
12940 # versions had trouble with output in subdirs.
12941 am__obj=sub/conftest.${OBJEXT-o}
12942 am__minus_obj="-o $am__obj"
12943 case $depmode in
12944 gcc)
12945 # This depmode causes a compiler race in universal mode.
12946 test "$am__universal" = false || continue
12947 ;;
12948 nosideeffect)
12949 # After this tag, mechanisms are not by side-effect, so they'll
12950 # only be used when explicitly requested.
12951 if test "x$enable_dependency_tracking" = xyes; then
12952 continue
12953 else
12954 break
12955 fi
12956 ;;
12957 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12958 # This compiler won't grok '-c -o', but also, the minuso test has
12959 # not run yet. These depmodes are late enough in the game, and
12960 # so weak that their functioning should not be impacted.
12961 am__obj=conftest.${OBJEXT-o}
12962 am__minus_obj=
12963 ;;
12964 none) break ;;
12965 esac
12966 if depmode=$depmode \
12967 source=sub/conftest.c object=$am__obj \
12968 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12969 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12970 >/dev/null 2>conftest.err &&
12971 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12972 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12973 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12974 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12975 # icc doesn't choke on unknown options, it will just issue warnings
12976 # or remarks (even with -Werror). So we grep stderr for any message
12977 # that says an option was ignored or not supported.
12978 # When given -MP, icc 7.0 and 7.1 complain thusly:
12979 # icc: Command line warning: ignoring option '-M'; no argument required
12980 # The diagnosis changed in icc 8.0:
12981 # icc: Command line remark: option '-MP' not supported
12982 if (grep 'ignoring option' conftest.err ||
12983 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12984 am_cv_CC_dependencies_compiler_type=$depmode
12985 break
12986 fi
12987 fi
12988 done
12989
12990 cd ..
12991 rm -rf conftest.dir
12992 else
12993 am_cv_CC_dependencies_compiler_type=none
12994 fi
12995
12996 fi
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12998 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12999 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13000
13001 if
13002 test "x$enable_dependency_tracking" != xno \
13003 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13004 am__fastdepCC_TRUE=
13005 am__fastdepCC_FALSE='#'
13006 else
13007 am__fastdepCC_TRUE='#'
13008 am__fastdepCC_FALSE=
13009 fi
13010
13011
13012 ac_ext=c
13013 ac_cpp='$CPP $CPPFLAGS'
13014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
13018 $as_echo_n "checking how to run the C preprocessor... " >&6; }
13019 # On Suns, sometimes $CPP names a directory.
13020 if test -n "$CPP" && test -d "$CPP"; then
13021 CPP=
13022 fi
13023 if test -z "$CPP"; then
13024 if ${ac_cv_prog_CPP+:} false; then :
13025 $as_echo_n "(cached) " >&6
13026 else
13027 # Double quotes because CPP needs to be expanded
13028 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13029 do
13030 ac_preproc_ok=false
13031 for ac_c_preproc_warn_flag in '' yes
13032 do
13033 # Use a header file that comes with gcc, so configuring glibc
13034 # with a fresh cross-compiler works.
13035 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13036 # <limits.h> exists even on freestanding compilers.
13037 # On the NeXT, cc -E runs the code through the compiler's parser,
13038 # not just through cpp. "Syntax error" is here to catch this case.
13039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13040 /* end confdefs.h. */
13041 #ifdef __STDC__
13042 # include <limits.h>
13043 #else
13044 # include <assert.h>
13045 #endif
13046 Syntax error
13047 _ACEOF
13048 if ac_fn_c_try_cpp "$LINENO"; then :
13049
13050 else
13051 # Broken: fails on valid input.
13052 continue
13053 fi
13054 rm -f conftest.err conftest.i conftest.$ac_ext
13055
13056 # OK, works on sane cases. Now check whether nonexistent headers
13057 # can be detected and how.
13058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13059 /* end confdefs.h. */
13060 #include <ac_nonexistent.h>
13061 _ACEOF
13062 if ac_fn_c_try_cpp "$LINENO"; then :
13063 # Broken: success on invalid input.
13064 continue
13065 else
13066 # Passes both tests.
13067 ac_preproc_ok=:
13068 break
13069 fi
13070 rm -f conftest.err conftest.i conftest.$ac_ext
13071
13072 done
13073 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13074 rm -f conftest.i conftest.err conftest.$ac_ext
13075 if $ac_preproc_ok; then :
13076 break
13077 fi
13078
13079 done
13080 ac_cv_prog_CPP=$CPP
13081
13082 fi
13083 CPP=$ac_cv_prog_CPP
13084 else
13085 ac_cv_prog_CPP=$CPP
13086 fi
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
13088 $as_echo "$CPP" >&6; }
13089 ac_preproc_ok=false
13090 for ac_c_preproc_warn_flag in '' yes
13091 do
13092 # Use a header file that comes with gcc, so configuring glibc
13093 # with a fresh cross-compiler works.
13094 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13095 # <limits.h> exists even on freestanding compilers.
13096 # On the NeXT, cc -E runs the code through the compiler's parser,
13097 # not just through cpp. "Syntax error" is here to catch this case.
13098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13099 /* end confdefs.h. */
13100 #ifdef __STDC__
13101 # include <limits.h>
13102 #else
13103 # include <assert.h>
13104 #endif
13105 Syntax error
13106 _ACEOF
13107 if ac_fn_c_try_cpp "$LINENO"; then :
13108
13109 else
13110 # Broken: fails on valid input.
13111 continue
13112 fi
13113 rm -f conftest.err conftest.i conftest.$ac_ext
13114
13115 # OK, works on sane cases. Now check whether nonexistent headers
13116 # can be detected and how.
13117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13118 /* end confdefs.h. */
13119 #include <ac_nonexistent.h>
13120 _ACEOF
13121 if ac_fn_c_try_cpp "$LINENO"; then :
13122 # Broken: success on invalid input.
13123 continue
13124 else
13125 # Passes both tests.
13126 ac_preproc_ok=:
13127 break
13128 fi
13129 rm -f conftest.err conftest.i conftest.$ac_ext
13130
13131 done
13132 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13133 rm -f conftest.i conftest.err conftest.$ac_ext
13134 if $ac_preproc_ok; then :
13135
13136 else
13137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13139 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
13140 See \`config.log' for more details" "$LINENO" 5; }
13141 fi
13142
13143 ac_ext=c
13144 ac_cpp='$CPP $CPPFLAGS'
13145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13148
13149
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13151 $as_echo_n "checking whether ln -s works... " >&6; }
13152 LN_S=$as_ln_s
13153 if test "$LN_S" = "ln -s"; then
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13155 $as_echo "yes" >&6; }
13156 else
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13158 $as_echo "no, using $LN_S" >&6; }
13159 fi
13160
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13162 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13163 set x ${MAKE-make}
13164 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13165 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
13166 $as_echo_n "(cached) " >&6
13167 else
13168 cat >conftest.make <<\_ACEOF
13169 SHELL = /bin/sh
13170 all:
13171 @echo '@@@%%%=$(MAKE)=@@@%%%'
13172 _ACEOF
13173 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13174 case `${MAKE-make} -f conftest.make 2>/dev/null` in
13175 *@@@%%%=?*=@@@%%%*)
13176 eval ac_cv_prog_make_${ac_make}_set=yes;;
13177 *)
13178 eval ac_cv_prog_make_${ac_make}_set=no;;
13179 esac
13180 rm -f conftest.make
13181 fi
13182 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13184 $as_echo "yes" >&6; }
13185 SET_MAKE=
13186 else
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13188 $as_echo "no" >&6; }
13189 SET_MAKE="MAKE=${MAKE-make}"
13190 fi
13191
13192
13193 # Checks for libraries.
13194
13195 # Checks for header files.
13196 # The following were suggested by autoscan
13197 for ac_header in stddef.h stdlib.h
13198 do :
13199 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13200 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13201 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13202 cat >>confdefs.h <<_ACEOF
13203 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13204 _ACEOF
13205
13206 fi
13207
13208 done
13209
13210
13211 # Checks for typedefs, structures, and compiler characteristics.
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13213 $as_echo_n "checking for inline... " >&6; }
13214 if ${ac_cv_c_inline+:} false; then :
13215 $as_echo_n "(cached) " >&6
13216 else
13217 ac_cv_c_inline=no
13218 for ac_kw in inline __inline__ __inline; do
13219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13220 /* end confdefs.h. */
13221 #ifndef __cplusplus
13222 typedef int foo_t;
13223 static $ac_kw foo_t static_foo () {return 0; }
13224 $ac_kw foo_t foo () {return 0; }
13225 #endif
13226
13227 _ACEOF
13228 if ac_fn_c_try_compile "$LINENO"; then :
13229 ac_cv_c_inline=$ac_kw
13230 fi
13231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13232 test "$ac_cv_c_inline" != no && break
13233 done
13234
13235 fi
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13237 $as_echo "$ac_cv_c_inline" >&6; }
13238
13239 case $ac_cv_c_inline in
13240 inline | yes) ;;
13241 *)
13242 case $ac_cv_c_inline in
13243 no) ac_val=;;
13244 *) ac_val=$ac_cv_c_inline;;
13245 esac
13246 cat >>confdefs.h <<_ACEOF
13247 #ifndef __cplusplus
13248 #define inline $ac_val
13249 #endif
13250 _ACEOF
13251 ;;
13252 esac
13253
13254 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13255 if test "x$ac_cv_type_size_t" = xyes; then :
13256
13257 else
13258
13259 cat >>confdefs.h <<_ACEOF
13260 #define size_t unsigned int
13261 _ACEOF
13262
13263 fi
13264
13265
13266 if test x"$GCC" = xyes; then
13267
13268 marpa_save_CFLAGS="$CFLAGS"
13269 CFLAGS="$marpa_save_CFLAGS -Wextra"
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC handles -Wextra" >&5
13271 $as_echo_n "checking whether GCC handles -Wextra... " >&6; }
13272 if ${marpa_cv_prog_gcc_wextra+:} false; then :
13273 $as_echo_n "(cached) " >&6
13274 else
13275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13276 /* end confdefs.h. */
13277
13278 int
13279 main ()
13280 {
13281
13282 ;
13283 return 0;
13284 }
13285 _ACEOF
13286 if ac_fn_c_try_compile "$LINENO"; then :
13287 marpa_cv_prog_gcc_wextra=-Wextra
13288 else
13289 marpa_cv_prog_gcc_wextra=
13290 fi
13291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13292 fi
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $marpa_cv_prog_gcc_wextra" >&5
13294 $as_echo "$marpa_cv_prog_gcc_wextra" >&6; }
13295 CFLAGS="$marpa_save_CFLAGS -Wdeclaration-after-statement"
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC handles -Wdeclaration-after-statement" >&5
13297 $as_echo_n "checking whether GCC handles -Wdeclaration-after-statement... " >&6; }
13298 if ${marpa_cv_prog_gcc_wdas+:} false; then :
13299 $as_echo_n "(cached) " >&6
13300 else
13301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13302 /* end confdefs.h. */
13303
13304 int
13305 main ()
13306 {
13307
13308 ;
13309 return 0;
13310 }
13311 _ACEOF
13312 if ac_fn_c_try_compile "$LINENO"; then :
13313 marpa_cv_prog_gcc_wdas=-Wdeclaration-after-statement
13314 else
13315 marpa_cv_prog_gcc_wdas=
13316 fi
13317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13318 fi
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $marpa_cv_prog_gcc_wdas" >&5
13320 $as_echo "$marpa_cv_prog_gcc_wdas" >&6; }
13321 CFLAGS="$marpa_save_CFLAGS"
13322
13323 WARNING_CFLAGS="-Wall \
13324 $marpa_cv_prog_gcc_wextra \
13325 $marpa_cv_prog_gcc_wdas \
13326 -Wpointer-arith \
13327 -Wstrict-prototypes \
13328 -Wwrite-strings \
13329 -Wshadow \
13330 -Wmissing-declarations \
13331 -Wconversion \
13332 -ansi -pedantic"
13333
13334 WARNING_CPPFLAGS=" \
13335 -Wundef \
13336 -Wendif-labels"
13337
13338 fi
13339
13340 if test x"$MARPA_DEBUG_FLAG" = x; then
13341 MARPA_DEBUG_FLAG=
13342 fi
13343
13344
13345
13346
13347 # There are two sets of version numbers, one that travels as
13348 # a define with the public headers, and this one, which is compiled
13349 # into the library. Both *should* be the same.
13350 # We use these duplicate headers to make sure applications match the
13351 # right headers to the right library, and also for some sanity checking
13352 # at build and development time.
13353 MARPA_LIB_MAJOR_VERSION=11
13354
13355 MARPA_LIB_MINOR_VERSION=0
13356
13357 MARPA_LIB_MICRO_VERSION=2
13358
13359
13360 $as_echo "#define MARPA_LIB_MAJOR_VERSION 11" >>confdefs.h
13361
13362
13363 $as_echo "#define MARPA_LIB_MINOR_VERSION 0" >>confdefs.h
13364
13365
13366 $as_echo "#define MARPA_LIB_MICRO_VERSION 2" >>confdefs.h
13367
13368
13369
13370 # The cast to long int works around a bug in the HP C Compiler
13371 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13372 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13373 # This bug is HP SR number 8606223364.
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13375 $as_echo_n "checking size of int... " >&6; }
13376 if ${ac_cv_sizeof_int+:} false; then :
13377 $as_echo_n "(cached) " >&6
13378 else
13379 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13380
13381 else
13382 if test "$ac_cv_type_int" = yes; then
13383 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13385 as_fn_error 77 "cannot compute sizeof (int)
13386 See \`config.log' for more details" "$LINENO" 5; }
13387 else
13388 ac_cv_sizeof_int=0
13389 fi
13390 fi
13391
13392 fi
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13394 $as_echo "$ac_cv_sizeof_int" >&6; }
13395
13396
13397
13398 cat >>confdefs.h <<_ACEOF
13399 #define SIZEOF_INT $ac_cv_sizeof_int
13400 _ACEOF
13401
13402
13403 if test "$ac_cv_sizeof_int" -lt 4; then
13404 as_fn_error $? "Marpa requires that int be at least 32 bits -- on this system that is not the case" "$LINENO" 5
13405 fi
13406
13407 # This was to prepare for 64-bit pseudo-UTF8 characters (which full Perl-style
13408 # Unicode support would require) in the SLIF. This approach needs to be re-thought
13409 #
13410 # AC_TYPE_UNSIGNED_LONG_LONG_INT
13411 # if test x"$ac_cv_type_unsigned_long_long_int" != xyes; then
13412 # AC_MSG_ERROR(
13413 # [Marpa requires an unsigned long long type -- this compiler does not have one])
13414 # fi
13415
13416 # Checks for library functions.
13417 # The following were suggested by autoscan
13418 for ac_func in memset
13419 do :
13420 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
13421 if test "x$ac_cv_func_memset" = xyes; then :
13422 cat >>confdefs.h <<_ACEOF
13423 #define HAVE_MEMSET 1
13424 _ACEOF
13425
13426 fi
13427 done
13428
13429
13430 ac_config_files="$ac_config_files Makefile libmarpa.pc"
13431
13432 cat >confcache <<\_ACEOF
13433 # This file is a shell script that caches the results of configure
13434 # tests run on this system so they can be shared between configure
13435 # scripts and configure runs, see configure's option --config-cache.
13436 # It is not useful on other systems. If it contains results you don't
13437 # want to keep, you may remove or edit it.
13438 #
13439 # config.status only pays attention to the cache file if you give it
13440 # the --recheck option to rerun configure.
13441 #
13442 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13443 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13444 # following values.
13445
13446 _ACEOF
13447
13448 # The following way of writing the cache mishandles newlines in values,
13449 # but we know of no workaround that is simple, portable, and efficient.
13450 # So, we kill variables containing newlines.
13451 # Ultrix sh set writes to stderr and can't be redirected directly,
13452 # and sets the high bit in the cache file unless we assign to the vars.
13453 (
13454 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13455 eval ac_val=\$$ac_var
13456 case $ac_val in #(
13457 *${as_nl}*)
13458 case $ac_var in #(
13459 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13460 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13461 esac
13462 case $ac_var in #(
13463 _ | IFS | as_nl) ;; #(
13464 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13465 *) { eval $ac_var=; unset $ac_var;} ;;
13466 esac ;;
13467 esac
13468 done
13469
13470 (set) 2>&1 |
13471 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13472 *${as_nl}ac_space=\ *)
13473 # `set' does not quote correctly, so add quotes: double-quote
13474 # substitution turns \\\\ into \\, and sed turns \\ into \.
13475 sed -n \
13476 "s/'/'\\\\''/g;
13477 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13478 ;; #(
13479 *)
13480 # `set' quotes correctly as required by POSIX, so do not add quotes.
13481 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13482 ;;
13483 esac |
13484 sort
13485 ) |
13486 sed '
13487 /^ac_cv_env_/b end
13488 t clear
13489 :clear
13490 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13491 t end
13492 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13493 :end' >>confcache
13494 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13495 if test -w "$cache_file"; then
13496 if test "x$cache_file" != "x/dev/null"; then
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13498 $as_echo "$as_me: updating cache $cache_file" >&6;}
13499 if test ! -f "$cache_file" || test -h "$cache_file"; then
13500 cat confcache >"$cache_file"
13501 else
13502 case $cache_file in #(
13503 */* | ?:*)
13504 mv -f confcache "$cache_file"$$ &&
13505 mv -f "$cache_file"$$ "$cache_file" ;; #(
13506 *)
13507 mv -f confcache "$cache_file" ;;
13508 esac
13509 fi
13510 fi
13511 else
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13513 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13514 fi
13515 fi
13516 rm -f confcache
13517
13518 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13519 # Let make expand exec_prefix.
13520 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13521
13522 DEFS=-DHAVE_CONFIG_H
13523
13524 ac_libobjs=
13525 ac_ltlibobjs=
13526 U=
13527 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13528 # 1. Remove the extension, and $U if already installed.
13529 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13530 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13531 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13532 # will be set to the directory where LIBOBJS objects are built.
13533 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13534 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13535 done
13536 LIBOBJS=$ac_libobjs
13537
13538 LTLIBOBJS=$ac_ltlibobjs
13539
13540
13541 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13542 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13543 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13544 fi
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13546 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13547 if test -n "$am_sleep_pid"; then
13548 # Hide warnings about reused PIDs.
13549 wait $am_sleep_pid 2>/dev/null
13550 fi
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13552 $as_echo "done" >&6; }
13553 if test -n "$EXEEXT"; then
13554 am__EXEEXT_TRUE=
13555 am__EXEEXT_FALSE='#'
13556 else
13557 am__EXEEXT_TRUE='#'
13558 am__EXEEXT_FALSE=
13559 fi
13560
13561 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13562 as_fn_error $? "conditional \"AMDEP\" was never defined.
13563 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13564 fi
13565 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13566 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13567 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13568 fi
13569 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13570 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13571 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13572 fi
13573
13574 : "${CONFIG_STATUS=./config.status}"
13575 ac_write_fail=0
13576 ac_clean_files_save=$ac_clean_files
13577 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13579 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13580 as_write_fail=0
13581 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13582 #! $SHELL
13583 # Generated by $as_me.
13584 # Run this file to recreate the current configuration.
13585 # Compiler output produced by configure, useful for debugging
13586 # configure, is in config.log if it exists.
13587
13588 debug=false
13589 ac_cs_recheck=false
13590 ac_cs_silent=false
13591
13592 SHELL=\${CONFIG_SHELL-$SHELL}
13593 export SHELL
13594 _ASEOF
13595 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13596 ## -------------------- ##
13597 ## M4sh Initialization. ##
13598 ## -------------------- ##
13599
13600 # Be more Bourne compatible
13601 DUALCASE=1; export DUALCASE # for MKS sh
13602 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13603 emulate sh
13604 NULLCMD=:
13605 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13606 # is contrary to our usage. Disable this feature.
13607 alias -g '${1+"$@"}'='"$@"'
13608 setopt NO_GLOB_SUBST
13609 else
13610 case `(set -o) 2>/dev/null` in #(
13611 *posix*) :
13612 set -o posix ;; #(
13613 *) :
13614 ;;
13615 esac
13616 fi
13617
13618
13619 as_nl='
13620 '
13621 export as_nl
13622 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13623 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13624 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13625 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13626 # Prefer a ksh shell builtin over an external printf program on Solaris,
13627 # but without wasting forks for bash or zsh.
13628 if test -z "$BASH_VERSION$ZSH_VERSION" \
13629 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13630 as_echo='print -r --'
13631 as_echo_n='print -rn --'
13632 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13633 as_echo='printf %s\n'
13634 as_echo_n='printf %s'
13635 else
13636 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13637 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13638 as_echo_n='/usr/ucb/echo -n'
13639 else
13640 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13641 as_echo_n_body='eval
13642 arg=$1;
13643 case $arg in #(
13644 *"$as_nl"*)
13645 expr "X$arg" : "X\\(.*\\)$as_nl";
13646 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13647 esac;
13648 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13649 '
13650 export as_echo_n_body
13651 as_echo_n='sh -c $as_echo_n_body as_echo'
13652 fi
13653 export as_echo_body
13654 as_echo='sh -c $as_echo_body as_echo'
13655 fi
13656
13657 # The user is always right.
13658 if test "${PATH_SEPARATOR+set}" != set; then
13659 PATH_SEPARATOR=:
13660 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13661 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13662 PATH_SEPARATOR=';'
13663 }
13664 fi
13665
13666
13667 # IFS
13668 # We need space, tab and new line, in precisely that order. Quoting is
13669 # there to prevent editors from complaining about space-tab.
13670 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13671 # splitting by setting IFS to empty value.)
13672 IFS=" "" $as_nl"
13673
13674 # Find who we are. Look in the path if we contain no directory separator.
13675 as_myself=
13676 case $0 in #((
13677 *[\\/]* ) as_myself=$0 ;;
13678 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13679 for as_dir in $PATH
13680 do
13681 IFS=$as_save_IFS
13682 test -z "$as_dir" && as_dir=.
13683 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13684 done
13685 IFS=$as_save_IFS
13686
13687 ;;
13688 esac
13689 # We did not find ourselves, most probably we were run as `sh COMMAND'
13690 # in which case we are not to be found in the path.
13691 if test "x$as_myself" = x; then
13692 as_myself=$0
13693 fi
13694 if test ! -f "$as_myself"; then
13695 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13696 exit 1
13697 fi
13698
13699 # Unset variables that we do not need and which cause bugs (e.g. in
13700 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13701 # suppresses any "Segmentation fault" message there. '((' could
13702 # trigger a bug in pdksh 5.2.14.
13703 for as_var in BASH_ENV ENV MAIL MAILPATH
13704 do eval test x\${$as_var+set} = xset \
13705 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13706 done
13707 PS1='$ '
13708 PS2='> '
13709 PS4='+ '
13710
13711 # NLS nuisances.
13712 LC_ALL=C
13713 export LC_ALL
13714 LANGUAGE=C
13715 export LANGUAGE
13716
13717 # CDPATH.
13718 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13719
13720
13721 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13722 # ----------------------------------------
13723 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13724 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13725 # script with STATUS, using 1 if that was 0.
13726 as_fn_error ()
13727 {
13728 as_status=$1; test $as_status -eq 0 && as_status=1
13729 if test "$4"; then
13730 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13731 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13732 fi
13733 $as_echo "$as_me: error: $2" >&2
13734 as_fn_exit $as_status
13735 } # as_fn_error
13736
13737
13738 # as_fn_set_status STATUS
13739 # -----------------------
13740 # Set $? to STATUS, without forking.
13741 as_fn_set_status ()
13742 {
13743 return $1
13744 } # as_fn_set_status
13745
13746 # as_fn_exit STATUS
13747 # -----------------
13748 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13749 as_fn_exit ()
13750 {
13751 set +e
13752 as_fn_set_status $1
13753 exit $1
13754 } # as_fn_exit
13755
13756 # as_fn_unset VAR
13757 # ---------------
13758 # Portably unset VAR.
13759 as_fn_unset ()
13760 {
13761 { eval $1=; unset $1;}
13762 }
13763 as_unset=as_fn_unset
13764 # as_fn_append VAR VALUE
13765 # ----------------------
13766 # Append the text in VALUE to the end of the definition contained in VAR. Take
13767 # advantage of any shell optimizations that allow amortized linear growth over
13768 # repeated appends, instead of the typical quadratic growth present in naive
13769 # implementations.
13770 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13771 eval 'as_fn_append ()
13772 {
13773 eval $1+=\$2
13774 }'
13775 else
13776 as_fn_append ()
13777 {
13778 eval $1=\$$1\$2
13779 }
13780 fi # as_fn_append
13781
13782 # as_fn_arith ARG...
13783 # ------------------
13784 # Perform arithmetic evaluation on the ARGs, and store the result in the
13785 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13786 # must be portable across $(()) and expr.
13787 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13788 eval 'as_fn_arith ()
13789 {
13790 as_val=$(( $* ))
13791 }'
13792 else
13793 as_fn_arith ()
13794 {
13795 as_val=`expr "$@" || test $? -eq 1`
13796 }
13797 fi # as_fn_arith
13798
13799
13800 if expr a : '\(a\)' >/dev/null 2>&1 &&
13801 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13802 as_expr=expr
13803 else
13804 as_expr=false
13805 fi
13806
13807 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13808 as_basename=basename
13809 else
13810 as_basename=false
13811 fi
13812
13813 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13814 as_dirname=dirname
13815 else
13816 as_dirname=false
13817 fi
13818
13819 as_me=`$as_basename -- "$0" ||
13820 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13821 X"$0" : 'X\(//\)$' \| \
13822 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13823 $as_echo X/"$0" |
13824 sed '/^.*\/\([^/][^/]*\)\/*$/{
13825 s//\1/
13826 q
13827 }
13828 /^X\/\(\/\/\)$/{
13829 s//\1/
13830 q
13831 }
13832 /^X\/\(\/\).*/{
13833 s//\1/
13834 q
13835 }
13836 s/.*/./; q'`
13837
13838 # Avoid depending upon Character Ranges.
13839 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13840 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13841 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13842 as_cr_digits='0123456789'
13843 as_cr_alnum=$as_cr_Letters$as_cr_digits
13844
13845 ECHO_C= ECHO_N= ECHO_T=
13846 case `echo -n x` in #(((((
13847 -n*)
13848 case `echo 'xy\c'` in
13849 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13850 xy) ECHO_C='\c';;
13851 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13852 ECHO_T=' ';;
13853 esac;;
13854 *)
13855 ECHO_N='-n';;
13856 esac
13857
13858 rm -f conf$$ conf$$.exe conf$$.file
13859 if test -d conf$$.dir; then
13860 rm -f conf$$.dir/conf$$.file
13861 else
13862 rm -f conf$$.dir
13863 mkdir conf$$.dir 2>/dev/null
13864 fi
13865 if (echo >conf$$.file) 2>/dev/null; then
13866 if ln -s conf$$.file conf$$ 2>/dev/null; then
13867 as_ln_s='ln -s'
13868 # ... but there are two gotchas:
13869 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13870 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13871 # In both cases, we have to default to `cp -pR'.
13872 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13873 as_ln_s='cp -pR'
13874 elif ln conf$$.file conf$$ 2>/dev/null; then
13875 as_ln_s=ln
13876 else
13877 as_ln_s='cp -pR'
13878 fi
13879 else
13880 as_ln_s='cp -pR'
13881 fi
13882 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13883 rmdir conf$$.dir 2>/dev/null
13884
13885
13886 # as_fn_mkdir_p
13887 # -------------
13888 # Create "$as_dir" as a directory, including parents if necessary.
13889 as_fn_mkdir_p ()
13890 {
13891
13892 case $as_dir in #(
13893 -*) as_dir=./$as_dir;;
13894 esac
13895 test -d "$as_dir" || eval $as_mkdir_p || {
13896 as_dirs=
13897 while :; do
13898 case $as_dir in #(
13899 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13900 *) as_qdir=$as_dir;;
13901 esac
13902 as_dirs="'$as_qdir' $as_dirs"
13903 as_dir=`$as_dirname -- "$as_dir" ||
13904 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13905 X"$as_dir" : 'X\(//\)[^/]' \| \
13906 X"$as_dir" : 'X\(//\)$' \| \
13907 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13908 $as_echo X"$as_dir" |
13909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13910 s//\1/
13911 q
13912 }
13913 /^X\(\/\/\)[^/].*/{
13914 s//\1/
13915 q
13916 }
13917 /^X\(\/\/\)$/{
13918 s//\1/
13919 q
13920 }
13921 /^X\(\/\).*/{
13922 s//\1/
13923 q
13924 }
13925 s/.*/./; q'`
13926 test -d "$as_dir" && break
13927 done
13928 test -z "$as_dirs" || eval "mkdir $as_dirs"
13929 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13930
13931
13932 } # as_fn_mkdir_p
13933 if mkdir -p . 2>/dev/null; then
13934 as_mkdir_p='mkdir -p "$as_dir"'
13935 else
13936 test -d ./-p && rmdir ./-p
13937 as_mkdir_p=false
13938 fi
13939
13940
13941 # as_fn_executable_p FILE
13942 # -----------------------
13943 # Test if FILE is an executable regular file.
13944 as_fn_executable_p ()
13945 {
13946 test -f "$1" && test -x "$1"
13947 } # as_fn_executable_p
13948 as_test_x='test -x'
13949 as_executable_p=as_fn_executable_p
13950
13951 # Sed expression to map a string onto a valid CPP name.
13952 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13953
13954 # Sed expression to map a string onto a valid variable name.
13955 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13956
13957
13958 exec 6>&1
13959 ## ----------------------------------- ##
13960 ## Main body of $CONFIG_STATUS script. ##
13961 ## ----------------------------------- ##
13962 _ASEOF
13963 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13964
13965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13966 # Save the log message, to keep $0 and so on meaningful, and to
13967 # report actual input values of CONFIG_FILES etc. instead of their
13968 # values after options handling.
13969 ac_log="
13970 This file was extended by libmarpa $as_me 11.0.2, which was
13971 generated by GNU Autoconf 2.69. Invocation command line was
13972
13973 CONFIG_FILES = $CONFIG_FILES
13974 CONFIG_HEADERS = $CONFIG_HEADERS
13975 CONFIG_LINKS = $CONFIG_LINKS
13976 CONFIG_COMMANDS = $CONFIG_COMMANDS
13977 $ $0 $@
13978
13979 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13980 "
13981
13982 _ACEOF
13983
13984 case $ac_config_files in *"
13985 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13986 esac
13987
13988 case $ac_config_headers in *"
13989 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13990 esac
13991
13992
13993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13994 # Files that config.status was made for.
13995 config_files="$ac_config_files"
13996 config_headers="$ac_config_headers"
13997 config_commands="$ac_config_commands"
13998
13999 _ACEOF
14000
14001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14002 ac_cs_usage="\
14003 \`$as_me' instantiates files and other configuration actions
14004 from templates according to the current configuration. Unless the files
14005 and actions are specified as TAGs, all are instantiated by default.
14006
14007 Usage: $0 [OPTION]... [TAG]...
14008
14009 -h, --help print this help, then exit
14010 -V, --version print version number and configuration settings, then exit
14011 --config print configuration, then exit
14012 -q, --quiet, --silent
14013 do not print progress messages
14014 -d, --debug don't remove temporary files
14015 --recheck update $as_me by reconfiguring in the same conditions
14016 --file=FILE[:TEMPLATE]
14017 instantiate the configuration file FILE
14018 --header=FILE[:TEMPLATE]
14019 instantiate the configuration header FILE
14020
14021 Configuration files:
14022 $config_files
14023
14024 Configuration headers:
14025 $config_headers
14026
14027 Configuration commands:
14028 $config_commands
14029
14030 Report bugs to <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Marpa>."
14031
14032 _ACEOF
14033 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14034 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14035 ac_cs_version="\\
14036 libmarpa config.status 11.0.2
14037 configured by $0, generated by GNU Autoconf 2.69,
14038 with options \\"\$ac_cs_config\\"
14039
14040 Copyright (C) 2012 Free Software Foundation, Inc.
14041 This config.status script is free software; the Free Software Foundation
14042 gives unlimited permission to copy, distribute and modify it."
14043
14044 ac_pwd='$ac_pwd'
14045 srcdir='$srcdir'
14046 INSTALL='$INSTALL'
14047 MKDIR_P='$MKDIR_P'
14048 AWK='$AWK'
14049 test -n "\$AWK" || AWK=awk
14050 _ACEOF
14051
14052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14053 # The default lists apply if the user does not specify any file.
14054 ac_need_defaults=:
14055 while test $# != 0
14056 do
14057 case $1 in
14058 --*=?*)
14059 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14060 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14061 ac_shift=:
14062 ;;
14063 --*=)
14064 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14065 ac_optarg=
14066 ac_shift=:
14067 ;;
14068 *)
14069 ac_option=$1
14070 ac_optarg=$2
14071 ac_shift=shift
14072 ;;
14073 esac
14074
14075 case $ac_option in
14076 # Handling of the options.
14077 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14078 ac_cs_recheck=: ;;
14079 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14080 $as_echo "$ac_cs_version"; exit ;;
14081 --config | --confi | --conf | --con | --co | --c )
14082 $as_echo "$ac_cs_config"; exit ;;
14083 --debug | --debu | --deb | --de | --d | -d )
14084 debug=: ;;
14085 --file | --fil | --fi | --f )
14086 $ac_shift
14087 case $ac_optarg in
14088 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14089 '') as_fn_error $? "missing file argument" ;;
14090 esac
14091 as_fn_append CONFIG_FILES " '$ac_optarg'"
14092 ac_need_defaults=false;;
14093 --header | --heade | --head | --hea )
14094 $ac_shift
14095 case $ac_optarg in
14096 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14097 esac
14098 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14099 ac_need_defaults=false;;
14100 --he | --h)
14101 # Conflict between --help and --header
14102 as_fn_error $? "ambiguous option: \`$1'
14103 Try \`$0 --help' for more information.";;
14104 --help | --hel | -h )
14105 $as_echo "$ac_cs_usage"; exit ;;
14106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14107 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14108 ac_cs_silent=: ;;
14109
14110 # This is an error.
14111 -*) as_fn_error $? "unrecognized option: \`$1'
14112 Try \`$0 --help' for more information." ;;
14113
14114 *) as_fn_append ac_config_targets " $1"
14115 ac_need_defaults=false ;;
14116
14117 esac
14118 shift
14119 done
14120
14121 ac_configure_extra_args=
14122
14123 if $ac_cs_silent; then
14124 exec 6>/dev/null
14125 ac_configure_extra_args="$ac_configure_extra_args --silent"
14126 fi
14127
14128 _ACEOF
14129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14130 if \$ac_cs_recheck; then
14131 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14132 shift
14133 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14134 CONFIG_SHELL='$SHELL'
14135 export CONFIG_SHELL
14136 exec "\$@"
14137 fi
14138
14139 _ACEOF
14140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14141 exec 5>>config.log
14142 {
14143 echo
14144 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14145 ## Running $as_me. ##
14146 _ASBOX
14147 $as_echo "$ac_log"
14148 } >&5
14149
14150 _ACEOF
14151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14152 #
14153 # INIT-COMMANDS
14154 #
14155 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14156
14157
14158 # The HP-UX ksh and POSIX shell print the target directory to stdout
14159 # if CDPATH is set.
14160 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14161
14162 sed_quote_subst='$sed_quote_subst'
14163 double_quote_subst='$double_quote_subst'
14164 delay_variable_subst='$delay_variable_subst'
14165 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14166 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14167 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14168 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14169 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14170 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14171 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14172 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14173 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14174 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14175 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14176 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14177 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14178 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14179 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14180 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14181 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14182 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14183 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14184 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14185 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14186 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14187 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14188 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14189 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14190 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14191 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14192 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14193 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14194 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14195 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14196 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14197 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14198 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14199 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14200 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14201 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14202 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14203 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14204 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14205 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14206 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14207 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14208 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14209 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14210 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14211 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14212 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14213 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14214 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14215 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14216 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14217 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14218 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14219 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14220 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14221 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14222 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14223 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"`'
14224 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14225 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14226 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14227 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14228 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14229 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14230 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14231 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14232 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14233 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14234 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14235 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14236 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14237 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14238 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14239 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14240 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14241 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14242 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14243 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14244 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14245 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14246 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14247 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14248 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14249 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14250 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14251 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14252 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14253 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14254 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14255 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14256 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14257 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14258 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14259 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14260 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14261 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14262 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14263 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14264 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14265 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14266 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14267 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14268 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14269 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14270 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14271 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14272 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14273 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14274 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14275 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14276 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14277 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14278 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14279 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14280 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14281 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14282 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14283 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14284 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14285 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14286 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14287 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14288 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14289 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14290 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14291 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14292 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14293 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14294 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14295 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14296 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14297 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14298 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14299 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14300
14301 LTCC='$LTCC'
14302 LTCFLAGS='$LTCFLAGS'
14303 compiler='$compiler_DEFAULT'
14304
14305 # A function that is used when there is no print builtin or printf.
14306 func_fallback_echo ()
14307 {
14308 eval 'cat <<_LTECHO_EOF
14309 \$1
14310 _LTECHO_EOF'
14311 }
14312
14313 # Quote evaled strings.
14314 for var in SHELL \
14315 ECHO \
14316 PATH_SEPARATOR \
14317 SED \
14318 GREP \
14319 EGREP \
14320 FGREP \
14321 LD \
14322 NM \
14323 LN_S \
14324 lt_SP2NL \
14325 lt_NL2SP \
14326 reload_flag \
14327 OBJDUMP \
14328 deplibs_check_method \
14329 file_magic_cmd \
14330 file_magic_glob \
14331 want_nocaseglob \
14332 DLLTOOL \
14333 sharedlib_from_linklib_cmd \
14334 AR \
14335 AR_FLAGS \
14336 archiver_list_spec \
14337 STRIP \
14338 RANLIB \
14339 CC \
14340 CFLAGS \
14341 compiler \
14342 lt_cv_sys_global_symbol_pipe \
14343 lt_cv_sys_global_symbol_to_cdecl \
14344 lt_cv_sys_global_symbol_to_import \
14345 lt_cv_sys_global_symbol_to_c_name_address \
14346 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14347 lt_cv_nm_interface \
14348 nm_file_list_spec \
14349 lt_cv_truncate_bin \
14350 lt_prog_compiler_no_builtin_flag \
14351 lt_prog_compiler_pic \
14352 lt_prog_compiler_wl \
14353 lt_prog_compiler_static \
14354 lt_cv_prog_compiler_c_o \
14355 need_locks \
14356 MANIFEST_TOOL \
14357 DSYMUTIL \
14358 NMEDIT \
14359 LIPO \
14360 OTOOL \
14361 OTOOL64 \
14362 shrext_cmds \
14363 export_dynamic_flag_spec \
14364 whole_archive_flag_spec \
14365 compiler_needs_object \
14366 with_gnu_ld \
14367 allow_undefined_flag \
14368 no_undefined_flag \
14369 hardcode_libdir_flag_spec \
14370 hardcode_libdir_separator \
14371 exclude_expsyms \
14372 include_expsyms \
14373 file_list_spec \
14374 variables_saved_for_relink \
14375 libname_spec \
14376 library_names_spec \
14377 soname_spec \
14378 install_override_mode \
14379 finish_eval \
14380 old_striplib \
14381 striplib; do
14382 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14383 *[\\\\\\\`\\"\\\$]*)
14384 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14385 ;;
14386 *)
14387 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14388 ;;
14389 esac
14390 done
14391
14392 # Double-quote double-evaled strings.
14393 for var in reload_cmds \
14394 old_postinstall_cmds \
14395 old_postuninstall_cmds \
14396 old_archive_cmds \
14397 extract_expsyms_cmds \
14398 old_archive_from_new_cmds \
14399 old_archive_from_expsyms_cmds \
14400 archive_cmds \
14401 archive_expsym_cmds \
14402 module_cmds \
14403 module_expsym_cmds \
14404 export_symbols_cmds \
14405 prelink_cmds \
14406 postlink_cmds \
14407 postinstall_cmds \
14408 postuninstall_cmds \
14409 finish_cmds \
14410 sys_lib_search_path_spec \
14411 configure_time_dlsearch_path \
14412 configure_time_lt_sys_library_path; do
14413 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14414 *[\\\\\\\`\\"\\\$]*)
14415 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14416 ;;
14417 *)
14418 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14419 ;;
14420 esac
14421 done
14422
14423 ac_aux_dir='$ac_aux_dir'
14424
14425 # See if we are running on zsh, and set the options that allow our
14426 # commands through without removal of \ escapes INIT.
14427 if test -n "\${ZSH_VERSION+set}"; then
14428 setopt NO_GLOB_SUBST
14429 fi
14430
14431
14432 PACKAGE='$PACKAGE'
14433 VERSION='$VERSION'
14434 RM='$RM'
14435 ofile='$ofile'
14436
14437
14438
14439
14440 _ACEOF
14441
14442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14443
14444 # Handling of arguments.
14445 for ac_config_target in $ac_config_targets
14446 do
14447 case $ac_config_target in
14448 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14449 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14450 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14451 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14452 "libmarpa.pc") CONFIG_FILES="$CONFIG_FILES libmarpa.pc" ;;
14453
14454 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14455 esac
14456 done
14457
14458
14459 # If the user did not use the arguments to specify the items to instantiate,
14460 # then the envvar interface is used. Set only those that are not.
14461 # We use the long form for the default assignment because of an extremely
14462 # bizarre bug on SunOS 4.1.3.
14463 if $ac_need_defaults; then
14464 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14465 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14466 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14467 fi
14468
14469 # Have a temporary directory for convenience. Make it in the build tree
14470 # simply because there is no reason against having it here, and in addition,
14471 # creating and moving files from /tmp can sometimes cause problems.
14472 # Hook for its removal unless debugging.
14473 # Note that there is a small window in which the directory will not be cleaned:
14474 # after its creation but before its name has been assigned to `$tmp'.
14475 $debug ||
14476 {
14477 tmp= ac_tmp=
14478 trap 'exit_status=$?
14479 : "${ac_tmp:=$tmp}"
14480 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14481 ' 0
14482 trap 'as_fn_exit 1' 1 2 13 15
14483 }
14484 # Create a (secure) tmp directory for tmp files.
14485
14486 {
14487 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14488 test -d "$tmp"
14489 } ||
14490 {
14491 tmp=./conf$$-$RANDOM
14492 (umask 077 && mkdir "$tmp")
14493 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14494 ac_tmp=$tmp
14495
14496 # Set up the scripts for CONFIG_FILES section.
14497 # No need to generate them if there are no CONFIG_FILES.
14498 # This happens for instance with `./config.status config.h'.
14499 if test -n "$CONFIG_FILES"; then
14500
14501
14502 ac_cr=`echo X | tr X '\015'`
14503 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14504 # But we know of no other shell where ac_cr would be empty at this
14505 # point, so we can use a bashism as a fallback.
14506 if test "x$ac_cr" = x; then
14507 eval ac_cr=\$\'\\r\'
14508 fi
14509 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14510 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14511 ac_cs_awk_cr='\\r'
14512 else
14513 ac_cs_awk_cr=$ac_cr
14514 fi
14515
14516 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14517 _ACEOF
14518
14519
14520 {
14521 echo "cat >conf$$subs.awk <<_ACEOF" &&
14522 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14523 echo "_ACEOF"
14524 } >conf$$subs.sh ||
14525 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14526 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14527 ac_delim='%!_!# '
14528 for ac_last_try in false false false false false :; do
14529 . ./conf$$subs.sh ||
14530 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14531
14532 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14533 if test $ac_delim_n = $ac_delim_num; then
14534 break
14535 elif $ac_last_try; then
14536 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14537 else
14538 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14539 fi
14540 done
14541 rm -f conf$$subs.sh
14542
14543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14544 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14545 _ACEOF
14546 sed -n '
14547 h
14548 s/^/S["/; s/!.*/"]=/
14549 p
14550 g
14551 s/^[^!]*!//
14552 :repl
14553 t repl
14554 s/'"$ac_delim"'$//
14555 t delim
14556 :nl
14557 h
14558 s/\(.\{148\}\)..*/\1/
14559 t more1
14560 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14561 p
14562 n
14563 b repl
14564 :more1
14565 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14566 p
14567 g
14568 s/.\{148\}//
14569 t nl
14570 :delim
14571 h
14572 s/\(.\{148\}\)..*/\1/
14573 t more2
14574 s/["\\]/\\&/g; s/^/"/; s/$/"/
14575 p
14576 b
14577 :more2
14578 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14579 p
14580 g
14581 s/.\{148\}//
14582 t delim
14583 ' <conf$$subs.awk | sed '
14584 /^[^""]/{
14585 N
14586 s/\n//
14587 }
14588 ' >>$CONFIG_STATUS || ac_write_fail=1
14589 rm -f conf$$subs.awk
14590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14591 _ACAWK
14592 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14593 for (key in S) S_is_set[key] = 1
14594 FS = ""
14595
14596 }
14597 {
14598 line = $ 0
14599 nfields = split(line, field, "@")
14600 substed = 0
14601 len = length(field[1])
14602 for (i = 2; i < nfields; i++) {
14603 key = field[i]
14604 keylen = length(key)
14605 if (S_is_set[key]) {
14606 value = S[key]
14607 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14608 len += length(value) + length(field[++i])
14609 substed = 1
14610 } else
14611 len += 1 + keylen
14612 }
14613
14614 print line
14615 }
14616
14617 _ACAWK
14618 _ACEOF
14619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14620 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14621 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14622 else
14623 cat
14624 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14625 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14626 _ACEOF
14627
14628 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14629 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14630 # trailing colons and then remove the whole line if VPATH becomes empty
14631 # (actually we leave an empty line to preserve line numbers).
14632 if test "x$srcdir" = x.; then
14633 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14634 h
14635 s///
14636 s/^/:/
14637 s/[ ]*$/:/
14638 s/:\$(srcdir):/:/g
14639 s/:\${srcdir}:/:/g
14640 s/:@srcdir@:/:/g
14641 s/^:*//
14642 s/:*$//
14643 x
14644 s/\(=[ ]*\).*/\1/
14645 G
14646 s/\n//
14647 s/^[^=]*=[ ]*$//
14648 }'
14649 fi
14650
14651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14652 fi # test -n "$CONFIG_FILES"
14653
14654 # Set up the scripts for CONFIG_HEADERS section.
14655 # No need to generate them if there are no CONFIG_HEADERS.
14656 # This happens for instance with `./config.status Makefile'.
14657 if test -n "$CONFIG_HEADERS"; then
14658 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14659 BEGIN {
14660 _ACEOF
14661
14662 # Transform confdefs.h into an awk script `defines.awk', embedded as
14663 # here-document in config.status, that substitutes the proper values into
14664 # config.h.in to produce config.h.
14665
14666 # Create a delimiter string that does not exist in confdefs.h, to ease
14667 # handling of long lines.
14668 ac_delim='%!_!# '
14669 for ac_last_try in false false :; do
14670 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14671 if test -z "$ac_tt"; then
14672 break
14673 elif $ac_last_try; then
14674 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14675 else
14676 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14677 fi
14678 done
14679
14680 # For the awk script, D is an array of macro values keyed by name,
14681 # likewise P contains macro parameters if any. Preserve backslash
14682 # newline sequences.
14683
14684 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14685 sed -n '
14686 s/.\{148\}/&'"$ac_delim"'/g
14687 t rset
14688 :rset
14689 s/^[ ]*#[ ]*define[ ][ ]*/ /
14690 t def
14691 d
14692 :def
14693 s/\\$//
14694 t bsnl
14695 s/["\\]/\\&/g
14696 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14697 D["\1"]=" \3"/p
14698 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14699 d
14700 :bsnl
14701 s/["\\]/\\&/g
14702 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14703 D["\1"]=" \3\\\\\\n"\\/p
14704 t cont
14705 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14706 t cont
14707 d
14708 :cont
14709 n
14710 s/.\{148\}/&'"$ac_delim"'/g
14711 t clear
14712 :clear
14713 s/\\$//
14714 t bsnlc
14715 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14716 d
14717 :bsnlc
14718 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14719 b cont
14720 ' <confdefs.h | sed '
14721 s/'"$ac_delim"'/"\\\
14722 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14723
14724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14725 for (key in D) D_is_set[key] = 1
14726 FS = ""
14727 }
14728 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14729 line = \$ 0
14730 split(line, arg, " ")
14731 if (arg[1] == "#") {
14732 defundef = arg[2]
14733 mac1 = arg[3]
14734 } else {
14735 defundef = substr(arg[1], 2)
14736 mac1 = arg[2]
14737 }
14738 split(mac1, mac2, "(") #)
14739 macro = mac2[1]
14740 prefix = substr(line, 1, index(line, defundef) - 1)
14741 if (D_is_set[macro]) {
14742 # Preserve the white space surrounding the "#".
14743 print prefix "define", macro P[macro] D[macro]
14744 next
14745 } else {
14746 # Replace #undef with comments. This is necessary, for example,
14747 # in the case of _POSIX_SOURCE, which is predefined and required
14748 # on some systems where configure will not decide to define it.
14749 if (defundef == "undef") {
14750 print "/*", prefix defundef, macro, "*/"
14751 next
14752 }
14753 }
14754 }
14755 { print }
14756 _ACAWK
14757 _ACEOF
14758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14759 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14760 fi # test -n "$CONFIG_HEADERS"
14761
14762
14763 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14764 shift
14765 for ac_tag
14766 do
14767 case $ac_tag in
14768 :[FHLC]) ac_mode=$ac_tag; continue;;
14769 esac
14770 case $ac_mode$ac_tag in
14771 :[FHL]*:*);;
14772 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14773 :[FH]-) ac_tag=-:-;;
14774 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14775 esac
14776 ac_save_IFS=$IFS
14777 IFS=:
14778 set x $ac_tag
14779 IFS=$ac_save_IFS
14780 shift
14781 ac_file=$1
14782 shift
14783
14784 case $ac_mode in
14785 :L) ac_source=$1;;
14786 :[FH])
14787 ac_file_inputs=
14788 for ac_f
14789 do
14790 case $ac_f in
14791 -) ac_f="$ac_tmp/stdin";;
14792 *) # Look for the file first in the build tree, then in the source tree
14793 # (if the path is not absolute). The absolute path cannot be DOS-style,
14794 # because $ac_f cannot contain `:'.
14795 test -f "$ac_f" ||
14796 case $ac_f in
14797 [\\/$]*) false;;
14798 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14799 esac ||
14800 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14801 esac
14802 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14803 as_fn_append ac_file_inputs " '$ac_f'"
14804 done
14805
14806 # Let's still pretend it is `configure' which instantiates (i.e., don't
14807 # use $as_me), people would be surprised to read:
14808 # /* config.h. Generated by config.status. */
14809 configure_input='Generated from '`
14810 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14811 `' by configure.'
14812 if test x"$ac_file" != x-; then
14813 configure_input="$ac_file. $configure_input"
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14815 $as_echo "$as_me: creating $ac_file" >&6;}
14816 fi
14817 # Neutralize special characters interpreted by sed in replacement strings.
14818 case $configure_input in #(
14819 *\&* | *\|* | *\\* )
14820 ac_sed_conf_input=`$as_echo "$configure_input" |
14821 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14822 *) ac_sed_conf_input=$configure_input;;
14823 esac
14824
14825 case $ac_tag in
14826 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14827 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14828 esac
14829 ;;
14830 esac
14831
14832 ac_dir=`$as_dirname -- "$ac_file" ||
14833 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14834 X"$ac_file" : 'X\(//\)[^/]' \| \
14835 X"$ac_file" : 'X\(//\)$' \| \
14836 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14837 $as_echo X"$ac_file" |
14838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14839 s//\1/
14840 q
14841 }
14842 /^X\(\/\/\)[^/].*/{
14843 s//\1/
14844 q
14845 }
14846 /^X\(\/\/\)$/{
14847 s//\1/
14848 q
14849 }
14850 /^X\(\/\).*/{
14851 s//\1/
14852 q
14853 }
14854 s/.*/./; q'`
14855 as_dir="$ac_dir"; as_fn_mkdir_p
14856 ac_builddir=.
14857
14858 case "$ac_dir" in
14859 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14860 *)
14861 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14862 # A ".." for each directory in $ac_dir_suffix.
14863 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14864 case $ac_top_builddir_sub in
14865 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14866 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14867 esac ;;
14868 esac
14869 ac_abs_top_builddir=$ac_pwd
14870 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14871 # for backward compatibility:
14872 ac_top_builddir=$ac_top_build_prefix
14873
14874 case $srcdir in
14875 .) # We are building in place.
14876 ac_srcdir=.
14877 ac_top_srcdir=$ac_top_builddir_sub
14878 ac_abs_top_srcdir=$ac_pwd ;;
14879 [\\/]* | ?:[\\/]* ) # Absolute name.
14880 ac_srcdir=$srcdir$ac_dir_suffix;
14881 ac_top_srcdir=$srcdir
14882 ac_abs_top_srcdir=$srcdir ;;
14883 *) # Relative name.
14884 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14885 ac_top_srcdir=$ac_top_build_prefix$srcdir
14886 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14887 esac
14888 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14889
14890
14891 case $ac_mode in
14892 :F)
14893 #
14894 # CONFIG_FILE
14895 #
14896
14897 case $INSTALL in
14898 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14899 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14900 esac
14901 ac_MKDIR_P=$MKDIR_P
14902 case $MKDIR_P in
14903 [\\/$]* | ?:[\\/]* ) ;;
14904 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14905 esac
14906 _ACEOF
14907
14908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14909 # If the template does not know about datarootdir, expand it.
14910 # FIXME: This hack should be removed a few years after 2.60.
14911 ac_datarootdir_hack=; ac_datarootdir_seen=
14912 ac_sed_dataroot='
14913 /datarootdir/ {
14914 p
14915 q
14916 }
14917 /@datadir@/p
14918 /@docdir@/p
14919 /@infodir@/p
14920 /@localedir@/p
14921 /@mandir@/p'
14922 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14923 *datarootdir*) ac_datarootdir_seen=yes;;
14924 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14926 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14927 _ACEOF
14928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14929 ac_datarootdir_hack='
14930 s&@datadir@&$datadir&g
14931 s&@docdir@&$docdir&g
14932 s&@infodir@&$infodir&g
14933 s&@localedir@&$localedir&g
14934 s&@mandir@&$mandir&g
14935 s&\\\${datarootdir}&$datarootdir&g' ;;
14936 esac
14937 _ACEOF
14938
14939 # Neutralize VPATH when `$srcdir' = `.'.
14940 # Shell code in configure.ac might set extrasub.
14941 # FIXME: do we really want to maintain this feature?
14942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14943 ac_sed_extra="$ac_vpsub
14944 $extrasub
14945 _ACEOF
14946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14947 :t
14948 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14949 s|@configure_input@|$ac_sed_conf_input|;t t
14950 s&@top_builddir@&$ac_top_builddir_sub&;t t
14951 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14952 s&@srcdir@&$ac_srcdir&;t t
14953 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14954 s&@top_srcdir@&$ac_top_srcdir&;t t
14955 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14956 s&@builddir@&$ac_builddir&;t t
14957 s&@abs_builddir@&$ac_abs_builddir&;t t
14958 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14959 s&@INSTALL@&$ac_INSTALL&;t t
14960 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14961 $ac_datarootdir_hack
14962 "
14963 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14964 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14965
14966 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14967 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14968 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14969 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14971 which seems to be undefined. Please make sure it is defined" >&5
14972 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14973 which seems to be undefined. Please make sure it is defined" >&2;}
14974
14975 rm -f "$ac_tmp/stdin"
14976 case $ac_file in
14977 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14978 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14979 esac \
14980 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14981 ;;
14982 :H)
14983 #
14984 # CONFIG_HEADER
14985 #
14986 if test x"$ac_file" != x-; then
14987 {
14988 $as_echo "/* $configure_input */" \
14989 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14990 } >"$ac_tmp/config.h" \
14991 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14992 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14994 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14995 else
14996 rm -f "$ac_file"
14997 mv "$ac_tmp/config.h" "$ac_file" \
14998 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14999 fi
15000 else
15001 $as_echo "/* $configure_input */" \
15002 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15003 || as_fn_error $? "could not create -" "$LINENO" 5
15004 fi
15005 # Compute "$ac_file"'s index in $config_headers.
15006 _am_arg="$ac_file"
15007 _am_stamp_count=1
15008 for _am_header in $config_headers :; do
15009 case $_am_header in
15010 $_am_arg | $_am_arg:* )
15011 break ;;
15012 * )
15013 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15014 esac
15015 done
15016 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15017 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15018 X"$_am_arg" : 'X\(//\)[^/]' \| \
15019 X"$_am_arg" : 'X\(//\)$' \| \
15020 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15021 $as_echo X"$_am_arg" |
15022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15023 s//\1/
15024 q
15025 }
15026 /^X\(\/\/\)[^/].*/{
15027 s//\1/
15028 q
15029 }
15030 /^X\(\/\/\)$/{
15031 s//\1/
15032 q
15033 }
15034 /^X\(\/\).*/{
15035 s//\1/
15036 q
15037 }
15038 s/.*/./; q'`/stamp-h$_am_stamp_count
15039 ;;
15040
15041 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15042 $as_echo "$as_me: executing $ac_file commands" >&6;}
15043 ;;
15044 esac
15045
15046
15047 case $ac_file$ac_mode in
15048 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15049 # Older Autoconf quotes --file arguments for eval, but not when files
15050 # are listed without --file. Let's play safe and only enable the eval
15051 # if we detect the quoting.
15052 # TODO: see whether this extra hack can be removed once we start
15053 # requiring Autoconf 2.70 or later.
15054 case $CONFIG_FILES in #(
15055 *\'*) :
15056 eval set x "$CONFIG_FILES" ;; #(
15057 *) :
15058 set x $CONFIG_FILES ;; #(
15059 *) :
15060 ;;
15061 esac
15062 shift
15063 # Used to flag and report bootstrapping failures.
15064 am_rc=0
15065 for am_mf
15066 do
15067 # Strip MF so we end up with the name of the file.
15068 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
15069 # Check whether this is an Automake generated Makefile which includes
15070 # dependency-tracking related rules and includes.
15071 # Grep'ing the whole file directly is not great: AIX grep has a line
15072 # limit of 2048, but all sed's we know have understand at least 4000.
15073 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15074 || continue
15075 am_dirpart=`$as_dirname -- "$am_mf" ||
15076 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15077 X"$am_mf" : 'X\(//\)[^/]' \| \
15078 X"$am_mf" : 'X\(//\)$' \| \
15079 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15080 $as_echo X"$am_mf" |
15081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15082 s//\1/
15083 q
15084 }
15085 /^X\(\/\/\)[^/].*/{
15086 s//\1/
15087 q
15088 }
15089 /^X\(\/\/\)$/{
15090 s//\1/
15091 q
15092 }
15093 /^X\(\/\).*/{
15094 s//\1/
15095 q
15096 }
15097 s/.*/./; q'`
15098 am_filepart=`$as_basename -- "$am_mf" ||
15099 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15100 X"$am_mf" : 'X\(//\)$' \| \
15101 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15102 $as_echo X/"$am_mf" |
15103 sed '/^.*\/\([^/][^/]*\)\/*$/{
15104 s//\1/
15105 q
15106 }
15107 /^X\/\(\/\/\)$/{
15108 s//\1/
15109 q
15110 }
15111 /^X\/\(\/\).*/{
15112 s//\1/
15113 q
15114 }
15115 s/.*/./; q'`
15116 { echo "$as_me:$LINENO: cd "$am_dirpart" \
15117 && sed -e '/# am--include-marker/d' "$am_filepart" \
15118 | $MAKE -f - am--depfiles" >&5
15119 (cd "$am_dirpart" \
15120 && sed -e '/# am--include-marker/d' "$am_filepart" \
15121 | $MAKE -f - am--depfiles) >&5 2>&5
15122 ac_status=$?
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); } || am_rc=$?
15125 done
15126 if test $am_rc -ne 0; then
15127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15129 as_fn_error $? "Something went wrong bootstrapping makefile fragments
15130 for automatic dependency tracking. Try re-running configure with the
15131 '--disable-dependency-tracking' option to at least be able to build
15132 the package (albeit without support for automatic dependency tracking).
15133 See \`config.log' for more details" "$LINENO" 5; }
15134 fi
15135 { am_dirpart=; unset am_dirpart;}
15136 { am_filepart=; unset am_filepart;}
15137 { am_mf=; unset am_mf;}
15138 { am_rc=; unset am_rc;}
15139 rm -f conftest-deps.mk
15140 }
15141 ;;
15142 "libtool":C)
15143
15144 # See if we are running on zsh, and set the options that allow our
15145 # commands through without removal of \ escapes.
15146 if test -n "${ZSH_VERSION+set}"; then
15147 setopt NO_GLOB_SUBST
15148 fi
15149
15150 cfgfile=${ofile}T
15151 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15152 $RM "$cfgfile"
15153
15154 cat <<_LT_EOF >> "$cfgfile"
15155 #! $SHELL
15156 # Generated automatically by $as_me ($PACKAGE) $VERSION
15157 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15158
15159 # Provide generalized library-building support services.
15160 # Written by Gordon Matzigkeit, 1996
15161
15162 # Copyright (C) 2014 Free Software Foundation, Inc.
15163 # This is free software; see the source for copying conditions. There is NO
15164 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15165
15166 # GNU Libtool is free software; you can redistribute it and/or modify
15167 # it under the terms of the GNU General Public License as published by
15168 # the Free Software Foundation; either version 2 of of the License, or
15169 # (at your option) any later version.
15170 #
15171 # As a special exception to the GNU General Public License, if you
15172 # distribute this file as part of a program or library that is built
15173 # using GNU Libtool, you may include this file under the same
15174 # distribution terms that you use for the rest of that program.
15175 #
15176 # GNU Libtool is distributed in the hope that it will be useful, but
15177 # WITHOUT ANY WARRANTY; without even the implied warranty of
15178 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15179 # GNU General Public License for more details.
15180 #
15181 # You should have received a copy of the GNU General Public License
15182 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15183
15184
15185 # The names of the tagged configurations supported by this script.
15186 available_tags=''
15187
15188 # Configured defaults for sys_lib_dlsearch_path munging.
15189 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15190
15191 # ### BEGIN LIBTOOL CONFIG
15192
15193 # Which release of libtool.m4 was used?
15194 macro_version=$macro_version
15195 macro_revision=$macro_revision
15196
15197 # Whether or not to build shared libraries.
15198 build_libtool_libs=$enable_shared
15199
15200 # Whether or not to build static libraries.
15201 build_old_libs=$enable_static
15202
15203 # What type of objects to build.
15204 pic_mode=$pic_mode
15205
15206 # Whether or not to optimize for fast installation.
15207 fast_install=$enable_fast_install
15208
15209 # Shared archive member basename,for filename based shared library versioning on AIX.
15210 shared_archive_member_spec=$shared_archive_member_spec
15211
15212 # Shell to use when invoking shell scripts.
15213 SHELL=$lt_SHELL
15214
15215 # An echo program that protects backslashes.
15216 ECHO=$lt_ECHO
15217
15218 # The PATH separator for the build system.
15219 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15220
15221 # The host system.
15222 host_alias=$host_alias
15223 host=$host
15224 host_os=$host_os
15225
15226 # The build system.
15227 build_alias=$build_alias
15228 build=$build
15229 build_os=$build_os
15230
15231 # A sed program that does not truncate output.
15232 SED=$lt_SED
15233
15234 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15235 Xsed="\$SED -e 1s/^X//"
15236
15237 # A grep program that handles long lines.
15238 GREP=$lt_GREP
15239
15240 # An ERE matcher.
15241 EGREP=$lt_EGREP
15242
15243 # A literal string matcher.
15244 FGREP=$lt_FGREP
15245
15246 # A BSD- or MS-compatible name lister.
15247 NM=$lt_NM
15248
15249 # Whether we need soft or hard links.
15250 LN_S=$lt_LN_S
15251
15252 # What is the maximum length of a command?
15253 max_cmd_len=$max_cmd_len
15254
15255 # Object file suffix (normally "o").
15256 objext=$ac_objext
15257
15258 # Executable file suffix (normally "").
15259 exeext=$exeext
15260
15261 # whether the shell understands "unset".
15262 lt_unset=$lt_unset
15263
15264 # turn spaces into newlines.
15265 SP2NL=$lt_lt_SP2NL
15266
15267 # turn newlines into spaces.
15268 NL2SP=$lt_lt_NL2SP
15269
15270 # convert \$build file names to \$host format.
15271 to_host_file_cmd=$lt_cv_to_host_file_cmd
15272
15273 # convert \$build files to toolchain format.
15274 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15275
15276 # An object symbol dumper.
15277 OBJDUMP=$lt_OBJDUMP
15278
15279 # Method to check whether dependent libraries are shared objects.
15280 deplibs_check_method=$lt_deplibs_check_method
15281
15282 # Command to use when deplibs_check_method = "file_magic".
15283 file_magic_cmd=$lt_file_magic_cmd
15284
15285 # How to find potential files when deplibs_check_method = "file_magic".
15286 file_magic_glob=$lt_file_magic_glob
15287
15288 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15289 want_nocaseglob=$lt_want_nocaseglob
15290
15291 # DLL creation program.
15292 DLLTOOL=$lt_DLLTOOL
15293
15294 # Command to associate shared and link libraries.
15295 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15296
15297 # The archiver.
15298 AR=$lt_AR
15299
15300 # Flags to create an archive.
15301 AR_FLAGS=$lt_AR_FLAGS
15302
15303 # How to feed a file listing to the archiver.
15304 archiver_list_spec=$lt_archiver_list_spec
15305
15306 # A symbol stripping program.
15307 STRIP=$lt_STRIP
15308
15309 # Commands used to install an old-style archive.
15310 RANLIB=$lt_RANLIB
15311 old_postinstall_cmds=$lt_old_postinstall_cmds
15312 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15313
15314 # Whether to use a lock for old archive extraction.
15315 lock_old_archive_extraction=$lock_old_archive_extraction
15316
15317 # A C compiler.
15318 LTCC=$lt_CC
15319
15320 # LTCC compiler flags.
15321 LTCFLAGS=$lt_CFLAGS
15322
15323 # Take the output of nm and produce a listing of raw symbols and C names.
15324 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15325
15326 # Transform the output of nm in a proper C declaration.
15327 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15328
15329 # Transform the output of nm into a list of symbols to manually relocate.
15330 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15331
15332 # Transform the output of nm in a C name address pair.
15333 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15334
15335 # Transform the output of nm in a C name address pair when lib prefix is needed.
15336 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15337
15338 # The name lister interface.
15339 nm_interface=$lt_lt_cv_nm_interface
15340
15341 # Specify filename containing input files for \$NM.
15342 nm_file_list_spec=$lt_nm_file_list_spec
15343
15344 # The root where to search for dependent libraries,and where our libraries should be installed.
15345 lt_sysroot=$lt_sysroot
15346
15347 # Command to truncate a binary pipe.
15348 lt_truncate_bin=$lt_lt_cv_truncate_bin
15349
15350 # The name of the directory that contains temporary libtool files.
15351 objdir=$objdir
15352
15353 # Used to examine libraries when file_magic_cmd begins with "file".
15354 MAGIC_CMD=$MAGIC_CMD
15355
15356 # Must we lock files when doing compilation?
15357 need_locks=$lt_need_locks
15358
15359 # Manifest tool.
15360 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15361
15362 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15363 DSYMUTIL=$lt_DSYMUTIL
15364
15365 # Tool to change global to local symbols on Mac OS X.
15366 NMEDIT=$lt_NMEDIT
15367
15368 # Tool to manipulate fat objects and archives on Mac OS X.
15369 LIPO=$lt_LIPO
15370
15371 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15372 OTOOL=$lt_OTOOL
15373
15374 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15375 OTOOL64=$lt_OTOOL64
15376
15377 # Old archive suffix (normally "a").
15378 libext=$libext
15379
15380 # Shared library suffix (normally ".so").
15381 shrext_cmds=$lt_shrext_cmds
15382
15383 # The commands to extract the exported symbol list from a shared archive.
15384 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15385
15386 # Variables whose values should be saved in libtool wrapper scripts and
15387 # restored at link time.
15388 variables_saved_for_relink=$lt_variables_saved_for_relink
15389
15390 # Do we need the "lib" prefix for modules?
15391 need_lib_prefix=$need_lib_prefix
15392
15393 # Do we need a version for libraries?
15394 need_version=$need_version
15395
15396 # Library versioning type.
15397 version_type=$version_type
15398
15399 # Shared library runtime path variable.
15400 runpath_var=$runpath_var
15401
15402 # Shared library path variable.
15403 shlibpath_var=$shlibpath_var
15404
15405 # Is shlibpath searched before the hard-coded library search path?
15406 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15407
15408 # Format of library name prefix.
15409 libname_spec=$lt_libname_spec
15410
15411 # List of archive names. First name is the real one, the rest are links.
15412 # The last name is the one that the linker finds with -lNAME
15413 library_names_spec=$lt_library_names_spec
15414
15415 # The coded name of the library, if different from the real name.
15416 soname_spec=$lt_soname_spec
15417
15418 # Permission mode override for installation of shared libraries.
15419 install_override_mode=$lt_install_override_mode
15420
15421 # Command to use after installation of a shared archive.
15422 postinstall_cmds=$lt_postinstall_cmds
15423
15424 # Command to use after uninstallation of a shared archive.
15425 postuninstall_cmds=$lt_postuninstall_cmds
15426
15427 # Commands used to finish a libtool library installation in a directory.
15428 finish_cmds=$lt_finish_cmds
15429
15430 # As "finish_cmds", except a single script fragment to be evaled but
15431 # not shown.
15432 finish_eval=$lt_finish_eval
15433
15434 # Whether we should hardcode library paths into libraries.
15435 hardcode_into_libs=$hardcode_into_libs
15436
15437 # Compile-time system search path for libraries.
15438 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15439
15440 # Detected run-time system search path for libraries.
15441 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15442
15443 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15444 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15445
15446 # Whether dlopen is supported.
15447 dlopen_support=$enable_dlopen
15448
15449 # Whether dlopen of programs is supported.
15450 dlopen_self=$enable_dlopen_self
15451
15452 # Whether dlopen of statically linked programs is supported.
15453 dlopen_self_static=$enable_dlopen_self_static
15454
15455 # Commands to strip libraries.
15456 old_striplib=$lt_old_striplib
15457 striplib=$lt_striplib
15458
15459
15460 # The linker used to build libraries.
15461 LD=$lt_LD
15462
15463 # How to create reloadable object files.
15464 reload_flag=$lt_reload_flag
15465 reload_cmds=$lt_reload_cmds
15466
15467 # Commands used to build an old-style archive.
15468 old_archive_cmds=$lt_old_archive_cmds
15469
15470 # A language specific compiler.
15471 CC=$lt_compiler
15472
15473 # Is the compiler the GNU compiler?
15474 with_gcc=$GCC
15475
15476 # Compiler flag to turn off builtin functions.
15477 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15478
15479 # Additional compiler flags for building library objects.
15480 pic_flag=$lt_lt_prog_compiler_pic
15481
15482 # How to pass a linker flag through the compiler.
15483 wl=$lt_lt_prog_compiler_wl
15484
15485 # Compiler flag to prevent dynamic linking.
15486 link_static_flag=$lt_lt_prog_compiler_static
15487
15488 # Does compiler simultaneously support -c and -o options?
15489 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15490
15491 # Whether or not to add -lc for building shared libraries.
15492 build_libtool_need_lc=$archive_cmds_need_lc
15493
15494 # Whether or not to disallow shared libs when runtime libs are static.
15495 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15496
15497 # Compiler flag to allow reflexive dlopens.
15498 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15499
15500 # Compiler flag to generate shared objects directly from archives.
15501 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15502
15503 # Whether the compiler copes with passing no objects directly.
15504 compiler_needs_object=$lt_compiler_needs_object
15505
15506 # Create an old-style archive from a shared archive.
15507 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15508
15509 # Create a temporary old-style archive to link instead of a shared archive.
15510 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15511
15512 # Commands used to build a shared archive.
15513 archive_cmds=$lt_archive_cmds
15514 archive_expsym_cmds=$lt_archive_expsym_cmds
15515
15516 # Commands used to build a loadable module if different from building
15517 # a shared archive.
15518 module_cmds=$lt_module_cmds
15519 module_expsym_cmds=$lt_module_expsym_cmds
15520
15521 # Whether we are building with GNU ld or not.
15522 with_gnu_ld=$lt_with_gnu_ld
15523
15524 # Flag that allows shared libraries with undefined symbols to be built.
15525 allow_undefined_flag=$lt_allow_undefined_flag
15526
15527 # Flag that enforces no undefined symbols.
15528 no_undefined_flag=$lt_no_undefined_flag
15529
15530 # Flag to hardcode \$libdir into a binary during linking.
15531 # This must work even if \$libdir does not exist
15532 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15533
15534 # Whether we need a single "-rpath" flag with a separated argument.
15535 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15536
15537 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15538 # DIR into the resulting binary.
15539 hardcode_direct=$hardcode_direct
15540
15541 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15542 # DIR into the resulting binary and the resulting library dependency is
15543 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15544 # library is relocated.
15545 hardcode_direct_absolute=$hardcode_direct_absolute
15546
15547 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15548 # into the resulting binary.
15549 hardcode_minus_L=$hardcode_minus_L
15550
15551 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15552 # into the resulting binary.
15553 hardcode_shlibpath_var=$hardcode_shlibpath_var
15554
15555 # Set to "yes" if building a shared library automatically hardcodes DIR
15556 # into the library and all subsequent libraries and executables linked
15557 # against it.
15558 hardcode_automatic=$hardcode_automatic
15559
15560 # Set to yes if linker adds runtime paths of dependent libraries
15561 # to runtime path list.
15562 inherit_rpath=$inherit_rpath
15563
15564 # Whether libtool must link a program against all its dependency libraries.
15565 link_all_deplibs=$link_all_deplibs
15566
15567 # Set to "yes" if exported symbols are required.
15568 always_export_symbols=$always_export_symbols
15569
15570 # The commands to list exported symbols.
15571 export_symbols_cmds=$lt_export_symbols_cmds
15572
15573 # Symbols that should not be listed in the preloaded symbols.
15574 exclude_expsyms=$lt_exclude_expsyms
15575
15576 # Symbols that must always be exported.
15577 include_expsyms=$lt_include_expsyms
15578
15579 # Commands necessary for linking programs (against libraries) with templates.
15580 prelink_cmds=$lt_prelink_cmds
15581
15582 # Commands necessary for finishing linking programs.
15583 postlink_cmds=$lt_postlink_cmds
15584
15585 # Specify filename containing input files.
15586 file_list_spec=$lt_file_list_spec
15587
15588 # How to hardcode a shared library path into an executable.
15589 hardcode_action=$hardcode_action
15590
15591 # ### END LIBTOOL CONFIG
15592
15593 _LT_EOF
15594
15595 cat <<'_LT_EOF' >> "$cfgfile"
15596
15597 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15598
15599 # func_munge_path_list VARIABLE PATH
15600 # -----------------------------------
15601 # VARIABLE is name of variable containing _space_ separated list of
15602 # directories to be munged by the contents of PATH, which is string
15603 # having a format:
15604 # "DIR[:DIR]:"
15605 # string "DIR[ DIR]" will be prepended to VARIABLE
15606 # ":DIR[:DIR]"
15607 # string "DIR[ DIR]" will be appended to VARIABLE
15608 # "DIRP[:DIRP]::[DIRA:]DIRA"
15609 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15610 # "DIRA[ DIRA]" will be appended to VARIABLE
15611 # "DIR[:DIR]"
15612 # VARIABLE will be replaced by "DIR[ DIR]"
15613 func_munge_path_list ()
15614 {
15615 case x$2 in
15616 x)
15617 ;;
15618 *:)
15619 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15620 ;;
15621 x:*)
15622 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15623 ;;
15624 *::*)
15625 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15626 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15627 ;;
15628 *)
15629 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15630 ;;
15631 esac
15632 }
15633
15634
15635 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15636 func_cc_basename ()
15637 {
15638 for cc_temp in $*""; do
15639 case $cc_temp in
15640 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15641 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15642 \-*) ;;
15643 *) break;;
15644 esac
15645 done
15646 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15647 }
15648
15649
15650 # ### END FUNCTIONS SHARED WITH CONFIGURE
15651
15652 _LT_EOF
15653
15654 case $host_os in
15655 aix3*)
15656 cat <<\_LT_EOF >> "$cfgfile"
15657 # AIX sometimes has problems with the GCC collect2 program. For some
15658 # reason, if we set the COLLECT_NAMES environment variable, the problems
15659 # vanish in a puff of smoke.
15660 if test set != "${COLLECT_NAMES+set}"; then
15661 COLLECT_NAMES=
15662 export COLLECT_NAMES
15663 fi
15664 _LT_EOF
15665 ;;
15666 esac
15667
15668
15669 ltmain=$ac_aux_dir/ltmain.sh
15670
15671
15672 # We use sed instead of cat because bash on DJGPP gets confused if
15673 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15674 # text mode, it properly converts lines to CR/LF. This bash problem
15675 # is reportedly fixed, but why not run on old versions too?
15676 sed '$q' "$ltmain" >> "$cfgfile" \
15677 || (rm -f "$cfgfile"; exit 1)
15678
15679 mv -f "$cfgfile" "$ofile" ||
15680 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15681 chmod +x "$ofile"
15682
15683 ;;
15684
15685 esac
15686 done # for ac_tag
15687
15688
15689 as_fn_exit 0
15690 _ACEOF
15691 ac_clean_files=$ac_clean_files_save
15692
15693 test $ac_write_fail = 0 ||
15694 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15695
15696
15697 # configure is writing to config.log, and then calls config.status.
15698 # config.status does its own redirection, appending to config.log.
15699 # Unfortunately, on DOS this fails, as config.log is still kept open
15700 # by configure, so config.status won't be able to write to it; its
15701 # output is simply discarded. So we exec the FD to /dev/null,
15702 # effectively closing config.log, so it can be properly (re)opened and
15703 # appended to by config.status. When coming back to configure, we
15704 # need to make the FD available again.
15705 if test "$no_create" != yes; then
15706 ac_cs_success=:
15707 ac_config_status_args=
15708 test "$silent" = yes &&
15709 ac_config_status_args="$ac_config_status_args --quiet"
15710 exec 5>/dev/null
15711 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15712 exec 5>>config.log
15713 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15714 # would make configure fail if this is the last instruction.
15715 $ac_cs_success || as_fn_exit 1
15716 fi
15717 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15719 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15720 fi
15721
15722
15723 # vim: expandtab shiftwidth=4: