Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for mona 1.4.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell [email protected] and [email protected]
278 $0: about your system, including any error possibly output
279 $0: before this message. Then install a modern shell, or
280 $0: manually run the script under such a shell if you do
281 $0: have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='mona'
592 PACKAGE_TARNAME='mona'
593 PACKAGE_VERSION='1.4'
594 PACKAGE_STRING='mona 1.4'
595 PACKAGE_BUGREPORT='[email protected]'
596 PACKAGE_URL='http://www.brics.dk/mona/'
597
598 ac_unique_file="Front/mona.cpp"
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_header_list=
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 CFG
641 CXXCPP
642 LT_SYS_LIBRARY_PATH
643 OTOOL64
644 OTOOL
645 LIPO
646 NMEDIT
647 DSYMUTIL
648 MANIFEST_TOOL
649 RANLIB
650 DLLTOOL
651 OBJDUMP
652 LN_S
653 NM
654 ac_ct_DUMPBIN
655 DUMPBIN
656 LD
657 FGREP
658 SED
659 host_os
660 host_vendor
661 host_cpu
662 host
663 build_os
664 build_vendor
665 build_cpu
666 build
667 LIBTOOL
668 LEXLIB
669 LEX_OUTPUT_ROOT
670 LEX
671 YFLAGS
672 YACC
673 ac_ct_AR
674 AR
675 am__fastdepCXX_FALSE
676 am__fastdepCXX_TRUE
677 CXXDEPMODE
678 ac_ct_CXX
679 CXXFLAGS
680 CXX
681 EGREP
682 GREP
683 CPP
684 am__fastdepCC_FALSE
685 am__fastdepCC_TRUE
686 CCDEPMODE
687 am__nodep
688 AMDEPBACKSLASH
689 AMDEP_FALSE
690 AMDEP_TRUE
691 am__include
692 DEPDIR
693 OBJEXT
694 EXEEXT
695 ac_ct_CC
696 CPPFLAGS
697 LDFLAGS
698 CFLAGS
699 CC
700 RELEASE
701 AM_BACKSLASH
702 AM_DEFAULT_VERBOSITY
703 AM_DEFAULT_V
704 AM_V
705 am__untar
706 am__tar
707 AMTAR
708 am__leading_dot
709 SET_MAKE
710 AWK
711 mkdir_p
712 MKDIR_P
713 INSTALL_STRIP_PROGRAM
714 STRIP
715 install_sh
716 MAKEINFO
717 AUTOHEADER
718 AUTOMAKE
719 AUTOCONF
720 ACLOCAL
721 VERSION
722 PACKAGE
723 CYGPATH_W
724 am__isrc
725 INSTALL_DATA
726 INSTALL_SCRIPT
727 INSTALL_PROGRAM
728 target_alias
729 host_alias
730 build_alias
731 LIBS
732 ECHO_T
733 ECHO_N
734 ECHO_C
735 DEFS
736 mandir
737 localedir
738 libdir
739 psdir
740 pdfdir
741 dvidir
742 htmldir
743 infodir
744 docdir
745 oldincludedir
746 includedir
747 localstatedir
748 sharedstatedir
749 sysconfdir
750 datadir
751 datarootdir
752 libexecdir
753 sbindir
754 bindir
755 program_transform_name
756 prefix
757 exec_prefix
758 PACKAGE_URL
759 PACKAGE_BUGREPORT
760 PACKAGE_STRING
761 PACKAGE_VERSION
762 PACKAGE_TARNAME
763 PACKAGE_NAME
764 PATH_SEPARATOR
765 SHELL
766 am__quote'
767 ac_subst_files=''
768 ac_user_opts='
769 enable_option_checking
770 enable_silent_rules
771 enable_dependency_tracking
772 enable_largefile
773 enable_shared
774 enable_static
775 with_pic
776 enable_fast_install
777 with_aix_soname
778 with_gnu_ld
779 with_sysroot
780 enable_libtool_lock
781 enable_debug
782 enable_profiling
783 enable_dlmalloc
784 enable_memdebug
785 enable_maxalloc
786 '
787 ac_precious_vars='build_alias
788 host_alias
789 target_alias
790 CC
791 CFLAGS
792 LDFLAGS
793 LIBS
794 CPPFLAGS
795 CPP
796 CXX
797 CXXFLAGS
798 CCC
799 YACC
800 YFLAGS
801 LT_SYS_LIBRARY_PATH
802 CXXCPP'
803
804
805 # Initialize some variables set by options.
806 ac_init_help=
807 ac_init_version=false
808 ac_unrecognized_opts=
809 ac_unrecognized_sep=
810 # The variables have the same names as the options, with
811 # dashes changed to underlines.
812 cache_file=/dev/null
813 exec_prefix=NONE
814 no_create=
815 no_recursion=
816 prefix=NONE
817 program_prefix=NONE
818 program_suffix=NONE
819 program_transform_name=s,x,x,
820 silent=
821 site=
822 srcdir=
823 verbose=
824 x_includes=NONE
825 x_libraries=NONE
826
827 # Installation directory options.
828 # These are left unexpanded so users can "make install exec_prefix=/foo"
829 # and all the variables that are supposed to be based on exec_prefix
830 # by default will actually change.
831 # Use braces instead of parens because sh, perl, etc. also accept them.
832 # (The list follows the same order as the GNU Coding Standards.)
833 bindir='${exec_prefix}/bin'
834 sbindir='${exec_prefix}/sbin'
835 libexecdir='${exec_prefix}/libexec'
836 datarootdir='${prefix}/share'
837 datadir='${datarootdir}'
838 sysconfdir='${prefix}/etc'
839 sharedstatedir='${prefix}/com'
840 localstatedir='${prefix}/var'
841 includedir='${prefix}/include'
842 oldincludedir='/usr/include'
843 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
844 infodir='${datarootdir}/info'
845 htmldir='${docdir}'
846 dvidir='${docdir}'
847 pdfdir='${docdir}'
848 psdir='${docdir}'
849 libdir='${exec_prefix}/lib'
850 localedir='${datarootdir}/locale'
851 mandir='${datarootdir}/man'
852
853 ac_prev=
854 ac_dashdash=
855 for ac_option
856 do
857 # If the previous option needs an argument, assign it.
858 if test -n "$ac_prev"; then
859 eval $ac_prev=\$ac_option
860 ac_prev=
861 continue
862 fi
863
864 case $ac_option in
865 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
866 *=) ac_optarg= ;;
867 *) ac_optarg=yes ;;
868 esac
869
870 # Accept the important Cygnus configure options, so we can diagnose typos.
871
872 case $ac_dashdash$ac_option in
873 --)
874 ac_dashdash=yes ;;
875
876 -bindir | --bindir | --bindi | --bind | --bin | --bi)
877 ac_prev=bindir ;;
878 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
879 bindir=$ac_optarg ;;
880
881 -build | --build | --buil | --bui | --bu)
882 ac_prev=build_alias ;;
883 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
884 build_alias=$ac_optarg ;;
885
886 -cache-file | --cache-file | --cache-fil | --cache-fi \
887 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
888 ac_prev=cache_file ;;
889 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
890 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
891 cache_file=$ac_optarg ;;
892
893 --config-cache | -C)
894 cache_file=config.cache ;;
895
896 -datadir | --datadir | --datadi | --datad)
897 ac_prev=datadir ;;
898 -datadir=* | --datadir=* | --datadi=* | --datad=*)
899 datadir=$ac_optarg ;;
900
901 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
902 | --dataroo | --dataro | --datar)
903 ac_prev=datarootdir ;;
904 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
905 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
906 datarootdir=$ac_optarg ;;
907
908 -disable-* | --disable-*)
909 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
910 # Reject names that are not valid shell variable names.
911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912 as_fn_error $? "invalid feature name: $ac_useropt"
913 ac_useropt_orig=$ac_useropt
914 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915 case $ac_user_opts in
916 *"
917 "enable_$ac_useropt"
918 "*) ;;
919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
920 ac_unrecognized_sep=', ';;
921 esac
922 eval enable_$ac_useropt=no ;;
923
924 -docdir | --docdir | --docdi | --doc | --do)
925 ac_prev=docdir ;;
926 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
927 docdir=$ac_optarg ;;
928
929 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
930 ac_prev=dvidir ;;
931 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
932 dvidir=$ac_optarg ;;
933
934 -enable-* | --enable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error $? "invalid feature name: $ac_useropt"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
942 *"
943 "enable_$ac_useropt"
944 "*) ;;
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
947 esac
948 eval enable_$ac_useropt=\$ac_optarg ;;
949
950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952 | --exec | --exe | --ex)
953 ac_prev=exec_prefix ;;
954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956 | --exec=* | --exe=* | --ex=*)
957 exec_prefix=$ac_optarg ;;
958
959 -gas | --gas | --ga | --g)
960 # Obsolete; use --with-gas.
961 with_gas=yes ;;
962
963 -help | --help | --hel | --he | -h)
964 ac_init_help=long ;;
965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966 ac_init_help=recursive ;;
967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968 ac_init_help=short ;;
969
970 -host | --host | --hos | --ho)
971 ac_prev=host_alias ;;
972 -host=* | --host=* | --hos=* | --ho=*)
973 host_alias=$ac_optarg ;;
974
975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976 ac_prev=htmldir ;;
977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978 | --ht=*)
979 htmldir=$ac_optarg ;;
980
981 -includedir | --includedir | --includedi | --included | --include \
982 | --includ | --inclu | --incl | --inc)
983 ac_prev=includedir ;;
984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985 | --includ=* | --inclu=* | --incl=* | --inc=*)
986 includedir=$ac_optarg ;;
987
988 -infodir | --infodir | --infodi | --infod | --info | --inf)
989 ac_prev=infodir ;;
990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991 infodir=$ac_optarg ;;
992
993 -libdir | --libdir | --libdi | --libd)
994 ac_prev=libdir ;;
995 -libdir=* | --libdir=* | --libdi=* | --libd=*)
996 libdir=$ac_optarg ;;
997
998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999 | --libexe | --libex | --libe)
1000 ac_prev=libexecdir ;;
1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002 | --libexe=* | --libex=* | --libe=*)
1003 libexecdir=$ac_optarg ;;
1004
1005 -localedir | --localedir | --localedi | --localed | --locale)
1006 ac_prev=localedir ;;
1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008 localedir=$ac_optarg ;;
1009
1010 -localstatedir | --localstatedir | --localstatedi | --localstated \
1011 | --localstate | --localstat | --localsta | --localst | --locals)
1012 ac_prev=localstatedir ;;
1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015 localstatedir=$ac_optarg ;;
1016
1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018 ac_prev=mandir ;;
1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020 mandir=$ac_optarg ;;
1021
1022 -nfp | --nfp | --nf)
1023 # Obsolete; use --without-fp.
1024 with_fp=no ;;
1025
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027 | --no-cr | --no-c | -n)
1028 no_create=yes ;;
1029
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 no_recursion=yes ;;
1033
1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036 | --oldin | --oldi | --old | --ol | --o)
1037 ac_prev=oldincludedir ;;
1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041 oldincludedir=$ac_optarg ;;
1042
1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044 ac_prev=prefix ;;
1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046 prefix=$ac_optarg ;;
1047
1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049 | --program-pre | --program-pr | --program-p)
1050 ac_prev=program_prefix ;;
1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053 program_prefix=$ac_optarg ;;
1054
1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056 | --program-suf | --program-su | --program-s)
1057 ac_prev=program_suffix ;;
1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060 program_suffix=$ac_optarg ;;
1061
1062 -program-transform-name | --program-transform-name \
1063 | --program-transform-nam | --program-transform-na \
1064 | --program-transform-n | --program-transform- \
1065 | --program-transform | --program-transfor \
1066 | --program-transfo | --program-transf \
1067 | --program-trans | --program-tran \
1068 | --progr-tra | --program-tr | --program-t)
1069 ac_prev=program_transform_name ;;
1070 -program-transform-name=* | --program-transform-name=* \
1071 | --program-transform-nam=* | --program-transform-na=* \
1072 | --program-transform-n=* | --program-transform-=* \
1073 | --program-transform=* | --program-transfor=* \
1074 | --program-transfo=* | --program-transf=* \
1075 | --program-trans=* | --program-tran=* \
1076 | --progr-tra=* | --program-tr=* | --program-t=*)
1077 program_transform_name=$ac_optarg ;;
1078
1079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080 ac_prev=pdfdir ;;
1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082 pdfdir=$ac_optarg ;;
1083
1084 -psdir | --psdir | --psdi | --psd | --ps)
1085 ac_prev=psdir ;;
1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087 psdir=$ac_optarg ;;
1088
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1091 silent=yes ;;
1092
1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094 ac_prev=sbindir ;;
1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096 | --sbi=* | --sb=*)
1097 sbindir=$ac_optarg ;;
1098
1099 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101 | --sharedst | --shareds | --shared | --share | --shar \
1102 | --sha | --sh)
1103 ac_prev=sharedstatedir ;;
1104 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107 | --sha=* | --sh=*)
1108 sharedstatedir=$ac_optarg ;;
1109
1110 -site | --site | --sit)
1111 ac_prev=site ;;
1112 -site=* | --site=* | --sit=*)
1113 site=$ac_optarg ;;
1114
1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116 ac_prev=srcdir ;;
1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118 srcdir=$ac_optarg ;;
1119
1120 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121 | --syscon | --sysco | --sysc | --sys | --sy)
1122 ac_prev=sysconfdir ;;
1123 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125 sysconfdir=$ac_optarg ;;
1126
1127 -target | --target | --targe | --targ | --tar | --ta | --t)
1128 ac_prev=target_alias ;;
1129 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130 target_alias=$ac_optarg ;;
1131
1132 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133 verbose=yes ;;
1134
1135 -version | --version | --versio | --versi | --vers | -V)
1136 ac_init_version=: ;;
1137
1138 -with-* | --with-*)
1139 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142 as_fn_error $? "invalid package name: $ac_useropt"
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1146 *"
1147 "with_$ac_useropt"
1148 "*) ;;
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1151 esac
1152 eval with_$ac_useropt=\$ac_optarg ;;
1153
1154 -without-* | --without-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 as_fn_error $? "invalid package name: $ac_useropt"
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1162 *"
1163 "with_$ac_useropt"
1164 "*) ;;
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1167 esac
1168 eval with_$ac_useropt=no ;;
1169
1170 --x)
1171 # Obsolete; use --with-x.
1172 with_x=yes ;;
1173
1174 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175 | --x-incl | --x-inc | --x-in | --x-i)
1176 ac_prev=x_includes ;;
1177 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179 x_includes=$ac_optarg ;;
1180
1181 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183 ac_prev=x_libraries ;;
1184 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186 x_libraries=$ac_optarg ;;
1187
1188 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1189 Try \`$0 --help' for more information"
1190 ;;
1191
1192 *=*)
1193 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1194 # Reject names that are not valid shell variable names.
1195 case $ac_envvar in #(
1196 '' | [0-9]* | *[!_$as_cr_alnum]* )
1197 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1198 esac
1199 eval $ac_envvar=\$ac_optarg
1200 export $ac_envvar ;;
1201
1202 *)
1203 # FIXME: should be removed in autoconf 3.0.
1204 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1205 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1207 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1208 ;;
1209
1210 esac
1211 done
1212
1213 if test -n "$ac_prev"; then
1214 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1215 as_fn_error $? "missing argument to $ac_option"
1216 fi
1217
1218 if test -n "$ac_unrecognized_opts"; then
1219 case $enable_option_checking in
1220 no) ;;
1221 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1222 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1223 esac
1224 fi
1225
1226 # Check all directory arguments for consistency.
1227 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1228 datadir sysconfdir sharedstatedir localstatedir includedir \
1229 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1230 libdir localedir mandir
1231 do
1232 eval ac_val=\$$ac_var
1233 # Remove trailing slashes.
1234 case $ac_val in
1235 */ )
1236 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1237 eval $ac_var=\$ac_val;;
1238 esac
1239 # Be sure to have absolute directory names.
1240 case $ac_val in
1241 [\\/$]* | ?:[\\/]* ) continue;;
1242 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1243 esac
1244 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1245 done
1246
1247 # There might be people who depend on the old broken behavior: `$host'
1248 # used to hold the argument of --host etc.
1249 # FIXME: To remove some day.
1250 build=$build_alias
1251 host=$host_alias
1252 target=$target_alias
1253
1254 # FIXME: To remove some day.
1255 if test "x$host_alias" != x; then
1256 if test "x$build_alias" = x; then
1257 cross_compiling=maybe
1258 elif test "x$build_alias" != "x$host_alias"; then
1259 cross_compiling=yes
1260 fi
1261 fi
1262
1263 ac_tool_prefix=
1264 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1265
1266 test "$silent" = yes && exec 6>/dev/null
1267
1268
1269 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1270 ac_ls_di=`ls -di .` &&
1271 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1272 as_fn_error $? "working directory cannot be determined"
1273 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1274 as_fn_error $? "pwd does not report name of working directory"
1275
1276
1277 # Find the source files, if location was not specified.
1278 if test -z "$srcdir"; then
1279 ac_srcdir_defaulted=yes
1280 # Try the directory containing this script, then the parent directory.
1281 ac_confdir=`$as_dirname -- "$as_myself" ||
1282 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1283 X"$as_myself" : 'X\(//\)[^/]' \| \
1284 X"$as_myself" : 'X\(//\)$' \| \
1285 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1286 $as_echo X"$as_myself" |
1287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1288 s//\1/
1289 q
1290 }
1291 /^X\(\/\/\)[^/].*/{
1292 s//\1/
1293 q
1294 }
1295 /^X\(\/\/\)$/{
1296 s//\1/
1297 q
1298 }
1299 /^X\(\/\).*/{
1300 s//\1/
1301 q
1302 }
1303 s/.*/./; q'`
1304 srcdir=$ac_confdir
1305 if test ! -r "$srcdir/$ac_unique_file"; then
1306 srcdir=..
1307 fi
1308 else
1309 ac_srcdir_defaulted=no
1310 fi
1311 if test ! -r "$srcdir/$ac_unique_file"; then
1312 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1313 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1314 fi
1315 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1316 ac_abs_confdir=`(
1317 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1318 pwd)`
1319 # When building in place, set srcdir=.
1320 if test "$ac_abs_confdir" = "$ac_pwd"; then
1321 srcdir=.
1322 fi
1323 # Remove unnecessary trailing slashes from srcdir.
1324 # Double slashes in file names in object file debugging info
1325 # mess up M-x gdb in Emacs.
1326 case $srcdir in
1327 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1328 esac
1329 for ac_var in $ac_precious_vars; do
1330 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1331 eval ac_env_${ac_var}_value=\$${ac_var}
1332 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1333 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1334 done
1335
1336 #
1337 # Report the --help message.
1338 #
1339 if test "$ac_init_help" = "long"; then
1340 # Omit some internal or obsolete options to make the list less imposing.
1341 # This message is too long to be a string in the A/UX 3.1 sh.
1342 cat <<_ACEOF
1343 \`configure' configures mona 1.4 to adapt to many kinds of systems.
1344
1345 Usage: $0 [OPTION]... [VAR=VALUE]...
1346
1347 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1348 VAR=VALUE. See below for descriptions of some of the useful variables.
1349
1350 Defaults for the options are specified in brackets.
1351
1352 Configuration:
1353 -h, --help display this help and exit
1354 --help=short display options specific to this package
1355 --help=recursive display the short help of all the included packages
1356 -V, --version display version information and exit
1357 -q, --quiet, --silent do not print \`checking ...' messages
1358 --cache-file=FILE cache test results in FILE [disabled]
1359 -C, --config-cache alias for \`--cache-file=config.cache'
1360 -n, --no-create do not create output files
1361 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1362
1363 Installation directories:
1364 --prefix=PREFIX install architecture-independent files in PREFIX
1365 [$ac_default_prefix]
1366 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1367 [PREFIX]
1368
1369 By default, \`make install' will install all the files in
1370 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1371 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1372 for instance \`--prefix=\$HOME'.
1373
1374 For better control, use the options below.
1375
1376 Fine tuning of the installation directories:
1377 --bindir=DIR user executables [EPREFIX/bin]
1378 --sbindir=DIR system admin executables [EPREFIX/sbin]
1379 --libexecdir=DIR program executables [EPREFIX/libexec]
1380 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1381 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1382 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1383 --libdir=DIR object code libraries [EPREFIX/lib]
1384 --includedir=DIR C header files [PREFIX/include]
1385 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1386 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1387 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1388 --infodir=DIR info documentation [DATAROOTDIR/info]
1389 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1390 --mandir=DIR man documentation [DATAROOTDIR/man]
1391 --docdir=DIR documentation root [DATAROOTDIR/doc/mona]
1392 --htmldir=DIR html documentation [DOCDIR]
1393 --dvidir=DIR dvi documentation [DOCDIR]
1394 --pdfdir=DIR pdf documentation [DOCDIR]
1395 --psdir=DIR ps documentation [DOCDIR]
1396 _ACEOF
1397
1398 cat <<\_ACEOF
1399
1400 Program names:
1401 --program-prefix=PREFIX prepend PREFIX to installed program names
1402 --program-suffix=SUFFIX append SUFFIX to installed program names
1403 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1404
1405 System types:
1406 --build=BUILD configure for building on BUILD [guessed]
1407 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1408 _ACEOF
1409 fi
1410
1411 if test -n "$ac_init_help"; then
1412 case $ac_init_help in
1413 short | recursive ) echo "Configuration of mona 1.4:";;
1414 esac
1415 cat <<\_ACEOF
1416
1417 Optional Features:
1418 --disable-option-checking ignore unrecognized --enable/--with options
1419 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1420 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1421 --enable-silent-rules less verbose build output (undo: "make V=1")
1422 --disable-silent-rules verbose build output (undo: "make V=0")
1423 --enable-dependency-tracking
1424 do not reject slow dependency extractors
1425 --disable-dependency-tracking
1426 speeds up one-time build
1427 --disable-largefile omit support for large files
1428 --enable-shared[=PKGS] build shared libraries [default=yes]
1429 --enable-static[=PKGS] build static libraries [default=yes]
1430 --enable-fast-install[=PKGS]
1431 optimize for fast installation [default=yes]
1432 --disable-libtool-lock avoid locking (might break parallel builds)
1433 --enable-debug development mode
1434 --enable-profiling compile with profiling
1435 --enable-dlmalloc use dlmalloc instead of built-in malloc
1436 --enable-memdebug enable debug info for dlmalloc
1437 --enable-maxalloc measure max allocated memory for dlmalloc
1438
1439 Optional Packages:
1440 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1441 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1442 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1443 both]
1444 --with-aix-soname=aix|svr4|both
1445 shared library versioning (aka "SONAME") variant to
1446 provide on AIX, [default=aix].
1447 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1448 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1449 compiler's sysroot if not specified).
1450
1451 Some influential environment variables:
1452 CC C compiler command
1453 CFLAGS C compiler flags
1454 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1455 nonstandard directory <lib dir>
1456 LIBS libraries to pass to the linker, e.g. -l<library>
1457 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1458 you have headers in a nonstandard directory <include dir>
1459 CPP C preprocessor
1460 CXX C++ compiler command
1461 CXXFLAGS C++ compiler flags
1462 YACC The `Yet Another Compiler Compiler' implementation to use.
1463 Defaults to the first program found out of: `bison -y', `byacc',
1464 `yacc'.
1465 YFLAGS The list of arguments that will be passed by default to $YACC.
1466 This script will default YFLAGS to the empty string to avoid a
1467 default value of `-d' given by some make applications.
1468 LT_SYS_LIBRARY_PATH
1469 User-defined run-time library search path.
1470 CXXCPP C++ preprocessor
1471
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1474
1475 Report bugs to <[email protected]>.
1476 mona home page: <http://www.brics.dk/mona/>.
1477 _ACEOF
1478 ac_status=$?
1479 fi
1480
1481 if test "$ac_init_help" = "recursive"; then
1482 # If there are subdirs, report their specific --help.
1483 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1484 test -d "$ac_dir" ||
1485 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1486 continue
1487 ac_builddir=.
1488
1489 case "$ac_dir" in
1490 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491 *)
1492 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1493 # A ".." for each directory in $ac_dir_suffix.
1494 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1495 case $ac_top_builddir_sub in
1496 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1497 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1498 esac ;;
1499 esac
1500 ac_abs_top_builddir=$ac_pwd
1501 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1502 # for backward compatibility:
1503 ac_top_builddir=$ac_top_build_prefix
1504
1505 case $srcdir in
1506 .) # We are building in place.
1507 ac_srcdir=.
1508 ac_top_srcdir=$ac_top_builddir_sub
1509 ac_abs_top_srcdir=$ac_pwd ;;
1510 [\\/]* | ?:[\\/]* ) # Absolute name.
1511 ac_srcdir=$srcdir$ac_dir_suffix;
1512 ac_top_srcdir=$srcdir
1513 ac_abs_top_srcdir=$srcdir ;;
1514 *) # Relative name.
1515 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1516 ac_top_srcdir=$ac_top_build_prefix$srcdir
1517 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1518 esac
1519 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1520
1521 cd "$ac_dir" || { ac_status=$?; continue; }
1522 # Check for guested configure.
1523 if test -f "$ac_srcdir/configure.gnu"; then
1524 echo &&
1525 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1526 elif test -f "$ac_srcdir/configure"; then
1527 echo &&
1528 $SHELL "$ac_srcdir/configure" --help=recursive
1529 else
1530 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1531 fi || ac_status=$?
1532 cd "$ac_pwd" || { ac_status=$?; break; }
1533 done
1534 fi
1535
1536 test -n "$ac_init_help" && exit $ac_status
1537 if $ac_init_version; then
1538 cat <<\_ACEOF
1539 mona configure 1.4
1540 generated by GNU Autoconf 2.69
1541
1542 Copyright (C) 2012 Free Software Foundation, Inc.
1543 This configure script is free software; the Free Software Foundation
1544 gives unlimited permission to copy, distribute and modify it.
1545 _ACEOF
1546 exit
1547 fi
1548
1549 ## ------------------------ ##
1550 ## Autoconf initialization. ##
1551 ## ------------------------ ##
1552
1553 # ac_fn_c_try_compile LINENO
1554 # --------------------------
1555 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1556 ac_fn_c_try_compile ()
1557 {
1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559 rm -f conftest.$ac_objext
1560 if { { ac_try="$ac_compile"
1561 case "(($ac_try" in
1562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563 *) ac_try_echo=$ac_try;;
1564 esac
1565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566 $as_echo "$ac_try_echo"; } >&5
1567 (eval "$ac_compile") 2>conftest.err
1568 ac_status=$?
1569 if test -s conftest.err; then
1570 grep -v '^ *+' conftest.err >conftest.er1
1571 cat conftest.er1 >&5
1572 mv -f conftest.er1 conftest.err
1573 fi
1574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575 test $ac_status = 0; } && {
1576 test -z "$ac_c_werror_flag" ||
1577 test ! -s conftest.err
1578 } && test -s conftest.$ac_objext; then :
1579 ac_retval=0
1580 else
1581 $as_echo "$as_me: failed program was:" >&5
1582 sed 's/^/| /' conftest.$ac_ext >&5
1583
1584 ac_retval=1
1585 fi
1586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1587 as_fn_set_status $ac_retval
1588
1589 } # ac_fn_c_try_compile
1590
1591 # ac_fn_c_try_cpp LINENO
1592 # ----------------------
1593 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1594 ac_fn_c_try_cpp ()
1595 {
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 if { { ac_try="$ac_cpp conftest.$ac_ext"
1598 case "(($ac_try" in
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1601 esac
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1605 ac_status=$?
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1610 fi
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } > conftest.i && {
1613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1615 }; then :
1616 ac_retval=0
1617 else
1618 $as_echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1620
1621 ac_retval=1
1622 fi
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status $ac_retval
1625
1626 } # ac_fn_c_try_cpp
1627
1628 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1629 # -------------------------------------------------------
1630 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1631 # the include files in INCLUDES and setting the cache variable VAR
1632 # accordingly.
1633 ac_fn_c_check_header_mongrel ()
1634 {
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 if eval \${$3+:} false; then :
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1638 $as_echo_n "checking for $2... " >&6; }
1639 if eval \${$3+:} false; then :
1640 $as_echo_n "(cached) " >&6
1641 fi
1642 eval ac_res=\$$3
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1644 $as_echo "$ac_res" >&6; }
1645 else
1646 # Is the header compilable?
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1648 $as_echo_n "checking $2 usability... " >&6; }
1649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1650 /* end confdefs.h. */
1651 $4
1652 #include <$2>
1653 _ACEOF
1654 if ac_fn_c_try_compile "$LINENO"; then :
1655 ac_header_compiler=yes
1656 else
1657 ac_header_compiler=no
1658 fi
1659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1661 $as_echo "$ac_header_compiler" >&6; }
1662
1663 # Is the header present?
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1665 $as_echo_n "checking $2 presence... " >&6; }
1666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1667 /* end confdefs.h. */
1668 #include <$2>
1669 _ACEOF
1670 if ac_fn_c_try_cpp "$LINENO"; then :
1671 ac_header_preproc=yes
1672 else
1673 ac_header_preproc=no
1674 fi
1675 rm -f conftest.err conftest.i conftest.$ac_ext
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1677 $as_echo "$ac_header_preproc" >&6; }
1678
1679 # So? What about this header?
1680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1681 yes:no: )
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1683 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1685 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1686 ;;
1687 no:yes:* )
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1689 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1691 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1693 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1695 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1697 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1698 ( $as_echo "## -------------------------------- ##
1699 ## Report this to [email protected] ##
1700 ## -------------------------------- ##"
1701 ) | sed "s/^/$as_me: WARNING: /" >&2
1702 ;;
1703 esac
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1705 $as_echo_n "checking for $2... " >&6; }
1706 if eval \${$3+:} false; then :
1707 $as_echo_n "(cached) " >&6
1708 else
1709 eval "$3=\$ac_header_compiler"
1710 fi
1711 eval ac_res=\$$3
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1713 $as_echo "$ac_res" >&6; }
1714 fi
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716
1717 } # ac_fn_c_check_header_mongrel
1718
1719 # ac_fn_c_try_run LINENO
1720 # ----------------------
1721 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1722 # that executables *can* be run.
1723 ac_fn_c_try_run ()
1724 {
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 if { { ac_try="$ac_link"
1727 case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1730 esac
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_link") 2>&5
1734 ac_status=$?
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1737 { { case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_try") 2>&5
1744 ac_status=$?
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; }; }; then :
1747 ac_retval=0
1748 else
1749 $as_echo "$as_me: program exited with status $ac_status" >&5
1750 $as_echo "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.$ac_ext >&5
1752
1753 ac_retval=$ac_status
1754 fi
1755 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757 as_fn_set_status $ac_retval
1758
1759 } # ac_fn_c_try_run
1760
1761 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1762 # -------------------------------------------------------
1763 # Tests whether HEADER exists and can be compiled using the include files in
1764 # INCLUDES, setting the cache variable VAR accordingly.
1765 ac_fn_c_check_header_compile ()
1766 {
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769 $as_echo_n "checking for $2... " >&6; }
1770 if eval \${$3+:} false; then :
1771 $as_echo_n "(cached) " >&6
1772 else
1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774 /* end confdefs.h. */
1775 $4
1776 #include <$2>
1777 _ACEOF
1778 if ac_fn_c_try_compile "$LINENO"; then :
1779 eval "$3=yes"
1780 else
1781 eval "$3=no"
1782 fi
1783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1784 fi
1785 eval ac_res=\$$3
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 $as_echo "$ac_res" >&6; }
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789
1790 } # ac_fn_c_check_header_compile
1791
1792 # ac_fn_cxx_try_compile LINENO
1793 # ----------------------------
1794 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1795 ac_fn_cxx_try_compile ()
1796 {
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 rm -f conftest.$ac_objext
1799 if { { ac_try="$ac_compile"
1800 case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1803 esac
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_compile") 2>conftest.err
1807 ac_status=$?
1808 if test -s conftest.err; then
1809 grep -v '^ *+' conftest.err >conftest.er1
1810 cat conftest.er1 >&5
1811 mv -f conftest.er1 conftest.err
1812 fi
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; } && {
1815 test -z "$ac_cxx_werror_flag" ||
1816 test ! -s conftest.err
1817 } && test -s conftest.$ac_objext; then :
1818 ac_retval=0
1819 else
1820 $as_echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1822
1823 ac_retval=1
1824 fi
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826 as_fn_set_status $ac_retval
1827
1828 } # ac_fn_cxx_try_compile
1829
1830 # ac_fn_c_try_link LINENO
1831 # -----------------------
1832 # Try to link conftest.$ac_ext, and return whether this succeeded.
1833 ac_fn_c_try_link ()
1834 {
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 rm -f conftest.$ac_objext conftest$ac_exeext
1837 if { { ac_try="$ac_link"
1838 case "(($ac_try" in
1839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840 *) ac_try_echo=$ac_try;;
1841 esac
1842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843 $as_echo "$ac_try_echo"; } >&5
1844 (eval "$ac_link") 2>conftest.err
1845 ac_status=$?
1846 if test -s conftest.err; then
1847 grep -v '^ *+' conftest.err >conftest.er1
1848 cat conftest.er1 >&5
1849 mv -f conftest.er1 conftest.err
1850 fi
1851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1852 test $ac_status = 0; } && {
1853 test -z "$ac_c_werror_flag" ||
1854 test ! -s conftest.err
1855 } && test -s conftest$ac_exeext && {
1856 test "$cross_compiling" = yes ||
1857 test -x conftest$ac_exeext
1858 }; then :
1859 ac_retval=0
1860 else
1861 $as_echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1863
1864 ac_retval=1
1865 fi
1866 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1867 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1868 # interfere with the next link command; also delete a directory that is
1869 # left behind by Apple's compiler. We do this before executing the actions.
1870 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872 as_fn_set_status $ac_retval
1873
1874 } # ac_fn_c_try_link
1875
1876 # ac_fn_c_check_func LINENO FUNC VAR
1877 # ----------------------------------
1878 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1879 ac_fn_c_check_func ()
1880 {
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if eval \${$3+:} false; then :
1885 $as_echo_n "(cached) " >&6
1886 else
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1889 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1891 #define $2 innocuous_$2
1892
1893 /* System header to define __stub macros and hopefully few prototypes,
1894 which can conflict with char $2 (); below.
1895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1896 <limits.h> exists even on freestanding compilers. */
1897
1898 #ifdef __STDC__
1899 # include <limits.h>
1900 #else
1901 # include <assert.h>
1902 #endif
1903
1904 #undef $2
1905
1906 /* Override any GCC internal prototype to avoid an error.
1907 Use char because int might match the return type of a GCC
1908 builtin and then its argument prototype would still apply. */
1909 #ifdef __cplusplus
1910 extern "C"
1911 #endif
1912 char $2 ();
1913 /* The GNU C library defines this for functions which it implements
1914 to always fail with ENOSYS. Some functions are actually named
1915 something starting with __ and the normal name is an alias. */
1916 #if defined __stub_$2 || defined __stub___$2
1917 choke me
1918 #endif
1919
1920 int
1921 main ()
1922 {
1923 return $2 ();
1924 ;
1925 return 0;
1926 }
1927 _ACEOF
1928 if ac_fn_c_try_link "$LINENO"; then :
1929 eval "$3=yes"
1930 else
1931 eval "$3=no"
1932 fi
1933 rm -f core conftest.err conftest.$ac_objext \
1934 conftest$ac_exeext conftest.$ac_ext
1935 fi
1936 eval ac_res=\$$3
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1938 $as_echo "$ac_res" >&6; }
1939 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940
1941 } # ac_fn_c_check_func
1942
1943 # ac_fn_cxx_try_cpp LINENO
1944 # ------------------------
1945 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1946 ac_fn_cxx_try_cpp ()
1947 {
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 if { { ac_try="$ac_cpp conftest.$ac_ext"
1950 case "(($ac_try" in
1951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1952 *) ac_try_echo=$ac_try;;
1953 esac
1954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955 $as_echo "$ac_try_echo"; } >&5
1956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1957 ac_status=$?
1958 if test -s conftest.err; then
1959 grep -v '^ *+' conftest.err >conftest.er1
1960 cat conftest.er1 >&5
1961 mv -f conftest.er1 conftest.err
1962 fi
1963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1964 test $ac_status = 0; } > conftest.i && {
1965 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1966 test ! -s conftest.err
1967 }; then :
1968 ac_retval=0
1969 else
1970 $as_echo "$as_me: failed program was:" >&5
1971 sed 's/^/| /' conftest.$ac_ext >&5
1972
1973 ac_retval=1
1974 fi
1975 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1976 as_fn_set_status $ac_retval
1977
1978 } # ac_fn_cxx_try_cpp
1979
1980 # ac_fn_cxx_try_link LINENO
1981 # -------------------------
1982 # Try to link conftest.$ac_ext, and return whether this succeeded.
1983 ac_fn_cxx_try_link ()
1984 {
1985 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986 rm -f conftest.$ac_objext conftest$ac_exeext
1987 if { { ac_try="$ac_link"
1988 case "(($ac_try" in
1989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1990 *) ac_try_echo=$ac_try;;
1991 esac
1992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1993 $as_echo "$ac_try_echo"; } >&5
1994 (eval "$ac_link") 2>conftest.err
1995 ac_status=$?
1996 if test -s conftest.err; then
1997 grep -v '^ *+' conftest.err >conftest.er1
1998 cat conftest.er1 >&5
1999 mv -f conftest.er1 conftest.err
2000 fi
2001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2002 test $ac_status = 0; } && {
2003 test -z "$ac_cxx_werror_flag" ||
2004 test ! -s conftest.err
2005 } && test -s conftest$ac_exeext && {
2006 test "$cross_compiling" = yes ||
2007 test -x conftest$ac_exeext
2008 }; then :
2009 ac_retval=0
2010 else
2011 $as_echo "$as_me: failed program was:" >&5
2012 sed 's/^/| /' conftest.$ac_ext >&5
2013
2014 ac_retval=1
2015 fi
2016 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2017 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2018 # interfere with the next link command; also delete a directory that is
2019 # left behind by Apple's compiler. We do this before executing the actions.
2020 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2021 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022 as_fn_set_status $ac_retval
2023
2024 } # ac_fn_cxx_try_link
2025
2026 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2027 # -------------------------------------------
2028 # Tests whether TYPE exists after having included INCLUDES, setting cache
2029 # variable VAR accordingly.
2030 ac_fn_c_check_type ()
2031 {
2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2034 $as_echo_n "checking for $2... " >&6; }
2035 if eval \${$3+:} false; then :
2036 $as_echo_n "(cached) " >&6
2037 else
2038 eval "$3=no"
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2041 $4
2042 int
2043 main ()
2044 {
2045 if (sizeof ($2))
2046 return 0;
2047 ;
2048 return 0;
2049 }
2050 _ACEOF
2051 if ac_fn_c_try_compile "$LINENO"; then :
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h. */
2054 $4
2055 int
2056 main ()
2057 {
2058 if (sizeof (($2)))
2059 return 0;
2060 ;
2061 return 0;
2062 }
2063 _ACEOF
2064 if ac_fn_c_try_compile "$LINENO"; then :
2065
2066 else
2067 eval "$3=yes"
2068 fi
2069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070 fi
2071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 fi
2073 eval ac_res=\$$3
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075 $as_echo "$ac_res" >&6; }
2076 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2077
2078 } # ac_fn_c_check_type
2079 cat >config.log <<_ACEOF
2080 This file contains any messages produced by compilers while
2081 running configure, to aid debugging if configure makes a mistake.
2082
2083 It was created by mona $as_me 1.4, which was
2084 generated by GNU Autoconf 2.69. Invocation command line was
2085
2086 $ $0 $@
2087
2088 _ACEOF
2089 exec 5>>config.log
2090 {
2091 cat <<_ASUNAME
2092 ## --------- ##
2093 ## Platform. ##
2094 ## --------- ##
2095
2096 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2097 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2098 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2099 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2100 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2101
2102 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2103 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2104
2105 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2106 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2107 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2108 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2109 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2110 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2111 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2112
2113 _ASUNAME
2114
2115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2116 for as_dir in $PATH
2117 do
2118 IFS=$as_save_IFS
2119 test -z "$as_dir" && as_dir=.
2120 $as_echo "PATH: $as_dir"
2121 done
2122 IFS=$as_save_IFS
2123
2124 } >&5
2125
2126 cat >&5 <<_ACEOF
2127
2128
2129 ## ----------- ##
2130 ## Core tests. ##
2131 ## ----------- ##
2132
2133 _ACEOF
2134
2135
2136 # Keep a trace of the command line.
2137 # Strip out --no-create and --no-recursion so they do not pile up.
2138 # Strip out --silent because we don't want to record it for future runs.
2139 # Also quote any args containing shell meta-characters.
2140 # Make two passes to allow for proper duplicate-argument suppression.
2141 ac_configure_args=
2142 ac_configure_args0=
2143 ac_configure_args1=
2144 ac_must_keep_next=false
2145 for ac_pass in 1 2
2146 do
2147 for ac_arg
2148 do
2149 case $ac_arg in
2150 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2152 | -silent | --silent | --silen | --sile | --sil)
2153 continue ;;
2154 *\'*)
2155 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2156 esac
2157 case $ac_pass in
2158 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2159 2)
2160 as_fn_append ac_configure_args1 " '$ac_arg'"
2161 if test $ac_must_keep_next = true; then
2162 ac_must_keep_next=false # Got value, back to normal.
2163 else
2164 case $ac_arg in
2165 *=* | --config-cache | -C | -disable-* | --disable-* \
2166 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2167 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2168 | -with-* | --with-* | -without-* | --without-* | --x)
2169 case "$ac_configure_args0 " in
2170 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2171 esac
2172 ;;
2173 -* ) ac_must_keep_next=true ;;
2174 esac
2175 fi
2176 as_fn_append ac_configure_args " '$ac_arg'"
2177 ;;
2178 esac
2179 done
2180 done
2181 { ac_configure_args0=; unset ac_configure_args0;}
2182 { ac_configure_args1=; unset ac_configure_args1;}
2183
2184 # When interrupted or exit'd, cleanup temporary files, and complete
2185 # config.log. We remove comments because anyway the quotes in there
2186 # would cause problems or look ugly.
2187 # WARNING: Use '\'' to represent an apostrophe within the trap.
2188 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2189 trap 'exit_status=$?
2190 # Save into config.log some information that might help in debugging.
2191 {
2192 echo
2193
2194 $as_echo "## ---------------- ##
2195 ## Cache variables. ##
2196 ## ---------------- ##"
2197 echo
2198 # The following way of writing the cache mishandles newlines in values,
2199 (
2200 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2201 eval ac_val=\$$ac_var
2202 case $ac_val in #(
2203 *${as_nl}*)
2204 case $ac_var in #(
2205 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2206 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2207 esac
2208 case $ac_var in #(
2209 _ | IFS | as_nl) ;; #(
2210 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2211 *) { eval $ac_var=; unset $ac_var;} ;;
2212 esac ;;
2213 esac
2214 done
2215 (set) 2>&1 |
2216 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2217 *${as_nl}ac_space=\ *)
2218 sed -n \
2219 "s/'\''/'\''\\\\'\'''\''/g;
2220 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2221 ;; #(
2222 *)
2223 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2224 ;;
2225 esac |
2226 sort
2227 )
2228 echo
2229
2230 $as_echo "## ----------------- ##
2231 ## Output variables. ##
2232 ## ----------------- ##"
2233 echo
2234 for ac_var in $ac_subst_vars
2235 do
2236 eval ac_val=\$$ac_var
2237 case $ac_val in
2238 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2239 esac
2240 $as_echo "$ac_var='\''$ac_val'\''"
2241 done | sort
2242 echo
2243
2244 if test -n "$ac_subst_files"; then
2245 $as_echo "## ------------------- ##
2246 ## File substitutions. ##
2247 ## ------------------- ##"
2248 echo
2249 for ac_var in $ac_subst_files
2250 do
2251 eval ac_val=\$$ac_var
2252 case $ac_val in
2253 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2254 esac
2255 $as_echo "$ac_var='\''$ac_val'\''"
2256 done | sort
2257 echo
2258 fi
2259
2260 if test -s confdefs.h; then
2261 $as_echo "## ----------- ##
2262 ## confdefs.h. ##
2263 ## ----------- ##"
2264 echo
2265 cat confdefs.h
2266 echo
2267 fi
2268 test "$ac_signal" != 0 &&
2269 $as_echo "$as_me: caught signal $ac_signal"
2270 $as_echo "$as_me: exit $exit_status"
2271 } >&5
2272 rm -f core *.core core.conftest.* &&
2273 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2274 exit $exit_status
2275 ' 0
2276 for ac_signal in 1 2 13 15; do
2277 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2278 done
2279 ac_signal=0
2280
2281 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2282 rm -f -r conftest* confdefs.h
2283
2284 $as_echo "/* confdefs.h */" > confdefs.h
2285
2286 # Predefined preprocessor variables.
2287
2288 cat >>confdefs.h <<_ACEOF
2289 #define PACKAGE_NAME "$PACKAGE_NAME"
2290 _ACEOF
2291
2292 cat >>confdefs.h <<_ACEOF
2293 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2294 _ACEOF
2295
2296 cat >>confdefs.h <<_ACEOF
2297 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2298 _ACEOF
2299
2300 cat >>confdefs.h <<_ACEOF
2301 #define PACKAGE_STRING "$PACKAGE_STRING"
2302 _ACEOF
2303
2304 cat >>confdefs.h <<_ACEOF
2305 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2306 _ACEOF
2307
2308 cat >>confdefs.h <<_ACEOF
2309 #define PACKAGE_URL "$PACKAGE_URL"
2310 _ACEOF
2311
2312
2313 # Let the site file select an alternate cache file if it wants to.
2314 # Prefer an explicitly selected file to automatically selected ones.
2315 ac_site_file1=NONE
2316 ac_site_file2=NONE
2317 if test -n "$CONFIG_SITE"; then
2318 # We do not want a PATH search for config.site.
2319 case $CONFIG_SITE in #((
2320 -*) ac_site_file1=./$CONFIG_SITE;;
2321 */*) ac_site_file1=$CONFIG_SITE;;
2322 *) ac_site_file1=./$CONFIG_SITE;;
2323 esac
2324 elif test "x$prefix" != xNONE; then
2325 ac_site_file1=$prefix/share/config.site
2326 ac_site_file2=$prefix/etc/config.site
2327 else
2328 ac_site_file1=$ac_default_prefix/share/config.site
2329 ac_site_file2=$ac_default_prefix/etc/config.site
2330 fi
2331 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2332 do
2333 test "x$ac_site_file" = xNONE && continue
2334 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2336 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2337 sed 's/^/| /' "$ac_site_file" >&5
2338 . "$ac_site_file" \
2339 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2341 as_fn_error $? "failed to load site script $ac_site_file
2342 See \`config.log' for more details" "$LINENO" 5; }
2343 fi
2344 done
2345
2346 if test -r "$cache_file"; then
2347 # Some versions of bash will fail to source /dev/null (special files
2348 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2349 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2351 $as_echo "$as_me: loading cache $cache_file" >&6;}
2352 case $cache_file in
2353 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2354 *) . "./$cache_file";;
2355 esac
2356 fi
2357 else
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2359 $as_echo "$as_me: creating cache $cache_file" >&6;}
2360 >$cache_file
2361 fi
2362
2363 as_fn_append ac_header_list " stdlib.h"
2364 as_fn_append ac_header_list " unistd.h"
2365 as_fn_append ac_header_list " sys/param.h"
2366 # Check that the precious variables saved in the cache have kept the same
2367 # value.
2368 ac_cache_corrupted=false
2369 for ac_var in $ac_precious_vars; do
2370 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2371 eval ac_new_set=\$ac_env_${ac_var}_set
2372 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2373 eval ac_new_val=\$ac_env_${ac_var}_value
2374 case $ac_old_set,$ac_new_set in
2375 set,)
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2377 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2378 ac_cache_corrupted=: ;;
2379 ,set)
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2381 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2382 ac_cache_corrupted=: ;;
2383 ,);;
2384 *)
2385 if test "x$ac_old_val" != "x$ac_new_val"; then
2386 # differences in whitespace do not lead to failure.
2387 ac_old_val_w=`echo x $ac_old_val`
2388 ac_new_val_w=`echo x $ac_new_val`
2389 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2391 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2392 ac_cache_corrupted=:
2393 else
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2395 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2396 eval $ac_var=\$ac_old_val
2397 fi
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2399 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2401 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2402 fi;;
2403 esac
2404 # Pass precious variables to config.status.
2405 if test "$ac_new_set" = set; then
2406 case $ac_new_val in
2407 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2408 *) ac_arg=$ac_var=$ac_new_val ;;
2409 esac
2410 case " $ac_configure_args " in
2411 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2412 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2413 esac
2414 fi
2415 done
2416 if $ac_cache_corrupted; then
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2420 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2421 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2422 fi
2423 ## -------------------- ##
2424 ## Main body of script. ##
2425 ## -------------------- ##
2426
2427 ac_ext=c
2428 ac_cpp='$CPP $CPPFLAGS'
2429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2432
2433
2434 RELEASE=18
2435 ac_aux_dir=
2436 for ac_dir in config "$srcdir"/config; do
2437 if test -f "$ac_dir/install-sh"; then
2438 ac_aux_dir=$ac_dir
2439 ac_install_sh="$ac_aux_dir/install-sh -c"
2440 break
2441 elif test -f "$ac_dir/install.sh"; then
2442 ac_aux_dir=$ac_dir
2443 ac_install_sh="$ac_aux_dir/install.sh -c"
2444 break
2445 elif test -f "$ac_dir/shtool"; then
2446 ac_aux_dir=$ac_dir
2447 ac_install_sh="$ac_aux_dir/shtool install -c"
2448 break
2449 fi
2450 done
2451 if test -z "$ac_aux_dir"; then
2452 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2453 fi
2454
2455 # These three variables are undocumented and unsupported,
2456 # and are intended to be withdrawn in a future Autoconf release.
2457 # They can cause serious problems if a builder's source tree is in a directory
2458 # whose full name contains unusual characters.
2459 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2460 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2461 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2462
2463
2464
2465 am__api_version='1.16'
2466
2467 # Find a good install program. We prefer a C program (faster),
2468 # so one script is as good as another. But avoid the broken or
2469 # incompatible versions:
2470 # SysV /etc/install, /usr/sbin/install
2471 # SunOS /usr/etc/install
2472 # IRIX /sbin/install
2473 # AIX /bin/install
2474 # AmigaOS /C/install, which installs bootblocks on floppy discs
2475 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2476 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2477 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2478 # OS/2's system install, which has a completely different semantic
2479 # ./install, which can be erroneously created by make from ./install.sh.
2480 # Reject install programs that cannot install multiple files.
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2482 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2483 if test -z "$INSTALL"; then
2484 if ${ac_cv_path_install+:} false; then :
2485 $as_echo_n "(cached) " >&6
2486 else
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 for as_dir in $PATH
2489 do
2490 IFS=$as_save_IFS
2491 test -z "$as_dir" && as_dir=.
2492 # Account for people who put trailing slashes in PATH elements.
2493 case $as_dir/ in #((
2494 ./ | .// | /[cC]/* | \
2495 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2496 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2497 /usr/ucb/* ) ;;
2498 *)
2499 # OSF1 and SCO ODT 3.0 have their own names for install.
2500 # Don't use installbsd from OSF since it installs stuff as root
2501 # by default.
2502 for ac_prog in ginstall scoinst install; do
2503 for ac_exec_ext in '' $ac_executable_extensions; do
2504 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2505 if test $ac_prog = install &&
2506 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2507 # AIX install. It has an incompatible calling convention.
2508 :
2509 elif test $ac_prog = install &&
2510 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2511 # program-specific install script used by HP pwplus--don't use.
2512 :
2513 else
2514 rm -rf conftest.one conftest.two conftest.dir
2515 echo one > conftest.one
2516 echo two > conftest.two
2517 mkdir conftest.dir
2518 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2519 test -s conftest.one && test -s conftest.two &&
2520 test -s conftest.dir/conftest.one &&
2521 test -s conftest.dir/conftest.two
2522 then
2523 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2524 break 3
2525 fi
2526 fi
2527 fi
2528 done
2529 done
2530 ;;
2531 esac
2532
2533 done
2534 IFS=$as_save_IFS
2535
2536 rm -rf conftest.one conftest.two conftest.dir
2537
2538 fi
2539 if test "${ac_cv_path_install+set}" = set; then
2540 INSTALL=$ac_cv_path_install
2541 else
2542 # As a last resort, use the slow shell script. Don't cache a
2543 # value for INSTALL within a source directory, because that will
2544 # break other packages using the cache if that directory is
2545 # removed, or if the value is a relative name.
2546 INSTALL=$ac_install_sh
2547 fi
2548 fi
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2550 $as_echo "$INSTALL" >&6; }
2551
2552 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2553 # It thinks the first close brace ends the variable substitution.
2554 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2555
2556 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2557
2558 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2559
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2561 $as_echo_n "checking whether build environment is sane... " >&6; }
2562 # Reject unsafe characters in $srcdir or the absolute working directory
2563 # name. Accept space and tab only in the latter.
2564 am_lf='
2565 '
2566 case `pwd` in
2567 *[\\\"\#\$\&\'\`$am_lf]*)
2568 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2569 esac
2570 case $srcdir in
2571 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2572 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2573 esac
2574
2575 # Do 'set' in a subshell so we don't clobber the current shell's
2576 # arguments. Must try -L first in case configure is actually a
2577 # symlink; some systems play weird games with the mod time of symlinks
2578 # (eg FreeBSD returns the mod time of the symlink's containing
2579 # directory).
2580 if (
2581 am_has_slept=no
2582 for am_try in 1 2; do
2583 echo "timestamp, slept: $am_has_slept" > conftest.file
2584 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2585 if test "$*" = "X"; then
2586 # -L didn't work.
2587 set X `ls -t "$srcdir/configure" conftest.file`
2588 fi
2589 if test "$*" != "X $srcdir/configure conftest.file" \
2590 && test "$*" != "X conftest.file $srcdir/configure"; then
2591
2592 # If neither matched, then we have a broken ls. This can happen
2593 # if, for instance, CONFIG_SHELL is bash and it inherits a
2594 # broken ls alias from the environment. This has actually
2595 # happened. Such a system could not be considered "sane".
2596 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2597 alias in your environment" "$LINENO" 5
2598 fi
2599 if test "$2" = conftest.file || test $am_try -eq 2; then
2600 break
2601 fi
2602 # Just in case.
2603 sleep 1
2604 am_has_slept=yes
2605 done
2606 test "$2" = conftest.file
2607 )
2608 then
2609 # Ok.
2610 :
2611 else
2612 as_fn_error $? "newly created file is older than distributed files!
2613 Check your system clock" "$LINENO" 5
2614 fi
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2616 $as_echo "yes" >&6; }
2617 # If we didn't sleep, we still need to ensure time stamps of config.status and
2618 # generated files are strictly newer.
2619 am_sleep_pid=
2620 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2621 ( sleep 1 ) &
2622 am_sleep_pid=$!
2623 fi
2624
2625 rm -f conftest.file
2626
2627 test "$program_prefix" != NONE &&
2628 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2629 # Use a double $ so make ignores it.
2630 test "$program_suffix" != NONE &&
2631 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2632 # Double any \ or $.
2633 # By default was `s,x,x', remove it if useless.
2634 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2635 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2636
2637 # Expand $ac_aux_dir to an absolute path.
2638 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2639
2640 if test x"${MISSING+set}" != xset; then
2641 case $am_aux_dir in
2642 *\ * | *\ *)
2643 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2644 *)
2645 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2646 esac
2647 fi
2648 # Use eval to expand $SHELL
2649 if eval "$MISSING --is-lightweight"; then
2650 am_missing_run="$MISSING "
2651 else
2652 am_missing_run=
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2654 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2655 fi
2656
2657 if test x"${install_sh+set}" != xset; then
2658 case $am_aux_dir in
2659 *\ * | *\ *)
2660 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2661 *)
2662 install_sh="\${SHELL} $am_aux_dir/install-sh"
2663 esac
2664 fi
2665
2666 # Installed binaries are usually stripped using 'strip' when the user
2667 # run "make install-strip". However 'strip' might not be the right
2668 # tool to use in cross-compilation environments, therefore Automake
2669 # will honor the 'STRIP' environment variable to overrule this program.
2670 if test "$cross_compiling" != no; then
2671 if test -n "$ac_tool_prefix"; then
2672 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2673 set dummy ${ac_tool_prefix}strip; ac_word=$2
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2675 $as_echo_n "checking for $ac_word... " >&6; }
2676 if ${ac_cv_prog_STRIP+:} false; then :
2677 $as_echo_n "(cached) " >&6
2678 else
2679 if test -n "$STRIP"; then
2680 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2681 else
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 for as_dir in $PATH
2684 do
2685 IFS=$as_save_IFS
2686 test -z "$as_dir" && as_dir=.
2687 for ac_exec_ext in '' $ac_executable_extensions; do
2688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2689 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2691 break 2
2692 fi
2693 done
2694 done
2695 IFS=$as_save_IFS
2696
2697 fi
2698 fi
2699 STRIP=$ac_cv_prog_STRIP
2700 if test -n "$STRIP"; then
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2702 $as_echo "$STRIP" >&6; }
2703 else
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2705 $as_echo "no" >&6; }
2706 fi
2707
2708
2709 fi
2710 if test -z "$ac_cv_prog_STRIP"; then
2711 ac_ct_STRIP=$STRIP
2712 # Extract the first word of "strip", so it can be a program name with args.
2713 set dummy strip; ac_word=$2
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715 $as_echo_n "checking for $ac_word... " >&6; }
2716 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2717 $as_echo_n "(cached) " >&6
2718 else
2719 if test -n "$ac_ct_STRIP"; then
2720 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2721 else
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 for as_dir in $PATH
2724 do
2725 IFS=$as_save_IFS
2726 test -z "$as_dir" && as_dir=.
2727 for ac_exec_ext in '' $ac_executable_extensions; do
2728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2729 ac_cv_prog_ac_ct_STRIP="strip"
2730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2731 break 2
2732 fi
2733 done
2734 done
2735 IFS=$as_save_IFS
2736
2737 fi
2738 fi
2739 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2740 if test -n "$ac_ct_STRIP"; then
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2742 $as_echo "$ac_ct_STRIP" >&6; }
2743 else
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745 $as_echo "no" >&6; }
2746 fi
2747
2748 if test "x$ac_ct_STRIP" = x; then
2749 STRIP=":"
2750 else
2751 case $cross_compiling:$ac_tool_warned in
2752 yes:)
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2755 ac_tool_warned=yes ;;
2756 esac
2757 STRIP=$ac_ct_STRIP
2758 fi
2759 else
2760 STRIP="$ac_cv_prog_STRIP"
2761 fi
2762
2763 fi
2764 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2765
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2767 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2768 if test -z "$MKDIR_P"; then
2769 if ${ac_cv_path_mkdir+:} false; then :
2770 $as_echo_n "(cached) " >&6
2771 else
2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2774 do
2775 IFS=$as_save_IFS
2776 test -z "$as_dir" && as_dir=.
2777 for ac_prog in mkdir gmkdir; do
2778 for ac_exec_ext in '' $ac_executable_extensions; do
2779 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2780 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2781 'mkdir (GNU coreutils) '* | \
2782 'mkdir (coreutils) '* | \
2783 'mkdir (fileutils) '4.1*)
2784 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2785 break 3;;
2786 esac
2787 done
2788 done
2789 done
2790 IFS=$as_save_IFS
2791
2792 fi
2793
2794 test -d ./--version && rmdir ./--version
2795 if test "${ac_cv_path_mkdir+set}" = set; then
2796 MKDIR_P="$ac_cv_path_mkdir -p"
2797 else
2798 # As a last resort, use the slow shell script. Don't cache a
2799 # value for MKDIR_P within a source directory, because that will
2800 # break other packages using the cache if that directory is
2801 # removed, or if the value is a relative name.
2802 MKDIR_P="$ac_install_sh -d"
2803 fi
2804 fi
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2806 $as_echo "$MKDIR_P" >&6; }
2807
2808 for ac_prog in gawk mawk nawk awk
2809 do
2810 # Extract the first word of "$ac_prog", so it can be a program name with args.
2811 set dummy $ac_prog; ac_word=$2
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2813 $as_echo_n "checking for $ac_word... " >&6; }
2814 if ${ac_cv_prog_AWK+:} false; then :
2815 $as_echo_n "(cached) " >&6
2816 else
2817 if test -n "$AWK"; then
2818 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2819 else
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821 for as_dir in $PATH
2822 do
2823 IFS=$as_save_IFS
2824 test -z "$as_dir" && as_dir=.
2825 for ac_exec_ext in '' $ac_executable_extensions; do
2826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2827 ac_cv_prog_AWK="$ac_prog"
2828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2829 break 2
2830 fi
2831 done
2832 done
2833 IFS=$as_save_IFS
2834
2835 fi
2836 fi
2837 AWK=$ac_cv_prog_AWK
2838 if test -n "$AWK"; then
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2840 $as_echo "$AWK" >&6; }
2841 else
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2843 $as_echo "no" >&6; }
2844 fi
2845
2846
2847 test -n "$AWK" && break
2848 done
2849
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2851 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2852 set x ${MAKE-make}
2853 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2854 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2855 $as_echo_n "(cached) " >&6
2856 else
2857 cat >conftest.make <<\_ACEOF
2858 SHELL = /bin/sh
2859 all:
2860 @echo '@@@%%%=$(MAKE)=@@@%%%'
2861 _ACEOF
2862 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2863 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2864 *@@@%%%=?*=@@@%%%*)
2865 eval ac_cv_prog_make_${ac_make}_set=yes;;
2866 *)
2867 eval ac_cv_prog_make_${ac_make}_set=no;;
2868 esac
2869 rm -f conftest.make
2870 fi
2871 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2873 $as_echo "yes" >&6; }
2874 SET_MAKE=
2875 else
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2877 $as_echo "no" >&6; }
2878 SET_MAKE="MAKE=${MAKE-make}"
2879 fi
2880
2881 rm -rf .tst 2>/dev/null
2882 mkdir .tst 2>/dev/null
2883 if test -d .tst; then
2884 am__leading_dot=.
2885 else
2886 am__leading_dot=_
2887 fi
2888 rmdir .tst 2>/dev/null
2889
2890 # Check whether --enable-silent-rules was given.
2891 if test "${enable_silent_rules+set}" = set; then :
2892 enableval=$enable_silent_rules;
2893 fi
2894
2895 case $enable_silent_rules in # (((
2896 yes) AM_DEFAULT_VERBOSITY=0;;
2897 no) AM_DEFAULT_VERBOSITY=1;;
2898 *) AM_DEFAULT_VERBOSITY=1;;
2899 esac
2900 am_make=${MAKE-make}
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2902 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2903 if ${am_cv_make_support_nested_variables+:} false; then :
2904 $as_echo_n "(cached) " >&6
2905 else
2906 if $as_echo 'TRUE=$(BAR$(V))
2907 BAR0=false
2908 BAR1=true
2909 V=1
2910 am__doit:
2911 @$(TRUE)
2912 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2913 am_cv_make_support_nested_variables=yes
2914 else
2915 am_cv_make_support_nested_variables=no
2916 fi
2917 fi
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2919 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2920 if test $am_cv_make_support_nested_variables = yes; then
2921 AM_V='$(V)'
2922 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2923 else
2924 AM_V=$AM_DEFAULT_VERBOSITY
2925 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2926 fi
2927 AM_BACKSLASH='\'
2928
2929 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2930 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2931 # is not polluted with repeated "-I."
2932 am__isrc=' -I$(srcdir)'
2933 # test to see if srcdir already configured
2934 if test -f $srcdir/config.status; then
2935 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2936 fi
2937 fi
2938
2939 # test whether we have cygpath
2940 if test -z "$CYGPATH_W"; then
2941 if (cygpath --version) >/dev/null 2>/dev/null; then
2942 CYGPATH_W='cygpath -w'
2943 else
2944 CYGPATH_W=echo
2945 fi
2946 fi
2947
2948
2949 # Define the identity of the package.
2950 PACKAGE='mona'
2951 VERSION='1.4'
2952
2953
2954 cat >>confdefs.h <<_ACEOF
2955 #define PACKAGE "$PACKAGE"
2956 _ACEOF
2957
2958
2959 cat >>confdefs.h <<_ACEOF
2960 #define VERSION "$VERSION"
2961 _ACEOF
2962
2963 # Some tools Automake needs.
2964
2965 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2966
2967
2968 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2969
2970
2971 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2972
2973
2974 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2975
2976
2977 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2978
2979 # For better backward compatibility. To be removed once Automake 1.9.x
2980 # dies out for good. For more background, see:
2981 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2982 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2983 mkdir_p='$(MKDIR_P)'
2984
2985 # We need awk for the "check" target (and possibly the TAP driver). The
2986 # system "awk" is bad on some platforms.
2987 # Always define AMTAR for backward compatibility. Yes, it's still used
2988 # in the wild :-( We should find a proper way to deprecate it ...
2989 AMTAR='$${TAR-tar}'
2990
2991
2992 # We'll loop over all known methods to create a tar archive until one works.
2993 _am_tools='gnutar pax cpio none'
2994
2995 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2996
2997
2998
2999
3000
3001
3002 # POSIX will say in a future version that running "rm -f" with no argument
3003 # is OK; and we want to be able to make that assumption in our Makefile
3004 # recipes. So use an aggressive probe to check that the usage we want is
3005 # actually supported "in the wild" to an acceptable degree.
3006 # See automake bug#10828.
3007 # To make any issue more visible, cause the running configure to be aborted
3008 # by default if the 'rm' program in use doesn't match our expectations; the
3009 # user can still override this though.
3010 if rm -f && rm -fr && rm -rf; then : OK; else
3011 cat >&2 <<'END'
3012 Oops!
3013
3014 Your 'rm' program seems unable to run without file operands specified
3015 on the command line, even when the '-f' option is present. This is contrary
3016 to the behaviour of most rm programs out there, and not conforming with
3017 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3018
3019 Please tell [email protected] about your system, including the value
3020 of your $PATH and any error possibly output before this message. This
3021 can help us improve future automake versions.
3022
3023 END
3024 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3025 echo 'Configuration will proceed anyway, since you have set the' >&2
3026 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3027 echo >&2
3028 else
3029 cat >&2 <<'END'
3030 Aborting the configuration process, to ensure you take notice of the issue.
3031
3032 You can download and install GNU coreutils to get an 'rm' implementation
3033 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3034
3035 If you want to complete the configuration process using your problematic
3036 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3037 to "yes", and re-run configure.
3038
3039 END
3040 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3041 fi
3042 fi
3043
3044 ac_config_headers="$ac_config_headers config.h"
3045
3046
3047
3048
3049
3050 cat >>confdefs.h <<_ACEOF
3051 #define RELEASE "$RELEASE"
3052 _ACEOF
3053
3054
3055 DEPDIR="${am__leading_dot}deps"
3056
3057 ac_config_commands="$ac_config_commands depfiles"
3058
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3060 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3061 cat > confinc.mk << 'END'
3062 am__doit:
3063 @echo this is the am__doit target >confinc.out
3064 .PHONY: am__doit
3065 END
3066 am__include="#"
3067 am__quote=
3068 # BSD make does it like this.
3069 echo '.include "confinc.mk" # ignored' > confmf.BSD
3070 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3071 echo 'include confinc.mk # ignored' > confmf.GNU
3072 _am_result=no
3073 for s in GNU BSD; do
3074 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3075 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3076 ac_status=$?
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); }
3079 case $?:`cat confinc.out 2>/dev/null` in #(
3080 '0:this is the am__doit target') :
3081 case $s in #(
3082 BSD) :
3083 am__include='.include' am__quote='"' ;; #(
3084 *) :
3085 am__include='include' am__quote='' ;;
3086 esac ;; #(
3087 *) :
3088 ;;
3089 esac
3090 if test "$am__include" != "#"; then
3091 _am_result="yes ($s style)"
3092 break
3093 fi
3094 done
3095 rm -f confinc.* confmf.*
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3097 $as_echo "${_am_result}" >&6; }
3098
3099 # Check whether --enable-dependency-tracking was given.
3100 if test "${enable_dependency_tracking+set}" = set; then :
3101 enableval=$enable_dependency_tracking;
3102 fi
3103
3104 if test "x$enable_dependency_tracking" != xno; then
3105 am_depcomp="$ac_aux_dir/depcomp"
3106 AMDEPBACKSLASH='\'
3107 am__nodep='_no'
3108 fi
3109 if test "x$enable_dependency_tracking" != xno; then
3110 AMDEP_TRUE=
3111 AMDEP_FALSE='#'
3112 else
3113 AMDEP_TRUE='#'
3114 AMDEP_FALSE=
3115 fi
3116
3117
3118 ac_ext=c
3119 ac_cpp='$CPP $CPPFLAGS'
3120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3123 if test -n "$ac_tool_prefix"; then
3124 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3125 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3127 $as_echo_n "checking for $ac_word... " >&6; }
3128 if ${ac_cv_prog_CC+:} false; then :
3129 $as_echo_n "(cached) " >&6
3130 else
3131 if test -n "$CC"; then
3132 ac_cv_prog_CC="$CC" # Let the user override the test.
3133 else
3134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135 for as_dir in $PATH
3136 do
3137 IFS=$as_save_IFS
3138 test -z "$as_dir" && as_dir=.
3139 for ac_exec_ext in '' $ac_executable_extensions; do
3140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3141 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3143 break 2
3144 fi
3145 done
3146 done
3147 IFS=$as_save_IFS
3148
3149 fi
3150 fi
3151 CC=$ac_cv_prog_CC
3152 if test -n "$CC"; then
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3154 $as_echo "$CC" >&6; }
3155 else
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3157 $as_echo "no" >&6; }
3158 fi
3159
3160
3161 fi
3162 if test -z "$ac_cv_prog_CC"; then
3163 ac_ct_CC=$CC
3164 # Extract the first word of "gcc", so it can be a program name with args.
3165 set dummy gcc; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3169 $as_echo_n "(cached) " >&6
3170 else
3171 if test -n "$ac_ct_CC"; then
3172 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3173 else
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 for as_dir in $PATH
3176 do
3177 IFS=$as_save_IFS
3178 test -z "$as_dir" && as_dir=.
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181 ac_cv_prog_ac_ct_CC="gcc"
3182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3183 break 2
3184 fi
3185 done
3186 done
3187 IFS=$as_save_IFS
3188
3189 fi
3190 fi
3191 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3192 if test -n "$ac_ct_CC"; then
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3194 $as_echo "$ac_ct_CC" >&6; }
3195 else
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3198 fi
3199
3200 if test "x$ac_ct_CC" = x; then
3201 CC=""
3202 else
3203 case $cross_compiling:$ac_tool_warned in
3204 yes:)
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3207 ac_tool_warned=yes ;;
3208 esac
3209 CC=$ac_ct_CC
3210 fi
3211 else
3212 CC="$ac_cv_prog_CC"
3213 fi
3214
3215 if test -z "$CC"; then
3216 if test -n "$ac_tool_prefix"; then
3217 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3218 set dummy ${ac_tool_prefix}cc; ac_word=$2
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3220 $as_echo_n "checking for $ac_word... " >&6; }
3221 if ${ac_cv_prog_CC+:} false; then :
3222 $as_echo_n "(cached) " >&6
3223 else
3224 if test -n "$CC"; then
3225 ac_cv_prog_CC="$CC" # Let the user override the test.
3226 else
3227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228 for as_dir in $PATH
3229 do
3230 IFS=$as_save_IFS
3231 test -z "$as_dir" && as_dir=.
3232 for ac_exec_ext in '' $ac_executable_extensions; do
3233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3234 ac_cv_prog_CC="${ac_tool_prefix}cc"
3235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3236 break 2
3237 fi
3238 done
3239 done
3240 IFS=$as_save_IFS
3241
3242 fi
3243 fi
3244 CC=$ac_cv_prog_CC
3245 if test -n "$CC"; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3247 $as_echo "$CC" >&6; }
3248 else
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3250 $as_echo "no" >&6; }
3251 fi
3252
3253
3254 fi
3255 fi
3256 if test -z "$CC"; then
3257 # Extract the first word of "cc", so it can be a program name with args.
3258 set dummy cc; ac_word=$2
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3260 $as_echo_n "checking for $ac_word... " >&6; }
3261 if ${ac_cv_prog_CC+:} false; then :
3262 $as_echo_n "(cached) " >&6
3263 else
3264 if test -n "$CC"; then
3265 ac_cv_prog_CC="$CC" # Let the user override the test.
3266 else
3267 ac_prog_rejected=no
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269 for as_dir in $PATH
3270 do
3271 IFS=$as_save_IFS
3272 test -z "$as_dir" && as_dir=.
3273 for ac_exec_ext in '' $ac_executable_extensions; do
3274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3275 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3276 ac_prog_rejected=yes
3277 continue
3278 fi
3279 ac_cv_prog_CC="cc"
3280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3281 break 2
3282 fi
3283 done
3284 done
3285 IFS=$as_save_IFS
3286
3287 if test $ac_prog_rejected = yes; then
3288 # We found a bogon in the path, so make sure we never use it.
3289 set dummy $ac_cv_prog_CC
3290 shift
3291 if test $# != 0; then
3292 # We chose a different compiler from the bogus one.
3293 # However, it has the same basename, so the bogon will be chosen
3294 # first if we set CC to just the basename; use the full file name.
3295 shift
3296 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3297 fi
3298 fi
3299 fi
3300 fi
3301 CC=$ac_cv_prog_CC
3302 if test -n "$CC"; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3304 $as_echo "$CC" >&6; }
3305 else
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3308 fi
3309
3310
3311 fi
3312 if test -z "$CC"; then
3313 if test -n "$ac_tool_prefix"; then
3314 for ac_prog in cl.exe
3315 do
3316 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3317 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3319 $as_echo_n "checking for $ac_word... " >&6; }
3320 if ${ac_cv_prog_CC+:} false; then :
3321 $as_echo_n "(cached) " >&6
3322 else
3323 if test -n "$CC"; then
3324 ac_cv_prog_CC="$CC" # Let the user override the test.
3325 else
3326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3327 for as_dir in $PATH
3328 do
3329 IFS=$as_save_IFS
3330 test -z "$as_dir" && as_dir=.
3331 for ac_exec_ext in '' $ac_executable_extensions; do
3332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3333 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3335 break 2
3336 fi
3337 done
3338 done
3339 IFS=$as_save_IFS
3340
3341 fi
3342 fi
3343 CC=$ac_cv_prog_CC
3344 if test -n "$CC"; then
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3346 $as_echo "$CC" >&6; }
3347 else
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3349 $as_echo "no" >&6; }
3350 fi
3351
3352
3353 test -n "$CC" && break
3354 done
3355 fi
3356 if test -z "$CC"; then
3357 ac_ct_CC=$CC
3358 for ac_prog in cl.exe
3359 do
3360 # Extract the first word of "$ac_prog", so it can be a program name with args.
3361 set dummy $ac_prog; ac_word=$2
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363 $as_echo_n "checking for $ac_word... " >&6; }
3364 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3365 $as_echo_n "(cached) " >&6
3366 else
3367 if test -n "$ac_ct_CC"; then
3368 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3369 else
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 for as_dir in $PATH
3372 do
3373 IFS=$as_save_IFS
3374 test -z "$as_dir" && as_dir=.
3375 for ac_exec_ext in '' $ac_executable_extensions; do
3376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3377 ac_cv_prog_ac_ct_CC="$ac_prog"
3378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3379 break 2
3380 fi
3381 done
3382 done
3383 IFS=$as_save_IFS
3384
3385 fi
3386 fi
3387 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3388 if test -n "$ac_ct_CC"; then
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3390 $as_echo "$ac_ct_CC" >&6; }
3391 else
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393 $as_echo "no" >&6; }
3394 fi
3395
3396
3397 test -n "$ac_ct_CC" && break
3398 done
3399
3400 if test "x$ac_ct_CC" = x; then
3401 CC=""
3402 else
3403 case $cross_compiling:$ac_tool_warned in
3404 yes:)
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3407 ac_tool_warned=yes ;;
3408 esac
3409 CC=$ac_ct_CC
3410 fi
3411 fi
3412
3413 fi
3414
3415
3416 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3418 as_fn_error $? "no acceptable C compiler found in \$PATH
3419 See \`config.log' for more details" "$LINENO" 5; }
3420
3421 # Provide some information about the compiler.
3422 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3423 set X $ac_compile
3424 ac_compiler=$2
3425 for ac_option in --version -v -V -qversion; do
3426 { { ac_try="$ac_compiler $ac_option >&5"
3427 case "(($ac_try" in
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3430 esac
3431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432 $as_echo "$ac_try_echo"; } >&5
3433 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3434 ac_status=$?
3435 if test -s conftest.err; then
3436 sed '10a\
3437 ... rest of stderr output deleted ...
3438 10q' conftest.err >conftest.er1
3439 cat conftest.er1 >&5
3440 fi
3441 rm -f conftest.er1 conftest.err
3442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3443 test $ac_status = 0; }
3444 done
3445
3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h. */
3448
3449 int
3450 main ()
3451 {
3452
3453 ;
3454 return 0;
3455 }
3456 _ACEOF
3457 ac_clean_files_save=$ac_clean_files
3458 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3459 # Try to create an executable without -o first, disregard a.out.
3460 # It will help us diagnose broken compilers, and finding out an intuition
3461 # of exeext.
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3463 $as_echo_n "checking whether the C compiler works... " >&6; }
3464 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3465
3466 # The possible output files:
3467 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3468
3469 ac_rmfiles=
3470 for ac_file in $ac_files
3471 do
3472 case $ac_file in
3473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3474 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3475 esac
3476 done
3477 rm -f $ac_rmfiles
3478
3479 if { { ac_try="$ac_link_default"
3480 case "(($ac_try" in
3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3483 esac
3484 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3485 $as_echo "$ac_try_echo"; } >&5
3486 (eval "$ac_link_default") 2>&5
3487 ac_status=$?
3488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3489 test $ac_status = 0; }; then :
3490 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3491 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3492 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3493 # so that the user can short-circuit this test for compilers unknown to
3494 # Autoconf.
3495 for ac_file in $ac_files ''
3496 do
3497 test -f "$ac_file" || continue
3498 case $ac_file in
3499 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3500 ;;
3501 [ab].out )
3502 # We found the default executable, but exeext='' is most
3503 # certainly right.
3504 break;;
3505 *.* )
3506 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3507 then :; else
3508 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3509 fi
3510 # We set ac_cv_exeext here because the later test for it is not
3511 # safe: cross compilers may not add the suffix if given an `-o'
3512 # argument, so we may need to know it at that point already.
3513 # Even if this section looks crufty: it has the advantage of
3514 # actually working.
3515 break;;
3516 * )
3517 break;;
3518 esac
3519 done
3520 test "$ac_cv_exeext" = no && ac_cv_exeext=
3521
3522 else
3523 ac_file=''
3524 fi
3525 if test -z "$ac_file"; then :
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527 $as_echo "no" >&6; }
3528 $as_echo "$as_me: failed program was:" >&5
3529 sed 's/^/| /' conftest.$ac_ext >&5
3530
3531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3533 as_fn_error 77 "C compiler cannot create executables
3534 See \`config.log' for more details" "$LINENO" 5; }
3535 else
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3537 $as_echo "yes" >&6; }
3538 fi
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3540 $as_echo_n "checking for C compiler default output file name... " >&6; }
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3542 $as_echo "$ac_file" >&6; }
3543 ac_exeext=$ac_cv_exeext
3544
3545 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3546 ac_clean_files=$ac_clean_files_save
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3548 $as_echo_n "checking for suffix of executables... " >&6; }
3549 if { { ac_try="$ac_link"
3550 case "(($ac_try" in
3551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552 *) ac_try_echo=$ac_try;;
3553 esac
3554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3555 $as_echo "$ac_try_echo"; } >&5
3556 (eval "$ac_link") 2>&5
3557 ac_status=$?
3558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3559 test $ac_status = 0; }; then :
3560 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3561 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3562 # work properly (i.e., refer to `conftest.exe'), while it won't with
3563 # `rm'.
3564 for ac_file in conftest.exe conftest conftest.*; do
3565 test -f "$ac_file" || continue
3566 case $ac_file in
3567 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3568 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3569 break;;
3570 * ) break;;
3571 esac
3572 done
3573 else
3574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3576 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3577 See \`config.log' for more details" "$LINENO" 5; }
3578 fi
3579 rm -f conftest conftest$ac_cv_exeext
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3581 $as_echo "$ac_cv_exeext" >&6; }
3582
3583 rm -f conftest.$ac_ext
3584 EXEEXT=$ac_cv_exeext
3585 ac_exeext=$EXEEXT
3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h. */
3588 #include <stdio.h>
3589 int
3590 main ()
3591 {
3592 FILE *f = fopen ("conftest.out", "w");
3593 return ferror (f) || fclose (f) != 0;
3594
3595 ;
3596 return 0;
3597 }
3598 _ACEOF
3599 ac_clean_files="$ac_clean_files conftest.out"
3600 # Check that the compiler produces executables we can run. If not, either
3601 # the compiler is broken, or we cross compile.
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3603 $as_echo_n "checking whether we are cross compiling... " >&6; }
3604 if test "$cross_compiling" != yes; then
3605 { { ac_try="$ac_link"
3606 case "(($ac_try" in
3607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608 *) ac_try_echo=$ac_try;;
3609 esac
3610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3611 $as_echo "$ac_try_echo"; } >&5
3612 (eval "$ac_link") 2>&5
3613 ac_status=$?
3614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3615 test $ac_status = 0; }
3616 if { ac_try='./conftest$ac_cv_exeext'
3617 { { case "(($ac_try" in
3618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3619 *) ac_try_echo=$ac_try;;
3620 esac
3621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3622 $as_echo "$ac_try_echo"; } >&5
3623 (eval "$ac_try") 2>&5
3624 ac_status=$?
3625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3626 test $ac_status = 0; }; }; then
3627 cross_compiling=no
3628 else
3629 if test "$cross_compiling" = maybe; then
3630 cross_compiling=yes
3631 else
3632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3634 as_fn_error $? "cannot run C compiled programs.
3635 If you meant to cross compile, use \`--host'.
3636 See \`config.log' for more details" "$LINENO" 5; }
3637 fi
3638 fi
3639 fi
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3641 $as_echo "$cross_compiling" >&6; }
3642
3643 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3644 ac_clean_files=$ac_clean_files_save
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3646 $as_echo_n "checking for suffix of object files... " >&6; }
3647 if ${ac_cv_objext+:} false; then :
3648 $as_echo_n "(cached) " >&6
3649 else
3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651 /* end confdefs.h. */
3652
3653 int
3654 main ()
3655 {
3656
3657 ;
3658 return 0;
3659 }
3660 _ACEOF
3661 rm -f conftest.o conftest.obj
3662 if { { ac_try="$ac_compile"
3663 case "(($ac_try" in
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3666 esac
3667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3668 $as_echo "$ac_try_echo"; } >&5
3669 (eval "$ac_compile") 2>&5
3670 ac_status=$?
3671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3672 test $ac_status = 0; }; then :
3673 for ac_file in conftest.o conftest.obj conftest.*; do
3674 test -f "$ac_file" || continue;
3675 case $ac_file in
3676 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3677 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3678 break;;
3679 esac
3680 done
3681 else
3682 $as_echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3684
3685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3687 as_fn_error $? "cannot compute suffix of object files: cannot compile
3688 See \`config.log' for more details" "$LINENO" 5; }
3689 fi
3690 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3691 fi
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3693 $as_echo "$ac_cv_objext" >&6; }
3694 OBJEXT=$ac_cv_objext
3695 ac_objext=$OBJEXT
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3697 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3698 if ${ac_cv_c_compiler_gnu+:} false; then :
3699 $as_echo_n "(cached) " >&6
3700 else
3701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702 /* end confdefs.h. */
3703
3704 int
3705 main ()
3706 {
3707 #ifndef __GNUC__
3708 choke me
3709 #endif
3710
3711 ;
3712 return 0;
3713 }
3714 _ACEOF
3715 if ac_fn_c_try_compile "$LINENO"; then :
3716 ac_compiler_gnu=yes
3717 else
3718 ac_compiler_gnu=no
3719 fi
3720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3721 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3722
3723 fi
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3725 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3726 if test $ac_compiler_gnu = yes; then
3727 GCC=yes
3728 else
3729 GCC=
3730 fi
3731 ac_test_CFLAGS=${CFLAGS+set}
3732 ac_save_CFLAGS=$CFLAGS
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3734 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3735 if ${ac_cv_prog_cc_g+:} false; then :
3736 $as_echo_n "(cached) " >&6
3737 else
3738 ac_save_c_werror_flag=$ac_c_werror_flag
3739 ac_c_werror_flag=yes
3740 ac_cv_prog_cc_g=no
3741 CFLAGS="-g"
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h. */
3744
3745 int
3746 main ()
3747 {
3748
3749 ;
3750 return 0;
3751 }
3752 _ACEOF
3753 if ac_fn_c_try_compile "$LINENO"; then :
3754 ac_cv_prog_cc_g=yes
3755 else
3756 CFLAGS=""
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3759
3760 int
3761 main ()
3762 {
3763
3764 ;
3765 return 0;
3766 }
3767 _ACEOF
3768 if ac_fn_c_try_compile "$LINENO"; then :
3769
3770 else
3771 ac_c_werror_flag=$ac_save_c_werror_flag
3772 CFLAGS="-g"
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h. */
3775
3776 int
3777 main ()
3778 {
3779
3780 ;
3781 return 0;
3782 }
3783 _ACEOF
3784 if ac_fn_c_try_compile "$LINENO"; then :
3785 ac_cv_prog_cc_g=yes
3786 fi
3787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788 fi
3789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3790 fi
3791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3792 ac_c_werror_flag=$ac_save_c_werror_flag
3793 fi
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3795 $as_echo "$ac_cv_prog_cc_g" >&6; }
3796 if test "$ac_test_CFLAGS" = set; then
3797 CFLAGS=$ac_save_CFLAGS
3798 elif test $ac_cv_prog_cc_g = yes; then
3799 if test "$GCC" = yes; then
3800 CFLAGS="-g -O2"
3801 else
3802 CFLAGS="-g"
3803 fi
3804 else
3805 if test "$GCC" = yes; then
3806 CFLAGS="-O2"
3807 else
3808 CFLAGS=
3809 fi
3810 fi
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3812 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3813 if ${ac_cv_prog_cc_c89+:} false; then :
3814 $as_echo_n "(cached) " >&6
3815 else
3816 ac_cv_prog_cc_c89=no
3817 ac_save_CC=$CC
3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h. */
3820 #include <stdarg.h>
3821 #include <stdio.h>
3822 struct stat;
3823 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3824 struct buf { int x; };
3825 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3826 static char *e (p, i)
3827 char **p;
3828 int i;
3829 {
3830 return p[i];
3831 }
3832 static char *f (char * (*g) (char **, int), char **p, ...)
3833 {
3834 char *s;
3835 va_list v;
3836 va_start (v,p);
3837 s = g (p, va_arg (v,int));
3838 va_end (v);
3839 return s;
3840 }
3841
3842 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3843 function prototypes and stuff, but not '\xHH' hex character constants.
3844 These don't provoke an error unfortunately, instead are silently treated
3845 as 'x'. The following induces an error, until -std is added to get
3846 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3847 array size at least. It's necessary to write '\x00'==0 to get something
3848 that's true only with -std. */
3849 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3850
3851 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3852 inside strings and character constants. */
3853 #define FOO(x) 'x'
3854 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3855
3856 int test (int i, double x);
3857 struct s1 {int (*f) (int a);};
3858 struct s2 {int (*f) (double a);};
3859 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3860 int argc;
3861 char **argv;
3862 int
3863 main ()
3864 {
3865 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3866 ;
3867 return 0;
3868 }
3869 _ACEOF
3870 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3871 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3872 do
3873 CC="$ac_save_CC $ac_arg"
3874 if ac_fn_c_try_compile "$LINENO"; then :
3875 ac_cv_prog_cc_c89=$ac_arg
3876 fi
3877 rm -f core conftest.err conftest.$ac_objext
3878 test "x$ac_cv_prog_cc_c89" != "xno" && break
3879 done
3880 rm -f conftest.$ac_ext
3881 CC=$ac_save_CC
3882
3883 fi
3884 # AC_CACHE_VAL
3885 case "x$ac_cv_prog_cc_c89" in
3886 x)
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3888 $as_echo "none needed" >&6; } ;;
3889 xno)
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3891 $as_echo "unsupported" >&6; } ;;
3892 *)
3893 CC="$CC $ac_cv_prog_cc_c89"
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3895 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3896 esac
3897 if test "x$ac_cv_prog_cc_c89" != xno; then :
3898
3899 fi
3900
3901 ac_ext=c
3902 ac_cpp='$CPP $CPPFLAGS'
3903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3906
3907 ac_ext=c
3908 ac_cpp='$CPP $CPPFLAGS'
3909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3913 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3914 if ${am_cv_prog_cc_c_o+:} false; then :
3915 $as_echo_n "(cached) " >&6
3916 else
3917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918 /* end confdefs.h. */
3919
3920 int
3921 main ()
3922 {
3923
3924 ;
3925 return 0;
3926 }
3927 _ACEOF
3928 # Make sure it works both with $CC and with simple cc.
3929 # Following AC_PROG_CC_C_O, we do the test twice because some
3930 # compilers refuse to overwrite an existing .o file with -o,
3931 # though they will create one.
3932 am_cv_prog_cc_c_o=yes
3933 for am_i in 1 2; do
3934 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3935 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3936 ac_status=$?
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); } \
3939 && test -f conftest2.$ac_objext; then
3940 : OK
3941 else
3942 am_cv_prog_cc_c_o=no
3943 break
3944 fi
3945 done
3946 rm -f core conftest*
3947 unset am_i
3948 fi
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3950 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3951 if test "$am_cv_prog_cc_c_o" != yes; then
3952 # Losing compiler, so override with the script.
3953 # FIXME: It is wrong to rewrite CC.
3954 # But if we don't then we get into trouble of one sort or another.
3955 # A longer-term fix would be to have automake use am__CC in this case,
3956 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3957 CC="$am_aux_dir/compile $CC"
3958 fi
3959 ac_ext=c
3960 ac_cpp='$CPP $CPPFLAGS'
3961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3964
3965
3966 depcc="$CC" am_compiler_list=
3967
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3969 $as_echo_n "checking dependency style of $depcc... " >&6; }
3970 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3971 $as_echo_n "(cached) " >&6
3972 else
3973 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3974 # We make a subdir and do the tests there. Otherwise we can end up
3975 # making bogus files that we don't know about and never remove. For
3976 # instance it was reported that on HP-UX the gcc test will end up
3977 # making a dummy file named 'D' -- because '-MD' means "put the output
3978 # in D".
3979 rm -rf conftest.dir
3980 mkdir conftest.dir
3981 # Copy depcomp to subdir because otherwise we won't find it if we're
3982 # using a relative directory.
3983 cp "$am_depcomp" conftest.dir
3984 cd conftest.dir
3985 # We will build objects and dependencies in a subdirectory because
3986 # it helps to detect inapplicable dependency modes. For instance
3987 # both Tru64's cc and ICC support -MD to output dependencies as a
3988 # side effect of compilation, but ICC will put the dependencies in
3989 # the current directory while Tru64 will put them in the object
3990 # directory.
3991 mkdir sub
3992
3993 am_cv_CC_dependencies_compiler_type=none
3994 if test "$am_compiler_list" = ""; then
3995 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3996 fi
3997 am__universal=false
3998 case " $depcc " in #(
3999 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4000 esac
4001
4002 for depmode in $am_compiler_list; do
4003 # Setup a source with many dependencies, because some compilers
4004 # like to wrap large dependency lists on column 80 (with \), and
4005 # we should not choose a depcomp mode which is confused by this.
4006 #
4007 # We need to recreate these files for each test, as the compiler may
4008 # overwrite some of them when testing with obscure command lines.
4009 # This happens at least with the AIX C compiler.
4010 : > sub/conftest.c
4011 for i in 1 2 3 4 5 6; do
4012 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4013 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4014 # Solaris 10 /bin/sh.
4015 echo '/* dummy */' > sub/conftst$i.h
4016 done
4017 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4018
4019 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4020 # mode. It turns out that the SunPro C++ compiler does not properly
4021 # handle '-M -o', and we need to detect this. Also, some Intel
4022 # versions had trouble with output in subdirs.
4023 am__obj=sub/conftest.${OBJEXT-o}
4024 am__minus_obj="-o $am__obj"
4025 case $depmode in
4026 gcc)
4027 # This depmode causes a compiler race in universal mode.
4028 test "$am__universal" = false || continue
4029 ;;
4030 nosideeffect)
4031 # After this tag, mechanisms are not by side-effect, so they'll
4032 # only be used when explicitly requested.
4033 if test "x$enable_dependency_tracking" = xyes; then
4034 continue
4035 else
4036 break
4037 fi
4038 ;;
4039 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4040 # This compiler won't grok '-c -o', but also, the minuso test has
4041 # not run yet. These depmodes are late enough in the game, and
4042 # so weak that their functioning should not be impacted.
4043 am__obj=conftest.${OBJEXT-o}
4044 am__minus_obj=
4045 ;;
4046 none) break ;;
4047 esac
4048 if depmode=$depmode \
4049 source=sub/conftest.c object=$am__obj \
4050 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4051 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4052 >/dev/null 2>conftest.err &&
4053 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4054 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4055 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4056 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4057 # icc doesn't choke on unknown options, it will just issue warnings
4058 # or remarks (even with -Werror). So we grep stderr for any message
4059 # that says an option was ignored or not supported.
4060 # When given -MP, icc 7.0 and 7.1 complain thusly:
4061 # icc: Command line warning: ignoring option '-M'; no argument required
4062 # The diagnosis changed in icc 8.0:
4063 # icc: Command line remark: option '-MP' not supported
4064 if (grep 'ignoring option' conftest.err ||
4065 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4066 am_cv_CC_dependencies_compiler_type=$depmode
4067 break
4068 fi
4069 fi
4070 done
4071
4072 cd ..
4073 rm -rf conftest.dir
4074 else
4075 am_cv_CC_dependencies_compiler_type=none
4076 fi
4077
4078 fi
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4080 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4081 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4082
4083 if
4084 test "x$enable_dependency_tracking" != xno \
4085 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4086 am__fastdepCC_TRUE=
4087 am__fastdepCC_FALSE='#'
4088 else
4089 am__fastdepCC_TRUE='#'
4090 am__fastdepCC_FALSE=
4091 fi
4092
4093
4094
4095 ac_ext=c
4096 ac_cpp='$CPP $CPPFLAGS'
4097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4101 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4102 # On Suns, sometimes $CPP names a directory.
4103 if test -n "$CPP" && test -d "$CPP"; then
4104 CPP=
4105 fi
4106 if test -z "$CPP"; then
4107 if ${ac_cv_prog_CPP+:} false; then :
4108 $as_echo_n "(cached) " >&6
4109 else
4110 # Double quotes because CPP needs to be expanded
4111 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4112 do
4113 ac_preproc_ok=false
4114 for ac_c_preproc_warn_flag in '' yes
4115 do
4116 # Use a header file that comes with gcc, so configuring glibc
4117 # with a fresh cross-compiler works.
4118 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4119 # <limits.h> exists even on freestanding compilers.
4120 # On the NeXT, cc -E runs the code through the compiler's parser,
4121 # not just through cpp. "Syntax error" is here to catch this case.
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4124 #ifdef __STDC__
4125 # include <limits.h>
4126 #else
4127 # include <assert.h>
4128 #endif
4129 Syntax error
4130 _ACEOF
4131 if ac_fn_c_try_cpp "$LINENO"; then :
4132
4133 else
4134 # Broken: fails on valid input.
4135 continue
4136 fi
4137 rm -f conftest.err conftest.i conftest.$ac_ext
4138
4139 # OK, works on sane cases. Now check whether nonexistent headers
4140 # can be detected and how.
4141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4142 /* end confdefs.h. */
4143 #include <ac_nonexistent.h>
4144 _ACEOF
4145 if ac_fn_c_try_cpp "$LINENO"; then :
4146 # Broken: success on invalid input.
4147 continue
4148 else
4149 # Passes both tests.
4150 ac_preproc_ok=:
4151 break
4152 fi
4153 rm -f conftest.err conftest.i conftest.$ac_ext
4154
4155 done
4156 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4157 rm -f conftest.i conftest.err conftest.$ac_ext
4158 if $ac_preproc_ok; then :
4159 break
4160 fi
4161
4162 done
4163 ac_cv_prog_CPP=$CPP
4164
4165 fi
4166 CPP=$ac_cv_prog_CPP
4167 else
4168 ac_cv_prog_CPP=$CPP
4169 fi
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4171 $as_echo "$CPP" >&6; }
4172 ac_preproc_ok=false
4173 for ac_c_preproc_warn_flag in '' yes
4174 do
4175 # Use a header file that comes with gcc, so configuring glibc
4176 # with a fresh cross-compiler works.
4177 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4178 # <limits.h> exists even on freestanding compilers.
4179 # On the NeXT, cc -E runs the code through the compiler's parser,
4180 # not just through cpp. "Syntax error" is here to catch this case.
4181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h. */
4183 #ifdef __STDC__
4184 # include <limits.h>
4185 #else
4186 # include <assert.h>
4187 #endif
4188 Syntax error
4189 _ACEOF
4190 if ac_fn_c_try_cpp "$LINENO"; then :
4191
4192 else
4193 # Broken: fails on valid input.
4194 continue
4195 fi
4196 rm -f conftest.err conftest.i conftest.$ac_ext
4197
4198 # OK, works on sane cases. Now check whether nonexistent headers
4199 # can be detected and how.
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4202 #include <ac_nonexistent.h>
4203 _ACEOF
4204 if ac_fn_c_try_cpp "$LINENO"; then :
4205 # Broken: success on invalid input.
4206 continue
4207 else
4208 # Passes both tests.
4209 ac_preproc_ok=:
4210 break
4211 fi
4212 rm -f conftest.err conftest.i conftest.$ac_ext
4213
4214 done
4215 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4216 rm -f conftest.i conftest.err conftest.$ac_ext
4217 if $ac_preproc_ok; then :
4218
4219 else
4220 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4222 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4223 See \`config.log' for more details" "$LINENO" 5; }
4224 fi
4225
4226 ac_ext=c
4227 ac_cpp='$CPP $CPPFLAGS'
4228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4231
4232
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4234 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4235 if ${ac_cv_path_GREP+:} false; then :
4236 $as_echo_n "(cached) " >&6
4237 else
4238 if test -z "$GREP"; then
4239 ac_path_GREP_found=false
4240 # Loop through the user's path and test for each of PROGNAME-LIST
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4243 do
4244 IFS=$as_save_IFS
4245 test -z "$as_dir" && as_dir=.
4246 for ac_prog in grep ggrep; do
4247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4249 as_fn_executable_p "$ac_path_GREP" || continue
4250 # Check for GNU ac_path_GREP and select it if it is found.
4251 # Check for GNU $ac_path_GREP
4252 case `"$ac_path_GREP" --version 2>&1` in
4253 *GNU*)
4254 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4255 *)
4256 ac_count=0
4257 $as_echo_n 0123456789 >"conftest.in"
4258 while :
4259 do
4260 cat "conftest.in" "conftest.in" >"conftest.tmp"
4261 mv "conftest.tmp" "conftest.in"
4262 cp "conftest.in" "conftest.nl"
4263 $as_echo 'GREP' >> "conftest.nl"
4264 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4265 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4266 as_fn_arith $ac_count + 1 && ac_count=$as_val
4267 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4268 # Best one so far, save it but keep looking for a better one
4269 ac_cv_path_GREP="$ac_path_GREP"
4270 ac_path_GREP_max=$ac_count
4271 fi
4272 # 10*(2^10) chars as input seems more than enough
4273 test $ac_count -gt 10 && break
4274 done
4275 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4276 esac
4277
4278 $ac_path_GREP_found && break 3
4279 done
4280 done
4281 done
4282 IFS=$as_save_IFS
4283 if test -z "$ac_cv_path_GREP"; then
4284 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4285 fi
4286 else
4287 ac_cv_path_GREP=$GREP
4288 fi
4289
4290 fi
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4292 $as_echo "$ac_cv_path_GREP" >&6; }
4293 GREP="$ac_cv_path_GREP"
4294
4295
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4297 $as_echo_n "checking for egrep... " >&6; }
4298 if ${ac_cv_path_EGREP+:} false; then :
4299 $as_echo_n "(cached) " >&6
4300 else
4301 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4302 then ac_cv_path_EGREP="$GREP -E"
4303 else
4304 if test -z "$EGREP"; then
4305 ac_path_EGREP_found=false
4306 # Loop through the user's path and test for each of PROGNAME-LIST
4307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4309 do
4310 IFS=$as_save_IFS
4311 test -z "$as_dir" && as_dir=.
4312 for ac_prog in egrep; do
4313 for ac_exec_ext in '' $ac_executable_extensions; do
4314 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4315 as_fn_executable_p "$ac_path_EGREP" || continue
4316 # Check for GNU ac_path_EGREP and select it if it is found.
4317 # Check for GNU $ac_path_EGREP
4318 case `"$ac_path_EGREP" --version 2>&1` in
4319 *GNU*)
4320 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4321 *)
4322 ac_count=0
4323 $as_echo_n 0123456789 >"conftest.in"
4324 while :
4325 do
4326 cat "conftest.in" "conftest.in" >"conftest.tmp"
4327 mv "conftest.tmp" "conftest.in"
4328 cp "conftest.in" "conftest.nl"
4329 $as_echo 'EGREP' >> "conftest.nl"
4330 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4331 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4332 as_fn_arith $ac_count + 1 && ac_count=$as_val
4333 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4334 # Best one so far, save it but keep looking for a better one
4335 ac_cv_path_EGREP="$ac_path_EGREP"
4336 ac_path_EGREP_max=$ac_count
4337 fi
4338 # 10*(2^10) chars as input seems more than enough
4339 test $ac_count -gt 10 && break
4340 done
4341 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4342 esac
4343
4344 $ac_path_EGREP_found && break 3
4345 done
4346 done
4347 done
4348 IFS=$as_save_IFS
4349 if test -z "$ac_cv_path_EGREP"; then
4350 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4351 fi
4352 else
4353 ac_cv_path_EGREP=$EGREP
4354 fi
4355
4356 fi
4357 fi
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4359 $as_echo "$ac_cv_path_EGREP" >&6; }
4360 EGREP="$ac_cv_path_EGREP"
4361
4362
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4364 $as_echo_n "checking for ANSI C header files... " >&6; }
4365 if ${ac_cv_header_stdc+:} false; then :
4366 $as_echo_n "(cached) " >&6
4367 else
4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h. */
4370 #include <stdlib.h>
4371 #include <stdarg.h>
4372 #include <string.h>
4373 #include <float.h>
4374
4375 int
4376 main ()
4377 {
4378
4379 ;
4380 return 0;
4381 }
4382 _ACEOF
4383 if ac_fn_c_try_compile "$LINENO"; then :
4384 ac_cv_header_stdc=yes
4385 else
4386 ac_cv_header_stdc=no
4387 fi
4388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4389
4390 if test $ac_cv_header_stdc = yes; then
4391 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h. */
4394 #include <string.h>
4395
4396 _ACEOF
4397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4398 $EGREP "memchr" >/dev/null 2>&1; then :
4399
4400 else
4401 ac_cv_header_stdc=no
4402 fi
4403 rm -f conftest*
4404
4405 fi
4406
4407 if test $ac_cv_header_stdc = yes; then
4408 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h. */
4411 #include <stdlib.h>
4412
4413 _ACEOF
4414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4415 $EGREP "free" >/dev/null 2>&1; then :
4416
4417 else
4418 ac_cv_header_stdc=no
4419 fi
4420 rm -f conftest*
4421
4422 fi
4423
4424 if test $ac_cv_header_stdc = yes; then
4425 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4426 if test "$cross_compiling" = yes; then :
4427 :
4428 else
4429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430 /* end confdefs.h. */
4431 #include <ctype.h>
4432 #include <stdlib.h>
4433 #if ((' ' & 0x0FF) == 0x020)
4434 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4435 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4436 #else
4437 # define ISLOWER(c) \
4438 (('a' <= (c) && (c) <= 'i') \
4439 || ('j' <= (c) && (c) <= 'r') \
4440 || ('s' <= (c) && (c) <= 'z'))
4441 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4442 #endif
4443
4444 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4445 int
4446 main ()
4447 {
4448 int i;
4449 for (i = 0; i < 256; i++)
4450 if (XOR (islower (i), ISLOWER (i))
4451 || toupper (i) != TOUPPER (i))
4452 return 2;
4453 return 0;
4454 }
4455 _ACEOF
4456 if ac_fn_c_try_run "$LINENO"; then :
4457
4458 else
4459 ac_cv_header_stdc=no
4460 fi
4461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4462 conftest.$ac_objext conftest.beam conftest.$ac_ext
4463 fi
4464
4465 fi
4466 fi
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4468 $as_echo "$ac_cv_header_stdc" >&6; }
4469 if test $ac_cv_header_stdc = yes; then
4470
4471 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4472
4473 fi
4474
4475 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4476 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4477 inttypes.h stdint.h unistd.h
4478 do :
4479 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4480 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4481 "
4482 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4483 cat >>confdefs.h <<_ACEOF
4484 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4485 _ACEOF
4486
4487 fi
4488
4489 done
4490
4491
4492
4493 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4494 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4495 MINIX=yes
4496 else
4497 MINIX=
4498 fi
4499
4500
4501 if test "$MINIX" = yes; then
4502
4503 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4504
4505
4506 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4507
4508
4509 $as_echo "#define _MINIX 1" >>confdefs.h
4510
4511 fi
4512
4513
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4515 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4516 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4517 $as_echo_n "(cached) " >&6
4518 else
4519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4520 /* end confdefs.h. */
4521
4522 # define __EXTENSIONS__ 1
4523 $ac_includes_default
4524 int
4525 main ()
4526 {
4527
4528 ;
4529 return 0;
4530 }
4531 _ACEOF
4532 if ac_fn_c_try_compile "$LINENO"; then :
4533 ac_cv_safe_to_define___extensions__=yes
4534 else
4535 ac_cv_safe_to_define___extensions__=no
4536 fi
4537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4538 fi
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4540 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4541 test $ac_cv_safe_to_define___extensions__ = yes &&
4542 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4543
4544 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4545
4546 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4547
4548 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4549
4550 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4551
4552
4553 # Check whether --enable-largefile was given.
4554 if test "${enable_largefile+set}" = set; then :
4555 enableval=$enable_largefile;
4556 fi
4557
4558 if test "$enable_largefile" != no; then
4559
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4561 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4562 if ${ac_cv_sys_largefile_CC+:} false; then :
4563 $as_echo_n "(cached) " >&6
4564 else
4565 ac_cv_sys_largefile_CC=no
4566 if test "$GCC" != yes; then
4567 ac_save_CC=$CC
4568 while :; do
4569 # IRIX 6.2 and later do not support large files by default,
4570 # so use the C compiler's -n32 option if that helps.
4571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4572 /* end confdefs.h. */
4573 #include <sys/types.h>
4574 /* Check that off_t can represent 2**63 - 1 correctly.
4575 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4576 since some C++ compilers masquerading as C compilers
4577 incorrectly reject 9223372036854775807. */
4578 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4579 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4580 && LARGE_OFF_T % 2147483647 == 1)
4581 ? 1 : -1];
4582 int
4583 main ()
4584 {
4585
4586 ;
4587 return 0;
4588 }
4589 _ACEOF
4590 if ac_fn_c_try_compile "$LINENO"; then :
4591 break
4592 fi
4593 rm -f core conftest.err conftest.$ac_objext
4594 CC="$CC -n32"
4595 if ac_fn_c_try_compile "$LINENO"; then :
4596 ac_cv_sys_largefile_CC=' -n32'; break
4597 fi
4598 rm -f core conftest.err conftest.$ac_objext
4599 break
4600 done
4601 CC=$ac_save_CC
4602 rm -f conftest.$ac_ext
4603 fi
4604 fi
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4606 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4607 if test "$ac_cv_sys_largefile_CC" != no; then
4608 CC=$CC$ac_cv_sys_largefile_CC
4609 fi
4610
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4612 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4613 if ${ac_cv_sys_file_offset_bits+:} false; then :
4614 $as_echo_n "(cached) " >&6
4615 else
4616 while :; do
4617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618 /* end confdefs.h. */
4619 #include <sys/types.h>
4620 /* Check that off_t can represent 2**63 - 1 correctly.
4621 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4622 since some C++ compilers masquerading as C compilers
4623 incorrectly reject 9223372036854775807. */
4624 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4625 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4626 && LARGE_OFF_T % 2147483647 == 1)
4627 ? 1 : -1];
4628 int
4629 main ()
4630 {
4631
4632 ;
4633 return 0;
4634 }
4635 _ACEOF
4636 if ac_fn_c_try_compile "$LINENO"; then :
4637 ac_cv_sys_file_offset_bits=no; break
4638 fi
4639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h. */
4642 #define _FILE_OFFSET_BITS 64
4643 #include <sys/types.h>
4644 /* Check that off_t can represent 2**63 - 1 correctly.
4645 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4646 since some C++ compilers masquerading as C compilers
4647 incorrectly reject 9223372036854775807. */
4648 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4649 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4650 && LARGE_OFF_T % 2147483647 == 1)
4651 ? 1 : -1];
4652 int
4653 main ()
4654 {
4655
4656 ;
4657 return 0;
4658 }
4659 _ACEOF
4660 if ac_fn_c_try_compile "$LINENO"; then :
4661 ac_cv_sys_file_offset_bits=64; break
4662 fi
4663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4664 ac_cv_sys_file_offset_bits=unknown
4665 break
4666 done
4667 fi
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4669 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4670 case $ac_cv_sys_file_offset_bits in #(
4671 no | unknown) ;;
4672 *)
4673 cat >>confdefs.h <<_ACEOF
4674 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4675 _ACEOF
4676 ;;
4677 esac
4678 rm -rf conftest*
4679 if test $ac_cv_sys_file_offset_bits = unknown; then
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4681 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4682 if ${ac_cv_sys_large_files+:} false; then :
4683 $as_echo_n "(cached) " >&6
4684 else
4685 while :; do
4686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687 /* end confdefs.h. */
4688 #include <sys/types.h>
4689 /* Check that off_t can represent 2**63 - 1 correctly.
4690 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4691 since some C++ compilers masquerading as C compilers
4692 incorrectly reject 9223372036854775807. */
4693 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4694 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4695 && LARGE_OFF_T % 2147483647 == 1)
4696 ? 1 : -1];
4697 int
4698 main ()
4699 {
4700
4701 ;
4702 return 0;
4703 }
4704 _ACEOF
4705 if ac_fn_c_try_compile "$LINENO"; then :
4706 ac_cv_sys_large_files=no; break
4707 fi
4708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4710 /* end confdefs.h. */
4711 #define _LARGE_FILES 1
4712 #include <sys/types.h>
4713 /* Check that off_t can represent 2**63 - 1 correctly.
4714 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4715 since some C++ compilers masquerading as C compilers
4716 incorrectly reject 9223372036854775807. */
4717 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4718 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4719 && LARGE_OFF_T % 2147483647 == 1)
4720 ? 1 : -1];
4721 int
4722 main ()
4723 {
4724
4725 ;
4726 return 0;
4727 }
4728 _ACEOF
4729 if ac_fn_c_try_compile "$LINENO"; then :
4730 ac_cv_sys_large_files=1; break
4731 fi
4732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4733 ac_cv_sys_large_files=unknown
4734 break
4735 done
4736 fi
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4738 $as_echo "$ac_cv_sys_large_files" >&6; }
4739 case $ac_cv_sys_large_files in #(
4740 no | unknown) ;;
4741 *)
4742 cat >>confdefs.h <<_ACEOF
4743 #define _LARGE_FILES $ac_cv_sys_large_files
4744 _ACEOF
4745 ;;
4746 esac
4747 rm -rf conftest*
4748 fi
4749
4750
4751 fi
4752
4753
4754
4755
4756 ac_ext=c
4757 ac_cpp='$CPP $CPPFLAGS'
4758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4761 if test -n "$ac_tool_prefix"; then
4762 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4763 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4765 $as_echo_n "checking for $ac_word... " >&6; }
4766 if ${ac_cv_prog_CC+:} false; then :
4767 $as_echo_n "(cached) " >&6
4768 else
4769 if test -n "$CC"; then
4770 ac_cv_prog_CC="$CC" # Let the user override the test.
4771 else
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 for as_dir in $PATH
4774 do
4775 IFS=$as_save_IFS
4776 test -z "$as_dir" && as_dir=.
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4779 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4781 break 2
4782 fi
4783 done
4784 done
4785 IFS=$as_save_IFS
4786
4787 fi
4788 fi
4789 CC=$ac_cv_prog_CC
4790 if test -n "$CC"; then
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4792 $as_echo "$CC" >&6; }
4793 else
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4795 $as_echo "no" >&6; }
4796 fi
4797
4798
4799 fi
4800 if test -z "$ac_cv_prog_CC"; then
4801 ac_ct_CC=$CC
4802 # Extract the first word of "gcc", so it can be a program name with args.
4803 set dummy gcc; ac_word=$2
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4805 $as_echo_n "checking for $ac_word... " >&6; }
4806 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4807 $as_echo_n "(cached) " >&6
4808 else
4809 if test -n "$ac_ct_CC"; then
4810 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4811 else
4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 for as_dir in $PATH
4814 do
4815 IFS=$as_save_IFS
4816 test -z "$as_dir" && as_dir=.
4817 for ac_exec_ext in '' $ac_executable_extensions; do
4818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4819 ac_cv_prog_ac_ct_CC="gcc"
4820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4821 break 2
4822 fi
4823 done
4824 done
4825 IFS=$as_save_IFS
4826
4827 fi
4828 fi
4829 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4830 if test -n "$ac_ct_CC"; then
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4832 $as_echo "$ac_ct_CC" >&6; }
4833 else
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4835 $as_echo "no" >&6; }
4836 fi
4837
4838 if test "x$ac_ct_CC" = x; then
4839 CC=""
4840 else
4841 case $cross_compiling:$ac_tool_warned in
4842 yes:)
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4845 ac_tool_warned=yes ;;
4846 esac
4847 CC=$ac_ct_CC
4848 fi
4849 else
4850 CC="$ac_cv_prog_CC"
4851 fi
4852
4853 if test -z "$CC"; then
4854 if test -n "$ac_tool_prefix"; then
4855 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4856 set dummy ${ac_tool_prefix}cc; ac_word=$2
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4858 $as_echo_n "checking for $ac_word... " >&6; }
4859 if ${ac_cv_prog_CC+:} false; then :
4860 $as_echo_n "(cached) " >&6
4861 else
4862 if test -n "$CC"; then
4863 ac_cv_prog_CC="$CC" # Let the user override the test.
4864 else
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 for as_dir in $PATH
4867 do
4868 IFS=$as_save_IFS
4869 test -z "$as_dir" && as_dir=.
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4872 ac_cv_prog_CC="${ac_tool_prefix}cc"
4873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4874 break 2
4875 fi
4876 done
4877 done
4878 IFS=$as_save_IFS
4879
4880 fi
4881 fi
4882 CC=$ac_cv_prog_CC
4883 if test -n "$CC"; then
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4885 $as_echo "$CC" >&6; }
4886 else
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4888 $as_echo "no" >&6; }
4889 fi
4890
4891
4892 fi
4893 fi
4894 if test -z "$CC"; then
4895 # Extract the first word of "cc", so it can be a program name with args.
4896 set dummy cc; ac_word=$2
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4898 $as_echo_n "checking for $ac_word... " >&6; }
4899 if ${ac_cv_prog_CC+:} false; then :
4900 $as_echo_n "(cached) " >&6
4901 else
4902 if test -n "$CC"; then
4903 ac_cv_prog_CC="$CC" # Let the user override the test.
4904 else
4905 ac_prog_rejected=no
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 for as_dir in $PATH
4908 do
4909 IFS=$as_save_IFS
4910 test -z "$as_dir" && as_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4913 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4914 ac_prog_rejected=yes
4915 continue
4916 fi
4917 ac_cv_prog_CC="cc"
4918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4919 break 2
4920 fi
4921 done
4922 done
4923 IFS=$as_save_IFS
4924
4925 if test $ac_prog_rejected = yes; then
4926 # We found a bogon in the path, so make sure we never use it.
4927 set dummy $ac_cv_prog_CC
4928 shift
4929 if test $# != 0; then
4930 # We chose a different compiler from the bogus one.
4931 # However, it has the same basename, so the bogon will be chosen
4932 # first if we set CC to just the basename; use the full file name.
4933 shift
4934 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4935 fi
4936 fi
4937 fi
4938 fi
4939 CC=$ac_cv_prog_CC
4940 if test -n "$CC"; then
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4942 $as_echo "$CC" >&6; }
4943 else
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 $as_echo "no" >&6; }
4946 fi
4947
4948
4949 fi
4950 if test -z "$CC"; then
4951 if test -n "$ac_tool_prefix"; then
4952 for ac_prog in cl.exe
4953 do
4954 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4955 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4957 $as_echo_n "checking for $ac_word... " >&6; }
4958 if ${ac_cv_prog_CC+:} false; then :
4959 $as_echo_n "(cached) " >&6
4960 else
4961 if test -n "$CC"; then
4962 ac_cv_prog_CC="$CC" # Let the user override the test.
4963 else
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 for as_dir in $PATH
4966 do
4967 IFS=$as_save_IFS
4968 test -z "$as_dir" && as_dir=.
4969 for ac_exec_ext in '' $ac_executable_extensions; do
4970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4971 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4973 break 2
4974 fi
4975 done
4976 done
4977 IFS=$as_save_IFS
4978
4979 fi
4980 fi
4981 CC=$ac_cv_prog_CC
4982 if test -n "$CC"; then
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4984 $as_echo "$CC" >&6; }
4985 else
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987 $as_echo "no" >&6; }
4988 fi
4989
4990
4991 test -n "$CC" && break
4992 done
4993 fi
4994 if test -z "$CC"; then
4995 ac_ct_CC=$CC
4996 for ac_prog in cl.exe
4997 do
4998 # Extract the first word of "$ac_prog", so it can be a program name with args.
4999 set dummy $ac_prog; ac_word=$2
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5001 $as_echo_n "checking for $ac_word... " >&6; }
5002 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5003 $as_echo_n "(cached) " >&6
5004 else
5005 if test -n "$ac_ct_CC"; then
5006 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5007 else
5008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 for as_dir in $PATH
5010 do
5011 IFS=$as_save_IFS
5012 test -z "$as_dir" && as_dir=.
5013 for ac_exec_ext in '' $ac_executable_extensions; do
5014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5015 ac_cv_prog_ac_ct_CC="$ac_prog"
5016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5017 break 2
5018 fi
5019 done
5020 done
5021 IFS=$as_save_IFS
5022
5023 fi
5024 fi
5025 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5026 if test -n "$ac_ct_CC"; then
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5028 $as_echo "$ac_ct_CC" >&6; }
5029 else
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5031 $as_echo "no" >&6; }
5032 fi
5033
5034
5035 test -n "$ac_ct_CC" && break
5036 done
5037
5038 if test "x$ac_ct_CC" = x; then
5039 CC=""
5040 else
5041 case $cross_compiling:$ac_tool_warned in
5042 yes:)
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5045 ac_tool_warned=yes ;;
5046 esac
5047 CC=$ac_ct_CC
5048 fi
5049 fi
5050
5051 fi
5052
5053
5054 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5056 as_fn_error $? "no acceptable C compiler found in \$PATH
5057 See \`config.log' for more details" "$LINENO" 5; }
5058
5059 # Provide some information about the compiler.
5060 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5061 set X $ac_compile
5062 ac_compiler=$2
5063 for ac_option in --version -v -V -qversion; do
5064 { { ac_try="$ac_compiler $ac_option >&5"
5065 case "(($ac_try" in
5066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5067 *) ac_try_echo=$ac_try;;
5068 esac
5069 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5070 $as_echo "$ac_try_echo"; } >&5
5071 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5072 ac_status=$?
5073 if test -s conftest.err; then
5074 sed '10a\
5075 ... rest of stderr output deleted ...
5076 10q' conftest.err >conftest.er1
5077 cat conftest.er1 >&5
5078 fi
5079 rm -f conftest.er1 conftest.err
5080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5081 test $ac_status = 0; }
5082 done
5083
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5085 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5086 if ${ac_cv_c_compiler_gnu+:} false; then :
5087 $as_echo_n "(cached) " >&6
5088 else
5089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090 /* end confdefs.h. */
5091
5092 int
5093 main ()
5094 {
5095 #ifndef __GNUC__
5096 choke me
5097 #endif
5098
5099 ;
5100 return 0;
5101 }
5102 _ACEOF
5103 if ac_fn_c_try_compile "$LINENO"; then :
5104 ac_compiler_gnu=yes
5105 else
5106 ac_compiler_gnu=no
5107 fi
5108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5109 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5110
5111 fi
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5113 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5114 if test $ac_compiler_gnu = yes; then
5115 GCC=yes
5116 else
5117 GCC=
5118 fi
5119 ac_test_CFLAGS=${CFLAGS+set}
5120 ac_save_CFLAGS=$CFLAGS
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5122 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5123 if ${ac_cv_prog_cc_g+:} false; then :
5124 $as_echo_n "(cached) " >&6
5125 else
5126 ac_save_c_werror_flag=$ac_c_werror_flag
5127 ac_c_werror_flag=yes
5128 ac_cv_prog_cc_g=no
5129 CFLAGS="-g"
5130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5131 /* end confdefs.h. */
5132
5133 int
5134 main ()
5135 {
5136
5137 ;
5138 return 0;
5139 }
5140 _ACEOF
5141 if ac_fn_c_try_compile "$LINENO"; then :
5142 ac_cv_prog_cc_g=yes
5143 else
5144 CFLAGS=""
5145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h. */
5147
5148 int
5149 main ()
5150 {
5151
5152 ;
5153 return 0;
5154 }
5155 _ACEOF
5156 if ac_fn_c_try_compile "$LINENO"; then :
5157
5158 else
5159 ac_c_werror_flag=$ac_save_c_werror_flag
5160 CFLAGS="-g"
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5163
5164 int
5165 main ()
5166 {
5167
5168 ;
5169 return 0;
5170 }
5171 _ACEOF
5172 if ac_fn_c_try_compile "$LINENO"; then :
5173 ac_cv_prog_cc_g=yes
5174 fi
5175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5176 fi
5177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5178 fi
5179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5180 ac_c_werror_flag=$ac_save_c_werror_flag
5181 fi
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5183 $as_echo "$ac_cv_prog_cc_g" >&6; }
5184 if test "$ac_test_CFLAGS" = set; then
5185 CFLAGS=$ac_save_CFLAGS
5186 elif test $ac_cv_prog_cc_g = yes; then
5187 if test "$GCC" = yes; then
5188 CFLAGS="-g -O2"
5189 else
5190 CFLAGS="-g"
5191 fi
5192 else
5193 if test "$GCC" = yes; then
5194 CFLAGS="-O2"
5195 else
5196 CFLAGS=
5197 fi
5198 fi
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5200 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5201 if ${ac_cv_prog_cc_c89+:} false; then :
5202 $as_echo_n "(cached) " >&6
5203 else
5204 ac_cv_prog_cc_c89=no
5205 ac_save_CC=$CC
5206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5207 /* end confdefs.h. */
5208 #include <stdarg.h>
5209 #include <stdio.h>
5210 struct stat;
5211 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5212 struct buf { int x; };
5213 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5214 static char *e (p, i)
5215 char **p;
5216 int i;
5217 {
5218 return p[i];
5219 }
5220 static char *f (char * (*g) (char **, int), char **p, ...)
5221 {
5222 char *s;
5223 va_list v;
5224 va_start (v,p);
5225 s = g (p, va_arg (v,int));
5226 va_end (v);
5227 return s;
5228 }
5229
5230 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5231 function prototypes and stuff, but not '\xHH' hex character constants.
5232 These don't provoke an error unfortunately, instead are silently treated
5233 as 'x'. The following induces an error, until -std is added to get
5234 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5235 array size at least. It's necessary to write '\x00'==0 to get something
5236 that's true only with -std. */
5237 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5238
5239 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5240 inside strings and character constants. */
5241 #define FOO(x) 'x'
5242 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5243
5244 int test (int i, double x);
5245 struct s1 {int (*f) (int a);};
5246 struct s2 {int (*f) (double a);};
5247 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5248 int argc;
5249 char **argv;
5250 int
5251 main ()
5252 {
5253 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5254 ;
5255 return 0;
5256 }
5257 _ACEOF
5258 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5259 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5260 do
5261 CC="$ac_save_CC $ac_arg"
5262 if ac_fn_c_try_compile "$LINENO"; then :
5263 ac_cv_prog_cc_c89=$ac_arg
5264 fi
5265 rm -f core conftest.err conftest.$ac_objext
5266 test "x$ac_cv_prog_cc_c89" != "xno" && break
5267 done
5268 rm -f conftest.$ac_ext
5269 CC=$ac_save_CC
5270
5271 fi
5272 # AC_CACHE_VAL
5273 case "x$ac_cv_prog_cc_c89" in
5274 x)
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5276 $as_echo "none needed" >&6; } ;;
5277 xno)
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5279 $as_echo "unsupported" >&6; } ;;
5280 *)
5281 CC="$CC $ac_cv_prog_cc_c89"
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5283 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5284 esac
5285 if test "x$ac_cv_prog_cc_c89" != xno; then :
5286
5287 fi
5288
5289 ac_ext=c
5290 ac_cpp='$CPP $CPPFLAGS'
5291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5294
5295 ac_ext=c
5296 ac_cpp='$CPP $CPPFLAGS'
5297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5301 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5302 if ${am_cv_prog_cc_c_o+:} false; then :
5303 $as_echo_n "(cached) " >&6
5304 else
5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306 /* end confdefs.h. */
5307
5308 int
5309 main ()
5310 {
5311
5312 ;
5313 return 0;
5314 }
5315 _ACEOF
5316 # Make sure it works both with $CC and with simple cc.
5317 # Following AC_PROG_CC_C_O, we do the test twice because some
5318 # compilers refuse to overwrite an existing .o file with -o,
5319 # though they will create one.
5320 am_cv_prog_cc_c_o=yes
5321 for am_i in 1 2; do
5322 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5323 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5324 ac_status=$?
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); } \
5327 && test -f conftest2.$ac_objext; then
5328 : OK
5329 else
5330 am_cv_prog_cc_c_o=no
5331 break
5332 fi
5333 done
5334 rm -f core conftest*
5335 unset am_i
5336 fi
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5338 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5339 if test "$am_cv_prog_cc_c_o" != yes; then
5340 # Losing compiler, so override with the script.
5341 # FIXME: It is wrong to rewrite CC.
5342 # But if we don't then we get into trouble of one sort or another.
5343 # A longer-term fix would be to have automake use am__CC in this case,
5344 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5345 CC="$am_aux_dir/compile $CC"
5346 fi
5347 ac_ext=c
5348 ac_cpp='$CPP $CPPFLAGS'
5349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5352
5353
5354 depcc="$CC" am_compiler_list=
5355
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5357 $as_echo_n "checking dependency style of $depcc... " >&6; }
5358 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5359 $as_echo_n "(cached) " >&6
5360 else
5361 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5362 # We make a subdir and do the tests there. Otherwise we can end up
5363 # making bogus files that we don't know about and never remove. For
5364 # instance it was reported that on HP-UX the gcc test will end up
5365 # making a dummy file named 'D' -- because '-MD' means "put the output
5366 # in D".
5367 rm -rf conftest.dir
5368 mkdir conftest.dir
5369 # Copy depcomp to subdir because otherwise we won't find it if we're
5370 # using a relative directory.
5371 cp "$am_depcomp" conftest.dir
5372 cd conftest.dir
5373 # We will build objects and dependencies in a subdirectory because
5374 # it helps to detect inapplicable dependency modes. For instance
5375 # both Tru64's cc and ICC support -MD to output dependencies as a
5376 # side effect of compilation, but ICC will put the dependencies in
5377 # the current directory while Tru64 will put them in the object
5378 # directory.
5379 mkdir sub
5380
5381 am_cv_CC_dependencies_compiler_type=none
5382 if test "$am_compiler_list" = ""; then
5383 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5384 fi
5385 am__universal=false
5386 case " $depcc " in #(
5387 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5388 esac
5389
5390 for depmode in $am_compiler_list; do
5391 # Setup a source with many dependencies, because some compilers
5392 # like to wrap large dependency lists on column 80 (with \), and
5393 # we should not choose a depcomp mode which is confused by this.
5394 #
5395 # We need to recreate these files for each test, as the compiler may
5396 # overwrite some of them when testing with obscure command lines.
5397 # This happens at least with the AIX C compiler.
5398 : > sub/conftest.c
5399 for i in 1 2 3 4 5 6; do
5400 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5401 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5402 # Solaris 10 /bin/sh.
5403 echo '/* dummy */' > sub/conftst$i.h
5404 done
5405 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5406
5407 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5408 # mode. It turns out that the SunPro C++ compiler does not properly
5409 # handle '-M -o', and we need to detect this. Also, some Intel
5410 # versions had trouble with output in subdirs.
5411 am__obj=sub/conftest.${OBJEXT-o}
5412 am__minus_obj="-o $am__obj"
5413 case $depmode in
5414 gcc)
5415 # This depmode causes a compiler race in universal mode.
5416 test "$am__universal" = false || continue
5417 ;;
5418 nosideeffect)
5419 # After this tag, mechanisms are not by side-effect, so they'll
5420 # only be used when explicitly requested.
5421 if test "x$enable_dependency_tracking" = xyes; then
5422 continue
5423 else
5424 break
5425 fi
5426 ;;
5427 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5428 # This compiler won't grok '-c -o', but also, the minuso test has
5429 # not run yet. These depmodes are late enough in the game, and
5430 # so weak that their functioning should not be impacted.
5431 am__obj=conftest.${OBJEXT-o}
5432 am__minus_obj=
5433 ;;
5434 none) break ;;
5435 esac
5436 if depmode=$depmode \
5437 source=sub/conftest.c object=$am__obj \
5438 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5439 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5440 >/dev/null 2>conftest.err &&
5441 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5442 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5443 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5444 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5445 # icc doesn't choke on unknown options, it will just issue warnings
5446 # or remarks (even with -Werror). So we grep stderr for any message
5447 # that says an option was ignored or not supported.
5448 # When given -MP, icc 7.0 and 7.1 complain thusly:
5449 # icc: Command line warning: ignoring option '-M'; no argument required
5450 # The diagnosis changed in icc 8.0:
5451 # icc: Command line remark: option '-MP' not supported
5452 if (grep 'ignoring option' conftest.err ||
5453 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5454 am_cv_CC_dependencies_compiler_type=$depmode
5455 break
5456 fi
5457 fi
5458 done
5459
5460 cd ..
5461 rm -rf conftest.dir
5462 else
5463 am_cv_CC_dependencies_compiler_type=none
5464 fi
5465
5466 fi
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5468 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5469 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5470
5471 if
5472 test "x$enable_dependency_tracking" != xno \
5473 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5474 am__fastdepCC_TRUE=
5475 am__fastdepCC_FALSE='#'
5476 else
5477 am__fastdepCC_TRUE='#'
5478 am__fastdepCC_FALSE=
5479 fi
5480
5481
5482 ac_ext=cpp
5483 ac_cpp='$CXXCPP $CPPFLAGS'
5484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5487 if test -z "$CXX"; then
5488 if test -n "$CCC"; then
5489 CXX=$CCC
5490 else
5491 if test -n "$ac_tool_prefix"; then
5492 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5493 do
5494 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5495 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5497 $as_echo_n "checking for $ac_word... " >&6; }
5498 if ${ac_cv_prog_CXX+:} false; then :
5499 $as_echo_n "(cached) " >&6
5500 else
5501 if test -n "$CXX"; then
5502 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5503 else
5504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 for as_dir in $PATH
5506 do
5507 IFS=$as_save_IFS
5508 test -z "$as_dir" && as_dir=.
5509 for ac_exec_ext in '' $ac_executable_extensions; do
5510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5511 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5513 break 2
5514 fi
5515 done
5516 done
5517 IFS=$as_save_IFS
5518
5519 fi
5520 fi
5521 CXX=$ac_cv_prog_CXX
5522 if test -n "$CXX"; then
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5524 $as_echo "$CXX" >&6; }
5525 else
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5527 $as_echo "no" >&6; }
5528 fi
5529
5530
5531 test -n "$CXX" && break
5532 done
5533 fi
5534 if test -z "$CXX"; then
5535 ac_ct_CXX=$CXX
5536 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5537 do
5538 # Extract the first word of "$ac_prog", so it can be a program name with args.
5539 set dummy $ac_prog; ac_word=$2
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5541 $as_echo_n "checking for $ac_word... " >&6; }
5542 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5543 $as_echo_n "(cached) " >&6
5544 else
5545 if test -n "$ac_ct_CXX"; then
5546 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5547 else
5548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549 for as_dir in $PATH
5550 do
5551 IFS=$as_save_IFS
5552 test -z "$as_dir" && as_dir=.
5553 for ac_exec_ext in '' $ac_executable_extensions; do
5554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5555 ac_cv_prog_ac_ct_CXX="$ac_prog"
5556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5557 break 2
5558 fi
5559 done
5560 done
5561 IFS=$as_save_IFS
5562
5563 fi
5564 fi
5565 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5566 if test -n "$ac_ct_CXX"; then
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5568 $as_echo "$ac_ct_CXX" >&6; }
5569 else
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571 $as_echo "no" >&6; }
5572 fi
5573
5574
5575 test -n "$ac_ct_CXX" && break
5576 done
5577
5578 if test "x$ac_ct_CXX" = x; then
5579 CXX="g++"
5580 else
5581 case $cross_compiling:$ac_tool_warned in
5582 yes:)
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5585 ac_tool_warned=yes ;;
5586 esac
5587 CXX=$ac_ct_CXX
5588 fi
5589 fi
5590
5591 fi
5592 fi
5593 # Provide some information about the compiler.
5594 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5595 set X $ac_compile
5596 ac_compiler=$2
5597 for ac_option in --version -v -V -qversion; do
5598 { { ac_try="$ac_compiler $ac_option >&5"
5599 case "(($ac_try" in
5600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5601 *) ac_try_echo=$ac_try;;
5602 esac
5603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5604 $as_echo "$ac_try_echo"; } >&5
5605 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5606 ac_status=$?
5607 if test -s conftest.err; then
5608 sed '10a\
5609 ... rest of stderr output deleted ...
5610 10q' conftest.err >conftest.er1
5611 cat conftest.er1 >&5
5612 fi
5613 rm -f conftest.er1 conftest.err
5614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5615 test $ac_status = 0; }
5616 done
5617
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5619 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5620 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5621 $as_echo_n "(cached) " >&6
5622 else
5623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624 /* end confdefs.h. */
5625
5626 int
5627 main ()
5628 {
5629 #ifndef __GNUC__
5630 choke me
5631 #endif
5632
5633 ;
5634 return 0;
5635 }
5636 _ACEOF
5637 if ac_fn_cxx_try_compile "$LINENO"; then :
5638 ac_compiler_gnu=yes
5639 else
5640 ac_compiler_gnu=no
5641 fi
5642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5643 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5644
5645 fi
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5647 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5648 if test $ac_compiler_gnu = yes; then
5649 GXX=yes
5650 else
5651 GXX=
5652 fi
5653 ac_test_CXXFLAGS=${CXXFLAGS+set}
5654 ac_save_CXXFLAGS=$CXXFLAGS
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5656 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5657 if ${ac_cv_prog_cxx_g+:} false; then :
5658 $as_echo_n "(cached) " >&6
5659 else
5660 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5661 ac_cxx_werror_flag=yes
5662 ac_cv_prog_cxx_g=no
5663 CXXFLAGS="-g"
5664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5665 /* end confdefs.h. */
5666
5667 int
5668 main ()
5669 {
5670
5671 ;
5672 return 0;
5673 }
5674 _ACEOF
5675 if ac_fn_cxx_try_compile "$LINENO"; then :
5676 ac_cv_prog_cxx_g=yes
5677 else
5678 CXXFLAGS=""
5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680 /* end confdefs.h. */
5681
5682 int
5683 main ()
5684 {
5685
5686 ;
5687 return 0;
5688 }
5689 _ACEOF
5690 if ac_fn_cxx_try_compile "$LINENO"; then :
5691
5692 else
5693 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5694 CXXFLAGS="-g"
5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696 /* end confdefs.h. */
5697
5698 int
5699 main ()
5700 {
5701
5702 ;
5703 return 0;
5704 }
5705 _ACEOF
5706 if ac_fn_cxx_try_compile "$LINENO"; then :
5707 ac_cv_prog_cxx_g=yes
5708 fi
5709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5710 fi
5711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5712 fi
5713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5714 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5715 fi
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5717 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5718 if test "$ac_test_CXXFLAGS" = set; then
5719 CXXFLAGS=$ac_save_CXXFLAGS
5720 elif test $ac_cv_prog_cxx_g = yes; then
5721 if test "$GXX" = yes; then
5722 CXXFLAGS="-g -O2"
5723 else
5724 CXXFLAGS="-g"
5725 fi
5726 else
5727 if test "$GXX" = yes; then
5728 CXXFLAGS="-O2"
5729 else
5730 CXXFLAGS=
5731 fi
5732 fi
5733 ac_ext=c
5734 ac_cpp='$CPP $CPPFLAGS'
5735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5738
5739 depcc="$CXX" am_compiler_list=
5740
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5742 $as_echo_n "checking dependency style of $depcc... " >&6; }
5743 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5744 $as_echo_n "(cached) " >&6
5745 else
5746 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5747 # We make a subdir and do the tests there. Otherwise we can end up
5748 # making bogus files that we don't know about and never remove. For
5749 # instance it was reported that on HP-UX the gcc test will end up
5750 # making a dummy file named 'D' -- because '-MD' means "put the output
5751 # in D".
5752 rm -rf conftest.dir
5753 mkdir conftest.dir
5754 # Copy depcomp to subdir because otherwise we won't find it if we're
5755 # using a relative directory.
5756 cp "$am_depcomp" conftest.dir
5757 cd conftest.dir
5758 # We will build objects and dependencies in a subdirectory because
5759 # it helps to detect inapplicable dependency modes. For instance
5760 # both Tru64's cc and ICC support -MD to output dependencies as a
5761 # side effect of compilation, but ICC will put the dependencies in
5762 # the current directory while Tru64 will put them in the object
5763 # directory.
5764 mkdir sub
5765
5766 am_cv_CXX_dependencies_compiler_type=none
5767 if test "$am_compiler_list" = ""; then
5768 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5769 fi
5770 am__universal=false
5771 case " $depcc " in #(
5772 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5773 esac
5774
5775 for depmode in $am_compiler_list; do
5776 # Setup a source with many dependencies, because some compilers
5777 # like to wrap large dependency lists on column 80 (with \), and
5778 # we should not choose a depcomp mode which is confused by this.
5779 #
5780 # We need to recreate these files for each test, as the compiler may
5781 # overwrite some of them when testing with obscure command lines.
5782 # This happens at least with the AIX C compiler.
5783 : > sub/conftest.c
5784 for i in 1 2 3 4 5 6; do
5785 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5786 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5787 # Solaris 10 /bin/sh.
5788 echo '/* dummy */' > sub/conftst$i.h
5789 done
5790 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5791
5792 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5793 # mode. It turns out that the SunPro C++ compiler does not properly
5794 # handle '-M -o', and we need to detect this. Also, some Intel
5795 # versions had trouble with output in subdirs.
5796 am__obj=sub/conftest.${OBJEXT-o}
5797 am__minus_obj="-o $am__obj"
5798 case $depmode in
5799 gcc)
5800 # This depmode causes a compiler race in universal mode.
5801 test "$am__universal" = false || continue
5802 ;;
5803 nosideeffect)
5804 # After this tag, mechanisms are not by side-effect, so they'll
5805 # only be used when explicitly requested.
5806 if test "x$enable_dependency_tracking" = xyes; then
5807 continue
5808 else
5809 break
5810 fi
5811 ;;
5812 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5813 # This compiler won't grok '-c -o', but also, the minuso test has
5814 # not run yet. These depmodes are late enough in the game, and
5815 # so weak that their functioning should not be impacted.
5816 am__obj=conftest.${OBJEXT-o}
5817 am__minus_obj=
5818 ;;
5819 none) break ;;
5820 esac
5821 if depmode=$depmode \
5822 source=sub/conftest.c object=$am__obj \
5823 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5824 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5825 >/dev/null 2>conftest.err &&
5826 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5827 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5828 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5829 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5830 # icc doesn't choke on unknown options, it will just issue warnings
5831 # or remarks (even with -Werror). So we grep stderr for any message
5832 # that says an option was ignored or not supported.
5833 # When given -MP, icc 7.0 and 7.1 complain thusly:
5834 # icc: Command line warning: ignoring option '-M'; no argument required
5835 # The diagnosis changed in icc 8.0:
5836 # icc: Command line remark: option '-MP' not supported
5837 if (grep 'ignoring option' conftest.err ||
5838 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5839 am_cv_CXX_dependencies_compiler_type=$depmode
5840 break
5841 fi
5842 fi
5843 done
5844
5845 cd ..
5846 rm -rf conftest.dir
5847 else
5848 am_cv_CXX_dependencies_compiler_type=none
5849 fi
5850
5851 fi
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5853 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5854 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5855
5856 if
5857 test "x$enable_dependency_tracking" != xno \
5858 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5859 am__fastdepCXX_TRUE=
5860 am__fastdepCXX_FALSE='#'
5861 else
5862 am__fastdepCXX_TRUE='#'
5863 am__fastdepCXX_FALSE=
5864 fi
5865
5866
5867 if test -n "$ac_tool_prefix"; then
5868 for ac_prog in ar lib "link -lib"
5869 do
5870 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5871 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5873 $as_echo_n "checking for $ac_word... " >&6; }
5874 if ${ac_cv_prog_AR+:} false; then :
5875 $as_echo_n "(cached) " >&6
5876 else
5877 if test -n "$AR"; then
5878 ac_cv_prog_AR="$AR" # Let the user override the test.
5879 else
5880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 for as_dir in $PATH
5882 do
5883 IFS=$as_save_IFS
5884 test -z "$as_dir" && as_dir=.
5885 for ac_exec_ext in '' $ac_executable_extensions; do
5886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5887 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5889 break 2
5890 fi
5891 done
5892 done
5893 IFS=$as_save_IFS
5894
5895 fi
5896 fi
5897 AR=$ac_cv_prog_AR
5898 if test -n "$AR"; then
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5900 $as_echo "$AR" >&6; }
5901 else
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5903 $as_echo "no" >&6; }
5904 fi
5905
5906
5907 test -n "$AR" && break
5908 done
5909 fi
5910 if test -z "$AR"; then
5911 ac_ct_AR=$AR
5912 for ac_prog in ar lib "link -lib"
5913 do
5914 # Extract the first word of "$ac_prog", so it can be a program name with args.
5915 set dummy $ac_prog; ac_word=$2
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5917 $as_echo_n "checking for $ac_word... " >&6; }
5918 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5919 $as_echo_n "(cached) " >&6
5920 else
5921 if test -n "$ac_ct_AR"; then
5922 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5923 else
5924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925 for as_dir in $PATH
5926 do
5927 IFS=$as_save_IFS
5928 test -z "$as_dir" && as_dir=.
5929 for ac_exec_ext in '' $ac_executable_extensions; do
5930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5931 ac_cv_prog_ac_ct_AR="$ac_prog"
5932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5933 break 2
5934 fi
5935 done
5936 done
5937 IFS=$as_save_IFS
5938
5939 fi
5940 fi
5941 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5942 if test -n "$ac_ct_AR"; then
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5944 $as_echo "$ac_ct_AR" >&6; }
5945 else
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5947 $as_echo "no" >&6; }
5948 fi
5949
5950
5951 test -n "$ac_ct_AR" && break
5952 done
5953
5954 if test "x$ac_ct_AR" = x; then
5955 AR="false"
5956 else
5957 case $cross_compiling:$ac_tool_warned in
5958 yes:)
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5961 ac_tool_warned=yes ;;
5962 esac
5963 AR=$ac_ct_AR
5964 fi
5965 fi
5966
5967 : ${AR=ar}
5968
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5970 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5971 if ${am_cv_ar_interface+:} false; then :
5972 $as_echo_n "(cached) " >&6
5973 else
5974 ac_ext=c
5975 ac_cpp='$CPP $CPPFLAGS'
5976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5979
5980 am_cv_ar_interface=ar
5981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5982 /* end confdefs.h. */
5983 int some_variable = 0;
5984 _ACEOF
5985 if ac_fn_c_try_compile "$LINENO"; then :
5986 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5988 (eval $am_ar_try) 2>&5
5989 ac_status=$?
5990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5991 test $ac_status = 0; }
5992 if test "$ac_status" -eq 0; then
5993 am_cv_ar_interface=ar
5994 else
5995 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5997 (eval $am_ar_try) 2>&5
5998 ac_status=$?
5999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6000 test $ac_status = 0; }
6001 if test "$ac_status" -eq 0; then
6002 am_cv_ar_interface=lib
6003 else
6004 am_cv_ar_interface=unknown
6005 fi
6006 fi
6007 rm -f conftest.lib libconftest.a
6008
6009 fi
6010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6011 ac_ext=c
6012 ac_cpp='$CPP $CPPFLAGS'
6013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6016
6017 fi
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6019 $as_echo "$am_cv_ar_interface" >&6; }
6020
6021 case $am_cv_ar_interface in
6022 ar)
6023 ;;
6024 lib)
6025 # Microsoft lib, so override with the ar-lib wrapper script.
6026 # FIXME: It is wrong to rewrite AR.
6027 # But if we don't then we get into trouble of one sort or another.
6028 # A longer-term fix would be to have automake use am__AR in this case,
6029 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6030 # similar.
6031 AR="$am_aux_dir/ar-lib $AR"
6032 ;;
6033 unknown)
6034 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6035 ;;
6036 esac
6037
6038
6039 for ac_prog in 'bison -y' byacc
6040 do
6041 # Extract the first word of "$ac_prog", so it can be a program name with args.
6042 set dummy $ac_prog; 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_YACC+:} false; then :
6046 $as_echo_n "(cached) " >&6
6047 else
6048 if test -n "$YACC"; then
6049 ac_cv_prog_YACC="$YACC" # 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_YACC="$ac_prog"
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 YACC=$ac_cv_prog_YACC
6069 if test -n "$YACC"; then
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6071 $as_echo "$YACC" >&6; }
6072 else
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6074 $as_echo "no" >&6; }
6075 fi
6076
6077
6078 test -n "$YACC" && break
6079 done
6080 test -n "$YACC" || YACC="yacc"
6081
6082 for ac_prog in flex lex
6083 do
6084 # Extract the first word of "$ac_prog", so it can be a program name with args.
6085 set dummy $ac_prog; ac_word=$2
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6087 $as_echo_n "checking for $ac_word... " >&6; }
6088 if ${ac_cv_prog_LEX+:} false; then :
6089 $as_echo_n "(cached) " >&6
6090 else
6091 if test -n "$LEX"; then
6092 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6093 else
6094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095 for as_dir in $PATH
6096 do
6097 IFS=$as_save_IFS
6098 test -z "$as_dir" && as_dir=.
6099 for ac_exec_ext in '' $ac_executable_extensions; do
6100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6101 ac_cv_prog_LEX="$ac_prog"
6102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6103 break 2
6104 fi
6105 done
6106 done
6107 IFS=$as_save_IFS
6108
6109 fi
6110 fi
6111 LEX=$ac_cv_prog_LEX
6112 if test -n "$LEX"; then
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6114 $as_echo "$LEX" >&6; }
6115 else
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6117 $as_echo "no" >&6; }
6118 fi
6119
6120
6121 test -n "$LEX" && break
6122 done
6123 test -n "$LEX" || LEX=":"
6124
6125 if test "x$LEX" != "x:"; then
6126 cat >conftest.l <<_ACEOF
6127 %%
6128 a { ECHO; }
6129 b { REJECT; }
6130 c { yymore (); }
6131 d { yyless (1); }
6132 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
6133 yyless ((input () != 0)); }
6134 f { unput (yytext[0]); }
6135 . { BEGIN INITIAL; }
6136 %%
6137 #ifdef YYTEXT_POINTER
6138 extern char *yytext;
6139 #endif
6140 int
6141 main (void)
6142 {
6143 return ! yylex () + ! yywrap ();
6144 }
6145 _ACEOF
6146 { { ac_try="$LEX conftest.l"
6147 case "(($ac_try" in
6148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6149 *) ac_try_echo=$ac_try;;
6150 esac
6151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6152 $as_echo "$ac_try_echo"; } >&5
6153 (eval "$LEX conftest.l") 2>&5
6154 ac_status=$?
6155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6156 test $ac_status = 0; }
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6158 $as_echo_n "checking lex output file root... " >&6; }
6159 if ${ac_cv_prog_lex_root+:} false; then :
6160 $as_echo_n "(cached) " >&6
6161 else
6162
6163 if test -f lex.yy.c; then
6164 ac_cv_prog_lex_root=lex.yy
6165 elif test -f lexyy.c; then
6166 ac_cv_prog_lex_root=lexyy
6167 else
6168 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
6169 fi
6170 fi
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6172 $as_echo "$ac_cv_prog_lex_root" >&6; }
6173 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6174
6175 if test -z "${LEXLIB+set}"; then
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6177 $as_echo_n "checking lex library... " >&6; }
6178 if ${ac_cv_lib_lex+:} false; then :
6179 $as_echo_n "(cached) " >&6
6180 else
6181
6182 ac_save_LIBS=$LIBS
6183 ac_cv_lib_lex='none needed'
6184 for ac_lib in '' -lfl -ll; do
6185 LIBS="$ac_lib $ac_save_LIBS"
6186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6187 /* end confdefs.h. */
6188 `cat $LEX_OUTPUT_ROOT.c`
6189 _ACEOF
6190 if ac_fn_c_try_link "$LINENO"; then :
6191 ac_cv_lib_lex=$ac_lib
6192 fi
6193 rm -f core conftest.err conftest.$ac_objext \
6194 conftest$ac_exeext conftest.$ac_ext
6195 test "$ac_cv_lib_lex" != 'none needed' && break
6196 done
6197 LIBS=$ac_save_LIBS
6198
6199 fi
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6201 $as_echo "$ac_cv_lib_lex" >&6; }
6202 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6203 fi
6204
6205
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6207 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6208 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6209 $as_echo_n "(cached) " >&6
6210 else
6211 # POSIX says lex can declare yytext either as a pointer or an array; the
6212 # default is implementation-dependent. Figure out which it is, since
6213 # not all implementations provide the %pointer and %array declarations.
6214 ac_cv_prog_lex_yytext_pointer=no
6215 ac_save_LIBS=$LIBS
6216 LIBS="$LEXLIB $ac_save_LIBS"
6217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6218 /* end confdefs.h. */
6219
6220 #define YYTEXT_POINTER 1
6221 `cat $LEX_OUTPUT_ROOT.c`
6222 _ACEOF
6223 if ac_fn_c_try_link "$LINENO"; then :
6224 ac_cv_prog_lex_yytext_pointer=yes
6225 fi
6226 rm -f core conftest.err conftest.$ac_objext \
6227 conftest$ac_exeext conftest.$ac_ext
6228 LIBS=$ac_save_LIBS
6229
6230 fi
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6232 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6233 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6234
6235 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6236
6237 fi
6238 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6239
6240 fi
6241 if test "$LEX" = :; then
6242 LEX=${am_missing_run}flex
6243 fi
6244 case `pwd` in
6245 *\ * | *\ *)
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6247 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6248 esac
6249
6250
6251
6252 macro_version='2.4.6'
6253 macro_revision='2.4.6'
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267 ltmain=$ac_aux_dir/ltmain.sh
6268
6269 # Make sure we can run config.sub.
6270 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6271 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6272
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6274 $as_echo_n "checking build system type... " >&6; }
6275 if ${ac_cv_build+:} false; then :
6276 $as_echo_n "(cached) " >&6
6277 else
6278 ac_build_alias=$build_alias
6279 test "x$ac_build_alias" = x &&
6280 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6281 test "x$ac_build_alias" = x &&
6282 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6283 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6284 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6285
6286 fi
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6288 $as_echo "$ac_cv_build" >&6; }
6289 case $ac_cv_build in
6290 *-*-*) ;;
6291 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6292 esac
6293 build=$ac_cv_build
6294 ac_save_IFS=$IFS; IFS='-'
6295 set x $ac_cv_build
6296 shift
6297 build_cpu=$1
6298 build_vendor=$2
6299 shift; shift
6300 # Remember, the first character of IFS is used to create $*,
6301 # except with old shells:
6302 build_os=$*
6303 IFS=$ac_save_IFS
6304 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6305
6306
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6308 $as_echo_n "checking host system type... " >&6; }
6309 if ${ac_cv_host+:} false; then :
6310 $as_echo_n "(cached) " >&6
6311 else
6312 if test "x$host_alias" = x; then
6313 ac_cv_host=$ac_cv_build
6314 else
6315 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6316 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6317 fi
6318
6319 fi
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6321 $as_echo "$ac_cv_host" >&6; }
6322 case $ac_cv_host in
6323 *-*-*) ;;
6324 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6325 esac
6326 host=$ac_cv_host
6327 ac_save_IFS=$IFS; IFS='-'
6328 set x $ac_cv_host
6329 shift
6330 host_cpu=$1
6331 host_vendor=$2
6332 shift; shift
6333 # Remember, the first character of IFS is used to create $*,
6334 # except with old shells:
6335 host_os=$*
6336 IFS=$ac_save_IFS
6337 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6338
6339
6340 # Backslashify metacharacters that are still active within
6341 # double-quoted strings.
6342 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6343
6344 # Same as above, but do not quote variable references.
6345 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6346
6347 # Sed substitution to delay expansion of an escaped shell variable in a
6348 # double_quote_subst'ed string.
6349 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6350
6351 # Sed substitution to delay expansion of an escaped single quote.
6352 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6353
6354 # Sed substitution to avoid accidental globbing in evaled expressions
6355 no_glob_subst='s/\*/\\\*/g'
6356
6357 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6358 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6359 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6360
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6362 $as_echo_n "checking how to print strings... " >&6; }
6363 # Test print first, because it will be a builtin if present.
6364 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6365 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6366 ECHO='print -r --'
6367 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6368 ECHO='printf %s\n'
6369 else
6370 # Use this function as a fallback that always works.
6371 func_fallback_echo ()
6372 {
6373 eval 'cat <<_LTECHO_EOF
6374 $1
6375 _LTECHO_EOF'
6376 }
6377 ECHO='func_fallback_echo'
6378 fi
6379
6380 # func_echo_all arg...
6381 # Invoke $ECHO with all args, space-separated.
6382 func_echo_all ()
6383 {
6384 $ECHO ""
6385 }
6386
6387 case $ECHO in
6388 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6389 $as_echo "printf" >&6; } ;;
6390 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6391 $as_echo "print -r" >&6; } ;;
6392 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6393 $as_echo "cat" >&6; } ;;
6394 esac
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6410 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6411 if ${ac_cv_path_SED+:} false; then :
6412 $as_echo_n "(cached) " >&6
6413 else
6414 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6415 for ac_i in 1 2 3 4 5 6 7; do
6416 ac_script="$ac_script$as_nl$ac_script"
6417 done
6418 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6419 { ac_script=; unset ac_script;}
6420 if test -z "$SED"; then
6421 ac_path_SED_found=false
6422 # Loop through the user's path and test for each of PROGNAME-LIST
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424 for as_dir in $PATH
6425 do
6426 IFS=$as_save_IFS
6427 test -z "$as_dir" && as_dir=.
6428 for ac_prog in sed gsed; do
6429 for ac_exec_ext in '' $ac_executable_extensions; do
6430 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6431 as_fn_executable_p "$ac_path_SED" || continue
6432 # Check for GNU ac_path_SED and select it if it is found.
6433 # Check for GNU $ac_path_SED
6434 case `"$ac_path_SED" --version 2>&1` in
6435 *GNU*)
6436 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6437 *)
6438 ac_count=0
6439 $as_echo_n 0123456789 >"conftest.in"
6440 while :
6441 do
6442 cat "conftest.in" "conftest.in" >"conftest.tmp"
6443 mv "conftest.tmp" "conftest.in"
6444 cp "conftest.in" "conftest.nl"
6445 $as_echo '' >> "conftest.nl"
6446 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6447 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6448 as_fn_arith $ac_count + 1 && ac_count=$as_val
6449 if test $ac_count -gt ${ac_path_SED_max-0}; then
6450 # Best one so far, save it but keep looking for a better one
6451 ac_cv_path_SED="$ac_path_SED"
6452 ac_path_SED_max=$ac_count
6453 fi
6454 # 10*(2^10) chars as input seems more than enough
6455 test $ac_count -gt 10 && break
6456 done
6457 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6458 esac
6459
6460 $ac_path_SED_found && break 3
6461 done
6462 done
6463 done
6464 IFS=$as_save_IFS
6465 if test -z "$ac_cv_path_SED"; then
6466 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6467 fi
6468 else
6469 ac_cv_path_SED=$SED
6470 fi
6471
6472 fi
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6474 $as_echo "$ac_cv_path_SED" >&6; }
6475 SED="$ac_cv_path_SED"
6476 rm -f conftest.sed
6477
6478 test -z "$SED" && SED=sed
6479 Xsed="$SED -e 1s/^X//"
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6492 $as_echo_n "checking for fgrep... " >&6; }
6493 if ${ac_cv_path_FGREP+:} false; then :
6494 $as_echo_n "(cached) " >&6
6495 else
6496 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6497 then ac_cv_path_FGREP="$GREP -F"
6498 else
6499 if test -z "$FGREP"; then
6500 ac_path_FGREP_found=false
6501 # Loop through the user's path and test for each of PROGNAME-LIST
6502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6504 do
6505 IFS=$as_save_IFS
6506 test -z "$as_dir" && as_dir=.
6507 for ac_prog in fgrep; do
6508 for ac_exec_ext in '' $ac_executable_extensions; do
6509 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6510 as_fn_executable_p "$ac_path_FGREP" || continue
6511 # Check for GNU ac_path_FGREP and select it if it is found.
6512 # Check for GNU $ac_path_FGREP
6513 case `"$ac_path_FGREP" --version 2>&1` in
6514 *GNU*)
6515 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6516 *)
6517 ac_count=0
6518 $as_echo_n 0123456789 >"conftest.in"
6519 while :
6520 do
6521 cat "conftest.in" "conftest.in" >"conftest.tmp"
6522 mv "conftest.tmp" "conftest.in"
6523 cp "conftest.in" "conftest.nl"
6524 $as_echo 'FGREP' >> "conftest.nl"
6525 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6526 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6527 as_fn_arith $ac_count + 1 && ac_count=$as_val
6528 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6529 # Best one so far, save it but keep looking for a better one
6530 ac_cv_path_FGREP="$ac_path_FGREP"
6531 ac_path_FGREP_max=$ac_count
6532 fi
6533 # 10*(2^10) chars as input seems more than enough
6534 test $ac_count -gt 10 && break
6535 done
6536 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6537 esac
6538
6539 $ac_path_FGREP_found && break 3
6540 done
6541 done
6542 done
6543 IFS=$as_save_IFS
6544 if test -z "$ac_cv_path_FGREP"; then
6545 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6546 fi
6547 else
6548 ac_cv_path_FGREP=$FGREP
6549 fi
6550
6551 fi
6552 fi
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6554 $as_echo "$ac_cv_path_FGREP" >&6; }
6555 FGREP="$ac_cv_path_FGREP"
6556
6557
6558 test -z "$GREP" && GREP=grep
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578 # Check whether --with-gnu-ld was given.
6579 if test "${with_gnu_ld+set}" = set; then :
6580 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6581 else
6582 with_gnu_ld=no
6583 fi
6584
6585 ac_prog=ld
6586 if test yes = "$GCC"; then
6587 # Check if gcc -print-prog-name=ld gives a path.
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6589 $as_echo_n "checking for ld used by $CC... " >&6; }
6590 case $host in
6591 *-*-mingw*)
6592 # gcc leaves a trailing carriage return, which upsets mingw
6593 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6594 *)
6595 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6596 esac
6597 case $ac_prog in
6598 # Accept absolute paths.
6599 [\\/]* | ?:[\\/]*)
6600 re_direlt='/[^/][^/]*/\.\./'
6601 # Canonicalize the pathname of ld
6602 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6603 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6604 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6605 done
6606 test -z "$LD" && LD=$ac_prog
6607 ;;
6608 "")
6609 # If it fails, then pretend we aren't using GCC.
6610 ac_prog=ld
6611 ;;
6612 *)
6613 # If it is relative, then search for the first ld in PATH.
6614 with_gnu_ld=unknown
6615 ;;
6616 esac
6617 elif test yes = "$with_gnu_ld"; then
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6619 $as_echo_n "checking for GNU ld... " >&6; }
6620 else
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6622 $as_echo_n "checking for non-GNU ld... " >&6; }
6623 fi
6624 if ${lt_cv_path_LD+:} false; then :
6625 $as_echo_n "(cached) " >&6
6626 else
6627 if test -z "$LD"; then
6628 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6629 for ac_dir in $PATH; do
6630 IFS=$lt_save_ifs
6631 test -z "$ac_dir" && ac_dir=.
6632 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6633 lt_cv_path_LD=$ac_dir/$ac_prog
6634 # Check to see if the program is GNU ld. I'd rather use --version,
6635 # but apparently some variants of GNU ld only accept -v.
6636 # Break only if it was the GNU/non-GNU ld that we prefer.
6637 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6638 *GNU* | *'with BFD'*)
6639 test no != "$with_gnu_ld" && break
6640 ;;
6641 *)
6642 test yes != "$with_gnu_ld" && break
6643 ;;
6644 esac
6645 fi
6646 done
6647 IFS=$lt_save_ifs
6648 else
6649 lt_cv_path_LD=$LD # Let the user override the test with a path.
6650 fi
6651 fi
6652
6653 LD=$lt_cv_path_LD
6654 if test -n "$LD"; then
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6656 $as_echo "$LD" >&6; }
6657 else
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6659 $as_echo "no" >&6; }
6660 fi
6661 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6663 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6664 if ${lt_cv_prog_gnu_ld+:} false; then :
6665 $as_echo_n "(cached) " >&6
6666 else
6667 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6668 case `$LD -v 2>&1 </dev/null` in
6669 *GNU* | *'with BFD'*)
6670 lt_cv_prog_gnu_ld=yes
6671 ;;
6672 *)
6673 lt_cv_prog_gnu_ld=no
6674 ;;
6675 esac
6676 fi
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6678 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6679 with_gnu_ld=$lt_cv_prog_gnu_ld
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6690 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6691 if ${lt_cv_path_NM+:} false; then :
6692 $as_echo_n "(cached) " >&6
6693 else
6694 if test -n "$NM"; then
6695 # Let the user override the test.
6696 lt_cv_path_NM=$NM
6697 else
6698 lt_nm_to_check=${ac_tool_prefix}nm
6699 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6700 lt_nm_to_check="$lt_nm_to_check nm"
6701 fi
6702 for lt_tmp_nm in $lt_nm_to_check; do
6703 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6704 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6705 IFS=$lt_save_ifs
6706 test -z "$ac_dir" && ac_dir=.
6707 tmp_nm=$ac_dir/$lt_tmp_nm
6708 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6709 # Check to see if the nm accepts a BSD-compat flag.
6710 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6711 # nm: unknown option "B" ignored
6712 # Tru64's nm complains that /dev/null is an invalid object file
6713 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6714 case $build_os in
6715 mingw*) lt_bad_file=conftest.nm/nofile ;;
6716 *) lt_bad_file=/dev/null ;;
6717 esac
6718 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6719 *$lt_bad_file* | *'Invalid file or object type'*)
6720 lt_cv_path_NM="$tmp_nm -B"
6721 break 2
6722 ;;
6723 *)
6724 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6725 */dev/null*)
6726 lt_cv_path_NM="$tmp_nm -p"
6727 break 2
6728 ;;
6729 *)
6730 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6731 continue # so that we can try to find one that supports BSD flags
6732 ;;
6733 esac
6734 ;;
6735 esac
6736 fi
6737 done
6738 IFS=$lt_save_ifs
6739 done
6740 : ${lt_cv_path_NM=no}
6741 fi
6742 fi
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6744 $as_echo "$lt_cv_path_NM" >&6; }
6745 if test no != "$lt_cv_path_NM"; then
6746 NM=$lt_cv_path_NM
6747 else
6748 # Didn't find any BSD compatible name lister, look for dumpbin.
6749 if test -n "$DUMPBIN"; then :
6750 # Let the user override the test.
6751 else
6752 if test -n "$ac_tool_prefix"; then
6753 for ac_prog in dumpbin "link -dump"
6754 do
6755 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6756 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6758 $as_echo_n "checking for $ac_word... " >&6; }
6759 if ${ac_cv_prog_DUMPBIN+:} false; then :
6760 $as_echo_n "(cached) " >&6
6761 else
6762 if test -n "$DUMPBIN"; then
6763 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6764 else
6765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766 for as_dir in $PATH
6767 do
6768 IFS=$as_save_IFS
6769 test -z "$as_dir" && as_dir=.
6770 for ac_exec_ext in '' $ac_executable_extensions; do
6771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6772 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6774 break 2
6775 fi
6776 done
6777 done
6778 IFS=$as_save_IFS
6779
6780 fi
6781 fi
6782 DUMPBIN=$ac_cv_prog_DUMPBIN
6783 if test -n "$DUMPBIN"; then
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6785 $as_echo "$DUMPBIN" >&6; }
6786 else
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6788 $as_echo "no" >&6; }
6789 fi
6790
6791
6792 test -n "$DUMPBIN" && break
6793 done
6794 fi
6795 if test -z "$DUMPBIN"; then
6796 ac_ct_DUMPBIN=$DUMPBIN
6797 for ac_prog in dumpbin "link -dump"
6798 do
6799 # Extract the first word of "$ac_prog", so it can be a program name with args.
6800 set dummy $ac_prog; ac_word=$2
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6802 $as_echo_n "checking for $ac_word... " >&6; }
6803 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6804 $as_echo_n "(cached) " >&6
6805 else
6806 if test -n "$ac_ct_DUMPBIN"; then
6807 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6808 else
6809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810 for as_dir in $PATH
6811 do
6812 IFS=$as_save_IFS
6813 test -z "$as_dir" && as_dir=.
6814 for ac_exec_ext in '' $ac_executable_extensions; do
6815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6816 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6818 break 2
6819 fi
6820 done
6821 done
6822 IFS=$as_save_IFS
6823
6824 fi
6825 fi
6826 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6827 if test -n "$ac_ct_DUMPBIN"; then
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6829 $as_echo "$ac_ct_DUMPBIN" >&6; }
6830 else
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6832 $as_echo "no" >&6; }
6833 fi
6834
6835
6836 test -n "$ac_ct_DUMPBIN" && break
6837 done
6838
6839 if test "x$ac_ct_DUMPBIN" = x; then
6840 DUMPBIN=":"
6841 else
6842 case $cross_compiling:$ac_tool_warned in
6843 yes:)
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6846 ac_tool_warned=yes ;;
6847 esac
6848 DUMPBIN=$ac_ct_DUMPBIN
6849 fi
6850 fi
6851
6852 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6853 *COFF*)
6854 DUMPBIN="$DUMPBIN -symbols -headers"
6855 ;;
6856 *)
6857 DUMPBIN=:
6858 ;;
6859 esac
6860 fi
6861
6862 if test : != "$DUMPBIN"; then
6863 NM=$DUMPBIN
6864 fi
6865 fi
6866 test -z "$NM" && NM=nm
6867
6868
6869
6870
6871
6872
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6874 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6875 if ${lt_cv_nm_interface+:} false; then :
6876 $as_echo_n "(cached) " >&6
6877 else
6878 lt_cv_nm_interface="BSD nm"
6879 echo "int some_variable = 0;" > conftest.$ac_ext
6880 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6881 (eval "$ac_compile" 2>conftest.err)
6882 cat conftest.err >&5
6883 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6884 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6885 cat conftest.err >&5
6886 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6887 cat conftest.out >&5
6888 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6889 lt_cv_nm_interface="MS dumpbin"
6890 fi
6891 rm -f conftest*
6892 fi
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6894 $as_echo "$lt_cv_nm_interface" >&6; }
6895
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6897 $as_echo_n "checking whether ln -s works... " >&6; }
6898 LN_S=$as_ln_s
6899 if test "$LN_S" = "ln -s"; then
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6901 $as_echo "yes" >&6; }
6902 else
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6904 $as_echo "no, using $LN_S" >&6; }
6905 fi
6906
6907 # find the maximum length of command line arguments
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6909 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6910 if ${lt_cv_sys_max_cmd_len+:} false; then :
6911 $as_echo_n "(cached) " >&6
6912 else
6913 i=0
6914 teststring=ABCD
6915
6916 case $build_os in
6917 msdosdjgpp*)
6918 # On DJGPP, this test can blow up pretty badly due to problems in libc
6919 # (any single argument exceeding 2000 bytes causes a buffer overrun
6920 # during glob expansion). Even if it were fixed, the result of this
6921 # check would be larger than it should be.
6922 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6923 ;;
6924
6925 gnu*)
6926 # Under GNU Hurd, this test is not required because there is
6927 # no limit to the length of command line arguments.
6928 # Libtool will interpret -1 as no limit whatsoever
6929 lt_cv_sys_max_cmd_len=-1;
6930 ;;
6931
6932 cygwin* | mingw* | cegcc*)
6933 # On Win9x/ME, this test blows up -- it succeeds, but takes
6934 # about 5 minutes as the teststring grows exponentially.
6935 # Worse, since 9x/ME are not pre-emptively multitasking,
6936 # you end up with a "frozen" computer, even though with patience
6937 # the test eventually succeeds (with a max line length of 256k).
6938 # Instead, let's just punt: use the minimum linelength reported by
6939 # all of the supported platforms: 8192 (on NT/2K/XP).
6940 lt_cv_sys_max_cmd_len=8192;
6941 ;;
6942
6943 mint*)
6944 # On MiNT this can take a long time and run out of memory.
6945 lt_cv_sys_max_cmd_len=8192;
6946 ;;
6947
6948 amigaos*)
6949 # On AmigaOS with pdksh, this test takes hours, literally.
6950 # So we just punt and use a minimum line length of 8192.
6951 lt_cv_sys_max_cmd_len=8192;
6952 ;;
6953
6954 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6955 # This has been around since 386BSD, at least. Likely further.
6956 if test -x /sbin/sysctl; then
6957 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6958 elif test -x /usr/sbin/sysctl; then
6959 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6960 else
6961 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6962 fi
6963 # And add a safety zone
6964 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6965 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6966 ;;
6967
6968 interix*)
6969 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6970 lt_cv_sys_max_cmd_len=196608
6971 ;;
6972
6973 os2*)
6974 # The test takes a long time on OS/2.
6975 lt_cv_sys_max_cmd_len=8192
6976 ;;
6977
6978 osf*)
6979 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6980 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6981 # nice to cause kernel panics so lets avoid the loop below.
6982 # First set a reasonable default.
6983 lt_cv_sys_max_cmd_len=16384
6984 #
6985 if test -x /sbin/sysconfig; then
6986 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6987 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6988 esac
6989 fi
6990 ;;
6991 sco3.2v5*)
6992 lt_cv_sys_max_cmd_len=102400
6993 ;;
6994 sysv5* | sco5v6* | sysv4.2uw2*)
6995 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6996 if test -n "$kargmax"; then
6997 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6998 else
6999 lt_cv_sys_max_cmd_len=32768
7000 fi
7001 ;;
7002 *)
7003 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7004 if test -n "$lt_cv_sys_max_cmd_len" && \
7005 test undefined != "$lt_cv_sys_max_cmd_len"; then
7006 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7007 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7008 else
7009 # Make teststring a little bigger before we do anything with it.
7010 # a 1K string should be a reasonable start.
7011 for i in 1 2 3 4 5 6 7 8; do
7012 teststring=$teststring$teststring
7013 done
7014 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7015 # If test is not a shell built-in, we'll probably end up computing a
7016 # maximum length that is only half of the actual maximum length, but
7017 # we can't tell.
7018 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7019 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7020 test 17 != "$i" # 1/2 MB should be enough
7021 do
7022 i=`expr $i + 1`
7023 teststring=$teststring$teststring
7024 done
7025 # Only check the string length outside the loop.
7026 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7027 teststring=
7028 # Add a significant safety factor because C++ compilers can tack on
7029 # massive amounts of additional arguments before passing them to the
7030 # linker. It appears as though 1/2 is a usable value.
7031 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7032 fi
7033 ;;
7034 esac
7035
7036 fi
7037
7038 if test -n "$lt_cv_sys_max_cmd_len"; then
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7040 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7041 else
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7043 $as_echo "none" >&6; }
7044 fi
7045 max_cmd_len=$lt_cv_sys_max_cmd_len
7046
7047
7048
7049
7050
7051
7052 : ${CP="cp -f"}
7053 : ${MV="mv -f"}
7054 : ${RM="rm -f"}
7055
7056 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7057 lt_unset=unset
7058 else
7059 lt_unset=false
7060 fi
7061
7062
7063
7064
7065
7066 # test EBCDIC or ASCII
7067 case `echo X|tr X '\101'` in
7068 A) # ASCII based system
7069 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7070 lt_SP2NL='tr \040 \012'
7071 lt_NL2SP='tr \015\012 \040\040'
7072 ;;
7073 *) # EBCDIC based system
7074 lt_SP2NL='tr \100 \n'
7075 lt_NL2SP='tr \r\n \100\100'
7076 ;;
7077 esac
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7088 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7089 if ${lt_cv_to_host_file_cmd+:} false; then :
7090 $as_echo_n "(cached) " >&6
7091 else
7092 case $host in
7093 *-*-mingw* )
7094 case $build in
7095 *-*-mingw* ) # actually msys
7096 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7097 ;;
7098 *-*-cygwin* )
7099 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7100 ;;
7101 * ) # otherwise, assume *nix
7102 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7103 ;;
7104 esac
7105 ;;
7106 *-*-cygwin* )
7107 case $build in
7108 *-*-mingw* ) # actually msys
7109 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7110 ;;
7111 *-*-cygwin* )
7112 lt_cv_to_host_file_cmd=func_convert_file_noop
7113 ;;
7114 * ) # otherwise, assume *nix
7115 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7116 ;;
7117 esac
7118 ;;
7119 * ) # unhandled hosts (and "normal" native builds)
7120 lt_cv_to_host_file_cmd=func_convert_file_noop
7121 ;;
7122 esac
7123
7124 fi
7125
7126 to_host_file_cmd=$lt_cv_to_host_file_cmd
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7128 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7129
7130
7131
7132
7133
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7135 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7136 if ${lt_cv_to_tool_file_cmd+:} false; then :
7137 $as_echo_n "(cached) " >&6
7138 else
7139 #assume ordinary cross tools, or native build.
7140 lt_cv_to_tool_file_cmd=func_convert_file_noop
7141 case $host in
7142 *-*-mingw* )
7143 case $build in
7144 *-*-mingw* ) # actually msys
7145 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7146 ;;
7147 esac
7148 ;;
7149 esac
7150
7151 fi
7152
7153 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7155 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7156
7157
7158
7159
7160
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7162 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7163 if ${lt_cv_ld_reload_flag+:} false; then :
7164 $as_echo_n "(cached) " >&6
7165 else
7166 lt_cv_ld_reload_flag='-r'
7167 fi
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7169 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7170 reload_flag=$lt_cv_ld_reload_flag
7171 case $reload_flag in
7172 "" | " "*) ;;
7173 *) reload_flag=" $reload_flag" ;;
7174 esac
7175 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7176 case $host_os in
7177 cygwin* | mingw* | pw32* | cegcc*)
7178 if test yes != "$GCC"; then
7179 reload_cmds=false
7180 fi
7181 ;;
7182 darwin*)
7183 if test yes = "$GCC"; then
7184 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7185 else
7186 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7187 fi
7188 ;;
7189 esac
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199 if test -n "$ac_tool_prefix"; then
7200 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7201 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7203 $as_echo_n "checking for $ac_word... " >&6; }
7204 if ${ac_cv_prog_OBJDUMP+:} false; then :
7205 $as_echo_n "(cached) " >&6
7206 else
7207 if test -n "$OBJDUMP"; then
7208 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7209 else
7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211 for as_dir in $PATH
7212 do
7213 IFS=$as_save_IFS
7214 test -z "$as_dir" && as_dir=.
7215 for ac_exec_ext in '' $ac_executable_extensions; do
7216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7217 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7219 break 2
7220 fi
7221 done
7222 done
7223 IFS=$as_save_IFS
7224
7225 fi
7226 fi
7227 OBJDUMP=$ac_cv_prog_OBJDUMP
7228 if test -n "$OBJDUMP"; then
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7230 $as_echo "$OBJDUMP" >&6; }
7231 else
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7233 $as_echo "no" >&6; }
7234 fi
7235
7236
7237 fi
7238 if test -z "$ac_cv_prog_OBJDUMP"; then
7239 ac_ct_OBJDUMP=$OBJDUMP
7240 # Extract the first word of "objdump", so it can be a program name with args.
7241 set dummy objdump; ac_word=$2
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7243 $as_echo_n "checking for $ac_word... " >&6; }
7244 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7245 $as_echo_n "(cached) " >&6
7246 else
7247 if test -n "$ac_ct_OBJDUMP"; then
7248 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7249 else
7250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 for as_dir in $PATH
7252 do
7253 IFS=$as_save_IFS
7254 test -z "$as_dir" && as_dir=.
7255 for ac_exec_ext in '' $ac_executable_extensions; do
7256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7257 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7259 break 2
7260 fi
7261 done
7262 done
7263 IFS=$as_save_IFS
7264
7265 fi
7266 fi
7267 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7268 if test -n "$ac_ct_OBJDUMP"; then
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7270 $as_echo "$ac_ct_OBJDUMP" >&6; }
7271 else
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7273 $as_echo "no" >&6; }
7274 fi
7275
7276 if test "x$ac_ct_OBJDUMP" = x; then
7277 OBJDUMP="false"
7278 else
7279 case $cross_compiling:$ac_tool_warned in
7280 yes:)
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7283 ac_tool_warned=yes ;;
7284 esac
7285 OBJDUMP=$ac_ct_OBJDUMP
7286 fi
7287 else
7288 OBJDUMP="$ac_cv_prog_OBJDUMP"
7289 fi
7290
7291 test -z "$OBJDUMP" && OBJDUMP=objdump
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7302 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7303 if ${lt_cv_deplibs_check_method+:} false; then :
7304 $as_echo_n "(cached) " >&6
7305 else
7306 lt_cv_file_magic_cmd='$MAGIC_CMD'
7307 lt_cv_file_magic_test_file=
7308 lt_cv_deplibs_check_method='unknown'
7309 # Need to set the preceding variable on all platforms that support
7310 # interlibrary dependencies.
7311 # 'none' -- dependencies not supported.
7312 # 'unknown' -- same as none, but documents that we really don't know.
7313 # 'pass_all' -- all dependencies passed with no checks.
7314 # 'test_compile' -- check by making test program.
7315 # 'file_magic [[regex]]' -- check by looking for files in library path
7316 # that responds to the $file_magic_cmd with a given extended regex.
7317 # If you have 'file' or equivalent on your system and you're not sure
7318 # whether 'pass_all' will *always* work, you probably want this one.
7319
7320 case $host_os in
7321 aix[4-9]*)
7322 lt_cv_deplibs_check_method=pass_all
7323 ;;
7324
7325 beos*)
7326 lt_cv_deplibs_check_method=pass_all
7327 ;;
7328
7329 bsdi[45]*)
7330 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7331 lt_cv_file_magic_cmd='/usr/bin/file -L'
7332 lt_cv_file_magic_test_file=/shlib/libc.so
7333 ;;
7334
7335 cygwin*)
7336 # func_win32_libid is a shell function defined in ltmain.sh
7337 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7338 lt_cv_file_magic_cmd='func_win32_libid'
7339 ;;
7340
7341 mingw* | pw32*)
7342 # Base MSYS/MinGW do not provide the 'file' command needed by
7343 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7344 # unless we find 'file', for example because we are cross-compiling.
7345 if ( file / ) >/dev/null 2>&1; then
7346 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7347 lt_cv_file_magic_cmd='func_win32_libid'
7348 else
7349 # Keep this pattern in sync with the one in func_win32_libid.
7350 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7351 lt_cv_file_magic_cmd='$OBJDUMP -f'
7352 fi
7353 ;;
7354
7355 cegcc*)
7356 # use the weaker test based on 'objdump'. See mingw*.
7357 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7358 lt_cv_file_magic_cmd='$OBJDUMP -f'
7359 ;;
7360
7361 darwin* | rhapsody*)
7362 lt_cv_deplibs_check_method=pass_all
7363 ;;
7364
7365 freebsd* | dragonfly*)
7366 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7367 case $host_cpu in
7368 i*86 )
7369 # Not sure whether the presence of OpenBSD here was a mistake.
7370 # Let's accept both of them until this is cleared up.
7371 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7372 lt_cv_file_magic_cmd=/usr/bin/file
7373 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7374 ;;
7375 esac
7376 else
7377 lt_cv_deplibs_check_method=pass_all
7378 fi
7379 ;;
7380
7381 haiku*)
7382 lt_cv_deplibs_check_method=pass_all
7383 ;;
7384
7385 hpux10.20* | hpux11*)
7386 lt_cv_file_magic_cmd=/usr/bin/file
7387 case $host_cpu in
7388 ia64*)
7389 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7390 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7391 ;;
7392 hppa*64*)
7393 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]'
7394 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7395 ;;
7396 *)
7397 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7398 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7399 ;;
7400 esac
7401 ;;
7402
7403 interix[3-9]*)
7404 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7405 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7406 ;;
7407
7408 irix5* | irix6* | nonstopux*)
7409 case $LD in
7410 *-32|*"-32 ") libmagic=32-bit;;
7411 *-n32|*"-n32 ") libmagic=N32;;
7412 *-64|*"-64 ") libmagic=64-bit;;
7413 *) libmagic=never-match;;
7414 esac
7415 lt_cv_deplibs_check_method=pass_all
7416 ;;
7417
7418 # This must be glibc/ELF.
7419 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7420 lt_cv_deplibs_check_method=pass_all
7421 ;;
7422
7423 netbsd*)
7424 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7425 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7426 else
7427 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7428 fi
7429 ;;
7430
7431 newos6*)
7432 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7433 lt_cv_file_magic_cmd=/usr/bin/file
7434 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7435 ;;
7436
7437 *nto* | *qnx*)
7438 lt_cv_deplibs_check_method=pass_all
7439 ;;
7440
7441 openbsd* | bitrig*)
7442 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7443 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7444 else
7445 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7446 fi
7447 ;;
7448
7449 osf3* | osf4* | osf5*)
7450 lt_cv_deplibs_check_method=pass_all
7451 ;;
7452
7453 rdos*)
7454 lt_cv_deplibs_check_method=pass_all
7455 ;;
7456
7457 solaris*)
7458 lt_cv_deplibs_check_method=pass_all
7459 ;;
7460
7461 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7462 lt_cv_deplibs_check_method=pass_all
7463 ;;
7464
7465 sysv4 | sysv4.3*)
7466 case $host_vendor in
7467 motorola)
7468 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]'
7469 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7470 ;;
7471 ncr)
7472 lt_cv_deplibs_check_method=pass_all
7473 ;;
7474 sequent)
7475 lt_cv_file_magic_cmd='/bin/file'
7476 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7477 ;;
7478 sni)
7479 lt_cv_file_magic_cmd='/bin/file'
7480 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7481 lt_cv_file_magic_test_file=/lib/libc.so
7482 ;;
7483 siemens)
7484 lt_cv_deplibs_check_method=pass_all
7485 ;;
7486 pc)
7487 lt_cv_deplibs_check_method=pass_all
7488 ;;
7489 esac
7490 ;;
7491
7492 tpf*)
7493 lt_cv_deplibs_check_method=pass_all
7494 ;;
7495 os2*)
7496 lt_cv_deplibs_check_method=pass_all
7497 ;;
7498 esac
7499
7500 fi
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7502 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7503
7504 file_magic_glob=
7505 want_nocaseglob=no
7506 if test "$build" = "$host"; then
7507 case $host_os in
7508 mingw* | pw32*)
7509 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7510 want_nocaseglob=yes
7511 else
7512 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7513 fi
7514 ;;
7515 esac
7516 fi
7517
7518 file_magic_cmd=$lt_cv_file_magic_cmd
7519 deplibs_check_method=$lt_cv_deplibs_check_method
7520 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543 if test -n "$ac_tool_prefix"; then
7544 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7545 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7547 $as_echo_n "checking for $ac_word... " >&6; }
7548 if ${ac_cv_prog_DLLTOOL+:} false; then :
7549 $as_echo_n "(cached) " >&6
7550 else
7551 if test -n "$DLLTOOL"; then
7552 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7553 else
7554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555 for as_dir in $PATH
7556 do
7557 IFS=$as_save_IFS
7558 test -z "$as_dir" && as_dir=.
7559 for ac_exec_ext in '' $ac_executable_extensions; do
7560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7561 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7563 break 2
7564 fi
7565 done
7566 done
7567 IFS=$as_save_IFS
7568
7569 fi
7570 fi
7571 DLLTOOL=$ac_cv_prog_DLLTOOL
7572 if test -n "$DLLTOOL"; then
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7574 $as_echo "$DLLTOOL" >&6; }
7575 else
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7577 $as_echo "no" >&6; }
7578 fi
7579
7580
7581 fi
7582 if test -z "$ac_cv_prog_DLLTOOL"; then
7583 ac_ct_DLLTOOL=$DLLTOOL
7584 # Extract the first word of "dlltool", so it can be a program name with args.
7585 set dummy dlltool; ac_word=$2
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7587 $as_echo_n "checking for $ac_word... " >&6; }
7588 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7589 $as_echo_n "(cached) " >&6
7590 else
7591 if test -n "$ac_ct_DLLTOOL"; then
7592 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7593 else
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595 for as_dir in $PATH
7596 do
7597 IFS=$as_save_IFS
7598 test -z "$as_dir" && as_dir=.
7599 for ac_exec_ext in '' $ac_executable_extensions; do
7600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7601 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7603 break 2
7604 fi
7605 done
7606 done
7607 IFS=$as_save_IFS
7608
7609 fi
7610 fi
7611 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7612 if test -n "$ac_ct_DLLTOOL"; then
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7614 $as_echo "$ac_ct_DLLTOOL" >&6; }
7615 else
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7617 $as_echo "no" >&6; }
7618 fi
7619
7620 if test "x$ac_ct_DLLTOOL" = x; then
7621 DLLTOOL="false"
7622 else
7623 case $cross_compiling:$ac_tool_warned in
7624 yes:)
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7627 ac_tool_warned=yes ;;
7628 esac
7629 DLLTOOL=$ac_ct_DLLTOOL
7630 fi
7631 else
7632 DLLTOOL="$ac_cv_prog_DLLTOOL"
7633 fi
7634
7635 test -z "$DLLTOOL" && DLLTOOL=dlltool
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7647 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7648 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7649 $as_echo_n "(cached) " >&6
7650 else
7651 lt_cv_sharedlib_from_linklib_cmd='unknown'
7652
7653 case $host_os in
7654 cygwin* | mingw* | pw32* | cegcc*)
7655 # two different shell functions defined in ltmain.sh;
7656 # decide which one to use based on capabilities of $DLLTOOL
7657 case `$DLLTOOL --help 2>&1` in
7658 *--identify-strict*)
7659 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7660 ;;
7661 *)
7662 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7663 ;;
7664 esac
7665 ;;
7666 *)
7667 # fallback: assume linklib IS sharedlib
7668 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7669 ;;
7670 esac
7671
7672 fi
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7674 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7675 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7676 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7677
7678
7679
7680
7681
7682
7683
7684 if test -n "$ac_tool_prefix"; then
7685 for ac_prog in ar
7686 do
7687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7688 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7690 $as_echo_n "checking for $ac_word... " >&6; }
7691 if ${ac_cv_prog_AR+:} false; then :
7692 $as_echo_n "(cached) " >&6
7693 else
7694 if test -n "$AR"; then
7695 ac_cv_prog_AR="$AR" # Let the user override the test.
7696 else
7697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7698 for as_dir in $PATH
7699 do
7700 IFS=$as_save_IFS
7701 test -z "$as_dir" && as_dir=.
7702 for ac_exec_ext in '' $ac_executable_extensions; do
7703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7704 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7706 break 2
7707 fi
7708 done
7709 done
7710 IFS=$as_save_IFS
7711
7712 fi
7713 fi
7714 AR=$ac_cv_prog_AR
7715 if test -n "$AR"; then
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7717 $as_echo "$AR" >&6; }
7718 else
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7720 $as_echo "no" >&6; }
7721 fi
7722
7723
7724 test -n "$AR" && break
7725 done
7726 fi
7727 if test -z "$AR"; then
7728 ac_ct_AR=$AR
7729 for ac_prog in ar
7730 do
7731 # Extract the first word of "$ac_prog", so it can be a program name with args.
7732 set dummy $ac_prog; ac_word=$2
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7734 $as_echo_n "checking for $ac_word... " >&6; }
7735 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7736 $as_echo_n "(cached) " >&6
7737 else
7738 if test -n "$ac_ct_AR"; then
7739 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7740 else
7741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7742 for as_dir in $PATH
7743 do
7744 IFS=$as_save_IFS
7745 test -z "$as_dir" && as_dir=.
7746 for ac_exec_ext in '' $ac_executable_extensions; do
7747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7748 ac_cv_prog_ac_ct_AR="$ac_prog"
7749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7750 break 2
7751 fi
7752 done
7753 done
7754 IFS=$as_save_IFS
7755
7756 fi
7757 fi
7758 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7759 if test -n "$ac_ct_AR"; then
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7761 $as_echo "$ac_ct_AR" >&6; }
7762 else
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7764 $as_echo "no" >&6; }
7765 fi
7766
7767
7768 test -n "$ac_ct_AR" && break
7769 done
7770
7771 if test "x$ac_ct_AR" = x; then
7772 AR="false"
7773 else
7774 case $cross_compiling:$ac_tool_warned in
7775 yes:)
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7778 ac_tool_warned=yes ;;
7779 esac
7780 AR=$ac_ct_AR
7781 fi
7782 fi
7783
7784 : ${AR=ar}
7785 : ${AR_FLAGS=cru}
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7798 $as_echo_n "checking for archiver @FILE support... " >&6; }
7799 if ${lt_cv_ar_at_file+:} false; then :
7800 $as_echo_n "(cached) " >&6
7801 else
7802 lt_cv_ar_at_file=no
7803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804 /* end confdefs.h. */
7805
7806 int
7807 main ()
7808 {
7809
7810 ;
7811 return 0;
7812 }
7813 _ACEOF
7814 if ac_fn_c_try_compile "$LINENO"; then :
7815 echo conftest.$ac_objext > conftest.lst
7816 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7818 (eval $lt_ar_try) 2>&5
7819 ac_status=$?
7820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7821 test $ac_status = 0; }
7822 if test 0 -eq "$ac_status"; then
7823 # Ensure the archiver fails upon bogus file names.
7824 rm -f conftest.$ac_objext libconftest.a
7825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7826 (eval $lt_ar_try) 2>&5
7827 ac_status=$?
7828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7829 test $ac_status = 0; }
7830 if test 0 -ne "$ac_status"; then
7831 lt_cv_ar_at_file=@
7832 fi
7833 fi
7834 rm -f conftest.* libconftest.a
7835
7836 fi
7837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7838
7839 fi
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7841 $as_echo "$lt_cv_ar_at_file" >&6; }
7842
7843 if test no = "$lt_cv_ar_at_file"; then
7844 archiver_list_spec=
7845 else
7846 archiver_list_spec=$lt_cv_ar_at_file
7847 fi
7848
7849
7850
7851
7852
7853
7854
7855 if test -n "$ac_tool_prefix"; then
7856 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7857 set dummy ${ac_tool_prefix}strip; ac_word=$2
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7859 $as_echo_n "checking for $ac_word... " >&6; }
7860 if ${ac_cv_prog_STRIP+:} false; then :
7861 $as_echo_n "(cached) " >&6
7862 else
7863 if test -n "$STRIP"; then
7864 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7865 else
7866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7867 for as_dir in $PATH
7868 do
7869 IFS=$as_save_IFS
7870 test -z "$as_dir" && as_dir=.
7871 for ac_exec_ext in '' $ac_executable_extensions; do
7872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7873 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7875 break 2
7876 fi
7877 done
7878 done
7879 IFS=$as_save_IFS
7880
7881 fi
7882 fi
7883 STRIP=$ac_cv_prog_STRIP
7884 if test -n "$STRIP"; then
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7886 $as_echo "$STRIP" >&6; }
7887 else
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7889 $as_echo "no" >&6; }
7890 fi
7891
7892
7893 fi
7894 if test -z "$ac_cv_prog_STRIP"; then
7895 ac_ct_STRIP=$STRIP
7896 # Extract the first word of "strip", so it can be a program name with args.
7897 set dummy strip; ac_word=$2
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7899 $as_echo_n "checking for $ac_word... " >&6; }
7900 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7901 $as_echo_n "(cached) " >&6
7902 else
7903 if test -n "$ac_ct_STRIP"; then
7904 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7905 else
7906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7907 for as_dir in $PATH
7908 do
7909 IFS=$as_save_IFS
7910 test -z "$as_dir" && as_dir=.
7911 for ac_exec_ext in '' $ac_executable_extensions; do
7912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7913 ac_cv_prog_ac_ct_STRIP="strip"
7914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7915 break 2
7916 fi
7917 done
7918 done
7919 IFS=$as_save_IFS
7920
7921 fi
7922 fi
7923 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7924 if test -n "$ac_ct_STRIP"; then
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7926 $as_echo "$ac_ct_STRIP" >&6; }
7927 else
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7929 $as_echo "no" >&6; }
7930 fi
7931
7932 if test "x$ac_ct_STRIP" = x; then
7933 STRIP=":"
7934 else
7935 case $cross_compiling:$ac_tool_warned in
7936 yes:)
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7939 ac_tool_warned=yes ;;
7940 esac
7941 STRIP=$ac_ct_STRIP
7942 fi
7943 else
7944 STRIP="$ac_cv_prog_STRIP"
7945 fi
7946
7947 test -z "$STRIP" && STRIP=:
7948
7949
7950
7951
7952
7953
7954 if test -n "$ac_tool_prefix"; then
7955 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7956 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7958 $as_echo_n "checking for $ac_word... " >&6; }
7959 if ${ac_cv_prog_RANLIB+:} false; then :
7960 $as_echo_n "(cached) " >&6
7961 else
7962 if test -n "$RANLIB"; then
7963 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7964 else
7965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7966 for as_dir in $PATH
7967 do
7968 IFS=$as_save_IFS
7969 test -z "$as_dir" && as_dir=.
7970 for ac_exec_ext in '' $ac_executable_extensions; do
7971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7972 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7974 break 2
7975 fi
7976 done
7977 done
7978 IFS=$as_save_IFS
7979
7980 fi
7981 fi
7982 RANLIB=$ac_cv_prog_RANLIB
7983 if test -n "$RANLIB"; then
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7985 $as_echo "$RANLIB" >&6; }
7986 else
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7988 $as_echo "no" >&6; }
7989 fi
7990
7991
7992 fi
7993 if test -z "$ac_cv_prog_RANLIB"; then
7994 ac_ct_RANLIB=$RANLIB
7995 # Extract the first word of "ranlib", so it can be a program name with args.
7996 set dummy ranlib; ac_word=$2
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7998 $as_echo_n "checking for $ac_word... " >&6; }
7999 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8000 $as_echo_n "(cached) " >&6
8001 else
8002 if test -n "$ac_ct_RANLIB"; then
8003 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8004 else
8005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006 for as_dir in $PATH
8007 do
8008 IFS=$as_save_IFS
8009 test -z "$as_dir" && as_dir=.
8010 for ac_exec_ext in '' $ac_executable_extensions; do
8011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8012 ac_cv_prog_ac_ct_RANLIB="ranlib"
8013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8014 break 2
8015 fi
8016 done
8017 done
8018 IFS=$as_save_IFS
8019
8020 fi
8021 fi
8022 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8023 if test -n "$ac_ct_RANLIB"; then
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8025 $as_echo "$ac_ct_RANLIB" >&6; }
8026 else
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028 $as_echo "no" >&6; }
8029 fi
8030
8031 if test "x$ac_ct_RANLIB" = x; then
8032 RANLIB=":"
8033 else
8034 case $cross_compiling:$ac_tool_warned in
8035 yes:)
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8038 ac_tool_warned=yes ;;
8039 esac
8040 RANLIB=$ac_ct_RANLIB
8041 fi
8042 else
8043 RANLIB="$ac_cv_prog_RANLIB"
8044 fi
8045
8046 test -z "$RANLIB" && RANLIB=:
8047
8048
8049
8050
8051
8052
8053 # Determine commands to create old-style static archives.
8054 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8055 old_postinstall_cmds='chmod 644 $oldlib'
8056 old_postuninstall_cmds=
8057
8058 if test -n "$RANLIB"; then
8059 case $host_os in
8060 bitrig* | openbsd*)
8061 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8062 ;;
8063 *)
8064 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8065 ;;
8066 esac
8067 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8068 fi
8069
8070 case $host_os in
8071 darwin*)
8072 lock_old_archive_extraction=yes ;;
8073 *)
8074 lock_old_archive_extraction=no ;;
8075 esac
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115 # If no C compiler was specified, use CC.
8116 LTCC=${LTCC-"$CC"}
8117
8118 # If no C compiler flags were specified, use CFLAGS.
8119 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8120
8121 # Allow CC to be a program name with arguments.
8122 compiler=$CC
8123
8124
8125 # Check for command to grab the raw symbol name followed by C symbol from nm.
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8127 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8128 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8129 $as_echo_n "(cached) " >&6
8130 else
8131
8132 # These are sane defaults that work on at least a few old systems.
8133 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8134
8135 # Character class describing NM global symbol codes.
8136 symcode='[BCDEGRST]'
8137
8138 # Regexp to match symbols that can be accessed directly from C.
8139 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8140
8141 # Define system-specific variables.
8142 case $host_os in
8143 aix*)
8144 symcode='[BCDT]'
8145 ;;
8146 cygwin* | mingw* | pw32* | cegcc*)
8147 symcode='[ABCDGISTW]'
8148 ;;
8149 hpux*)
8150 if test ia64 = "$host_cpu"; then
8151 symcode='[ABCDEGRST]'
8152 fi
8153 ;;
8154 irix* | nonstopux*)
8155 symcode='[BCDEGRST]'
8156 ;;
8157 osf*)
8158 symcode='[BCDEGQRST]'
8159 ;;
8160 solaris*)
8161 symcode='[BDRT]'
8162 ;;
8163 sco3.2v5*)
8164 symcode='[DT]'
8165 ;;
8166 sysv4.2uw2*)
8167 symcode='[DT]'
8168 ;;
8169 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8170 symcode='[ABDT]'
8171 ;;
8172 sysv4)
8173 symcode='[DFNSTU]'
8174 ;;
8175 esac
8176
8177 # If we're using GNU nm, then use its standard symbol codes.
8178 case `$NM -V 2>&1` in
8179 *GNU* | *'with BFD'*)
8180 symcode='[ABCDGIRSTW]' ;;
8181 esac
8182
8183 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8184 # Gets list of data symbols to import.
8185 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8186 # Adjust the below global symbol transforms to fixup imported variables.
8187 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8188 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8189 lt_c_name_lib_hook="\
8190 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8191 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8192 else
8193 # Disable hooks by default.
8194 lt_cv_sys_global_symbol_to_import=
8195 lt_cdecl_hook=
8196 lt_c_name_hook=
8197 lt_c_name_lib_hook=
8198 fi
8199
8200 # Transform an extracted symbol line into a proper C declaration.
8201 # Some systems (esp. on ia64) link data and code symbols differently,
8202 # so use this general approach.
8203 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8204 $lt_cdecl_hook\
8205 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8206 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8207
8208 # Transform an extracted symbol line into symbol name and symbol address
8209 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8210 $lt_c_name_hook\
8211 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8212 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8213
8214 # Transform an extracted symbol line into symbol name with lib prefix and
8215 # symbol address.
8216 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8217 $lt_c_name_lib_hook\
8218 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8219 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8220 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8221
8222 # Handle CRLF in mingw tool chain
8223 opt_cr=
8224 case $build_os in
8225 mingw*)
8226 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8227 ;;
8228 esac
8229
8230 # Try without a prefix underscore, then with it.
8231 for ac_symprfx in "" "_"; do
8232
8233 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8234 symxfrm="\\1 $ac_symprfx\\2 \\2"
8235
8236 # Write the raw and C identifiers.
8237 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8238 # Fake it for dumpbin and say T for any non-static function,
8239 # D for any global variable and I for any imported variable.
8240 # Also find C++ and __fastcall symbols from MSVC++,
8241 # which start with @ or ?.
8242 lt_cv_sys_global_symbol_pipe="$AWK '"\
8243 " {last_section=section; section=\$ 3};"\
8244 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8245 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8246 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8247 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8248 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8249 " \$ 0!~/External *\|/{next};"\
8250 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8251 " {if(hide[section]) next};"\
8252 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8253 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8254 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8255 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8256 " ' prfx=^$ac_symprfx"
8257 else
8258 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8259 fi
8260 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8261
8262 # Check to see that the pipe works correctly.
8263 pipe_works=no
8264
8265 rm -f conftest*
8266 cat > conftest.$ac_ext <<_LT_EOF
8267 #ifdef __cplusplus
8268 extern "C" {
8269 #endif
8270 char nm_test_var;
8271 void nm_test_func(void);
8272 void nm_test_func(void){}
8273 #ifdef __cplusplus
8274 }
8275 #endif
8276 int main(){nm_test_var='a';nm_test_func();return(0);}
8277 _LT_EOF
8278
8279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8280 (eval $ac_compile) 2>&5
8281 ac_status=$?
8282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8283 test $ac_status = 0; }; then
8284 # Now try to grab the symbols.
8285 nlist=conftest.nm
8286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8287 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8288 ac_status=$?
8289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8290 test $ac_status = 0; } && test -s "$nlist"; then
8291 # Try sorting and uniquifying the output.
8292 if sort "$nlist" | uniq > "$nlist"T; then
8293 mv -f "$nlist"T "$nlist"
8294 else
8295 rm -f "$nlist"T
8296 fi
8297
8298 # Make sure that we snagged all the symbols we need.
8299 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8300 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8301 cat <<_LT_EOF > conftest.$ac_ext
8302 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8303 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8304 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8305 relocations are performed -- see ld's documentation on pseudo-relocs. */
8306 # define LT_DLSYM_CONST
8307 #elif defined __osf__
8308 /* This system does not cope well with relocations in const data. */
8309 # define LT_DLSYM_CONST
8310 #else
8311 # define LT_DLSYM_CONST const
8312 #endif
8313
8314 #ifdef __cplusplus
8315 extern "C" {
8316 #endif
8317
8318 _LT_EOF
8319 # Now generate the symbol file.
8320 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8321
8322 cat <<_LT_EOF >> conftest.$ac_ext
8323
8324 /* The mapping between symbol names and symbols. */
8325 LT_DLSYM_CONST struct {
8326 const char *name;
8327 void *address;
8328 }
8329 lt__PROGRAM__LTX_preloaded_symbols[] =
8330 {
8331 { "@PROGRAM@", (void *) 0 },
8332 _LT_EOF
8333 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8334 cat <<\_LT_EOF >> conftest.$ac_ext
8335 {0, (void *) 0}
8336 };
8337
8338 /* This works around a problem in FreeBSD linker */
8339 #ifdef FREEBSD_WORKAROUND
8340 static const void *lt_preloaded_setup() {
8341 return lt__PROGRAM__LTX_preloaded_symbols;
8342 }
8343 #endif
8344
8345 #ifdef __cplusplus
8346 }
8347 #endif
8348 _LT_EOF
8349 # Now try linking the two files.
8350 mv conftest.$ac_objext conftstm.$ac_objext
8351 lt_globsym_save_LIBS=$LIBS
8352 lt_globsym_save_CFLAGS=$CFLAGS
8353 LIBS=conftstm.$ac_objext
8354 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8356 (eval $ac_link) 2>&5
8357 ac_status=$?
8358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8359 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8360 pipe_works=yes
8361 fi
8362 LIBS=$lt_globsym_save_LIBS
8363 CFLAGS=$lt_globsym_save_CFLAGS
8364 else
8365 echo "cannot find nm_test_func in $nlist" >&5
8366 fi
8367 else
8368 echo "cannot find nm_test_var in $nlist" >&5
8369 fi
8370 else
8371 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8372 fi
8373 else
8374 echo "$progname: failed program was:" >&5
8375 cat conftest.$ac_ext >&5
8376 fi
8377 rm -rf conftest* conftst*
8378
8379 # Do not use the global_symbol_pipe unless it works.
8380 if test yes = "$pipe_works"; then
8381 break
8382 else
8383 lt_cv_sys_global_symbol_pipe=
8384 fi
8385 done
8386
8387 fi
8388
8389 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8390 lt_cv_sys_global_symbol_to_cdecl=
8391 fi
8392 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8394 $as_echo "failed" >&6; }
8395 else
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8397 $as_echo "ok" >&6; }
8398 fi
8399
8400 # Response file support.
8401 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8402 nm_file_list_spec='@'
8403 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8404 nm_file_list_spec='@'
8405 fi
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8444 $as_echo_n "checking for sysroot... " >&6; }
8445
8446 # Check whether --with-sysroot was given.
8447 if test "${with_sysroot+set}" = set; then :
8448 withval=$with_sysroot;
8449 else
8450 with_sysroot=no
8451 fi
8452
8453
8454 lt_sysroot=
8455 case $with_sysroot in #(
8456 yes)
8457 if test yes = "$GCC"; then
8458 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8459 fi
8460 ;; #(
8461 /*)
8462 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8463 ;; #(
8464 no|'')
8465 ;; #(
8466 *)
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8468 $as_echo "$with_sysroot" >&6; }
8469 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8470 ;;
8471 esac
8472
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8474 $as_echo "${lt_sysroot:-no}" >&6; }
8475
8476
8477
8478
8479
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8481 $as_echo_n "checking for a working dd... " >&6; }
8482 if ${ac_cv_path_lt_DD+:} false; then :
8483 $as_echo_n "(cached) " >&6
8484 else
8485 printf 0123456789abcdef0123456789abcdef >conftest.i
8486 cat conftest.i conftest.i >conftest2.i
8487 : ${lt_DD:=$DD}
8488 if test -z "$lt_DD"; then
8489 ac_path_lt_DD_found=false
8490 # Loop through the user's path and test for each of PROGNAME-LIST
8491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8492 for as_dir in $PATH
8493 do
8494 IFS=$as_save_IFS
8495 test -z "$as_dir" && as_dir=.
8496 for ac_prog in dd; do
8497 for ac_exec_ext in '' $ac_executable_extensions; do
8498 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8499 as_fn_executable_p "$ac_path_lt_DD" || continue
8500 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8501 cmp -s conftest.i conftest.out \
8502 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8503 fi
8504 $ac_path_lt_DD_found && break 3
8505 done
8506 done
8507 done
8508 IFS=$as_save_IFS
8509 if test -z "$ac_cv_path_lt_DD"; then
8510 :
8511 fi
8512 else
8513 ac_cv_path_lt_DD=$lt_DD
8514 fi
8515
8516 rm -f conftest.i conftest2.i conftest.out
8517 fi
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8519 $as_echo "$ac_cv_path_lt_DD" >&6; }
8520
8521
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8523 $as_echo_n "checking how to truncate binary pipes... " >&6; }
8524 if ${lt_cv_truncate_bin+:} false; then :
8525 $as_echo_n "(cached) " >&6
8526 else
8527 printf 0123456789abcdef0123456789abcdef >conftest.i
8528 cat conftest.i conftest.i >conftest2.i
8529 lt_cv_truncate_bin=
8530 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8531 cmp -s conftest.i conftest.out \
8532 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8533 fi
8534 rm -f conftest.i conftest2.i conftest.out
8535 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8536 fi
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8538 $as_echo "$lt_cv_truncate_bin" >&6; }
8539
8540
8541
8542
8543
8544
8545
8546 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8547 func_cc_basename ()
8548 {
8549 for cc_temp in $*""; do
8550 case $cc_temp in
8551 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8552 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8553 \-*) ;;
8554 *) break;;
8555 esac
8556 done
8557 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8558 }
8559
8560 # Check whether --enable-libtool-lock was given.
8561 if test "${enable_libtool_lock+set}" = set; then :
8562 enableval=$enable_libtool_lock;
8563 fi
8564
8565 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8566
8567 # Some flags need to be propagated to the compiler or linker for good
8568 # libtool support.
8569 case $host in
8570 ia64-*-hpux*)
8571 # Find out what ABI is being produced by ac_compile, and set mode
8572 # options accordingly.
8573 echo 'int i;' > conftest.$ac_ext
8574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8575 (eval $ac_compile) 2>&5
8576 ac_status=$?
8577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8578 test $ac_status = 0; }; then
8579 case `/usr/bin/file conftest.$ac_objext` in
8580 *ELF-32*)
8581 HPUX_IA64_MODE=32
8582 ;;
8583 *ELF-64*)
8584 HPUX_IA64_MODE=64
8585 ;;
8586 esac
8587 fi
8588 rm -rf conftest*
8589 ;;
8590 *-*-irix6*)
8591 # Find out what ABI is being produced by ac_compile, and set linker
8592 # options accordingly.
8593 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8595 (eval $ac_compile) 2>&5
8596 ac_status=$?
8597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8598 test $ac_status = 0; }; then
8599 if test yes = "$lt_cv_prog_gnu_ld"; then
8600 case `/usr/bin/file conftest.$ac_objext` in
8601 *32-bit*)
8602 LD="${LD-ld} -melf32bsmip"
8603 ;;
8604 *N32*)
8605 LD="${LD-ld} -melf32bmipn32"
8606 ;;
8607 *64-bit*)
8608 LD="${LD-ld} -melf64bmip"
8609 ;;
8610 esac
8611 else
8612 case `/usr/bin/file conftest.$ac_objext` in
8613 *32-bit*)
8614 LD="${LD-ld} -32"
8615 ;;
8616 *N32*)
8617 LD="${LD-ld} -n32"
8618 ;;
8619 *64-bit*)
8620 LD="${LD-ld} -64"
8621 ;;
8622 esac
8623 fi
8624 fi
8625 rm -rf conftest*
8626 ;;
8627
8628 mips64*-*linux*)
8629 # Find out what ABI is being produced by ac_compile, and set linker
8630 # options accordingly.
8631 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8632 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8633 (eval $ac_compile) 2>&5
8634 ac_status=$?
8635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8636 test $ac_status = 0; }; then
8637 emul=elf
8638 case `/usr/bin/file conftest.$ac_objext` in
8639 *32-bit*)
8640 emul="${emul}32"
8641 ;;
8642 *64-bit*)
8643 emul="${emul}64"
8644 ;;
8645 esac
8646 case `/usr/bin/file conftest.$ac_objext` in
8647 *MSB*)
8648 emul="${emul}btsmip"
8649 ;;
8650 *LSB*)
8651 emul="${emul}ltsmip"
8652 ;;
8653 esac
8654 case `/usr/bin/file conftest.$ac_objext` in
8655 *N32*)
8656 emul="${emul}n32"
8657 ;;
8658 esac
8659 LD="${LD-ld} -m $emul"
8660 fi
8661 rm -rf conftest*
8662 ;;
8663
8664 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8665 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8666 # Find out what ABI is being produced by ac_compile, and set linker
8667 # options accordingly. Note that the listed cases only cover the
8668 # situations where additional linker options are needed (such as when
8669 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8670 # vice versa); the common cases where no linker options are needed do
8671 # not appear in the list.
8672 echo 'int i;' > conftest.$ac_ext
8673 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8674 (eval $ac_compile) 2>&5
8675 ac_status=$?
8676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8677 test $ac_status = 0; }; then
8678 case `/usr/bin/file conftest.o` in
8679 *32-bit*)
8680 case $host in
8681 x86_64-*kfreebsd*-gnu)
8682 LD="${LD-ld} -m elf_i386_fbsd"
8683 ;;
8684 x86_64-*linux*)
8685 case `/usr/bin/file conftest.o` in
8686 *x86-64*)
8687 LD="${LD-ld} -m elf32_x86_64"
8688 ;;
8689 *)
8690 LD="${LD-ld} -m elf_i386"
8691 ;;
8692 esac
8693 ;;
8694 powerpc64le-*linux*)
8695 LD="${LD-ld} -m elf32lppclinux"
8696 ;;
8697 powerpc64-*linux*)
8698 LD="${LD-ld} -m elf32ppclinux"
8699 ;;
8700 s390x-*linux*)
8701 LD="${LD-ld} -m elf_s390"
8702 ;;
8703 sparc64-*linux*)
8704 LD="${LD-ld} -m elf32_sparc"
8705 ;;
8706 esac
8707 ;;
8708 *64-bit*)
8709 case $host in
8710 x86_64-*kfreebsd*-gnu)
8711 LD="${LD-ld} -m elf_x86_64_fbsd"
8712 ;;
8713 x86_64-*linux*)
8714 LD="${LD-ld} -m elf_x86_64"
8715 ;;
8716 powerpcle-*linux*)
8717 LD="${LD-ld} -m elf64lppc"
8718 ;;
8719 powerpc-*linux*)
8720 LD="${LD-ld} -m elf64ppc"
8721 ;;
8722 s390*-*linux*|s390*-*tpf*)
8723 LD="${LD-ld} -m elf64_s390"
8724 ;;
8725 sparc*-*linux*)
8726 LD="${LD-ld} -m elf64_sparc"
8727 ;;
8728 esac
8729 ;;
8730 esac
8731 fi
8732 rm -rf conftest*
8733 ;;
8734
8735 *-*-sco3.2v5*)
8736 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8737 SAVE_CFLAGS=$CFLAGS
8738 CFLAGS="$CFLAGS -belf"
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8740 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8741 if ${lt_cv_cc_needs_belf+:} false; then :
8742 $as_echo_n "(cached) " >&6
8743 else
8744 ac_ext=c
8745 ac_cpp='$CPP $CPPFLAGS'
8746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8749
8750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8751 /* end confdefs.h. */
8752
8753 int
8754 main ()
8755 {
8756
8757 ;
8758 return 0;
8759 }
8760 _ACEOF
8761 if ac_fn_c_try_link "$LINENO"; then :
8762 lt_cv_cc_needs_belf=yes
8763 else
8764 lt_cv_cc_needs_belf=no
8765 fi
8766 rm -f core conftest.err conftest.$ac_objext \
8767 conftest$ac_exeext conftest.$ac_ext
8768 ac_ext=c
8769 ac_cpp='$CPP $CPPFLAGS'
8770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8773
8774 fi
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8776 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8777 if test yes != "$lt_cv_cc_needs_belf"; then
8778 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8779 CFLAGS=$SAVE_CFLAGS
8780 fi
8781 ;;
8782 *-*solaris*)
8783 # Find out what ABI is being produced by ac_compile, and set linker
8784 # options accordingly.
8785 echo 'int i;' > conftest.$ac_ext
8786 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8787 (eval $ac_compile) 2>&5
8788 ac_status=$?
8789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8790 test $ac_status = 0; }; then
8791 case `/usr/bin/file conftest.o` in
8792 *64-bit*)
8793 case $lt_cv_prog_gnu_ld in
8794 yes*)
8795 case $host in
8796 i?86-*-solaris*|x86_64-*-solaris*)
8797 LD="${LD-ld} -m elf_x86_64"
8798 ;;
8799 sparc*-*-solaris*)
8800 LD="${LD-ld} -m elf64_sparc"
8801 ;;
8802 esac
8803 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8804 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8805 LD=${LD-ld}_sol2
8806 fi
8807 ;;
8808 *)
8809 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8810 LD="${LD-ld} -64"
8811 fi
8812 ;;
8813 esac
8814 ;;
8815 esac
8816 fi
8817 rm -rf conftest*
8818 ;;
8819 esac
8820
8821 need_locks=$enable_libtool_lock
8822
8823 if test -n "$ac_tool_prefix"; then
8824 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8825 set dummy ${ac_tool_prefix}mt; ac_word=$2
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8827 $as_echo_n "checking for $ac_word... " >&6; }
8828 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8829 $as_echo_n "(cached) " >&6
8830 else
8831 if test -n "$MANIFEST_TOOL"; then
8832 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8833 else
8834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8835 for as_dir in $PATH
8836 do
8837 IFS=$as_save_IFS
8838 test -z "$as_dir" && as_dir=.
8839 for ac_exec_ext in '' $ac_executable_extensions; do
8840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8841 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8843 break 2
8844 fi
8845 done
8846 done
8847 IFS=$as_save_IFS
8848
8849 fi
8850 fi
8851 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8852 if test -n "$MANIFEST_TOOL"; then
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8854 $as_echo "$MANIFEST_TOOL" >&6; }
8855 else
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8857 $as_echo "no" >&6; }
8858 fi
8859
8860
8861 fi
8862 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8863 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8864 # Extract the first word of "mt", so it can be a program name with args.
8865 set dummy mt; ac_word=$2
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8867 $as_echo_n "checking for $ac_word... " >&6; }
8868 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8869 $as_echo_n "(cached) " >&6
8870 else
8871 if test -n "$ac_ct_MANIFEST_TOOL"; then
8872 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8873 else
8874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8875 for as_dir in $PATH
8876 do
8877 IFS=$as_save_IFS
8878 test -z "$as_dir" && as_dir=.
8879 for ac_exec_ext in '' $ac_executable_extensions; do
8880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8881 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8883 break 2
8884 fi
8885 done
8886 done
8887 IFS=$as_save_IFS
8888
8889 fi
8890 fi
8891 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8892 if test -n "$ac_ct_MANIFEST_TOOL"; then
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8894 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8895 else
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8897 $as_echo "no" >&6; }
8898 fi
8899
8900 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8901 MANIFEST_TOOL=":"
8902 else
8903 case $cross_compiling:$ac_tool_warned in
8904 yes:)
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8907 ac_tool_warned=yes ;;
8908 esac
8909 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8910 fi
8911 else
8912 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8913 fi
8914
8915 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8917 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8918 if ${lt_cv_path_mainfest_tool+:} false; then :
8919 $as_echo_n "(cached) " >&6
8920 else
8921 lt_cv_path_mainfest_tool=no
8922 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8923 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8924 cat conftest.err >&5
8925 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8926 lt_cv_path_mainfest_tool=yes
8927 fi
8928 rm -f conftest*
8929 fi
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8931 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8932 if test yes != "$lt_cv_path_mainfest_tool"; then
8933 MANIFEST_TOOL=:
8934 fi
8935
8936
8937
8938
8939
8940
8941 case $host_os in
8942 rhapsody* | darwin*)
8943 if test -n "$ac_tool_prefix"; then
8944 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8945 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8947 $as_echo_n "checking for $ac_word... " >&6; }
8948 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8949 $as_echo_n "(cached) " >&6
8950 else
8951 if test -n "$DSYMUTIL"; then
8952 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8953 else
8954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8955 for as_dir in $PATH
8956 do
8957 IFS=$as_save_IFS
8958 test -z "$as_dir" && as_dir=.
8959 for ac_exec_ext in '' $ac_executable_extensions; do
8960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8961 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8963 break 2
8964 fi
8965 done
8966 done
8967 IFS=$as_save_IFS
8968
8969 fi
8970 fi
8971 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8972 if test -n "$DSYMUTIL"; then
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8974 $as_echo "$DSYMUTIL" >&6; }
8975 else
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8977 $as_echo "no" >&6; }
8978 fi
8979
8980
8981 fi
8982 if test -z "$ac_cv_prog_DSYMUTIL"; then
8983 ac_ct_DSYMUTIL=$DSYMUTIL
8984 # Extract the first word of "dsymutil", so it can be a program name with args.
8985 set dummy dsymutil; ac_word=$2
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8987 $as_echo_n "checking for $ac_word... " >&6; }
8988 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8989 $as_echo_n "(cached) " >&6
8990 else
8991 if test -n "$ac_ct_DSYMUTIL"; then
8992 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8993 else
8994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8995 for as_dir in $PATH
8996 do
8997 IFS=$as_save_IFS
8998 test -z "$as_dir" && as_dir=.
8999 for ac_exec_ext in '' $ac_executable_extensions; do
9000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9001 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9003 break 2
9004 fi
9005 done
9006 done
9007 IFS=$as_save_IFS
9008
9009 fi
9010 fi
9011 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9012 if test -n "$ac_ct_DSYMUTIL"; then
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9014 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9015 else
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9017 $as_echo "no" >&6; }
9018 fi
9019
9020 if test "x$ac_ct_DSYMUTIL" = x; then
9021 DSYMUTIL=":"
9022 else
9023 case $cross_compiling:$ac_tool_warned in
9024 yes:)
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9027 ac_tool_warned=yes ;;
9028 esac
9029 DSYMUTIL=$ac_ct_DSYMUTIL
9030 fi
9031 else
9032 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9033 fi
9034
9035 if test -n "$ac_tool_prefix"; then
9036 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9037 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9039 $as_echo_n "checking for $ac_word... " >&6; }
9040 if ${ac_cv_prog_NMEDIT+:} false; then :
9041 $as_echo_n "(cached) " >&6
9042 else
9043 if test -n "$NMEDIT"; then
9044 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9045 else
9046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9047 for as_dir in $PATH
9048 do
9049 IFS=$as_save_IFS
9050 test -z "$as_dir" && as_dir=.
9051 for ac_exec_ext in '' $ac_executable_extensions; do
9052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9053 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9055 break 2
9056 fi
9057 done
9058 done
9059 IFS=$as_save_IFS
9060
9061 fi
9062 fi
9063 NMEDIT=$ac_cv_prog_NMEDIT
9064 if test -n "$NMEDIT"; then
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9066 $as_echo "$NMEDIT" >&6; }
9067 else
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9069 $as_echo "no" >&6; }
9070 fi
9071
9072
9073 fi
9074 if test -z "$ac_cv_prog_NMEDIT"; then
9075 ac_ct_NMEDIT=$NMEDIT
9076 # Extract the first word of "nmedit", so it can be a program name with args.
9077 set dummy nmedit; ac_word=$2
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9079 $as_echo_n "checking for $ac_word... " >&6; }
9080 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9081 $as_echo_n "(cached) " >&6
9082 else
9083 if test -n "$ac_ct_NMEDIT"; then
9084 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9085 else
9086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9087 for as_dir in $PATH
9088 do
9089 IFS=$as_save_IFS
9090 test -z "$as_dir" && as_dir=.
9091 for ac_exec_ext in '' $ac_executable_extensions; do
9092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9093 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9095 break 2
9096 fi
9097 done
9098 done
9099 IFS=$as_save_IFS
9100
9101 fi
9102 fi
9103 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9104 if test -n "$ac_ct_NMEDIT"; then
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9106 $as_echo "$ac_ct_NMEDIT" >&6; }
9107 else
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9109 $as_echo "no" >&6; }
9110 fi
9111
9112 if test "x$ac_ct_NMEDIT" = x; then
9113 NMEDIT=":"
9114 else
9115 case $cross_compiling:$ac_tool_warned in
9116 yes:)
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9119 ac_tool_warned=yes ;;
9120 esac
9121 NMEDIT=$ac_ct_NMEDIT
9122 fi
9123 else
9124 NMEDIT="$ac_cv_prog_NMEDIT"
9125 fi
9126
9127 if test -n "$ac_tool_prefix"; then
9128 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9129 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9131 $as_echo_n "checking for $ac_word... " >&6; }
9132 if ${ac_cv_prog_LIPO+:} false; then :
9133 $as_echo_n "(cached) " >&6
9134 else
9135 if test -n "$LIPO"; then
9136 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9137 else
9138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9139 for as_dir in $PATH
9140 do
9141 IFS=$as_save_IFS
9142 test -z "$as_dir" && as_dir=.
9143 for ac_exec_ext in '' $ac_executable_extensions; do
9144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9145 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9147 break 2
9148 fi
9149 done
9150 done
9151 IFS=$as_save_IFS
9152
9153 fi
9154 fi
9155 LIPO=$ac_cv_prog_LIPO
9156 if test -n "$LIPO"; then
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9158 $as_echo "$LIPO" >&6; }
9159 else
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9161 $as_echo "no" >&6; }
9162 fi
9163
9164
9165 fi
9166 if test -z "$ac_cv_prog_LIPO"; then
9167 ac_ct_LIPO=$LIPO
9168 # Extract the first word of "lipo", so it can be a program name with args.
9169 set dummy lipo; ac_word=$2
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9171 $as_echo_n "checking for $ac_word... " >&6; }
9172 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9173 $as_echo_n "(cached) " >&6
9174 else
9175 if test -n "$ac_ct_LIPO"; then
9176 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9177 else
9178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9179 for as_dir in $PATH
9180 do
9181 IFS=$as_save_IFS
9182 test -z "$as_dir" && as_dir=.
9183 for ac_exec_ext in '' $ac_executable_extensions; do
9184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9185 ac_cv_prog_ac_ct_LIPO="lipo"
9186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9187 break 2
9188 fi
9189 done
9190 done
9191 IFS=$as_save_IFS
9192
9193 fi
9194 fi
9195 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9196 if test -n "$ac_ct_LIPO"; then
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9198 $as_echo "$ac_ct_LIPO" >&6; }
9199 else
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9201 $as_echo "no" >&6; }
9202 fi
9203
9204 if test "x$ac_ct_LIPO" = x; then
9205 LIPO=":"
9206 else
9207 case $cross_compiling:$ac_tool_warned in
9208 yes:)
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9211 ac_tool_warned=yes ;;
9212 esac
9213 LIPO=$ac_ct_LIPO
9214 fi
9215 else
9216 LIPO="$ac_cv_prog_LIPO"
9217 fi
9218
9219 if test -n "$ac_tool_prefix"; then
9220 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9221 set dummy ${ac_tool_prefix}otool; ac_word=$2
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9223 $as_echo_n "checking for $ac_word... " >&6; }
9224 if ${ac_cv_prog_OTOOL+:} false; then :
9225 $as_echo_n "(cached) " >&6
9226 else
9227 if test -n "$OTOOL"; then
9228 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9229 else
9230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9231 for as_dir in $PATH
9232 do
9233 IFS=$as_save_IFS
9234 test -z "$as_dir" && as_dir=.
9235 for ac_exec_ext in '' $ac_executable_extensions; do
9236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9237 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9239 break 2
9240 fi
9241 done
9242 done
9243 IFS=$as_save_IFS
9244
9245 fi
9246 fi
9247 OTOOL=$ac_cv_prog_OTOOL
9248 if test -n "$OTOOL"; then
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9250 $as_echo "$OTOOL" >&6; }
9251 else
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9253 $as_echo "no" >&6; }
9254 fi
9255
9256
9257 fi
9258 if test -z "$ac_cv_prog_OTOOL"; then
9259 ac_ct_OTOOL=$OTOOL
9260 # Extract the first word of "otool", so it can be a program name with args.
9261 set dummy otool; ac_word=$2
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9263 $as_echo_n "checking for $ac_word... " >&6; }
9264 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9265 $as_echo_n "(cached) " >&6
9266 else
9267 if test -n "$ac_ct_OTOOL"; then
9268 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9269 else
9270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9271 for as_dir in $PATH
9272 do
9273 IFS=$as_save_IFS
9274 test -z "$as_dir" && as_dir=.
9275 for ac_exec_ext in '' $ac_executable_extensions; do
9276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9277 ac_cv_prog_ac_ct_OTOOL="otool"
9278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9279 break 2
9280 fi
9281 done
9282 done
9283 IFS=$as_save_IFS
9284
9285 fi
9286 fi
9287 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9288 if test -n "$ac_ct_OTOOL"; then
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9290 $as_echo "$ac_ct_OTOOL" >&6; }
9291 else
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9293 $as_echo "no" >&6; }
9294 fi
9295
9296 if test "x$ac_ct_OTOOL" = x; then
9297 OTOOL=":"
9298 else
9299 case $cross_compiling:$ac_tool_warned in
9300 yes:)
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9303 ac_tool_warned=yes ;;
9304 esac
9305 OTOOL=$ac_ct_OTOOL
9306 fi
9307 else
9308 OTOOL="$ac_cv_prog_OTOOL"
9309 fi
9310
9311 if test -n "$ac_tool_prefix"; then
9312 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9313 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9315 $as_echo_n "checking for $ac_word... " >&6; }
9316 if ${ac_cv_prog_OTOOL64+:} false; then :
9317 $as_echo_n "(cached) " >&6
9318 else
9319 if test -n "$OTOOL64"; then
9320 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9321 else
9322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9323 for as_dir in $PATH
9324 do
9325 IFS=$as_save_IFS
9326 test -z "$as_dir" && as_dir=.
9327 for ac_exec_ext in '' $ac_executable_extensions; do
9328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9329 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9331 break 2
9332 fi
9333 done
9334 done
9335 IFS=$as_save_IFS
9336
9337 fi
9338 fi
9339 OTOOL64=$ac_cv_prog_OTOOL64
9340 if test -n "$OTOOL64"; then
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9342 $as_echo "$OTOOL64" >&6; }
9343 else
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9345 $as_echo "no" >&6; }
9346 fi
9347
9348
9349 fi
9350 if test -z "$ac_cv_prog_OTOOL64"; then
9351 ac_ct_OTOOL64=$OTOOL64
9352 # Extract the first word of "otool64", so it can be a program name with args.
9353 set dummy otool64; ac_word=$2
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9355 $as_echo_n "checking for $ac_word... " >&6; }
9356 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9357 $as_echo_n "(cached) " >&6
9358 else
9359 if test -n "$ac_ct_OTOOL64"; then
9360 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9361 else
9362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9363 for as_dir in $PATH
9364 do
9365 IFS=$as_save_IFS
9366 test -z "$as_dir" && as_dir=.
9367 for ac_exec_ext in '' $ac_executable_extensions; do
9368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9369 ac_cv_prog_ac_ct_OTOOL64="otool64"
9370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9371 break 2
9372 fi
9373 done
9374 done
9375 IFS=$as_save_IFS
9376
9377 fi
9378 fi
9379 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9380 if test -n "$ac_ct_OTOOL64"; then
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9382 $as_echo "$ac_ct_OTOOL64" >&6; }
9383 else
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9385 $as_echo "no" >&6; }
9386 fi
9387
9388 if test "x$ac_ct_OTOOL64" = x; then
9389 OTOOL64=":"
9390 else
9391 case $cross_compiling:$ac_tool_warned in
9392 yes:)
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9395 ac_tool_warned=yes ;;
9396 esac
9397 OTOOL64=$ac_ct_OTOOL64
9398 fi
9399 else
9400 OTOOL64="$ac_cv_prog_OTOOL64"
9401 fi
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9430 $as_echo_n "checking for -single_module linker flag... " >&6; }
9431 if ${lt_cv_apple_cc_single_mod+:} false; then :
9432 $as_echo_n "(cached) " >&6
9433 else
9434 lt_cv_apple_cc_single_mod=no
9435 if test -z "$LT_MULTI_MODULE"; then
9436 # By default we will add the -single_module flag. You can override
9437 # by either setting the environment variable LT_MULTI_MODULE
9438 # non-empty at configure time, or by adding -multi_module to the
9439 # link flags.
9440 rm -rf libconftest.dylib*
9441 echo "int foo(void){return 1;}" > conftest.c
9442 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9443 -dynamiclib -Wl,-single_module conftest.c" >&5
9444 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9445 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9446 _lt_result=$?
9447 # If there is a non-empty error log, and "single_module"
9448 # appears in it, assume the flag caused a linker warning
9449 if test -s conftest.err && $GREP single_module conftest.err; then
9450 cat conftest.err >&5
9451 # Otherwise, if the output was created with a 0 exit code from
9452 # the compiler, it worked.
9453 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9454 lt_cv_apple_cc_single_mod=yes
9455 else
9456 cat conftest.err >&5
9457 fi
9458 rm -rf libconftest.dylib*
9459 rm -f conftest.*
9460 fi
9461 fi
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9463 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9464
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9466 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9467 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9468 $as_echo_n "(cached) " >&6
9469 else
9470 lt_cv_ld_exported_symbols_list=no
9471 save_LDFLAGS=$LDFLAGS
9472 echo "_main" > conftest.sym
9473 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9475 /* end confdefs.h. */
9476
9477 int
9478 main ()
9479 {
9480
9481 ;
9482 return 0;
9483 }
9484 _ACEOF
9485 if ac_fn_c_try_link "$LINENO"; then :
9486 lt_cv_ld_exported_symbols_list=yes
9487 else
9488 lt_cv_ld_exported_symbols_list=no
9489 fi
9490 rm -f core conftest.err conftest.$ac_objext \
9491 conftest$ac_exeext conftest.$ac_ext
9492 LDFLAGS=$save_LDFLAGS
9493
9494 fi
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9496 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9497
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9499 $as_echo_n "checking for -force_load linker flag... " >&6; }
9500 if ${lt_cv_ld_force_load+:} false; then :
9501 $as_echo_n "(cached) " >&6
9502 else
9503 lt_cv_ld_force_load=no
9504 cat > conftest.c << _LT_EOF
9505 int forced_loaded() { return 2;}
9506 _LT_EOF
9507 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9508 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9509 echo "$AR cru libconftest.a conftest.o" >&5
9510 $AR cru libconftest.a conftest.o 2>&5
9511 echo "$RANLIB libconftest.a" >&5
9512 $RANLIB libconftest.a 2>&5
9513 cat > conftest.c << _LT_EOF
9514 int main() { return 0;}
9515 _LT_EOF
9516 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9517 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9518 _lt_result=$?
9519 if test -s conftest.err && $GREP force_load conftest.err; then
9520 cat conftest.err >&5
9521 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9522 lt_cv_ld_force_load=yes
9523 else
9524 cat conftest.err >&5
9525 fi
9526 rm -f conftest.err libconftest.a conftest conftest.c
9527 rm -rf conftest.dSYM
9528
9529 fi
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9531 $as_echo "$lt_cv_ld_force_load" >&6; }
9532 case $host_os in
9533 rhapsody* | darwin1.[012])
9534 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9535 darwin1.*)
9536 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9537 darwin*) # darwin 5.x on
9538 # if running on 10.5 or later, the deployment target defaults
9539 # to the OS version, if on x86, and 10.4, the deployment
9540 # target defaults to 10.4. Don't you love it?
9541 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9542 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9543 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9544 10.[012][,.]*)
9545 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9546 10.*)
9547 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9548 esac
9549 ;;
9550 esac
9551 if test yes = "$lt_cv_apple_cc_single_mod"; then
9552 _lt_dar_single_mod='$single_module'
9553 fi
9554 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9555 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9556 else
9557 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9558 fi
9559 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9560 _lt_dsymutil='~$DSYMUTIL $lib || :'
9561 else
9562 _lt_dsymutil=
9563 fi
9564 ;;
9565 esac
9566
9567 # func_munge_path_list VARIABLE PATH
9568 # -----------------------------------
9569 # VARIABLE is name of variable containing _space_ separated list of
9570 # directories to be munged by the contents of PATH, which is string
9571 # having a format:
9572 # "DIR[:DIR]:"
9573 # string "DIR[ DIR]" will be prepended to VARIABLE
9574 # ":DIR[:DIR]"
9575 # string "DIR[ DIR]" will be appended to VARIABLE
9576 # "DIRP[:DIRP]::[DIRA:]DIRA"
9577 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9578 # "DIRA[ DIRA]" will be appended to VARIABLE
9579 # "DIR[:DIR]"
9580 # VARIABLE will be replaced by "DIR[ DIR]"
9581 func_munge_path_list ()
9582 {
9583 case x$2 in
9584 x)
9585 ;;
9586 *:)
9587 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9588 ;;
9589 x:*)
9590 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9591 ;;
9592 *::*)
9593 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9594 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9595 ;;
9596 *)
9597 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9598 ;;
9599 esac
9600 }
9601
9602 for ac_header in dlfcn.h
9603 do :
9604 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9605 "
9606 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9607 cat >>confdefs.h <<_ACEOF
9608 #define HAVE_DLFCN_H 1
9609 _ACEOF
9610
9611 fi
9612
9613 done
9614
9615
9616
9617
9618 func_stripname_cnf ()
9619 {
9620 case $2 in
9621 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9622 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9623 esac
9624 } # func_stripname_cnf
9625
9626
9627
9628
9629
9630 # Set options
9631
9632
9633
9634 enable_dlopen=no
9635
9636
9637 enable_win32_dll=no
9638
9639
9640 # Check whether --enable-shared was given.
9641 if test "${enable_shared+set}" = set; then :
9642 enableval=$enable_shared; p=${PACKAGE-default}
9643 case $enableval in
9644 yes) enable_shared=yes ;;
9645 no) enable_shared=no ;;
9646 *)
9647 enable_shared=no
9648 # Look at the argument we got. We use all the common list separators.
9649 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9650 for pkg in $enableval; do
9651 IFS=$lt_save_ifs
9652 if test "X$pkg" = "X$p"; then
9653 enable_shared=yes
9654 fi
9655 done
9656 IFS=$lt_save_ifs
9657 ;;
9658 esac
9659 else
9660 enable_shared=yes
9661 fi
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671 # Check whether --enable-static was given.
9672 if test "${enable_static+set}" = set; then :
9673 enableval=$enable_static; p=${PACKAGE-default}
9674 case $enableval in
9675 yes) enable_static=yes ;;
9676 no) enable_static=no ;;
9677 *)
9678 enable_static=no
9679 # Look at the argument we got. We use all the common list separators.
9680 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9681 for pkg in $enableval; do
9682 IFS=$lt_save_ifs
9683 if test "X$pkg" = "X$p"; then
9684 enable_static=yes
9685 fi
9686 done
9687 IFS=$lt_save_ifs
9688 ;;
9689 esac
9690 else
9691 enable_static=yes
9692 fi
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703 # Check whether --with-pic was given.
9704 if test "${with_pic+set}" = set; then :
9705 withval=$with_pic; lt_p=${PACKAGE-default}
9706 case $withval in
9707 yes|no) pic_mode=$withval ;;
9708 *)
9709 pic_mode=default
9710 # Look at the argument we got. We use all the common list separators.
9711 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9712 for lt_pkg in $withval; do
9713 IFS=$lt_save_ifs
9714 if test "X$lt_pkg" = "X$lt_p"; then
9715 pic_mode=yes
9716 fi
9717 done
9718 IFS=$lt_save_ifs
9719 ;;
9720 esac
9721 else
9722 pic_mode=default
9723 fi
9724
9725
9726
9727
9728
9729
9730
9731
9732 # Check whether --enable-fast-install was given.
9733 if test "${enable_fast_install+set}" = set; then :
9734 enableval=$enable_fast_install; p=${PACKAGE-default}
9735 case $enableval in
9736 yes) enable_fast_install=yes ;;
9737 no) enable_fast_install=no ;;
9738 *)
9739 enable_fast_install=no
9740 # Look at the argument we got. We use all the common list separators.
9741 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9742 for pkg in $enableval; do
9743 IFS=$lt_save_ifs
9744 if test "X$pkg" = "X$p"; then
9745 enable_fast_install=yes
9746 fi
9747 done
9748 IFS=$lt_save_ifs
9749 ;;
9750 esac
9751 else
9752 enable_fast_install=yes
9753 fi
9754
9755
9756
9757
9758
9759
9760
9761
9762 shared_archive_member_spec=
9763 case $host,$enable_shared in
9764 power*-*-aix[5-9]*,yes)
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9766 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9767
9768 # Check whether --with-aix-soname was given.
9769 if test "${with_aix_soname+set}" = set; then :
9770 withval=$with_aix_soname; case $withval in
9771 aix|svr4|both)
9772 ;;
9773 *)
9774 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9775 ;;
9776 esac
9777 lt_cv_with_aix_soname=$with_aix_soname
9778 else
9779 if ${lt_cv_with_aix_soname+:} false; then :
9780 $as_echo_n "(cached) " >&6
9781 else
9782 lt_cv_with_aix_soname=aix
9783 fi
9784
9785 with_aix_soname=$lt_cv_with_aix_soname
9786 fi
9787
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9789 $as_echo "$with_aix_soname" >&6; }
9790 if test aix != "$with_aix_soname"; then
9791 # For the AIX way of multilib, we name the shared archive member
9792 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9793 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9794 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9795 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9796 if test 64 = "${OBJECT_MODE-32}"; then
9797 shared_archive_member_spec=shr_64
9798 else
9799 shared_archive_member_spec=shr
9800 fi
9801 fi
9802 ;;
9803 *)
9804 with_aix_soname=aix
9805 ;;
9806 esac
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817 # This can be used to rebuild libtool when needed
9818 LIBTOOL_DEPS=$ltmain
9819
9820 # Always use our own libtool.
9821 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852 test -z "$LN_S" && LN_S="ln -s"
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867 if test -n "${ZSH_VERSION+set}"; then
9868 setopt NO_GLOB_SUBST
9869 fi
9870
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9872 $as_echo_n "checking for objdir... " >&6; }
9873 if ${lt_cv_objdir+:} false; then :
9874 $as_echo_n "(cached) " >&6
9875 else
9876 rm -f .libs 2>/dev/null
9877 mkdir .libs 2>/dev/null
9878 if test -d .libs; then
9879 lt_cv_objdir=.libs
9880 else
9881 # MS-DOS does not allow filenames that begin with a dot.
9882 lt_cv_objdir=_libs
9883 fi
9884 rmdir .libs 2>/dev/null
9885 fi
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9887 $as_echo "$lt_cv_objdir" >&6; }
9888 objdir=$lt_cv_objdir
9889
9890
9891
9892
9893
9894 cat >>confdefs.h <<_ACEOF
9895 #define LT_OBJDIR "$lt_cv_objdir/"
9896 _ACEOF
9897
9898
9899
9900
9901 case $host_os in
9902 aix3*)
9903 # AIX sometimes has problems with the GCC collect2 program. For some
9904 # reason, if we set the COLLECT_NAMES environment variable, the problems
9905 # vanish in a puff of smoke.
9906 if test set != "${COLLECT_NAMES+set}"; then
9907 COLLECT_NAMES=
9908 export COLLECT_NAMES
9909 fi
9910 ;;
9911 esac
9912
9913 # Global variables:
9914 ofile=libtool
9915 can_build_shared=yes
9916
9917 # All known linkers require a '.a' archive for static linking (except MSVC,
9918 # which needs '.lib').
9919 libext=a
9920
9921 with_gnu_ld=$lt_cv_prog_gnu_ld
9922
9923 old_CC=$CC
9924 old_CFLAGS=$CFLAGS
9925
9926 # Set sane defaults for various variables
9927 test -z "$CC" && CC=cc
9928 test -z "$LTCC" && LTCC=$CC
9929 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9930 test -z "$LD" && LD=ld
9931 test -z "$ac_objext" && ac_objext=o
9932
9933 func_cc_basename $compiler
9934 cc_basename=$func_cc_basename_result
9935
9936
9937 # Only perform the check for file, if the check method requires it
9938 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9939 case $deplibs_check_method in
9940 file_magic*)
9941 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9943 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9944 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9945 $as_echo_n "(cached) " >&6
9946 else
9947 case $MAGIC_CMD in
9948 [\\/*] | ?:[\\/]*)
9949 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9950 ;;
9951 *)
9952 lt_save_MAGIC_CMD=$MAGIC_CMD
9953 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9954 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9955 for ac_dir in $ac_dummy; do
9956 IFS=$lt_save_ifs
9957 test -z "$ac_dir" && ac_dir=.
9958 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9959 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9960 if test -n "$file_magic_test_file"; then
9961 case $deplibs_check_method in
9962 "file_magic "*)
9963 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9964 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9965 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9966 $EGREP "$file_magic_regex" > /dev/null; then
9967 :
9968 else
9969 cat <<_LT_EOF 1>&2
9970
9971 *** Warning: the command libtool uses to detect shared libraries,
9972 *** $file_magic_cmd, produces output that libtool cannot recognize.
9973 *** The result is that libtool may fail to recognize shared libraries
9974 *** as such. This will affect the creation of libtool libraries that
9975 *** depend on shared libraries, but programs linked with such libtool
9976 *** libraries will work regardless of this problem. Nevertheless, you
9977 *** may want to report the problem to your system manager and/or to
9978 *** [email protected]
9979
9980 _LT_EOF
9981 fi ;;
9982 esac
9983 fi
9984 break
9985 fi
9986 done
9987 IFS=$lt_save_ifs
9988 MAGIC_CMD=$lt_save_MAGIC_CMD
9989 ;;
9990 esac
9991 fi
9992
9993 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9994 if test -n "$MAGIC_CMD"; then
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9996 $as_echo "$MAGIC_CMD" >&6; }
9997 else
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9999 $as_echo "no" >&6; }
10000 fi
10001
10002
10003
10004
10005
10006 if test -z "$lt_cv_path_MAGIC_CMD"; then
10007 if test -n "$ac_tool_prefix"; then
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10009 $as_echo_n "checking for file... " >&6; }
10010 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10011 $as_echo_n "(cached) " >&6
10012 else
10013 case $MAGIC_CMD in
10014 [\\/*] | ?:[\\/]*)
10015 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10016 ;;
10017 *)
10018 lt_save_MAGIC_CMD=$MAGIC_CMD
10019 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10020 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10021 for ac_dir in $ac_dummy; do
10022 IFS=$lt_save_ifs
10023 test -z "$ac_dir" && ac_dir=.
10024 if test -f "$ac_dir/file"; then
10025 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10026 if test -n "$file_magic_test_file"; then
10027 case $deplibs_check_method in
10028 "file_magic "*)
10029 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10030 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10031 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10032 $EGREP "$file_magic_regex" > /dev/null; then
10033 :
10034 else
10035 cat <<_LT_EOF 1>&2
10036
10037 *** Warning: the command libtool uses to detect shared libraries,
10038 *** $file_magic_cmd, produces output that libtool cannot recognize.
10039 *** The result is that libtool may fail to recognize shared libraries
10040 *** as such. This will affect the creation of libtool libraries that
10041 *** depend on shared libraries, but programs linked with such libtool
10042 *** libraries will work regardless of this problem. Nevertheless, you
10043 *** may want to report the problem to your system manager and/or to
10044 *** [email protected]
10045
10046 _LT_EOF
10047 fi ;;
10048 esac
10049 fi
10050 break
10051 fi
10052 done
10053 IFS=$lt_save_ifs
10054 MAGIC_CMD=$lt_save_MAGIC_CMD
10055 ;;
10056 esac
10057 fi
10058
10059 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10060 if test -n "$MAGIC_CMD"; then
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10062 $as_echo "$MAGIC_CMD" >&6; }
10063 else
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10065 $as_echo "no" >&6; }
10066 fi
10067
10068
10069 else
10070 MAGIC_CMD=:
10071 fi
10072 fi
10073
10074 fi
10075 ;;
10076 esac
10077
10078 # Use C for the default configuration in the libtool script
10079
10080 lt_save_CC=$CC
10081 ac_ext=c
10082 ac_cpp='$CPP $CPPFLAGS'
10083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10086
10087
10088 # Source file extension for C test sources.
10089 ac_ext=c
10090
10091 # Object file extension for compiled C test sources.
10092 objext=o
10093 objext=$objext
10094
10095 # Code to be used in simple compile tests
10096 lt_simple_compile_test_code="int some_variable = 0;"
10097
10098 # Code to be used in simple link tests
10099 lt_simple_link_test_code='int main(){return(0);}'
10100
10101
10102
10103
10104
10105
10106
10107 # If no C compiler was specified, use CC.
10108 LTCC=${LTCC-"$CC"}
10109
10110 # If no C compiler flags were specified, use CFLAGS.
10111 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10112
10113 # Allow CC to be a program name with arguments.
10114 compiler=$CC
10115
10116 # Save the default compiler, since it gets overwritten when the other
10117 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10118 compiler_DEFAULT=$CC
10119
10120 # save warnings/boilerplate of simple test code
10121 ac_outfile=conftest.$ac_objext
10122 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10123 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10124 _lt_compiler_boilerplate=`cat conftest.err`
10125 $RM conftest*
10126
10127 ac_outfile=conftest.$ac_objext
10128 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10129 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10130 _lt_linker_boilerplate=`cat conftest.err`
10131 $RM -r conftest*
10132
10133
10134 ## CAVEAT EMPTOR:
10135 ## There is no encapsulation within the following macros, do not change
10136 ## the running order or otherwise move them around unless you know exactly
10137 ## what you are doing...
10138 if test -n "$compiler"; then
10139
10140 lt_prog_compiler_no_builtin_flag=
10141
10142 if test yes = "$GCC"; then
10143 case $cc_basename in
10144 nvcc*)
10145 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10146 *)
10147 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10148 esac
10149
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10151 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10152 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10153 $as_echo_n "(cached) " >&6
10154 else
10155 lt_cv_prog_compiler_rtti_exceptions=no
10156 ac_outfile=conftest.$ac_objext
10157 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10158 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10159 # Insert the option either (1) after the last *FLAGS variable, or
10160 # (2) before a word containing "conftest.", or (3) at the end.
10161 # Note that $ac_compile itself does not contain backslashes and begins
10162 # with a dollar sign (not a hyphen), so the echo should work correctly.
10163 # The option is referenced via a variable to avoid confusing sed.
10164 lt_compile=`echo "$ac_compile" | $SED \
10165 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10166 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10167 -e 's:$: $lt_compiler_flag:'`
10168 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10169 (eval "$lt_compile" 2>conftest.err)
10170 ac_status=$?
10171 cat conftest.err >&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 if (exit $ac_status) && test -s "$ac_outfile"; then
10174 # The compiler can only warn and ignore the option if not recognized
10175 # So say no if there are warnings other than the usual output.
10176 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10177 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10178 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10179 lt_cv_prog_compiler_rtti_exceptions=yes
10180 fi
10181 fi
10182 $RM conftest*
10183
10184 fi
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10186 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10187
10188 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10189 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10190 else
10191 :
10192 fi
10193
10194 fi
10195
10196
10197
10198
10199
10200
10201 lt_prog_compiler_wl=
10202 lt_prog_compiler_pic=
10203 lt_prog_compiler_static=
10204
10205
10206 if test yes = "$GCC"; then
10207 lt_prog_compiler_wl='-Wl,'
10208 lt_prog_compiler_static='-static'
10209
10210 case $host_os in
10211 aix*)
10212 # All AIX code is PIC.
10213 if test ia64 = "$host_cpu"; then
10214 # AIX 5 now supports IA64 processor
10215 lt_prog_compiler_static='-Bstatic'
10216 fi
10217 lt_prog_compiler_pic='-fPIC'
10218 ;;
10219
10220 amigaos*)
10221 case $host_cpu in
10222 powerpc)
10223 # see comment about AmigaOS4 .so support
10224 lt_prog_compiler_pic='-fPIC'
10225 ;;
10226 m68k)
10227 # FIXME: we need at least 68020 code to build shared libraries, but
10228 # adding the '-m68020' flag to GCC prevents building anything better,
10229 # like '-m68040'.
10230 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10231 ;;
10232 esac
10233 ;;
10234
10235 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10236 # PIC is the default for these OSes.
10237 ;;
10238
10239 mingw* | cygwin* | pw32* | os2* | cegcc*)
10240 # This hack is so that the source file can tell whether it is being
10241 # built for inclusion in a dll (and should export symbols for example).
10242 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10243 # (--disable-auto-import) libraries
10244 lt_prog_compiler_pic='-DDLL_EXPORT'
10245 case $host_os in
10246 os2*)
10247 lt_prog_compiler_static='$wl-static'
10248 ;;
10249 esac
10250 ;;
10251
10252 darwin* | rhapsody*)
10253 # PIC is the default on this platform
10254 # Common symbols not allowed in MH_DYLIB files
10255 lt_prog_compiler_pic='-fno-common'
10256 ;;
10257
10258 haiku*)
10259 # PIC is the default for Haiku.
10260 # The "-static" flag exists, but is broken.
10261 lt_prog_compiler_static=
10262 ;;
10263
10264 hpux*)
10265 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10266 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10267 # sets the default TLS model and affects inlining.
10268 case $host_cpu in
10269 hppa*64*)
10270 # +Z the default
10271 ;;
10272 *)
10273 lt_prog_compiler_pic='-fPIC'
10274 ;;
10275 esac
10276 ;;
10277
10278 interix[3-9]*)
10279 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10280 # Instead, we relocate shared libraries at runtime.
10281 ;;
10282
10283 msdosdjgpp*)
10284 # Just because we use GCC doesn't mean we suddenly get shared libraries
10285 # on systems that don't support them.
10286 lt_prog_compiler_can_build_shared=no
10287 enable_shared=no
10288 ;;
10289
10290 *nto* | *qnx*)
10291 # QNX uses GNU C++, but need to define -shared option too, otherwise
10292 # it will coredump.
10293 lt_prog_compiler_pic='-fPIC -shared'
10294 ;;
10295
10296 sysv4*MP*)
10297 if test -d /usr/nec; then
10298 lt_prog_compiler_pic=-Kconform_pic
10299 fi
10300 ;;
10301
10302 *)
10303 lt_prog_compiler_pic='-fPIC'
10304 ;;
10305 esac
10306
10307 case $cc_basename in
10308 nvcc*) # Cuda Compiler Driver 2.2
10309 lt_prog_compiler_wl='-Xlinker '
10310 if test -n "$lt_prog_compiler_pic"; then
10311 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10312 fi
10313 ;;
10314 esac
10315 else
10316 # PORTME Check for flag to pass linker flags through the system compiler.
10317 case $host_os in
10318 aix*)
10319 lt_prog_compiler_wl='-Wl,'
10320 if test ia64 = "$host_cpu"; then
10321 # AIX 5 now supports IA64 processor
10322 lt_prog_compiler_static='-Bstatic'
10323 else
10324 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10325 fi
10326 ;;
10327
10328 darwin* | rhapsody*)
10329 # PIC is the default on this platform
10330 # Common symbols not allowed in MH_DYLIB files
10331 lt_prog_compiler_pic='-fno-common'
10332 case $cc_basename in
10333 nagfor*)
10334 # NAG Fortran compiler
10335 lt_prog_compiler_wl='-Wl,-Wl,,'
10336 lt_prog_compiler_pic='-PIC'
10337 lt_prog_compiler_static='-Bstatic'
10338 ;;
10339 esac
10340 ;;
10341
10342 mingw* | cygwin* | pw32* | os2* | cegcc*)
10343 # This hack is so that the source file can tell whether it is being
10344 # built for inclusion in a dll (and should export symbols for example).
10345 lt_prog_compiler_pic='-DDLL_EXPORT'
10346 case $host_os in
10347 os2*)
10348 lt_prog_compiler_static='$wl-static'
10349 ;;
10350 esac
10351 ;;
10352
10353 hpux9* | hpux10* | hpux11*)
10354 lt_prog_compiler_wl='-Wl,'
10355 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10356 # not for PA HP-UX.
10357 case $host_cpu in
10358 hppa*64*|ia64*)
10359 # +Z the default
10360 ;;
10361 *)
10362 lt_prog_compiler_pic='+Z'
10363 ;;
10364 esac
10365 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10366 lt_prog_compiler_static='$wl-a ${wl}archive'
10367 ;;
10368
10369 irix5* | irix6* | nonstopux*)
10370 lt_prog_compiler_wl='-Wl,'
10371 # PIC (with -KPIC) is the default.
10372 lt_prog_compiler_static='-non_shared'
10373 ;;
10374
10375 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10376 case $cc_basename in
10377 # old Intel for x86_64, which still supported -KPIC.
10378 ecc*)
10379 lt_prog_compiler_wl='-Wl,'
10380 lt_prog_compiler_pic='-KPIC'
10381 lt_prog_compiler_static='-static'
10382 ;;
10383 # icc used to be incompatible with GCC.
10384 # ICC 10 doesn't accept -KPIC any more.
10385 icc* | ifort*)
10386 lt_prog_compiler_wl='-Wl,'
10387 lt_prog_compiler_pic='-fPIC'
10388 lt_prog_compiler_static='-static'
10389 ;;
10390 # Lahey Fortran 8.1.
10391 lf95*)
10392 lt_prog_compiler_wl='-Wl,'
10393 lt_prog_compiler_pic='--shared'
10394 lt_prog_compiler_static='--static'
10395 ;;
10396 nagfor*)
10397 # NAG Fortran compiler
10398 lt_prog_compiler_wl='-Wl,-Wl,,'
10399 lt_prog_compiler_pic='-PIC'
10400 lt_prog_compiler_static='-Bstatic'
10401 ;;
10402 tcc*)
10403 # Fabrice Bellard et al's Tiny C Compiler
10404 lt_prog_compiler_wl='-Wl,'
10405 lt_prog_compiler_pic='-fPIC'
10406 lt_prog_compiler_static='-static'
10407 ;;
10408 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10409 # Portland Group compilers (*not* the Pentium gcc compiler,
10410 # which looks to be a dead project)
10411 lt_prog_compiler_wl='-Wl,'
10412 lt_prog_compiler_pic='-fpic'
10413 lt_prog_compiler_static='-Bstatic'
10414 ;;
10415 ccc*)
10416 lt_prog_compiler_wl='-Wl,'
10417 # All Alpha code is PIC.
10418 lt_prog_compiler_static='-non_shared'
10419 ;;
10420 xl* | bgxl* | bgf* | mpixl*)
10421 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10422 lt_prog_compiler_wl='-Wl,'
10423 lt_prog_compiler_pic='-qpic'
10424 lt_prog_compiler_static='-qstaticlink'
10425 ;;
10426 *)
10427 case `$CC -V 2>&1 | sed 5q` in
10428 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10429 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10430 lt_prog_compiler_pic='-KPIC'
10431 lt_prog_compiler_static='-Bstatic'
10432 lt_prog_compiler_wl=''
10433 ;;
10434 *Sun\ F* | *Sun*Fortran*)
10435 lt_prog_compiler_pic='-KPIC'
10436 lt_prog_compiler_static='-Bstatic'
10437 lt_prog_compiler_wl='-Qoption ld '
10438 ;;
10439 *Sun\ C*)
10440 # Sun C 5.9
10441 lt_prog_compiler_pic='-KPIC'
10442 lt_prog_compiler_static='-Bstatic'
10443 lt_prog_compiler_wl='-Wl,'
10444 ;;
10445 *Intel*\ [CF]*Compiler*)
10446 lt_prog_compiler_wl='-Wl,'
10447 lt_prog_compiler_pic='-fPIC'
10448 lt_prog_compiler_static='-static'
10449 ;;
10450 *Portland\ Group*)
10451 lt_prog_compiler_wl='-Wl,'
10452 lt_prog_compiler_pic='-fpic'
10453 lt_prog_compiler_static='-Bstatic'
10454 ;;
10455 esac
10456 ;;
10457 esac
10458 ;;
10459
10460 newsos6)
10461 lt_prog_compiler_pic='-KPIC'
10462 lt_prog_compiler_static='-Bstatic'
10463 ;;
10464
10465 *nto* | *qnx*)
10466 # QNX uses GNU C++, but need to define -shared option too, otherwise
10467 # it will coredump.
10468 lt_prog_compiler_pic='-fPIC -shared'
10469 ;;
10470
10471 osf3* | osf4* | osf5*)
10472 lt_prog_compiler_wl='-Wl,'
10473 # All OSF/1 code is PIC.
10474 lt_prog_compiler_static='-non_shared'
10475 ;;
10476
10477 rdos*)
10478 lt_prog_compiler_static='-non_shared'
10479 ;;
10480
10481 solaris*)
10482 lt_prog_compiler_pic='-KPIC'
10483 lt_prog_compiler_static='-Bstatic'
10484 case $cc_basename in
10485 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10486 lt_prog_compiler_wl='-Qoption ld ';;
10487 *)
10488 lt_prog_compiler_wl='-Wl,';;
10489 esac
10490 ;;
10491
10492 sunos4*)
10493 lt_prog_compiler_wl='-Qoption ld '
10494 lt_prog_compiler_pic='-PIC'
10495 lt_prog_compiler_static='-Bstatic'
10496 ;;
10497
10498 sysv4 | sysv4.2uw2* | sysv4.3*)
10499 lt_prog_compiler_wl='-Wl,'
10500 lt_prog_compiler_pic='-KPIC'
10501 lt_prog_compiler_static='-Bstatic'
10502 ;;
10503
10504 sysv4*MP*)
10505 if test -d /usr/nec; then
10506 lt_prog_compiler_pic='-Kconform_pic'
10507 lt_prog_compiler_static='-Bstatic'
10508 fi
10509 ;;
10510
10511 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10512 lt_prog_compiler_wl='-Wl,'
10513 lt_prog_compiler_pic='-KPIC'
10514 lt_prog_compiler_static='-Bstatic'
10515 ;;
10516
10517 unicos*)
10518 lt_prog_compiler_wl='-Wl,'
10519 lt_prog_compiler_can_build_shared=no
10520 ;;
10521
10522 uts4*)
10523 lt_prog_compiler_pic='-pic'
10524 lt_prog_compiler_static='-Bstatic'
10525 ;;
10526
10527 *)
10528 lt_prog_compiler_can_build_shared=no
10529 ;;
10530 esac
10531 fi
10532
10533 case $host_os in
10534 # For platforms that do not support PIC, -DPIC is meaningless:
10535 *djgpp*)
10536 lt_prog_compiler_pic=
10537 ;;
10538 *)
10539 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10540 ;;
10541 esac
10542
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10544 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10545 if ${lt_cv_prog_compiler_pic+:} false; then :
10546 $as_echo_n "(cached) " >&6
10547 else
10548 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10549 fi
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10551 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10552 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10553
10554 #
10555 # Check to make sure the PIC flag actually works.
10556 #
10557 if test -n "$lt_prog_compiler_pic"; then
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10559 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10560 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10561 $as_echo_n "(cached) " >&6
10562 else
10563 lt_cv_prog_compiler_pic_works=no
10564 ac_outfile=conftest.$ac_objext
10565 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10566 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10567 # Insert the option either (1) after the last *FLAGS variable, or
10568 # (2) before a word containing "conftest.", or (3) at the end.
10569 # Note that $ac_compile itself does not contain backslashes and begins
10570 # with a dollar sign (not a hyphen), so the echo should work correctly.
10571 # The option is referenced via a variable to avoid confusing sed.
10572 lt_compile=`echo "$ac_compile" | $SED \
10573 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10574 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10575 -e 's:$: $lt_compiler_flag:'`
10576 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10577 (eval "$lt_compile" 2>conftest.err)
10578 ac_status=$?
10579 cat conftest.err >&5
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 if (exit $ac_status) && test -s "$ac_outfile"; then
10582 # The compiler can only warn and ignore the option if not recognized
10583 # So say no if there are warnings other than the usual output.
10584 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10585 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10586 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10587 lt_cv_prog_compiler_pic_works=yes
10588 fi
10589 fi
10590 $RM conftest*
10591
10592 fi
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10594 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10595
10596 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10597 case $lt_prog_compiler_pic in
10598 "" | " "*) ;;
10599 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10600 esac
10601 else
10602 lt_prog_compiler_pic=
10603 lt_prog_compiler_can_build_shared=no
10604 fi
10605
10606 fi
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618 #
10619 # Check to make sure the static flag actually works.
10620 #
10621 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10623 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10624 if ${lt_cv_prog_compiler_static_works+:} false; then :
10625 $as_echo_n "(cached) " >&6
10626 else
10627 lt_cv_prog_compiler_static_works=no
10628 save_LDFLAGS=$LDFLAGS
10629 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10630 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10631 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10632 # The linker can only warn and ignore the option if not recognized
10633 # So say no if there are warnings
10634 if test -s conftest.err; then
10635 # Append any errors to the config.log.
10636 cat conftest.err 1>&5
10637 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10638 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10639 if diff conftest.exp conftest.er2 >/dev/null; then
10640 lt_cv_prog_compiler_static_works=yes
10641 fi
10642 else
10643 lt_cv_prog_compiler_static_works=yes
10644 fi
10645 fi
10646 $RM -r conftest*
10647 LDFLAGS=$save_LDFLAGS
10648
10649 fi
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10651 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10652
10653 if test yes = "$lt_cv_prog_compiler_static_works"; then
10654 :
10655 else
10656 lt_prog_compiler_static=
10657 fi
10658
10659
10660
10661
10662
10663
10664
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10666 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10667 if ${lt_cv_prog_compiler_c_o+:} false; then :
10668 $as_echo_n "(cached) " >&6
10669 else
10670 lt_cv_prog_compiler_c_o=no
10671 $RM -r conftest 2>/dev/null
10672 mkdir conftest
10673 cd conftest
10674 mkdir out
10675 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10676
10677 lt_compiler_flag="-o out/conftest2.$ac_objext"
10678 # Insert the option either (1) after the last *FLAGS variable, or
10679 # (2) before a word containing "conftest.", or (3) at the end.
10680 # Note that $ac_compile itself does not contain backslashes and begins
10681 # with a dollar sign (not a hyphen), so the echo should work correctly.
10682 lt_compile=`echo "$ac_compile" | $SED \
10683 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10684 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10685 -e 's:$: $lt_compiler_flag:'`
10686 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10687 (eval "$lt_compile" 2>out/conftest.err)
10688 ac_status=$?
10689 cat out/conftest.err >&5
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10692 then
10693 # The compiler can only warn and ignore the option if not recognized
10694 # So say no if there are warnings
10695 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10696 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10697 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10698 lt_cv_prog_compiler_c_o=yes
10699 fi
10700 fi
10701 chmod u+w . 2>&5
10702 $RM conftest*
10703 # SGI C++ compiler will create directory out/ii_files/ for
10704 # template instantiation
10705 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10706 $RM out/* && rmdir out
10707 cd ..
10708 $RM -r conftest
10709 $RM conftest*
10710
10711 fi
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10713 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10714
10715
10716
10717
10718
10719
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10721 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10722 if ${lt_cv_prog_compiler_c_o+:} false; then :
10723 $as_echo_n "(cached) " >&6
10724 else
10725 lt_cv_prog_compiler_c_o=no
10726 $RM -r conftest 2>/dev/null
10727 mkdir conftest
10728 cd conftest
10729 mkdir out
10730 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10731
10732 lt_compiler_flag="-o out/conftest2.$ac_objext"
10733 # Insert the option either (1) after the last *FLAGS variable, or
10734 # (2) before a word containing "conftest.", or (3) at the end.
10735 # Note that $ac_compile itself does not contain backslashes and begins
10736 # with a dollar sign (not a hyphen), so the echo should work correctly.
10737 lt_compile=`echo "$ac_compile" | $SED \
10738 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10739 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10740 -e 's:$: $lt_compiler_flag:'`
10741 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10742 (eval "$lt_compile" 2>out/conftest.err)
10743 ac_status=$?
10744 cat out/conftest.err >&5
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10747 then
10748 # The compiler can only warn and ignore the option if not recognized
10749 # So say no if there are warnings
10750 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10751 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10752 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10753 lt_cv_prog_compiler_c_o=yes
10754 fi
10755 fi
10756 chmod u+w . 2>&5
10757 $RM conftest*
10758 # SGI C++ compiler will create directory out/ii_files/ for
10759 # template instantiation
10760 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10761 $RM out/* && rmdir out
10762 cd ..
10763 $RM -r conftest
10764 $RM conftest*
10765
10766 fi
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10768 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10769
10770
10771
10772
10773 hard_links=nottested
10774 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10775 # do not overwrite the value of need_locks provided by the user
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10777 $as_echo_n "checking if we can lock with hard links... " >&6; }
10778 hard_links=yes
10779 $RM conftest*
10780 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10781 touch conftest.a
10782 ln conftest.a conftest.b 2>&5 || hard_links=no
10783 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10785 $as_echo "$hard_links" >&6; }
10786 if test no = "$hard_links"; then
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10788 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10789 need_locks=warn
10790 fi
10791 else
10792 need_locks=no
10793 fi
10794
10795
10796
10797
10798
10799
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10801 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10802
10803 runpath_var=
10804 allow_undefined_flag=
10805 always_export_symbols=no
10806 archive_cmds=
10807 archive_expsym_cmds=
10808 compiler_needs_object=no
10809 enable_shared_with_static_runtimes=no
10810 export_dynamic_flag_spec=
10811 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10812 hardcode_automatic=no
10813 hardcode_direct=no
10814 hardcode_direct_absolute=no
10815 hardcode_libdir_flag_spec=
10816 hardcode_libdir_separator=
10817 hardcode_minus_L=no
10818 hardcode_shlibpath_var=unsupported
10819 inherit_rpath=no
10820 link_all_deplibs=unknown
10821 module_cmds=
10822 module_expsym_cmds=
10823 old_archive_from_new_cmds=
10824 old_archive_from_expsyms_cmds=
10825 thread_safe_flag_spec=
10826 whole_archive_flag_spec=
10827 # include_expsyms should be a list of space-separated symbols to be *always*
10828 # included in the symbol list
10829 include_expsyms=
10830 # exclude_expsyms can be an extended regexp of symbols to exclude
10831 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10832 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10833 # as well as any symbol that contains 'd'.
10834 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10835 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10836 # platforms (ab)use it in PIC code, but their linkers get confused if
10837 # the symbol is explicitly referenced. Since portable code cannot
10838 # rely on this symbol name, it's probably fine to never include it in
10839 # preloaded symbol tables.
10840 # Exclude shared library initialization/finalization symbols.
10841 extract_expsyms_cmds=
10842
10843 case $host_os in
10844 cygwin* | mingw* | pw32* | cegcc*)
10845 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10846 # When not using gcc, we currently assume that we are using
10847 # Microsoft Visual C++.
10848 if test yes != "$GCC"; then
10849 with_gnu_ld=no
10850 fi
10851 ;;
10852 interix*)
10853 # we just hope/assume this is gcc and not c89 (= MSVC++)
10854 with_gnu_ld=yes
10855 ;;
10856 openbsd* | bitrig*)
10857 with_gnu_ld=no
10858 ;;
10859 esac
10860
10861 ld_shlibs=yes
10862
10863 # On some targets, GNU ld is compatible enough with the native linker
10864 # that we're better off using the native interface for both.
10865 lt_use_gnu_ld_interface=no
10866 if test yes = "$with_gnu_ld"; then
10867 case $host_os in
10868 aix*)
10869 # The AIX port of GNU ld has always aspired to compatibility
10870 # with the native linker. However, as the warning in the GNU ld
10871 # block says, versions before 2.19.5* couldn't really create working
10872 # shared libraries, regardless of the interface used.
10873 case `$LD -v 2>&1` in
10874 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10875 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10876 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10877 *)
10878 lt_use_gnu_ld_interface=yes
10879 ;;
10880 esac
10881 ;;
10882 *)
10883 lt_use_gnu_ld_interface=yes
10884 ;;
10885 esac
10886 fi
10887
10888 if test yes = "$lt_use_gnu_ld_interface"; then
10889 # If archive_cmds runs LD, not CC, wlarc should be empty
10890 wlarc='$wl'
10891
10892 # Set some defaults for GNU ld with shared library support. These
10893 # are reset later if shared libraries are not supported. Putting them
10894 # here allows them to be overridden if necessary.
10895 runpath_var=LD_RUN_PATH
10896 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10897 export_dynamic_flag_spec='$wl--export-dynamic'
10898 # ancient GNU ld didn't support --whole-archive et. al.
10899 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10900 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10901 else
10902 whole_archive_flag_spec=
10903 fi
10904 supports_anon_versioning=no
10905 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10906 *GNU\ gold*) supports_anon_versioning=yes ;;
10907 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10908 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10909 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10910 *\ 2.11.*) ;; # other 2.11 versions
10911 *) supports_anon_versioning=yes ;;
10912 esac
10913
10914 # See if GNU ld supports shared libraries.
10915 case $host_os in
10916 aix[3-9]*)
10917 # On AIX/PPC, the GNU linker is very broken
10918 if test ia64 != "$host_cpu"; then
10919 ld_shlibs=no
10920 cat <<_LT_EOF 1>&2
10921
10922 *** Warning: the GNU linker, at least up to release 2.19, is reported
10923 *** to be unable to reliably create shared libraries on AIX.
10924 *** Therefore, libtool is disabling shared libraries support. If you
10925 *** really care for shared libraries, you may want to install binutils
10926 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10927 *** You will then need to restart the configuration process.
10928
10929 _LT_EOF
10930 fi
10931 ;;
10932
10933 amigaos*)
10934 case $host_cpu in
10935 powerpc)
10936 # see comment about AmigaOS4 .so support
10937 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10938 archive_expsym_cmds=''
10939 ;;
10940 m68k)
10941 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)'
10942 hardcode_libdir_flag_spec='-L$libdir'
10943 hardcode_minus_L=yes
10944 ;;
10945 esac
10946 ;;
10947
10948 beos*)
10949 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10950 allow_undefined_flag=unsupported
10951 # Joseph Beckenbach <[email protected]> says some releases of gcc
10952 # support --undefined. This deserves some investigation. FIXME
10953 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10954 else
10955 ld_shlibs=no
10956 fi
10957 ;;
10958
10959 cygwin* | mingw* | pw32* | cegcc*)
10960 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10961 # as there is no search path for DLLs.
10962 hardcode_libdir_flag_spec='-L$libdir'
10963 export_dynamic_flag_spec='$wl--export-all-symbols'
10964 allow_undefined_flag=unsupported
10965 always_export_symbols=no
10966 enable_shared_with_static_runtimes=yes
10967 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'
10968 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10969
10970 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10971 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10972 # If the export-symbols file already is a .def file, use it as
10973 # is; otherwise, prepend EXPORTS...
10974 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10975 cp $export_symbols $output_objdir/$soname.def;
10976 else
10977 echo EXPORTS > $output_objdir/$soname.def;
10978 cat $export_symbols >> $output_objdir/$soname.def;
10979 fi~
10980 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10981 else
10982 ld_shlibs=no
10983 fi
10984 ;;
10985
10986 haiku*)
10987 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10988 link_all_deplibs=yes
10989 ;;
10990
10991 os2*)
10992 hardcode_libdir_flag_spec='-L$libdir'
10993 hardcode_minus_L=yes
10994 allow_undefined_flag=unsupported
10995 shrext_cmds=.dll
10996 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10997 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10998 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10999 $ECHO EXPORTS >> $output_objdir/$libname.def~
11000 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11001 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11002 emximp -o $lib $output_objdir/$libname.def'
11003 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11004 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11005 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11006 $ECHO EXPORTS >> $output_objdir/$libname.def~
11007 prefix_cmds="$SED"~
11008 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11009 prefix_cmds="$prefix_cmds -e 1d";
11010 fi~
11011 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11012 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11013 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11014 emximp -o $lib $output_objdir/$libname.def'
11015 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11016 enable_shared_with_static_runtimes=yes
11017 ;;
11018
11019 interix[3-9]*)
11020 hardcode_direct=no
11021 hardcode_shlibpath_var=no
11022 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11023 export_dynamic_flag_spec='$wl-E'
11024 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11025 # Instead, shared libraries are loaded at an image base (0x10000000 by
11026 # default) and relocated if they conflict, which is a slow very memory
11027 # consuming and fragmenting process. To avoid this, we pick a random,
11028 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11029 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11030 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11031 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'
11032 ;;
11033
11034 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11035 tmp_diet=no
11036 if test linux-dietlibc = "$host_os"; then
11037 case $cc_basename in
11038 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11039 esac
11040 fi
11041 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11042 && test no = "$tmp_diet"
11043 then
11044 tmp_addflag=' $pic_flag'
11045 tmp_sharedflag='-shared'
11046 case $cc_basename,$host_cpu in
11047 pgcc*) # Portland Group C compiler
11048 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'
11049 tmp_addflag=' $pic_flag'
11050 ;;
11051 pgf77* | pgf90* | pgf95* | pgfortran*)
11052 # Portland Group f77 and f90 compilers
11053 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'
11054 tmp_addflag=' $pic_flag -Mnomain' ;;
11055 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11056 tmp_addflag=' -i_dynamic' ;;
11057 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11058 tmp_addflag=' -i_dynamic -nofor_main' ;;
11059 ifc* | ifort*) # Intel Fortran compiler
11060 tmp_addflag=' -nofor_main' ;;
11061 lf95*) # Lahey Fortran 8.1
11062 whole_archive_flag_spec=
11063 tmp_sharedflag='--shared' ;;
11064 nagfor*) # NAGFOR 5.3
11065 tmp_sharedflag='-Wl,-shared' ;;
11066 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11067 tmp_sharedflag='-qmkshrobj'
11068 tmp_addflag= ;;
11069 nvcc*) # Cuda Compiler Driver 2.2
11070 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'
11071 compiler_needs_object=yes
11072 ;;
11073 esac
11074 case `$CC -V 2>&1 | sed 5q` in
11075 *Sun\ C*) # Sun C 5.9
11076 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'
11077 compiler_needs_object=yes
11078 tmp_sharedflag='-G' ;;
11079 *Sun\ F*) # Sun Fortran 8.3
11080 tmp_sharedflag='-G' ;;
11081 esac
11082 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11083
11084 if test yes = "$supports_anon_versioning"; then
11085 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11086 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11087 echo "local: *; };" >> $output_objdir/$libname.ver~
11088 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11089 fi
11090
11091 case $cc_basename in
11092 tcc*)
11093 export_dynamic_flag_spec='-rdynamic'
11094 ;;
11095 xlf* | bgf* | bgxlf* | mpixlf*)
11096 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11097 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11098 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11099 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11100 if test yes = "$supports_anon_versioning"; then
11101 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11102 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11103 echo "local: *; };" >> $output_objdir/$libname.ver~
11104 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11105 fi
11106 ;;
11107 esac
11108 else
11109 ld_shlibs=no
11110 fi
11111 ;;
11112
11113 netbsd*)
11114 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11115 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11116 wlarc=
11117 else
11118 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11119 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11120 fi
11121 ;;
11122
11123 solaris*)
11124 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11125 ld_shlibs=no
11126 cat <<_LT_EOF 1>&2
11127
11128 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11129 *** create shared libraries on Solaris systems. Therefore, libtool
11130 *** is disabling shared libraries support. We urge you to upgrade GNU
11131 *** binutils to release 2.9.1 or newer. Another option is to modify
11132 *** your PATH or compiler configuration so that the native linker is
11133 *** used, and then restart.
11134
11135 _LT_EOF
11136 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11137 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11138 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11139 else
11140 ld_shlibs=no
11141 fi
11142 ;;
11143
11144 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11145 case `$LD -v 2>&1` in
11146 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11147 ld_shlibs=no
11148 cat <<_LT_EOF 1>&2
11149
11150 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11151 *** reliably create shared libraries on SCO systems. Therefore, libtool
11152 *** is disabling shared libraries support. We urge you to upgrade GNU
11153 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11154 *** your PATH or compiler configuration so that the native linker is
11155 *** used, and then restart.
11156
11157 _LT_EOF
11158 ;;
11159 *)
11160 # For security reasons, it is highly recommended that you always
11161 # use absolute paths for naming shared libraries, and exclude the
11162 # DT_RUNPATH tag from executables and libraries. But doing so
11163 # requires that you compile everything twice, which is a pain.
11164 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11165 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11166 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11167 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11168 else
11169 ld_shlibs=no
11170 fi
11171 ;;
11172 esac
11173 ;;
11174
11175 sunos4*)
11176 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11177 wlarc=
11178 hardcode_direct=yes
11179 hardcode_shlibpath_var=no
11180 ;;
11181
11182 *)
11183 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11184 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11185 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11186 else
11187 ld_shlibs=no
11188 fi
11189 ;;
11190 esac
11191
11192 if test no = "$ld_shlibs"; then
11193 runpath_var=
11194 hardcode_libdir_flag_spec=
11195 export_dynamic_flag_spec=
11196 whole_archive_flag_spec=
11197 fi
11198 else
11199 # PORTME fill in a description of your system's linker (not GNU ld)
11200 case $host_os in
11201 aix3*)
11202 allow_undefined_flag=unsupported
11203 always_export_symbols=yes
11204 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'
11205 # Note: this linker hardcodes the directories in LIBPATH if there
11206 # are no directories specified by -L.
11207 hardcode_minus_L=yes
11208 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11209 # Neither direct hardcoding nor static linking is supported with a
11210 # broken collect2.
11211 hardcode_direct=unsupported
11212 fi
11213 ;;
11214
11215 aix[4-9]*)
11216 if test ia64 = "$host_cpu"; then
11217 # On IA64, the linker does run time linking by default, so we don't
11218 # have to do anything special.
11219 aix_use_runtimelinking=no
11220 exp_sym_flag='-Bexport'
11221 no_entry_flag=
11222 else
11223 # If we're using GNU nm, then we don't want the "-C" option.
11224 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11225 # Without the "-l" option, or with the "-B" option, AIX nm treats
11226 # weak defined symbols like other global defined symbols, whereas
11227 # GNU nm marks them as "W".
11228 # While the 'weak' keyword is ignored in the Export File, we need
11229 # it in the Import File for the 'aix-soname' feature, so we have
11230 # to replace the "-B" option with "-P" for AIX nm.
11231 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11232 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'
11233 else
11234 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'
11235 fi
11236 aix_use_runtimelinking=no
11237
11238 # Test if we are trying to use run time linking or normal
11239 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11240 # have runtime linking enabled, and use it for executables.
11241 # For shared libraries, we enable/disable runtime linking
11242 # depending on the kind of the shared library created -
11243 # when "with_aix_soname,aix_use_runtimelinking" is:
11244 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11245 # "aix,yes" lib.so shared, rtl:yes, for executables
11246 # lib.a static archive
11247 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11248 # lib.a(lib.so.V) shared, rtl:no, for executables
11249 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11250 # lib.a(lib.so.V) shared, rtl:no
11251 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11252 # lib.a static archive
11253 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11254 for ld_flag in $LDFLAGS; do
11255 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11256 aix_use_runtimelinking=yes
11257 break
11258 fi
11259 done
11260 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11261 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11262 # so we don't have lib.a shared libs to link our executables.
11263 # We have to force runtime linking in this case.
11264 aix_use_runtimelinking=yes
11265 LDFLAGS="$LDFLAGS -Wl,-brtl"
11266 fi
11267 ;;
11268 esac
11269
11270 exp_sym_flag='-bexport'
11271 no_entry_flag='-bnoentry'
11272 fi
11273
11274 # When large executables or shared objects are built, AIX ld can
11275 # have problems creating the table of contents. If linking a library
11276 # or program results in "error TOC overflow" add -mminimal-toc to
11277 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11278 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11279
11280 archive_cmds=''
11281 hardcode_direct=yes
11282 hardcode_direct_absolute=yes
11283 hardcode_libdir_separator=':'
11284 link_all_deplibs=yes
11285 file_list_spec='$wl-f,'
11286 case $with_aix_soname,$aix_use_runtimelinking in
11287 aix,*) ;; # traditional, no import file
11288 svr4,* | *,yes) # use import file
11289 # The Import File defines what to hardcode.
11290 hardcode_direct=no
11291 hardcode_direct_absolute=no
11292 ;;
11293 esac
11294
11295 if test yes = "$GCC"; then
11296 case $host_os in aix4.[012]|aix4.[012].*)
11297 # We only want to do this on AIX 4.2 and lower, the check
11298 # below for broken collect2 doesn't work under 4.3+
11299 collect2name=`$CC -print-prog-name=collect2`
11300 if test -f "$collect2name" &&
11301 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11302 then
11303 # We have reworked collect2
11304 :
11305 else
11306 # We have old collect2
11307 hardcode_direct=unsupported
11308 # It fails to find uninstalled libraries when the uninstalled
11309 # path is not listed in the libpath. Setting hardcode_minus_L
11310 # to unsupported forces relinking
11311 hardcode_minus_L=yes
11312 hardcode_libdir_flag_spec='-L$libdir'
11313 hardcode_libdir_separator=
11314 fi
11315 ;;
11316 esac
11317 shared_flag='-shared'
11318 if test yes = "$aix_use_runtimelinking"; then
11319 shared_flag="$shared_flag "'$wl-G'
11320 fi
11321 # Need to ensure runtime linking is disabled for the traditional
11322 # shared library, or the linker may eventually find shared libraries
11323 # /with/ Import File - we do not want to mix them.
11324 shared_flag_aix='-shared'
11325 shared_flag_svr4='-shared $wl-G'
11326 else
11327 # not using gcc
11328 if test ia64 = "$host_cpu"; then
11329 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11330 # chokes on -Wl,-G. The following line is correct:
11331 shared_flag='-G'
11332 else
11333 if test yes = "$aix_use_runtimelinking"; then
11334 shared_flag='$wl-G'
11335 else
11336 shared_flag='$wl-bM:SRE'
11337 fi
11338 shared_flag_aix='$wl-bM:SRE'
11339 shared_flag_svr4='$wl-G'
11340 fi
11341 fi
11342
11343 export_dynamic_flag_spec='$wl-bexpall'
11344 # It seems that -bexpall does not export symbols beginning with
11345 # underscore (_), so it is better to generate a list of symbols to export.
11346 always_export_symbols=yes
11347 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11348 # Warning - without using the other runtime loading flags (-brtl),
11349 # -berok will link without error, but may produce a broken library.
11350 allow_undefined_flag='-berok'
11351 # Determine the default libpath from the value encoded in an
11352 # empty executable.
11353 if test set = "${lt_cv_aix_libpath+set}"; then
11354 aix_libpath=$lt_cv_aix_libpath
11355 else
11356 if ${lt_cv_aix_libpath_+:} false; then :
11357 $as_echo_n "(cached) " >&6
11358 else
11359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11360 /* end confdefs.h. */
11361
11362 int
11363 main ()
11364 {
11365
11366 ;
11367 return 0;
11368 }
11369 _ACEOF
11370 if ac_fn_c_try_link "$LINENO"; then :
11371
11372 lt_aix_libpath_sed='
11373 /Import File Strings/,/^$/ {
11374 /^0/ {
11375 s/^0 *\([^ ]*\) *$/\1/
11376 p
11377 }
11378 }'
11379 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11380 # Check for a 64-bit object if we didn't find anything.
11381 if test -z "$lt_cv_aix_libpath_"; then
11382 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11383 fi
11384 fi
11385 rm -f core conftest.err conftest.$ac_objext \
11386 conftest$ac_exeext conftest.$ac_ext
11387 if test -z "$lt_cv_aix_libpath_"; then
11388 lt_cv_aix_libpath_=/usr/lib:/lib
11389 fi
11390
11391 fi
11392
11393 aix_libpath=$lt_cv_aix_libpath_
11394 fi
11395
11396 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11397 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
11398 else
11399 if test ia64 = "$host_cpu"; then
11400 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11401 allow_undefined_flag="-z nodefs"
11402 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"
11403 else
11404 # Determine the default libpath from the value encoded in an
11405 # empty executable.
11406 if test set = "${lt_cv_aix_libpath+set}"; then
11407 aix_libpath=$lt_cv_aix_libpath
11408 else
11409 if ${lt_cv_aix_libpath_+:} false; then :
11410 $as_echo_n "(cached) " >&6
11411 else
11412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11413 /* end confdefs.h. */
11414
11415 int
11416 main ()
11417 {
11418
11419 ;
11420 return 0;
11421 }
11422 _ACEOF
11423 if ac_fn_c_try_link "$LINENO"; then :
11424
11425 lt_aix_libpath_sed='
11426 /Import File Strings/,/^$/ {
11427 /^0/ {
11428 s/^0 *\([^ ]*\) *$/\1/
11429 p
11430 }
11431 }'
11432 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11433 # Check for a 64-bit object if we didn't find anything.
11434 if test -z "$lt_cv_aix_libpath_"; then
11435 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11436 fi
11437 fi
11438 rm -f core conftest.err conftest.$ac_objext \
11439 conftest$ac_exeext conftest.$ac_ext
11440 if test -z "$lt_cv_aix_libpath_"; then
11441 lt_cv_aix_libpath_=/usr/lib:/lib
11442 fi
11443
11444 fi
11445
11446 aix_libpath=$lt_cv_aix_libpath_
11447 fi
11448
11449 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11450 # Warning - without using the other run time loading flags,
11451 # -berok will link without error, but may produce a broken library.
11452 no_undefined_flag=' $wl-bernotok'
11453 allow_undefined_flag=' $wl-berok'
11454 if test yes = "$with_gnu_ld"; then
11455 # We only use this code for GNU lds that support --whole-archive.
11456 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11457 else
11458 # Exported symbols can be pulled into shared objects from archives
11459 whole_archive_flag_spec='$convenience'
11460 fi
11461 archive_cmds_need_lc=yes
11462 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11463 # -brtl affects multiple linker settings, -berok does not and is overridden later
11464 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11465 if test svr4 != "$with_aix_soname"; then
11466 # This is similar to how AIX traditionally builds its shared libraries.
11467 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'
11468 fi
11469 if test aix != "$with_aix_soname"; then
11470 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'
11471 else
11472 # used by -dlpreopen to get the symbols
11473 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11474 fi
11475 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11476 fi
11477 fi
11478 ;;
11479
11480 amigaos*)
11481 case $host_cpu in
11482 powerpc)
11483 # see comment about AmigaOS4 .so support
11484 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11485 archive_expsym_cmds=''
11486 ;;
11487 m68k)
11488 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)'
11489 hardcode_libdir_flag_spec='-L$libdir'
11490 hardcode_minus_L=yes
11491 ;;
11492 esac
11493 ;;
11494
11495 bsdi[45]*)
11496 export_dynamic_flag_spec=-rdynamic
11497 ;;
11498
11499 cygwin* | mingw* | pw32* | cegcc*)
11500 # When not using gcc, we currently assume that we are using
11501 # Microsoft Visual C++.
11502 # hardcode_libdir_flag_spec is actually meaningless, as there is
11503 # no search path for DLLs.
11504 case $cc_basename in
11505 cl*)
11506 # Native MSVC
11507 hardcode_libdir_flag_spec=' '
11508 allow_undefined_flag=unsupported
11509 always_export_symbols=yes
11510 file_list_spec='@'
11511 # Tell ltmain to make .lib files, not .a files.
11512 libext=lib
11513 # Tell ltmain to make .dll files, not .so files.
11514 shrext_cmds=.dll
11515 # FIXME: Setting linknames here is a bad hack.
11516 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11517 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11518 cp "$export_symbols" "$output_objdir/$soname.def";
11519 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11520 else
11521 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11522 fi~
11523 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11524 linknames='
11525 # The linker will not automatically build a static lib if we build a DLL.
11526 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11527 enable_shared_with_static_runtimes=yes
11528 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11529 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11530 # Don't use ranlib
11531 old_postinstall_cmds='chmod 644 $oldlib'
11532 postlink_cmds='lt_outputfile="@OUTPUT@"~
11533 lt_tool_outputfile="@TOOL_OUTPUT@"~
11534 case $lt_outputfile in
11535 *.exe|*.EXE) ;;
11536 *)
11537 lt_outputfile=$lt_outputfile.exe
11538 lt_tool_outputfile=$lt_tool_outputfile.exe
11539 ;;
11540 esac~
11541 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11542 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11543 $RM "$lt_outputfile.manifest";
11544 fi'
11545 ;;
11546 *)
11547 # Assume MSVC wrapper
11548 hardcode_libdir_flag_spec=' '
11549 allow_undefined_flag=unsupported
11550 # Tell ltmain to make .lib files, not .a files.
11551 libext=lib
11552 # Tell ltmain to make .dll files, not .so files.
11553 shrext_cmds=.dll
11554 # FIXME: Setting linknames here is a bad hack.
11555 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11556 # The linker will automatically build a .lib file if we build a DLL.
11557 old_archive_from_new_cmds='true'
11558 # FIXME: Should let the user specify the lib program.
11559 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11560 enable_shared_with_static_runtimes=yes
11561 ;;
11562 esac
11563 ;;
11564
11565 darwin* | rhapsody*)
11566
11567
11568 archive_cmds_need_lc=no
11569 hardcode_direct=no
11570 hardcode_automatic=yes
11571 hardcode_shlibpath_var=unsupported
11572 if test yes = "$lt_cv_ld_force_load"; then
11573 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\"`'
11574
11575 else
11576 whole_archive_flag_spec=''
11577 fi
11578 link_all_deplibs=yes
11579 allow_undefined_flag=$_lt_dar_allow_undefined
11580 case $cc_basename in
11581 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11582 *) _lt_dar_can_shared=$GCC ;;
11583 esac
11584 if test yes = "$_lt_dar_can_shared"; then
11585 output_verbose_link_cmd=func_echo_all
11586 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11587 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11588 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"
11589 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"
11590
11591 else
11592 ld_shlibs=no
11593 fi
11594
11595 ;;
11596
11597 dgux*)
11598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11599 hardcode_libdir_flag_spec='-L$libdir'
11600 hardcode_shlibpath_var=no
11601 ;;
11602
11603 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11604 # support. Future versions do this automatically, but an explicit c++rt0.o
11605 # does not break anything, and helps significantly (at the cost of a little
11606 # extra space).
11607 freebsd2.2*)
11608 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11609 hardcode_libdir_flag_spec='-R$libdir'
11610 hardcode_direct=yes
11611 hardcode_shlibpath_var=no
11612 ;;
11613
11614 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11615 freebsd2.*)
11616 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11617 hardcode_direct=yes
11618 hardcode_minus_L=yes
11619 hardcode_shlibpath_var=no
11620 ;;
11621
11622 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11623 freebsd* | dragonfly*)
11624 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11625 hardcode_libdir_flag_spec='-R$libdir'
11626 hardcode_direct=yes
11627 hardcode_shlibpath_var=no
11628 ;;
11629
11630 hpux9*)
11631 if test yes = "$GCC"; then
11632 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'
11633 else
11634 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'
11635 fi
11636 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11637 hardcode_libdir_separator=:
11638 hardcode_direct=yes
11639
11640 # hardcode_minus_L: Not really in the search PATH,
11641 # but as the default location of the library.
11642 hardcode_minus_L=yes
11643 export_dynamic_flag_spec='$wl-E'
11644 ;;
11645
11646 hpux10*)
11647 if test yes,no = "$GCC,$with_gnu_ld"; then
11648 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11649 else
11650 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11651 fi
11652 if test no = "$with_gnu_ld"; then
11653 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11654 hardcode_libdir_separator=:
11655 hardcode_direct=yes
11656 hardcode_direct_absolute=yes
11657 export_dynamic_flag_spec='$wl-E'
11658 # hardcode_minus_L: Not really in the search PATH,
11659 # but as the default location of the library.
11660 hardcode_minus_L=yes
11661 fi
11662 ;;
11663
11664 hpux11*)
11665 if test yes,no = "$GCC,$with_gnu_ld"; then
11666 case $host_cpu in
11667 hppa*64*)
11668 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11669 ;;
11670 ia64*)
11671 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11672 ;;
11673 *)
11674 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11675 ;;
11676 esac
11677 else
11678 case $host_cpu in
11679 hppa*64*)
11680 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11681 ;;
11682 ia64*)
11683 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11684 ;;
11685 *)
11686
11687 # Older versions of the 11.00 compiler do not understand -b yet
11688 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11690 $as_echo_n "checking if $CC understands -b... " >&6; }
11691 if ${lt_cv_prog_compiler__b+:} false; then :
11692 $as_echo_n "(cached) " >&6
11693 else
11694 lt_cv_prog_compiler__b=no
11695 save_LDFLAGS=$LDFLAGS
11696 LDFLAGS="$LDFLAGS -b"
11697 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11698 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11699 # The linker can only warn and ignore the option if not recognized
11700 # So say no if there are warnings
11701 if test -s conftest.err; then
11702 # Append any errors to the config.log.
11703 cat conftest.err 1>&5
11704 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11705 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11706 if diff conftest.exp conftest.er2 >/dev/null; then
11707 lt_cv_prog_compiler__b=yes
11708 fi
11709 else
11710 lt_cv_prog_compiler__b=yes
11711 fi
11712 fi
11713 $RM -r conftest*
11714 LDFLAGS=$save_LDFLAGS
11715
11716 fi
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11718 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11719
11720 if test yes = "$lt_cv_prog_compiler__b"; then
11721 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11722 else
11723 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11724 fi
11725
11726 ;;
11727 esac
11728 fi
11729 if test no = "$with_gnu_ld"; then
11730 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11731 hardcode_libdir_separator=:
11732
11733 case $host_cpu in
11734 hppa*64*|ia64*)
11735 hardcode_direct=no
11736 hardcode_shlibpath_var=no
11737 ;;
11738 *)
11739 hardcode_direct=yes
11740 hardcode_direct_absolute=yes
11741 export_dynamic_flag_spec='$wl-E'
11742
11743 # hardcode_minus_L: Not really in the search PATH,
11744 # but as the default location of the library.
11745 hardcode_minus_L=yes
11746 ;;
11747 esac
11748 fi
11749 ;;
11750
11751 irix5* | irix6* | nonstopux*)
11752 if test yes = "$GCC"; then
11753 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'
11754 # Try to use the -exported_symbol ld option, if it does not
11755 # work, assume that -exports_file does not work either and
11756 # implicitly export all symbols.
11757 # This should be the same for all languages, so no per-tag cache variable.
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11759 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11760 if ${lt_cv_irix_exported_symbol+:} false; then :
11761 $as_echo_n "(cached) " >&6
11762 else
11763 save_LDFLAGS=$LDFLAGS
11764 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11766 /* end confdefs.h. */
11767 int foo (void) { return 0; }
11768 _ACEOF
11769 if ac_fn_c_try_link "$LINENO"; then :
11770 lt_cv_irix_exported_symbol=yes
11771 else
11772 lt_cv_irix_exported_symbol=no
11773 fi
11774 rm -f core conftest.err conftest.$ac_objext \
11775 conftest$ac_exeext conftest.$ac_ext
11776 LDFLAGS=$save_LDFLAGS
11777 fi
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11779 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11780 if test yes = "$lt_cv_irix_exported_symbol"; then
11781 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'
11782 fi
11783 else
11784 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'
11785 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'
11786 fi
11787 archive_cmds_need_lc='no'
11788 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11789 hardcode_libdir_separator=:
11790 inherit_rpath=yes
11791 link_all_deplibs=yes
11792 ;;
11793
11794 linux*)
11795 case $cc_basename in
11796 tcc*)
11797 # Fabrice Bellard et al's Tiny C Compiler
11798 ld_shlibs=yes
11799 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11800 ;;
11801 esac
11802 ;;
11803
11804 netbsd*)
11805 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11806 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11807 else
11808 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11809 fi
11810 hardcode_libdir_flag_spec='-R$libdir'
11811 hardcode_direct=yes
11812 hardcode_shlibpath_var=no
11813 ;;
11814
11815 newsos6)
11816 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11817 hardcode_direct=yes
11818 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11819 hardcode_libdir_separator=:
11820 hardcode_shlibpath_var=no
11821 ;;
11822
11823 *nto* | *qnx*)
11824 ;;
11825
11826 openbsd* | bitrig*)
11827 if test -f /usr/libexec/ld.so; then
11828 hardcode_direct=yes
11829 hardcode_shlibpath_var=no
11830 hardcode_direct_absolute=yes
11831 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11832 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11833 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11834 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11835 export_dynamic_flag_spec='$wl-E'
11836 else
11837 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11838 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11839 fi
11840 else
11841 ld_shlibs=no
11842 fi
11843 ;;
11844
11845 os2*)
11846 hardcode_libdir_flag_spec='-L$libdir'
11847 hardcode_minus_L=yes
11848 allow_undefined_flag=unsupported
11849 shrext_cmds=.dll
11850 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11851 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11852 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11853 $ECHO EXPORTS >> $output_objdir/$libname.def~
11854 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11855 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11856 emximp -o $lib $output_objdir/$libname.def'
11857 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11858 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11859 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11860 $ECHO EXPORTS >> $output_objdir/$libname.def~
11861 prefix_cmds="$SED"~
11862 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11863 prefix_cmds="$prefix_cmds -e 1d";
11864 fi~
11865 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11866 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11867 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11868 emximp -o $lib $output_objdir/$libname.def'
11869 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11870 enable_shared_with_static_runtimes=yes
11871 ;;
11872
11873 osf3*)
11874 if test yes = "$GCC"; then
11875 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11876 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'
11877 else
11878 allow_undefined_flag=' -expect_unresolved \*'
11879 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'
11880 fi
11881 archive_cmds_need_lc='no'
11882 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11883 hardcode_libdir_separator=:
11884 ;;
11885
11886 osf4* | osf5*) # as osf3* with the addition of -msym flag
11887 if test yes = "$GCC"; then
11888 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11889 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'
11890 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11891 else
11892 allow_undefined_flag=' -expect_unresolved \*'
11893 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'
11894 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~
11895 $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'
11896
11897 # Both c and cxx compiler support -rpath directly
11898 hardcode_libdir_flag_spec='-rpath $libdir'
11899 fi
11900 archive_cmds_need_lc='no'
11901 hardcode_libdir_separator=:
11902 ;;
11903
11904 solaris*)
11905 no_undefined_flag=' -z defs'
11906 if test yes = "$GCC"; then
11907 wlarc='$wl'
11908 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11909 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11910 $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'
11911 else
11912 case `$CC -V 2>&1` in
11913 *"Compilers 5.0"*)
11914 wlarc=''
11915 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11916 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11917 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11918 ;;
11919 *)
11920 wlarc='$wl'
11921 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11922 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11923 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11924 ;;
11925 esac
11926 fi
11927 hardcode_libdir_flag_spec='-R$libdir'
11928 hardcode_shlibpath_var=no
11929 case $host_os in
11930 solaris2.[0-5] | solaris2.[0-5].*) ;;
11931 *)
11932 # The compiler driver will combine and reorder linker options,
11933 # but understands '-z linker_flag'. GCC discards it without '$wl',
11934 # but is careful enough not to reorder.
11935 # Supported since Solaris 2.6 (maybe 2.5.1?)
11936 if test yes = "$GCC"; then
11937 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11938 else
11939 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11940 fi
11941 ;;
11942 esac
11943 link_all_deplibs=yes
11944 ;;
11945
11946 sunos4*)
11947 if test sequent = "$host_vendor"; then
11948 # Use $CC to link under sequent, because it throws in some extra .o
11949 # files that make .init and .fini sections work.
11950 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11951 else
11952 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11953 fi
11954 hardcode_libdir_flag_spec='-L$libdir'
11955 hardcode_direct=yes
11956 hardcode_minus_L=yes
11957 hardcode_shlibpath_var=no
11958 ;;
11959
11960 sysv4)
11961 case $host_vendor in
11962 sni)
11963 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11964 hardcode_direct=yes # is this really true???
11965 ;;
11966 siemens)
11967 ## LD is ld it makes a PLAMLIB
11968 ## CC just makes a GrossModule.
11969 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11970 reload_cmds='$CC -r -o $output$reload_objs'
11971 hardcode_direct=no
11972 ;;
11973 motorola)
11974 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11975 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11976 ;;
11977 esac
11978 runpath_var='LD_RUN_PATH'
11979 hardcode_shlibpath_var=no
11980 ;;
11981
11982 sysv4.3*)
11983 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11984 hardcode_shlibpath_var=no
11985 export_dynamic_flag_spec='-Bexport'
11986 ;;
11987
11988 sysv4*MP*)
11989 if test -d /usr/nec; then
11990 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11991 hardcode_shlibpath_var=no
11992 runpath_var=LD_RUN_PATH
11993 hardcode_runpath_var=yes
11994 ld_shlibs=yes
11995 fi
11996 ;;
11997
11998 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11999 no_undefined_flag='$wl-z,text'
12000 archive_cmds_need_lc=no
12001 hardcode_shlibpath_var=no
12002 runpath_var='LD_RUN_PATH'
12003
12004 if test yes = "$GCC"; then
12005 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12006 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12007 else
12008 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12009 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12010 fi
12011 ;;
12012
12013 sysv5* | sco3.2v5* | sco5v6*)
12014 # Note: We CANNOT use -z defs as we might desire, because we do not
12015 # link with -lc, and that would cause any symbols used from libc to
12016 # always be unresolved, which means just about no library would
12017 # ever link correctly. If we're not using GNU ld we use -z text
12018 # though, which does catch some bad symbols but isn't as heavy-handed
12019 # as -z defs.
12020 no_undefined_flag='$wl-z,text'
12021 allow_undefined_flag='$wl-z,nodefs'
12022 archive_cmds_need_lc=no
12023 hardcode_shlibpath_var=no
12024 hardcode_libdir_flag_spec='$wl-R,$libdir'
12025 hardcode_libdir_separator=':'
12026 link_all_deplibs=yes
12027 export_dynamic_flag_spec='$wl-Bexport'
12028 runpath_var='LD_RUN_PATH'
12029
12030 if test yes = "$GCC"; then
12031 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12032 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12033 else
12034 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12035 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12036 fi
12037 ;;
12038
12039 uts4*)
12040 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12041 hardcode_libdir_flag_spec='-L$libdir'
12042 hardcode_shlibpath_var=no
12043 ;;
12044
12045 *)
12046 ld_shlibs=no
12047 ;;
12048 esac
12049
12050 if test sni = "$host_vendor"; then
12051 case $host in
12052 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12053 export_dynamic_flag_spec='$wl-Blargedynsym'
12054 ;;
12055 esac
12056 fi
12057 fi
12058
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12060 $as_echo "$ld_shlibs" >&6; }
12061 test no = "$ld_shlibs" && can_build_shared=no
12062
12063 with_gnu_ld=$with_gnu_ld
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079 #
12080 # Do we need to explicitly link libc?
12081 #
12082 case "x$archive_cmds_need_lc" in
12083 x|xyes)
12084 # Assume -lc should be added
12085 archive_cmds_need_lc=yes
12086
12087 if test yes,yes = "$GCC,$enable_shared"; then
12088 case $archive_cmds in
12089 *'~'*)
12090 # FIXME: we may have to deal with multi-command sequences.
12091 ;;
12092 '$CC '*)
12093 # Test whether the compiler implicitly links with -lc since on some
12094 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12095 # to ld, don't add -lc before -lgcc.
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12097 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12098 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12099 $as_echo_n "(cached) " >&6
12100 else
12101 $RM conftest*
12102 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12103
12104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12105 (eval $ac_compile) 2>&5
12106 ac_status=$?
12107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12108 test $ac_status = 0; } 2>conftest.err; then
12109 soname=conftest
12110 lib=conftest
12111 libobjs=conftest.$ac_objext
12112 deplibs=
12113 wl=$lt_prog_compiler_wl
12114 pic_flag=$lt_prog_compiler_pic
12115 compiler_flags=-v
12116 linker_flags=-v
12117 verstring=
12118 output_objdir=.
12119 libname=conftest
12120 lt_save_allow_undefined_flag=$allow_undefined_flag
12121 allow_undefined_flag=
12122 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12123 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12124 ac_status=$?
12125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12126 test $ac_status = 0; }
12127 then
12128 lt_cv_archive_cmds_need_lc=no
12129 else
12130 lt_cv_archive_cmds_need_lc=yes
12131 fi
12132 allow_undefined_flag=$lt_save_allow_undefined_flag
12133 else
12134 cat conftest.err 1>&5
12135 fi
12136 $RM conftest*
12137
12138 fi
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12140 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12141 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12142 ;;
12143 esac
12144 fi
12145 ;;
12146 esac
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12300 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12301
12302 if test yes = "$GCC"; then
12303 case $host_os in
12304 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12305 *) lt_awk_arg='/^libraries:/' ;;
12306 esac
12307 case $host_os in
12308 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12309 *) lt_sed_strip_eq='s|=/|/|g' ;;
12310 esac
12311 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12312 case $lt_search_path_spec in
12313 *\;*)
12314 # if the path contains ";" then we assume it to be the separator
12315 # otherwise default to the standard path separator (i.e. ":") - it is
12316 # assumed that no part of a normal pathname contains ";" but that should
12317 # okay in the real world where ";" in dirpaths is itself problematic.
12318 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12319 ;;
12320 *)
12321 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12322 ;;
12323 esac
12324 # Ok, now we have the path, separated by spaces, we can step through it
12325 # and add multilib dir if necessary...
12326 lt_tmp_lt_search_path_spec=
12327 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12328 # ...but if some path component already ends with the multilib dir we assume
12329 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12330 case "$lt_multi_os_dir; $lt_search_path_spec " in
12331 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12332 lt_multi_os_dir=
12333 ;;
12334 esac
12335 for lt_sys_path in $lt_search_path_spec; do
12336 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12337 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12338 elif test -n "$lt_multi_os_dir"; then
12339 test -d "$lt_sys_path" && \
12340 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12341 fi
12342 done
12343 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12344 BEGIN {RS = " "; FS = "/|\n";} {
12345 lt_foo = "";
12346 lt_count = 0;
12347 for (lt_i = NF; lt_i > 0; lt_i--) {
12348 if ($lt_i != "" && $lt_i != ".") {
12349 if ($lt_i == "..") {
12350 lt_count++;
12351 } else {
12352 if (lt_count == 0) {
12353 lt_foo = "/" $lt_i lt_foo;
12354 } else {
12355 lt_count--;
12356 }
12357 }
12358 }
12359 }
12360 if (lt_foo != "") { lt_freq[lt_foo]++; }
12361 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12362 }'`
12363 # AWK program above erroneously prepends '/' to C:/dos/paths
12364 # for these hosts.
12365 case $host_os in
12366 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12367 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12368 esac
12369 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12370 else
12371 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12372 fi
12373 library_names_spec=
12374 libname_spec='lib$name'
12375 soname_spec=
12376 shrext_cmds=.so
12377 postinstall_cmds=
12378 postuninstall_cmds=
12379 finish_cmds=
12380 finish_eval=
12381 shlibpath_var=
12382 shlibpath_overrides_runpath=unknown
12383 version_type=none
12384 dynamic_linker="$host_os ld.so"
12385 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12386 need_lib_prefix=unknown
12387 hardcode_into_libs=no
12388
12389 # when you set need_version to no, make sure it does not cause -set_version
12390 # flags to be left without arguments
12391 need_version=unknown
12392
12393
12394
12395 case $host_os in
12396 aix3*)
12397 version_type=linux # correct to gnu/linux during the next big refactor
12398 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12399 shlibpath_var=LIBPATH
12400
12401 # AIX 3 has no versioning support, so we append a major version to the name.
12402 soname_spec='$libname$release$shared_ext$major'
12403 ;;
12404
12405 aix[4-9]*)
12406 version_type=linux # correct to gnu/linux during the next big refactor
12407 need_lib_prefix=no
12408 need_version=no
12409 hardcode_into_libs=yes
12410 if test ia64 = "$host_cpu"; then
12411 # AIX 5 supports IA64
12412 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12413 shlibpath_var=LD_LIBRARY_PATH
12414 else
12415 # With GCC up to 2.95.x, collect2 would create an import file
12416 # for dependence libraries. The import file would start with
12417 # the line '#! .'. This would cause the generated library to
12418 # depend on '.', always an invalid library. This was fixed in
12419 # development snapshots of GCC prior to 3.0.
12420 case $host_os in
12421 aix4 | aix4.[01] | aix4.[01].*)
12422 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12423 echo ' yes '
12424 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12425 :
12426 else
12427 can_build_shared=no
12428 fi
12429 ;;
12430 esac
12431 # Using Import Files as archive members, it is possible to support
12432 # filename-based versioning of shared library archives on AIX. While
12433 # this would work for both with and without runtime linking, it will
12434 # prevent static linking of such archives. So we do filename-based
12435 # shared library versioning with .so extension only, which is used
12436 # when both runtime linking and shared linking is enabled.
12437 # Unfortunately, runtime linking may impact performance, so we do
12438 # not want this to be the default eventually. Also, we use the
12439 # versioned .so libs for executables only if there is the -brtl
12440 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12441 # To allow for filename-based versioning support, we need to create
12442 # libNAME.so.V as an archive file, containing:
12443 # *) an Import File, referring to the versioned filename of the
12444 # archive as well as the shared archive member, telling the
12445 # bitwidth (32 or 64) of that shared object, and providing the
12446 # list of exported symbols of that shared object, eventually
12447 # decorated with the 'weak' keyword
12448 # *) the shared object with the F_LOADONLY flag set, to really avoid
12449 # it being seen by the linker.
12450 # At run time we better use the real file rather than another symlink,
12451 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12452
12453 case $with_aix_soname,$aix_use_runtimelinking in
12454 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12455 # soname into executable. Probably we can add versioning support to
12456 # collect2, so additional links can be useful in future.
12457 aix,yes) # traditional libtool
12458 dynamic_linker='AIX unversionable lib.so'
12459 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12460 # instead of lib<name>.a to let people know that these are not
12461 # typical AIX shared libraries.
12462 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12463 ;;
12464 aix,no) # traditional AIX only
12465 dynamic_linker='AIX lib.a(lib.so.V)'
12466 # We preserve .a as extension for shared libraries through AIX4.2
12467 # and later when we are not doing run time linking.
12468 library_names_spec='$libname$release.a $libname.a'
12469 soname_spec='$libname$release$shared_ext$major'
12470 ;;
12471 svr4,*) # full svr4 only
12472 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12473 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12474 # We do not specify a path in Import Files, so LIBPATH fires.
12475 shlibpath_overrides_runpath=yes
12476 ;;
12477 *,yes) # both, prefer svr4
12478 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12479 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12480 # unpreferred sharedlib libNAME.a needs extra handling
12481 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"'
12482 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"'
12483 # We do not specify a path in Import Files, so LIBPATH fires.
12484 shlibpath_overrides_runpath=yes
12485 ;;
12486 *,no) # both, prefer aix
12487 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12488 library_names_spec='$libname$release.a $libname.a'
12489 soname_spec='$libname$release$shared_ext$major'
12490 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12491 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)'
12492 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"'
12493 ;;
12494 esac
12495 shlibpath_var=LIBPATH
12496 fi
12497 ;;
12498
12499 amigaos*)
12500 case $host_cpu in
12501 powerpc)
12502 # Since July 2007 AmigaOS4 officially supports .so libraries.
12503 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12504 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12505 ;;
12506 m68k)
12507 library_names_spec='$libname.ixlibrary $libname.a'
12508 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12509 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'
12510 ;;
12511 esac
12512 ;;
12513
12514 beos*)
12515 library_names_spec='$libname$shared_ext'
12516 dynamic_linker="$host_os ld.so"
12517 shlibpath_var=LIBRARY_PATH
12518 ;;
12519
12520 bsdi[45]*)
12521 version_type=linux # correct to gnu/linux during the next big refactor
12522 need_version=no
12523 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12524 soname_spec='$libname$release$shared_ext$major'
12525 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12526 shlibpath_var=LD_LIBRARY_PATH
12527 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12528 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12529 # the default ld.so.conf also contains /usr/contrib/lib and
12530 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12531 # libtool to hard-code these into programs
12532 ;;
12533
12534 cygwin* | mingw* | pw32* | cegcc*)
12535 version_type=windows
12536 shrext_cmds=.dll
12537 need_version=no
12538 need_lib_prefix=no
12539
12540 case $GCC,$cc_basename in
12541 yes,*)
12542 # gcc
12543 library_names_spec='$libname.dll.a'
12544 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12545 postinstall_cmds='base_file=`basename \$file`~
12546 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12547 dldir=$destdir/`dirname \$dlpath`~
12548 test -d \$dldir || mkdir -p \$dldir~
12549 $install_prog $dir/$dlname \$dldir/$dlname~
12550 chmod a+x \$dldir/$dlname~
12551 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12552 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12553 fi'
12554 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12555 dlpath=$dir/\$dldll~
12556 $RM \$dlpath'
12557 shlibpath_overrides_runpath=yes
12558
12559 case $host_os in
12560 cygwin*)
12561 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12562 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12563
12564 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12565 ;;
12566 mingw* | cegcc*)
12567 # MinGW DLLs use traditional 'lib' prefix
12568 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12569 ;;
12570 pw32*)
12571 # pw32 DLLs use 'pw' prefix rather than 'lib'
12572 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12573 ;;
12574 esac
12575 dynamic_linker='Win32 ld.exe'
12576 ;;
12577
12578 *,cl*)
12579 # Native MSVC
12580 libname_spec='$name'
12581 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12582 library_names_spec='$libname.dll.lib'
12583
12584 case $build_os in
12585 mingw*)
12586 sys_lib_search_path_spec=
12587 lt_save_ifs=$IFS
12588 IFS=';'
12589 for lt_path in $LIB
12590 do
12591 IFS=$lt_save_ifs
12592 # Let DOS variable expansion print the short 8.3 style file name.
12593 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12594 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12595 done
12596 IFS=$lt_save_ifs
12597 # Convert to MSYS style.
12598 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12599 ;;
12600 cygwin*)
12601 # Convert to unix form, then to dos form, then back to unix form
12602 # but this time dos style (no spaces!) so that the unix form looks
12603 # like /cygdrive/c/PROGRA~1:/cygdr...
12604 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12605 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12606 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12607 ;;
12608 *)
12609 sys_lib_search_path_spec=$LIB
12610 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12611 # It is most probably a Windows format PATH.
12612 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12613 else
12614 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12615 fi
12616 # FIXME: find the short name or the path components, as spaces are
12617 # common. (e.g. "Program Files" -> "PROGRA~1")
12618 ;;
12619 esac
12620
12621 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12622 postinstall_cmds='base_file=`basename \$file`~
12623 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12624 dldir=$destdir/`dirname \$dlpath`~
12625 test -d \$dldir || mkdir -p \$dldir~
12626 $install_prog $dir/$dlname \$dldir/$dlname'
12627 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12628 dlpath=$dir/\$dldll~
12629 $RM \$dlpath'
12630 shlibpath_overrides_runpath=yes
12631 dynamic_linker='Win32 link.exe'
12632 ;;
12633
12634 *)
12635 # Assume MSVC wrapper
12636 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12637 dynamic_linker='Win32 ld.exe'
12638 ;;
12639 esac
12640 # FIXME: first we should search . and the directory the executable is in
12641 shlibpath_var=PATH
12642 ;;
12643
12644 darwin* | rhapsody*)
12645 dynamic_linker="$host_os dyld"
12646 version_type=darwin
12647 need_lib_prefix=no
12648 need_version=no
12649 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12650 soname_spec='$libname$release$major$shared_ext'
12651 shlibpath_overrides_runpath=yes
12652 shlibpath_var=DYLD_LIBRARY_PATH
12653 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12654
12655 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12656 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12657 ;;
12658
12659 dgux*)
12660 version_type=linux # correct to gnu/linux during the next big refactor
12661 need_lib_prefix=no
12662 need_version=no
12663 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12664 soname_spec='$libname$release$shared_ext$major'
12665 shlibpath_var=LD_LIBRARY_PATH
12666 ;;
12667
12668 freebsd* | dragonfly*)
12669 # DragonFly does not have aout. When/if they implement a new
12670 # versioning mechanism, adjust this.
12671 if test -x /usr/bin/objformat; then
12672 objformat=`/usr/bin/objformat`
12673 else
12674 case $host_os in
12675 freebsd[23].*) objformat=aout ;;
12676 *) objformat=elf ;;
12677 esac
12678 fi
12679 version_type=freebsd-$objformat
12680 case $version_type in
12681 freebsd-elf*)
12682 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12683 soname_spec='$libname$release$shared_ext$major'
12684 need_version=no
12685 need_lib_prefix=no
12686 ;;
12687 freebsd-*)
12688 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12689 need_version=yes
12690 ;;
12691 esac
12692 shlibpath_var=LD_LIBRARY_PATH
12693 case $host_os in
12694 freebsd2.*)
12695 shlibpath_overrides_runpath=yes
12696 ;;
12697 freebsd3.[01]* | freebsdelf3.[01]*)
12698 shlibpath_overrides_runpath=yes
12699 hardcode_into_libs=yes
12700 ;;
12701 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12702 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12703 shlibpath_overrides_runpath=no
12704 hardcode_into_libs=yes
12705 ;;
12706 *) # from 4.6 on, and DragonFly
12707 shlibpath_overrides_runpath=yes
12708 hardcode_into_libs=yes
12709 ;;
12710 esac
12711 ;;
12712
12713 haiku*)
12714 version_type=linux # correct to gnu/linux during the next big refactor
12715 need_lib_prefix=no
12716 need_version=no
12717 dynamic_linker="$host_os runtime_loader"
12718 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12719 soname_spec='$libname$release$shared_ext$major'
12720 shlibpath_var=LIBRARY_PATH
12721 shlibpath_overrides_runpath=no
12722 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12723 hardcode_into_libs=yes
12724 ;;
12725
12726 hpux9* | hpux10* | hpux11*)
12727 # Give a soname corresponding to the major version so that dld.sl refuses to
12728 # link against other versions.
12729 version_type=sunos
12730 need_lib_prefix=no
12731 need_version=no
12732 case $host_cpu in
12733 ia64*)
12734 shrext_cmds='.so'
12735 hardcode_into_libs=yes
12736 dynamic_linker="$host_os dld.so"
12737 shlibpath_var=LD_LIBRARY_PATH
12738 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12739 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12740 soname_spec='$libname$release$shared_ext$major'
12741 if test 32 = "$HPUX_IA64_MODE"; then
12742 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12743 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12744 else
12745 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12746 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12747 fi
12748 ;;
12749 hppa*64*)
12750 shrext_cmds='.sl'
12751 hardcode_into_libs=yes
12752 dynamic_linker="$host_os dld.sl"
12753 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12754 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12755 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12756 soname_spec='$libname$release$shared_ext$major'
12757 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12758 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12759 ;;
12760 *)
12761 shrext_cmds='.sl'
12762 dynamic_linker="$host_os dld.sl"
12763 shlibpath_var=SHLIB_PATH
12764 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12765 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12766 soname_spec='$libname$release$shared_ext$major'
12767 ;;
12768 esac
12769 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12770 postinstall_cmds='chmod 555 $lib'
12771 # or fails outright, so override atomically:
12772 install_override_mode=555
12773 ;;
12774
12775 interix[3-9]*)
12776 version_type=linux # correct to gnu/linux during the next big refactor
12777 need_lib_prefix=no
12778 need_version=no
12779 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12780 soname_spec='$libname$release$shared_ext$major'
12781 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12782 shlibpath_var=LD_LIBRARY_PATH
12783 shlibpath_overrides_runpath=no
12784 hardcode_into_libs=yes
12785 ;;
12786
12787 irix5* | irix6* | nonstopux*)
12788 case $host_os in
12789 nonstopux*) version_type=nonstopux ;;
12790 *)
12791 if test yes = "$lt_cv_prog_gnu_ld"; then
12792 version_type=linux # correct to gnu/linux during the next big refactor
12793 else
12794 version_type=irix
12795 fi ;;
12796 esac
12797 need_lib_prefix=no
12798 need_version=no
12799 soname_spec='$libname$release$shared_ext$major'
12800 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12801 case $host_os in
12802 irix5* | nonstopux*)
12803 libsuff= shlibsuff=
12804 ;;
12805 *)
12806 case $LD in # libtool.m4 will add one of these switches to LD
12807 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12808 libsuff= shlibsuff= libmagic=32-bit;;
12809 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12810 libsuff=32 shlibsuff=N32 libmagic=N32;;
12811 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12812 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12813 *) libsuff= shlibsuff= libmagic=never-match;;
12814 esac
12815 ;;
12816 esac
12817 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12818 shlibpath_overrides_runpath=no
12819 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12820 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12821 hardcode_into_libs=yes
12822 ;;
12823
12824 # No shared lib support for Linux oldld, aout, or coff.
12825 linux*oldld* | linux*aout* | linux*coff*)
12826 dynamic_linker=no
12827 ;;
12828
12829 linux*android*)
12830 version_type=none # Android doesn't support versioned libraries.
12831 need_lib_prefix=no
12832 need_version=no
12833 library_names_spec='$libname$release$shared_ext'
12834 soname_spec='$libname$release$shared_ext'
12835 finish_cmds=
12836 shlibpath_var=LD_LIBRARY_PATH
12837 shlibpath_overrides_runpath=yes
12838
12839 # This implies no fast_install, which is unacceptable.
12840 # Some rework will be needed to allow for fast_install
12841 # before this can be enabled.
12842 hardcode_into_libs=yes
12843
12844 dynamic_linker='Android linker'
12845 # Don't embed -rpath directories since the linker doesn't support them.
12846 hardcode_libdir_flag_spec='-L$libdir'
12847 ;;
12848
12849 # This must be glibc/ELF.
12850 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12851 version_type=linux # correct to gnu/linux during the next big refactor
12852 need_lib_prefix=no
12853 need_version=no
12854 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12855 soname_spec='$libname$release$shared_ext$major'
12856 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12857 shlibpath_var=LD_LIBRARY_PATH
12858 shlibpath_overrides_runpath=no
12859
12860 # Some binutils ld are patched to set DT_RUNPATH
12861 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12862 $as_echo_n "(cached) " >&6
12863 else
12864 lt_cv_shlibpath_overrides_runpath=no
12865 save_LDFLAGS=$LDFLAGS
12866 save_libdir=$libdir
12867 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12868 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12870 /* end confdefs.h. */
12871
12872 int
12873 main ()
12874 {
12875
12876 ;
12877 return 0;
12878 }
12879 _ACEOF
12880 if ac_fn_c_try_link "$LINENO"; then :
12881 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12882 lt_cv_shlibpath_overrides_runpath=yes
12883 fi
12884 fi
12885 rm -f core conftest.err conftest.$ac_objext \
12886 conftest$ac_exeext conftest.$ac_ext
12887 LDFLAGS=$save_LDFLAGS
12888 libdir=$save_libdir
12889
12890 fi
12891
12892 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12893
12894 # This implies no fast_install, which is unacceptable.
12895 # Some rework will be needed to allow for fast_install
12896 # before this can be enabled.
12897 hardcode_into_libs=yes
12898
12899 # Add ABI-specific directories to the system library path.
12900 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12901
12902 # Ideally, we could use ldconfig to report *all* directores which are
12903 # searched for libraries, however this is still not possible. Aside from not
12904 # being certain /sbin/ldconfig is available, command
12905 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12906 # even though it is searched at run-time. Try to do the best guess by
12907 # appending ld.so.conf contents (and includes) to the search path.
12908 if test -f /etc/ld.so.conf; then
12909 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' ' '`
12910 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12911 fi
12912
12913 # We used to test for /lib/ld.so.1 and disable shared libraries on
12914 # powerpc, because MkLinux only supported shared libraries with the
12915 # GNU dynamic linker. Since this was broken with cross compilers,
12916 # most powerpc-linux boxes support dynamic linking these days and
12917 # people can always --disable-shared, the test was removed, and we
12918 # assume the GNU/Linux dynamic linker is in use.
12919 dynamic_linker='GNU/Linux ld.so'
12920 ;;
12921
12922 netbsd*)
12923 version_type=sunos
12924 need_lib_prefix=no
12925 need_version=no
12926 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12927 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12928 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12929 dynamic_linker='NetBSD (a.out) ld.so'
12930 else
12931 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12932 soname_spec='$libname$release$shared_ext$major'
12933 dynamic_linker='NetBSD ld.elf_so'
12934 fi
12935 shlibpath_var=LD_LIBRARY_PATH
12936 shlibpath_overrides_runpath=yes
12937 hardcode_into_libs=yes
12938 ;;
12939
12940 newsos6)
12941 version_type=linux # correct to gnu/linux during the next big refactor
12942 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12943 shlibpath_var=LD_LIBRARY_PATH
12944 shlibpath_overrides_runpath=yes
12945 ;;
12946
12947 *nto* | *qnx*)
12948 version_type=qnx
12949 need_lib_prefix=no
12950 need_version=no
12951 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12952 soname_spec='$libname$release$shared_ext$major'
12953 shlibpath_var=LD_LIBRARY_PATH
12954 shlibpath_overrides_runpath=no
12955 hardcode_into_libs=yes
12956 dynamic_linker='ldqnx.so'
12957 ;;
12958
12959 openbsd* | bitrig*)
12960 version_type=sunos
12961 sys_lib_dlsearch_path_spec=/usr/lib
12962 need_lib_prefix=no
12963 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12964 need_version=no
12965 else
12966 need_version=yes
12967 fi
12968 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12969 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12970 shlibpath_var=LD_LIBRARY_PATH
12971 shlibpath_overrides_runpath=yes
12972 ;;
12973
12974 os2*)
12975 libname_spec='$name'
12976 version_type=windows
12977 shrext_cmds=.dll
12978 need_version=no
12979 need_lib_prefix=no
12980 # OS/2 can only load a DLL with a base name of 8 characters or less.
12981 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12982 v=$($ECHO $release$versuffix | tr -d .-);
12983 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12984 $ECHO $n$v`$shared_ext'
12985 library_names_spec='${libname}_dll.$libext'
12986 dynamic_linker='OS/2 ld.exe'
12987 shlibpath_var=BEGINLIBPATH
12988 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12989 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12990 postinstall_cmds='base_file=`basename \$file`~
12991 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12992 dldir=$destdir/`dirname \$dlpath`~
12993 test -d \$dldir || mkdir -p \$dldir~
12994 $install_prog $dir/$dlname \$dldir/$dlname~
12995 chmod a+x \$dldir/$dlname~
12996 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12997 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12998 fi'
12999 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13000 dlpath=$dir/\$dldll~
13001 $RM \$dlpath'
13002 ;;
13003
13004 osf3* | osf4* | osf5*)
13005 version_type=osf
13006 need_lib_prefix=no
13007 need_version=no
13008 soname_spec='$libname$release$shared_ext$major'
13009 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13010 shlibpath_var=LD_LIBRARY_PATH
13011 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13012 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13013 ;;
13014
13015 rdos*)
13016 dynamic_linker=no
13017 ;;
13018
13019 solaris*)
13020 version_type=linux # correct to gnu/linux during the next big refactor
13021 need_lib_prefix=no
13022 need_version=no
13023 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13024 soname_spec='$libname$release$shared_ext$major'
13025 shlibpath_var=LD_LIBRARY_PATH
13026 shlibpath_overrides_runpath=yes
13027 hardcode_into_libs=yes
13028 # ldd complains unless libraries are executable
13029 postinstall_cmds='chmod +x $lib'
13030 ;;
13031
13032 sunos4*)
13033 version_type=sunos
13034 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13035 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13036 shlibpath_var=LD_LIBRARY_PATH
13037 shlibpath_overrides_runpath=yes
13038 if test yes = "$with_gnu_ld"; then
13039 need_lib_prefix=no
13040 fi
13041 need_version=yes
13042 ;;
13043
13044 sysv4 | sysv4.3*)
13045 version_type=linux # correct to gnu/linux during the next big refactor
13046 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13047 soname_spec='$libname$release$shared_ext$major'
13048 shlibpath_var=LD_LIBRARY_PATH
13049 case $host_vendor in
13050 sni)
13051 shlibpath_overrides_runpath=no
13052 need_lib_prefix=no
13053 runpath_var=LD_RUN_PATH
13054 ;;
13055 siemens)
13056 need_lib_prefix=no
13057 ;;
13058 motorola)
13059 need_lib_prefix=no
13060 need_version=no
13061 shlibpath_overrides_runpath=no
13062 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13063 ;;
13064 esac
13065 ;;
13066
13067 sysv4*MP*)
13068 if test -d /usr/nec; then
13069 version_type=linux # correct to gnu/linux during the next big refactor
13070 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13071 soname_spec='$libname$shared_ext.$major'
13072 shlibpath_var=LD_LIBRARY_PATH
13073 fi
13074 ;;
13075
13076 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13077 version_type=sco
13078 need_lib_prefix=no
13079 need_version=no
13080 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13081 soname_spec='$libname$release$shared_ext$major'
13082 shlibpath_var=LD_LIBRARY_PATH
13083 shlibpath_overrides_runpath=yes
13084 hardcode_into_libs=yes
13085 if test yes = "$with_gnu_ld"; then
13086 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13087 else
13088 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13089 case $host_os in
13090 sco3.2v5*)
13091 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13092 ;;
13093 esac
13094 fi
13095 sys_lib_dlsearch_path_spec='/usr/lib'
13096 ;;
13097
13098 tpf*)
13099 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13100 version_type=linux # correct to gnu/linux during the next big refactor
13101 need_lib_prefix=no
13102 need_version=no
13103 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13104 shlibpath_var=LD_LIBRARY_PATH
13105 shlibpath_overrides_runpath=no
13106 hardcode_into_libs=yes
13107 ;;
13108
13109 uts4*)
13110 version_type=linux # correct to gnu/linux during the next big refactor
13111 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13112 soname_spec='$libname$release$shared_ext$major'
13113 shlibpath_var=LD_LIBRARY_PATH
13114 ;;
13115
13116 *)
13117 dynamic_linker=no
13118 ;;
13119 esac
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13121 $as_echo "$dynamic_linker" >&6; }
13122 test no = "$dynamic_linker" && can_build_shared=no
13123
13124 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13125 if test yes = "$GCC"; then
13126 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13127 fi
13128
13129 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13130 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13131 fi
13132
13133 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13134 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13135 fi
13136
13137 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13138 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13139
13140 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13141 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13142
13143 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13144 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13243 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13244 hardcode_action=
13245 if test -n "$hardcode_libdir_flag_spec" ||
13246 test -n "$runpath_var" ||
13247 test yes = "$hardcode_automatic"; then
13248
13249 # We can hardcode non-existent directories.
13250 if test no != "$hardcode_direct" &&
13251 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13252 # have to relink, otherwise we might link with an installed library
13253 # when we should be linking with a yet-to-be-installed one
13254 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13255 test no != "$hardcode_minus_L"; then
13256 # Linking always hardcodes the temporary library directory.
13257 hardcode_action=relink
13258 else
13259 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13260 hardcode_action=immediate
13261 fi
13262 else
13263 # We cannot hardcode anything, or else we can only hardcode existing
13264 # directories.
13265 hardcode_action=unsupported
13266 fi
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13268 $as_echo "$hardcode_action" >&6; }
13269
13270 if test relink = "$hardcode_action" ||
13271 test yes = "$inherit_rpath"; then
13272 # Fast installation is not supported
13273 enable_fast_install=no
13274 elif test yes = "$shlibpath_overrides_runpath" ||
13275 test no = "$enable_shared"; then
13276 # Fast installation is not necessary
13277 enable_fast_install=needless
13278 fi
13279
13280
13281
13282
13283
13284
13285 if test yes != "$enable_dlopen"; then
13286 enable_dlopen=unknown
13287 enable_dlopen_self=unknown
13288 enable_dlopen_self_static=unknown
13289 else
13290 lt_cv_dlopen=no
13291 lt_cv_dlopen_libs=
13292
13293 case $host_os in
13294 beos*)
13295 lt_cv_dlopen=load_add_on
13296 lt_cv_dlopen_libs=
13297 lt_cv_dlopen_self=yes
13298 ;;
13299
13300 mingw* | pw32* | cegcc*)
13301 lt_cv_dlopen=LoadLibrary
13302 lt_cv_dlopen_libs=
13303 ;;
13304
13305 cygwin*)
13306 lt_cv_dlopen=dlopen
13307 lt_cv_dlopen_libs=
13308 ;;
13309
13310 darwin*)
13311 # if libdl is installed we need to link against it
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13313 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13314 if ${ac_cv_lib_dl_dlopen+:} false; then :
13315 $as_echo_n "(cached) " >&6
13316 else
13317 ac_check_lib_save_LIBS=$LIBS
13318 LIBS="-ldl $LIBS"
13319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13320 /* end confdefs.h. */
13321
13322 /* Override any GCC internal prototype to avoid an error.
13323 Use char because int might match the return type of a GCC
13324 builtin and then its argument prototype would still apply. */
13325 #ifdef __cplusplus
13326 extern "C"
13327 #endif
13328 char dlopen ();
13329 int
13330 main ()
13331 {
13332 return dlopen ();
13333 ;
13334 return 0;
13335 }
13336 _ACEOF
13337 if ac_fn_c_try_link "$LINENO"; then :
13338 ac_cv_lib_dl_dlopen=yes
13339 else
13340 ac_cv_lib_dl_dlopen=no
13341 fi
13342 rm -f core conftest.err conftest.$ac_objext \
13343 conftest$ac_exeext conftest.$ac_ext
13344 LIBS=$ac_check_lib_save_LIBS
13345 fi
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13347 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13348 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13349 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13350 else
13351
13352 lt_cv_dlopen=dyld
13353 lt_cv_dlopen_libs=
13354 lt_cv_dlopen_self=yes
13355
13356 fi
13357
13358 ;;
13359
13360 tpf*)
13361 # Don't try to run any link tests for TPF. We know it's impossible
13362 # because TPF is a cross-compiler, and we know how we open DSOs.
13363 lt_cv_dlopen=dlopen
13364 lt_cv_dlopen_libs=
13365 lt_cv_dlopen_self=no
13366 ;;
13367
13368 *)
13369 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13370 if test "x$ac_cv_func_shl_load" = xyes; then :
13371 lt_cv_dlopen=shl_load
13372 else
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13374 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13375 if ${ac_cv_lib_dld_shl_load+:} false; then :
13376 $as_echo_n "(cached) " >&6
13377 else
13378 ac_check_lib_save_LIBS=$LIBS
13379 LIBS="-ldld $LIBS"
13380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13381 /* end confdefs.h. */
13382
13383 /* Override any GCC internal prototype to avoid an error.
13384 Use char because int might match the return type of a GCC
13385 builtin and then its argument prototype would still apply. */
13386 #ifdef __cplusplus
13387 extern "C"
13388 #endif
13389 char shl_load ();
13390 int
13391 main ()
13392 {
13393 return shl_load ();
13394 ;
13395 return 0;
13396 }
13397 _ACEOF
13398 if ac_fn_c_try_link "$LINENO"; then :
13399 ac_cv_lib_dld_shl_load=yes
13400 else
13401 ac_cv_lib_dld_shl_load=no
13402 fi
13403 rm -f core conftest.err conftest.$ac_objext \
13404 conftest$ac_exeext conftest.$ac_ext
13405 LIBS=$ac_check_lib_save_LIBS
13406 fi
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13408 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13409 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13410 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13411 else
13412 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13413 if test "x$ac_cv_func_dlopen" = xyes; then :
13414 lt_cv_dlopen=dlopen
13415 else
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13417 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13418 if ${ac_cv_lib_dl_dlopen+:} false; then :
13419 $as_echo_n "(cached) " >&6
13420 else
13421 ac_check_lib_save_LIBS=$LIBS
13422 LIBS="-ldl $LIBS"
13423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13424 /* end confdefs.h. */
13425
13426 /* Override any GCC internal prototype to avoid an error.
13427 Use char because int might match the return type of a GCC
13428 builtin and then its argument prototype would still apply. */
13429 #ifdef __cplusplus
13430 extern "C"
13431 #endif
13432 char dlopen ();
13433 int
13434 main ()
13435 {
13436 return dlopen ();
13437 ;
13438 return 0;
13439 }
13440 _ACEOF
13441 if ac_fn_c_try_link "$LINENO"; then :
13442 ac_cv_lib_dl_dlopen=yes
13443 else
13444 ac_cv_lib_dl_dlopen=no
13445 fi
13446 rm -f core conftest.err conftest.$ac_objext \
13447 conftest$ac_exeext conftest.$ac_ext
13448 LIBS=$ac_check_lib_save_LIBS
13449 fi
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13451 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13452 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13453 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13454 else
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13456 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13457 if ${ac_cv_lib_svld_dlopen+:} false; then :
13458 $as_echo_n "(cached) " >&6
13459 else
13460 ac_check_lib_save_LIBS=$LIBS
13461 LIBS="-lsvld $LIBS"
13462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13463 /* end confdefs.h. */
13464
13465 /* Override any GCC internal prototype to avoid an error.
13466 Use char because int might match the return type of a GCC
13467 builtin and then its argument prototype would still apply. */
13468 #ifdef __cplusplus
13469 extern "C"
13470 #endif
13471 char dlopen ();
13472 int
13473 main ()
13474 {
13475 return dlopen ();
13476 ;
13477 return 0;
13478 }
13479 _ACEOF
13480 if ac_fn_c_try_link "$LINENO"; then :
13481 ac_cv_lib_svld_dlopen=yes
13482 else
13483 ac_cv_lib_svld_dlopen=no
13484 fi
13485 rm -f core conftest.err conftest.$ac_objext \
13486 conftest$ac_exeext conftest.$ac_ext
13487 LIBS=$ac_check_lib_save_LIBS
13488 fi
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13490 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13491 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13492 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13493 else
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13495 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13496 if ${ac_cv_lib_dld_dld_link+:} false; then :
13497 $as_echo_n "(cached) " >&6
13498 else
13499 ac_check_lib_save_LIBS=$LIBS
13500 LIBS="-ldld $LIBS"
13501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13502 /* end confdefs.h. */
13503
13504 /* Override any GCC internal prototype to avoid an error.
13505 Use char because int might match the return type of a GCC
13506 builtin and then its argument prototype would still apply. */
13507 #ifdef __cplusplus
13508 extern "C"
13509 #endif
13510 char dld_link ();
13511 int
13512 main ()
13513 {
13514 return dld_link ();
13515 ;
13516 return 0;
13517 }
13518 _ACEOF
13519 if ac_fn_c_try_link "$LINENO"; then :
13520 ac_cv_lib_dld_dld_link=yes
13521 else
13522 ac_cv_lib_dld_dld_link=no
13523 fi
13524 rm -f core conftest.err conftest.$ac_objext \
13525 conftest$ac_exeext conftest.$ac_ext
13526 LIBS=$ac_check_lib_save_LIBS
13527 fi
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13529 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13530 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13531 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13532 fi
13533
13534
13535 fi
13536
13537
13538 fi
13539
13540
13541 fi
13542
13543
13544 fi
13545
13546
13547 fi
13548
13549 ;;
13550 esac
13551
13552 if test no = "$lt_cv_dlopen"; then
13553 enable_dlopen=no
13554 else
13555 enable_dlopen=yes
13556 fi
13557
13558 case $lt_cv_dlopen in
13559 dlopen)
13560 save_CPPFLAGS=$CPPFLAGS
13561 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13562
13563 save_LDFLAGS=$LDFLAGS
13564 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13565
13566 save_LIBS=$LIBS
13567 LIBS="$lt_cv_dlopen_libs $LIBS"
13568
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13570 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13571 if ${lt_cv_dlopen_self+:} false; then :
13572 $as_echo_n "(cached) " >&6
13573 else
13574 if test yes = "$cross_compiling"; then :
13575 lt_cv_dlopen_self=cross
13576 else
13577 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13578 lt_status=$lt_dlunknown
13579 cat > conftest.$ac_ext <<_LT_EOF
13580 #line $LINENO "configure"
13581 #include "confdefs.h"
13582
13583 #if HAVE_DLFCN_H
13584 #include <dlfcn.h>
13585 #endif
13586
13587 #include <stdio.h>
13588
13589 #ifdef RTLD_GLOBAL
13590 # define LT_DLGLOBAL RTLD_GLOBAL
13591 #else
13592 # ifdef DL_GLOBAL
13593 # define LT_DLGLOBAL DL_GLOBAL
13594 # else
13595 # define LT_DLGLOBAL 0
13596 # endif
13597 #endif
13598
13599 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13600 find out it does not work in some platform. */
13601 #ifndef LT_DLLAZY_OR_NOW
13602 # ifdef RTLD_LAZY
13603 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13604 # else
13605 # ifdef DL_LAZY
13606 # define LT_DLLAZY_OR_NOW DL_LAZY
13607 # else
13608 # ifdef RTLD_NOW
13609 # define LT_DLLAZY_OR_NOW RTLD_NOW
13610 # else
13611 # ifdef DL_NOW
13612 # define LT_DLLAZY_OR_NOW DL_NOW
13613 # else
13614 # define LT_DLLAZY_OR_NOW 0
13615 # endif
13616 # endif
13617 # endif
13618 # endif
13619 #endif
13620
13621 /* When -fvisibility=hidden is used, assume the code has been annotated
13622 correspondingly for the symbols needed. */
13623 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13624 int fnord () __attribute__((visibility("default")));
13625 #endif
13626
13627 int fnord () { return 42; }
13628 int main ()
13629 {
13630 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13631 int status = $lt_dlunknown;
13632
13633 if (self)
13634 {
13635 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13636 else
13637 {
13638 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13639 else puts (dlerror ());
13640 }
13641 /* dlclose (self); */
13642 }
13643 else
13644 puts (dlerror ());
13645
13646 return status;
13647 }
13648 _LT_EOF
13649 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13650 (eval $ac_link) 2>&5
13651 ac_status=$?
13652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13653 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13654 (./conftest; exit; ) >&5 2>/dev/null
13655 lt_status=$?
13656 case x$lt_status in
13657 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13658 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13659 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13660 esac
13661 else :
13662 # compilation failed
13663 lt_cv_dlopen_self=no
13664 fi
13665 fi
13666 rm -fr conftest*
13667
13668
13669 fi
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13671 $as_echo "$lt_cv_dlopen_self" >&6; }
13672
13673 if test yes = "$lt_cv_dlopen_self"; then
13674 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13676 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13677 if ${lt_cv_dlopen_self_static+:} false; then :
13678 $as_echo_n "(cached) " >&6
13679 else
13680 if test yes = "$cross_compiling"; then :
13681 lt_cv_dlopen_self_static=cross
13682 else
13683 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13684 lt_status=$lt_dlunknown
13685 cat > conftest.$ac_ext <<_LT_EOF
13686 #line $LINENO "configure"
13687 #include "confdefs.h"
13688
13689 #if HAVE_DLFCN_H
13690 #include <dlfcn.h>
13691 #endif
13692
13693 #include <stdio.h>
13694
13695 #ifdef RTLD_GLOBAL
13696 # define LT_DLGLOBAL RTLD_GLOBAL
13697 #else
13698 # ifdef DL_GLOBAL
13699 # define LT_DLGLOBAL DL_GLOBAL
13700 # else
13701 # define LT_DLGLOBAL 0
13702 # endif
13703 #endif
13704
13705 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13706 find out it does not work in some platform. */
13707 #ifndef LT_DLLAZY_OR_NOW
13708 # ifdef RTLD_LAZY
13709 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13710 # else
13711 # ifdef DL_LAZY
13712 # define LT_DLLAZY_OR_NOW DL_LAZY
13713 # else
13714 # ifdef RTLD_NOW
13715 # define LT_DLLAZY_OR_NOW RTLD_NOW
13716 # else
13717 # ifdef DL_NOW
13718 # define LT_DLLAZY_OR_NOW DL_NOW
13719 # else
13720 # define LT_DLLAZY_OR_NOW 0
13721 # endif
13722 # endif
13723 # endif
13724 # endif
13725 #endif
13726
13727 /* When -fvisibility=hidden is used, assume the code has been annotated
13728 correspondingly for the symbols needed. */
13729 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13730 int fnord () __attribute__((visibility("default")));
13731 #endif
13732
13733 int fnord () { return 42; }
13734 int main ()
13735 {
13736 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13737 int status = $lt_dlunknown;
13738
13739 if (self)
13740 {
13741 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13742 else
13743 {
13744 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13745 else puts (dlerror ());
13746 }
13747 /* dlclose (self); */
13748 }
13749 else
13750 puts (dlerror ());
13751
13752 return status;
13753 }
13754 _LT_EOF
13755 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13756 (eval $ac_link) 2>&5
13757 ac_status=$?
13758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13759 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13760 (./conftest; exit; ) >&5 2>/dev/null
13761 lt_status=$?
13762 case x$lt_status in
13763 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13764 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13765 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13766 esac
13767 else :
13768 # compilation failed
13769 lt_cv_dlopen_self_static=no
13770 fi
13771 fi
13772 rm -fr conftest*
13773
13774
13775 fi
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13777 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13778 fi
13779
13780 CPPFLAGS=$save_CPPFLAGS
13781 LDFLAGS=$save_LDFLAGS
13782 LIBS=$save_LIBS
13783 ;;
13784 esac
13785
13786 case $lt_cv_dlopen_self in
13787 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13788 *) enable_dlopen_self=unknown ;;
13789 esac
13790
13791 case $lt_cv_dlopen_self_static in
13792 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13793 *) enable_dlopen_self_static=unknown ;;
13794 esac
13795 fi
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813 striplib=
13814 old_striplib=
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13816 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13817 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13818 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13819 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13821 $as_echo "yes" >&6; }
13822 else
13823 # FIXME - insert some real tests, host_os isn't really good enough
13824 case $host_os in
13825 darwin*)
13826 if test -n "$STRIP"; then
13827 striplib="$STRIP -x"
13828 old_striplib="$STRIP -S"
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13830 $as_echo "yes" >&6; }
13831 else
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13833 $as_echo "no" >&6; }
13834 fi
13835 ;;
13836 *)
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13838 $as_echo "no" >&6; }
13839 ;;
13840 esac
13841 fi
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854 # Report what library types will actually be built
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13856 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13858 $as_echo "$can_build_shared" >&6; }
13859
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13861 $as_echo_n "checking whether to build shared libraries... " >&6; }
13862 test no = "$can_build_shared" && enable_shared=no
13863
13864 # On AIX, shared libraries and static libraries use the same namespace, and
13865 # are all built from PIC.
13866 case $host_os in
13867 aix3*)
13868 test yes = "$enable_shared" && enable_static=no
13869 if test -n "$RANLIB"; then
13870 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13871 postinstall_cmds='$RANLIB $lib'
13872 fi
13873 ;;
13874
13875 aix[4-9]*)
13876 if test ia64 != "$host_cpu"; then
13877 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13878 yes,aix,yes) ;; # shared object as lib.so file only
13879 yes,svr4,*) ;; # shared object as lib.so archive member only
13880 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13881 esac
13882 fi
13883 ;;
13884 esac
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13886 $as_echo "$enable_shared" >&6; }
13887
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13889 $as_echo_n "checking whether to build static libraries... " >&6; }
13890 # Make sure either enable_shared or enable_static is yes.
13891 test yes = "$enable_shared" || enable_static=yes
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13893 $as_echo "$enable_static" >&6; }
13894
13895
13896
13897
13898 fi
13899 ac_ext=c
13900 ac_cpp='$CPP $CPPFLAGS'
13901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13904
13905 CC=$lt_save_CC
13906
13907 if test -n "$CXX" && ( test no != "$CXX" &&
13908 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13909 (test g++ != "$CXX"))); then
13910 ac_ext=cpp
13911 ac_cpp='$CXXCPP $CPPFLAGS'
13912 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13913 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13914 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13916 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13917 if test -z "$CXXCPP"; then
13918 if ${ac_cv_prog_CXXCPP+:} false; then :
13919 $as_echo_n "(cached) " >&6
13920 else
13921 # Double quotes because CXXCPP needs to be expanded
13922 for CXXCPP in "$CXX -E" "/lib/cpp"
13923 do
13924 ac_preproc_ok=false
13925 for ac_cxx_preproc_warn_flag in '' yes
13926 do
13927 # Use a header file that comes with gcc, so configuring glibc
13928 # with a fresh cross-compiler works.
13929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13930 # <limits.h> exists even on freestanding compilers.
13931 # On the NeXT, cc -E runs the code through the compiler's parser,
13932 # not just through cpp. "Syntax error" is here to catch this case.
13933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13934 /* end confdefs.h. */
13935 #ifdef __STDC__
13936 # include <limits.h>
13937 #else
13938 # include <assert.h>
13939 #endif
13940 Syntax error
13941 _ACEOF
13942 if ac_fn_cxx_try_cpp "$LINENO"; then :
13943
13944 else
13945 # Broken: fails on valid input.
13946 continue
13947 fi
13948 rm -f conftest.err conftest.i conftest.$ac_ext
13949
13950 # OK, works on sane cases. Now check whether nonexistent headers
13951 # can be detected and how.
13952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13953 /* end confdefs.h. */
13954 #include <ac_nonexistent.h>
13955 _ACEOF
13956 if ac_fn_cxx_try_cpp "$LINENO"; then :
13957 # Broken: success on invalid input.
13958 continue
13959 else
13960 # Passes both tests.
13961 ac_preproc_ok=:
13962 break
13963 fi
13964 rm -f conftest.err conftest.i conftest.$ac_ext
13965
13966 done
13967 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13968 rm -f conftest.i conftest.err conftest.$ac_ext
13969 if $ac_preproc_ok; then :
13970 break
13971 fi
13972
13973 done
13974 ac_cv_prog_CXXCPP=$CXXCPP
13975
13976 fi
13977 CXXCPP=$ac_cv_prog_CXXCPP
13978 else
13979 ac_cv_prog_CXXCPP=$CXXCPP
13980 fi
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13982 $as_echo "$CXXCPP" >&6; }
13983 ac_preproc_ok=false
13984 for ac_cxx_preproc_warn_flag in '' yes
13985 do
13986 # Use a header file that comes with gcc, so configuring glibc
13987 # with a fresh cross-compiler works.
13988 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13989 # <limits.h> exists even on freestanding compilers.
13990 # On the NeXT, cc -E runs the code through the compiler's parser,
13991 # not just through cpp. "Syntax error" is here to catch this case.
13992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13993 /* end confdefs.h. */
13994 #ifdef __STDC__
13995 # include <limits.h>
13996 #else
13997 # include <assert.h>
13998 #endif
13999 Syntax error
14000 _ACEOF
14001 if ac_fn_cxx_try_cpp "$LINENO"; then :
14002
14003 else
14004 # Broken: fails on valid input.
14005 continue
14006 fi
14007 rm -f conftest.err conftest.i conftest.$ac_ext
14008
14009 # OK, works on sane cases. Now check whether nonexistent headers
14010 # can be detected and how.
14011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14012 /* end confdefs.h. */
14013 #include <ac_nonexistent.h>
14014 _ACEOF
14015 if ac_fn_cxx_try_cpp "$LINENO"; then :
14016 # Broken: success on invalid input.
14017 continue
14018 else
14019 # Passes both tests.
14020 ac_preproc_ok=:
14021 break
14022 fi
14023 rm -f conftest.err conftest.i conftest.$ac_ext
14024
14025 done
14026 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14027 rm -f conftest.i conftest.err conftest.$ac_ext
14028 if $ac_preproc_ok; then :
14029
14030 else
14031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14033 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14034 See \`config.log' for more details" "$LINENO" 5; }
14035 fi
14036
14037 ac_ext=c
14038 ac_cpp='$CPP $CPPFLAGS'
14039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14042
14043 else
14044 _lt_caught_CXX_error=yes
14045 fi
14046
14047 ac_ext=cpp
14048 ac_cpp='$CXXCPP $CPPFLAGS'
14049 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14050 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14051 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14052
14053 archive_cmds_need_lc_CXX=no
14054 allow_undefined_flag_CXX=
14055 always_export_symbols_CXX=no
14056 archive_expsym_cmds_CXX=
14057 compiler_needs_object_CXX=no
14058 export_dynamic_flag_spec_CXX=
14059 hardcode_direct_CXX=no
14060 hardcode_direct_absolute_CXX=no
14061 hardcode_libdir_flag_spec_CXX=
14062 hardcode_libdir_separator_CXX=
14063 hardcode_minus_L_CXX=no
14064 hardcode_shlibpath_var_CXX=unsupported
14065 hardcode_automatic_CXX=no
14066 inherit_rpath_CXX=no
14067 module_cmds_CXX=
14068 module_expsym_cmds_CXX=
14069 link_all_deplibs_CXX=unknown
14070 old_archive_cmds_CXX=$old_archive_cmds
14071 reload_flag_CXX=$reload_flag
14072 reload_cmds_CXX=$reload_cmds
14073 no_undefined_flag_CXX=
14074 whole_archive_flag_spec_CXX=
14075 enable_shared_with_static_runtimes_CXX=no
14076
14077 # Source file extension for C++ test sources.
14078 ac_ext=cpp
14079
14080 # Object file extension for compiled C++ test sources.
14081 objext=o
14082 objext_CXX=$objext
14083
14084 # No sense in running all these tests if we already determined that
14085 # the CXX compiler isn't working. Some variables (like enable_shared)
14086 # are currently assumed to apply to all compilers on this platform,
14087 # and will be corrupted by setting them based on a non-working compiler.
14088 if test yes != "$_lt_caught_CXX_error"; then
14089 # Code to be used in simple compile tests
14090 lt_simple_compile_test_code="int some_variable = 0;"
14091
14092 # Code to be used in simple link tests
14093 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14094
14095 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14096
14097
14098
14099
14100
14101
14102 # If no C compiler was specified, use CC.
14103 LTCC=${LTCC-"$CC"}
14104
14105 # If no C compiler flags were specified, use CFLAGS.
14106 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14107
14108 # Allow CC to be a program name with arguments.
14109 compiler=$CC
14110
14111
14112 # save warnings/boilerplate of simple test code
14113 ac_outfile=conftest.$ac_objext
14114 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14115 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14116 _lt_compiler_boilerplate=`cat conftest.err`
14117 $RM conftest*
14118
14119 ac_outfile=conftest.$ac_objext
14120 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14121 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14122 _lt_linker_boilerplate=`cat conftest.err`
14123 $RM -r conftest*
14124
14125
14126 # Allow CC to be a program name with arguments.
14127 lt_save_CC=$CC
14128 lt_save_CFLAGS=$CFLAGS
14129 lt_save_LD=$LD
14130 lt_save_GCC=$GCC
14131 GCC=$GXX
14132 lt_save_with_gnu_ld=$with_gnu_ld
14133 lt_save_path_LD=$lt_cv_path_LD
14134 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14135 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14136 else
14137 $as_unset lt_cv_prog_gnu_ld
14138 fi
14139 if test -n "${lt_cv_path_LDCXX+set}"; then
14140 lt_cv_path_LD=$lt_cv_path_LDCXX
14141 else
14142 $as_unset lt_cv_path_LD
14143 fi
14144 test -z "${LDCXX+set}" || LD=$LDCXX
14145 CC=${CXX-"c++"}
14146 CFLAGS=$CXXFLAGS
14147 compiler=$CC
14148 compiler_CXX=$CC
14149 func_cc_basename $compiler
14150 cc_basename=$func_cc_basename_result
14151
14152
14153 if test -n "$compiler"; then
14154 # We don't want -fno-exception when compiling C++ code, so set the
14155 # no_builtin_flag separately
14156 if test yes = "$GXX"; then
14157 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14158 else
14159 lt_prog_compiler_no_builtin_flag_CXX=
14160 fi
14161
14162 if test yes = "$GXX"; then
14163 # Set up default GNU C++ configuration
14164
14165
14166
14167 # Check whether --with-gnu-ld was given.
14168 if test "${with_gnu_ld+set}" = set; then :
14169 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14170 else
14171 with_gnu_ld=no
14172 fi
14173
14174 ac_prog=ld
14175 if test yes = "$GCC"; then
14176 # Check if gcc -print-prog-name=ld gives a path.
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14178 $as_echo_n "checking for ld used by $CC... " >&6; }
14179 case $host in
14180 *-*-mingw*)
14181 # gcc leaves a trailing carriage return, which upsets mingw
14182 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14183 *)
14184 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14185 esac
14186 case $ac_prog in
14187 # Accept absolute paths.
14188 [\\/]* | ?:[\\/]*)
14189 re_direlt='/[^/][^/]*/\.\./'
14190 # Canonicalize the pathname of ld
14191 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14192 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14193 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14194 done
14195 test -z "$LD" && LD=$ac_prog
14196 ;;
14197 "")
14198 # If it fails, then pretend we aren't using GCC.
14199 ac_prog=ld
14200 ;;
14201 *)
14202 # If it is relative, then search for the first ld in PATH.
14203 with_gnu_ld=unknown
14204 ;;
14205 esac
14206 elif test yes = "$with_gnu_ld"; then
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14208 $as_echo_n "checking for GNU ld... " >&6; }
14209 else
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14211 $as_echo_n "checking for non-GNU ld... " >&6; }
14212 fi
14213 if ${lt_cv_path_LD+:} false; then :
14214 $as_echo_n "(cached) " >&6
14215 else
14216 if test -z "$LD"; then
14217 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14218 for ac_dir in $PATH; do
14219 IFS=$lt_save_ifs
14220 test -z "$ac_dir" && ac_dir=.
14221 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14222 lt_cv_path_LD=$ac_dir/$ac_prog
14223 # Check to see if the program is GNU ld. I'd rather use --version,
14224 # but apparently some variants of GNU ld only accept -v.
14225 # Break only if it was the GNU/non-GNU ld that we prefer.
14226 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14227 *GNU* | *'with BFD'*)
14228 test no != "$with_gnu_ld" && break
14229 ;;
14230 *)
14231 test yes != "$with_gnu_ld" && break
14232 ;;
14233 esac
14234 fi
14235 done
14236 IFS=$lt_save_ifs
14237 else
14238 lt_cv_path_LD=$LD # Let the user override the test with a path.
14239 fi
14240 fi
14241
14242 LD=$lt_cv_path_LD
14243 if test -n "$LD"; then
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14245 $as_echo "$LD" >&6; }
14246 else
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14248 $as_echo "no" >&6; }
14249 fi
14250 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14252 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14253 if ${lt_cv_prog_gnu_ld+:} false; then :
14254 $as_echo_n "(cached) " >&6
14255 else
14256 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14257 case `$LD -v 2>&1 </dev/null` in
14258 *GNU* | *'with BFD'*)
14259 lt_cv_prog_gnu_ld=yes
14260 ;;
14261 *)
14262 lt_cv_prog_gnu_ld=no
14263 ;;
14264 esac
14265 fi
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14267 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14268 with_gnu_ld=$lt_cv_prog_gnu_ld
14269
14270
14271
14272
14273
14274
14275
14276 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14277 # archiving commands below assume that GNU ld is being used.
14278 if test yes = "$with_gnu_ld"; then
14279 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14280 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14281
14282 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14283 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14284
14285 # If archive_cmds runs LD, not CC, wlarc should be empty
14286 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14287 # investigate it a little bit more. (MM)
14288 wlarc='$wl'
14289
14290 # ancient GNU ld didn't support --whole-archive et. al.
14291 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14292 $GREP 'no-whole-archive' > /dev/null; then
14293 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14294 else
14295 whole_archive_flag_spec_CXX=
14296 fi
14297 else
14298 with_gnu_ld=no
14299 wlarc=
14300
14301 # A generic and very simple default shared library creation
14302 # command for GNU C++ for the case where it uses the native
14303 # linker, instead of GNU ld. If possible, this setting should
14304 # overridden to take advantage of the native linker features on
14305 # the platform it is being used on.
14306 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14307 fi
14308
14309 # Commands to make compiler produce verbose output that lists
14310 # what "hidden" libraries, object files and flags are used when
14311 # linking a shared library.
14312 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14313
14314 else
14315 GXX=no
14316 with_gnu_ld=no
14317 wlarc=
14318 fi
14319
14320 # PORTME: fill in a description of your system's C++ link characteristics
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14322 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14323 ld_shlibs_CXX=yes
14324 case $host_os in
14325 aix3*)
14326 # FIXME: insert proper C++ library support
14327 ld_shlibs_CXX=no
14328 ;;
14329 aix[4-9]*)
14330 if test ia64 = "$host_cpu"; then
14331 # On IA64, the linker does run time linking by default, so we don't
14332 # have to do anything special.
14333 aix_use_runtimelinking=no
14334 exp_sym_flag='-Bexport'
14335 no_entry_flag=
14336 else
14337 aix_use_runtimelinking=no
14338
14339 # Test if we are trying to use run time linking or normal
14340 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14341 # have runtime linking enabled, and use it for executables.
14342 # For shared libraries, we enable/disable runtime linking
14343 # depending on the kind of the shared library created -
14344 # when "with_aix_soname,aix_use_runtimelinking" is:
14345 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
14346 # "aix,yes" lib.so shared, rtl:yes, for executables
14347 # lib.a static archive
14348 # "both,no" lib.so.V(shr.o) shared, rtl:yes
14349 # lib.a(lib.so.V) shared, rtl:no, for executables
14350 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14351 # lib.a(lib.so.V) shared, rtl:no
14352 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
14353 # lib.a static archive
14354 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14355 for ld_flag in $LDFLAGS; do
14356 case $ld_flag in
14357 *-brtl*)
14358 aix_use_runtimelinking=yes
14359 break
14360 ;;
14361 esac
14362 done
14363 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14364 # With aix-soname=svr4, we create the lib.so.V shared archives only,
14365 # so we don't have lib.a shared libs to link our executables.
14366 # We have to force runtime linking in this case.
14367 aix_use_runtimelinking=yes
14368 LDFLAGS="$LDFLAGS -Wl,-brtl"
14369 fi
14370 ;;
14371 esac
14372
14373 exp_sym_flag='-bexport'
14374 no_entry_flag='-bnoentry'
14375 fi
14376
14377 # When large executables or shared objects are built, AIX ld can
14378 # have problems creating the table of contents. If linking a library
14379 # or program results in "error TOC overflow" add -mminimal-toc to
14380 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14381 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14382
14383 archive_cmds_CXX=''
14384 hardcode_direct_CXX=yes
14385 hardcode_direct_absolute_CXX=yes
14386 hardcode_libdir_separator_CXX=':'
14387 link_all_deplibs_CXX=yes
14388 file_list_spec_CXX='$wl-f,'
14389 case $with_aix_soname,$aix_use_runtimelinking in
14390 aix,*) ;; # no import file
14391 svr4,* | *,yes) # use import file
14392 # The Import File defines what to hardcode.
14393 hardcode_direct_CXX=no
14394 hardcode_direct_absolute_CXX=no
14395 ;;
14396 esac
14397
14398 if test yes = "$GXX"; then
14399 case $host_os in aix4.[012]|aix4.[012].*)
14400 # We only want to do this on AIX 4.2 and lower, the check
14401 # below for broken collect2 doesn't work under 4.3+
14402 collect2name=`$CC -print-prog-name=collect2`
14403 if test -f "$collect2name" &&
14404 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14405 then
14406 # We have reworked collect2
14407 :
14408 else
14409 # We have old collect2
14410 hardcode_direct_CXX=unsupported
14411 # It fails to find uninstalled libraries when the uninstalled
14412 # path is not listed in the libpath. Setting hardcode_minus_L
14413 # to unsupported forces relinking
14414 hardcode_minus_L_CXX=yes
14415 hardcode_libdir_flag_spec_CXX='-L$libdir'
14416 hardcode_libdir_separator_CXX=
14417 fi
14418 esac
14419 shared_flag='-shared'
14420 if test yes = "$aix_use_runtimelinking"; then
14421 shared_flag=$shared_flag' $wl-G'
14422 fi
14423 # Need to ensure runtime linking is disabled for the traditional
14424 # shared library, or the linker may eventually find shared libraries
14425 # /with/ Import File - we do not want to mix them.
14426 shared_flag_aix='-shared'
14427 shared_flag_svr4='-shared $wl-G'
14428 else
14429 # not using gcc
14430 if test ia64 = "$host_cpu"; then
14431 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14432 # chokes on -Wl,-G. The following line is correct:
14433 shared_flag='-G'
14434 else
14435 if test yes = "$aix_use_runtimelinking"; then
14436 shared_flag='$wl-G'
14437 else
14438 shared_flag='$wl-bM:SRE'
14439 fi
14440 shared_flag_aix='$wl-bM:SRE'
14441 shared_flag_svr4='$wl-G'
14442 fi
14443 fi
14444
14445 export_dynamic_flag_spec_CXX='$wl-bexpall'
14446 # It seems that -bexpall does not export symbols beginning with
14447 # underscore (_), so it is better to generate a list of symbols to
14448 # export.
14449 always_export_symbols_CXX=yes
14450 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14451 # Warning - without using the other runtime loading flags (-brtl),
14452 # -berok will link without error, but may produce a broken library.
14453 # The "-G" linker flag allows undefined symbols.
14454 no_undefined_flag_CXX='-bernotok'
14455 # Determine the default libpath from the value encoded in an empty
14456 # executable.
14457 if test set = "${lt_cv_aix_libpath+set}"; then
14458 aix_libpath=$lt_cv_aix_libpath
14459 else
14460 if ${lt_cv_aix_libpath__CXX+:} false; then :
14461 $as_echo_n "(cached) " >&6
14462 else
14463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14464 /* end confdefs.h. */
14465
14466 int
14467 main ()
14468 {
14469
14470 ;
14471 return 0;
14472 }
14473 _ACEOF
14474 if ac_fn_cxx_try_link "$LINENO"; then :
14475
14476 lt_aix_libpath_sed='
14477 /Import File Strings/,/^$/ {
14478 /^0/ {
14479 s/^0 *\([^ ]*\) *$/\1/
14480 p
14481 }
14482 }'
14483 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14484 # Check for a 64-bit object if we didn't find anything.
14485 if test -z "$lt_cv_aix_libpath__CXX"; then
14486 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14487 fi
14488 fi
14489 rm -f core conftest.err conftest.$ac_objext \
14490 conftest$ac_exeext conftest.$ac_ext
14491 if test -z "$lt_cv_aix_libpath__CXX"; then
14492 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14493 fi
14494
14495 fi
14496
14497 aix_libpath=$lt_cv_aix_libpath__CXX
14498 fi
14499
14500 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14501
14502 archive_expsym_cmds_CXX='$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
14503 else
14504 if test ia64 = "$host_cpu"; then
14505 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14506 allow_undefined_flag_CXX="-z nodefs"
14507 archive_expsym_cmds_CXX="\$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"
14508 else
14509 # Determine the default libpath from the value encoded in an
14510 # empty executable.
14511 if test set = "${lt_cv_aix_libpath+set}"; then
14512 aix_libpath=$lt_cv_aix_libpath
14513 else
14514 if ${lt_cv_aix_libpath__CXX+:} false; then :
14515 $as_echo_n "(cached) " >&6
14516 else
14517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14518 /* end confdefs.h. */
14519
14520 int
14521 main ()
14522 {
14523
14524 ;
14525 return 0;
14526 }
14527 _ACEOF
14528 if ac_fn_cxx_try_link "$LINENO"; then :
14529
14530 lt_aix_libpath_sed='
14531 /Import File Strings/,/^$/ {
14532 /^0/ {
14533 s/^0 *\([^ ]*\) *$/\1/
14534 p
14535 }
14536 }'
14537 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14538 # Check for a 64-bit object if we didn't find anything.
14539 if test -z "$lt_cv_aix_libpath__CXX"; then
14540 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14541 fi
14542 fi
14543 rm -f core conftest.err conftest.$ac_objext \
14544 conftest$ac_exeext conftest.$ac_ext
14545 if test -z "$lt_cv_aix_libpath__CXX"; then
14546 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14547 fi
14548
14549 fi
14550
14551 aix_libpath=$lt_cv_aix_libpath__CXX
14552 fi
14553
14554 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14555 # Warning - without using the other run time loading flags,
14556 # -berok will link without error, but may produce a broken library.
14557 no_undefined_flag_CXX=' $wl-bernotok'
14558 allow_undefined_flag_CXX=' $wl-berok'
14559 if test yes = "$with_gnu_ld"; then
14560 # We only use this code for GNU lds that support --whole-archive.
14561 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14562 else
14563 # Exported symbols can be pulled into shared objects from archives
14564 whole_archive_flag_spec_CXX='$convenience'
14565 fi
14566 archive_cmds_need_lc_CXX=yes
14567 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14568 # -brtl affects multiple linker settings, -berok does not and is overridden later
14569 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14570 if test svr4 != "$with_aix_soname"; then
14571 # This is similar to how AIX traditionally builds its shared
14572 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14573 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
14574 fi
14575 if test aix != "$with_aix_soname"; then
14576 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
14577 else
14578 # used by -dlpreopen to get the symbols
14579 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14580 fi
14581 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14582 fi
14583 fi
14584 ;;
14585
14586 beos*)
14587 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14588 allow_undefined_flag_CXX=unsupported
14589 # Joseph Beckenbach <[email protected]> says some releases of gcc
14590 # support --undefined. This deserves some investigation. FIXME
14591 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14592 else
14593 ld_shlibs_CXX=no
14594 fi
14595 ;;
14596
14597 chorus*)
14598 case $cc_basename in
14599 *)
14600 # FIXME: insert proper C++ library support
14601 ld_shlibs_CXX=no
14602 ;;
14603 esac
14604 ;;
14605
14606 cygwin* | mingw* | pw32* | cegcc*)
14607 case $GXX,$cc_basename in
14608 ,cl* | no,cl*)
14609 # Native MSVC
14610 # hardcode_libdir_flag_spec is actually meaningless, as there is
14611 # no search path for DLLs.
14612 hardcode_libdir_flag_spec_CXX=' '
14613 allow_undefined_flag_CXX=unsupported
14614 always_export_symbols_CXX=yes
14615 file_list_spec_CXX='@'
14616 # Tell ltmain to make .lib files, not .a files.
14617 libext=lib
14618 # Tell ltmain to make .dll files, not .so files.
14619 shrext_cmds=.dll
14620 # FIXME: Setting linknames here is a bad hack.
14621 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14622 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14623 cp "$export_symbols" "$output_objdir/$soname.def";
14624 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14625 else
14626 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14627 fi~
14628 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14629 linknames='
14630 # The linker will not automatically build a static lib if we build a DLL.
14631 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14632 enable_shared_with_static_runtimes_CXX=yes
14633 # Don't use ranlib
14634 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14635 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14636 lt_tool_outputfile="@TOOL_OUTPUT@"~
14637 case $lt_outputfile in
14638 *.exe|*.EXE) ;;
14639 *)
14640 lt_outputfile=$lt_outputfile.exe
14641 lt_tool_outputfile=$lt_tool_outputfile.exe
14642 ;;
14643 esac~
14644 func_to_tool_file "$lt_outputfile"~
14645 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14646 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14647 $RM "$lt_outputfile.manifest";
14648 fi'
14649 ;;
14650 *)
14651 # g++
14652 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14653 # as there is no search path for DLLs.
14654 hardcode_libdir_flag_spec_CXX='-L$libdir'
14655 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14656 allow_undefined_flag_CXX=unsupported
14657 always_export_symbols_CXX=no
14658 enable_shared_with_static_runtimes_CXX=yes
14659
14660 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14661 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14662 # If the export-symbols file already is a .def file, use it as
14663 # is; otherwise, prepend EXPORTS...
14664 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14665 cp $export_symbols $output_objdir/$soname.def;
14666 else
14667 echo EXPORTS > $output_objdir/$soname.def;
14668 cat $export_symbols >> $output_objdir/$soname.def;
14669 fi~
14670 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14671 else
14672 ld_shlibs_CXX=no
14673 fi
14674 ;;
14675 esac
14676 ;;
14677 darwin* | rhapsody*)
14678
14679
14680 archive_cmds_need_lc_CXX=no
14681 hardcode_direct_CXX=no
14682 hardcode_automatic_CXX=yes
14683 hardcode_shlibpath_var_CXX=unsupported
14684 if test yes = "$lt_cv_ld_force_load"; then
14685 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14686
14687 else
14688 whole_archive_flag_spec_CXX=''
14689 fi
14690 link_all_deplibs_CXX=yes
14691 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14692 case $cc_basename in
14693 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14694 *) _lt_dar_can_shared=$GCC ;;
14695 esac
14696 if test yes = "$_lt_dar_can_shared"; then
14697 output_verbose_link_cmd=func_echo_all
14698 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14699 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14700 archive_expsym_cmds_CXX="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"
14701 module_expsym_cmds_CXX="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"
14702 if test yes != "$lt_cv_apple_cc_single_mod"; then
14703 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
14704 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
14705 fi
14706
14707 else
14708 ld_shlibs_CXX=no
14709 fi
14710
14711 ;;
14712
14713 os2*)
14714 hardcode_libdir_flag_spec_CXX='-L$libdir'
14715 hardcode_minus_L_CXX=yes
14716 allow_undefined_flag_CXX=unsupported
14717 shrext_cmds=.dll
14718 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14719 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14720 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14721 $ECHO EXPORTS >> $output_objdir/$libname.def~
14722 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14723 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14724 emximp -o $lib $output_objdir/$libname.def'
14725 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14726 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14727 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14728 $ECHO EXPORTS >> $output_objdir/$libname.def~
14729 prefix_cmds="$SED"~
14730 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14731 prefix_cmds="$prefix_cmds -e 1d";
14732 fi~
14733 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14734 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14735 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14736 emximp -o $lib $output_objdir/$libname.def'
14737 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14738 enable_shared_with_static_runtimes_CXX=yes
14739 ;;
14740
14741 dgux*)
14742 case $cc_basename in
14743 ec++*)
14744 # FIXME: insert proper C++ library support
14745 ld_shlibs_CXX=no
14746 ;;
14747 ghcx*)
14748 # Green Hills C++ Compiler
14749 # FIXME: insert proper C++ library support
14750 ld_shlibs_CXX=no
14751 ;;
14752 *)
14753 # FIXME: insert proper C++ library support
14754 ld_shlibs_CXX=no
14755 ;;
14756 esac
14757 ;;
14758
14759 freebsd2.*)
14760 # C++ shared libraries reported to be fairly broken before
14761 # switch to ELF
14762 ld_shlibs_CXX=no
14763 ;;
14764
14765 freebsd-elf*)
14766 archive_cmds_need_lc_CXX=no
14767 ;;
14768
14769 freebsd* | dragonfly*)
14770 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14771 # conventions
14772 ld_shlibs_CXX=yes
14773 ;;
14774
14775 haiku*)
14776 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14777 link_all_deplibs_CXX=yes
14778 ;;
14779
14780 hpux9*)
14781 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14782 hardcode_libdir_separator_CXX=:
14783 export_dynamic_flag_spec_CXX='$wl-E'
14784 hardcode_direct_CXX=yes
14785 hardcode_minus_L_CXX=yes # Not in the search PATH,
14786 # but as the default
14787 # location of the library.
14788
14789 case $cc_basename in
14790 CC*)
14791 # FIXME: insert proper C++ library support
14792 ld_shlibs_CXX=no
14793 ;;
14794 aCC*)
14795 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14796 # Commands to make compiler produce verbose output that lists
14797 # what "hidden" libraries, object files and flags are used when
14798 # linking a shared library.
14799 #
14800 # There doesn't appear to be a way to prevent this compiler from
14801 # explicitly linking system object files so we need to strip them
14802 # from the output so that they don't get included in the library
14803 # dependencies.
14804 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14805 ;;
14806 *)
14807 if test yes = "$GXX"; then
14808 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14809 else
14810 # FIXME: insert proper C++ library support
14811 ld_shlibs_CXX=no
14812 fi
14813 ;;
14814 esac
14815 ;;
14816
14817 hpux10*|hpux11*)
14818 if test no = "$with_gnu_ld"; then
14819 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14820 hardcode_libdir_separator_CXX=:
14821
14822 case $host_cpu in
14823 hppa*64*|ia64*)
14824 ;;
14825 *)
14826 export_dynamic_flag_spec_CXX='$wl-E'
14827 ;;
14828 esac
14829 fi
14830 case $host_cpu in
14831 hppa*64*|ia64*)
14832 hardcode_direct_CXX=no
14833 hardcode_shlibpath_var_CXX=no
14834 ;;
14835 *)
14836 hardcode_direct_CXX=yes
14837 hardcode_direct_absolute_CXX=yes
14838 hardcode_minus_L_CXX=yes # Not in the search PATH,
14839 # but as the default
14840 # location of the library.
14841 ;;
14842 esac
14843
14844 case $cc_basename in
14845 CC*)
14846 # FIXME: insert proper C++ library support
14847 ld_shlibs_CXX=no
14848 ;;
14849 aCC*)
14850 case $host_cpu in
14851 hppa*64*)
14852 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14853 ;;
14854 ia64*)
14855 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14856 ;;
14857 *)
14858 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14859 ;;
14860 esac
14861 # Commands to make compiler produce verbose output that lists
14862 # what "hidden" libraries, object files and flags are used when
14863 # linking a shared library.
14864 #
14865 # There doesn't appear to be a way to prevent this compiler from
14866 # explicitly linking system object files so we need to strip them
14867 # from the output so that they don't get included in the library
14868 # dependencies.
14869 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14870 ;;
14871 *)
14872 if test yes = "$GXX"; then
14873 if test no = "$with_gnu_ld"; then
14874 case $host_cpu in
14875 hppa*64*)
14876 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14877 ;;
14878 ia64*)
14879 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14880 ;;
14881 *)
14882 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14883 ;;
14884 esac
14885 fi
14886 else
14887 # FIXME: insert proper C++ library support
14888 ld_shlibs_CXX=no
14889 fi
14890 ;;
14891 esac
14892 ;;
14893
14894 interix[3-9]*)
14895 hardcode_direct_CXX=no
14896 hardcode_shlibpath_var_CXX=no
14897 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14898 export_dynamic_flag_spec_CXX='$wl-E'
14899 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14900 # Instead, shared libraries are loaded at an image base (0x10000000 by
14901 # default) and relocated if they conflict, which is a slow very memory
14902 # consuming and fragmenting process. To avoid this, we pick a random,
14903 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14904 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14905 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14906 archive_expsym_cmds_CXX='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'
14907 ;;
14908 irix5* | irix6*)
14909 case $cc_basename in
14910 CC*)
14911 # SGI C++
14912 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14913
14914 # Archives containing C++ object files must be created using
14915 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14916 # necessary to make sure instantiated templates are included
14917 # in the archive.
14918 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14919 ;;
14920 *)
14921 if test yes = "$GXX"; then
14922 if test no = "$with_gnu_ld"; then
14923 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
14924 else
14925 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
14926 fi
14927 fi
14928 link_all_deplibs_CXX=yes
14929 ;;
14930 esac
14931 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14932 hardcode_libdir_separator_CXX=:
14933 inherit_rpath_CXX=yes
14934 ;;
14935
14936 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14937 case $cc_basename in
14938 KCC*)
14939 # Kuck and Associates, Inc. (KAI) C++ Compiler
14940
14941 # KCC will only create a shared library if the output file
14942 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14943 # to its proper name (with version) after linking.
14944 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14945 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
14946 # Commands to make compiler produce verbose output that lists
14947 # what "hidden" libraries, object files and flags are used when
14948 # linking a shared library.
14949 #
14950 # There doesn't appear to be a way to prevent this compiler from
14951 # explicitly linking system object files so we need to strip them
14952 # from the output so that they don't get included in the library
14953 # dependencies.
14954 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14955
14956 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14957 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14958
14959 # Archives containing C++ object files must be created using
14960 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14961 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14962 ;;
14963 icpc* | ecpc* )
14964 # Intel C++
14965 with_gnu_ld=yes
14966 # version 8.0 and above of icpc choke on multiply defined symbols
14967 # if we add $predep_objects and $postdep_objects, however 7.1 and
14968 # earlier do not add the objects themselves.
14969 case `$CC -V 2>&1` in
14970 *"Version 7."*)
14971 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14972 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14973 ;;
14974 *) # Version 8.0 or newer
14975 tmp_idyn=
14976 case $host_cpu in
14977 ia64*) tmp_idyn=' -i_dynamic';;
14978 esac
14979 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14980 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14981 ;;
14982 esac
14983 archive_cmds_need_lc_CXX=no
14984 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14985 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14986 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14987 ;;
14988 pgCC* | pgcpp*)
14989 # Portland Group C++ compiler
14990 case `$CC -V` in
14991 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14992 prelink_cmds_CXX='tpldir=Template.dir~
14993 rm -rf $tpldir~
14994 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14995 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14996 old_archive_cmds_CXX='tpldir=Template.dir~
14997 rm -rf $tpldir~
14998 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14999 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15000 $RANLIB $oldlib'
15001 archive_cmds_CXX='tpldir=Template.dir~
15002 rm -rf $tpldir~
15003 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15004 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15005 archive_expsym_cmds_CXX='tpldir=Template.dir~
15006 rm -rf $tpldir~
15007 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15008 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15009 ;;
15010 *) # Version 6 and above use weak symbols
15011 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15012 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15013 ;;
15014 esac
15015
15016 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15017 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15018 whole_archive_flag_spec_CXX='$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'
15019 ;;
15020 cxx*)
15021 # Compaq C++
15022 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15023 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
15024
15025 runpath_var=LD_RUN_PATH
15026 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15027 hardcode_libdir_separator_CXX=:
15028
15029 # Commands to make compiler produce verbose output that lists
15030 # what "hidden" libraries, object files and flags are used when
15031 # linking a shared library.
15032 #
15033 # There doesn't appear to be a way to prevent this compiler from
15034 # explicitly linking system object files so we need to strip them
15035 # from the output so that they don't get included in the library
15036 # dependencies.
15037 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
15038 ;;
15039 xl* | mpixl* | bgxl*)
15040 # IBM XL 8.0 on PPC, with GNU ld
15041 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15042 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15043 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15044 if test yes = "$supports_anon_versioning"; then
15045 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15046 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15047 echo "local: *; };" >> $output_objdir/$libname.ver~
15048 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15049 fi
15050 ;;
15051 *)
15052 case `$CC -V 2>&1 | sed 5q` in
15053 *Sun\ C*)
15054 # Sun C++ 5.9
15055 no_undefined_flag_CXX=' -zdefs'
15056 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15057 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
15058 hardcode_libdir_flag_spec_CXX='-R$libdir'
15059 whole_archive_flag_spec_CXX='$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'
15060 compiler_needs_object_CXX=yes
15061
15062 # Not sure whether something based on
15063 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15064 # would be better.
15065 output_verbose_link_cmd='func_echo_all'
15066
15067 # Archives containing C++ object files must be created using
15068 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15069 # necessary to make sure instantiated templates are included
15070 # in the archive.
15071 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15072 ;;
15073 esac
15074 ;;
15075 esac
15076 ;;
15077
15078 lynxos*)
15079 # FIXME: insert proper C++ library support
15080 ld_shlibs_CXX=no
15081 ;;
15082
15083 m88k*)
15084 # FIXME: insert proper C++ library support
15085 ld_shlibs_CXX=no
15086 ;;
15087
15088 mvs*)
15089 case $cc_basename in
15090 cxx*)
15091 # FIXME: insert proper C++ library support
15092 ld_shlibs_CXX=no
15093 ;;
15094 *)
15095 # FIXME: insert proper C++ library support
15096 ld_shlibs_CXX=no
15097 ;;
15098 esac
15099 ;;
15100
15101 netbsd*)
15102 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15103 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15104 wlarc=
15105 hardcode_libdir_flag_spec_CXX='-R$libdir'
15106 hardcode_direct_CXX=yes
15107 hardcode_shlibpath_var_CXX=no
15108 fi
15109 # Workaround some broken pre-1.5 toolchains
15110 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15111 ;;
15112
15113 *nto* | *qnx*)
15114 ld_shlibs_CXX=yes
15115 ;;
15116
15117 openbsd* | bitrig*)
15118 if test -f /usr/libexec/ld.so; then
15119 hardcode_direct_CXX=yes
15120 hardcode_shlibpath_var_CXX=no
15121 hardcode_direct_absolute_CXX=yes
15122 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15123 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15124 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15125 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15126 export_dynamic_flag_spec_CXX='$wl-E'
15127 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15128 fi
15129 output_verbose_link_cmd=func_echo_all
15130 else
15131 ld_shlibs_CXX=no
15132 fi
15133 ;;
15134
15135 osf3* | osf4* | osf5*)
15136 case $cc_basename in
15137 KCC*)
15138 # Kuck and Associates, Inc. (KAI) C++ Compiler
15139
15140 # KCC will only create a shared library if the output file
15141 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15142 # to its proper name (with version) after linking.
15143 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15144
15145 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15146 hardcode_libdir_separator_CXX=:
15147
15148 # Archives containing C++ object files must be created using
15149 # the KAI C++ compiler.
15150 case $host in
15151 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15152 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15153 esac
15154 ;;
15155 RCC*)
15156 # Rational C++ 2.4.1
15157 # FIXME: insert proper C++ library support
15158 ld_shlibs_CXX=no
15159 ;;
15160 cxx*)
15161 case $host in
15162 osf3*)
15163 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15164 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15165 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15166 ;;
15167 *)
15168 allow_undefined_flag_CXX=' -expect_unresolved \*'
15169 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15170 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15171 echo "-hidden">> $lib.exp~
15172 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
15173 $RM $lib.exp'
15174 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15175 ;;
15176 esac
15177
15178 hardcode_libdir_separator_CXX=:
15179
15180 # Commands to make compiler produce verbose output that lists
15181 # what "hidden" libraries, object files and flags are used when
15182 # linking a shared library.
15183 #
15184 # There doesn't appear to be a way to prevent this compiler from
15185 # explicitly linking system object files so we need to strip them
15186 # from the output so that they don't get included in the library
15187 # dependencies.
15188 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15189 ;;
15190 *)
15191 if test yes,no = "$GXX,$with_gnu_ld"; then
15192 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15193 case $host in
15194 osf3*)
15195 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
15196 ;;
15197 *)
15198 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
15199 ;;
15200 esac
15201
15202 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15203 hardcode_libdir_separator_CXX=:
15204
15205 # Commands to make compiler produce verbose output that lists
15206 # what "hidden" libraries, object files and flags are used when
15207 # linking a shared library.
15208 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15209
15210 else
15211 # FIXME: insert proper C++ library support
15212 ld_shlibs_CXX=no
15213 fi
15214 ;;
15215 esac
15216 ;;
15217
15218 psos*)
15219 # FIXME: insert proper C++ library support
15220 ld_shlibs_CXX=no
15221 ;;
15222
15223 sunos4*)
15224 case $cc_basename in
15225 CC*)
15226 # Sun C++ 4.x
15227 # FIXME: insert proper C++ library support
15228 ld_shlibs_CXX=no
15229 ;;
15230 lcc*)
15231 # Lucid
15232 # FIXME: insert proper C++ library support
15233 ld_shlibs_CXX=no
15234 ;;
15235 *)
15236 # FIXME: insert proper C++ library support
15237 ld_shlibs_CXX=no
15238 ;;
15239 esac
15240 ;;
15241
15242 solaris*)
15243 case $cc_basename in
15244 CC* | sunCC*)
15245 # Sun C++ 4.2, 5.x and Centerline C++
15246 archive_cmds_need_lc_CXX=yes
15247 no_undefined_flag_CXX=' -zdefs'
15248 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15249 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15250 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15251
15252 hardcode_libdir_flag_spec_CXX='-R$libdir'
15253 hardcode_shlibpath_var_CXX=no
15254 case $host_os in
15255 solaris2.[0-5] | solaris2.[0-5].*) ;;
15256 *)
15257 # The compiler driver will combine and reorder linker options,
15258 # but understands '-z linker_flag'.
15259 # Supported since Solaris 2.6 (maybe 2.5.1?)
15260 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15261 ;;
15262 esac
15263 link_all_deplibs_CXX=yes
15264
15265 output_verbose_link_cmd='func_echo_all'
15266
15267 # Archives containing C++ object files must be created using
15268 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15269 # necessary to make sure instantiated templates are included
15270 # in the archive.
15271 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15272 ;;
15273 gcx*)
15274 # Green Hills C++ Compiler
15275 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15276
15277 # The C++ compiler must be used to create the archive.
15278 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15279 ;;
15280 *)
15281 # GNU C++ compiler with Solaris linker
15282 if test yes,no = "$GXX,$with_gnu_ld"; then
15283 no_undefined_flag_CXX=' $wl-z ${wl}defs'
15284 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15285 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15286 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15287 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15288
15289 # Commands to make compiler produce verbose output that lists
15290 # what "hidden" libraries, object files and flags are used when
15291 # linking a shared library.
15292 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15293 else
15294 # g++ 2.7 appears to require '-G' NOT '-shared' on this
15295 # platform.
15296 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15297 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15298 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15299
15300 # Commands to make compiler produce verbose output that lists
15301 # what "hidden" libraries, object files and flags are used when
15302 # linking a shared library.
15303 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15304 fi
15305
15306 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15307 case $host_os in
15308 solaris2.[0-5] | solaris2.[0-5].*) ;;
15309 *)
15310 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15311 ;;
15312 esac
15313 fi
15314 ;;
15315 esac
15316 ;;
15317
15318 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15319 no_undefined_flag_CXX='$wl-z,text'
15320 archive_cmds_need_lc_CXX=no
15321 hardcode_shlibpath_var_CXX=no
15322 runpath_var='LD_RUN_PATH'
15323
15324 case $cc_basename in
15325 CC*)
15326 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15327 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15328 ;;
15329 *)
15330 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15331 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15332 ;;
15333 esac
15334 ;;
15335
15336 sysv5* | sco3.2v5* | sco5v6*)
15337 # Note: We CANNOT use -z defs as we might desire, because we do not
15338 # link with -lc, and that would cause any symbols used from libc to
15339 # always be unresolved, which means just about no library would
15340 # ever link correctly. If we're not using GNU ld we use -z text
15341 # though, which does catch some bad symbols but isn't as heavy-handed
15342 # as -z defs.
15343 no_undefined_flag_CXX='$wl-z,text'
15344 allow_undefined_flag_CXX='$wl-z,nodefs'
15345 archive_cmds_need_lc_CXX=no
15346 hardcode_shlibpath_var_CXX=no
15347 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15348 hardcode_libdir_separator_CXX=':'
15349 link_all_deplibs_CXX=yes
15350 export_dynamic_flag_spec_CXX='$wl-Bexport'
15351 runpath_var='LD_RUN_PATH'
15352
15353 case $cc_basename in
15354 CC*)
15355 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15356 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15357 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15358 '"$old_archive_cmds_CXX"
15359 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15360 '"$reload_cmds_CXX"
15361 ;;
15362 *)
15363 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15364 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15365 ;;
15366 esac
15367 ;;
15368
15369 tandem*)
15370 case $cc_basename in
15371 NCC*)
15372 # NonStop-UX NCC 3.20
15373 # FIXME: insert proper C++ library support
15374 ld_shlibs_CXX=no
15375 ;;
15376 *)
15377 # FIXME: insert proper C++ library support
15378 ld_shlibs_CXX=no
15379 ;;
15380 esac
15381 ;;
15382
15383 vxworks*)
15384 # FIXME: insert proper C++ library support
15385 ld_shlibs_CXX=no
15386 ;;
15387
15388 *)
15389 # FIXME: insert proper C++ library support
15390 ld_shlibs_CXX=no
15391 ;;
15392 esac
15393
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15395 $as_echo "$ld_shlibs_CXX" >&6; }
15396 test no = "$ld_shlibs_CXX" && can_build_shared=no
15397
15398 GCC_CXX=$GXX
15399 LD_CXX=$LD
15400
15401 ## CAVEAT EMPTOR:
15402 ## There is no encapsulation within the following macros, do not change
15403 ## the running order or otherwise move them around unless you know exactly
15404 ## what you are doing...
15405 # Dependencies to place before and after the object being linked:
15406 predep_objects_CXX=
15407 postdep_objects_CXX=
15408 predeps_CXX=
15409 postdeps_CXX=
15410 compiler_lib_search_path_CXX=
15411
15412 cat > conftest.$ac_ext <<_LT_EOF
15413 class Foo
15414 {
15415 public:
15416 Foo (void) { a = 0; }
15417 private:
15418 int a;
15419 };
15420 _LT_EOF
15421
15422
15423 _lt_libdeps_save_CFLAGS=$CFLAGS
15424 case "$CC $CFLAGS " in #(
15425 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15426 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15427 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15428 esac
15429
15430 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15431 (eval $ac_compile) 2>&5
15432 ac_status=$?
15433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15434 test $ac_status = 0; }; then
15435 # Parse the compiler output and extract the necessary
15436 # objects, libraries and library flags.
15437
15438 # Sentinel used to keep track of whether or not we are before
15439 # the conftest object file.
15440 pre_test_object_deps_done=no
15441
15442 for p in `eval "$output_verbose_link_cmd"`; do
15443 case $prev$p in
15444
15445 -L* | -R* | -l*)
15446 # Some compilers place space between "-{L,R}" and the path.
15447 # Remove the space.
15448 if test x-L = "$p" ||
15449 test x-R = "$p"; then
15450 prev=$p
15451 continue
15452 fi
15453
15454 # Expand the sysroot to ease extracting the directories later.
15455 if test -z "$prev"; then
15456 case $p in
15457 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15458 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15459 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15460 esac
15461 fi
15462 case $p in
15463 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15464 esac
15465 if test no = "$pre_test_object_deps_done"; then
15466 case $prev in
15467 -L | -R)
15468 # Internal compiler library paths should come after those
15469 # provided the user. The postdeps already come after the
15470 # user supplied libs so there is no need to process them.
15471 if test -z "$compiler_lib_search_path_CXX"; then
15472 compiler_lib_search_path_CXX=$prev$p
15473 else
15474 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15475 fi
15476 ;;
15477 # The "-l" case would never come before the object being
15478 # linked, so don't bother handling this case.
15479 esac
15480 else
15481 if test -z "$postdeps_CXX"; then
15482 postdeps_CXX=$prev$p
15483 else
15484 postdeps_CXX="${postdeps_CXX} $prev$p"
15485 fi
15486 fi
15487 prev=
15488 ;;
15489
15490 *.lto.$objext) ;; # Ignore GCC LTO objects
15491 *.$objext)
15492 # This assumes that the test object file only shows up
15493 # once in the compiler output.
15494 if test "$p" = "conftest.$objext"; then
15495 pre_test_object_deps_done=yes
15496 continue
15497 fi
15498
15499 if test no = "$pre_test_object_deps_done"; then
15500 if test -z "$predep_objects_CXX"; then
15501 predep_objects_CXX=$p
15502 else
15503 predep_objects_CXX="$predep_objects_CXX $p"
15504 fi
15505 else
15506 if test -z "$postdep_objects_CXX"; then
15507 postdep_objects_CXX=$p
15508 else
15509 postdep_objects_CXX="$postdep_objects_CXX $p"
15510 fi
15511 fi
15512 ;;
15513
15514 *) ;; # Ignore the rest.
15515
15516 esac
15517 done
15518
15519 # Clean up.
15520 rm -f a.out a.exe
15521 else
15522 echo "libtool.m4: error: problem compiling CXX test program"
15523 fi
15524
15525 $RM -f confest.$objext
15526 CFLAGS=$_lt_libdeps_save_CFLAGS
15527
15528 # PORTME: override above test on systems where it is broken
15529 case $host_os in
15530 interix[3-9]*)
15531 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15532 # hack all around it, let's just trust "g++" to DTRT.
15533 predep_objects_CXX=
15534 postdep_objects_CXX=
15535 postdeps_CXX=
15536 ;;
15537 esac
15538
15539
15540 case " $postdeps_CXX " in
15541 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15542 esac
15543 compiler_lib_search_dirs_CXX=
15544 if test -n "${compiler_lib_search_path_CXX}"; then
15545 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15546 fi
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578 lt_prog_compiler_wl_CXX=
15579 lt_prog_compiler_pic_CXX=
15580 lt_prog_compiler_static_CXX=
15581
15582
15583 # C++ specific cases for pic, static, wl, etc.
15584 if test yes = "$GXX"; then
15585 lt_prog_compiler_wl_CXX='-Wl,'
15586 lt_prog_compiler_static_CXX='-static'
15587
15588 case $host_os in
15589 aix*)
15590 # All AIX code is PIC.
15591 if test ia64 = "$host_cpu"; then
15592 # AIX 5 now supports IA64 processor
15593 lt_prog_compiler_static_CXX='-Bstatic'
15594 fi
15595 lt_prog_compiler_pic_CXX='-fPIC'
15596 ;;
15597
15598 amigaos*)
15599 case $host_cpu in
15600 powerpc)
15601 # see comment about AmigaOS4 .so support
15602 lt_prog_compiler_pic_CXX='-fPIC'
15603 ;;
15604 m68k)
15605 # FIXME: we need at least 68020 code to build shared libraries, but
15606 # adding the '-m68020' flag to GCC prevents building anything better,
15607 # like '-m68040'.
15608 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15609 ;;
15610 esac
15611 ;;
15612
15613 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15614 # PIC is the default for these OSes.
15615 ;;
15616 mingw* | cygwin* | os2* | pw32* | cegcc*)
15617 # This hack is so that the source file can tell whether it is being
15618 # built for inclusion in a dll (and should export symbols for example).
15619 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15620 # (--disable-auto-import) libraries
15621 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15622 case $host_os in
15623 os2*)
15624 lt_prog_compiler_static_CXX='$wl-static'
15625 ;;
15626 esac
15627 ;;
15628 darwin* | rhapsody*)
15629 # PIC is the default on this platform
15630 # Common symbols not allowed in MH_DYLIB files
15631 lt_prog_compiler_pic_CXX='-fno-common'
15632 ;;
15633 *djgpp*)
15634 # DJGPP does not support shared libraries at all
15635 lt_prog_compiler_pic_CXX=
15636 ;;
15637 haiku*)
15638 # PIC is the default for Haiku.
15639 # The "-static" flag exists, but is broken.
15640 lt_prog_compiler_static_CXX=
15641 ;;
15642 interix[3-9]*)
15643 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15644 # Instead, we relocate shared libraries at runtime.
15645 ;;
15646 sysv4*MP*)
15647 if test -d /usr/nec; then
15648 lt_prog_compiler_pic_CXX=-Kconform_pic
15649 fi
15650 ;;
15651 hpux*)
15652 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15653 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15654 # sets the default TLS model and affects inlining.
15655 case $host_cpu in
15656 hppa*64*)
15657 ;;
15658 *)
15659 lt_prog_compiler_pic_CXX='-fPIC'
15660 ;;
15661 esac
15662 ;;
15663 *qnx* | *nto*)
15664 # QNX uses GNU C++, but need to define -shared option too, otherwise
15665 # it will coredump.
15666 lt_prog_compiler_pic_CXX='-fPIC -shared'
15667 ;;
15668 *)
15669 lt_prog_compiler_pic_CXX='-fPIC'
15670 ;;
15671 esac
15672 else
15673 case $host_os in
15674 aix[4-9]*)
15675 # All AIX code is PIC.
15676 if test ia64 = "$host_cpu"; then
15677 # AIX 5 now supports IA64 processor
15678 lt_prog_compiler_static_CXX='-Bstatic'
15679 else
15680 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15681 fi
15682 ;;
15683 chorus*)
15684 case $cc_basename in
15685 cxch68*)
15686 # Green Hills C++ Compiler
15687 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
15688 ;;
15689 esac
15690 ;;
15691 mingw* | cygwin* | os2* | pw32* | cegcc*)
15692 # This hack is so that the source file can tell whether it is being
15693 # built for inclusion in a dll (and should export symbols for example).
15694 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15695 ;;
15696 dgux*)
15697 case $cc_basename in
15698 ec++*)
15699 lt_prog_compiler_pic_CXX='-KPIC'
15700 ;;
15701 ghcx*)
15702 # Green Hills C++ Compiler
15703 lt_prog_compiler_pic_CXX='-pic'
15704 ;;
15705 *)
15706 ;;
15707 esac
15708 ;;
15709 freebsd* | dragonfly*)
15710 # FreeBSD uses GNU C++
15711 ;;
15712 hpux9* | hpux10* | hpux11*)
15713 case $cc_basename in
15714 CC*)
15715 lt_prog_compiler_wl_CXX='-Wl,'
15716 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15717 if test ia64 != "$host_cpu"; then
15718 lt_prog_compiler_pic_CXX='+Z'
15719 fi
15720 ;;
15721 aCC*)
15722 lt_prog_compiler_wl_CXX='-Wl,'
15723 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15724 case $host_cpu in
15725 hppa*64*|ia64*)
15726 # +Z the default
15727 ;;
15728 *)
15729 lt_prog_compiler_pic_CXX='+Z'
15730 ;;
15731 esac
15732 ;;
15733 *)
15734 ;;
15735 esac
15736 ;;
15737 interix*)
15738 # This is c89, which is MS Visual C++ (no shared libs)
15739 # Anyone wants to do a port?
15740 ;;
15741 irix5* | irix6* | nonstopux*)
15742 case $cc_basename in
15743 CC*)
15744 lt_prog_compiler_wl_CXX='-Wl,'
15745 lt_prog_compiler_static_CXX='-non_shared'
15746 # CC pic flag -KPIC is the default.
15747 ;;
15748 *)
15749 ;;
15750 esac
15751 ;;
15752 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15753 case $cc_basename in
15754 KCC*)
15755 # KAI C++ Compiler
15756 lt_prog_compiler_wl_CXX='--backend -Wl,'
15757 lt_prog_compiler_pic_CXX='-fPIC'
15758 ;;
15759 ecpc* )
15760 # old Intel C++ for x86_64, which still supported -KPIC.
15761 lt_prog_compiler_wl_CXX='-Wl,'
15762 lt_prog_compiler_pic_CXX='-KPIC'
15763 lt_prog_compiler_static_CXX='-static'
15764 ;;
15765 icpc* )
15766 # Intel C++, used to be incompatible with GCC.
15767 # ICC 10 doesn't accept -KPIC any more.
15768 lt_prog_compiler_wl_CXX='-Wl,'
15769 lt_prog_compiler_pic_CXX='-fPIC'
15770 lt_prog_compiler_static_CXX='-static'
15771 ;;
15772 pgCC* | pgcpp*)
15773 # Portland Group C++ compiler
15774 lt_prog_compiler_wl_CXX='-Wl,'
15775 lt_prog_compiler_pic_CXX='-fpic'
15776 lt_prog_compiler_static_CXX='-Bstatic'
15777 ;;
15778 cxx*)
15779 # Compaq C++
15780 # Make sure the PIC flag is empty. It appears that all Alpha
15781 # Linux and Compaq Tru64 Unix objects are PIC.
15782 lt_prog_compiler_pic_CXX=
15783 lt_prog_compiler_static_CXX='-non_shared'
15784 ;;
15785 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15786 # IBM XL 8.0, 9.0 on PPC and BlueGene
15787 lt_prog_compiler_wl_CXX='-Wl,'
15788 lt_prog_compiler_pic_CXX='-qpic'
15789 lt_prog_compiler_static_CXX='-qstaticlink'
15790 ;;
15791 *)
15792 case `$CC -V 2>&1 | sed 5q` in
15793 *Sun\ C*)
15794 # Sun C++ 5.9
15795 lt_prog_compiler_pic_CXX='-KPIC'
15796 lt_prog_compiler_static_CXX='-Bstatic'
15797 lt_prog_compiler_wl_CXX='-Qoption ld '
15798 ;;
15799 esac
15800 ;;
15801 esac
15802 ;;
15803 lynxos*)
15804 ;;
15805 m88k*)
15806 ;;
15807 mvs*)
15808 case $cc_basename in
15809 cxx*)
15810 lt_prog_compiler_pic_CXX='-W c,exportall'
15811 ;;
15812 *)
15813 ;;
15814 esac
15815 ;;
15816 netbsd*)
15817 ;;
15818 *qnx* | *nto*)
15819 # QNX uses GNU C++, but need to define -shared option too, otherwise
15820 # it will coredump.
15821 lt_prog_compiler_pic_CXX='-fPIC -shared'
15822 ;;
15823 osf3* | osf4* | osf5*)
15824 case $cc_basename in
15825 KCC*)
15826 lt_prog_compiler_wl_CXX='--backend -Wl,'
15827 ;;
15828 RCC*)
15829 # Rational C++ 2.4.1
15830 lt_prog_compiler_pic_CXX='-pic'
15831 ;;
15832 cxx*)
15833 # Digital/Compaq C++
15834 lt_prog_compiler_wl_CXX='-Wl,'
15835 # Make sure the PIC flag is empty. It appears that all Alpha
15836 # Linux and Compaq Tru64 Unix objects are PIC.
15837 lt_prog_compiler_pic_CXX=
15838 lt_prog_compiler_static_CXX='-non_shared'
15839 ;;
15840 *)
15841 ;;
15842 esac
15843 ;;
15844 psos*)
15845 ;;
15846 solaris*)
15847 case $cc_basename in
15848 CC* | sunCC*)
15849 # Sun C++ 4.2, 5.x and Centerline C++
15850 lt_prog_compiler_pic_CXX='-KPIC'
15851 lt_prog_compiler_static_CXX='-Bstatic'
15852 lt_prog_compiler_wl_CXX='-Qoption ld '
15853 ;;
15854 gcx*)
15855 # Green Hills C++ Compiler
15856 lt_prog_compiler_pic_CXX='-PIC'
15857 ;;
15858 *)
15859 ;;
15860 esac
15861 ;;
15862 sunos4*)
15863 case $cc_basename in
15864 CC*)
15865 # Sun C++ 4.x
15866 lt_prog_compiler_pic_CXX='-pic'
15867 lt_prog_compiler_static_CXX='-Bstatic'
15868 ;;
15869 lcc*)
15870 # Lucid
15871 lt_prog_compiler_pic_CXX='-pic'
15872 ;;
15873 *)
15874 ;;
15875 esac
15876 ;;
15877 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15878 case $cc_basename in
15879 CC*)
15880 lt_prog_compiler_wl_CXX='-Wl,'
15881 lt_prog_compiler_pic_CXX='-KPIC'
15882 lt_prog_compiler_static_CXX='-Bstatic'
15883 ;;
15884 esac
15885 ;;
15886 tandem*)
15887 case $cc_basename in
15888 NCC*)
15889 # NonStop-UX NCC 3.20
15890 lt_prog_compiler_pic_CXX='-KPIC'
15891 ;;
15892 *)
15893 ;;
15894 esac
15895 ;;
15896 vxworks*)
15897 ;;
15898 *)
15899 lt_prog_compiler_can_build_shared_CXX=no
15900 ;;
15901 esac
15902 fi
15903
15904 case $host_os in
15905 # For platforms that do not support PIC, -DPIC is meaningless:
15906 *djgpp*)
15907 lt_prog_compiler_pic_CXX=
15908 ;;
15909 *)
15910 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15911 ;;
15912 esac
15913
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15915 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15916 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15917 $as_echo_n "(cached) " >&6
15918 else
15919 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15920 fi
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15922 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15923 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15924
15925 #
15926 # Check to make sure the PIC flag actually works.
15927 #
15928 if test -n "$lt_prog_compiler_pic_CXX"; then
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15930 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15931 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15932 $as_echo_n "(cached) " >&6
15933 else
15934 lt_cv_prog_compiler_pic_works_CXX=no
15935 ac_outfile=conftest.$ac_objext
15936 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15937 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
15938 # Insert the option either (1) after the last *FLAGS variable, or
15939 # (2) before a word containing "conftest.", or (3) at the end.
15940 # Note that $ac_compile itself does not contain backslashes and begins
15941 # with a dollar sign (not a hyphen), so the echo should work correctly.
15942 # The option is referenced via a variable to avoid confusing sed.
15943 lt_compile=`echo "$ac_compile" | $SED \
15944 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15945 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15946 -e 's:$: $lt_compiler_flag:'`
15947 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15948 (eval "$lt_compile" 2>conftest.err)
15949 ac_status=$?
15950 cat conftest.err >&5
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 if (exit $ac_status) && test -s "$ac_outfile"; then
15953 # The compiler can only warn and ignore the option if not recognized
15954 # So say no if there are warnings other than the usual output.
15955 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15956 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15957 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15958 lt_cv_prog_compiler_pic_works_CXX=yes
15959 fi
15960 fi
15961 $RM conftest*
15962
15963 fi
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15965 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15966
15967 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15968 case $lt_prog_compiler_pic_CXX in
15969 "" | " "*) ;;
15970 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15971 esac
15972 else
15973 lt_prog_compiler_pic_CXX=
15974 lt_prog_compiler_can_build_shared_CXX=no
15975 fi
15976
15977 fi
15978
15979
15980
15981
15982
15983 #
15984 # Check to make sure the static flag actually works.
15985 #
15986 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15988 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15989 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15990 $as_echo_n "(cached) " >&6
15991 else
15992 lt_cv_prog_compiler_static_works_CXX=no
15993 save_LDFLAGS=$LDFLAGS
15994 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15995 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15996 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15997 # The linker can only warn and ignore the option if not recognized
15998 # So say no if there are warnings
15999 if test -s conftest.err; then
16000 # Append any errors to the config.log.
16001 cat conftest.err 1>&5
16002 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16003 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16004 if diff conftest.exp conftest.er2 >/dev/null; then
16005 lt_cv_prog_compiler_static_works_CXX=yes
16006 fi
16007 else
16008 lt_cv_prog_compiler_static_works_CXX=yes
16009 fi
16010 fi
16011 $RM -r conftest*
16012 LDFLAGS=$save_LDFLAGS
16013
16014 fi
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16016 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16017
16018 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16019 :
16020 else
16021 lt_prog_compiler_static_CXX=
16022 fi
16023
16024
16025
16026
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16028 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16029 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16030 $as_echo_n "(cached) " >&6
16031 else
16032 lt_cv_prog_compiler_c_o_CXX=no
16033 $RM -r conftest 2>/dev/null
16034 mkdir conftest
16035 cd conftest
16036 mkdir out
16037 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16038
16039 lt_compiler_flag="-o out/conftest2.$ac_objext"
16040 # Insert the option either (1) after the last *FLAGS variable, or
16041 # (2) before a word containing "conftest.", or (3) at the end.
16042 # Note that $ac_compile itself does not contain backslashes and begins
16043 # with a dollar sign (not a hyphen), so the echo should work correctly.
16044 lt_compile=`echo "$ac_compile" | $SED \
16045 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16047 -e 's:$: $lt_compiler_flag:'`
16048 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16049 (eval "$lt_compile" 2>out/conftest.err)
16050 ac_status=$?
16051 cat out/conftest.err >&5
16052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16054 then
16055 # The compiler can only warn and ignore the option if not recognized
16056 # So say no if there are warnings
16057 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16058 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16059 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16060 lt_cv_prog_compiler_c_o_CXX=yes
16061 fi
16062 fi
16063 chmod u+w . 2>&5
16064 $RM conftest*
16065 # SGI C++ compiler will create directory out/ii_files/ for
16066 # template instantiation
16067 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16068 $RM out/* && rmdir out
16069 cd ..
16070 $RM -r conftest
16071 $RM conftest*
16072
16073 fi
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16075 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16076
16077
16078
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16080 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16081 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16082 $as_echo_n "(cached) " >&6
16083 else
16084 lt_cv_prog_compiler_c_o_CXX=no
16085 $RM -r conftest 2>/dev/null
16086 mkdir conftest
16087 cd conftest
16088 mkdir out
16089 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16090
16091 lt_compiler_flag="-o out/conftest2.$ac_objext"
16092 # Insert the option either (1) after the last *FLAGS variable, or
16093 # (2) before a word containing "conftest.", or (3) at the end.
16094 # Note that $ac_compile itself does not contain backslashes and begins
16095 # with a dollar sign (not a hyphen), so the echo should work correctly.
16096 lt_compile=`echo "$ac_compile" | $SED \
16097 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16099 -e 's:$: $lt_compiler_flag:'`
16100 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16101 (eval "$lt_compile" 2>out/conftest.err)
16102 ac_status=$?
16103 cat out/conftest.err >&5
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16106 then
16107 # The compiler can only warn and ignore the option if not recognized
16108 # So say no if there are warnings
16109 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16110 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16111 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16112 lt_cv_prog_compiler_c_o_CXX=yes
16113 fi
16114 fi
16115 chmod u+w . 2>&5
16116 $RM conftest*
16117 # SGI C++ compiler will create directory out/ii_files/ for
16118 # template instantiation
16119 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16120 $RM out/* && rmdir out
16121 cd ..
16122 $RM -r conftest
16123 $RM conftest*
16124
16125 fi
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16127 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16128
16129
16130
16131
16132 hard_links=nottested
16133 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16134 # do not overwrite the value of need_locks provided by the user
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16136 $as_echo_n "checking if we can lock with hard links... " >&6; }
16137 hard_links=yes
16138 $RM conftest*
16139 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16140 touch conftest.a
16141 ln conftest.a conftest.b 2>&5 || hard_links=no
16142 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16144 $as_echo "$hard_links" >&6; }
16145 if test no = "$hard_links"; then
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16147 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16148 need_locks=warn
16149 fi
16150 else
16151 need_locks=no
16152 fi
16153
16154
16155
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16157 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16158
16159 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16160 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16161 case $host_os in
16162 aix[4-9]*)
16163 # If we're using GNU nm, then we don't want the "-C" option.
16164 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16165 # Without the "-l" option, or with the "-B" option, AIX nm treats
16166 # weak defined symbols like other global defined symbols, whereas
16167 # GNU nm marks them as "W".
16168 # While the 'weak' keyword is ignored in the Export File, we need
16169 # it in the Import File for the 'aix-soname' feature, so we have
16170 # to replace the "-B" option with "-P" for AIX nm.
16171 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16172 export_symbols_cmds_CXX='$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'
16173 else
16174 export_symbols_cmds_CXX='`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'
16175 fi
16176 ;;
16177 pw32*)
16178 export_symbols_cmds_CXX=$ltdll_cmds
16179 ;;
16180 cygwin* | mingw* | cegcc*)
16181 case $cc_basename in
16182 cl*)
16183 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16184 ;;
16185 *)
16186 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16187 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16188 ;;
16189 esac
16190 ;;
16191 *)
16192 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16193 ;;
16194 esac
16195
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16197 $as_echo "$ld_shlibs_CXX" >&6; }
16198 test no = "$ld_shlibs_CXX" && can_build_shared=no
16199
16200 with_gnu_ld_CXX=$with_gnu_ld
16201
16202
16203
16204
16205
16206
16207 #
16208 # Do we need to explicitly link libc?
16209 #
16210 case "x$archive_cmds_need_lc_CXX" in
16211 x|xyes)
16212 # Assume -lc should be added
16213 archive_cmds_need_lc_CXX=yes
16214
16215 if test yes,yes = "$GCC,$enable_shared"; then
16216 case $archive_cmds_CXX in
16217 *'~'*)
16218 # FIXME: we may have to deal with multi-command sequences.
16219 ;;
16220 '$CC '*)
16221 # Test whether the compiler implicitly links with -lc since on some
16222 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16223 # to ld, don't add -lc before -lgcc.
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16225 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16226 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16227 $as_echo_n "(cached) " >&6
16228 else
16229 $RM conftest*
16230 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16231
16232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16233 (eval $ac_compile) 2>&5
16234 ac_status=$?
16235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16236 test $ac_status = 0; } 2>conftest.err; then
16237 soname=conftest
16238 lib=conftest
16239 libobjs=conftest.$ac_objext
16240 deplibs=
16241 wl=$lt_prog_compiler_wl_CXX
16242 pic_flag=$lt_prog_compiler_pic_CXX
16243 compiler_flags=-v
16244 linker_flags=-v
16245 verstring=
16246 output_objdir=.
16247 libname=conftest
16248 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16249 allow_undefined_flag_CXX=
16250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16251 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16252 ac_status=$?
16253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16254 test $ac_status = 0; }
16255 then
16256 lt_cv_archive_cmds_need_lc_CXX=no
16257 else
16258 lt_cv_archive_cmds_need_lc_CXX=yes
16259 fi
16260 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16261 else
16262 cat conftest.err 1>&5
16263 fi
16264 $RM conftest*
16265
16266 fi
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16268 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16269 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16270 ;;
16271 esac
16272 fi
16273 ;;
16274 esac
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16338 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16339
16340 library_names_spec=
16341 libname_spec='lib$name'
16342 soname_spec=
16343 shrext_cmds=.so
16344 postinstall_cmds=
16345 postuninstall_cmds=
16346 finish_cmds=
16347 finish_eval=
16348 shlibpath_var=
16349 shlibpath_overrides_runpath=unknown
16350 version_type=none
16351 dynamic_linker="$host_os ld.so"
16352 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16353 need_lib_prefix=unknown
16354 hardcode_into_libs=no
16355
16356 # when you set need_version to no, make sure it does not cause -set_version
16357 # flags to be left without arguments
16358 need_version=unknown
16359
16360
16361
16362 case $host_os in
16363 aix3*)
16364 version_type=linux # correct to gnu/linux during the next big refactor
16365 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16366 shlibpath_var=LIBPATH
16367
16368 # AIX 3 has no versioning support, so we append a major version to the name.
16369 soname_spec='$libname$release$shared_ext$major'
16370 ;;
16371
16372 aix[4-9]*)
16373 version_type=linux # correct to gnu/linux during the next big refactor
16374 need_lib_prefix=no
16375 need_version=no
16376 hardcode_into_libs=yes
16377 if test ia64 = "$host_cpu"; then
16378 # AIX 5 supports IA64
16379 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16380 shlibpath_var=LD_LIBRARY_PATH
16381 else
16382 # With GCC up to 2.95.x, collect2 would create an import file
16383 # for dependence libraries. The import file would start with
16384 # the line '#! .'. This would cause the generated library to
16385 # depend on '.', always an invalid library. This was fixed in
16386 # development snapshots of GCC prior to 3.0.
16387 case $host_os in
16388 aix4 | aix4.[01] | aix4.[01].*)
16389 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16390 echo ' yes '
16391 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16392 :
16393 else
16394 can_build_shared=no
16395 fi
16396 ;;
16397 esac
16398 # Using Import Files as archive members, it is possible to support
16399 # filename-based versioning of shared library archives on AIX. While
16400 # this would work for both with and without runtime linking, it will
16401 # prevent static linking of such archives. So we do filename-based
16402 # shared library versioning with .so extension only, which is used
16403 # when both runtime linking and shared linking is enabled.
16404 # Unfortunately, runtime linking may impact performance, so we do
16405 # not want this to be the default eventually. Also, we use the
16406 # versioned .so libs for executables only if there is the -brtl
16407 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16408 # To allow for filename-based versioning support, we need to create
16409 # libNAME.so.V as an archive file, containing:
16410 # *) an Import File, referring to the versioned filename of the
16411 # archive as well as the shared archive member, telling the
16412 # bitwidth (32 or 64) of that shared object, and providing the
16413 # list of exported symbols of that shared object, eventually
16414 # decorated with the 'weak' keyword
16415 # *) the shared object with the F_LOADONLY flag set, to really avoid
16416 # it being seen by the linker.
16417 # At run time we better use the real file rather than another symlink,
16418 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16419
16420 case $with_aix_soname,$aix_use_runtimelinking in
16421 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16422 # soname into executable. Probably we can add versioning support to
16423 # collect2, so additional links can be useful in future.
16424 aix,yes) # traditional libtool
16425 dynamic_linker='AIX unversionable lib.so'
16426 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16427 # instead of lib<name>.a to let people know that these are not
16428 # typical AIX shared libraries.
16429 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16430 ;;
16431 aix,no) # traditional AIX only
16432 dynamic_linker='AIX lib.a(lib.so.V)'
16433 # We preserve .a as extension for shared libraries through AIX4.2
16434 # and later when we are not doing run time linking.
16435 library_names_spec='$libname$release.a $libname.a'
16436 soname_spec='$libname$release$shared_ext$major'
16437 ;;
16438 svr4,*) # full svr4 only
16439 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16440 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16441 # We do not specify a path in Import Files, so LIBPATH fires.
16442 shlibpath_overrides_runpath=yes
16443 ;;
16444 *,yes) # both, prefer svr4
16445 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16446 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16447 # unpreferred sharedlib libNAME.a needs extra handling
16448 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"'
16449 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"'
16450 # We do not specify a path in Import Files, so LIBPATH fires.
16451 shlibpath_overrides_runpath=yes
16452 ;;
16453 *,no) # both, prefer aix
16454 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16455 library_names_spec='$libname$release.a $libname.a'
16456 soname_spec='$libname$release$shared_ext$major'
16457 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16458 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)'
16459 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"'
16460 ;;
16461 esac
16462 shlibpath_var=LIBPATH
16463 fi
16464 ;;
16465
16466 amigaos*)
16467 case $host_cpu in
16468 powerpc)
16469 # Since July 2007 AmigaOS4 officially supports .so libraries.
16470 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16471 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16472 ;;
16473 m68k)
16474 library_names_spec='$libname.ixlibrary $libname.a'
16475 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16476 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'
16477 ;;
16478 esac
16479 ;;
16480
16481 beos*)
16482 library_names_spec='$libname$shared_ext'
16483 dynamic_linker="$host_os ld.so"
16484 shlibpath_var=LIBRARY_PATH
16485 ;;
16486
16487 bsdi[45]*)
16488 version_type=linux # correct to gnu/linux during the next big refactor
16489 need_version=no
16490 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16491 soname_spec='$libname$release$shared_ext$major'
16492 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16493 shlibpath_var=LD_LIBRARY_PATH
16494 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16495 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16496 # the default ld.so.conf also contains /usr/contrib/lib and
16497 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16498 # libtool to hard-code these into programs
16499 ;;
16500
16501 cygwin* | mingw* | pw32* | cegcc*)
16502 version_type=windows
16503 shrext_cmds=.dll
16504 need_version=no
16505 need_lib_prefix=no
16506
16507 case $GCC,$cc_basename in
16508 yes,*)
16509 # gcc
16510 library_names_spec='$libname.dll.a'
16511 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16512 postinstall_cmds='base_file=`basename \$file`~
16513 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16514 dldir=$destdir/`dirname \$dlpath`~
16515 test -d \$dldir || mkdir -p \$dldir~
16516 $install_prog $dir/$dlname \$dldir/$dlname~
16517 chmod a+x \$dldir/$dlname~
16518 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16519 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16520 fi'
16521 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16522 dlpath=$dir/\$dldll~
16523 $RM \$dlpath'
16524 shlibpath_overrides_runpath=yes
16525
16526 case $host_os in
16527 cygwin*)
16528 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16529 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16530
16531 ;;
16532 mingw* | cegcc*)
16533 # MinGW DLLs use traditional 'lib' prefix
16534 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16535 ;;
16536 pw32*)
16537 # pw32 DLLs use 'pw' prefix rather than 'lib'
16538 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16539 ;;
16540 esac
16541 dynamic_linker='Win32 ld.exe'
16542 ;;
16543
16544 *,cl*)
16545 # Native MSVC
16546 libname_spec='$name'
16547 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16548 library_names_spec='$libname.dll.lib'
16549
16550 case $build_os in
16551 mingw*)
16552 sys_lib_search_path_spec=
16553 lt_save_ifs=$IFS
16554 IFS=';'
16555 for lt_path in $LIB
16556 do
16557 IFS=$lt_save_ifs
16558 # Let DOS variable expansion print the short 8.3 style file name.
16559 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16560 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16561 done
16562 IFS=$lt_save_ifs
16563 # Convert to MSYS style.
16564 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16565 ;;
16566 cygwin*)
16567 # Convert to unix form, then to dos form, then back to unix form
16568 # but this time dos style (no spaces!) so that the unix form looks
16569 # like /cygdrive/c/PROGRA~1:/cygdr...
16570 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16571 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16572 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16573 ;;
16574 *)
16575 sys_lib_search_path_spec=$LIB
16576 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16577 # It is most probably a Windows format PATH.
16578 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16579 else
16580 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16581 fi
16582 # FIXME: find the short name or the path components, as spaces are
16583 # common. (e.g. "Program Files" -> "PROGRA~1")
16584 ;;
16585 esac
16586
16587 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16588 postinstall_cmds='base_file=`basename \$file`~
16589 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16590 dldir=$destdir/`dirname \$dlpath`~
16591 test -d \$dldir || mkdir -p \$dldir~
16592 $install_prog $dir/$dlname \$dldir/$dlname'
16593 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16594 dlpath=$dir/\$dldll~
16595 $RM \$dlpath'
16596 shlibpath_overrides_runpath=yes
16597 dynamic_linker='Win32 link.exe'
16598 ;;
16599
16600 *)
16601 # Assume MSVC wrapper
16602 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16603 dynamic_linker='Win32 ld.exe'
16604 ;;
16605 esac
16606 # FIXME: first we should search . and the directory the executable is in
16607 shlibpath_var=PATH
16608 ;;
16609
16610 darwin* | rhapsody*)
16611 dynamic_linker="$host_os dyld"
16612 version_type=darwin
16613 need_lib_prefix=no
16614 need_version=no
16615 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16616 soname_spec='$libname$release$major$shared_ext'
16617 shlibpath_overrides_runpath=yes
16618 shlibpath_var=DYLD_LIBRARY_PATH
16619 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16620
16621 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16622 ;;
16623
16624 dgux*)
16625 version_type=linux # correct to gnu/linux during the next big refactor
16626 need_lib_prefix=no
16627 need_version=no
16628 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16629 soname_spec='$libname$release$shared_ext$major'
16630 shlibpath_var=LD_LIBRARY_PATH
16631 ;;
16632
16633 freebsd* | dragonfly*)
16634 # DragonFly does not have aout. When/if they implement a new
16635 # versioning mechanism, adjust this.
16636 if test -x /usr/bin/objformat; then
16637 objformat=`/usr/bin/objformat`
16638 else
16639 case $host_os in
16640 freebsd[23].*) objformat=aout ;;
16641 *) objformat=elf ;;
16642 esac
16643 fi
16644 version_type=freebsd-$objformat
16645 case $version_type in
16646 freebsd-elf*)
16647 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16648 soname_spec='$libname$release$shared_ext$major'
16649 need_version=no
16650 need_lib_prefix=no
16651 ;;
16652 freebsd-*)
16653 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16654 need_version=yes
16655 ;;
16656 esac
16657 shlibpath_var=LD_LIBRARY_PATH
16658 case $host_os in
16659 freebsd2.*)
16660 shlibpath_overrides_runpath=yes
16661 ;;
16662 freebsd3.[01]* | freebsdelf3.[01]*)
16663 shlibpath_overrides_runpath=yes
16664 hardcode_into_libs=yes
16665 ;;
16666 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16667 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16668 shlibpath_overrides_runpath=no
16669 hardcode_into_libs=yes
16670 ;;
16671 *) # from 4.6 on, and DragonFly
16672 shlibpath_overrides_runpath=yes
16673 hardcode_into_libs=yes
16674 ;;
16675 esac
16676 ;;
16677
16678 haiku*)
16679 version_type=linux # correct to gnu/linux during the next big refactor
16680 need_lib_prefix=no
16681 need_version=no
16682 dynamic_linker="$host_os runtime_loader"
16683 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16684 soname_spec='$libname$release$shared_ext$major'
16685 shlibpath_var=LIBRARY_PATH
16686 shlibpath_overrides_runpath=no
16687 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16688 hardcode_into_libs=yes
16689 ;;
16690
16691 hpux9* | hpux10* | hpux11*)
16692 # Give a soname corresponding to the major version so that dld.sl refuses to
16693 # link against other versions.
16694 version_type=sunos
16695 need_lib_prefix=no
16696 need_version=no
16697 case $host_cpu in
16698 ia64*)
16699 shrext_cmds='.so'
16700 hardcode_into_libs=yes
16701 dynamic_linker="$host_os dld.so"
16702 shlibpath_var=LD_LIBRARY_PATH
16703 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16704 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16705 soname_spec='$libname$release$shared_ext$major'
16706 if test 32 = "$HPUX_IA64_MODE"; then
16707 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16708 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16709 else
16710 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16711 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16712 fi
16713 ;;
16714 hppa*64*)
16715 shrext_cmds='.sl'
16716 hardcode_into_libs=yes
16717 dynamic_linker="$host_os dld.sl"
16718 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16719 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16720 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16721 soname_spec='$libname$release$shared_ext$major'
16722 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16723 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16724 ;;
16725 *)
16726 shrext_cmds='.sl'
16727 dynamic_linker="$host_os dld.sl"
16728 shlibpath_var=SHLIB_PATH
16729 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16730 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16731 soname_spec='$libname$release$shared_ext$major'
16732 ;;
16733 esac
16734 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16735 postinstall_cmds='chmod 555 $lib'
16736 # or fails outright, so override atomically:
16737 install_override_mode=555
16738 ;;
16739
16740 interix[3-9]*)
16741 version_type=linux # correct to gnu/linux during the next big refactor
16742 need_lib_prefix=no
16743 need_version=no
16744 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16745 soname_spec='$libname$release$shared_ext$major'
16746 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16747 shlibpath_var=LD_LIBRARY_PATH
16748 shlibpath_overrides_runpath=no
16749 hardcode_into_libs=yes
16750 ;;
16751
16752 irix5* | irix6* | nonstopux*)
16753 case $host_os in
16754 nonstopux*) version_type=nonstopux ;;
16755 *)
16756 if test yes = "$lt_cv_prog_gnu_ld"; then
16757 version_type=linux # correct to gnu/linux during the next big refactor
16758 else
16759 version_type=irix
16760 fi ;;
16761 esac
16762 need_lib_prefix=no
16763 need_version=no
16764 soname_spec='$libname$release$shared_ext$major'
16765 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16766 case $host_os in
16767 irix5* | nonstopux*)
16768 libsuff= shlibsuff=
16769 ;;
16770 *)
16771 case $LD in # libtool.m4 will add one of these switches to LD
16772 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16773 libsuff= shlibsuff= libmagic=32-bit;;
16774 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16775 libsuff=32 shlibsuff=N32 libmagic=N32;;
16776 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16777 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16778 *) libsuff= shlibsuff= libmagic=never-match;;
16779 esac
16780 ;;
16781 esac
16782 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16783 shlibpath_overrides_runpath=no
16784 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16785 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16786 hardcode_into_libs=yes
16787 ;;
16788
16789 # No shared lib support for Linux oldld, aout, or coff.
16790 linux*oldld* | linux*aout* | linux*coff*)
16791 dynamic_linker=no
16792 ;;
16793
16794 linux*android*)
16795 version_type=none # Android doesn't support versioned libraries.
16796 need_lib_prefix=no
16797 need_version=no
16798 library_names_spec='$libname$release$shared_ext'
16799 soname_spec='$libname$release$shared_ext'
16800 finish_cmds=
16801 shlibpath_var=LD_LIBRARY_PATH
16802 shlibpath_overrides_runpath=yes
16803
16804 # This implies no fast_install, which is unacceptable.
16805 # Some rework will be needed to allow for fast_install
16806 # before this can be enabled.
16807 hardcode_into_libs=yes
16808
16809 dynamic_linker='Android linker'
16810 # Don't embed -rpath directories since the linker doesn't support them.
16811 hardcode_libdir_flag_spec_CXX='-L$libdir'
16812 ;;
16813
16814 # This must be glibc/ELF.
16815 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16816 version_type=linux # correct to gnu/linux during the next big refactor
16817 need_lib_prefix=no
16818 need_version=no
16819 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16820 soname_spec='$libname$release$shared_ext$major'
16821 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16822 shlibpath_var=LD_LIBRARY_PATH
16823 shlibpath_overrides_runpath=no
16824
16825 # Some binutils ld are patched to set DT_RUNPATH
16826 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16827 $as_echo_n "(cached) " >&6
16828 else
16829 lt_cv_shlibpath_overrides_runpath=no
16830 save_LDFLAGS=$LDFLAGS
16831 save_libdir=$libdir
16832 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16833 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16835 /* end confdefs.h. */
16836
16837 int
16838 main ()
16839 {
16840
16841 ;
16842 return 0;
16843 }
16844 _ACEOF
16845 if ac_fn_cxx_try_link "$LINENO"; then :
16846 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16847 lt_cv_shlibpath_overrides_runpath=yes
16848 fi
16849 fi
16850 rm -f core conftest.err conftest.$ac_objext \
16851 conftest$ac_exeext conftest.$ac_ext
16852 LDFLAGS=$save_LDFLAGS
16853 libdir=$save_libdir
16854
16855 fi
16856
16857 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16858
16859 # This implies no fast_install, which is unacceptable.
16860 # Some rework will be needed to allow for fast_install
16861 # before this can be enabled.
16862 hardcode_into_libs=yes
16863
16864 # Add ABI-specific directories to the system library path.
16865 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16866
16867 # Ideally, we could use ldconfig to report *all* directores which are
16868 # searched for libraries, however this is still not possible. Aside from not
16869 # being certain /sbin/ldconfig is available, command
16870 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16871 # even though it is searched at run-time. Try to do the best guess by
16872 # appending ld.so.conf contents (and includes) to the search path.
16873 if test -f /etc/ld.so.conf; then
16874 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' ' '`
16875 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16876 fi
16877
16878 # We used to test for /lib/ld.so.1 and disable shared libraries on
16879 # powerpc, because MkLinux only supported shared libraries with the
16880 # GNU dynamic linker. Since this was broken with cross compilers,
16881 # most powerpc-linux boxes support dynamic linking these days and
16882 # people can always --disable-shared, the test was removed, and we
16883 # assume the GNU/Linux dynamic linker is in use.
16884 dynamic_linker='GNU/Linux ld.so'
16885 ;;
16886
16887 netbsd*)
16888 version_type=sunos
16889 need_lib_prefix=no
16890 need_version=no
16891 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16892 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16893 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16894 dynamic_linker='NetBSD (a.out) ld.so'
16895 else
16896 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16897 soname_spec='$libname$release$shared_ext$major'
16898 dynamic_linker='NetBSD ld.elf_so'
16899 fi
16900 shlibpath_var=LD_LIBRARY_PATH
16901 shlibpath_overrides_runpath=yes
16902 hardcode_into_libs=yes
16903 ;;
16904
16905 newsos6)
16906 version_type=linux # correct to gnu/linux during the next big refactor
16907 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16908 shlibpath_var=LD_LIBRARY_PATH
16909 shlibpath_overrides_runpath=yes
16910 ;;
16911
16912 *nto* | *qnx*)
16913 version_type=qnx
16914 need_lib_prefix=no
16915 need_version=no
16916 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16917 soname_spec='$libname$release$shared_ext$major'
16918 shlibpath_var=LD_LIBRARY_PATH
16919 shlibpath_overrides_runpath=no
16920 hardcode_into_libs=yes
16921 dynamic_linker='ldqnx.so'
16922 ;;
16923
16924 openbsd* | bitrig*)
16925 version_type=sunos
16926 sys_lib_dlsearch_path_spec=/usr/lib
16927 need_lib_prefix=no
16928 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16929 need_version=no
16930 else
16931 need_version=yes
16932 fi
16933 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16934 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16935 shlibpath_var=LD_LIBRARY_PATH
16936 shlibpath_overrides_runpath=yes
16937 ;;
16938
16939 os2*)
16940 libname_spec='$name'
16941 version_type=windows
16942 shrext_cmds=.dll
16943 need_version=no
16944 need_lib_prefix=no
16945 # OS/2 can only load a DLL with a base name of 8 characters or less.
16946 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16947 v=$($ECHO $release$versuffix | tr -d .-);
16948 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16949 $ECHO $n$v`$shared_ext'
16950 library_names_spec='${libname}_dll.$libext'
16951 dynamic_linker='OS/2 ld.exe'
16952 shlibpath_var=BEGINLIBPATH
16953 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16954 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16955 postinstall_cmds='base_file=`basename \$file`~
16956 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16957 dldir=$destdir/`dirname \$dlpath`~
16958 test -d \$dldir || mkdir -p \$dldir~
16959 $install_prog $dir/$dlname \$dldir/$dlname~
16960 chmod a+x \$dldir/$dlname~
16961 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16962 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16963 fi'
16964 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16965 dlpath=$dir/\$dldll~
16966 $RM \$dlpath'
16967 ;;
16968
16969 osf3* | osf4* | osf5*)
16970 version_type=osf
16971 need_lib_prefix=no
16972 need_version=no
16973 soname_spec='$libname$release$shared_ext$major'
16974 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16975 shlibpath_var=LD_LIBRARY_PATH
16976 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16977 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16978 ;;
16979
16980 rdos*)
16981 dynamic_linker=no
16982 ;;
16983
16984 solaris*)
16985 version_type=linux # correct to gnu/linux during the next big refactor
16986 need_lib_prefix=no
16987 need_version=no
16988 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16989 soname_spec='$libname$release$shared_ext$major'
16990 shlibpath_var=LD_LIBRARY_PATH
16991 shlibpath_overrides_runpath=yes
16992 hardcode_into_libs=yes
16993 # ldd complains unless libraries are executable
16994 postinstall_cmds='chmod +x $lib'
16995 ;;
16996
16997 sunos4*)
16998 version_type=sunos
16999 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17000 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17001 shlibpath_var=LD_LIBRARY_PATH
17002 shlibpath_overrides_runpath=yes
17003 if test yes = "$with_gnu_ld"; then
17004 need_lib_prefix=no
17005 fi
17006 need_version=yes
17007 ;;
17008
17009 sysv4 | sysv4.3*)
17010 version_type=linux # correct to gnu/linux during the next big refactor
17011 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17012 soname_spec='$libname$release$shared_ext$major'
17013 shlibpath_var=LD_LIBRARY_PATH
17014 case $host_vendor in
17015 sni)
17016 shlibpath_overrides_runpath=no
17017 need_lib_prefix=no
17018 runpath_var=LD_RUN_PATH
17019 ;;
17020 siemens)
17021 need_lib_prefix=no
17022 ;;
17023 motorola)
17024 need_lib_prefix=no
17025 need_version=no
17026 shlibpath_overrides_runpath=no
17027 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17028 ;;
17029 esac
17030 ;;
17031
17032 sysv4*MP*)
17033 if test -d /usr/nec; then
17034 version_type=linux # correct to gnu/linux during the next big refactor
17035 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17036 soname_spec='$libname$shared_ext.$major'
17037 shlibpath_var=LD_LIBRARY_PATH
17038 fi
17039 ;;
17040
17041 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17042 version_type=sco
17043 need_lib_prefix=no
17044 need_version=no
17045 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17046 soname_spec='$libname$release$shared_ext$major'
17047 shlibpath_var=LD_LIBRARY_PATH
17048 shlibpath_overrides_runpath=yes
17049 hardcode_into_libs=yes
17050 if test yes = "$with_gnu_ld"; then
17051 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17052 else
17053 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17054 case $host_os in
17055 sco3.2v5*)
17056 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17057 ;;
17058 esac
17059 fi
17060 sys_lib_dlsearch_path_spec='/usr/lib'
17061 ;;
17062
17063 tpf*)
17064 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17065 version_type=linux # correct to gnu/linux during the next big refactor
17066 need_lib_prefix=no
17067 need_version=no
17068 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17069 shlibpath_var=LD_LIBRARY_PATH
17070 shlibpath_overrides_runpath=no
17071 hardcode_into_libs=yes
17072 ;;
17073
17074 uts4*)
17075 version_type=linux # correct to gnu/linux during the next big refactor
17076 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17077 soname_spec='$libname$release$shared_ext$major'
17078 shlibpath_var=LD_LIBRARY_PATH
17079 ;;
17080
17081 *)
17082 dynamic_linker=no
17083 ;;
17084 esac
17085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17086 $as_echo "$dynamic_linker" >&6; }
17087 test no = "$dynamic_linker" && can_build_shared=no
17088
17089 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17090 if test yes = "$GCC"; then
17091 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17092 fi
17093
17094 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17095 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17096 fi
17097
17098 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17099 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17100 fi
17101
17102 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17103 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17104
17105 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17106 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17107
17108 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17109 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17151 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17152 hardcode_action_CXX=
17153 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17154 test -n "$runpath_var_CXX" ||
17155 test yes = "$hardcode_automatic_CXX"; then
17156
17157 # We can hardcode non-existent directories.
17158 if test no != "$hardcode_direct_CXX" &&
17159 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17160 # have to relink, otherwise we might link with an installed library
17161 # when we should be linking with a yet-to-be-installed one
17162 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17163 test no != "$hardcode_minus_L_CXX"; then
17164 # Linking always hardcodes the temporary library directory.
17165 hardcode_action_CXX=relink
17166 else
17167 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17168 hardcode_action_CXX=immediate
17169 fi
17170 else
17171 # We cannot hardcode anything, or else we can only hardcode existing
17172 # directories.
17173 hardcode_action_CXX=unsupported
17174 fi
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17176 $as_echo "$hardcode_action_CXX" >&6; }
17177
17178 if test relink = "$hardcode_action_CXX" ||
17179 test yes = "$inherit_rpath_CXX"; then
17180 # Fast installation is not supported
17181 enable_fast_install=no
17182 elif test yes = "$shlibpath_overrides_runpath" ||
17183 test no = "$enable_shared"; then
17184 # Fast installation is not necessary
17185 enable_fast_install=needless
17186 fi
17187
17188
17189
17190
17191
17192
17193
17194 fi # test -n "$compiler"
17195
17196 CC=$lt_save_CC
17197 CFLAGS=$lt_save_CFLAGS
17198 LDCXX=$LD
17199 LD=$lt_save_LD
17200 GCC=$lt_save_GCC
17201 with_gnu_ld=$lt_save_with_gnu_ld
17202 lt_cv_path_LDCXX=$lt_cv_path_LD
17203 lt_cv_path_LD=$lt_save_path_LD
17204 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17205 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17206 fi # test yes != "$_lt_caught_CXX_error"
17207
17208 ac_ext=c
17209 ac_cpp='$CPP $CPPFLAGS'
17210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228 ac_config_commands="$ac_config_commands libtool"
17229
17230
17231
17232
17233 # Only expand once:
17234
17235
17236
17237 ac_ext=cpp
17238 ac_cpp='$CXXCPP $CPPFLAGS'
17239 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17240 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17241 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17242
17243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17244 /* end confdefs.h. */
17245 #ifndef __cplusplus
17246 #error "broken C++"
17247 #endif
17248 int
17249 main ()
17250 {
17251
17252 ;
17253 return 0;
17254 }
17255 _ACEOF
17256 if ac_fn_cxx_try_compile "$LINENO"; then :
17257
17258 else
17259 as_fn_error $? "C++ compiler not found" "$LINENO" 5
17260 fi
17261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17262 ac_ext=c
17263 ac_cpp='$CPP $CPPFLAGS'
17264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17267
17268
17269 if test "x$LEX" != xflex; then
17270 as_fn_error $? "flex not found" "$LINENO" 5
17271 fi
17272
17273
17274 CFG=
17275
17276 # Check whether --enable-debug was given.
17277 if test "${enable_debug+set}" = set; then :
17278 enableval=$enable_debug; case "${enableval}" in
17279 yes) CXXFLAGS="$CXXFLAGS -g -ansi -pedantic" ;;
17280 no) CXXFLAGS="$CXXFLAGS -O3 -DNDEBUG" ;;
17281 *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
17282 esac
17283 else
17284 CXXFLAGS="$CXXFLAGS -O3 -DNDEBUG"
17285 fi
17286
17287
17288 if test "x$GCC" = "xyes"; then
17289 if test -z "`echo "$CXXFLAGS" | grep "\-Wall -Wno-unused-function -Wno-unused-label -Wno-sign-compare" 2> /dev/null`" ; then
17290 CXXFLAGS="$CXXFLAGS -Wall -Wno-unused-function -Wno-unused-label -Wno-sign-compare"
17291 fi
17292 fi
17293
17294 # Check whether --enable-profiling was given.
17295 if test "${enable_profiling+set}" = set; then :
17296 enableval=$enable_profiling; case "${enableval}" in
17297 yes) CXXFLAGS="$CXXFLAGS -pg" ;;
17298 no) ;;
17299 *) as_fn_error $? "bad value ${enableval} for --enable-profiling" "$LINENO" 5 ;;
17300 esac
17301 fi
17302
17303
17304 # Check whether --enable-dlmalloc was given.
17305 if test "${enable_dlmalloc+set}" = set; then :
17306 enableval=$enable_dlmalloc; case "${enableval}" in
17307 yes) CXXFLAGS="$CXXFLAGS -DUSE_DLMALLOC" ;;
17308 no) ;;
17309 *) as_fn_error $? "bad value ${enableval} for --enable-dlmalloc" "$LINENO" 5 ;;
17310 esac
17311 CFG="$CFG --enable-dlmalloc=$enableval"
17312 fi
17313
17314
17315 # Check whether --enable-memdebug was given.
17316 if test "${enable_memdebug+set}" = set; then :
17317 enableval=$enable_memdebug; case "${enableval}" in
17318 yes) CXXFLAGS="$CXXFLAGS -DDEBUG" ;;
17319 no) ;;
17320 *) as_fn_error $? "bad value ${enableval} for --enable-memdebug" "$LINENO" 5 ;;
17321 esac
17322 fi
17323
17324
17325 # Check whether --enable-maxalloc was given.
17326 if test "${enable_maxalloc+set}" = set; then :
17327 enableval=$enable_maxalloc; case "${enableval}" in
17328 yes) CXXFLAGS="$CXXFLAGS -DMAXALLOCATED" ;;
17329 no) ;;
17330 *) as_fn_error $? "bad value ${enableval} for --enable-maxalloc" "$LINENO" 5 ;;
17331 esac
17332 fi
17333
17334
17335
17336
17337
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Win32 compiler" >&5
17339 $as_echo_n "checking Win32 compiler... " >&6; }
17340 have_win32_gcc=no
17341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17342 /* end confdefs.h. */
17343 #include <windows.h>
17344 int
17345 main ()
17346 {
17347
17348 ;
17349 return 0;
17350 }
17351 _ACEOF
17352 if ac_fn_c_try_compile "$LINENO"; then :
17353 have_win32_gcc=yes
17354 fi
17355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
17357 $as_echo "$have_win32_gcc" >&6; }
17358
17359 if test x$have_win32_gcc = xyes; then
17360 CXXFLAGS="$CXXFLAGS -DWIN32"
17361 fi
17362
17363 CFLAGS=$CXXFLAGS
17364
17365
17366
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17368 $as_echo_n "checking for ANSI C header files... " >&6; }
17369 if ${ac_cv_header_stdc+:} false; then :
17370 $as_echo_n "(cached) " >&6
17371 else
17372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17373 /* end confdefs.h. */
17374 #include <stdlib.h>
17375 #include <stdarg.h>
17376 #include <string.h>
17377 #include <float.h>
17378
17379 int
17380 main ()
17381 {
17382
17383 ;
17384 return 0;
17385 }
17386 _ACEOF
17387 if ac_fn_c_try_compile "$LINENO"; then :
17388 ac_cv_header_stdc=yes
17389 else
17390 ac_cv_header_stdc=no
17391 fi
17392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17393
17394 if test $ac_cv_header_stdc = yes; then
17395 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17397 /* end confdefs.h. */
17398 #include <string.h>
17399
17400 _ACEOF
17401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17402 $EGREP "memchr" >/dev/null 2>&1; then :
17403
17404 else
17405 ac_cv_header_stdc=no
17406 fi
17407 rm -f conftest*
17408
17409 fi
17410
17411 if test $ac_cv_header_stdc = yes; then
17412 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17414 /* end confdefs.h. */
17415 #include <stdlib.h>
17416
17417 _ACEOF
17418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17419 $EGREP "free" >/dev/null 2>&1; then :
17420
17421 else
17422 ac_cv_header_stdc=no
17423 fi
17424 rm -f conftest*
17425
17426 fi
17427
17428 if test $ac_cv_header_stdc = yes; then
17429 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17430 if test "$cross_compiling" = yes; then :
17431 :
17432 else
17433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17434 /* end confdefs.h. */
17435 #include <ctype.h>
17436 #include <stdlib.h>
17437 #if ((' ' & 0x0FF) == 0x020)
17438 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17439 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17440 #else
17441 # define ISLOWER(c) \
17442 (('a' <= (c) && (c) <= 'i') \
17443 || ('j' <= (c) && (c) <= 'r') \
17444 || ('s' <= (c) && (c) <= 'z'))
17445 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17446 #endif
17447
17448 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17449 int
17450 main ()
17451 {
17452 int i;
17453 for (i = 0; i < 256; i++)
17454 if (XOR (islower (i), ISLOWER (i))
17455 || toupper (i) != TOUPPER (i))
17456 return 2;
17457 return 0;
17458 }
17459 _ACEOF
17460 if ac_fn_c_try_run "$LINENO"; then :
17461
17462 else
17463 ac_cv_header_stdc=no
17464 fi
17465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17466 conftest.$ac_objext conftest.beam conftest.$ac_ext
17467 fi
17468
17469 fi
17470 fi
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17472 $as_echo "$ac_cv_header_stdc" >&6; }
17473 if test $ac_cv_header_stdc = yes; then
17474
17475 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
17476
17477 fi
17478
17479 for ac_header in stdlib.h string.h sys/time.h unistd.h
17480
17481 do :
17482 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17483 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17484 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17485 cat >>confdefs.h <<_ACEOF
17486 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17487 _ACEOF
17488
17489 else
17490 as_fn_error $? "required header file not found" "$LINENO" 5
17491 fi
17492
17493 done
17494
17495
17496
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17498 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17499 if ${ac_cv_c_const+:} false; then :
17500 $as_echo_n "(cached) " >&6
17501 else
17502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17503 /* end confdefs.h. */
17504
17505 int
17506 main ()
17507 {
17508
17509 #ifndef __cplusplus
17510 /* Ultrix mips cc rejects this sort of thing. */
17511 typedef int charset[2];
17512 const charset cs = { 0, 0 };
17513 /* SunOS 4.1.1 cc rejects this. */
17514 char const *const *pcpcc;
17515 char **ppc;
17516 /* NEC SVR4.0.2 mips cc rejects this. */
17517 struct point {int x, y;};
17518 static struct point const zero = {0,0};
17519 /* AIX XL C 1.02.0.0 rejects this.
17520 It does not let you subtract one const X* pointer from another in
17521 an arm of an if-expression whose if-part is not a constant
17522 expression */
17523 const char *g = "string";
17524 pcpcc = &g + (g ? g-g : 0);
17525 /* HPUX 7.0 cc rejects these. */
17526 ++pcpcc;
17527 ppc = (char**) pcpcc;
17528 pcpcc = (char const *const *) ppc;
17529 { /* SCO 3.2v4 cc rejects this sort of thing. */
17530 char tx;
17531 char *t = &tx;
17532 char const *s = 0 ? (char *) 0 : (char const *) 0;
17533
17534 *t++ = 0;
17535 if (s) return 0;
17536 }
17537 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17538 int x[] = {25, 17};
17539 const int *foo = &x[0];
17540 ++foo;
17541 }
17542 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17543 typedef const int *iptr;
17544 iptr p = 0;
17545 ++p;
17546 }
17547 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
17548 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17549 struct s { int j; const int *ap[3]; } bx;
17550 struct s *b = &bx; b->j = 5;
17551 }
17552 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17553 const int foo = 10;
17554 if (!foo) return 0;
17555 }
17556 return !cs[0] && !zero.x;
17557 #endif
17558
17559 ;
17560 return 0;
17561 }
17562 _ACEOF
17563 if ac_fn_c_try_compile "$LINENO"; then :
17564 ac_cv_c_const=yes
17565 else
17566 ac_cv_c_const=no
17567 fi
17568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17569 fi
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17571 $as_echo "$ac_cv_c_const" >&6; }
17572 if test $ac_cv_c_const = no; then
17573
17574 $as_echo "#define const /**/" >>confdefs.h
17575
17576 fi
17577
17578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17579 $as_echo_n "checking for inline... " >&6; }
17580 if ${ac_cv_c_inline+:} false; then :
17581 $as_echo_n "(cached) " >&6
17582 else
17583 ac_cv_c_inline=no
17584 for ac_kw in inline __inline__ __inline; do
17585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17586 /* end confdefs.h. */
17587 #ifndef __cplusplus
17588 typedef int foo_t;
17589 static $ac_kw foo_t static_foo () {return 0; }
17590 $ac_kw foo_t foo () {return 0; }
17591 #endif
17592
17593 _ACEOF
17594 if ac_fn_c_try_compile "$LINENO"; then :
17595 ac_cv_c_inline=$ac_kw
17596 fi
17597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17598 test "$ac_cv_c_inline" != no && break
17599 done
17600
17601 fi
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17603 $as_echo "$ac_cv_c_inline" >&6; }
17604
17605 case $ac_cv_c_inline in
17606 inline | yes) ;;
17607 *)
17608 case $ac_cv_c_inline in
17609 no) ac_val=;;
17610 *) ac_val=$ac_cv_c_inline;;
17611 esac
17612 cat >>confdefs.h <<_ACEOF
17613 #ifndef __cplusplus
17614 #define inline $ac_val
17615 #endif
17616 _ACEOF
17617 ;;
17618 esac
17619
17620 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17621 if test "x$ac_cv_type_size_t" = xyes; then :
17622
17623 else
17624
17625 cat >>confdefs.h <<_ACEOF
17626 #define size_t unsigned int
17627 _ACEOF
17628
17629 fi
17630
17631
17632
17633
17634
17635 for ac_header in stdlib.h
17636 do :
17637 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
17638 if test "x$ac_cv_header_stdlib_h" = xyes; then :
17639 cat >>confdefs.h <<_ACEOF
17640 #define HAVE_STDLIB_H 1
17641 _ACEOF
17642
17643 fi
17644
17645 done
17646
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
17648 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
17649 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
17650 $as_echo_n "(cached) " >&6
17651 else
17652 if test "$cross_compiling" = yes; then :
17653 ac_cv_func_malloc_0_nonnull=no
17654 else
17655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17656 /* end confdefs.h. */
17657 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
17658 # include <stdlib.h>
17659 #else
17660 char *malloc ();
17661 #endif
17662
17663 int
17664 main ()
17665 {
17666 return ! malloc (0);
17667 ;
17668 return 0;
17669 }
17670 _ACEOF
17671 if ac_fn_c_try_run "$LINENO"; then :
17672 ac_cv_func_malloc_0_nonnull=yes
17673 else
17674 ac_cv_func_malloc_0_nonnull=no
17675 fi
17676 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17677 conftest.$ac_objext conftest.beam conftest.$ac_ext
17678 fi
17679
17680 fi
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
17682 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
17683 if test $ac_cv_func_malloc_0_nonnull = yes; then :
17684
17685 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
17686
17687 else
17688 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
17689
17690 case " $LIBOBJS " in
17691 *" malloc.$ac_objext "* ) ;;
17692 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
17693 ;;
17694 esac
17695
17696
17697 $as_echo "#define malloc rpl_malloc" >>confdefs.h
17698
17699 fi
17700
17701
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
17703 $as_echo_n "checking for working memcmp... " >&6; }
17704 if ${ac_cv_func_memcmp_working+:} false; then :
17705 $as_echo_n "(cached) " >&6
17706 else
17707 if test "$cross_compiling" = yes; then :
17708 ac_cv_func_memcmp_working=no
17709 else
17710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17711 /* end confdefs.h. */
17712 $ac_includes_default
17713 int
17714 main ()
17715 {
17716
17717 /* Some versions of memcmp are not 8-bit clean. */
17718 char c0 = '\100', c1 = '\200', c2 = '\201';
17719 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
17720 return 1;
17721
17722 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
17723 or more and with at least one buffer not starting on a 4-byte boundary.
17724 William Lewis provided this test program. */
17725 {
17726 char foo[21];
17727 char bar[21];
17728 int i;
17729 for (i = 0; i < 4; i++)
17730 {
17731 char *a = foo + i;
17732 char *b = bar + i;
17733 strcpy (a, "--------01111111");
17734 strcpy (b, "--------10000000");
17735 if (memcmp (a, b, 16) >= 0)
17736 return 1;
17737 }
17738 return 0;
17739 }
17740
17741 ;
17742 return 0;
17743 }
17744 _ACEOF
17745 if ac_fn_c_try_run "$LINENO"; then :
17746 ac_cv_func_memcmp_working=yes
17747 else
17748 ac_cv_func_memcmp_working=no
17749 fi
17750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17751 conftest.$ac_objext conftest.beam conftest.$ac_ext
17752 fi
17753
17754 fi
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
17756 $as_echo "$ac_cv_func_memcmp_working" >&6; }
17757 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
17758 *" memcmp.$ac_objext "* ) ;;
17759 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
17760 ;;
17761 esac
17762
17763
17764
17765
17766
17767 for ac_header in $ac_header_list
17768 do :
17769 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17770 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17771 "
17772 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17773 cat >>confdefs.h <<_ACEOF
17774 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17775 _ACEOF
17776
17777 fi
17778
17779 done
17780
17781
17782
17783
17784
17785
17786
17787
17788 for ac_func in getpagesize
17789 do :
17790 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
17791 if test "x$ac_cv_func_getpagesize" = xyes; then :
17792 cat >>confdefs.h <<_ACEOF
17793 #define HAVE_GETPAGESIZE 1
17794 _ACEOF
17795
17796 fi
17797 done
17798
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
17800 $as_echo_n "checking for working mmap... " >&6; }
17801 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
17802 $as_echo_n "(cached) " >&6
17803 else
17804 if test "$cross_compiling" = yes; then :
17805 ac_cv_func_mmap_fixed_mapped=no
17806 else
17807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17808 /* end confdefs.h. */
17809 $ac_includes_default
17810 /* malloc might have been renamed as rpl_malloc. */
17811 #undef malloc
17812
17813 /* Thanks to Mike Haertel and Jim Avera for this test.
17814 Here is a matrix of mmap possibilities:
17815 mmap private not fixed
17816 mmap private fixed at somewhere currently unmapped
17817 mmap private fixed at somewhere already mapped
17818 mmap shared not fixed
17819 mmap shared fixed at somewhere currently unmapped
17820 mmap shared fixed at somewhere already mapped
17821 For private mappings, we should verify that changes cannot be read()
17822 back from the file, nor mmap's back from the file at a different
17823 address. (There have been systems where private was not correctly
17824 implemented like the infamous i386 svr4.0, and systems where the
17825 VM page cache was not coherent with the file system buffer cache
17826 like early versions of FreeBSD and possibly contemporary NetBSD.)
17827 For shared mappings, we should conversely verify that changes get
17828 propagated back to all the places they're supposed to be.
17829
17830 Grep wants private fixed already mapped.
17831 The main things grep needs to know about mmap are:
17832 * does it exist and is it safe to write into the mmap'd area
17833 * how to use it (BSD variants) */
17834
17835 #include <fcntl.h>
17836 #include <sys/mman.h>
17837
17838 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
17839 char *malloc ();
17840 #endif
17841
17842 /* This mess was copied from the GNU getpagesize.h. */
17843 #ifndef HAVE_GETPAGESIZE
17844 # ifdef _SC_PAGESIZE
17845 # define getpagesize() sysconf(_SC_PAGESIZE)
17846 # else /* no _SC_PAGESIZE */
17847 # ifdef HAVE_SYS_PARAM_H
17848 # include <sys/param.h>
17849 # ifdef EXEC_PAGESIZE
17850 # define getpagesize() EXEC_PAGESIZE
17851 # else /* no EXEC_PAGESIZE */
17852 # ifdef NBPG
17853 # define getpagesize() NBPG * CLSIZE
17854 # ifndef CLSIZE
17855 # define CLSIZE 1
17856 # endif /* no CLSIZE */
17857 # else /* no NBPG */
17858 # ifdef NBPC
17859 # define getpagesize() NBPC
17860 # else /* no NBPC */
17861 # ifdef PAGESIZE
17862 # define getpagesize() PAGESIZE
17863 # endif /* PAGESIZE */
17864 # endif /* no NBPC */
17865 # endif /* no NBPG */
17866 # endif /* no EXEC_PAGESIZE */
17867 # else /* no HAVE_SYS_PARAM_H */
17868 # define getpagesize() 8192 /* punt totally */
17869 # endif /* no HAVE_SYS_PARAM_H */
17870 # endif /* no _SC_PAGESIZE */
17871
17872 #endif /* no HAVE_GETPAGESIZE */
17873
17874 int
17875 main ()
17876 {
17877 char *data, *data2, *data3;
17878 const char *cdata2;
17879 int i, pagesize;
17880 int fd, fd2;
17881
17882 pagesize = getpagesize ();
17883
17884 /* First, make a file with some known garbage in it. */
17885 data = (char *) malloc (pagesize);
17886 if (!data)
17887 return 1;
17888 for (i = 0; i < pagesize; ++i)
17889 *(data + i) = rand ();
17890 umask (0);
17891 fd = creat ("conftest.mmap", 0600);
17892 if (fd < 0)
17893 return 2;
17894 if (write (fd, data, pagesize) != pagesize)
17895 return 3;
17896 close (fd);
17897
17898 /* Next, check that the tail of a page is zero-filled. File must have
17899 non-zero length, otherwise we risk SIGBUS for entire page. */
17900 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
17901 if (fd2 < 0)
17902 return 4;
17903 cdata2 = "";
17904 if (write (fd2, cdata2, 1) != 1)
17905 return 5;
17906 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
17907 if (data2 == MAP_FAILED)
17908 return 6;
17909 for (i = 0; i < pagesize; ++i)
17910 if (*(data2 + i))
17911 return 7;
17912 close (fd2);
17913 if (munmap (data2, pagesize))
17914 return 8;
17915
17916 /* Next, try to mmap the file at a fixed address which already has
17917 something else allocated at it. If we can, also make sure that
17918 we see the same garbage. */
17919 fd = open ("conftest.mmap", O_RDWR);
17920 if (fd < 0)
17921 return 9;
17922 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17923 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17924 return 10;
17925 for (i = 0; i < pagesize; ++i)
17926 if (*(data + i) != *(data2 + i))
17927 return 11;
17928
17929 /* Finally, make sure that changes to the mapped area do not
17930 percolate back to the file as seen by read(). (This is a bug on
17931 some variants of i386 svr4.0.) */
17932 for (i = 0; i < pagesize; ++i)
17933 *(data2 + i) = *(data2 + i) + 1;
17934 data3 = (char *) malloc (pagesize);
17935 if (!data3)
17936 return 12;
17937 if (read (fd, data3, pagesize) != pagesize)
17938 return 13;
17939 for (i = 0; i < pagesize; ++i)
17940 if (*(data + i) != *(data3 + i))
17941 return 14;
17942 close (fd);
17943 return 0;
17944 }
17945 _ACEOF
17946 if ac_fn_c_try_run "$LINENO"; then :
17947 ac_cv_func_mmap_fixed_mapped=yes
17948 else
17949 ac_cv_func_mmap_fixed_mapped=no
17950 fi
17951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17952 conftest.$ac_objext conftest.beam conftest.$ac_ext
17953 fi
17954
17955 fi
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
17957 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
17958 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17959
17960 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
17961
17962 fi
17963 rm -f conftest.mmap conftest.txt
17964
17965 for ac_func in alarm memset mkdir
17966 do :
17967 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17968 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17969 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17970 cat >>confdefs.h <<_ACEOF
17971 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17972 _ACEOF
17973
17974 else
17975 as_fn_error $? "required library function not found" "$LINENO" 5
17976 fi
17977 done
17978
17979
17980
17981 ac_config_files="$ac_config_files mona.spec makefile config/makefile Mem/makefile BDD/makefile DFA/makefile GTA/makefile Front/makefile Lib/makefile Examples/makefile"
17982
17983 cat >confcache <<\_ACEOF
17984 # This file is a shell script that caches the results of configure
17985 # tests run on this system so they can be shared between configure
17986 # scripts and configure runs, see configure's option --config-cache.
17987 # It is not useful on other systems. If it contains results you don't
17988 # want to keep, you may remove or edit it.
17989 #
17990 # config.status only pays attention to the cache file if you give it
17991 # the --recheck option to rerun configure.
17992 #
17993 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17994 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17995 # following values.
17996
17997 _ACEOF
17998
17999 # The following way of writing the cache mishandles newlines in values,
18000 # but we know of no workaround that is simple, portable, and efficient.
18001 # So, we kill variables containing newlines.
18002 # Ultrix sh set writes to stderr and can't be redirected directly,
18003 # and sets the high bit in the cache file unless we assign to the vars.
18004 (
18005 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18006 eval ac_val=\$$ac_var
18007 case $ac_val in #(
18008 *${as_nl}*)
18009 case $ac_var in #(
18010 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18011 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18012 esac
18013 case $ac_var in #(
18014 _ | IFS | as_nl) ;; #(
18015 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18016 *) { eval $ac_var=; unset $ac_var;} ;;
18017 esac ;;
18018 esac
18019 done
18020
18021 (set) 2>&1 |
18022 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18023 *${as_nl}ac_space=\ *)
18024 # `set' does not quote correctly, so add quotes: double-quote
18025 # substitution turns \\\\ into \\, and sed turns \\ into \.
18026 sed -n \
18027 "s/'/'\\\\''/g;
18028 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18029 ;; #(
18030 *)
18031 # `set' quotes correctly as required by POSIX, so do not add quotes.
18032 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18033 ;;
18034 esac |
18035 sort
18036 ) |
18037 sed '
18038 /^ac_cv_env_/b end
18039 t clear
18040 :clear
18041 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18042 t end
18043 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18044 :end' >>confcache
18045 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18046 if test -w "$cache_file"; then
18047 if test "x$cache_file" != "x/dev/null"; then
18048 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18049 $as_echo "$as_me: updating cache $cache_file" >&6;}
18050 if test ! -f "$cache_file" || test -h "$cache_file"; then
18051 cat confcache >"$cache_file"
18052 else
18053 case $cache_file in #(
18054 */* | ?:*)
18055 mv -f confcache "$cache_file"$$ &&
18056 mv -f "$cache_file"$$ "$cache_file" ;; #(
18057 *)
18058 mv -f confcache "$cache_file" ;;
18059 esac
18060 fi
18061 fi
18062 else
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18064 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18065 fi
18066 fi
18067 rm -f confcache
18068
18069 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18070 # Let make expand exec_prefix.
18071 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18072
18073 DEFS=-DHAVE_CONFIG_H
18074
18075 ac_libobjs=
18076 ac_ltlibobjs=
18077 U=
18078 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18079 # 1. Remove the extension, and $U if already installed.
18080 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18081 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18082 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18083 # will be set to the directory where LIBOBJS objects are built.
18084 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18085 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18086 done
18087 LIBOBJS=$ac_libobjs
18088
18089 LTLIBOBJS=$ac_ltlibobjs
18090
18091
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18093 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18094 if test -n "$am_sleep_pid"; then
18095 # Hide warnings about reused PIDs.
18096 wait $am_sleep_pid 2>/dev/null
18097 fi
18098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18099 $as_echo "done" >&6; }
18100 if test -n "$EXEEXT"; then
18101 am__EXEEXT_TRUE=
18102 am__EXEEXT_FALSE='#'
18103 else
18104 am__EXEEXT_TRUE='#'
18105 am__EXEEXT_FALSE=
18106 fi
18107
18108 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18109 as_fn_error $? "conditional \"AMDEP\" was never defined.
18110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18111 fi
18112 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18113 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18115 fi
18116 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18117 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18119 fi
18120 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18121 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18123 fi
18124
18125 : "${CONFIG_STATUS=./config.status}"
18126 ac_write_fail=0
18127 ac_clean_files_save=$ac_clean_files
18128 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18130 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18131 as_write_fail=0
18132 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18133 #! $SHELL
18134 # Generated by $as_me.
18135 # Run this file to recreate the current configuration.
18136 # Compiler output produced by configure, useful for debugging
18137 # configure, is in config.log if it exists.
18138
18139 debug=false
18140 ac_cs_recheck=false
18141 ac_cs_silent=false
18142
18143 SHELL=\${CONFIG_SHELL-$SHELL}
18144 export SHELL
18145 _ASEOF
18146 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18147 ## -------------------- ##
18148 ## M4sh Initialization. ##
18149 ## -------------------- ##
18150
18151 # Be more Bourne compatible
18152 DUALCASE=1; export DUALCASE # for MKS sh
18153 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18154 emulate sh
18155 NULLCMD=:
18156 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18157 # is contrary to our usage. Disable this feature.
18158 alias -g '${1+"$@"}'='"$@"'
18159 setopt NO_GLOB_SUBST
18160 else
18161 case `(set -o) 2>/dev/null` in #(
18162 *posix*) :
18163 set -o posix ;; #(
18164 *) :
18165 ;;
18166 esac
18167 fi
18168
18169
18170 as_nl='
18171 '
18172 export as_nl
18173 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18174 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18175 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18176 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18177 # Prefer a ksh shell builtin over an external printf program on Solaris,
18178 # but without wasting forks for bash or zsh.
18179 if test -z "$BASH_VERSION$ZSH_VERSION" \
18180 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18181 as_echo='print -r --'
18182 as_echo_n='print -rn --'
18183 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18184 as_echo='printf %s\n'
18185 as_echo_n='printf %s'
18186 else
18187 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18188 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18189 as_echo_n='/usr/ucb/echo -n'
18190 else
18191 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18192 as_echo_n_body='eval
18193 arg=$1;
18194 case $arg in #(
18195 *"$as_nl"*)
18196 expr "X$arg" : "X\\(.*\\)$as_nl";
18197 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18198 esac;
18199 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18200 '
18201 export as_echo_n_body
18202 as_echo_n='sh -c $as_echo_n_body as_echo'
18203 fi
18204 export as_echo_body
18205 as_echo='sh -c $as_echo_body as_echo'
18206 fi
18207
18208 # The user is always right.
18209 if test "${PATH_SEPARATOR+set}" != set; then
18210 PATH_SEPARATOR=:
18211 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18212 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18213 PATH_SEPARATOR=';'
18214 }
18215 fi
18216
18217
18218 # IFS
18219 # We need space, tab and new line, in precisely that order. Quoting is
18220 # there to prevent editors from complaining about space-tab.
18221 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18222 # splitting by setting IFS to empty value.)
18223 IFS=" "" $as_nl"
18224
18225 # Find who we are. Look in the path if we contain no directory separator.
18226 as_myself=
18227 case $0 in #((
18228 *[\\/]* ) as_myself=$0 ;;
18229 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18230 for as_dir in $PATH
18231 do
18232 IFS=$as_save_IFS
18233 test -z "$as_dir" && as_dir=.
18234 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18235 done
18236 IFS=$as_save_IFS
18237
18238 ;;
18239 esac
18240 # We did not find ourselves, most probably we were run as `sh COMMAND'
18241 # in which case we are not to be found in the path.
18242 if test "x$as_myself" = x; then
18243 as_myself=$0
18244 fi
18245 if test ! -f "$as_myself"; then
18246 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18247 exit 1
18248 fi
18249
18250 # Unset variables that we do not need and which cause bugs (e.g. in
18251 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18252 # suppresses any "Segmentation fault" message there. '((' could
18253 # trigger a bug in pdksh 5.2.14.
18254 for as_var in BASH_ENV ENV MAIL MAILPATH
18255 do eval test x\${$as_var+set} = xset \
18256 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18257 done
18258 PS1='$ '
18259 PS2='> '
18260 PS4='+ '
18261
18262 # NLS nuisances.
18263 LC_ALL=C
18264 export LC_ALL
18265 LANGUAGE=C
18266 export LANGUAGE
18267
18268 # CDPATH.
18269 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18270
18271
18272 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18273 # ----------------------------------------
18274 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18275 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18276 # script with STATUS, using 1 if that was 0.
18277 as_fn_error ()
18278 {
18279 as_status=$1; test $as_status -eq 0 && as_status=1
18280 if test "$4"; then
18281 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18282 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18283 fi
18284 $as_echo "$as_me: error: $2" >&2
18285 as_fn_exit $as_status
18286 } # as_fn_error
18287
18288
18289 # as_fn_set_status STATUS
18290 # -----------------------
18291 # Set $? to STATUS, without forking.
18292 as_fn_set_status ()
18293 {
18294 return $1
18295 } # as_fn_set_status
18296
18297 # as_fn_exit STATUS
18298 # -----------------
18299 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18300 as_fn_exit ()
18301 {
18302 set +e
18303 as_fn_set_status $1
18304 exit $1
18305 } # as_fn_exit
18306
18307 # as_fn_unset VAR
18308 # ---------------
18309 # Portably unset VAR.
18310 as_fn_unset ()
18311 {
18312 { eval $1=; unset $1;}
18313 }
18314 as_unset=as_fn_unset
18315 # as_fn_append VAR VALUE
18316 # ----------------------
18317 # Append the text in VALUE to the end of the definition contained in VAR. Take
18318 # advantage of any shell optimizations that allow amortized linear growth over
18319 # repeated appends, instead of the typical quadratic growth present in naive
18320 # implementations.
18321 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18322 eval 'as_fn_append ()
18323 {
18324 eval $1+=\$2
18325 }'
18326 else
18327 as_fn_append ()
18328 {
18329 eval $1=\$$1\$2
18330 }
18331 fi # as_fn_append
18332
18333 # as_fn_arith ARG...
18334 # ------------------
18335 # Perform arithmetic evaluation on the ARGs, and store the result in the
18336 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18337 # must be portable across $(()) and expr.
18338 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18339 eval 'as_fn_arith ()
18340 {
18341 as_val=$(( $* ))
18342 }'
18343 else
18344 as_fn_arith ()
18345 {
18346 as_val=`expr "$@" || test $? -eq 1`
18347 }
18348 fi # as_fn_arith
18349
18350
18351 if expr a : '\(a\)' >/dev/null 2>&1 &&
18352 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18353 as_expr=expr
18354 else
18355 as_expr=false
18356 fi
18357
18358 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18359 as_basename=basename
18360 else
18361 as_basename=false
18362 fi
18363
18364 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18365 as_dirname=dirname
18366 else
18367 as_dirname=false
18368 fi
18369
18370 as_me=`$as_basename -- "$0" ||
18371 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18372 X"$0" : 'X\(//\)$' \| \
18373 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18374 $as_echo X/"$0" |
18375 sed '/^.*\/\([^/][^/]*\)\/*$/{
18376 s//\1/
18377 q
18378 }
18379 /^X\/\(\/\/\)$/{
18380 s//\1/
18381 q
18382 }
18383 /^X\/\(\/\).*/{
18384 s//\1/
18385 q
18386 }
18387 s/.*/./; q'`
18388
18389 # Avoid depending upon Character Ranges.
18390 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18391 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18392 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18393 as_cr_digits='0123456789'
18394 as_cr_alnum=$as_cr_Letters$as_cr_digits
18395
18396 ECHO_C= ECHO_N= ECHO_T=
18397 case `echo -n x` in #(((((
18398 -n*)
18399 case `echo 'xy\c'` in
18400 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18401 xy) ECHO_C='\c';;
18402 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18403 ECHO_T=' ';;
18404 esac;;
18405 *)
18406 ECHO_N='-n';;
18407 esac
18408
18409 rm -f conf$$ conf$$.exe conf$$.file
18410 if test -d conf$$.dir; then
18411 rm -f conf$$.dir/conf$$.file
18412 else
18413 rm -f conf$$.dir
18414 mkdir conf$$.dir 2>/dev/null
18415 fi
18416 if (echo >conf$$.file) 2>/dev/null; then
18417 if ln -s conf$$.file conf$$ 2>/dev/null; then
18418 as_ln_s='ln -s'
18419 # ... but there are two gotchas:
18420 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18421 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18422 # In both cases, we have to default to `cp -pR'.
18423 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18424 as_ln_s='cp -pR'
18425 elif ln conf$$.file conf$$ 2>/dev/null; then
18426 as_ln_s=ln
18427 else
18428 as_ln_s='cp -pR'
18429 fi
18430 else
18431 as_ln_s='cp -pR'
18432 fi
18433 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18434 rmdir conf$$.dir 2>/dev/null
18435
18436
18437 # as_fn_mkdir_p
18438 # -------------
18439 # Create "$as_dir" as a directory, including parents if necessary.
18440 as_fn_mkdir_p ()
18441 {
18442
18443 case $as_dir in #(
18444 -*) as_dir=./$as_dir;;
18445 esac
18446 test -d "$as_dir" || eval $as_mkdir_p || {
18447 as_dirs=
18448 while :; do
18449 case $as_dir in #(
18450 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18451 *) as_qdir=$as_dir;;
18452 esac
18453 as_dirs="'$as_qdir' $as_dirs"
18454 as_dir=`$as_dirname -- "$as_dir" ||
18455 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18456 X"$as_dir" : 'X\(//\)[^/]' \| \
18457 X"$as_dir" : 'X\(//\)$' \| \
18458 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18459 $as_echo X"$as_dir" |
18460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18461 s//\1/
18462 q
18463 }
18464 /^X\(\/\/\)[^/].*/{
18465 s//\1/
18466 q
18467 }
18468 /^X\(\/\/\)$/{
18469 s//\1/
18470 q
18471 }
18472 /^X\(\/\).*/{
18473 s//\1/
18474 q
18475 }
18476 s/.*/./; q'`
18477 test -d "$as_dir" && break
18478 done
18479 test -z "$as_dirs" || eval "mkdir $as_dirs"
18480 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18481
18482
18483 } # as_fn_mkdir_p
18484 if mkdir -p . 2>/dev/null; then
18485 as_mkdir_p='mkdir -p "$as_dir"'
18486 else
18487 test -d ./-p && rmdir ./-p
18488 as_mkdir_p=false
18489 fi
18490
18491
18492 # as_fn_executable_p FILE
18493 # -----------------------
18494 # Test if FILE is an executable regular file.
18495 as_fn_executable_p ()
18496 {
18497 test -f "$1" && test -x "$1"
18498 } # as_fn_executable_p
18499 as_test_x='test -x'
18500 as_executable_p=as_fn_executable_p
18501
18502 # Sed expression to map a string onto a valid CPP name.
18503 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18504
18505 # Sed expression to map a string onto a valid variable name.
18506 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18507
18508
18509 exec 6>&1
18510 ## ----------------------------------- ##
18511 ## Main body of $CONFIG_STATUS script. ##
18512 ## ----------------------------------- ##
18513 _ASEOF
18514 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18515
18516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18517 # Save the log message, to keep $0 and so on meaningful, and to
18518 # report actual input values of CONFIG_FILES etc. instead of their
18519 # values after options handling.
18520 ac_log="
18521 This file was extended by mona $as_me 1.4, which was
18522 generated by GNU Autoconf 2.69. Invocation command line was
18523
18524 CONFIG_FILES = $CONFIG_FILES
18525 CONFIG_HEADERS = $CONFIG_HEADERS
18526 CONFIG_LINKS = $CONFIG_LINKS
18527 CONFIG_COMMANDS = $CONFIG_COMMANDS
18528 $ $0 $@
18529
18530 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18531 "
18532
18533 _ACEOF
18534
18535 case $ac_config_files in *"
18536 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18537 esac
18538
18539 case $ac_config_headers in *"
18540 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18541 esac
18542
18543
18544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18545 # Files that config.status was made for.
18546 config_files="$ac_config_files"
18547 config_headers="$ac_config_headers"
18548 config_commands="$ac_config_commands"
18549
18550 _ACEOF
18551
18552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18553 ac_cs_usage="\
18554 \`$as_me' instantiates files and other configuration actions
18555 from templates according to the current configuration. Unless the files
18556 and actions are specified as TAGs, all are instantiated by default.
18557
18558 Usage: $0 [OPTION]... [TAG]...
18559
18560 -h, --help print this help, then exit
18561 -V, --version print version number and configuration settings, then exit
18562 --config print configuration, then exit
18563 -q, --quiet, --silent
18564 do not print progress messages
18565 -d, --debug don't remove temporary files
18566 --recheck update $as_me by reconfiguring in the same conditions
18567 --file=FILE[:TEMPLATE]
18568 instantiate the configuration file FILE
18569 --header=FILE[:TEMPLATE]
18570 instantiate the configuration header FILE
18571
18572 Configuration files:
18573 $config_files
18574
18575 Configuration headers:
18576 $config_headers
18577
18578 Configuration commands:
18579 $config_commands
18580
18581 Report bugs to <[email protected]>.
18582 mona home page: <http://www.brics.dk/mona/>."
18583
18584 _ACEOF
18585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18586 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18587 ac_cs_version="\\
18588 mona config.status 1.4
18589 configured by $0, generated by GNU Autoconf 2.69,
18590 with options \\"\$ac_cs_config\\"
18591
18592 Copyright (C) 2012 Free Software Foundation, Inc.
18593 This config.status script is free software; the Free Software Foundation
18594 gives unlimited permission to copy, distribute and modify it."
18595
18596 ac_pwd='$ac_pwd'
18597 srcdir='$srcdir'
18598 INSTALL='$INSTALL'
18599 MKDIR_P='$MKDIR_P'
18600 AWK='$AWK'
18601 test -n "\$AWK" || AWK=awk
18602 _ACEOF
18603
18604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18605 # The default lists apply if the user does not specify any file.
18606 ac_need_defaults=:
18607 while test $# != 0
18608 do
18609 case $1 in
18610 --*=?*)
18611 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18612 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18613 ac_shift=:
18614 ;;
18615 --*=)
18616 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18617 ac_optarg=
18618 ac_shift=:
18619 ;;
18620 *)
18621 ac_option=$1
18622 ac_optarg=$2
18623 ac_shift=shift
18624 ;;
18625 esac
18626
18627 case $ac_option in
18628 # Handling of the options.
18629 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18630 ac_cs_recheck=: ;;
18631 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18632 $as_echo "$ac_cs_version"; exit ;;
18633 --config | --confi | --conf | --con | --co | --c )
18634 $as_echo "$ac_cs_config"; exit ;;
18635 --debug | --debu | --deb | --de | --d | -d )
18636 debug=: ;;
18637 --file | --fil | --fi | --f )
18638 $ac_shift
18639 case $ac_optarg in
18640 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18641 '') as_fn_error $? "missing file argument" ;;
18642 esac
18643 as_fn_append CONFIG_FILES " '$ac_optarg'"
18644 ac_need_defaults=false;;
18645 --header | --heade | --head | --hea )
18646 $ac_shift
18647 case $ac_optarg in
18648 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18649 esac
18650 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18651 ac_need_defaults=false;;
18652 --he | --h)
18653 # Conflict between --help and --header
18654 as_fn_error $? "ambiguous option: \`$1'
18655 Try \`$0 --help' for more information.";;
18656 --help | --hel | -h )
18657 $as_echo "$ac_cs_usage"; exit ;;
18658 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18659 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18660 ac_cs_silent=: ;;
18661
18662 # This is an error.
18663 -*) as_fn_error $? "unrecognized option: \`$1'
18664 Try \`$0 --help' for more information." ;;
18665
18666 *) as_fn_append ac_config_targets " $1"
18667 ac_need_defaults=false ;;
18668
18669 esac
18670 shift
18671 done
18672
18673 ac_configure_extra_args=
18674
18675 if $ac_cs_silent; then
18676 exec 6>/dev/null
18677 ac_configure_extra_args="$ac_configure_extra_args --silent"
18678 fi
18679
18680 _ACEOF
18681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18682 if \$ac_cs_recheck; then
18683 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18684 shift
18685 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18686 CONFIG_SHELL='$SHELL'
18687 export CONFIG_SHELL
18688 exec "\$@"
18689 fi
18690
18691 _ACEOF
18692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18693 exec 5>>config.log
18694 {
18695 echo
18696 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18697 ## Running $as_me. ##
18698 _ASBOX
18699 $as_echo "$ac_log"
18700 } >&5
18701
18702 _ACEOF
18703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18704 #
18705 # INIT-COMMANDS
18706 #
18707 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
18708
18709
18710 # The HP-UX ksh and POSIX shell print the target directory to stdout
18711 # if CDPATH is set.
18712 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18713
18714 sed_quote_subst='$sed_quote_subst'
18715 double_quote_subst='$double_quote_subst'
18716 delay_variable_subst='$delay_variable_subst'
18717 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18718 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18719 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18720 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18721 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18722 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18723 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18724 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18725 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18726 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18727 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18728 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18729 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18730 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18731 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18732 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18733 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18734 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18735 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18736 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18737 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18738 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18739 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18740 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18741 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18742 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18743 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18744 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18745 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18746 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18747 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18748 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18749 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18750 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18751 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18752 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18753 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18754 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18755 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18756 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18757 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18758 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18759 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18760 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18761 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18762 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18763 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18764 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18765 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18766 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18767 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18768 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18769 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18770 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18771 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18772 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18773 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18774 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18775 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"`'
18776 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18777 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18778 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18779 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18780 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18781 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18782 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18783 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18784 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18785 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18786 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18787 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18788 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18789 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18790 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18791 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18792 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18793 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18794 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18795 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18796 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18797 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18798 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18799 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18800 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18801 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18802 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18803 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18804 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18805 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18806 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18807 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18808 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18809 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18810 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18811 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18812 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18813 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18814 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18815 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18816 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18817 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18818 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18819 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18820 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18821 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18822 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18823 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18824 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18825 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18826 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18827 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18828 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18829 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18830 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18831 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18832 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18833 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18834 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18835 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18836 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18837 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18838 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18839 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18840 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18841 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18842 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18843 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18844 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18845 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18846 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18847 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18848 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18849 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18850 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18851 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18852 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18853 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18854 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18855 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18856 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18857 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18858 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18859 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18860 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18861 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18862 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18863 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18864 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18865 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18866 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18867 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18868 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18869 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18870 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18871 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18872 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18873 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18874 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18875 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18876 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18877 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18878 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18879 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18880 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18881 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18882 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18883 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18884 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18885 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18886 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18887 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18888 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18889 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18890 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18891 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18892 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18893 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18894 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18895 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18896 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18897 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18898 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18899 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18900 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18901 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18902 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18903 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18904 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18905 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18906
18907 LTCC='$LTCC'
18908 LTCFLAGS='$LTCFLAGS'
18909 compiler='$compiler_DEFAULT'
18910
18911 # A function that is used when there is no print builtin or printf.
18912 func_fallback_echo ()
18913 {
18914 eval 'cat <<_LTECHO_EOF
18915 \$1
18916 _LTECHO_EOF'
18917 }
18918
18919 # Quote evaled strings.
18920 for var in SHELL \
18921 ECHO \
18922 PATH_SEPARATOR \
18923 SED \
18924 GREP \
18925 EGREP \
18926 FGREP \
18927 LD \
18928 NM \
18929 LN_S \
18930 lt_SP2NL \
18931 lt_NL2SP \
18932 reload_flag \
18933 OBJDUMP \
18934 deplibs_check_method \
18935 file_magic_cmd \
18936 file_magic_glob \
18937 want_nocaseglob \
18938 DLLTOOL \
18939 sharedlib_from_linklib_cmd \
18940 AR \
18941 AR_FLAGS \
18942 archiver_list_spec \
18943 STRIP \
18944 RANLIB \
18945 CC \
18946 CFLAGS \
18947 compiler \
18948 lt_cv_sys_global_symbol_pipe \
18949 lt_cv_sys_global_symbol_to_cdecl \
18950 lt_cv_sys_global_symbol_to_import \
18951 lt_cv_sys_global_symbol_to_c_name_address \
18952 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18953 lt_cv_nm_interface \
18954 nm_file_list_spec \
18955 lt_cv_truncate_bin \
18956 lt_prog_compiler_no_builtin_flag \
18957 lt_prog_compiler_pic \
18958 lt_prog_compiler_wl \
18959 lt_prog_compiler_static \
18960 lt_cv_prog_compiler_c_o \
18961 need_locks \
18962 MANIFEST_TOOL \
18963 DSYMUTIL \
18964 NMEDIT \
18965 LIPO \
18966 OTOOL \
18967 OTOOL64 \
18968 shrext_cmds \
18969 export_dynamic_flag_spec \
18970 whole_archive_flag_spec \
18971 compiler_needs_object \
18972 with_gnu_ld \
18973 allow_undefined_flag \
18974 no_undefined_flag \
18975 hardcode_libdir_flag_spec \
18976 hardcode_libdir_separator \
18977 exclude_expsyms \
18978 include_expsyms \
18979 file_list_spec \
18980 variables_saved_for_relink \
18981 libname_spec \
18982 library_names_spec \
18983 soname_spec \
18984 install_override_mode \
18985 finish_eval \
18986 old_striplib \
18987 striplib \
18988 compiler_lib_search_dirs \
18989 predep_objects \
18990 postdep_objects \
18991 predeps \
18992 postdeps \
18993 compiler_lib_search_path \
18994 LD_CXX \
18995 reload_flag_CXX \
18996 compiler_CXX \
18997 lt_prog_compiler_no_builtin_flag_CXX \
18998 lt_prog_compiler_pic_CXX \
18999 lt_prog_compiler_wl_CXX \
19000 lt_prog_compiler_static_CXX \
19001 lt_cv_prog_compiler_c_o_CXX \
19002 export_dynamic_flag_spec_CXX \
19003 whole_archive_flag_spec_CXX \
19004 compiler_needs_object_CXX \
19005 with_gnu_ld_CXX \
19006 allow_undefined_flag_CXX \
19007 no_undefined_flag_CXX \
19008 hardcode_libdir_flag_spec_CXX \
19009 hardcode_libdir_separator_CXX \
19010 exclude_expsyms_CXX \
19011 include_expsyms_CXX \
19012 file_list_spec_CXX \
19013 compiler_lib_search_dirs_CXX \
19014 predep_objects_CXX \
19015 postdep_objects_CXX \
19016 predeps_CXX \
19017 postdeps_CXX \
19018 compiler_lib_search_path_CXX; do
19019 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19020 *[\\\\\\\`\\"\\\$]*)
19021 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19022 ;;
19023 *)
19024 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19025 ;;
19026 esac
19027 done
19028
19029 # Double-quote double-evaled strings.
19030 for var in reload_cmds \
19031 old_postinstall_cmds \
19032 old_postuninstall_cmds \
19033 old_archive_cmds \
19034 extract_expsyms_cmds \
19035 old_archive_from_new_cmds \
19036 old_archive_from_expsyms_cmds \
19037 archive_cmds \
19038 archive_expsym_cmds \
19039 module_cmds \
19040 module_expsym_cmds \
19041 export_symbols_cmds \
19042 prelink_cmds \
19043 postlink_cmds \
19044 postinstall_cmds \
19045 postuninstall_cmds \
19046 finish_cmds \
19047 sys_lib_search_path_spec \
19048 configure_time_dlsearch_path \
19049 configure_time_lt_sys_library_path \
19050 reload_cmds_CXX \
19051 old_archive_cmds_CXX \
19052 old_archive_from_new_cmds_CXX \
19053 old_archive_from_expsyms_cmds_CXX \
19054 archive_cmds_CXX \
19055 archive_expsym_cmds_CXX \
19056 module_cmds_CXX \
19057 module_expsym_cmds_CXX \
19058 export_symbols_cmds_CXX \
19059 prelink_cmds_CXX \
19060 postlink_cmds_CXX; do
19061 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19062 *[\\\\\\\`\\"\\\$]*)
19063 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19064 ;;
19065 *)
19066 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19067 ;;
19068 esac
19069 done
19070
19071 ac_aux_dir='$ac_aux_dir'
19072
19073 # See if we are running on zsh, and set the options that allow our
19074 # commands through without removal of \ escapes INIT.
19075 if test -n "\${ZSH_VERSION+set}"; then
19076 setopt NO_GLOB_SUBST
19077 fi
19078
19079
19080 PACKAGE='$PACKAGE'
19081 VERSION='$VERSION'
19082 RM='$RM'
19083 ofile='$ofile'
19084
19085
19086
19087
19088
19089
19090 _ACEOF
19091
19092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19093
19094 # Handling of arguments.
19095 for ac_config_target in $ac_config_targets
19096 do
19097 case $ac_config_target in
19098 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19099 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19100 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19101 "mona.spec") CONFIG_FILES="$CONFIG_FILES mona.spec" ;;
19102 "makefile") CONFIG_FILES="$CONFIG_FILES makefile" ;;
19103 "config/makefile") CONFIG_FILES="$CONFIG_FILES config/makefile" ;;
19104 "Mem/makefile") CONFIG_FILES="$CONFIG_FILES Mem/makefile" ;;
19105 "BDD/makefile") CONFIG_FILES="$CONFIG_FILES BDD/makefile" ;;
19106 "DFA/makefile") CONFIG_FILES="$CONFIG_FILES DFA/makefile" ;;
19107 "GTA/makefile") CONFIG_FILES="$CONFIG_FILES GTA/makefile" ;;
19108 "Front/makefile") CONFIG_FILES="$CONFIG_FILES Front/makefile" ;;
19109 "Lib/makefile") CONFIG_FILES="$CONFIG_FILES Lib/makefile" ;;
19110 "Examples/makefile") CONFIG_FILES="$CONFIG_FILES Examples/makefile" ;;
19111
19112 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19113 esac
19114 done
19115
19116
19117 # If the user did not use the arguments to specify the items to instantiate,
19118 # then the envvar interface is used. Set only those that are not.
19119 # We use the long form for the default assignment because of an extremely
19120 # bizarre bug on SunOS 4.1.3.
19121 if $ac_need_defaults; then
19122 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19123 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19124 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19125 fi
19126
19127 # Have a temporary directory for convenience. Make it in the build tree
19128 # simply because there is no reason against having it here, and in addition,
19129 # creating and moving files from /tmp can sometimes cause problems.
19130 # Hook for its removal unless debugging.
19131 # Note that there is a small window in which the directory will not be cleaned:
19132 # after its creation but before its name has been assigned to `$tmp'.
19133 $debug ||
19134 {
19135 tmp= ac_tmp=
19136 trap 'exit_status=$?
19137 : "${ac_tmp:=$tmp}"
19138 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19139 ' 0
19140 trap 'as_fn_exit 1' 1 2 13 15
19141 }
19142 # Create a (secure) tmp directory for tmp files.
19143
19144 {
19145 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19146 test -d "$tmp"
19147 } ||
19148 {
19149 tmp=./conf$$-$RANDOM
19150 (umask 077 && mkdir "$tmp")
19151 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19152 ac_tmp=$tmp
19153
19154 # Set up the scripts for CONFIG_FILES section.
19155 # No need to generate them if there are no CONFIG_FILES.
19156 # This happens for instance with `./config.status config.h'.
19157 if test -n "$CONFIG_FILES"; then
19158
19159
19160 ac_cr=`echo X | tr X '\015'`
19161 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19162 # But we know of no other shell where ac_cr would be empty at this
19163 # point, so we can use a bashism as a fallback.
19164 if test "x$ac_cr" = x; then
19165 eval ac_cr=\$\'\\r\'
19166 fi
19167 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19168 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19169 ac_cs_awk_cr='\\r'
19170 else
19171 ac_cs_awk_cr=$ac_cr
19172 fi
19173
19174 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19175 _ACEOF
19176
19177
19178 {
19179 echo "cat >conf$$subs.awk <<_ACEOF" &&
19180 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19181 echo "_ACEOF"
19182 } >conf$$subs.sh ||
19183 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19184 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19185 ac_delim='%!_!# '
19186 for ac_last_try in false false false false false :; do
19187 . ./conf$$subs.sh ||
19188 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19189
19190 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19191 if test $ac_delim_n = $ac_delim_num; then
19192 break
19193 elif $ac_last_try; then
19194 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19195 else
19196 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19197 fi
19198 done
19199 rm -f conf$$subs.sh
19200
19201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19202 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19203 _ACEOF
19204 sed -n '
19205 h
19206 s/^/S["/; s/!.*/"]=/
19207 p
19208 g
19209 s/^[^!]*!//
19210 :repl
19211 t repl
19212 s/'"$ac_delim"'$//
19213 t delim
19214 :nl
19215 h
19216 s/\(.\{148\}\)..*/\1/
19217 t more1
19218 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19219 p
19220 n
19221 b repl
19222 :more1
19223 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19224 p
19225 g
19226 s/.\{148\}//
19227 t nl
19228 :delim
19229 h
19230 s/\(.\{148\}\)..*/\1/
19231 t more2
19232 s/["\\]/\\&/g; s/^/"/; s/$/"/
19233 p
19234 b
19235 :more2
19236 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19237 p
19238 g
19239 s/.\{148\}//
19240 t delim
19241 ' <conf$$subs.awk | sed '
19242 /^[^""]/{
19243 N
19244 s/\n//
19245 }
19246 ' >>$CONFIG_STATUS || ac_write_fail=1
19247 rm -f conf$$subs.awk
19248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19249 _ACAWK
19250 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19251 for (key in S) S_is_set[key] = 1
19252 FS = ""
19253
19254 }
19255 {
19256 line = $ 0
19257 nfields = split(line, field, "@")
19258 substed = 0
19259 len = length(field[1])
19260 for (i = 2; i < nfields; i++) {
19261 key = field[i]
19262 keylen = length(key)
19263 if (S_is_set[key]) {
19264 value = S[key]
19265 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19266 len += length(value) + length(field[++i])
19267 substed = 1
19268 } else
19269 len += 1 + keylen
19270 }
19271
19272 print line
19273 }
19274
19275 _ACAWK
19276 _ACEOF
19277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19278 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19279 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19280 else
19281 cat
19282 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19283 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19284 _ACEOF
19285
19286 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19287 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19288 # trailing colons and then remove the whole line if VPATH becomes empty
19289 # (actually we leave an empty line to preserve line numbers).
19290 if test "x$srcdir" = x.; then
19291 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19292 h
19293 s///
19294 s/^/:/
19295 s/[ ]*$/:/
19296 s/:\$(srcdir):/:/g
19297 s/:\${srcdir}:/:/g
19298 s/:@srcdir@:/:/g
19299 s/^:*//
19300 s/:*$//
19301 x
19302 s/\(=[ ]*\).*/\1/
19303 G
19304 s/\n//
19305 s/^[^=]*=[ ]*$//
19306 }'
19307 fi
19308
19309 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19310 fi # test -n "$CONFIG_FILES"
19311
19312 # Set up the scripts for CONFIG_HEADERS section.
19313 # No need to generate them if there are no CONFIG_HEADERS.
19314 # This happens for instance with `./config.status Makefile'.
19315 if test -n "$CONFIG_HEADERS"; then
19316 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19317 BEGIN {
19318 _ACEOF
19319
19320 # Transform confdefs.h into an awk script `defines.awk', embedded as
19321 # here-document in config.status, that substitutes the proper values into
19322 # config.h.in to produce config.h.
19323
19324 # Create a delimiter string that does not exist in confdefs.h, to ease
19325 # handling of long lines.
19326 ac_delim='%!_!# '
19327 for ac_last_try in false false :; do
19328 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19329 if test -z "$ac_tt"; then
19330 break
19331 elif $ac_last_try; then
19332 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19333 else
19334 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19335 fi
19336 done
19337
19338 # For the awk script, D is an array of macro values keyed by name,
19339 # likewise P contains macro parameters if any. Preserve backslash
19340 # newline sequences.
19341
19342 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19343 sed -n '
19344 s/.\{148\}/&'"$ac_delim"'/g
19345 t rset
19346 :rset
19347 s/^[ ]*#[ ]*define[ ][ ]*/ /
19348 t def
19349 d
19350 :def
19351 s/\\$//
19352 t bsnl
19353 s/["\\]/\\&/g
19354 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19355 D["\1"]=" \3"/p
19356 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19357 d
19358 :bsnl
19359 s/["\\]/\\&/g
19360 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19361 D["\1"]=" \3\\\\\\n"\\/p
19362 t cont
19363 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19364 t cont
19365 d
19366 :cont
19367 n
19368 s/.\{148\}/&'"$ac_delim"'/g
19369 t clear
19370 :clear
19371 s/\\$//
19372 t bsnlc
19373 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19374 d
19375 :bsnlc
19376 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19377 b cont
19378 ' <confdefs.h | sed '
19379 s/'"$ac_delim"'/"\\\
19380 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19381
19382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19383 for (key in D) D_is_set[key] = 1
19384 FS = ""
19385 }
19386 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19387 line = \$ 0
19388 split(line, arg, " ")
19389 if (arg[1] == "#") {
19390 defundef = arg[2]
19391 mac1 = arg[3]
19392 } else {
19393 defundef = substr(arg[1], 2)
19394 mac1 = arg[2]
19395 }
19396 split(mac1, mac2, "(") #)
19397 macro = mac2[1]
19398 prefix = substr(line, 1, index(line, defundef) - 1)
19399 if (D_is_set[macro]) {
19400 # Preserve the white space surrounding the "#".
19401 print prefix "define", macro P[macro] D[macro]
19402 next
19403 } else {
19404 # Replace #undef with comments. This is necessary, for example,
19405 # in the case of _POSIX_SOURCE, which is predefined and required
19406 # on some systems where configure will not decide to define it.
19407 if (defundef == "undef") {
19408 print "/*", prefix defundef, macro, "*/"
19409 next
19410 }
19411 }
19412 }
19413 { print }
19414 _ACAWK
19415 _ACEOF
19416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19417 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19418 fi # test -n "$CONFIG_HEADERS"
19419
19420
19421 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19422 shift
19423 for ac_tag
19424 do
19425 case $ac_tag in
19426 :[FHLC]) ac_mode=$ac_tag; continue;;
19427 esac
19428 case $ac_mode$ac_tag in
19429 :[FHL]*:*);;
19430 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19431 :[FH]-) ac_tag=-:-;;
19432 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19433 esac
19434 ac_save_IFS=$IFS
19435 IFS=:
19436 set x $ac_tag
19437 IFS=$ac_save_IFS
19438 shift
19439 ac_file=$1
19440 shift
19441
19442 case $ac_mode in
19443 :L) ac_source=$1;;
19444 :[FH])
19445 ac_file_inputs=
19446 for ac_f
19447 do
19448 case $ac_f in
19449 -) ac_f="$ac_tmp/stdin";;
19450 *) # Look for the file first in the build tree, then in the source tree
19451 # (if the path is not absolute). The absolute path cannot be DOS-style,
19452 # because $ac_f cannot contain `:'.
19453 test -f "$ac_f" ||
19454 case $ac_f in
19455 [\\/$]*) false;;
19456 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19457 esac ||
19458 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19459 esac
19460 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19461 as_fn_append ac_file_inputs " '$ac_f'"
19462 done
19463
19464 # Let's still pretend it is `configure' which instantiates (i.e., don't
19465 # use $as_me), people would be surprised to read:
19466 # /* config.h. Generated by config.status. */
19467 configure_input='Generated from '`
19468 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19469 `' by configure.'
19470 if test x"$ac_file" != x-; then
19471 configure_input="$ac_file. $configure_input"
19472 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19473 $as_echo "$as_me: creating $ac_file" >&6;}
19474 fi
19475 # Neutralize special characters interpreted by sed in replacement strings.
19476 case $configure_input in #(
19477 *\&* | *\|* | *\\* )
19478 ac_sed_conf_input=`$as_echo "$configure_input" |
19479 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19480 *) ac_sed_conf_input=$configure_input;;
19481 esac
19482
19483 case $ac_tag in
19484 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19485 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19486 esac
19487 ;;
19488 esac
19489
19490 ac_dir=`$as_dirname -- "$ac_file" ||
19491 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19492 X"$ac_file" : 'X\(//\)[^/]' \| \
19493 X"$ac_file" : 'X\(//\)$' \| \
19494 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19495 $as_echo X"$ac_file" |
19496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19497 s//\1/
19498 q
19499 }
19500 /^X\(\/\/\)[^/].*/{
19501 s//\1/
19502 q
19503 }
19504 /^X\(\/\/\)$/{
19505 s//\1/
19506 q
19507 }
19508 /^X\(\/\).*/{
19509 s//\1/
19510 q
19511 }
19512 s/.*/./; q'`
19513 as_dir="$ac_dir"; as_fn_mkdir_p
19514 ac_builddir=.
19515
19516 case "$ac_dir" in
19517 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19518 *)
19519 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19520 # A ".." for each directory in $ac_dir_suffix.
19521 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19522 case $ac_top_builddir_sub in
19523 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19524 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19525 esac ;;
19526 esac
19527 ac_abs_top_builddir=$ac_pwd
19528 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19529 # for backward compatibility:
19530 ac_top_builddir=$ac_top_build_prefix
19531
19532 case $srcdir in
19533 .) # We are building in place.
19534 ac_srcdir=.
19535 ac_top_srcdir=$ac_top_builddir_sub
19536 ac_abs_top_srcdir=$ac_pwd ;;
19537 [\\/]* | ?:[\\/]* ) # Absolute name.
19538 ac_srcdir=$srcdir$ac_dir_suffix;
19539 ac_top_srcdir=$srcdir
19540 ac_abs_top_srcdir=$srcdir ;;
19541 *) # Relative name.
19542 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19543 ac_top_srcdir=$ac_top_build_prefix$srcdir
19544 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19545 esac
19546 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19547
19548
19549 case $ac_mode in
19550 :F)
19551 #
19552 # CONFIG_FILE
19553 #
19554
19555 case $INSTALL in
19556 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19557 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19558 esac
19559 ac_MKDIR_P=$MKDIR_P
19560 case $MKDIR_P in
19561 [\\/$]* | ?:[\\/]* ) ;;
19562 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19563 esac
19564 _ACEOF
19565
19566 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19567 # If the template does not know about datarootdir, expand it.
19568 # FIXME: This hack should be removed a few years after 2.60.
19569 ac_datarootdir_hack=; ac_datarootdir_seen=
19570 ac_sed_dataroot='
19571 /datarootdir/ {
19572 p
19573 q
19574 }
19575 /@datadir@/p
19576 /@docdir@/p
19577 /@infodir@/p
19578 /@localedir@/p
19579 /@mandir@/p'
19580 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19581 *datarootdir*) ac_datarootdir_seen=yes;;
19582 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19584 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19585 _ACEOF
19586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19587 ac_datarootdir_hack='
19588 s&@datadir@&$datadir&g
19589 s&@docdir@&$docdir&g
19590 s&@infodir@&$infodir&g
19591 s&@localedir@&$localedir&g
19592 s&@mandir@&$mandir&g
19593 s&\\\${datarootdir}&$datarootdir&g' ;;
19594 esac
19595 _ACEOF
19596
19597 # Neutralize VPATH when `$srcdir' = `.'.
19598 # Shell code in configure.ac might set extrasub.
19599 # FIXME: do we really want to maintain this feature?
19600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19601 ac_sed_extra="$ac_vpsub
19602 $extrasub
19603 _ACEOF
19604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19605 :t
19606 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19607 s|@configure_input@|$ac_sed_conf_input|;t t
19608 s&@top_builddir@&$ac_top_builddir_sub&;t t
19609 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19610 s&@srcdir@&$ac_srcdir&;t t
19611 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19612 s&@top_srcdir@&$ac_top_srcdir&;t t
19613 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19614 s&@builddir@&$ac_builddir&;t t
19615 s&@abs_builddir@&$ac_abs_builddir&;t t
19616 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19617 s&@INSTALL@&$ac_INSTALL&;t t
19618 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19619 $ac_datarootdir_hack
19620 "
19621 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19622 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19623
19624 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19625 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19626 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19627 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19629 which seems to be undefined. Please make sure it is defined" >&5
19630 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19631 which seems to be undefined. Please make sure it is defined" >&2;}
19632
19633 rm -f "$ac_tmp/stdin"
19634 case $ac_file in
19635 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19636 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19637 esac \
19638 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19639 ;;
19640 :H)
19641 #
19642 # CONFIG_HEADER
19643 #
19644 if test x"$ac_file" != x-; then
19645 {
19646 $as_echo "/* $configure_input */" \
19647 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19648 } >"$ac_tmp/config.h" \
19649 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19650 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19651 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19652 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19653 else
19654 rm -f "$ac_file"
19655 mv "$ac_tmp/config.h" "$ac_file" \
19656 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19657 fi
19658 else
19659 $as_echo "/* $configure_input */" \
19660 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19661 || as_fn_error $? "could not create -" "$LINENO" 5
19662 fi
19663 # Compute "$ac_file"'s index in $config_headers.
19664 _am_arg="$ac_file"
19665 _am_stamp_count=1
19666 for _am_header in $config_headers :; do
19667 case $_am_header in
19668 $_am_arg | $_am_arg:* )
19669 break ;;
19670 * )
19671 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19672 esac
19673 done
19674 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19675 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19676 X"$_am_arg" : 'X\(//\)[^/]' \| \
19677 X"$_am_arg" : 'X\(//\)$' \| \
19678 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19679 $as_echo X"$_am_arg" |
19680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19681 s//\1/
19682 q
19683 }
19684 /^X\(\/\/\)[^/].*/{
19685 s//\1/
19686 q
19687 }
19688 /^X\(\/\/\)$/{
19689 s//\1/
19690 q
19691 }
19692 /^X\(\/\).*/{
19693 s//\1/
19694 q
19695 }
19696 s/.*/./; q'`/stamp-h$_am_stamp_count
19697 ;;
19698
19699 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19700 $as_echo "$as_me: executing $ac_file commands" >&6;}
19701 ;;
19702 esac
19703
19704
19705 case $ac_file$ac_mode in
19706 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19707 # Older Autoconf quotes --file arguments for eval, but not when files
19708 # are listed without --file. Let's play safe and only enable the eval
19709 # if we detect the quoting.
19710 # TODO: see whether this extra hack can be removed once we start
19711 # requiring Autoconf 2.70 or later.
19712 case $CONFIG_FILES in #(
19713 *\'*) :
19714 eval set x "$CONFIG_FILES" ;; #(
19715 *) :
19716 set x $CONFIG_FILES ;; #(
19717 *) :
19718 ;;
19719 esac
19720 shift
19721 # Used to flag and report bootstrapping failures.
19722 am_rc=0
19723 for am_mf
19724 do
19725 # Strip MF so we end up with the name of the file.
19726 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
19727 # Check whether this is an Automake generated Makefile which includes
19728 # dependency-tracking related rules and includes.
19729 # Grep'ing the whole file directly is not great: AIX grep has a line
19730 # limit of 2048, but all sed's we know have understand at least 4000.
19731 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
19732 || continue
19733 am_dirpart=`$as_dirname -- "$am_mf" ||
19734 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19735 X"$am_mf" : 'X\(//\)[^/]' \| \
19736 X"$am_mf" : 'X\(//\)$' \| \
19737 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19738 $as_echo X"$am_mf" |
19739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19740 s//\1/
19741 q
19742 }
19743 /^X\(\/\/\)[^/].*/{
19744 s//\1/
19745 q
19746 }
19747 /^X\(\/\/\)$/{
19748 s//\1/
19749 q
19750 }
19751 /^X\(\/\).*/{
19752 s//\1/
19753 q
19754 }
19755 s/.*/./; q'`
19756 am_filepart=`$as_basename -- "$am_mf" ||
19757 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
19758 X"$am_mf" : 'X\(//\)$' \| \
19759 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19760 $as_echo X/"$am_mf" |
19761 sed '/^.*\/\([^/][^/]*\)\/*$/{
19762 s//\1/
19763 q
19764 }
19765 /^X\/\(\/\/\)$/{
19766 s//\1/
19767 q
19768 }
19769 /^X\/\(\/\).*/{
19770 s//\1/
19771 q
19772 }
19773 s/.*/./; q'`
19774 { echo "$as_me:$LINENO: cd "$am_dirpart" \
19775 && sed -e '/# am--include-marker/d' "$am_filepart" \
19776 | $MAKE -f - am--depfiles" >&5
19777 (cd "$am_dirpart" \
19778 && sed -e '/# am--include-marker/d' "$am_filepart" \
19779 | $MAKE -f - am--depfiles) >&5 2>&5
19780 ac_status=$?
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); } || am_rc=$?
19783 done
19784 if test $am_rc -ne 0; then
19785 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19787 as_fn_error $? "Something went wrong bootstrapping makefile fragments
19788 for automatic dependency tracking. Try re-running configure with the
19789 '--disable-dependency-tracking' option to at least be able to build
19790 the package (albeit without support for automatic dependency tracking).
19791 See \`config.log' for more details" "$LINENO" 5; }
19792 fi
19793 { am_dirpart=; unset am_dirpart;}
19794 { am_filepart=; unset am_filepart;}
19795 { am_mf=; unset am_mf;}
19796 { am_rc=; unset am_rc;}
19797 rm -f conftest-deps.mk
19798 }
19799 ;;
19800 "libtool":C)
19801
19802 # See if we are running on zsh, and set the options that allow our
19803 # commands through without removal of \ escapes.
19804 if test -n "${ZSH_VERSION+set}"; then
19805 setopt NO_GLOB_SUBST
19806 fi
19807
19808 cfgfile=${ofile}T
19809 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19810 $RM "$cfgfile"
19811
19812 cat <<_LT_EOF >> "$cfgfile"
19813 #! $SHELL
19814 # Generated automatically by $as_me ($PACKAGE) $VERSION
19815 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19816 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19817
19818 # Provide generalized library-building support services.
19819 # Written by Gordon Matzigkeit, 1996
19820
19821 # Copyright (C) 2014 Free Software Foundation, Inc.
19822 # This is free software; see the source for copying conditions. There is NO
19823 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19824
19825 # GNU Libtool is free software; you can redistribute it and/or modify
19826 # it under the terms of the GNU General Public License as published by
19827 # the Free Software Foundation; either version 2 of of the License, or
19828 # (at your option) any later version.
19829 #
19830 # As a special exception to the GNU General Public License, if you
19831 # distribute this file as part of a program or library that is built
19832 # using GNU Libtool, you may include this file under the same
19833 # distribution terms that you use for the rest of that program.
19834 #
19835 # GNU Libtool is distributed in the hope that it will be useful, but
19836 # WITHOUT ANY WARRANTY; without even the implied warranty of
19837 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19838 # GNU General Public License for more details.
19839 #
19840 # You should have received a copy of the GNU General Public License
19841 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19842
19843
19844 # The names of the tagged configurations supported by this script.
19845 available_tags='CXX '
19846
19847 # Configured defaults for sys_lib_dlsearch_path munging.
19848 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19849
19850 # ### BEGIN LIBTOOL CONFIG
19851
19852 # Which release of libtool.m4 was used?
19853 macro_version=$macro_version
19854 macro_revision=$macro_revision
19855
19856 # Whether or not to build shared libraries.
19857 build_libtool_libs=$enable_shared
19858
19859 # Whether or not to build static libraries.
19860 build_old_libs=$enable_static
19861
19862 # What type of objects to build.
19863 pic_mode=$pic_mode
19864
19865 # Whether or not to optimize for fast installation.
19866 fast_install=$enable_fast_install
19867
19868 # Shared archive member basename,for filename based shared library versioning on AIX.
19869 shared_archive_member_spec=$shared_archive_member_spec
19870
19871 # Shell to use when invoking shell scripts.
19872 SHELL=$lt_SHELL
19873
19874 # An echo program that protects backslashes.
19875 ECHO=$lt_ECHO
19876
19877 # The PATH separator for the build system.
19878 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19879
19880 # The host system.
19881 host_alias=$host_alias
19882 host=$host
19883 host_os=$host_os
19884
19885 # The build system.
19886 build_alias=$build_alias
19887 build=$build
19888 build_os=$build_os
19889
19890 # A sed program that does not truncate output.
19891 SED=$lt_SED
19892
19893 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19894 Xsed="\$SED -e 1s/^X//"
19895
19896 # A grep program that handles long lines.
19897 GREP=$lt_GREP
19898
19899 # An ERE matcher.
19900 EGREP=$lt_EGREP
19901
19902 # A literal string matcher.
19903 FGREP=$lt_FGREP
19904
19905 # A BSD- or MS-compatible name lister.
19906 NM=$lt_NM
19907
19908 # Whether we need soft or hard links.
19909 LN_S=$lt_LN_S
19910
19911 # What is the maximum length of a command?
19912 max_cmd_len=$max_cmd_len
19913
19914 # Object file suffix (normally "o").
19915 objext=$ac_objext
19916
19917 # Executable file suffix (normally "").
19918 exeext=$exeext
19919
19920 # whether the shell understands "unset".
19921 lt_unset=$lt_unset
19922
19923 # turn spaces into newlines.
19924 SP2NL=$lt_lt_SP2NL
19925
19926 # turn newlines into spaces.
19927 NL2SP=$lt_lt_NL2SP
19928
19929 # convert \$build file names to \$host format.
19930 to_host_file_cmd=$lt_cv_to_host_file_cmd
19931
19932 # convert \$build files to toolchain format.
19933 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19934
19935 # An object symbol dumper.
19936 OBJDUMP=$lt_OBJDUMP
19937
19938 # Method to check whether dependent libraries are shared objects.
19939 deplibs_check_method=$lt_deplibs_check_method
19940
19941 # Command to use when deplibs_check_method = "file_magic".
19942 file_magic_cmd=$lt_file_magic_cmd
19943
19944 # How to find potential files when deplibs_check_method = "file_magic".
19945 file_magic_glob=$lt_file_magic_glob
19946
19947 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19948 want_nocaseglob=$lt_want_nocaseglob
19949
19950 # DLL creation program.
19951 DLLTOOL=$lt_DLLTOOL
19952
19953 # Command to associate shared and link libraries.
19954 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19955
19956 # The archiver.
19957 AR=$lt_AR
19958
19959 # Flags to create an archive.
19960 AR_FLAGS=$lt_AR_FLAGS
19961
19962 # How to feed a file listing to the archiver.
19963 archiver_list_spec=$lt_archiver_list_spec
19964
19965 # A symbol stripping program.
19966 STRIP=$lt_STRIP
19967
19968 # Commands used to install an old-style archive.
19969 RANLIB=$lt_RANLIB
19970 old_postinstall_cmds=$lt_old_postinstall_cmds
19971 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19972
19973 # Whether to use a lock for old archive extraction.
19974 lock_old_archive_extraction=$lock_old_archive_extraction
19975
19976 # A C compiler.
19977 LTCC=$lt_CC
19978
19979 # LTCC compiler flags.
19980 LTCFLAGS=$lt_CFLAGS
19981
19982 # Take the output of nm and produce a listing of raw symbols and C names.
19983 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19984
19985 # Transform the output of nm in a proper C declaration.
19986 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19987
19988 # Transform the output of nm into a list of symbols to manually relocate.
19989 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19990
19991 # Transform the output of nm in a C name address pair.
19992 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19993
19994 # Transform the output of nm in a C name address pair when lib prefix is needed.
19995 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19996
19997 # The name lister interface.
19998 nm_interface=$lt_lt_cv_nm_interface
19999
20000 # Specify filename containing input files for \$NM.
20001 nm_file_list_spec=$lt_nm_file_list_spec
20002
20003 # The root where to search for dependent libraries,and where our libraries should be installed.
20004 lt_sysroot=$lt_sysroot
20005
20006 # Command to truncate a binary pipe.
20007 lt_truncate_bin=$lt_lt_cv_truncate_bin
20008
20009 # The name of the directory that contains temporary libtool files.
20010 objdir=$objdir
20011
20012 # Used to examine libraries when file_magic_cmd begins with "file".
20013 MAGIC_CMD=$MAGIC_CMD
20014
20015 # Must we lock files when doing compilation?
20016 need_locks=$lt_need_locks
20017
20018 # Manifest tool.
20019 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20020
20021 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20022 DSYMUTIL=$lt_DSYMUTIL
20023
20024 # Tool to change global to local symbols on Mac OS X.
20025 NMEDIT=$lt_NMEDIT
20026
20027 # Tool to manipulate fat objects and archives on Mac OS X.
20028 LIPO=$lt_LIPO
20029
20030 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20031 OTOOL=$lt_OTOOL
20032
20033 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20034 OTOOL64=$lt_OTOOL64
20035
20036 # Old archive suffix (normally "a").
20037 libext=$libext
20038
20039 # Shared library suffix (normally ".so").
20040 shrext_cmds=$lt_shrext_cmds
20041
20042 # The commands to extract the exported symbol list from a shared archive.
20043 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20044
20045 # Variables whose values should be saved in libtool wrapper scripts and
20046 # restored at link time.
20047 variables_saved_for_relink=$lt_variables_saved_for_relink
20048
20049 # Do we need the "lib" prefix for modules?
20050 need_lib_prefix=$need_lib_prefix
20051
20052 # Do we need a version for libraries?
20053 need_version=$need_version
20054
20055 # Library versioning type.
20056 version_type=$version_type
20057
20058 # Shared library runtime path variable.
20059 runpath_var=$runpath_var
20060
20061 # Shared library path variable.
20062 shlibpath_var=$shlibpath_var
20063
20064 # Is shlibpath searched before the hard-coded library search path?
20065 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20066
20067 # Format of library name prefix.
20068 libname_spec=$lt_libname_spec
20069
20070 # List of archive names. First name is the real one, the rest are links.
20071 # The last name is the one that the linker finds with -lNAME
20072 library_names_spec=$lt_library_names_spec
20073
20074 # The coded name of the library, if different from the real name.
20075 soname_spec=$lt_soname_spec
20076
20077 # Permission mode override for installation of shared libraries.
20078 install_override_mode=$lt_install_override_mode
20079
20080 # Command to use after installation of a shared archive.
20081 postinstall_cmds=$lt_postinstall_cmds
20082
20083 # Command to use after uninstallation of a shared archive.
20084 postuninstall_cmds=$lt_postuninstall_cmds
20085
20086 # Commands used to finish a libtool library installation in a directory.
20087 finish_cmds=$lt_finish_cmds
20088
20089 # As "finish_cmds", except a single script fragment to be evaled but
20090 # not shown.
20091 finish_eval=$lt_finish_eval
20092
20093 # Whether we should hardcode library paths into libraries.
20094 hardcode_into_libs=$hardcode_into_libs
20095
20096 # Compile-time system search path for libraries.
20097 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20098
20099 # Detected run-time system search path for libraries.
20100 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20101
20102 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20103 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20104
20105 # Whether dlopen is supported.
20106 dlopen_support=$enable_dlopen
20107
20108 # Whether dlopen of programs is supported.
20109 dlopen_self=$enable_dlopen_self
20110
20111 # Whether dlopen of statically linked programs is supported.
20112 dlopen_self_static=$enable_dlopen_self_static
20113
20114 # Commands to strip libraries.
20115 old_striplib=$lt_old_striplib
20116 striplib=$lt_striplib
20117
20118
20119 # The linker used to build libraries.
20120 LD=$lt_LD
20121
20122 # How to create reloadable object files.
20123 reload_flag=$lt_reload_flag
20124 reload_cmds=$lt_reload_cmds
20125
20126 # Commands used to build an old-style archive.
20127 old_archive_cmds=$lt_old_archive_cmds
20128
20129 # A language specific compiler.
20130 CC=$lt_compiler
20131
20132 # Is the compiler the GNU compiler?
20133 with_gcc=$GCC
20134
20135 # Compiler flag to turn off builtin functions.
20136 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20137
20138 # Additional compiler flags for building library objects.
20139 pic_flag=$lt_lt_prog_compiler_pic
20140
20141 # How to pass a linker flag through the compiler.
20142 wl=$lt_lt_prog_compiler_wl
20143
20144 # Compiler flag to prevent dynamic linking.
20145 link_static_flag=$lt_lt_prog_compiler_static
20146
20147 # Does compiler simultaneously support -c and -o options?
20148 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20149
20150 # Whether or not to add -lc for building shared libraries.
20151 build_libtool_need_lc=$archive_cmds_need_lc
20152
20153 # Whether or not to disallow shared libs when runtime libs are static.
20154 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20155
20156 # Compiler flag to allow reflexive dlopens.
20157 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20158
20159 # Compiler flag to generate shared objects directly from archives.
20160 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20161
20162 # Whether the compiler copes with passing no objects directly.
20163 compiler_needs_object=$lt_compiler_needs_object
20164
20165 # Create an old-style archive from a shared archive.
20166 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20167
20168 # Create a temporary old-style archive to link instead of a shared archive.
20169 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20170
20171 # Commands used to build a shared archive.
20172 archive_cmds=$lt_archive_cmds
20173 archive_expsym_cmds=$lt_archive_expsym_cmds
20174
20175 # Commands used to build a loadable module if different from building
20176 # a shared archive.
20177 module_cmds=$lt_module_cmds
20178 module_expsym_cmds=$lt_module_expsym_cmds
20179
20180 # Whether we are building with GNU ld or not.
20181 with_gnu_ld=$lt_with_gnu_ld
20182
20183 # Flag that allows shared libraries with undefined symbols to be built.
20184 allow_undefined_flag=$lt_allow_undefined_flag
20185
20186 # Flag that enforces no undefined symbols.
20187 no_undefined_flag=$lt_no_undefined_flag
20188
20189 # Flag to hardcode \$libdir into a binary during linking.
20190 # This must work even if \$libdir does not exist
20191 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20192
20193 # Whether we need a single "-rpath" flag with a separated argument.
20194 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20195
20196 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20197 # DIR into the resulting binary.
20198 hardcode_direct=$hardcode_direct
20199
20200 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20201 # DIR into the resulting binary and the resulting library dependency is
20202 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20203 # library is relocated.
20204 hardcode_direct_absolute=$hardcode_direct_absolute
20205
20206 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20207 # into the resulting binary.
20208 hardcode_minus_L=$hardcode_minus_L
20209
20210 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20211 # into the resulting binary.
20212 hardcode_shlibpath_var=$hardcode_shlibpath_var
20213
20214 # Set to "yes" if building a shared library automatically hardcodes DIR
20215 # into the library and all subsequent libraries and executables linked
20216 # against it.
20217 hardcode_automatic=$hardcode_automatic
20218
20219 # Set to yes if linker adds runtime paths of dependent libraries
20220 # to runtime path list.
20221 inherit_rpath=$inherit_rpath
20222
20223 # Whether libtool must link a program against all its dependency libraries.
20224 link_all_deplibs=$link_all_deplibs
20225
20226 # Set to "yes" if exported symbols are required.
20227 always_export_symbols=$always_export_symbols
20228
20229 # The commands to list exported symbols.
20230 export_symbols_cmds=$lt_export_symbols_cmds
20231
20232 # Symbols that should not be listed in the preloaded symbols.
20233 exclude_expsyms=$lt_exclude_expsyms
20234
20235 # Symbols that must always be exported.
20236 include_expsyms=$lt_include_expsyms
20237
20238 # Commands necessary for linking programs (against libraries) with templates.
20239 prelink_cmds=$lt_prelink_cmds
20240
20241 # Commands necessary for finishing linking programs.
20242 postlink_cmds=$lt_postlink_cmds
20243
20244 # Specify filename containing input files.
20245 file_list_spec=$lt_file_list_spec
20246
20247 # How to hardcode a shared library path into an executable.
20248 hardcode_action=$hardcode_action
20249
20250 # The directories searched by this compiler when creating a shared library.
20251 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20252
20253 # Dependencies to place before and after the objects being linked to
20254 # create a shared library.
20255 predep_objects=$lt_predep_objects
20256 postdep_objects=$lt_postdep_objects
20257 predeps=$lt_predeps
20258 postdeps=$lt_postdeps
20259
20260 # The library search path used internally by the compiler when linking
20261 # a shared library.
20262 compiler_lib_search_path=$lt_compiler_lib_search_path
20263
20264 # ### END LIBTOOL CONFIG
20265
20266 _LT_EOF
20267
20268 cat <<'_LT_EOF' >> "$cfgfile"
20269
20270 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20271
20272 # func_munge_path_list VARIABLE PATH
20273 # -----------------------------------
20274 # VARIABLE is name of variable containing _space_ separated list of
20275 # directories to be munged by the contents of PATH, which is string
20276 # having a format:
20277 # "DIR[:DIR]:"
20278 # string "DIR[ DIR]" will be prepended to VARIABLE
20279 # ":DIR[:DIR]"
20280 # string "DIR[ DIR]" will be appended to VARIABLE
20281 # "DIRP[:DIRP]::[DIRA:]DIRA"
20282 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20283 # "DIRA[ DIRA]" will be appended to VARIABLE
20284 # "DIR[:DIR]"
20285 # VARIABLE will be replaced by "DIR[ DIR]"
20286 func_munge_path_list ()
20287 {
20288 case x$2 in
20289 x)
20290 ;;
20291 *:)
20292 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20293 ;;
20294 x:*)
20295 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20296 ;;
20297 *::*)
20298 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20299 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20300 ;;
20301 *)
20302 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20303 ;;
20304 esac
20305 }
20306
20307
20308 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20309 func_cc_basename ()
20310 {
20311 for cc_temp in $*""; do
20312 case $cc_temp in
20313 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20314 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20315 \-*) ;;
20316 *) break;;
20317 esac
20318 done
20319 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20320 }
20321
20322
20323 # ### END FUNCTIONS SHARED WITH CONFIGURE
20324
20325 _LT_EOF
20326
20327 case $host_os in
20328 aix3*)
20329 cat <<\_LT_EOF >> "$cfgfile"
20330 # AIX sometimes has problems with the GCC collect2 program. For some
20331 # reason, if we set the COLLECT_NAMES environment variable, the problems
20332 # vanish in a puff of smoke.
20333 if test set != "${COLLECT_NAMES+set}"; then
20334 COLLECT_NAMES=
20335 export COLLECT_NAMES
20336 fi
20337 _LT_EOF
20338 ;;
20339 esac
20340
20341
20342 ltmain=$ac_aux_dir/ltmain.sh
20343
20344
20345 # We use sed instead of cat because bash on DJGPP gets confused if
20346 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20347 # text mode, it properly converts lines to CR/LF. This bash problem
20348 # is reportedly fixed, but why not run on old versions too?
20349 sed '$q' "$ltmain" >> "$cfgfile" \
20350 || (rm -f "$cfgfile"; exit 1)
20351
20352 mv -f "$cfgfile" "$ofile" ||
20353 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20354 chmod +x "$ofile"
20355
20356
20357 cat <<_LT_EOF >> "$ofile"
20358
20359 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20360
20361 # The linker used to build libraries.
20362 LD=$lt_LD_CXX
20363
20364 # How to create reloadable object files.
20365 reload_flag=$lt_reload_flag_CXX
20366 reload_cmds=$lt_reload_cmds_CXX
20367
20368 # Commands used to build an old-style archive.
20369 old_archive_cmds=$lt_old_archive_cmds_CXX
20370
20371 # A language specific compiler.
20372 CC=$lt_compiler_CXX
20373
20374 # Is the compiler the GNU compiler?
20375 with_gcc=$GCC_CXX
20376
20377 # Compiler flag to turn off builtin functions.
20378 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20379
20380 # Additional compiler flags for building library objects.
20381 pic_flag=$lt_lt_prog_compiler_pic_CXX
20382
20383 # How to pass a linker flag through the compiler.
20384 wl=$lt_lt_prog_compiler_wl_CXX
20385
20386 # Compiler flag to prevent dynamic linking.
20387 link_static_flag=$lt_lt_prog_compiler_static_CXX
20388
20389 # Does compiler simultaneously support -c and -o options?
20390 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20391
20392 # Whether or not to add -lc for building shared libraries.
20393 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20394
20395 # Whether or not to disallow shared libs when runtime libs are static.
20396 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20397
20398 # Compiler flag to allow reflexive dlopens.
20399 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20400
20401 # Compiler flag to generate shared objects directly from archives.
20402 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20403
20404 # Whether the compiler copes with passing no objects directly.
20405 compiler_needs_object=$lt_compiler_needs_object_CXX
20406
20407 # Create an old-style archive from a shared archive.
20408 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20409
20410 # Create a temporary old-style archive to link instead of a shared archive.
20411 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20412
20413 # Commands used to build a shared archive.
20414 archive_cmds=$lt_archive_cmds_CXX
20415 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20416
20417 # Commands used to build a loadable module if different from building
20418 # a shared archive.
20419 module_cmds=$lt_module_cmds_CXX
20420 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20421
20422 # Whether we are building with GNU ld or not.
20423 with_gnu_ld=$lt_with_gnu_ld_CXX
20424
20425 # Flag that allows shared libraries with undefined symbols to be built.
20426 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20427
20428 # Flag that enforces no undefined symbols.
20429 no_undefined_flag=$lt_no_undefined_flag_CXX
20430
20431 # Flag to hardcode \$libdir into a binary during linking.
20432 # This must work even if \$libdir does not exist
20433 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20434
20435 # Whether we need a single "-rpath" flag with a separated argument.
20436 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20437
20438 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20439 # DIR into the resulting binary.
20440 hardcode_direct=$hardcode_direct_CXX
20441
20442 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20443 # DIR into the resulting binary and the resulting library dependency is
20444 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20445 # library is relocated.
20446 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20447
20448 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20449 # into the resulting binary.
20450 hardcode_minus_L=$hardcode_minus_L_CXX
20451
20452 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20453 # into the resulting binary.
20454 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20455
20456 # Set to "yes" if building a shared library automatically hardcodes DIR
20457 # into the library and all subsequent libraries and executables linked
20458 # against it.
20459 hardcode_automatic=$hardcode_automatic_CXX
20460
20461 # Set to yes if linker adds runtime paths of dependent libraries
20462 # to runtime path list.
20463 inherit_rpath=$inherit_rpath_CXX
20464
20465 # Whether libtool must link a program against all its dependency libraries.
20466 link_all_deplibs=$link_all_deplibs_CXX
20467
20468 # Set to "yes" if exported symbols are required.
20469 always_export_symbols=$always_export_symbols_CXX
20470
20471 # The commands to list exported symbols.
20472 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20473
20474 # Symbols that should not be listed in the preloaded symbols.
20475 exclude_expsyms=$lt_exclude_expsyms_CXX
20476
20477 # Symbols that must always be exported.
20478 include_expsyms=$lt_include_expsyms_CXX
20479
20480 # Commands necessary for linking programs (against libraries) with templates.
20481 prelink_cmds=$lt_prelink_cmds_CXX
20482
20483 # Commands necessary for finishing linking programs.
20484 postlink_cmds=$lt_postlink_cmds_CXX
20485
20486 # Specify filename containing input files.
20487 file_list_spec=$lt_file_list_spec_CXX
20488
20489 # How to hardcode a shared library path into an executable.
20490 hardcode_action=$hardcode_action_CXX
20491
20492 # The directories searched by this compiler when creating a shared library.
20493 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20494
20495 # Dependencies to place before and after the objects being linked to
20496 # create a shared library.
20497 predep_objects=$lt_predep_objects_CXX
20498 postdep_objects=$lt_postdep_objects_CXX
20499 predeps=$lt_predeps_CXX
20500 postdeps=$lt_postdeps_CXX
20501
20502 # The library search path used internally by the compiler when linking
20503 # a shared library.
20504 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20505
20506 # ### END LIBTOOL TAG CONFIG: CXX
20507 _LT_EOF
20508
20509 ;;
20510
20511 esac
20512 done # for ac_tag
20513
20514
20515 as_fn_exit 0
20516 _ACEOF
20517 ac_clean_files=$ac_clean_files_save
20518
20519 test $ac_write_fail = 0 ||
20520 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20521
20522
20523 # configure is writing to config.log, and then calls config.status.
20524 # config.status does its own redirection, appending to config.log.
20525 # Unfortunately, on DOS this fails, as config.log is still kept open
20526 # by configure, so config.status won't be able to write to it; its
20527 # output is simply discarded. So we exec the FD to /dev/null,
20528 # effectively closing config.log, so it can be properly (re)opened and
20529 # appended to by config.status. When coming back to configure, we
20530 # need to make the FD available again.
20531 if test "$no_create" != yes; then
20532 ac_cs_success=:
20533 ac_config_status_args=
20534 test "$silent" = yes &&
20535 ac_config_status_args="$ac_config_status_args --quiet"
20536 exec 5>/dev/null
20537 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20538 exec 5>>config.log
20539 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20540 # would make configure fail if this is the last instruction.
20541 $ac_cs_success || as_fn_exit 1
20542 fi
20543 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20545 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20546 fi
20547