Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for minidjvu 0.8.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # Foundation, Inc.
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 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell [email protected] and
232 $0: [email protected] about your system,
233 $0: including any error possibly output before this
234 $0: message. Then install a modern shell, or manually run
235 $0: the script under such a shell if you do have one."
236 fi
237 exit 1
238 fi
239 fi
240 fi
241 SHELL=${CONFIG_SHELL-/bin/sh}
242 export SHELL
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE= GREP_OPTIONS=
245 unset CLICOLOR_FORCE GREP_OPTIONS
246
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
250 # as_fn_unset VAR
251 # ---------------
252 # Portably unset VAR.
253 as_fn_unset ()
254 {
255 { eval $1=; unset $1;}
256 }
257 as_unset=as_fn_unset
258
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
262 as_fn_set_status ()
263 {
264 return $1
265 } # as_fn_set_status
266
267 # as_fn_exit STATUS
268 # -----------------
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270 as_fn_exit ()
271 {
272 set +e
273 as_fn_set_status $1
274 exit $1
275 } # as_fn_exit
276
277 # as_fn_mkdir_p
278 # -------------
279 # Create "$as_dir" as a directory, including parents if necessary.
280 as_fn_mkdir_p ()
281 {
282
283 case $as_dir in #(
284 -*) as_dir=./$as_dir;;
285 esac
286 test -d "$as_dir" || eval $as_mkdir_p || {
287 as_dirs=
288 while :; do
289 case $as_dir in #(
290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291 *) as_qdir=$as_dir;;
292 esac
293 as_dirs="'$as_qdir' $as_dirs"
294 as_dir=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301 s//\1/
302 q
303 }
304 /^X\(\/\/\)[^/].*/{
305 s//\1/
306 q
307 }
308 /^X\(\/\/\)$/{
309 s//\1/
310 q
311 }
312 /^X\(\/\).*/{
313 s//\1/
314 q
315 }
316 s/.*/./; q'`
317 test -d "$as_dir" && break
318 done
319 test -z "$as_dirs" || eval "mkdir $as_dirs"
320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321
322
323 } # as_fn_mkdir_p
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
329 # implementations.
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331 eval 'as_fn_append ()
332 {
333 eval $1+=\$2
334 }'
335 else
336 as_fn_append ()
337 {
338 eval $1=\$$1\$2
339 }
340 fi # as_fn_append
341
342 # as_fn_arith ARG...
343 # ------------------
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348 eval 'as_fn_arith ()
349 {
350 as_val=$(( $* ))
351 }'
352 else
353 as_fn_arith ()
354 {
355 as_val=`expr "$@" || test $? -eq 1`
356 }
357 fi # as_fn_arith
358
359
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
365 as_fn_error ()
366 {
367 as_status=$?; test $as_status -eq 0 && as_status=1
368 if test "$3"; then
369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 fi
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit $as_status
374 } # as_fn_error
375
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
378 as_expr=expr
379 else
380 as_expr=false
381 fi
382
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384 as_basename=basename
385 else
386 as_basename=false
387 fi
388
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390 as_dirname=dirname
391 else
392 as_dirname=false
393 fi
394
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 $as_echo X/"$0" |
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
401 s//\1/
402 q
403 }
404 /^X\/\(\/\/\)$/{
405 s//\1/
406 q
407 }
408 /^X\/\(\/\).*/{
409 s//\1/
410 q
411 }
412 s/.*/./; q'`
413
414 # Avoid depending upon Character Ranges.
415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits='0123456789'
419 as_cr_alnum=$as_cr_Letters$as_cr_digits
420
421
422 as_lineno_1=$LINENO as_lineno_1a=$LINENO
423 as_lineno_2=$LINENO as_lineno_2a=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
427 sed -n '
428 p
429 /[$]LINENO/=
430 ' <$as_myself |
431 sed '
432 s/[$]LINENO.*/&-/
433 t lineno
434 b
435 :lineno
436 N
437 :loop
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 t loop
440 s/-\n.*//
441 ' >$as_me.lineno &&
442 chmod +x "$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this).
448 . "./$as_me.lineno"
449 # Exit status is that of the last command.
450 exit
451 }
452
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in #(((((
455 -n*)
456 case `echo 'xy\c'` in
457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 xy) ECHO_C='\c';;
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
460 ECHO_T=' ';;
461 esac;;
462 *)
463 ECHO_N='-n';;
464 esac
465
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468 rm -f conf$$.dir/conf$$.file
469 else
470 rm -f conf$$.dir
471 mkdir conf$$.dir 2>/dev/null
472 fi
473 if (echo >conf$$.file) 2>/dev/null; then
474 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 as_ln_s='ln -s'
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 as_ln_s='cp -p'
482 elif ln conf$$.file conf$$ 2>/dev/null; then
483 as_ln_s=ln
484 else
485 as_ln_s='cp -p'
486 fi
487 else
488 as_ln_s='cp -p'
489 fi
490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491 rmdir conf$$.dir 2>/dev/null
492
493 if mkdir -p . 2>/dev/null; then
494 as_mkdir_p='mkdir -p "$as_dir"'
495 else
496 test -d ./-p && rmdir ./-p
497 as_mkdir_p=false
498 fi
499
500 if test -x / >/dev/null 2>&1; then
501 as_test_x='test -x'
502 else
503 if ls -dL / >/dev/null 2>&1; then
504 as_ls_L_option=L
505 else
506 as_ls_L_option=
507 fi
508 as_test_x='
509 eval sh -c '\''
510 if test -d "$1"; then
511 test -d "$1/.";
512 else
513 case $1 in #(
514 -*)set "./$1";;
515 esac;
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
518 '\'' sh
519 '
520 fi
521 as_executable_p=$as_test_x
522
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528
529
530
531 # Check that we are running under the correct shell.
532 SHELL=${CONFIG_SHELL-/bin/sh}
533
534 case X$lt_ECHO in
535 X*--fallback-echo)
536 # Remove one level of quotation (which was required for Make).
537 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
538 ;;
539 esac
540
541 ECHO=${lt_ECHO-echo}
542 if test "X$1" = X--no-reexec; then
543 # Discard the --no-reexec flag, and continue.
544 shift
545 elif test "X$1" = X--fallback-echo; then
546 # Avoid inline document here, it may be left over
547 :
548 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
549 # Yippee, $ECHO works!
550 :
551 else
552 # Restart under the correct shell.
553 exec $SHELL "$0" --no-reexec ${1+"$@"}
554 fi
555
556 if test "X$1" = X--fallback-echo; then
557 # used as fallback echo
558 shift
559 cat <<_LT_EOF
560 $*
561 _LT_EOF
562 exit 0
563 fi
564
565 # The HP-UX ksh and POSIX shell print the target directory to stdout
566 # if CDPATH is set.
567 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
568
569 if test -z "$lt_ECHO"; then
570 if test "X${echo_test_string+set}" != Xset; then
571 # find a string as large as possible, as long as the shell can cope with it
572 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
573 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
574 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
575 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
576 then
577 break
578 fi
579 done
580 fi
581
582 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
583 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
584 test "X$echo_testing_string" = "X$echo_test_string"; then
585 :
586 else
587 # The Solaris, AIX, and Digital Unix default echo programs unquote
588 # backslashes. This makes it impossible to quote backslashes using
589 # echo "$something" | sed 's/\\/\\\\/g'
590 #
591 # So, first we look for a working echo in the user's PATH.
592
593 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
594 for dir in $PATH /usr/ucb; do
595 IFS="$lt_save_ifs"
596 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
597 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
598 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
599 test "X$echo_testing_string" = "X$echo_test_string"; then
600 ECHO="$dir/echo"
601 break
602 fi
603 done
604 IFS="$lt_save_ifs"
605
606 if test "X$ECHO" = Xecho; then
607 # We didn't find a better echo, so look for alternatives.
608 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
609 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
610 test "X$echo_testing_string" = "X$echo_test_string"; then
611 # This shell has a builtin print -r that does the trick.
612 ECHO='print -r'
613 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
614 test "X$CONFIG_SHELL" != X/bin/ksh; then
615 # If we have ksh, try running configure again with it.
616 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
617 export ORIGINAL_CONFIG_SHELL
618 CONFIG_SHELL=/bin/ksh
619 export CONFIG_SHELL
620 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
621 else
622 # Try using printf.
623 ECHO='printf %s\n'
624 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
627 # Cool, printf works
628 :
629 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
630 test "X$echo_testing_string" = 'X\t' &&
631 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
634 export CONFIG_SHELL
635 SHELL="$CONFIG_SHELL"
636 export SHELL
637 ECHO="$CONFIG_SHELL $0 --fallback-echo"
638 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639 test "X$echo_testing_string" = 'X\t' &&
640 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641 test "X$echo_testing_string" = "X$echo_test_string"; then
642 ECHO="$CONFIG_SHELL $0 --fallback-echo"
643 else
644 # maybe with a smaller string...
645 prev=:
646
647 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
648 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
649 then
650 break
651 fi
652 prev="$cmd"
653 done
654
655 if test "$prev" != 'sed 50q "$0"'; then
656 echo_test_string=`eval $prev`
657 export echo_test_string
658 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
659 else
660 # Oops. We lost completely, so just stick with echo.
661 ECHO=echo
662 fi
663 fi
664 fi
665 fi
666 fi
667 fi
668
669 # Copy echo and quote the copy suitably for passing to libtool from
670 # the Makefile, instead of quoting the original, which is used later.
671 lt_ECHO=$ECHO
672 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
673 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
674 fi
675
676
677
678
679 exec 7<&0 </dev/null 6>&1
680
681 # Name of the host.
682 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686 #
687 # Initializations.
688 #
689 ac_default_prefix=/usr/local
690 ac_clean_files=
691 ac_config_libobj_dir=.
692 LIBOBJS=
693 cross_compiling=no
694 subdirs=
695 MFLAGS=
696 MAKEFLAGS=
697
698 # Identity of this package.
699 PACKAGE_NAME='minidjvu'
700 PACKAGE_TARNAME='minidjvu'
701 PACKAGE_VERSION='0.8'
702 PACKAGE_STRING='minidjvu 0.8'
703 PACKAGE_BUGREPORT='[email protected]'
704 PACKAGE_URL=''
705
706 ac_default_prefix=/usr/local
707 # Factoring default headers for most tests.
708 ac_includes_default="\
709 #include <stdio.h>
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
712 #endif
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
715 #endif
716 #ifdef STDC_HEADERS
717 # include <stdlib.h>
718 # include <stddef.h>
719 #else
720 # ifdef HAVE_STDLIB_H
721 # include <stdlib.h>
722 # endif
723 #endif
724 #ifdef HAVE_STRING_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726 # include <memory.h>
727 # endif
728 # include <string.h>
729 #endif
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
732 #endif
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
735 #endif
736 #ifdef HAVE_STDINT_H
737 # include <stdint.h>
738 #endif
739 #ifdef HAVE_UNISTD_H
740 # include <unistd.h>
741 #endif"
742
743 ac_subst_vars='LTLIBOBJS
744 LIBOBJS
745 SHARED_YES
746 STATIC_YES
747 PO_YES
748 DLLFLAGS
749 LIBRARY_VERSION
750 INCS
751 OPTS
752 oext
753 mdjvulib
754 target
755 MSGFMT
756 RM
757 GZIP
758 INSTALL_DATA
759 INSTALL_SCRIPT
760 INSTALL_PROGRAM
761 CXXCPP
762 CPP
763 OTOOL64
764 OTOOL
765 LIPO
766 NMEDIT
767 DSYMUTIL
768 lt_ECHO
769 RANLIB
770 STRIP
771 AR
772 OBJDUMP
773 LN_S
774 NM
775 ac_ct_DUMPBIN
776 DUMPBIN
777 LD
778 FGREP
779 EGREP
780 GREP
781 SED
782 LIBTOOL
783 ac_ct_CC
784 CFLAGS
785 CC
786 OBJEXT
787 EXEEXT
788 ac_ct_CXX
789 CPPFLAGS
790 LDFLAGS
791 CXXFLAGS
792 CXX
793 SET_MAKE
794 host_os
795 host_vendor
796 host_cpu
797 host
798 build_os
799 build_vendor
800 build_cpu
801 build
802 target_alias
803 host_alias
804 build_alias
805 LIBS
806 ECHO_T
807 ECHO_N
808 ECHO_C
809 DEFS
810 mandir
811 localedir
812 libdir
813 psdir
814 pdfdir
815 dvidir
816 htmldir
817 infodir
818 docdir
819 oldincludedir
820 includedir
821 localstatedir
822 sharedstatedir
823 sysconfdir
824 datadir
825 datarootdir
826 libexecdir
827 sbindir
828 bindir
829 program_transform_name
830 prefix
831 exec_prefix
832 PACKAGE_URL
833 PACKAGE_BUGREPORT
834 PACKAGE_STRING
835 PACKAGE_VERSION
836 PACKAGE_TARNAME
837 PACKAGE_NAME
838 PATH_SEPARATOR
839 SHELL'
840 ac_subst_files=''
841 ac_user_opts='
842 enable_option_checking
843 enable_static
844 enable_gettext
845 with_tiff
846 enable_shared
847 with_pic
848 enable_fast_install
849 with_gnu_ld
850 enable_libtool_lock
851 '
852 ac_precious_vars='build_alias
853 host_alias
854 target_alias
855 CXX
856 CXXFLAGS
857 LDFLAGS
858 LIBS
859 CPPFLAGS
860 CCC
861 CC
862 CFLAGS
863 CPP
864 CXXCPP'
865
866
867 # Initialize some variables set by options.
868 ac_init_help=
869 ac_init_version=false
870 ac_unrecognized_opts=
871 ac_unrecognized_sep=
872 # The variables have the same names as the options, with
873 # dashes changed to underlines.
874 cache_file=/dev/null
875 exec_prefix=NONE
876 no_create=
877 no_recursion=
878 prefix=NONE
879 program_prefix=NONE
880 program_suffix=NONE
881 program_transform_name=s,x,x,
882 silent=
883 site=
884 srcdir=
885 verbose=
886 x_includes=NONE
887 x_libraries=NONE
888
889 # Installation directory options.
890 # These are left unexpanded so users can "make install exec_prefix=/foo"
891 # and all the variables that are supposed to be based on exec_prefix
892 # by default will actually change.
893 # Use braces instead of parens because sh, perl, etc. also accept them.
894 # (The list follows the same order as the GNU Coding Standards.)
895 bindir='${exec_prefix}/bin'
896 sbindir='${exec_prefix}/sbin'
897 libexecdir='${exec_prefix}/libexec'
898 datarootdir='${prefix}/share'
899 datadir='${datarootdir}'
900 sysconfdir='${prefix}/etc'
901 sharedstatedir='${prefix}/com'
902 localstatedir='${prefix}/var'
903 includedir='${prefix}/include'
904 oldincludedir='/usr/include'
905 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
906 infodir='${datarootdir}/info'
907 htmldir='${docdir}'
908 dvidir='${docdir}'
909 pdfdir='${docdir}'
910 psdir='${docdir}'
911 libdir='${exec_prefix}/lib'
912 localedir='${datarootdir}/locale'
913 mandir='${datarootdir}/man'
914
915 ac_prev=
916 ac_dashdash=
917 for ac_option
918 do
919 # If the previous option needs an argument, assign it.
920 if test -n "$ac_prev"; then
921 eval $ac_prev=\$ac_option
922 ac_prev=
923 continue
924 fi
925
926 case $ac_option in
927 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
928 *) ac_optarg=yes ;;
929 esac
930
931 # Accept the important Cygnus configure options, so we can diagnose typos.
932
933 case $ac_dashdash$ac_option in
934 --)
935 ac_dashdash=yes ;;
936
937 -bindir | --bindir | --bindi | --bind | --bin | --bi)
938 ac_prev=bindir ;;
939 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
940 bindir=$ac_optarg ;;
941
942 -build | --build | --buil | --bui | --bu)
943 ac_prev=build_alias ;;
944 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
945 build_alias=$ac_optarg ;;
946
947 -cache-file | --cache-file | --cache-fil | --cache-fi \
948 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
949 ac_prev=cache_file ;;
950 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
951 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
952 cache_file=$ac_optarg ;;
953
954 --config-cache | -C)
955 cache_file=config.cache ;;
956
957 -datadir | --datadir | --datadi | --datad)
958 ac_prev=datadir ;;
959 -datadir=* | --datadir=* | --datadi=* | --datad=*)
960 datadir=$ac_optarg ;;
961
962 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
963 | --dataroo | --dataro | --datar)
964 ac_prev=datarootdir ;;
965 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
966 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
967 datarootdir=$ac_optarg ;;
968
969 -disable-* | --disable-*)
970 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 as_fn_error "invalid feature name: $ac_useropt"
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
977 *"
978 "enable_$ac_useropt"
979 "*) ;;
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
982 esac
983 eval enable_$ac_useropt=no ;;
984
985 -docdir | --docdir | --docdi | --doc | --do)
986 ac_prev=docdir ;;
987 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
988 docdir=$ac_optarg ;;
989
990 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
991 ac_prev=dvidir ;;
992 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
993 dvidir=$ac_optarg ;;
994
995 -enable-* | --enable-*)
996 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
997 # Reject names that are not valid shell variable names.
998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999 as_fn_error "invalid feature name: $ac_useropt"
1000 ac_useropt_orig=$ac_useropt
1001 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 case $ac_user_opts in
1003 *"
1004 "enable_$ac_useropt"
1005 "*) ;;
1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1007 ac_unrecognized_sep=', ';;
1008 esac
1009 eval enable_$ac_useropt=\$ac_optarg ;;
1010
1011 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013 | --exec | --exe | --ex)
1014 ac_prev=exec_prefix ;;
1015 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017 | --exec=* | --exe=* | --ex=*)
1018 exec_prefix=$ac_optarg ;;
1019
1020 -gas | --gas | --ga | --g)
1021 # Obsolete; use --with-gas.
1022 with_gas=yes ;;
1023
1024 -help | --help | --hel | --he | -h)
1025 ac_init_help=long ;;
1026 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027 ac_init_help=recursive ;;
1028 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029 ac_init_help=short ;;
1030
1031 -host | --host | --hos | --ho)
1032 ac_prev=host_alias ;;
1033 -host=* | --host=* | --hos=* | --ho=*)
1034 host_alias=$ac_optarg ;;
1035
1036 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1037 ac_prev=htmldir ;;
1038 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1039 | --ht=*)
1040 htmldir=$ac_optarg ;;
1041
1042 -includedir | --includedir | --includedi | --included | --include \
1043 | --includ | --inclu | --incl | --inc)
1044 ac_prev=includedir ;;
1045 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046 | --includ=* | --inclu=* | --incl=* | --inc=*)
1047 includedir=$ac_optarg ;;
1048
1049 -infodir | --infodir | --infodi | --infod | --info | --inf)
1050 ac_prev=infodir ;;
1051 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1052 infodir=$ac_optarg ;;
1053
1054 -libdir | --libdir | --libdi | --libd)
1055 ac_prev=libdir ;;
1056 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1057 libdir=$ac_optarg ;;
1058
1059 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060 | --libexe | --libex | --libe)
1061 ac_prev=libexecdir ;;
1062 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063 | --libexe=* | --libex=* | --libe=*)
1064 libexecdir=$ac_optarg ;;
1065
1066 -localedir | --localedir | --localedi | --localed | --locale)
1067 ac_prev=localedir ;;
1068 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069 localedir=$ac_optarg ;;
1070
1071 -localstatedir | --localstatedir | --localstatedi | --localstated \
1072 | --localstate | --localstat | --localsta | --localst | --locals)
1073 ac_prev=localstatedir ;;
1074 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1075 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1076 localstatedir=$ac_optarg ;;
1077
1078 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1079 ac_prev=mandir ;;
1080 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1081 mandir=$ac_optarg ;;
1082
1083 -nfp | --nfp | --nf)
1084 # Obsolete; use --without-fp.
1085 with_fp=no ;;
1086
1087 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1088 | --no-cr | --no-c | -n)
1089 no_create=yes ;;
1090
1091 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1093 no_recursion=yes ;;
1094
1095 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097 | --oldin | --oldi | --old | --ol | --o)
1098 ac_prev=oldincludedir ;;
1099 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1102 oldincludedir=$ac_optarg ;;
1103
1104 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1105 ac_prev=prefix ;;
1106 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1107 prefix=$ac_optarg ;;
1108
1109 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110 | --program-pre | --program-pr | --program-p)
1111 ac_prev=program_prefix ;;
1112 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1114 program_prefix=$ac_optarg ;;
1115
1116 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117 | --program-suf | --program-su | --program-s)
1118 ac_prev=program_suffix ;;
1119 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1121 program_suffix=$ac_optarg ;;
1122
1123 -program-transform-name | --program-transform-name \
1124 | --program-transform-nam | --program-transform-na \
1125 | --program-transform-n | --program-transform- \
1126 | --program-transform | --program-transfor \
1127 | --program-transfo | --program-transf \
1128 | --program-trans | --program-tran \
1129 | --progr-tra | --program-tr | --program-t)
1130 ac_prev=program_transform_name ;;
1131 -program-transform-name=* | --program-transform-name=* \
1132 | --program-transform-nam=* | --program-transform-na=* \
1133 | --program-transform-n=* | --program-transform-=* \
1134 | --program-transform=* | --program-transfor=* \
1135 | --program-transfo=* | --program-transf=* \
1136 | --program-trans=* | --program-tran=* \
1137 | --progr-tra=* | --program-tr=* | --program-t=*)
1138 program_transform_name=$ac_optarg ;;
1139
1140 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1141 ac_prev=pdfdir ;;
1142 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143 pdfdir=$ac_optarg ;;
1144
1145 -psdir | --psdir | --psdi | --psd | --ps)
1146 ac_prev=psdir ;;
1147 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1148 psdir=$ac_optarg ;;
1149
1150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151 | -silent | --silent | --silen | --sile | --sil)
1152 silent=yes ;;
1153
1154 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1155 ac_prev=sbindir ;;
1156 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1157 | --sbi=* | --sb=*)
1158 sbindir=$ac_optarg ;;
1159
1160 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1161 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1162 | --sharedst | --shareds | --shared | --share | --shar \
1163 | --sha | --sh)
1164 ac_prev=sharedstatedir ;;
1165 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1166 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1167 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1168 | --sha=* | --sh=*)
1169 sharedstatedir=$ac_optarg ;;
1170
1171 -site | --site | --sit)
1172 ac_prev=site ;;
1173 -site=* | --site=* | --sit=*)
1174 site=$ac_optarg ;;
1175
1176 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1177 ac_prev=srcdir ;;
1178 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1179 srcdir=$ac_optarg ;;
1180
1181 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1182 | --syscon | --sysco | --sysc | --sys | --sy)
1183 ac_prev=sysconfdir ;;
1184 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1185 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1186 sysconfdir=$ac_optarg ;;
1187
1188 -target | --target | --targe | --targ | --tar | --ta | --t)
1189 ac_prev=target_alias ;;
1190 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1191 target_alias=$ac_optarg ;;
1192
1193 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1194 verbose=yes ;;
1195
1196 -version | --version | --versio | --versi | --vers | -V)
1197 ac_init_version=: ;;
1198
1199 -with-* | --with-*)
1200 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1201 # Reject names that are not valid shell variable names.
1202 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1203 as_fn_error "invalid package name: $ac_useropt"
1204 ac_useropt_orig=$ac_useropt
1205 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1206 case $ac_user_opts in
1207 *"
1208 "with_$ac_useropt"
1209 "*) ;;
1210 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1211 ac_unrecognized_sep=', ';;
1212 esac
1213 eval with_$ac_useropt=\$ac_optarg ;;
1214
1215 -without-* | --without-*)
1216 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1219 as_fn_error "invalid package name: $ac_useropt"
1220 ac_useropt_orig=$ac_useropt
1221 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1223 *"
1224 "with_$ac_useropt"
1225 "*) ;;
1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1227 ac_unrecognized_sep=', ';;
1228 esac
1229 eval with_$ac_useropt=no ;;
1230
1231 --x)
1232 # Obsolete; use --with-x.
1233 with_x=yes ;;
1234
1235 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236 | --x-incl | --x-inc | --x-in | --x-i)
1237 ac_prev=x_includes ;;
1238 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240 x_includes=$ac_optarg ;;
1241
1242 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244 ac_prev=x_libraries ;;
1245 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247 x_libraries=$ac_optarg ;;
1248
1249 -*) as_fn_error "unrecognized option: \`$ac_option'
1250 Try \`$0 --help' for more information."
1251 ;;
1252
1253 *=*)
1254 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1255 # Reject names that are not valid shell variable names.
1256 case $ac_envvar in #(
1257 '' | [0-9]* | *[!_$as_cr_alnum]* )
1258 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1259 esac
1260 eval $ac_envvar=\$ac_optarg
1261 export $ac_envvar ;;
1262
1263 *)
1264 # FIXME: should be removed in autoconf 3.0.
1265 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1269 ;;
1270
1271 esac
1272 done
1273
1274 if test -n "$ac_prev"; then
1275 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276 as_fn_error "missing argument to $ac_option"
1277 fi
1278
1279 if test -n "$ac_unrecognized_opts"; then
1280 case $enable_option_checking in
1281 no) ;;
1282 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1283 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1284 esac
1285 fi
1286
1287 # Check all directory arguments for consistency.
1288 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1289 datadir sysconfdir sharedstatedir localstatedir includedir \
1290 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1291 libdir localedir mandir
1292 do
1293 eval ac_val=\$$ac_var
1294 # Remove trailing slashes.
1295 case $ac_val in
1296 */ )
1297 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1298 eval $ac_var=\$ac_val;;
1299 esac
1300 # Be sure to have absolute directory names.
1301 case $ac_val in
1302 [\\/$]* | ?:[\\/]* ) continue;;
1303 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1304 esac
1305 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1306 done
1307
1308 # There might be people who depend on the old broken behavior: `$host'
1309 # used to hold the argument of --host etc.
1310 # FIXME: To remove some day.
1311 build=$build_alias
1312 host=$host_alias
1313 target=$target_alias
1314
1315 # FIXME: To remove some day.
1316 if test "x$host_alias" != x; then
1317 if test "x$build_alias" = x; then
1318 cross_compiling=maybe
1319 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1320 If a cross compiler is detected then cross compile mode will be used." >&2
1321 elif test "x$build_alias" != "x$host_alias"; then
1322 cross_compiling=yes
1323 fi
1324 fi
1325
1326 ac_tool_prefix=
1327 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1328
1329 test "$silent" = yes && exec 6>/dev/null
1330
1331
1332 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1333 ac_ls_di=`ls -di .` &&
1334 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1335 as_fn_error "working directory cannot be determined"
1336 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1337 as_fn_error "pwd does not report name of working directory"
1338
1339
1340 # Find the source files, if location was not specified.
1341 if test -z "$srcdir"; then
1342 ac_srcdir_defaulted=yes
1343 # Try the directory containing this script, then the parent directory.
1344 ac_confdir=`$as_dirname -- "$as_myself" ||
1345 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1346 X"$as_myself" : 'X\(//\)[^/]' \| \
1347 X"$as_myself" : 'X\(//\)$' \| \
1348 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1349 $as_echo X"$as_myself" |
1350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\/\)[^/].*/{
1355 s//\1/
1356 q
1357 }
1358 /^X\(\/\/\)$/{
1359 s//\1/
1360 q
1361 }
1362 /^X\(\/\).*/{
1363 s//\1/
1364 q
1365 }
1366 s/.*/./; q'`
1367 srcdir=$ac_confdir
1368 if test ! -r "$srcdir/$ac_unique_file"; then
1369 srcdir=..
1370 fi
1371 else
1372 ac_srcdir_defaulted=no
1373 fi
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1375 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1376 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1377 fi
1378 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1379 ac_abs_confdir=`(
1380 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1381 pwd)`
1382 # When building in place, set srcdir=.
1383 if test "$ac_abs_confdir" = "$ac_pwd"; then
1384 srcdir=.
1385 fi
1386 # Remove unnecessary trailing slashes from srcdir.
1387 # Double slashes in file names in object file debugging info
1388 # mess up M-x gdb in Emacs.
1389 case $srcdir in
1390 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1391 esac
1392 for ac_var in $ac_precious_vars; do
1393 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1394 eval ac_env_${ac_var}_value=\$${ac_var}
1395 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1396 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1397 done
1398
1399 #
1400 # Report the --help message.
1401 #
1402 if test "$ac_init_help" = "long"; then
1403 # Omit some internal or obsolete options to make the list less imposing.
1404 # This message is too long to be a string in the A/UX 3.1 sh.
1405 cat <<_ACEOF
1406 \`configure' configures minidjvu 0.8 to adapt to many kinds of systems.
1407
1408 Usage: $0 [OPTION]... [VAR=VALUE]...
1409
1410 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1411 VAR=VALUE. See below for descriptions of some of the useful variables.
1412
1413 Defaults for the options are specified in brackets.
1414
1415 Configuration:
1416 -h, --help display this help and exit
1417 --help=short display options specific to this package
1418 --help=recursive display the short help of all the included packages
1419 -V, --version display version information and exit
1420 -q, --quiet, --silent do not print \`checking...' messages
1421 --cache-file=FILE cache test results in FILE [disabled]
1422 -C, --config-cache alias for \`--cache-file=config.cache'
1423 -n, --no-create do not create output files
1424 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1425
1426 Installation directories:
1427 --prefix=PREFIX install architecture-independent files in PREFIX
1428 [$ac_default_prefix]
1429 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1430 [PREFIX]
1431
1432 By default, \`make install' will install all the files in
1433 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1434 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1435 for instance \`--prefix=\$HOME'.
1436
1437 For better control, use the options below.
1438
1439 Fine tuning of the installation directories:
1440 --bindir=DIR user executables [EPREFIX/bin]
1441 --sbindir=DIR system admin executables [EPREFIX/sbin]
1442 --libexecdir=DIR program executables [EPREFIX/libexec]
1443 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1444 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1445 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1446 --libdir=DIR object code libraries [EPREFIX/lib]
1447 --includedir=DIR C header files [PREFIX/include]
1448 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1449 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1450 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1451 --infodir=DIR info documentation [DATAROOTDIR/info]
1452 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1453 --mandir=DIR man documentation [DATAROOTDIR/man]
1454 --docdir=DIR documentation root [DATAROOTDIR/doc/minidjvu]
1455 --htmldir=DIR html documentation [DOCDIR]
1456 --dvidir=DIR dvi documentation [DOCDIR]
1457 --pdfdir=DIR pdf documentation [DOCDIR]
1458 --psdir=DIR ps documentation [DOCDIR]
1459 _ACEOF
1460
1461 cat <<\_ACEOF
1462
1463 System types:
1464 --build=BUILD configure for building on BUILD [guessed]
1465 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1466 _ACEOF
1467 fi
1468
1469 if test -n "$ac_init_help"; then
1470 case $ac_init_help in
1471 short | recursive ) echo "Configuration of minidjvu 0.8:";;
1472 esac
1473 cat <<\_ACEOF
1474
1475 Optional Features:
1476 --disable-option-checking ignore unrecognized --enable/--with options
1477 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1478 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1479 --enable-static Enable static building
1480 --enable-gettext Enable localization via gettext
1481 --enable-shared[=PKGS] build shared libraries [default=yes]
1482 --enable-static[=PKGS] build static libraries [default=yes]
1483 --enable-fast-install[=PKGS]
1484 optimize for fast installation [default=yes]
1485 --disable-libtool-lock avoid locking (might break parallel builds)
1486
1487 Optional Packages:
1488 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1489 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1490 --with-tiff Enable static tiff support
1491 --with-pic try to use only PIC/non-PIC objects [default=use
1492 both]
1493 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1494
1495 Some influential environment variables:
1496 CXX C++ compiler command
1497 CXXFLAGS C++ compiler flags
1498 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1499 nonstandard directory <lib dir>
1500 LIBS libraries to pass to the linker, e.g. -l<library>
1501 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1502 you have headers in a nonstandard directory <include dir>
1503 CC C compiler command
1504 CFLAGS C compiler flags
1505 CPP C preprocessor
1506 CXXCPP C++ preprocessor
1507
1508 Use these variables to override the choices made by `configure' or to help
1509 it to find libraries and programs with nonstandard names/locations.
1510
1511 Report bugs to <[email protected]>.
1512 _ACEOF
1513 ac_status=$?
1514 fi
1515
1516 if test "$ac_init_help" = "recursive"; then
1517 # If there are subdirs, report their specific --help.
1518 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1519 test -d "$ac_dir" ||
1520 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1521 continue
1522 ac_builddir=.
1523
1524 case "$ac_dir" in
1525 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526 *)
1527 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1528 # A ".." for each directory in $ac_dir_suffix.
1529 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1530 case $ac_top_builddir_sub in
1531 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1533 esac ;;
1534 esac
1535 ac_abs_top_builddir=$ac_pwd
1536 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1537 # for backward compatibility:
1538 ac_top_builddir=$ac_top_build_prefix
1539
1540 case $srcdir in
1541 .) # We are building in place.
1542 ac_srcdir=.
1543 ac_top_srcdir=$ac_top_builddir_sub
1544 ac_abs_top_srcdir=$ac_pwd ;;
1545 [\\/]* | ?:[\\/]* ) # Absolute name.
1546 ac_srcdir=$srcdir$ac_dir_suffix;
1547 ac_top_srcdir=$srcdir
1548 ac_abs_top_srcdir=$srcdir ;;
1549 *) # Relative name.
1550 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1551 ac_top_srcdir=$ac_top_build_prefix$srcdir
1552 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1553 esac
1554 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1555
1556 cd "$ac_dir" || { ac_status=$?; continue; }
1557 # Check for guested configure.
1558 if test -f "$ac_srcdir/configure.gnu"; then
1559 echo &&
1560 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1561 elif test -f "$ac_srcdir/configure"; then
1562 echo &&
1563 $SHELL "$ac_srcdir/configure" --help=recursive
1564 else
1565 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1566 fi || ac_status=$?
1567 cd "$ac_pwd" || { ac_status=$?; break; }
1568 done
1569 fi
1570
1571 test -n "$ac_init_help" && exit $ac_status
1572 if $ac_init_version; then
1573 cat <<\_ACEOF
1574 minidjvu configure 0.8
1575 generated by GNU Autoconf 2.64
1576
1577 Copyright (C) 2009 Free Software Foundation, Inc.
1578 This configure script is free software; the Free Software Foundation
1579 gives unlimited permission to copy, distribute and modify it.
1580 _ACEOF
1581 exit
1582 fi
1583
1584 ## ------------------------ ##
1585 ## Autoconf initialization. ##
1586 ## ------------------------ ##
1587
1588 # ac_fn_cxx_try_compile LINENO
1589 # ----------------------------
1590 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1591 ac_fn_cxx_try_compile ()
1592 {
1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594 rm -f conftest.$ac_objext
1595 if { { ac_try="$ac_compile"
1596 case "(($ac_try" in
1597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598 *) ac_try_echo=$ac_try;;
1599 esac
1600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601 $as_echo "$ac_try_echo"; } >&5
1602 (eval "$ac_compile") 2>conftest.err
1603 ac_status=$?
1604 if test -s conftest.err; then
1605 grep -v '^ *+' conftest.err >conftest.er1
1606 cat conftest.er1 >&5
1607 mv -f conftest.er1 conftest.err
1608 fi
1609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610 test $ac_status = 0; } && {
1611 test -z "$ac_cxx_werror_flag" ||
1612 test ! -s conftest.err
1613 } && test -s conftest.$ac_objext; then :
1614 ac_retval=0
1615 else
1616 $as_echo "$as_me: failed program was:" >&5
1617 sed 's/^/| /' conftest.$ac_ext >&5
1618
1619 ac_retval=1
1620 fi
1621 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1622 return $ac_retval
1623
1624 } # ac_fn_cxx_try_compile
1625
1626 # ac_fn_c_try_compile LINENO
1627 # --------------------------
1628 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1629 ac_fn_c_try_compile ()
1630 {
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 rm -f conftest.$ac_objext
1633 if { { ac_try="$ac_compile"
1634 case "(($ac_try" in
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1637 esac
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_compile") 2>conftest.err
1641 ac_status=$?
1642 if test -s conftest.err; then
1643 grep -v '^ *+' conftest.err >conftest.er1
1644 cat conftest.er1 >&5
1645 mv -f conftest.er1 conftest.err
1646 fi
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } && {
1649 test -z "$ac_c_werror_flag" ||
1650 test ! -s conftest.err
1651 } && test -s conftest.$ac_objext; then :
1652 ac_retval=0
1653 else
1654 $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1656
1657 ac_retval=1
1658 fi
1659 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1660 return $ac_retval
1661
1662 } # ac_fn_c_try_compile
1663
1664 # ac_fn_c_try_link LINENO
1665 # -----------------------
1666 # Try to link conftest.$ac_ext, and return whether this succeeded.
1667 ac_fn_c_try_link ()
1668 {
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 rm -f conftest.$ac_objext conftest$ac_exeext
1671 if { { ac_try="$ac_link"
1672 case "(($ac_try" in
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1675 esac
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_link") 2>conftest.err
1679 ac_status=$?
1680 if test -s conftest.err; then
1681 grep -v '^ *+' conftest.err >conftest.er1
1682 cat conftest.er1 >&5
1683 mv -f conftest.er1 conftest.err
1684 fi
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } && {
1687 test -z "$ac_c_werror_flag" ||
1688 test ! -s conftest.err
1689 } && test -s conftest$ac_exeext && {
1690 test "$cross_compiling" = yes ||
1691 $as_test_x conftest$ac_exeext
1692 }; then :
1693 ac_retval=0
1694 else
1695 $as_echo "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1697
1698 ac_retval=1
1699 fi
1700 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1701 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1702 # interfere with the next link command; also delete a directory that is
1703 # left behind by Apple's compiler. We do this before executing the actions.
1704 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1705 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1706 return $ac_retval
1707
1708 } # ac_fn_c_try_link
1709
1710 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1711 # -------------------------------------------------------
1712 # Tests whether HEADER exists and can be compiled using the include files in
1713 # INCLUDES, setting the cache variable VAR accordingly.
1714 ac_fn_c_check_header_compile ()
1715 {
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1718 $as_echo_n "checking for $2... " >&6; }
1719 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1720 $as_echo_n "(cached) " >&6
1721 else
1722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1723 /* end confdefs.h. */
1724 $4
1725 #include <$2>
1726 _ACEOF
1727 if ac_fn_c_try_compile "$LINENO"; then :
1728 eval "$3=yes"
1729 else
1730 eval "$3=no"
1731 fi
1732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1733 fi
1734 eval ac_res=\$$3
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1736 $as_echo "$ac_res" >&6; }
1737 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1738
1739 } # ac_fn_c_check_header_compile
1740
1741 # ac_fn_c_try_cpp LINENO
1742 # ----------------------
1743 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1744 ac_fn_c_try_cpp ()
1745 {
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 if { { ac_try="$ac_cpp conftest.$ac_ext"
1748 case "(($ac_try" in
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1751 esac
1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753 $as_echo "$ac_try_echo"; } >&5
1754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1755 ac_status=$?
1756 if test -s conftest.err; then
1757 grep -v '^ *+' conftest.err >conftest.er1
1758 cat conftest.er1 >&5
1759 mv -f conftest.er1 conftest.err
1760 fi
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; } >/dev/null && {
1763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1764 test ! -s conftest.err
1765 }; then :
1766 ac_retval=0
1767 else
1768 $as_echo "$as_me: failed program was:" >&5
1769 sed 's/^/| /' conftest.$ac_ext >&5
1770
1771 ac_retval=1
1772 fi
1773 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1774 return $ac_retval
1775
1776 } # ac_fn_c_try_cpp
1777
1778 # ac_fn_c_try_run LINENO
1779 # ----------------------
1780 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1781 # that executables *can* be run.
1782 ac_fn_c_try_run ()
1783 {
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 if { { ac_try="$ac_link"
1786 case "(($ac_try" in
1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1789 esac
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_link") 2>&5
1793 ac_status=$?
1794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1796 { { case "(($ac_try" in
1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798 *) ac_try_echo=$ac_try;;
1799 esac
1800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801 $as_echo "$ac_try_echo"; } >&5
1802 (eval "$ac_try") 2>&5
1803 ac_status=$?
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; }; }; then :
1806 ac_retval=0
1807 else
1808 $as_echo "$as_me: program exited with status $ac_status" >&5
1809 $as_echo "$as_me: failed program was:" >&5
1810 sed 's/^/| /' conftest.$ac_ext >&5
1811
1812 ac_retval=$ac_status
1813 fi
1814 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1815 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1816 return $ac_retval
1817
1818 } # ac_fn_c_try_run
1819
1820 # ac_fn_c_check_func LINENO FUNC VAR
1821 # ----------------------------------
1822 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1823 ac_fn_c_check_func ()
1824 {
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827 $as_echo_n "checking for $2... " >&6; }
1828 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1829 $as_echo_n "(cached) " >&6
1830 else
1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h. */
1833 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1835 #define $2 innocuous_$2
1836
1837 /* System header to define __stub macros and hopefully few prototypes,
1838 which can conflict with char $2 (); below.
1839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1840 <limits.h> exists even on freestanding compilers. */
1841
1842 #ifdef __STDC__
1843 # include <limits.h>
1844 #else
1845 # include <assert.h>
1846 #endif
1847
1848 #undef $2
1849
1850 /* Override any GCC internal prototype to avoid an error.
1851 Use char because int might match the return type of a GCC
1852 builtin and then its argument prototype would still apply. */
1853 #ifdef __cplusplus
1854 extern "C"
1855 #endif
1856 char $2 ();
1857 /* The GNU C library defines this for functions which it implements
1858 to always fail with ENOSYS. Some functions are actually named
1859 something starting with __ and the normal name is an alias. */
1860 #if defined __stub_$2 || defined __stub___$2
1861 choke me
1862 #endif
1863
1864 int
1865 main ()
1866 {
1867 return $2 ();
1868 ;
1869 return 0;
1870 }
1871 _ACEOF
1872 if ac_fn_c_try_link "$LINENO"; then :
1873 eval "$3=yes"
1874 else
1875 eval "$3=no"
1876 fi
1877 rm -f core conftest.err conftest.$ac_objext \
1878 conftest$ac_exeext conftest.$ac_ext
1879 fi
1880 eval ac_res=\$$3
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882 $as_echo "$ac_res" >&6; }
1883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1884
1885 } # ac_fn_c_check_func
1886
1887 # ac_fn_cxx_try_cpp LINENO
1888 # ------------------------
1889 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1890 ac_fn_cxx_try_cpp ()
1891 {
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 if { { ac_try="$ac_cpp conftest.$ac_ext"
1894 case "(($ac_try" in
1895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896 *) ac_try_echo=$ac_try;;
1897 esac
1898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899 $as_echo "$ac_try_echo"; } >&5
1900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1901 ac_status=$?
1902 if test -s conftest.err; then
1903 grep -v '^ *+' conftest.err >conftest.er1
1904 cat conftest.er1 >&5
1905 mv -f conftest.er1 conftest.err
1906 fi
1907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908 test $ac_status = 0; } >/dev/null && {
1909 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1910 test ! -s conftest.err
1911 }; then :
1912 ac_retval=0
1913 else
1914 $as_echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1916
1917 ac_retval=1
1918 fi
1919 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1920 return $ac_retval
1921
1922 } # ac_fn_cxx_try_cpp
1923
1924 # ac_fn_cxx_try_link LINENO
1925 # -------------------------
1926 # Try to link conftest.$ac_ext, and return whether this succeeded.
1927 ac_fn_cxx_try_link ()
1928 {
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 rm -f conftest.$ac_objext conftest$ac_exeext
1931 if { { ac_try="$ac_link"
1932 case "(($ac_try" in
1933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1934 *) ac_try_echo=$ac_try;;
1935 esac
1936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1937 $as_echo "$ac_try_echo"; } >&5
1938 (eval "$ac_link") 2>conftest.err
1939 ac_status=$?
1940 if test -s conftest.err; then
1941 grep -v '^ *+' conftest.err >conftest.er1
1942 cat conftest.er1 >&5
1943 mv -f conftest.er1 conftest.err
1944 fi
1945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1946 test $ac_status = 0; } && {
1947 test -z "$ac_cxx_werror_flag" ||
1948 test ! -s conftest.err
1949 } && test -s conftest$ac_exeext && {
1950 test "$cross_compiling" = yes ||
1951 $as_test_x conftest$ac_exeext
1952 }; then :
1953 ac_retval=0
1954 else
1955 $as_echo "$as_me: failed program was:" >&5
1956 sed 's/^/| /' conftest.$ac_ext >&5
1957
1958 ac_retval=1
1959 fi
1960 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1961 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1962 # interfere with the next link command; also delete a directory that is
1963 # left behind by Apple's compiler. We do this before executing the actions.
1964 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1965 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1966 return $ac_retval
1967
1968 } # ac_fn_cxx_try_link
1969
1970 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1971 # -------------------------------------------------------
1972 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1973 # the include files in INCLUDES and setting the cache variable VAR
1974 # accordingly.
1975 ac_fn_c_check_header_mongrel ()
1976 {
1977 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1980 $as_echo_n "checking for $2... " >&6; }
1981 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1982 $as_echo_n "(cached) " >&6
1983 fi
1984 eval ac_res=\$$3
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986 $as_echo "$ac_res" >&6; }
1987 else
1988 # Is the header compilable?
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1990 $as_echo_n "checking $2 usability... " >&6; }
1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992 /* end confdefs.h. */
1993 $4
1994 #include <$2>
1995 _ACEOF
1996 if ac_fn_c_try_compile "$LINENO"; then :
1997 ac_header_compiler=yes
1998 else
1999 ac_header_compiler=no
2000 fi
2001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2003 $as_echo "$ac_header_compiler" >&6; }
2004
2005 # Is the header present?
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2007 $as_echo_n "checking $2 presence... " >&6; }
2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h. */
2010 #include <$2>
2011 _ACEOF
2012 if ac_fn_c_try_cpp "$LINENO"; then :
2013 ac_header_preproc=yes
2014 else
2015 ac_header_preproc=no
2016 fi
2017 rm -f conftest.err conftest.$ac_ext
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2019 $as_echo "$ac_header_preproc" >&6; }
2020
2021 # So? What about this header?
2022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2023 yes:no: )
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2025 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2027 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2028 ;;
2029 no:yes:* )
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2031 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2033 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2035 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2037 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2039 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2040 ( cat <<\_ASBOX
2041 ## ------------------------------------------ ##
2042 ## Report this to [email protected] ##
2043 ## ------------------------------------------ ##
2044 _ASBOX
2045 ) | sed "s/^/$as_me: WARNING: /" >&2
2046 ;;
2047 esac
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2049 $as_echo_n "checking for $2... " >&6; }
2050 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2051 $as_echo_n "(cached) " >&6
2052 else
2053 eval "$3=\$ac_header_compiler"
2054 fi
2055 eval ac_res=\$$3
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057 $as_echo "$ac_res" >&6; }
2058 fi
2059 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2060
2061 } # ac_fn_c_check_header_mongrel
2062
2063 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2064 # -------------------------------------------
2065 # Tests whether TYPE exists after having included INCLUDES, setting cache
2066 # variable VAR accordingly.
2067 ac_fn_c_check_type ()
2068 {
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2071 $as_echo_n "checking for $2... " >&6; }
2072 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2073 $as_echo_n "(cached) " >&6
2074 else
2075 eval "$3=no"
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2078 $4
2079 int
2080 main ()
2081 {
2082 if (sizeof ($2))
2083 return 0;
2084 ;
2085 return 0;
2086 }
2087 _ACEOF
2088 if ac_fn_c_try_compile "$LINENO"; then :
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2091 $4
2092 int
2093 main ()
2094 {
2095 if (sizeof (($2)))
2096 return 0;
2097 ;
2098 return 0;
2099 }
2100 _ACEOF
2101 if ac_fn_c_try_compile "$LINENO"; then :
2102
2103 else
2104 eval "$3=yes"
2105 fi
2106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107 fi
2108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109 fi
2110 eval ac_res=\$$3
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2112 $as_echo "$ac_res" >&6; }
2113 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2114
2115 } # ac_fn_c_check_type
2116 cat >config.log <<_ACEOF
2117 This file contains any messages produced by compilers while
2118 running configure, to aid debugging if configure makes a mistake.
2119
2120 It was created by minidjvu $as_me 0.8, which was
2121 generated by GNU Autoconf 2.64. Invocation command line was
2122
2123 $ $0 $@
2124
2125 _ACEOF
2126 exec 5>>config.log
2127 {
2128 cat <<_ASUNAME
2129 ## --------- ##
2130 ## Platform. ##
2131 ## --------- ##
2132
2133 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2134 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2135 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2136 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2137 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2138
2139 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2140 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2141
2142 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2143 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2144 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2145 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2146 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2147 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2148 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2149
2150 _ASUNAME
2151
2152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2153 for as_dir in $PATH
2154 do
2155 IFS=$as_save_IFS
2156 test -z "$as_dir" && as_dir=.
2157 $as_echo "PATH: $as_dir"
2158 done
2159 IFS=$as_save_IFS
2160
2161 } >&5
2162
2163 cat >&5 <<_ACEOF
2164
2165
2166 ## ----------- ##
2167 ## Core tests. ##
2168 ## ----------- ##
2169
2170 _ACEOF
2171
2172
2173 # Keep a trace of the command line.
2174 # Strip out --no-create and --no-recursion so they do not pile up.
2175 # Strip out --silent because we don't want to record it for future runs.
2176 # Also quote any args containing shell meta-characters.
2177 # Make two passes to allow for proper duplicate-argument suppression.
2178 ac_configure_args=
2179 ac_configure_args0=
2180 ac_configure_args1=
2181 ac_must_keep_next=false
2182 for ac_pass in 1 2
2183 do
2184 for ac_arg
2185 do
2186 case $ac_arg in
2187 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2188 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2189 | -silent | --silent | --silen | --sile | --sil)
2190 continue ;;
2191 *\'*)
2192 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2193 esac
2194 case $ac_pass in
2195 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2196 2)
2197 as_fn_append ac_configure_args1 " '$ac_arg'"
2198 if test $ac_must_keep_next = true; then
2199 ac_must_keep_next=false # Got value, back to normal.
2200 else
2201 case $ac_arg in
2202 *=* | --config-cache | -C | -disable-* | --disable-* \
2203 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2204 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2205 | -with-* | --with-* | -without-* | --without-* | --x)
2206 case "$ac_configure_args0 " in
2207 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2208 esac
2209 ;;
2210 -* ) ac_must_keep_next=true ;;
2211 esac
2212 fi
2213 as_fn_append ac_configure_args " '$ac_arg'"
2214 ;;
2215 esac
2216 done
2217 done
2218 { ac_configure_args0=; unset ac_configure_args0;}
2219 { ac_configure_args1=; unset ac_configure_args1;}
2220
2221 # When interrupted or exit'd, cleanup temporary files, and complete
2222 # config.log. We remove comments because anyway the quotes in there
2223 # would cause problems or look ugly.
2224 # WARNING: Use '\'' to represent an apostrophe within the trap.
2225 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2226 trap 'exit_status=$?
2227 # Save into config.log some information that might help in debugging.
2228 {
2229 echo
2230
2231 cat <<\_ASBOX
2232 ## ---------------- ##
2233 ## Cache variables. ##
2234 ## ---------------- ##
2235 _ASBOX
2236 echo
2237 # The following way of writing the cache mishandles newlines in values,
2238 (
2239 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2240 eval ac_val=\$$ac_var
2241 case $ac_val in #(
2242 *${as_nl}*)
2243 case $ac_var in #(
2244 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2245 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2246 esac
2247 case $ac_var in #(
2248 _ | IFS | as_nl) ;; #(
2249 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2250 *) { eval $ac_var=; unset $ac_var;} ;;
2251 esac ;;
2252 esac
2253 done
2254 (set) 2>&1 |
2255 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2256 *${as_nl}ac_space=\ *)
2257 sed -n \
2258 "s/'\''/'\''\\\\'\'''\''/g;
2259 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2260 ;; #(
2261 *)
2262 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2263 ;;
2264 esac |
2265 sort
2266 )
2267 echo
2268
2269 cat <<\_ASBOX
2270 ## ----------------- ##
2271 ## Output variables. ##
2272 ## ----------------- ##
2273 _ASBOX
2274 echo
2275 for ac_var in $ac_subst_vars
2276 do
2277 eval ac_val=\$$ac_var
2278 case $ac_val in
2279 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2280 esac
2281 $as_echo "$ac_var='\''$ac_val'\''"
2282 done | sort
2283 echo
2284
2285 if test -n "$ac_subst_files"; then
2286 cat <<\_ASBOX
2287 ## ------------------- ##
2288 ## File substitutions. ##
2289 ## ------------------- ##
2290 _ASBOX
2291 echo
2292 for ac_var in $ac_subst_files
2293 do
2294 eval ac_val=\$$ac_var
2295 case $ac_val in
2296 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2297 esac
2298 $as_echo "$ac_var='\''$ac_val'\''"
2299 done | sort
2300 echo
2301 fi
2302
2303 if test -s confdefs.h; then
2304 cat <<\_ASBOX
2305 ## ----------- ##
2306 ## confdefs.h. ##
2307 ## ----------- ##
2308 _ASBOX
2309 echo
2310 cat confdefs.h
2311 echo
2312 fi
2313 test "$ac_signal" != 0 &&
2314 $as_echo "$as_me: caught signal $ac_signal"
2315 $as_echo "$as_me: exit $exit_status"
2316 } >&5
2317 rm -f core *.core core.conftest.* &&
2318 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2319 exit $exit_status
2320 ' 0
2321 for ac_signal in 1 2 13 15; do
2322 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2323 done
2324 ac_signal=0
2325
2326 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2327 rm -f -r conftest* confdefs.h
2328
2329 $as_echo "/* confdefs.h */" > confdefs.h
2330
2331 # Predefined preprocessor variables.
2332
2333 cat >>confdefs.h <<_ACEOF
2334 #define PACKAGE_NAME "$PACKAGE_NAME"
2335 _ACEOF
2336
2337 cat >>confdefs.h <<_ACEOF
2338 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2339 _ACEOF
2340
2341 cat >>confdefs.h <<_ACEOF
2342 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2343 _ACEOF
2344
2345 cat >>confdefs.h <<_ACEOF
2346 #define PACKAGE_STRING "$PACKAGE_STRING"
2347 _ACEOF
2348
2349 cat >>confdefs.h <<_ACEOF
2350 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2351 _ACEOF
2352
2353 cat >>confdefs.h <<_ACEOF
2354 #define PACKAGE_URL "$PACKAGE_URL"
2355 _ACEOF
2356
2357
2358 # Let the site file select an alternate cache file if it wants to.
2359 # Prefer an explicitly selected file to automatically selected ones.
2360 ac_site_file1=NONE
2361 ac_site_file2=NONE
2362 if test -n "$CONFIG_SITE"; then
2363 ac_site_file1=$CONFIG_SITE
2364 elif test "x$prefix" != xNONE; then
2365 ac_site_file1=$prefix/share/config.site
2366 ac_site_file2=$prefix/etc/config.site
2367 else
2368 ac_site_file1=$ac_default_prefix/share/config.site
2369 ac_site_file2=$ac_default_prefix/etc/config.site
2370 fi
2371 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2372 do
2373 test "x$ac_site_file" = xNONE && continue
2374 if test -r "$ac_site_file"; then
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2376 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2377 sed 's/^/| /' "$ac_site_file" >&5
2378 . "$ac_site_file"
2379 fi
2380 done
2381
2382 if test -r "$cache_file"; then
2383 # Some versions of bash will fail to source /dev/null (special
2384 # files actually), so we avoid doing that.
2385 if test -f "$cache_file"; then
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2387 $as_echo "$as_me: loading cache $cache_file" >&6;}
2388 case $cache_file in
2389 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2390 *) . "./$cache_file";;
2391 esac
2392 fi
2393 else
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2395 $as_echo "$as_me: creating cache $cache_file" >&6;}
2396 >$cache_file
2397 fi
2398
2399 # Check that the precious variables saved in the cache have kept the same
2400 # value.
2401 ac_cache_corrupted=false
2402 for ac_var in $ac_precious_vars; do
2403 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2404 eval ac_new_set=\$ac_env_${ac_var}_set
2405 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2406 eval ac_new_val=\$ac_env_${ac_var}_value
2407 case $ac_old_set,$ac_new_set in
2408 set,)
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2410 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2411 ac_cache_corrupted=: ;;
2412 ,set)
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2414 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2415 ac_cache_corrupted=: ;;
2416 ,);;
2417 *)
2418 if test "x$ac_old_val" != "x$ac_new_val"; then
2419 # differences in whitespace do not lead to failure.
2420 ac_old_val_w=`echo x $ac_old_val`
2421 ac_new_val_w=`echo x $ac_new_val`
2422 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2424 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2425 ac_cache_corrupted=:
2426 else
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2428 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2429 eval $ac_var=\$ac_old_val
2430 fi
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2432 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2434 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2435 fi;;
2436 esac
2437 # Pass precious variables to config.status.
2438 if test "$ac_new_set" = set; then
2439 case $ac_new_val in
2440 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2441 *) ac_arg=$ac_var=$ac_new_val ;;
2442 esac
2443 case " $ac_configure_args " in
2444 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2445 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2446 esac
2447 fi
2448 done
2449 if $ac_cache_corrupted; then
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2453 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2454 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2455 fi
2456 ## -------------------- ##
2457 ## Main body of script. ##
2458 ## -------------------- ##
2459
2460 ac_ext=c
2461 ac_cpp='$CPP $CPPFLAGS'
2462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2465
2466
2467 ac_aux_dir=
2468 for ac_dir in config "$srcdir"/config; do
2469 for ac_t in install-sh install.sh shtool; do
2470 if test -f "$ac_dir/$ac_t"; then
2471 ac_aux_dir=$ac_dir
2472 ac_install_sh="$ac_aux_dir/$ac_t -c"
2473 break 2
2474 fi
2475 done
2476 done
2477 if test -z "$ac_aux_dir"; then
2478 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2479 fi
2480
2481 # These three variables are undocumented and unsupported,
2482 # and are intended to be withdrawn in a future Autoconf release.
2483 # They can cause serious problems if a builder's source tree is in a directory
2484 # whose full name contains unusual characters.
2485 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2486 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2487 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2488
2489
2490 ac_config_headers="$ac_config_headers config.h:config/config.h.in"
2491
2492
2493
2494
2495 LIBRARY_VERSION=`echo $PACKAGE_VERSION | sed -e 's/\./:/'`
2496
2497 # Make sure we can run config.sub.
2498 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2499 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2500
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2502 $as_echo_n "checking build system type... " >&6; }
2503 if test "${ac_cv_build+set}" = set; then :
2504 $as_echo_n "(cached) " >&6
2505 else
2506 ac_build_alias=$build_alias
2507 test "x$ac_build_alias" = x &&
2508 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2509 test "x$ac_build_alias" = x &&
2510 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2511 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2512 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2513
2514 fi
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2516 $as_echo "$ac_cv_build" >&6; }
2517 case $ac_cv_build in
2518 *-*-*) ;;
2519 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2520 esac
2521 build=$ac_cv_build
2522 ac_save_IFS=$IFS; IFS='-'
2523 set x $ac_cv_build
2524 shift
2525 build_cpu=$1
2526 build_vendor=$2
2527 shift; shift
2528 # Remember, the first character of IFS is used to create $*,
2529 # except with old shells:
2530 build_os=$*
2531 IFS=$ac_save_IFS
2532 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2533
2534
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2536 $as_echo_n "checking host system type... " >&6; }
2537 if test "${ac_cv_host+set}" = set; then :
2538 $as_echo_n "(cached) " >&6
2539 else
2540 if test "x$host_alias" = x; then
2541 ac_cv_host=$ac_cv_build
2542 else
2543 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2544 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2545 fi
2546
2547 fi
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2549 $as_echo "$ac_cv_host" >&6; }
2550 case $ac_cv_host in
2551 *-*-*) ;;
2552 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2553 esac
2554 host=$ac_cv_host
2555 ac_save_IFS=$IFS; IFS='-'
2556 set x $ac_cv_host
2557 shift
2558 host_cpu=$1
2559 host_vendor=$2
2560 shift; shift
2561 # Remember, the first character of IFS is used to create $*,
2562 # except with old shells:
2563 host_os=$*
2564 IFS=$ac_save_IFS
2565 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2566
2567
2568
2569 target="$PACKAGE_NAME"
2570 mdjvulib="lib$PACKAGE_NAME"
2571
2572 prefer_static='no'
2573 prefer_gettext='yes'
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we are building for Windows" >&5
2575 $as_echo_n "checking if we are building for Windows... " >&6; }
2576 case "$host" in
2577 *-mingw32)
2578 prefer_static='yes'
2579 prefer_gettext='no'
2580 target="$target.exe"
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2582 $as_echo "yes" >&6; }
2583 ;;
2584 *)
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2586 $as_echo "no" >&6; }
2587 ;;
2588 esac
2589
2590 # Check whether --enable-static was given.
2591 if test "${enable_static+set}" = set; then :
2592 enableval=$enable_static; static=$enableval
2593 else
2594 static=$prefer_static
2595 fi
2596
2597
2598 # Check whether --enable-gettext was given.
2599 if test "${enable_gettext+set}" = set; then :
2600 enableval=$enable_gettext; gettext=$enableva
2601 else
2602 gettext=$prefer_gettext
2603 fi
2604
2605
2606
2607 # Check whether --with-tiff was given.
2608 if test "${with_tiff+set}" = set; then :
2609 withval=$with_tiff; tiff=$enableval
2610 else
2611 tiff=yes
2612 fi
2613
2614
2615 if test "$static" = "yes"; then
2616 if test "x$LDFLAGS" = "x"; then
2617 LDFLAGS="-static"
2618 fi
2619 mdjvulib="$mdjvulib.a"
2620 oext='o'
2621 SHARED_YES='#'
2622 else
2623 mdjvulib="$mdjvulib.la"
2624 oext='lo'
2625 STATIC_YES='#'
2626 fi
2627
2628 case "$host" in
2629 *-mingw32)
2630 if test "$static" != "yes"; then
2631 DLLFLAGS="$DLLFLAGS -Wl,--export-all-symbols"
2632 fi
2633 ;;
2634 *-darwin* | *-macos10*)
2635 if test -d /opt/local ; then
2636 INCS="-I/opt/local/include"
2637 LIBS="-L/opt/local/lib $LIBS"
2638 elif test -d /sw ; then
2639 INCS="-I/sw/include $CPPFLAGS"
2640 LIBS="-L/sw/lib $LIBS"
2641 fi
2642 ;;
2643 esac
2644
2645 # Checks for programs.
2646
2647 if test "x$CFLAGS" = "x"; then
2648 CFLAGS="-g -pipe -O3"
2649 fi
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2651 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2652 set x ${MAKE-make}
2653 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2654 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2655 $as_echo_n "(cached) " >&6
2656 else
2657 cat >conftest.make <<\_ACEOF
2658 SHELL = /bin/sh
2659 all:
2660 @echo '@@@%%%=$(MAKE)=@@@%%%'
2661 _ACEOF
2662 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2663 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2664 *@@@%%%=?*=@@@%%%*)
2665 eval ac_cv_prog_make_${ac_make}_set=yes;;
2666 *)
2667 eval ac_cv_prog_make_${ac_make}_set=no;;
2668 esac
2669 rm -f conftest.make
2670 fi
2671 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2673 $as_echo "yes" >&6; }
2674 SET_MAKE=
2675 else
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2677 $as_echo "no" >&6; }
2678 SET_MAKE="MAKE=${MAKE-make}"
2679 fi
2680
2681 ac_ext=cpp
2682 ac_cpp='$CXXCPP $CPPFLAGS'
2683 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2684 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2685 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2686 if test -z "$CXX"; then
2687 if test -n "$CCC"; then
2688 CXX=$CCC
2689 else
2690 if test -n "$ac_tool_prefix"; then
2691 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2692 do
2693 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2694 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2696 $as_echo_n "checking for $ac_word... " >&6; }
2697 if test "${ac_cv_prog_CXX+set}" = set; then :
2698 $as_echo_n "(cached) " >&6
2699 else
2700 if test -n "$CXX"; then
2701 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2702 else
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2705 do
2706 IFS=$as_save_IFS
2707 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2710 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2712 break 2
2713 fi
2714 done
2715 done
2716 IFS=$as_save_IFS
2717
2718 fi
2719 fi
2720 CXX=$ac_cv_prog_CXX
2721 if test -n "$CXX"; then
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2723 $as_echo "$CXX" >&6; }
2724 else
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2726 $as_echo "no" >&6; }
2727 fi
2728
2729
2730 test -n "$CXX" && break
2731 done
2732 fi
2733 if test -z "$CXX"; then
2734 ac_ct_CXX=$CXX
2735 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2736 do
2737 # Extract the first word of "$ac_prog", so it can be a program name with args.
2738 set dummy $ac_prog; ac_word=$2
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2740 $as_echo_n "checking for $ac_word... " >&6; }
2741 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
2742 $as_echo_n "(cached) " >&6
2743 else
2744 if test -n "$ac_ct_CXX"; then
2745 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2746 else
2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 for as_dir in $PATH
2749 do
2750 IFS=$as_save_IFS
2751 test -z "$as_dir" && as_dir=.
2752 for ac_exec_ext in '' $ac_executable_extensions; do
2753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2754 ac_cv_prog_ac_ct_CXX="$ac_prog"
2755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2756 break 2
2757 fi
2758 done
2759 done
2760 IFS=$as_save_IFS
2761
2762 fi
2763 fi
2764 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2765 if test -n "$ac_ct_CXX"; then
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2767 $as_echo "$ac_ct_CXX" >&6; }
2768 else
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2770 $as_echo "no" >&6; }
2771 fi
2772
2773
2774 test -n "$ac_ct_CXX" && break
2775 done
2776
2777 if test "x$ac_ct_CXX" = x; then
2778 CXX="g++"
2779 else
2780 case $cross_compiling:$ac_tool_warned in
2781 yes:)
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2784 ac_tool_warned=yes ;;
2785 esac
2786 CXX=$ac_ct_CXX
2787 fi
2788 fi
2789
2790 fi
2791 fi
2792 # Provide some information about the compiler.
2793 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2794 set X $ac_compile
2795 ac_compiler=$2
2796 for ac_option in --version -v -V -qversion; do
2797 { { ac_try="$ac_compiler $ac_option >&5"
2798 case "(($ac_try" in
2799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2800 *) ac_try_echo=$ac_try;;
2801 esac
2802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2803 $as_echo "$ac_try_echo"; } >&5
2804 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2805 ac_status=$?
2806 if test -s conftest.err; then
2807 sed '10a\
2808 ... rest of stderr output deleted ...
2809 10q' conftest.err >conftest.er1
2810 cat conftest.er1 >&5
2811 rm -f conftest.er1 conftest.err
2812 fi
2813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2814 test $ac_status = 0; }
2815 done
2816
2817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2818 /* end confdefs.h. */
2819 #include <stdio.h>
2820 int
2821 main ()
2822 {
2823 FILE *f = fopen ("conftest.out", "w");
2824 return ferror (f) || fclose (f) != 0;
2825
2826 ;
2827 return 0;
2828 }
2829 _ACEOF
2830 ac_clean_files_save=$ac_clean_files
2831 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2832 # Try to create an executable without -o first, disregard a.out.
2833 # It will help us diagnose broken compilers, and finding out an intuition
2834 # of exeext.
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
2836 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
2837 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2838
2839 # The possible output files:
2840 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2841
2842 ac_rmfiles=
2843 for ac_file in $ac_files
2844 do
2845 case $ac_file in
2846 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2847 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2848 esac
2849 done
2850 rm -f $ac_rmfiles
2851
2852 if { { ac_try="$ac_link_default"
2853 case "(($ac_try" in
2854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2855 *) ac_try_echo=$ac_try;;
2856 esac
2857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2858 $as_echo "$ac_try_echo"; } >&5
2859 (eval "$ac_link_default") 2>&5
2860 ac_status=$?
2861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2862 test $ac_status = 0; }; then :
2863 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2864 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2865 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2866 # so that the user can short-circuit this test for compilers unknown to
2867 # Autoconf.
2868 for ac_file in $ac_files ''
2869 do
2870 test -f "$ac_file" || continue
2871 case $ac_file in
2872 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2873 ;;
2874 [ab].out )
2875 # We found the default executable, but exeext='' is most
2876 # certainly right.
2877 break;;
2878 *.* )
2879 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2880 then :; else
2881 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2882 fi
2883 # We set ac_cv_exeext here because the later test for it is not
2884 # safe: cross compilers may not add the suffix if given an `-o'
2885 # argument, so we may need to know it at that point already.
2886 # Even if this section looks crufty: it has the advantage of
2887 # actually working.
2888 break;;
2889 * )
2890 break;;
2891 esac
2892 done
2893 test "$ac_cv_exeext" = no && ac_cv_exeext=
2894
2895 else
2896 ac_file=''
2897 fi
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2899 $as_echo "$ac_file" >&6; }
2900 if test -z "$ac_file"; then :
2901 $as_echo "$as_me: failed program was:" >&5
2902 sed 's/^/| /' conftest.$ac_ext >&5
2903
2904 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2906 { as_fn_set_status 77
2907 as_fn_error "C++ compiler cannot create executables
2908 See \`config.log' for more details." "$LINENO" 5; }; }
2909 fi
2910 ac_exeext=$ac_cv_exeext
2911
2912 # Check that the compiler produces executables we can run. If not, either
2913 # the compiler is broken, or we cross compile.
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2915 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2916 # If not cross compiling, check that we can run a simple program.
2917 if test "$cross_compiling" != yes; then
2918 if { ac_try='./$ac_file'
2919 { { case "(($ac_try" in
2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2922 esac
2923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2924 $as_echo "$ac_try_echo"; } >&5
2925 (eval "$ac_try") 2>&5
2926 ac_status=$?
2927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2928 test $ac_status = 0; }; }; then
2929 cross_compiling=no
2930 else
2931 if test "$cross_compiling" = maybe; then
2932 cross_compiling=yes
2933 else
2934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2936 as_fn_error "cannot run C++ compiled programs.
2937 If you meant to cross compile, use \`--host'.
2938 See \`config.log' for more details." "$LINENO" 5; }
2939 fi
2940 fi
2941 fi
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2943 $as_echo "yes" >&6; }
2944
2945 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2946 ac_clean_files=$ac_clean_files_save
2947 # Check that the compiler produces executables we can run. If not, either
2948 # the compiler is broken, or we cross compile.
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2950 $as_echo_n "checking whether we are cross compiling... " >&6; }
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2952 $as_echo "$cross_compiling" >&6; }
2953
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2955 $as_echo_n "checking for suffix of executables... " >&6; }
2956 if { { ac_try="$ac_link"
2957 case "(($ac_try" in
2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959 *) ac_try_echo=$ac_try;;
2960 esac
2961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2962 $as_echo "$ac_try_echo"; } >&5
2963 (eval "$ac_link") 2>&5
2964 ac_status=$?
2965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2966 test $ac_status = 0; }; then :
2967 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2968 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2969 # work properly (i.e., refer to `conftest.exe'), while it won't with
2970 # `rm'.
2971 for ac_file in conftest.exe conftest conftest.*; do
2972 test -f "$ac_file" || continue
2973 case $ac_file in
2974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2975 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2976 break;;
2977 * ) break;;
2978 esac
2979 done
2980 else
2981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2983 as_fn_error "cannot compute suffix of executables: cannot compile and link
2984 See \`config.log' for more details." "$LINENO" 5; }
2985 fi
2986 rm -f conftest$ac_cv_exeext
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2988 $as_echo "$ac_cv_exeext" >&6; }
2989
2990 rm -f conftest.$ac_ext
2991 EXEEXT=$ac_cv_exeext
2992 ac_exeext=$EXEEXT
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2994 $as_echo_n "checking for suffix of object files... " >&6; }
2995 if test "${ac_cv_objext+set}" = set; then :
2996 $as_echo_n "(cached) " >&6
2997 else
2998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2999 /* end confdefs.h. */
3000
3001 int
3002 main ()
3003 {
3004
3005 ;
3006 return 0;
3007 }
3008 _ACEOF
3009 rm -f conftest.o conftest.obj
3010 if { { ac_try="$ac_compile"
3011 case "(($ac_try" in
3012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013 *) ac_try_echo=$ac_try;;
3014 esac
3015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3016 $as_echo "$ac_try_echo"; } >&5
3017 (eval "$ac_compile") 2>&5
3018 ac_status=$?
3019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3020 test $ac_status = 0; }; then :
3021 for ac_file in conftest.o conftest.obj conftest.*; do
3022 test -f "$ac_file" || continue;
3023 case $ac_file in
3024 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3025 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3026 break;;
3027 esac
3028 done
3029 else
3030 $as_echo "$as_me: failed program was:" >&5
3031 sed 's/^/| /' conftest.$ac_ext >&5
3032
3033 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3035 as_fn_error "cannot compute suffix of object files: cannot compile
3036 See \`config.log' for more details." "$LINENO" 5; }
3037 fi
3038 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3039 fi
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3041 $as_echo "$ac_cv_objext" >&6; }
3042 OBJEXT=$ac_cv_objext
3043 ac_objext=$OBJEXT
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3045 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3046 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3047 $as_echo_n "(cached) " >&6
3048 else
3049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3050 /* end confdefs.h. */
3051
3052 int
3053 main ()
3054 {
3055 #ifndef __GNUC__
3056 choke me
3057 #endif
3058
3059 ;
3060 return 0;
3061 }
3062 _ACEOF
3063 if ac_fn_cxx_try_compile "$LINENO"; then :
3064 ac_compiler_gnu=yes
3065 else
3066 ac_compiler_gnu=no
3067 fi
3068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3069 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3070
3071 fi
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3073 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3074 if test $ac_compiler_gnu = yes; then
3075 GXX=yes
3076 else
3077 GXX=
3078 fi
3079 ac_test_CXXFLAGS=${CXXFLAGS+set}
3080 ac_save_CXXFLAGS=$CXXFLAGS
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3082 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3083 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3084 $as_echo_n "(cached) " >&6
3085 else
3086 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3087 ac_cxx_werror_flag=yes
3088 ac_cv_prog_cxx_g=no
3089 CXXFLAGS="-g"
3090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3091 /* end confdefs.h. */
3092
3093 int
3094 main ()
3095 {
3096
3097 ;
3098 return 0;
3099 }
3100 _ACEOF
3101 if ac_fn_cxx_try_compile "$LINENO"; then :
3102 ac_cv_prog_cxx_g=yes
3103 else
3104 CXXFLAGS=""
3105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3106 /* end confdefs.h. */
3107
3108 int
3109 main ()
3110 {
3111
3112 ;
3113 return 0;
3114 }
3115 _ACEOF
3116 if ac_fn_cxx_try_compile "$LINENO"; then :
3117
3118 else
3119 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3120 CXXFLAGS="-g"
3121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3122 /* end confdefs.h. */
3123
3124 int
3125 main ()
3126 {
3127
3128 ;
3129 return 0;
3130 }
3131 _ACEOF
3132 if ac_fn_cxx_try_compile "$LINENO"; then :
3133 ac_cv_prog_cxx_g=yes
3134 fi
3135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3136 fi
3137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3138 fi
3139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3140 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3141 fi
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3143 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3144 if test "$ac_test_CXXFLAGS" = set; then
3145 CXXFLAGS=$ac_save_CXXFLAGS
3146 elif test $ac_cv_prog_cxx_g = yes; then
3147 if test "$GXX" = yes; then
3148 CXXFLAGS="-g -O2"
3149 else
3150 CXXFLAGS="-g"
3151 fi
3152 else
3153 if test "$GXX" = yes; then
3154 CXXFLAGS="-O2"
3155 else
3156 CXXFLAGS=
3157 fi
3158 fi
3159 ac_ext=c
3160 ac_cpp='$CPP $CPPFLAGS'
3161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3164
3165 ac_ext=c
3166 ac_cpp='$CPP $CPPFLAGS'
3167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3170 if test -n "$ac_tool_prefix"; then
3171 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3172 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174 $as_echo_n "checking for $ac_word... " >&6; }
3175 if test "${ac_cv_prog_CC+set}" = set; then :
3176 $as_echo_n "(cached) " >&6
3177 else
3178 if test -n "$CC"; then
3179 ac_cv_prog_CC="$CC" # Let the user override the test.
3180 else
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 for as_dir in $PATH
3183 do
3184 IFS=$as_save_IFS
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3188 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 break 2
3191 fi
3192 done
3193 done
3194 IFS=$as_save_IFS
3195
3196 fi
3197 fi
3198 CC=$ac_cv_prog_CC
3199 if test -n "$CC"; then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3201 $as_echo "$CC" >&6; }
3202 else
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3205 fi
3206
3207
3208 fi
3209 if test -z "$ac_cv_prog_CC"; then
3210 ac_ct_CC=$CC
3211 # Extract the first word of "gcc", so it can be a program name with args.
3212 set dummy gcc; ac_word=$2
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3214 $as_echo_n "checking for $ac_word... " >&6; }
3215 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3216 $as_echo_n "(cached) " >&6
3217 else
3218 if test -n "$ac_ct_CC"; then
3219 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3220 else
3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 for as_dir in $PATH
3223 do
3224 IFS=$as_save_IFS
3225 test -z "$as_dir" && as_dir=.
3226 for ac_exec_ext in '' $ac_executable_extensions; do
3227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3228 ac_cv_prog_ac_ct_CC="gcc"
3229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3230 break 2
3231 fi
3232 done
3233 done
3234 IFS=$as_save_IFS
3235
3236 fi
3237 fi
3238 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3239 if test -n "$ac_ct_CC"; then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3241 $as_echo "$ac_ct_CC" >&6; }
3242 else
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244 $as_echo "no" >&6; }
3245 fi
3246
3247 if test "x$ac_ct_CC" = x; then
3248 CC=""
3249 else
3250 case $cross_compiling:$ac_tool_warned in
3251 yes:)
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3254 ac_tool_warned=yes ;;
3255 esac
3256 CC=$ac_ct_CC
3257 fi
3258 else
3259 CC="$ac_cv_prog_CC"
3260 fi
3261
3262 if test -z "$CC"; then
3263 if test -n "$ac_tool_prefix"; then
3264 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3265 set dummy ${ac_tool_prefix}cc; ac_word=$2
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3267 $as_echo_n "checking for $ac_word... " >&6; }
3268 if test "${ac_cv_prog_CC+set}" = set; then :
3269 $as_echo_n "(cached) " >&6
3270 else
3271 if test -n "$CC"; then
3272 ac_cv_prog_CC="$CC" # Let the user override the test.
3273 else
3274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275 for as_dir in $PATH
3276 do
3277 IFS=$as_save_IFS
3278 test -z "$as_dir" && as_dir=.
3279 for ac_exec_ext in '' $ac_executable_extensions; do
3280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3281 ac_cv_prog_CC="${ac_tool_prefix}cc"
3282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3283 break 2
3284 fi
3285 done
3286 done
3287 IFS=$as_save_IFS
3288
3289 fi
3290 fi
3291 CC=$ac_cv_prog_CC
3292 if test -n "$CC"; then
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3294 $as_echo "$CC" >&6; }
3295 else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297 $as_echo "no" >&6; }
3298 fi
3299
3300
3301 fi
3302 fi
3303 if test -z "$CC"; then
3304 # Extract the first word of "cc", so it can be a program name with args.
3305 set dummy cc; ac_word=$2
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3307 $as_echo_n "checking for $ac_word... " >&6; }
3308 if test "${ac_cv_prog_CC+set}" = set; then :
3309 $as_echo_n "(cached) " >&6
3310 else
3311 if test -n "$CC"; then
3312 ac_cv_prog_CC="$CC" # Let the user override the test.
3313 else
3314 ac_prog_rejected=no
3315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316 for as_dir in $PATH
3317 do
3318 IFS=$as_save_IFS
3319 test -z "$as_dir" && as_dir=.
3320 for ac_exec_ext in '' $ac_executable_extensions; do
3321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3322 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3323 ac_prog_rejected=yes
3324 continue
3325 fi
3326 ac_cv_prog_CC="cc"
3327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3328 break 2
3329 fi
3330 done
3331 done
3332 IFS=$as_save_IFS
3333
3334 if test $ac_prog_rejected = yes; then
3335 # We found a bogon in the path, so make sure we never use it.
3336 set dummy $ac_cv_prog_CC
3337 shift
3338 if test $# != 0; then
3339 # We chose a different compiler from the bogus one.
3340 # However, it has the same basename, so the bogon will be chosen
3341 # first if we set CC to just the basename; use the full file name.
3342 shift
3343 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3344 fi
3345 fi
3346 fi
3347 fi
3348 CC=$ac_cv_prog_CC
3349 if test -n "$CC"; then
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3351 $as_echo "$CC" >&6; }
3352 else
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354 $as_echo "no" >&6; }
3355 fi
3356
3357
3358 fi
3359 if test -z "$CC"; then
3360 if test -n "$ac_tool_prefix"; then
3361 for ac_prog in cl.exe
3362 do
3363 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3364 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3366 $as_echo_n "checking for $ac_word... " >&6; }
3367 if test "${ac_cv_prog_CC+set}" = set; then :
3368 $as_echo_n "(cached) " >&6
3369 else
3370 if test -n "$CC"; then
3371 ac_cv_prog_CC="$CC" # Let the user override the test.
3372 else
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 for as_dir in $PATH
3375 do
3376 IFS=$as_save_IFS
3377 test -z "$as_dir" && as_dir=.
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3380 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3382 break 2
3383 fi
3384 done
3385 done
3386 IFS=$as_save_IFS
3387
3388 fi
3389 fi
3390 CC=$ac_cv_prog_CC
3391 if test -n "$CC"; then
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3393 $as_echo "$CC" >&6; }
3394 else
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3396 $as_echo "no" >&6; }
3397 fi
3398
3399
3400 test -n "$CC" && break
3401 done
3402 fi
3403 if test -z "$CC"; then
3404 ac_ct_CC=$CC
3405 for ac_prog in cl.exe
3406 do
3407 # Extract the first word of "$ac_prog", so it can be a program name with args.
3408 set dummy $ac_prog; ac_word=$2
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3410 $as_echo_n "checking for $ac_word... " >&6; }
3411 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3412 $as_echo_n "(cached) " >&6
3413 else
3414 if test -n "$ac_ct_CC"; then
3415 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3416 else
3417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 for as_dir in $PATH
3419 do
3420 IFS=$as_save_IFS
3421 test -z "$as_dir" && as_dir=.
3422 for ac_exec_ext in '' $ac_executable_extensions; do
3423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3424 ac_cv_prog_ac_ct_CC="$ac_prog"
3425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3426 break 2
3427 fi
3428 done
3429 done
3430 IFS=$as_save_IFS
3431
3432 fi
3433 fi
3434 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3435 if test -n "$ac_ct_CC"; then
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3437 $as_echo "$ac_ct_CC" >&6; }
3438 else
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3440 $as_echo "no" >&6; }
3441 fi
3442
3443
3444 test -n "$ac_ct_CC" && break
3445 done
3446
3447 if test "x$ac_ct_CC" = x; then
3448 CC=""
3449 else
3450 case $cross_compiling:$ac_tool_warned in
3451 yes:)
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3453 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3454 ac_tool_warned=yes ;;
3455 esac
3456 CC=$ac_ct_CC
3457 fi
3458 fi
3459
3460 fi
3461
3462
3463 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3465 as_fn_error "no acceptable C compiler found in \$PATH
3466 See \`config.log' for more details." "$LINENO" 5; }
3467
3468 # Provide some information about the compiler.
3469 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3470 set X $ac_compile
3471 ac_compiler=$2
3472 for ac_option in --version -v -V -qversion; do
3473 { { ac_try="$ac_compiler $ac_option >&5"
3474 case "(($ac_try" in
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3477 esac
3478 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3479 $as_echo "$ac_try_echo"; } >&5
3480 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3481 ac_status=$?
3482 if test -s conftest.err; then
3483 sed '10a\
3484 ... rest of stderr output deleted ...
3485 10q' conftest.err >conftest.er1
3486 cat conftest.er1 >&5
3487 rm -f conftest.er1 conftest.err
3488 fi
3489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3490 test $ac_status = 0; }
3491 done
3492
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3494 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3495 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3496 $as_echo_n "(cached) " >&6
3497 else
3498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h. */
3500
3501 int
3502 main ()
3503 {
3504 #ifndef __GNUC__
3505 choke me
3506 #endif
3507
3508 ;
3509 return 0;
3510 }
3511 _ACEOF
3512 if ac_fn_c_try_compile "$LINENO"; then :
3513 ac_compiler_gnu=yes
3514 else
3515 ac_compiler_gnu=no
3516 fi
3517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3518 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3519
3520 fi
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3522 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3523 if test $ac_compiler_gnu = yes; then
3524 GCC=yes
3525 else
3526 GCC=
3527 fi
3528 ac_test_CFLAGS=${CFLAGS+set}
3529 ac_save_CFLAGS=$CFLAGS
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3531 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3532 if test "${ac_cv_prog_cc_g+set}" = set; then :
3533 $as_echo_n "(cached) " >&6
3534 else
3535 ac_save_c_werror_flag=$ac_c_werror_flag
3536 ac_c_werror_flag=yes
3537 ac_cv_prog_cc_g=no
3538 CFLAGS="-g"
3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h. */
3541
3542 int
3543 main ()
3544 {
3545
3546 ;
3547 return 0;
3548 }
3549 _ACEOF
3550 if ac_fn_c_try_compile "$LINENO"; then :
3551 ac_cv_prog_cc_g=yes
3552 else
3553 CFLAGS=""
3554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3555 /* end confdefs.h. */
3556
3557 int
3558 main ()
3559 {
3560
3561 ;
3562 return 0;
3563 }
3564 _ACEOF
3565 if ac_fn_c_try_compile "$LINENO"; then :
3566
3567 else
3568 ac_c_werror_flag=$ac_save_c_werror_flag
3569 CFLAGS="-g"
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h. */
3572
3573 int
3574 main ()
3575 {
3576
3577 ;
3578 return 0;
3579 }
3580 _ACEOF
3581 if ac_fn_c_try_compile "$LINENO"; then :
3582 ac_cv_prog_cc_g=yes
3583 fi
3584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585 fi
3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587 fi
3588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589 ac_c_werror_flag=$ac_save_c_werror_flag
3590 fi
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3592 $as_echo "$ac_cv_prog_cc_g" >&6; }
3593 if test "$ac_test_CFLAGS" = set; then
3594 CFLAGS=$ac_save_CFLAGS
3595 elif test $ac_cv_prog_cc_g = yes; then
3596 if test "$GCC" = yes; then
3597 CFLAGS="-g -O2"
3598 else
3599 CFLAGS="-g"
3600 fi
3601 else
3602 if test "$GCC" = yes; then
3603 CFLAGS="-O2"
3604 else
3605 CFLAGS=
3606 fi
3607 fi
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3609 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3610 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3611 $as_echo_n "(cached) " >&6
3612 else
3613 ac_cv_prog_cc_c89=no
3614 ac_save_CC=$CC
3615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616 /* end confdefs.h. */
3617 #include <stdarg.h>
3618 #include <stdio.h>
3619 #include <sys/types.h>
3620 #include <sys/stat.h>
3621 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3622 struct buf { int x; };
3623 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3624 static char *e (p, i)
3625 char **p;
3626 int i;
3627 {
3628 return p[i];
3629 }
3630 static char *f (char * (*g) (char **, int), char **p, ...)
3631 {
3632 char *s;
3633 va_list v;
3634 va_start (v,p);
3635 s = g (p, va_arg (v,int));
3636 va_end (v);
3637 return s;
3638 }
3639
3640 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3641 function prototypes and stuff, but not '\xHH' hex character constants.
3642 These don't provoke an error unfortunately, instead are silently treated
3643 as 'x'. The following induces an error, until -std is added to get
3644 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3645 array size at least. It's necessary to write '\x00'==0 to get something
3646 that's true only with -std. */
3647 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3648
3649 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3650 inside strings and character constants. */
3651 #define FOO(x) 'x'
3652 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3653
3654 int test (int i, double x);
3655 struct s1 {int (*f) (int a);};
3656 struct s2 {int (*f) (double a);};
3657 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3658 int argc;
3659 char **argv;
3660 int
3661 main ()
3662 {
3663 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3664 ;
3665 return 0;
3666 }
3667 _ACEOF
3668 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3669 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3670 do
3671 CC="$ac_save_CC $ac_arg"
3672 if ac_fn_c_try_compile "$LINENO"; then :
3673 ac_cv_prog_cc_c89=$ac_arg
3674 fi
3675 rm -f core conftest.err conftest.$ac_objext
3676 test "x$ac_cv_prog_cc_c89" != "xno" && break
3677 done
3678 rm -f conftest.$ac_ext
3679 CC=$ac_save_CC
3680
3681 fi
3682 # AC_CACHE_VAL
3683 case "x$ac_cv_prog_cc_c89" in
3684 x)
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3686 $as_echo "none needed" >&6; } ;;
3687 xno)
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3689 $as_echo "unsupported" >&6; } ;;
3690 *)
3691 CC="$CC $ac_cv_prog_cc_c89"
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3693 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3694 esac
3695 if test "x$ac_cv_prog_cc_c89" != xno; then :
3696
3697 fi
3698
3699 ac_ext=c
3700 ac_cpp='$CPP $CPPFLAGS'
3701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3704
3705 case `pwd` in
3706 *\ * | *\ *)
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3708 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3709 esac
3710
3711
3712
3713 macro_version='2.2.6'
3714 macro_revision='1.3012'
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728 ltmain="$ac_aux_dir/ltmain.sh"
3729
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3731 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3732 if test "${ac_cv_path_SED+set}" = set; then :
3733 $as_echo_n "(cached) " >&6
3734 else
3735 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3736 for ac_i in 1 2 3 4 5 6 7; do
3737 ac_script="$ac_script$as_nl$ac_script"
3738 done
3739 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3740 { ac_script=; unset ac_script;}
3741 if test -z "$SED"; then
3742 ac_path_SED_found=false
3743 # Loop through the user's path and test for each of PROGNAME-LIST
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 for as_dir in $PATH
3746 do
3747 IFS=$as_save_IFS
3748 test -z "$as_dir" && as_dir=.
3749 for ac_prog in sed gsed; do
3750 for ac_exec_ext in '' $ac_executable_extensions; do
3751 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3752 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3753 # Check for GNU ac_path_SED and select it if it is found.
3754 # Check for GNU $ac_path_SED
3755 case `"$ac_path_SED" --version 2>&1` in
3756 *GNU*)
3757 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3758 *)
3759 ac_count=0
3760 $as_echo_n 0123456789 >"conftest.in"
3761 while :
3762 do
3763 cat "conftest.in" "conftest.in" >"conftest.tmp"
3764 mv "conftest.tmp" "conftest.in"
3765 cp "conftest.in" "conftest.nl"
3766 $as_echo '' >> "conftest.nl"
3767 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3768 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3769 as_fn_arith $ac_count + 1 && ac_count=$as_val
3770 if test $ac_count -gt ${ac_path_SED_max-0}; then
3771 # Best one so far, save it but keep looking for a better one
3772 ac_cv_path_SED="$ac_path_SED"
3773 ac_path_SED_max=$ac_count
3774 fi
3775 # 10*(2^10) chars as input seems more than enough
3776 test $ac_count -gt 10 && break
3777 done
3778 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3779 esac
3780
3781 $ac_path_SED_found && break 3
3782 done
3783 done
3784 done
3785 IFS=$as_save_IFS
3786 if test -z "$ac_cv_path_SED"; then
3787 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3788 fi
3789 else
3790 ac_cv_path_SED=$SED
3791 fi
3792
3793 fi
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3795 $as_echo "$ac_cv_path_SED" >&6; }
3796 SED="$ac_cv_path_SED"
3797 rm -f conftest.sed
3798
3799 test -z "$SED" && SED=sed
3800 Xsed="$SED -e 1s/^X//"
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3813 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3814 if test "${ac_cv_path_GREP+set}" = set; then :
3815 $as_echo_n "(cached) " >&6
3816 else
3817 if test -z "$GREP"; then
3818 ac_path_GREP_found=false
3819 # Loop through the user's path and test for each of PROGNAME-LIST
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3822 do
3823 IFS=$as_save_IFS
3824 test -z "$as_dir" && as_dir=.
3825 for ac_prog in grep ggrep; do
3826 for ac_exec_ext in '' $ac_executable_extensions; do
3827 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3828 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3829 # Check for GNU ac_path_GREP and select it if it is found.
3830 # Check for GNU $ac_path_GREP
3831 case `"$ac_path_GREP" --version 2>&1` in
3832 *GNU*)
3833 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3834 *)
3835 ac_count=0
3836 $as_echo_n 0123456789 >"conftest.in"
3837 while :
3838 do
3839 cat "conftest.in" "conftest.in" >"conftest.tmp"
3840 mv "conftest.tmp" "conftest.in"
3841 cp "conftest.in" "conftest.nl"
3842 $as_echo 'GREP' >> "conftest.nl"
3843 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3844 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3845 as_fn_arith $ac_count + 1 && ac_count=$as_val
3846 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3847 # Best one so far, save it but keep looking for a better one
3848 ac_cv_path_GREP="$ac_path_GREP"
3849 ac_path_GREP_max=$ac_count
3850 fi
3851 # 10*(2^10) chars as input seems more than enough
3852 test $ac_count -gt 10 && break
3853 done
3854 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3855 esac
3856
3857 $ac_path_GREP_found && break 3
3858 done
3859 done
3860 done
3861 IFS=$as_save_IFS
3862 if test -z "$ac_cv_path_GREP"; then
3863 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3864 fi
3865 else
3866 ac_cv_path_GREP=$GREP
3867 fi
3868
3869 fi
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3871 $as_echo "$ac_cv_path_GREP" >&6; }
3872 GREP="$ac_cv_path_GREP"
3873
3874
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3876 $as_echo_n "checking for egrep... " >&6; }
3877 if test "${ac_cv_path_EGREP+set}" = set; then :
3878 $as_echo_n "(cached) " >&6
3879 else
3880 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3881 then ac_cv_path_EGREP="$GREP -E"
3882 else
3883 if test -z "$EGREP"; then
3884 ac_path_EGREP_found=false
3885 # Loop through the user's path and test for each of PROGNAME-LIST
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3888 do
3889 IFS=$as_save_IFS
3890 test -z "$as_dir" && as_dir=.
3891 for ac_prog in egrep; do
3892 for ac_exec_ext in '' $ac_executable_extensions; do
3893 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3894 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3895 # Check for GNU ac_path_EGREP and select it if it is found.
3896 # Check for GNU $ac_path_EGREP
3897 case `"$ac_path_EGREP" --version 2>&1` in
3898 *GNU*)
3899 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3900 *)
3901 ac_count=0
3902 $as_echo_n 0123456789 >"conftest.in"
3903 while :
3904 do
3905 cat "conftest.in" "conftest.in" >"conftest.tmp"
3906 mv "conftest.tmp" "conftest.in"
3907 cp "conftest.in" "conftest.nl"
3908 $as_echo 'EGREP' >> "conftest.nl"
3909 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3910 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3911 as_fn_arith $ac_count + 1 && ac_count=$as_val
3912 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3913 # Best one so far, save it but keep looking for a better one
3914 ac_cv_path_EGREP="$ac_path_EGREP"
3915 ac_path_EGREP_max=$ac_count
3916 fi
3917 # 10*(2^10) chars as input seems more than enough
3918 test $ac_count -gt 10 && break
3919 done
3920 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3921 esac
3922
3923 $ac_path_EGREP_found && break 3
3924 done
3925 done
3926 done
3927 IFS=$as_save_IFS
3928 if test -z "$ac_cv_path_EGREP"; then
3929 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3930 fi
3931 else
3932 ac_cv_path_EGREP=$EGREP
3933 fi
3934
3935 fi
3936 fi
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3938 $as_echo "$ac_cv_path_EGREP" >&6; }
3939 EGREP="$ac_cv_path_EGREP"
3940
3941
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3943 $as_echo_n "checking for fgrep... " >&6; }
3944 if test "${ac_cv_path_FGREP+set}" = set; then :
3945 $as_echo_n "(cached) " >&6
3946 else
3947 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3948 then ac_cv_path_FGREP="$GREP -F"
3949 else
3950 if test -z "$FGREP"; then
3951 ac_path_FGREP_found=false
3952 # Loop through the user's path and test for each of PROGNAME-LIST
3953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3954 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3955 do
3956 IFS=$as_save_IFS
3957 test -z "$as_dir" && as_dir=.
3958 for ac_prog in fgrep; do
3959 for ac_exec_ext in '' $ac_executable_extensions; do
3960 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3961 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3962 # Check for GNU ac_path_FGREP and select it if it is found.
3963 # Check for GNU $ac_path_FGREP
3964 case `"$ac_path_FGREP" --version 2>&1` in
3965 *GNU*)
3966 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3967 *)
3968 ac_count=0
3969 $as_echo_n 0123456789 >"conftest.in"
3970 while :
3971 do
3972 cat "conftest.in" "conftest.in" >"conftest.tmp"
3973 mv "conftest.tmp" "conftest.in"
3974 cp "conftest.in" "conftest.nl"
3975 $as_echo 'FGREP' >> "conftest.nl"
3976 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3977 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3978 as_fn_arith $ac_count + 1 && ac_count=$as_val
3979 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3980 # Best one so far, save it but keep looking for a better one
3981 ac_cv_path_FGREP="$ac_path_FGREP"
3982 ac_path_FGREP_max=$ac_count
3983 fi
3984 # 10*(2^10) chars as input seems more than enough
3985 test $ac_count -gt 10 && break
3986 done
3987 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3988 esac
3989
3990 $ac_path_FGREP_found && break 3
3991 done
3992 done
3993 done
3994 IFS=$as_save_IFS
3995 if test -z "$ac_cv_path_FGREP"; then
3996 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3997 fi
3998 else
3999 ac_cv_path_FGREP=$FGREP
4000 fi
4001
4002 fi
4003 fi
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4005 $as_echo "$ac_cv_path_FGREP" >&6; }
4006 FGREP="$ac_cv_path_FGREP"
4007
4008
4009 test -z "$GREP" && GREP=grep
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029 # Check whether --with-gnu-ld was given.
4030 if test "${with_gnu_ld+set}" = set; then :
4031 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4032 else
4033 with_gnu_ld=no
4034 fi
4035
4036 ac_prog=ld
4037 if test "$GCC" = yes; then
4038 # Check if gcc -print-prog-name=ld gives a path.
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4040 $as_echo_n "checking for ld used by $CC... " >&6; }
4041 case $host in
4042 *-*-mingw*)
4043 # gcc leaves a trailing carriage return which upsets mingw
4044 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4045 *)
4046 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4047 esac
4048 case $ac_prog in
4049 # Accept absolute paths.
4050 [\\/]* | ?:[\\/]*)
4051 re_direlt='/[^/][^/]*/\.\./'
4052 # Canonicalize the pathname of ld
4053 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4054 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4055 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4056 done
4057 test -z "$LD" && LD="$ac_prog"
4058 ;;
4059 "")
4060 # If it fails, then pretend we aren't using GCC.
4061 ac_prog=ld
4062 ;;
4063 *)
4064 # If it is relative, then search for the first ld in PATH.
4065 with_gnu_ld=unknown
4066 ;;
4067 esac
4068 elif test "$with_gnu_ld" = yes; then
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4070 $as_echo_n "checking for GNU ld... " >&6; }
4071 else
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4073 $as_echo_n "checking for non-GNU ld... " >&6; }
4074 fi
4075 if test "${lt_cv_path_LD+set}" = set; then :
4076 $as_echo_n "(cached) " >&6
4077 else
4078 if test -z "$LD"; then
4079 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4080 for ac_dir in $PATH; do
4081 IFS="$lt_save_ifs"
4082 test -z "$ac_dir" && ac_dir=.
4083 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4084 lt_cv_path_LD="$ac_dir/$ac_prog"
4085 # Check to see if the program is GNU ld. I'd rather use --version,
4086 # but apparently some variants of GNU ld only accept -v.
4087 # Break only if it was the GNU/non-GNU ld that we prefer.
4088 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4089 *GNU* | *'with BFD'*)
4090 test "$with_gnu_ld" != no && break
4091 ;;
4092 *)
4093 test "$with_gnu_ld" != yes && break
4094 ;;
4095 esac
4096 fi
4097 done
4098 IFS="$lt_save_ifs"
4099 else
4100 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4101 fi
4102 fi
4103
4104 LD="$lt_cv_path_LD"
4105 if test -n "$LD"; then
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4107 $as_echo "$LD" >&6; }
4108 else
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4110 $as_echo "no" >&6; }
4111 fi
4112 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4114 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4115 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4116 $as_echo_n "(cached) " >&6
4117 else
4118 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4119 case `$LD -v 2>&1 </dev/null` in
4120 *GNU* | *'with BFD'*)
4121 lt_cv_prog_gnu_ld=yes
4122 ;;
4123 *)
4124 lt_cv_prog_gnu_ld=no
4125 ;;
4126 esac
4127 fi
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4129 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4130 with_gnu_ld=$lt_cv_prog_gnu_ld
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4141 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4142 if test "${lt_cv_path_NM+set}" = set; then :
4143 $as_echo_n "(cached) " >&6
4144 else
4145 if test -n "$NM"; then
4146 # Let the user override the test.
4147 lt_cv_path_NM="$NM"
4148 else
4149 lt_nm_to_check="${ac_tool_prefix}nm"
4150 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4151 lt_nm_to_check="$lt_nm_to_check nm"
4152 fi
4153 for lt_tmp_nm in $lt_nm_to_check; do
4154 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4155 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4156 IFS="$lt_save_ifs"
4157 test -z "$ac_dir" && ac_dir=.
4158 tmp_nm="$ac_dir/$lt_tmp_nm"
4159 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4160 # Check to see if the nm accepts a BSD-compat flag.
4161 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4162 # nm: unknown option "B" ignored
4163 # Tru64's nm complains that /dev/null is an invalid object file
4164 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4165 */dev/null* | *'Invalid file or object type'*)
4166 lt_cv_path_NM="$tmp_nm -B"
4167 break
4168 ;;
4169 *)
4170 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4171 */dev/null*)
4172 lt_cv_path_NM="$tmp_nm -p"
4173 break
4174 ;;
4175 *)
4176 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4177 continue # so that we can try to find one that supports BSD flags
4178 ;;
4179 esac
4180 ;;
4181 esac
4182 fi
4183 done
4184 IFS="$lt_save_ifs"
4185 done
4186 : ${lt_cv_path_NM=no}
4187 fi
4188 fi
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4190 $as_echo "$lt_cv_path_NM" >&6; }
4191 if test "$lt_cv_path_NM" != "no"; then
4192 NM="$lt_cv_path_NM"
4193 else
4194 # Didn't find any BSD compatible name lister, look for dumpbin.
4195 if test -n "$ac_tool_prefix"; then
4196 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4197 do
4198 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4199 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4201 $as_echo_n "checking for $ac_word... " >&6; }
4202 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4203 $as_echo_n "(cached) " >&6
4204 else
4205 if test -n "$DUMPBIN"; then
4206 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4207 else
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH
4210 do
4211 IFS=$as_save_IFS
4212 test -z "$as_dir" && as_dir=.
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4215 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4217 break 2
4218 fi
4219 done
4220 done
4221 IFS=$as_save_IFS
4222
4223 fi
4224 fi
4225 DUMPBIN=$ac_cv_prog_DUMPBIN
4226 if test -n "$DUMPBIN"; then
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4228 $as_echo "$DUMPBIN" >&6; }
4229 else
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4231 $as_echo "no" >&6; }
4232 fi
4233
4234
4235 test -n "$DUMPBIN" && break
4236 done
4237 fi
4238 if test -z "$DUMPBIN"; then
4239 ac_ct_DUMPBIN=$DUMPBIN
4240 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4241 do
4242 # Extract the first word of "$ac_prog", so it can be a program name with args.
4243 set dummy $ac_prog; ac_word=$2
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245 $as_echo_n "checking for $ac_word... " >&6; }
4246 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4247 $as_echo_n "(cached) " >&6
4248 else
4249 if test -n "$ac_ct_DUMPBIN"; then
4250 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4251 else
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4254 do
4255 IFS=$as_save_IFS
4256 test -z "$as_dir" && as_dir=.
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4259 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 break 2
4262 fi
4263 done
4264 done
4265 IFS=$as_save_IFS
4266
4267 fi
4268 fi
4269 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4270 if test -n "$ac_ct_DUMPBIN"; then
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4272 $as_echo "$ac_ct_DUMPBIN" >&6; }
4273 else
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275 $as_echo "no" >&6; }
4276 fi
4277
4278
4279 test -n "$ac_ct_DUMPBIN" && break
4280 done
4281
4282 if test "x$ac_ct_DUMPBIN" = x; then
4283 DUMPBIN=":"
4284 else
4285 case $cross_compiling:$ac_tool_warned in
4286 yes:)
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4289 ac_tool_warned=yes ;;
4290 esac
4291 DUMPBIN=$ac_ct_DUMPBIN
4292 fi
4293 fi
4294
4295
4296 if test "$DUMPBIN" != ":"; then
4297 NM="$DUMPBIN"
4298 fi
4299 fi
4300 test -z "$NM" && NM=nm
4301
4302
4303
4304
4305
4306
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4308 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4309 if test "${lt_cv_nm_interface+set}" = set; then :
4310 $as_echo_n "(cached) " >&6
4311 else
4312 lt_cv_nm_interface="BSD nm"
4313 echo "int some_variable = 0;" > conftest.$ac_ext
4314 (eval echo "\"\$as_me:4314: $ac_compile\"" >&5)
4315 (eval "$ac_compile" 2>conftest.err)
4316 cat conftest.err >&5
4317 (eval echo "\"\$as_me:4317: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4318 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4319 cat conftest.err >&5
4320 (eval echo "\"\$as_me:4320: output\"" >&5)
4321 cat conftest.out >&5
4322 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4323 lt_cv_nm_interface="MS dumpbin"
4324 fi
4325 rm -f conftest*
4326 fi
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4328 $as_echo "$lt_cv_nm_interface" >&6; }
4329
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4331 $as_echo_n "checking whether ln -s works... " >&6; }
4332 LN_S=$as_ln_s
4333 if test "$LN_S" = "ln -s"; then
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4335 $as_echo "yes" >&6; }
4336 else
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4338 $as_echo "no, using $LN_S" >&6; }
4339 fi
4340
4341 # find the maximum length of command line arguments
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4343 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4344 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4345 $as_echo_n "(cached) " >&6
4346 else
4347 i=0
4348 teststring="ABCD"
4349
4350 case $build_os in
4351 msdosdjgpp*)
4352 # On DJGPP, this test can blow up pretty badly due to problems in libc
4353 # (any single argument exceeding 2000 bytes causes a buffer overrun
4354 # during glob expansion). Even if it were fixed, the result of this
4355 # check would be larger than it should be.
4356 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4357 ;;
4358
4359 gnu*)
4360 # Under GNU Hurd, this test is not required because there is
4361 # no limit to the length of command line arguments.
4362 # Libtool will interpret -1 as no limit whatsoever
4363 lt_cv_sys_max_cmd_len=-1;
4364 ;;
4365
4366 cygwin* | mingw* | cegcc*)
4367 # On Win9x/ME, this test blows up -- it succeeds, but takes
4368 # about 5 minutes as the teststring grows exponentially.
4369 # Worse, since 9x/ME are not pre-emptively multitasking,
4370 # you end up with a "frozen" computer, even though with patience
4371 # the test eventually succeeds (with a max line length of 256k).
4372 # Instead, let's just punt: use the minimum linelength reported by
4373 # all of the supported platforms: 8192 (on NT/2K/XP).
4374 lt_cv_sys_max_cmd_len=8192;
4375 ;;
4376
4377 amigaos*)
4378 # On AmigaOS with pdksh, this test takes hours, literally.
4379 # So we just punt and use a minimum line length of 8192.
4380 lt_cv_sys_max_cmd_len=8192;
4381 ;;
4382
4383 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4384 # This has been around since 386BSD, at least. Likely further.
4385 if test -x /sbin/sysctl; then
4386 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4387 elif test -x /usr/sbin/sysctl; then
4388 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4389 else
4390 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4391 fi
4392 # And add a safety zone
4393 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4394 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4395 ;;
4396
4397 interix*)
4398 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4399 lt_cv_sys_max_cmd_len=196608
4400 ;;
4401
4402 osf*)
4403 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4404 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4405 # nice to cause kernel panics so lets avoid the loop below.
4406 # First set a reasonable default.
4407 lt_cv_sys_max_cmd_len=16384
4408 #
4409 if test -x /sbin/sysconfig; then
4410 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4411 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4412 esac
4413 fi
4414 ;;
4415 sco3.2v5*)
4416 lt_cv_sys_max_cmd_len=102400
4417 ;;
4418 sysv5* | sco5v6* | sysv4.2uw2*)
4419 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4420 if test -n "$kargmax"; then
4421 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4422 else
4423 lt_cv_sys_max_cmd_len=32768
4424 fi
4425 ;;
4426 *)
4427 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4428 if test -n "$lt_cv_sys_max_cmd_len"; then
4429 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4430 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4431 else
4432 # Make teststring a little bigger before we do anything with it.
4433 # a 1K string should be a reasonable start.
4434 for i in 1 2 3 4 5 6 7 8 ; do
4435 teststring=$teststring$teststring
4436 done
4437 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4438 # If test is not a shell built-in, we'll probably end up computing a
4439 # maximum length that is only half of the actual maximum length, but
4440 # we can't tell.
4441 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4442 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4443 test $i != 17 # 1/2 MB should be enough
4444 do
4445 i=`expr $i + 1`
4446 teststring=$teststring$teststring
4447 done
4448 # Only check the string length outside the loop.
4449 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4450 teststring=
4451 # Add a significant safety factor because C++ compilers can tack on
4452 # massive amounts of additional arguments before passing them to the
4453 # linker. It appears as though 1/2 is a usable value.
4454 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4455 fi
4456 ;;
4457 esac
4458
4459 fi
4460
4461 if test -n $lt_cv_sys_max_cmd_len ; then
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4463 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4464 else
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4466 $as_echo "none" >&6; }
4467 fi
4468 max_cmd_len=$lt_cv_sys_max_cmd_len
4469
4470
4471
4472
4473
4474
4475 : ${CP="cp -f"}
4476 : ${MV="mv -f"}
4477 : ${RM="rm -f"}
4478
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4480 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4481 # Try some XSI features
4482 xsi_shell=no
4483 ( _lt_dummy="a/b/c"
4484 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4485 = c,a/b,, \
4486 && eval 'test $(( 1 + 1 )) -eq 2 \
4487 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4488 && xsi_shell=yes
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4490 $as_echo "$xsi_shell" >&6; }
4491
4492
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4494 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4495 lt_shell_append=no
4496 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4497 >/dev/null 2>&1 \
4498 && lt_shell_append=yes
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4500 $as_echo "$lt_shell_append" >&6; }
4501
4502
4503 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4504 lt_unset=unset
4505 else
4506 lt_unset=false
4507 fi
4508
4509
4510
4511
4512
4513 # test EBCDIC or ASCII
4514 case `echo X|tr X '\101'` in
4515 A) # ASCII based system
4516 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4517 lt_SP2NL='tr \040 \012'
4518 lt_NL2SP='tr \015\012 \040\040'
4519 ;;
4520 *) # EBCDIC based system
4521 lt_SP2NL='tr \100 \n'
4522 lt_NL2SP='tr \r\n \100\100'
4523 ;;
4524 esac
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4535 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4536 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4537 $as_echo_n "(cached) " >&6
4538 else
4539 lt_cv_ld_reload_flag='-r'
4540 fi
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4542 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4543 reload_flag=$lt_cv_ld_reload_flag
4544 case $reload_flag in
4545 "" | " "*) ;;
4546 *) reload_flag=" $reload_flag" ;;
4547 esac
4548 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4549 case $host_os in
4550 darwin*)
4551 if test "$GCC" = yes; then
4552 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4553 else
4554 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4555 fi
4556 ;;
4557 esac
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567 if test -n "$ac_tool_prefix"; then
4568 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4569 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4571 $as_echo_n "checking for $ac_word... " >&6; }
4572 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4573 $as_echo_n "(cached) " >&6
4574 else
4575 if test -n "$OBJDUMP"; then
4576 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4577 else
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 for as_dir in $PATH
4580 do
4581 IFS=$as_save_IFS
4582 test -z "$as_dir" && as_dir=.
4583 for ac_exec_ext in '' $ac_executable_extensions; do
4584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4585 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 break 2
4588 fi
4589 done
4590 done
4591 IFS=$as_save_IFS
4592
4593 fi
4594 fi
4595 OBJDUMP=$ac_cv_prog_OBJDUMP
4596 if test -n "$OBJDUMP"; then
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4598 $as_echo "$OBJDUMP" >&6; }
4599 else
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4601 $as_echo "no" >&6; }
4602 fi
4603
4604
4605 fi
4606 if test -z "$ac_cv_prog_OBJDUMP"; then
4607 ac_ct_OBJDUMP=$OBJDUMP
4608 # Extract the first word of "objdump", so it can be a program name with args.
4609 set dummy objdump; ac_word=$2
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4611 $as_echo_n "checking for $ac_word... " >&6; }
4612 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4613 $as_echo_n "(cached) " >&6
4614 else
4615 if test -n "$ac_ct_OBJDUMP"; then
4616 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4617 else
4618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619 for as_dir in $PATH
4620 do
4621 IFS=$as_save_IFS
4622 test -z "$as_dir" && as_dir=.
4623 for ac_exec_ext in '' $ac_executable_extensions; do
4624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4625 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4627 break 2
4628 fi
4629 done
4630 done
4631 IFS=$as_save_IFS
4632
4633 fi
4634 fi
4635 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4636 if test -n "$ac_ct_OBJDUMP"; then
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4638 $as_echo "$ac_ct_OBJDUMP" >&6; }
4639 else
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4641 $as_echo "no" >&6; }
4642 fi
4643
4644 if test "x$ac_ct_OBJDUMP" = x; then
4645 OBJDUMP="false"
4646 else
4647 case $cross_compiling:$ac_tool_warned in
4648 yes:)
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4651 ac_tool_warned=yes ;;
4652 esac
4653 OBJDUMP=$ac_ct_OBJDUMP
4654 fi
4655 else
4656 OBJDUMP="$ac_cv_prog_OBJDUMP"
4657 fi
4658
4659 test -z "$OBJDUMP" && OBJDUMP=objdump
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4670 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4671 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4672 $as_echo_n "(cached) " >&6
4673 else
4674 lt_cv_file_magic_cmd='$MAGIC_CMD'
4675 lt_cv_file_magic_test_file=
4676 lt_cv_deplibs_check_method='unknown'
4677 # Need to set the preceding variable on all platforms that support
4678 # interlibrary dependencies.
4679 # 'none' -- dependencies not supported.
4680 # `unknown' -- same as none, but documents that we really don't know.
4681 # 'pass_all' -- all dependencies passed with no checks.
4682 # 'test_compile' -- check by making test program.
4683 # 'file_magic [[regex]]' -- check by looking for files in library path
4684 # which responds to the $file_magic_cmd with a given extended regex.
4685 # If you have `file' or equivalent on your system and you're not sure
4686 # whether `pass_all' will *always* work, you probably want this one.
4687
4688 case $host_os in
4689 aix[4-9]*)
4690 lt_cv_deplibs_check_method=pass_all
4691 ;;
4692
4693 beos*)
4694 lt_cv_deplibs_check_method=pass_all
4695 ;;
4696
4697 bsdi[45]*)
4698 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4699 lt_cv_file_magic_cmd='/usr/bin/file -L'
4700 lt_cv_file_magic_test_file=/shlib/libc.so
4701 ;;
4702
4703 cygwin*)
4704 # func_win32_libid is a shell function defined in ltmain.sh
4705 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4706 lt_cv_file_magic_cmd='func_win32_libid'
4707 ;;
4708
4709 mingw* | pw32*)
4710 # Base MSYS/MinGW do not provide the 'file' command needed by
4711 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4712 # unless we find 'file', for example because we are cross-compiling.
4713 if ( file / ) >/dev/null 2>&1; then
4714 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4715 lt_cv_file_magic_cmd='func_win32_libid'
4716 else
4717 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4718 lt_cv_file_magic_cmd='$OBJDUMP -f'
4719 fi
4720 ;;
4721
4722 cegcc)
4723 # use the weaker test based on 'objdump'. See mingw*.
4724 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4725 lt_cv_file_magic_cmd='$OBJDUMP -f'
4726 ;;
4727
4728 darwin* | rhapsody*)
4729 lt_cv_deplibs_check_method=pass_all
4730 ;;
4731
4732 freebsd* | dragonfly*)
4733 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4734 case $host_cpu in
4735 i*86 )
4736 # Not sure whether the presence of OpenBSD here was a mistake.
4737 # Let's accept both of them until this is cleared up.
4738 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4739 lt_cv_file_magic_cmd=/usr/bin/file
4740 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4741 ;;
4742 esac
4743 else
4744 lt_cv_deplibs_check_method=pass_all
4745 fi
4746 ;;
4747
4748 gnu*)
4749 lt_cv_deplibs_check_method=pass_all
4750 ;;
4751
4752 hpux10.20* | hpux11*)
4753 lt_cv_file_magic_cmd=/usr/bin/file
4754 case $host_cpu in
4755 ia64*)
4756 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4757 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4758 ;;
4759 hppa*64*)
4760 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4761 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4762 ;;
4763 *)
4764 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4765 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4766 ;;
4767 esac
4768 ;;
4769
4770 interix[3-9]*)
4771 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4772 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4773 ;;
4774
4775 irix5* | irix6* | nonstopux*)
4776 case $LD in
4777 *-32|*"-32 ") libmagic=32-bit;;
4778 *-n32|*"-n32 ") libmagic=N32;;
4779 *-64|*"-64 ") libmagic=64-bit;;
4780 *) libmagic=never-match;;
4781 esac
4782 lt_cv_deplibs_check_method=pass_all
4783 ;;
4784
4785 # This must be Linux ELF.
4786 linux* | k*bsd*-gnu)
4787 lt_cv_deplibs_check_method=pass_all
4788 ;;
4789
4790 netbsd*)
4791 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4792 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4793 else
4794 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4795 fi
4796 ;;
4797
4798 newos6*)
4799 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4800 lt_cv_file_magic_cmd=/usr/bin/file
4801 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4802 ;;
4803
4804 *nto* | *qnx*)
4805 lt_cv_deplibs_check_method=pass_all
4806 ;;
4807
4808 openbsd*)
4809 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4810 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4811 else
4812 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4813 fi
4814 ;;
4815
4816 osf3* | osf4* | osf5*)
4817 lt_cv_deplibs_check_method=pass_all
4818 ;;
4819
4820 rdos*)
4821 lt_cv_deplibs_check_method=pass_all
4822 ;;
4823
4824 solaris*)
4825 lt_cv_deplibs_check_method=pass_all
4826 ;;
4827
4828 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4829 lt_cv_deplibs_check_method=pass_all
4830 ;;
4831
4832 sysv4 | sysv4.3*)
4833 case $host_vendor in
4834 motorola)
4835 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]'
4836 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4837 ;;
4838 ncr)
4839 lt_cv_deplibs_check_method=pass_all
4840 ;;
4841 sequent)
4842 lt_cv_file_magic_cmd='/bin/file'
4843 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4844 ;;
4845 sni)
4846 lt_cv_file_magic_cmd='/bin/file'
4847 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4848 lt_cv_file_magic_test_file=/lib/libc.so
4849 ;;
4850 siemens)
4851 lt_cv_deplibs_check_method=pass_all
4852 ;;
4853 pc)
4854 lt_cv_deplibs_check_method=pass_all
4855 ;;
4856 esac
4857 ;;
4858
4859 tpf*)
4860 lt_cv_deplibs_check_method=pass_all
4861 ;;
4862 esac
4863
4864 fi
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4866 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4867 file_magic_cmd=$lt_cv_file_magic_cmd
4868 deplibs_check_method=$lt_cv_deplibs_check_method
4869 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882 if test -n "$ac_tool_prefix"; then
4883 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4884 set dummy ${ac_tool_prefix}ar; ac_word=$2
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4886 $as_echo_n "checking for $ac_word... " >&6; }
4887 if test "${ac_cv_prog_AR+set}" = set; then :
4888 $as_echo_n "(cached) " >&6
4889 else
4890 if test -n "$AR"; then
4891 ac_cv_prog_AR="$AR" # Let the user override the test.
4892 else
4893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894 for as_dir in $PATH
4895 do
4896 IFS=$as_save_IFS
4897 test -z "$as_dir" && as_dir=.
4898 for ac_exec_ext in '' $ac_executable_extensions; do
4899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4900 ac_cv_prog_AR="${ac_tool_prefix}ar"
4901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4902 break 2
4903 fi
4904 done
4905 done
4906 IFS=$as_save_IFS
4907
4908 fi
4909 fi
4910 AR=$ac_cv_prog_AR
4911 if test -n "$AR"; then
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4913 $as_echo "$AR" >&6; }
4914 else
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4916 $as_echo "no" >&6; }
4917 fi
4918
4919
4920 fi
4921 if test -z "$ac_cv_prog_AR"; then
4922 ac_ct_AR=$AR
4923 # Extract the first word of "ar", so it can be a program name with args.
4924 set dummy ar; ac_word=$2
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4926 $as_echo_n "checking for $ac_word... " >&6; }
4927 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4928 $as_echo_n "(cached) " >&6
4929 else
4930 if test -n "$ac_ct_AR"; then
4931 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4932 else
4933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934 for as_dir in $PATH
4935 do
4936 IFS=$as_save_IFS
4937 test -z "$as_dir" && as_dir=.
4938 for ac_exec_ext in '' $ac_executable_extensions; do
4939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4940 ac_cv_prog_ac_ct_AR="ar"
4941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4942 break 2
4943 fi
4944 done
4945 done
4946 IFS=$as_save_IFS
4947
4948 fi
4949 fi
4950 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4951 if test -n "$ac_ct_AR"; then
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4953 $as_echo "$ac_ct_AR" >&6; }
4954 else
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4956 $as_echo "no" >&6; }
4957 fi
4958
4959 if test "x$ac_ct_AR" = x; then
4960 AR="false"
4961 else
4962 case $cross_compiling:$ac_tool_warned in
4963 yes:)
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4966 ac_tool_warned=yes ;;
4967 esac
4968 AR=$ac_ct_AR
4969 fi
4970 else
4971 AR="$ac_cv_prog_AR"
4972 fi
4973
4974 test -z "$AR" && AR=ar
4975 test -z "$AR_FLAGS" && AR_FLAGS=cru
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987 if test -n "$ac_tool_prefix"; then
4988 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4989 set dummy ${ac_tool_prefix}strip; ac_word=$2
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4991 $as_echo_n "checking for $ac_word... " >&6; }
4992 if test "${ac_cv_prog_STRIP+set}" = set; then :
4993 $as_echo_n "(cached) " >&6
4994 else
4995 if test -n "$STRIP"; then
4996 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4997 else
4998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 for as_dir in $PATH
5000 do
5001 IFS=$as_save_IFS
5002 test -z "$as_dir" && as_dir=.
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5005 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5007 break 2
5008 fi
5009 done
5010 done
5011 IFS=$as_save_IFS
5012
5013 fi
5014 fi
5015 STRIP=$ac_cv_prog_STRIP
5016 if test -n "$STRIP"; then
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5018 $as_echo "$STRIP" >&6; }
5019 else
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5021 $as_echo "no" >&6; }
5022 fi
5023
5024
5025 fi
5026 if test -z "$ac_cv_prog_STRIP"; then
5027 ac_ct_STRIP=$STRIP
5028 # Extract the first word of "strip", so it can be a program name with args.
5029 set dummy strip; ac_word=$2
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5031 $as_echo_n "checking for $ac_word... " >&6; }
5032 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5033 $as_echo_n "(cached) " >&6
5034 else
5035 if test -n "$ac_ct_STRIP"; then
5036 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5037 else
5038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039 for as_dir in $PATH
5040 do
5041 IFS=$as_save_IFS
5042 test -z "$as_dir" && as_dir=.
5043 for ac_exec_ext in '' $ac_executable_extensions; do
5044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5045 ac_cv_prog_ac_ct_STRIP="strip"
5046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5047 break 2
5048 fi
5049 done
5050 done
5051 IFS=$as_save_IFS
5052
5053 fi
5054 fi
5055 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5056 if test -n "$ac_ct_STRIP"; then
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5058 $as_echo "$ac_ct_STRIP" >&6; }
5059 else
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5061 $as_echo "no" >&6; }
5062 fi
5063
5064 if test "x$ac_ct_STRIP" = x; then
5065 STRIP=":"
5066 else
5067 case $cross_compiling:$ac_tool_warned in
5068 yes:)
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5071 ac_tool_warned=yes ;;
5072 esac
5073 STRIP=$ac_ct_STRIP
5074 fi
5075 else
5076 STRIP="$ac_cv_prog_STRIP"
5077 fi
5078
5079 test -z "$STRIP" && STRIP=:
5080
5081
5082
5083
5084
5085
5086 if test -n "$ac_tool_prefix"; then
5087 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5088 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5090 $as_echo_n "checking for $ac_word... " >&6; }
5091 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5092 $as_echo_n "(cached) " >&6
5093 else
5094 if test -n "$RANLIB"; then
5095 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5096 else
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 for as_dir in $PATH
5099 do
5100 IFS=$as_save_IFS
5101 test -z "$as_dir" && as_dir=.
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5104 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5106 break 2
5107 fi
5108 done
5109 done
5110 IFS=$as_save_IFS
5111
5112 fi
5113 fi
5114 RANLIB=$ac_cv_prog_RANLIB
5115 if test -n "$RANLIB"; then
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5117 $as_echo "$RANLIB" >&6; }
5118 else
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120 $as_echo "no" >&6; }
5121 fi
5122
5123
5124 fi
5125 if test -z "$ac_cv_prog_RANLIB"; then
5126 ac_ct_RANLIB=$RANLIB
5127 # Extract the first word of "ranlib", so it can be a program name with args.
5128 set dummy ranlib; ac_word=$2
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5130 $as_echo_n "checking for $ac_word... " >&6; }
5131 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5132 $as_echo_n "(cached) " >&6
5133 else
5134 if test -n "$ac_ct_RANLIB"; then
5135 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5136 else
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 for as_dir in $PATH
5139 do
5140 IFS=$as_save_IFS
5141 test -z "$as_dir" && as_dir=.
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5144 ac_cv_prog_ac_ct_RANLIB="ranlib"
5145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5146 break 2
5147 fi
5148 done
5149 done
5150 IFS=$as_save_IFS
5151
5152 fi
5153 fi
5154 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5155 if test -n "$ac_ct_RANLIB"; then
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5157 $as_echo "$ac_ct_RANLIB" >&6; }
5158 else
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5160 $as_echo "no" >&6; }
5161 fi
5162
5163 if test "x$ac_ct_RANLIB" = x; then
5164 RANLIB=":"
5165 else
5166 case $cross_compiling:$ac_tool_warned in
5167 yes:)
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5170 ac_tool_warned=yes ;;
5171 esac
5172 RANLIB=$ac_ct_RANLIB
5173 fi
5174 else
5175 RANLIB="$ac_cv_prog_RANLIB"
5176 fi
5177
5178 test -z "$RANLIB" && RANLIB=:
5179
5180
5181
5182
5183
5184
5185 # Determine commands to create old-style static archives.
5186 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5187 old_postinstall_cmds='chmod 644 $oldlib'
5188 old_postuninstall_cmds=
5189
5190 if test -n "$RANLIB"; then
5191 case $host_os in
5192 openbsd*)
5193 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5194 ;;
5195 *)
5196 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5197 ;;
5198 esac
5199 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5200 fi
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235 # If no C compiler was specified, use CC.
5236 LTCC=${LTCC-"$CC"}
5237
5238 # If no C compiler flags were specified, use CFLAGS.
5239 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5240
5241 # Allow CC to be a program name with arguments.
5242 compiler=$CC
5243
5244
5245 # Check for command to grab the raw symbol name followed by C symbol from nm.
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5247 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5248 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5249 $as_echo_n "(cached) " >&6
5250 else
5251
5252 # These are sane defaults that work on at least a few old systems.
5253 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5254
5255 # Character class describing NM global symbol codes.
5256 symcode='[BCDEGRST]'
5257
5258 # Regexp to match symbols that can be accessed directly from C.
5259 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5260
5261 # Define system-specific variables.
5262 case $host_os in
5263 aix*)
5264 symcode='[BCDT]'
5265 ;;
5266 cygwin* | mingw* | pw32* | cegcc*)
5267 symcode='[ABCDGISTW]'
5268 ;;
5269 hpux*)
5270 if test "$host_cpu" = ia64; then
5271 symcode='[ABCDEGRST]'
5272 fi
5273 ;;
5274 irix* | nonstopux*)
5275 symcode='[BCDEGRST]'
5276 ;;
5277 osf*)
5278 symcode='[BCDEGQRST]'
5279 ;;
5280 solaris*)
5281 symcode='[BDRT]'
5282 ;;
5283 sco3.2v5*)
5284 symcode='[DT]'
5285 ;;
5286 sysv4.2uw2*)
5287 symcode='[DT]'
5288 ;;
5289 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5290 symcode='[ABDT]'
5291 ;;
5292 sysv4)
5293 symcode='[DFNSTU]'
5294 ;;
5295 esac
5296
5297 # If we're using GNU nm, then use its standard symbol codes.
5298 case `$NM -V 2>&1` in
5299 *GNU* | *'with BFD'*)
5300 symcode='[ABCDGIRSTW]' ;;
5301 esac
5302
5303 # Transform an extracted symbol line into a proper C declaration.
5304 # Some systems (esp. on ia64) link data and code symbols differently,
5305 # so use this general approach.
5306 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5307
5308 # Transform an extracted symbol line into symbol name and symbol address
5309 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5310 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5311
5312 # Handle CRLF in mingw tool chain
5313 opt_cr=
5314 case $build_os in
5315 mingw*)
5316 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5317 ;;
5318 esac
5319
5320 # Try without a prefix underscore, then with it.
5321 for ac_symprfx in "" "_"; do
5322
5323 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5324 symxfrm="\\1 $ac_symprfx\\2 \\2"
5325
5326 # Write the raw and C identifiers.
5327 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5328 # Fake it for dumpbin and say T for any non-static function
5329 # and D for any global variable.
5330 # Also find C++ and __fastcall symbols from MSVC++,
5331 # which start with @ or ?.
5332 lt_cv_sys_global_symbol_pipe="$AWK '"\
5333 " {last_section=section; section=\$ 3};"\
5334 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5335 " \$ 0!~/External *\|/{next};"\
5336 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5337 " {if(hide[section]) next};"\
5338 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5339 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5340 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5341 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5342 " ' prfx=^$ac_symprfx"
5343 else
5344 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5345 fi
5346
5347 # Check to see that the pipe works correctly.
5348 pipe_works=no
5349
5350 rm -f conftest*
5351 cat > conftest.$ac_ext <<_LT_EOF
5352 #ifdef __cplusplus
5353 extern "C" {
5354 #endif
5355 char nm_test_var;
5356 void nm_test_func(void);
5357 void nm_test_func(void){}
5358 #ifdef __cplusplus
5359 }
5360 #endif
5361 int main(){nm_test_var='a';nm_test_func();return(0);}
5362 _LT_EOF
5363
5364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5365 (eval $ac_compile) 2>&5
5366 ac_status=$?
5367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5368 test $ac_status = 0; }; then
5369 # Now try to grab the symbols.
5370 nlist=conftest.nm
5371 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5372 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5373 ac_status=$?
5374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5375 test $ac_status = 0; } && test -s "$nlist"; then
5376 # Try sorting and uniquifying the output.
5377 if sort "$nlist" | uniq > "$nlist"T; then
5378 mv -f "$nlist"T "$nlist"
5379 else
5380 rm -f "$nlist"T
5381 fi
5382
5383 # Make sure that we snagged all the symbols we need.
5384 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5385 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5386 cat <<_LT_EOF > conftest.$ac_ext
5387 #ifdef __cplusplus
5388 extern "C" {
5389 #endif
5390
5391 _LT_EOF
5392 # Now generate the symbol file.
5393 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5394
5395 cat <<_LT_EOF >> conftest.$ac_ext
5396
5397 /* The mapping between symbol names and symbols. */
5398 const struct {
5399 const char *name;
5400 void *address;
5401 }
5402 lt__PROGRAM__LTX_preloaded_symbols[] =
5403 {
5404 { "@PROGRAM@", (void *) 0 },
5405 _LT_EOF
5406 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5407 cat <<\_LT_EOF >> conftest.$ac_ext
5408 {0, (void *) 0}
5409 };
5410
5411 /* This works around a problem in FreeBSD linker */
5412 #ifdef FREEBSD_WORKAROUND
5413 static const void *lt_preloaded_setup() {
5414 return lt__PROGRAM__LTX_preloaded_symbols;
5415 }
5416 #endif
5417
5418 #ifdef __cplusplus
5419 }
5420 #endif
5421 _LT_EOF
5422 # Now try linking the two files.
5423 mv conftest.$ac_objext conftstm.$ac_objext
5424 lt_save_LIBS="$LIBS"
5425 lt_save_CFLAGS="$CFLAGS"
5426 LIBS="conftstm.$ac_objext"
5427 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5428 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5429 (eval $ac_link) 2>&5
5430 ac_status=$?
5431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5432 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5433 pipe_works=yes
5434 fi
5435 LIBS="$lt_save_LIBS"
5436 CFLAGS="$lt_save_CFLAGS"
5437 else
5438 echo "cannot find nm_test_func in $nlist" >&5
5439 fi
5440 else
5441 echo "cannot find nm_test_var in $nlist" >&5
5442 fi
5443 else
5444 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5445 fi
5446 else
5447 echo "$progname: failed program was:" >&5
5448 cat conftest.$ac_ext >&5
5449 fi
5450 rm -rf conftest* conftst*
5451
5452 # Do not use the global_symbol_pipe unless it works.
5453 if test "$pipe_works" = yes; then
5454 break
5455 else
5456 lt_cv_sys_global_symbol_pipe=
5457 fi
5458 done
5459
5460 fi
5461
5462 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5463 lt_cv_sys_global_symbol_to_cdecl=
5464 fi
5465 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5467 $as_echo "failed" >&6; }
5468 else
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5470 $as_echo "ok" >&6; }
5471 fi
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495 # Check whether --enable-libtool-lock was given.
5496 if test "${enable_libtool_lock+set}" = set; then :
5497 enableval=$enable_libtool_lock;
5498 fi
5499
5500 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5501
5502 # Some flags need to be propagated to the compiler or linker for good
5503 # libtool support.
5504 case $host in
5505 ia64-*-hpux*)
5506 # Find out which ABI we are using.
5507 echo 'int i;' > conftest.$ac_ext
5508 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5509 (eval $ac_compile) 2>&5
5510 ac_status=$?
5511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5512 test $ac_status = 0; }; then
5513 case `/usr/bin/file conftest.$ac_objext` in
5514 *ELF-32*)
5515 HPUX_IA64_MODE="32"
5516 ;;
5517 *ELF-64*)
5518 HPUX_IA64_MODE="64"
5519 ;;
5520 esac
5521 fi
5522 rm -rf conftest*
5523 ;;
5524 *-*-irix6*)
5525 # Find out which ABI we are using.
5526 echo '#line 5526 "configure"' > conftest.$ac_ext
5527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5528 (eval $ac_compile) 2>&5
5529 ac_status=$?
5530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5531 test $ac_status = 0; }; then
5532 if test "$lt_cv_prog_gnu_ld" = yes; then
5533 case `/usr/bin/file conftest.$ac_objext` in
5534 *32-bit*)
5535 LD="${LD-ld} -melf32bsmip"
5536 ;;
5537 *N32*)
5538 LD="${LD-ld} -melf32bmipn32"
5539 ;;
5540 *64-bit*)
5541 LD="${LD-ld} -melf64bmip"
5542 ;;
5543 esac
5544 else
5545 case `/usr/bin/file conftest.$ac_objext` in
5546 *32-bit*)
5547 LD="${LD-ld} -32"
5548 ;;
5549 *N32*)
5550 LD="${LD-ld} -n32"
5551 ;;
5552 *64-bit*)
5553 LD="${LD-ld} -64"
5554 ;;
5555 esac
5556 fi
5557 fi
5558 rm -rf conftest*
5559 ;;
5560
5561 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5562 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5563 # Find out which ABI we are using.
5564 echo 'int i;' > conftest.$ac_ext
5565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5566 (eval $ac_compile) 2>&5
5567 ac_status=$?
5568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5569 test $ac_status = 0; }; then
5570 case `/usr/bin/file conftest.o` in
5571 *32-bit*)
5572 case $host in
5573 x86_64-*kfreebsd*-gnu)
5574 LD="${LD-ld} -m elf_i386_fbsd"
5575 ;;
5576 x86_64-*linux*)
5577 LD="${LD-ld} -m elf_i386"
5578 ;;
5579 ppc64-*linux*|powerpc64-*linux*)
5580 LD="${LD-ld} -m elf32ppclinux"
5581 ;;
5582 s390x-*linux*)
5583 LD="${LD-ld} -m elf_s390"
5584 ;;
5585 sparc64-*linux*)
5586 LD="${LD-ld} -m elf32_sparc"
5587 ;;
5588 esac
5589 ;;
5590 *64-bit*)
5591 case $host in
5592 x86_64-*kfreebsd*-gnu)
5593 LD="${LD-ld} -m elf_x86_64_fbsd"
5594 ;;
5595 x86_64-*linux*)
5596 LD="${LD-ld} -m elf_x86_64"
5597 ;;
5598 ppc*-*linux*|powerpc*-*linux*)
5599 LD="${LD-ld} -m elf64ppc"
5600 ;;
5601 s390*-*linux*|s390*-*tpf*)
5602 LD="${LD-ld} -m elf64_s390"
5603 ;;
5604 sparc*-*linux*)
5605 LD="${LD-ld} -m elf64_sparc"
5606 ;;
5607 esac
5608 ;;
5609 esac
5610 fi
5611 rm -rf conftest*
5612 ;;
5613
5614 *-*-sco3.2v5*)
5615 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5616 SAVE_CFLAGS="$CFLAGS"
5617 CFLAGS="$CFLAGS -belf"
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5619 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5620 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5621 $as_echo_n "(cached) " >&6
5622 else
5623 ac_ext=c
5624 ac_cpp='$CPP $CPPFLAGS'
5625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5628
5629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630 /* end confdefs.h. */
5631
5632 int
5633 main ()
5634 {
5635
5636 ;
5637 return 0;
5638 }
5639 _ACEOF
5640 if ac_fn_c_try_link "$LINENO"; then :
5641 lt_cv_cc_needs_belf=yes
5642 else
5643 lt_cv_cc_needs_belf=no
5644 fi
5645 rm -f core conftest.err conftest.$ac_objext \
5646 conftest$ac_exeext conftest.$ac_ext
5647 ac_ext=c
5648 ac_cpp='$CPP $CPPFLAGS'
5649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5652
5653 fi
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5655 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5656 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5657 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5658 CFLAGS="$SAVE_CFLAGS"
5659 fi
5660 ;;
5661 sparc*-*solaris*)
5662 # Find out which ABI we are using.
5663 echo 'int i;' > conftest.$ac_ext
5664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5665 (eval $ac_compile) 2>&5
5666 ac_status=$?
5667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5668 test $ac_status = 0; }; then
5669 case `/usr/bin/file conftest.o` in
5670 *64-bit*)
5671 case $lt_cv_prog_gnu_ld in
5672 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5673 *)
5674 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5675 LD="${LD-ld} -64"
5676 fi
5677 ;;
5678 esac
5679 ;;
5680 esac
5681 fi
5682 rm -rf conftest*
5683 ;;
5684 esac
5685
5686 need_locks="$enable_libtool_lock"
5687
5688
5689 case $host_os in
5690 rhapsody* | darwin*)
5691 if test -n "$ac_tool_prefix"; then
5692 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5693 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5695 $as_echo_n "checking for $ac_word... " >&6; }
5696 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5697 $as_echo_n "(cached) " >&6
5698 else
5699 if test -n "$DSYMUTIL"; then
5700 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5701 else
5702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5703 for as_dir in $PATH
5704 do
5705 IFS=$as_save_IFS
5706 test -z "$as_dir" && as_dir=.
5707 for ac_exec_ext in '' $ac_executable_extensions; do
5708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5709 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5711 break 2
5712 fi
5713 done
5714 done
5715 IFS=$as_save_IFS
5716
5717 fi
5718 fi
5719 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5720 if test -n "$DSYMUTIL"; then
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5722 $as_echo "$DSYMUTIL" >&6; }
5723 else
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5725 $as_echo "no" >&6; }
5726 fi
5727
5728
5729 fi
5730 if test -z "$ac_cv_prog_DSYMUTIL"; then
5731 ac_ct_DSYMUTIL=$DSYMUTIL
5732 # Extract the first word of "dsymutil", so it can be a program name with args.
5733 set dummy dsymutil; ac_word=$2
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5735 $as_echo_n "checking for $ac_word... " >&6; }
5736 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5737 $as_echo_n "(cached) " >&6
5738 else
5739 if test -n "$ac_ct_DSYMUTIL"; then
5740 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5741 else
5742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743 for as_dir in $PATH
5744 do
5745 IFS=$as_save_IFS
5746 test -z "$as_dir" && as_dir=.
5747 for ac_exec_ext in '' $ac_executable_extensions; do
5748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5749 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5751 break 2
5752 fi
5753 done
5754 done
5755 IFS=$as_save_IFS
5756
5757 fi
5758 fi
5759 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5760 if test -n "$ac_ct_DSYMUTIL"; then
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5762 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5763 else
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5765 $as_echo "no" >&6; }
5766 fi
5767
5768 if test "x$ac_ct_DSYMUTIL" = x; then
5769 DSYMUTIL=":"
5770 else
5771 case $cross_compiling:$ac_tool_warned in
5772 yes:)
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5775 ac_tool_warned=yes ;;
5776 esac
5777 DSYMUTIL=$ac_ct_DSYMUTIL
5778 fi
5779 else
5780 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5781 fi
5782
5783 if test -n "$ac_tool_prefix"; then
5784 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5785 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5787 $as_echo_n "checking for $ac_word... " >&6; }
5788 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5789 $as_echo_n "(cached) " >&6
5790 else
5791 if test -n "$NMEDIT"; then
5792 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5793 else
5794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795 for as_dir in $PATH
5796 do
5797 IFS=$as_save_IFS
5798 test -z "$as_dir" && as_dir=.
5799 for ac_exec_ext in '' $ac_executable_extensions; do
5800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5801 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5803 break 2
5804 fi
5805 done
5806 done
5807 IFS=$as_save_IFS
5808
5809 fi
5810 fi
5811 NMEDIT=$ac_cv_prog_NMEDIT
5812 if test -n "$NMEDIT"; then
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5814 $as_echo "$NMEDIT" >&6; }
5815 else
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5817 $as_echo "no" >&6; }
5818 fi
5819
5820
5821 fi
5822 if test -z "$ac_cv_prog_NMEDIT"; then
5823 ac_ct_NMEDIT=$NMEDIT
5824 # Extract the first word of "nmedit", so it can be a program name with args.
5825 set dummy nmedit; ac_word=$2
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5827 $as_echo_n "checking for $ac_word... " >&6; }
5828 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5829 $as_echo_n "(cached) " >&6
5830 else
5831 if test -n "$ac_ct_NMEDIT"; then
5832 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5833 else
5834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835 for as_dir in $PATH
5836 do
5837 IFS=$as_save_IFS
5838 test -z "$as_dir" && as_dir=.
5839 for ac_exec_ext in '' $ac_executable_extensions; do
5840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5841 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5843 break 2
5844 fi
5845 done
5846 done
5847 IFS=$as_save_IFS
5848
5849 fi
5850 fi
5851 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5852 if test -n "$ac_ct_NMEDIT"; then
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5854 $as_echo "$ac_ct_NMEDIT" >&6; }
5855 else
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5857 $as_echo "no" >&6; }
5858 fi
5859
5860 if test "x$ac_ct_NMEDIT" = x; then
5861 NMEDIT=":"
5862 else
5863 case $cross_compiling:$ac_tool_warned in
5864 yes:)
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5867 ac_tool_warned=yes ;;
5868 esac
5869 NMEDIT=$ac_ct_NMEDIT
5870 fi
5871 else
5872 NMEDIT="$ac_cv_prog_NMEDIT"
5873 fi
5874
5875 if test -n "$ac_tool_prefix"; then
5876 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5877 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5879 $as_echo_n "checking for $ac_word... " >&6; }
5880 if test "${ac_cv_prog_LIPO+set}" = set; then :
5881 $as_echo_n "(cached) " >&6
5882 else
5883 if test -n "$LIPO"; then
5884 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5885 else
5886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887 for as_dir in $PATH
5888 do
5889 IFS=$as_save_IFS
5890 test -z "$as_dir" && as_dir=.
5891 for ac_exec_ext in '' $ac_executable_extensions; do
5892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5893 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5895 break 2
5896 fi
5897 done
5898 done
5899 IFS=$as_save_IFS
5900
5901 fi
5902 fi
5903 LIPO=$ac_cv_prog_LIPO
5904 if test -n "$LIPO"; then
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5906 $as_echo "$LIPO" >&6; }
5907 else
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5909 $as_echo "no" >&6; }
5910 fi
5911
5912
5913 fi
5914 if test -z "$ac_cv_prog_LIPO"; then
5915 ac_ct_LIPO=$LIPO
5916 # Extract the first word of "lipo", so it can be a program name with args.
5917 set dummy lipo; ac_word=$2
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5919 $as_echo_n "checking for $ac_word... " >&6; }
5920 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
5921 $as_echo_n "(cached) " >&6
5922 else
5923 if test -n "$ac_ct_LIPO"; then
5924 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5925 else
5926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 for as_dir in $PATH
5928 do
5929 IFS=$as_save_IFS
5930 test -z "$as_dir" && as_dir=.
5931 for ac_exec_ext in '' $ac_executable_extensions; do
5932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5933 ac_cv_prog_ac_ct_LIPO="lipo"
5934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5935 break 2
5936 fi
5937 done
5938 done
5939 IFS=$as_save_IFS
5940
5941 fi
5942 fi
5943 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5944 if test -n "$ac_ct_LIPO"; then
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5946 $as_echo "$ac_ct_LIPO" >&6; }
5947 else
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5949 $as_echo "no" >&6; }
5950 fi
5951
5952 if test "x$ac_ct_LIPO" = x; then
5953 LIPO=":"
5954 else
5955 case $cross_compiling:$ac_tool_warned in
5956 yes:)
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5959 ac_tool_warned=yes ;;
5960 esac
5961 LIPO=$ac_ct_LIPO
5962 fi
5963 else
5964 LIPO="$ac_cv_prog_LIPO"
5965 fi
5966
5967 if test -n "$ac_tool_prefix"; then
5968 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5969 set dummy ${ac_tool_prefix}otool; ac_word=$2
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5971 $as_echo_n "checking for $ac_word... " >&6; }
5972 if test "${ac_cv_prog_OTOOL+set}" = set; then :
5973 $as_echo_n "(cached) " >&6
5974 else
5975 if test -n "$OTOOL"; then
5976 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5977 else
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 for as_dir in $PATH
5980 do
5981 IFS=$as_save_IFS
5982 test -z "$as_dir" && as_dir=.
5983 for ac_exec_ext in '' $ac_executable_extensions; do
5984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5985 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5987 break 2
5988 fi
5989 done
5990 done
5991 IFS=$as_save_IFS
5992
5993 fi
5994 fi
5995 OTOOL=$ac_cv_prog_OTOOL
5996 if test -n "$OTOOL"; then
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5998 $as_echo "$OTOOL" >&6; }
5999 else
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6001 $as_echo "no" >&6; }
6002 fi
6003
6004
6005 fi
6006 if test -z "$ac_cv_prog_OTOOL"; then
6007 ac_ct_OTOOL=$OTOOL
6008 # Extract the first word of "otool", so it can be a program name with args.
6009 set dummy otool; ac_word=$2
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6011 $as_echo_n "checking for $ac_word... " >&6; }
6012 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6013 $as_echo_n "(cached) " >&6
6014 else
6015 if test -n "$ac_ct_OTOOL"; then
6016 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6017 else
6018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019 for as_dir in $PATH
6020 do
6021 IFS=$as_save_IFS
6022 test -z "$as_dir" && as_dir=.
6023 for ac_exec_ext in '' $ac_executable_extensions; do
6024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6025 ac_cv_prog_ac_ct_OTOOL="otool"
6026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6027 break 2
6028 fi
6029 done
6030 done
6031 IFS=$as_save_IFS
6032
6033 fi
6034 fi
6035 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6036 if test -n "$ac_ct_OTOOL"; then
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6038 $as_echo "$ac_ct_OTOOL" >&6; }
6039 else
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6041 $as_echo "no" >&6; }
6042 fi
6043
6044 if test "x$ac_ct_OTOOL" = x; then
6045 OTOOL=":"
6046 else
6047 case $cross_compiling:$ac_tool_warned in
6048 yes:)
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6051 ac_tool_warned=yes ;;
6052 esac
6053 OTOOL=$ac_ct_OTOOL
6054 fi
6055 else
6056 OTOOL="$ac_cv_prog_OTOOL"
6057 fi
6058
6059 if test -n "$ac_tool_prefix"; then
6060 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6061 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6063 $as_echo_n "checking for $ac_word... " >&6; }
6064 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6065 $as_echo_n "(cached) " >&6
6066 else
6067 if test -n "$OTOOL64"; then
6068 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6069 else
6070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6071 for as_dir in $PATH
6072 do
6073 IFS=$as_save_IFS
6074 test -z "$as_dir" && as_dir=.
6075 for ac_exec_ext in '' $ac_executable_extensions; do
6076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6077 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6079 break 2
6080 fi
6081 done
6082 done
6083 IFS=$as_save_IFS
6084
6085 fi
6086 fi
6087 OTOOL64=$ac_cv_prog_OTOOL64
6088 if test -n "$OTOOL64"; then
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6090 $as_echo "$OTOOL64" >&6; }
6091 else
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6093 $as_echo "no" >&6; }
6094 fi
6095
6096
6097 fi
6098 if test -z "$ac_cv_prog_OTOOL64"; then
6099 ac_ct_OTOOL64=$OTOOL64
6100 # Extract the first word of "otool64", so it can be a program name with args.
6101 set dummy otool64; ac_word=$2
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6103 $as_echo_n "checking for $ac_word... " >&6; }
6104 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6105 $as_echo_n "(cached) " >&6
6106 else
6107 if test -n "$ac_ct_OTOOL64"; then
6108 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6109 else
6110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111 for as_dir in $PATH
6112 do
6113 IFS=$as_save_IFS
6114 test -z "$as_dir" && as_dir=.
6115 for ac_exec_ext in '' $ac_executable_extensions; do
6116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6117 ac_cv_prog_ac_ct_OTOOL64="otool64"
6118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6119 break 2
6120 fi
6121 done
6122 done
6123 IFS=$as_save_IFS
6124
6125 fi
6126 fi
6127 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6128 if test -n "$ac_ct_OTOOL64"; then
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6130 $as_echo "$ac_ct_OTOOL64" >&6; }
6131 else
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6133 $as_echo "no" >&6; }
6134 fi
6135
6136 if test "x$ac_ct_OTOOL64" = x; then
6137 OTOOL64=":"
6138 else
6139 case $cross_compiling:$ac_tool_warned in
6140 yes:)
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6143 ac_tool_warned=yes ;;
6144 esac
6145 OTOOL64=$ac_ct_OTOOL64
6146 fi
6147 else
6148 OTOOL64="$ac_cv_prog_OTOOL64"
6149 fi
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6178 $as_echo_n "checking for -single_module linker flag... " >&6; }
6179 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6180 $as_echo_n "(cached) " >&6
6181 else
6182 lt_cv_apple_cc_single_mod=no
6183 if test -z "${LT_MULTI_MODULE}"; then
6184 # By default we will add the -single_module flag. You can override
6185 # by either setting the environment variable LT_MULTI_MODULE
6186 # non-empty at configure time, or by adding -multi_module to the
6187 # link flags.
6188 rm -rf libconftest.dylib*
6189 echo "int foo(void){return 1;}" > conftest.c
6190 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6191 -dynamiclib -Wl,-single_module conftest.c" >&5
6192 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6193 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6194 _lt_result=$?
6195 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6196 lt_cv_apple_cc_single_mod=yes
6197 else
6198 cat conftest.err >&5
6199 fi
6200 rm -rf libconftest.dylib*
6201 rm -f conftest.*
6202 fi
6203 fi
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6205 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6207 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6208 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6209 $as_echo_n "(cached) " >&6
6210 else
6211 lt_cv_ld_exported_symbols_list=no
6212 save_LDFLAGS=$LDFLAGS
6213 echo "_main" > conftest.sym
6214 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6216 /* end confdefs.h. */
6217
6218 int
6219 main ()
6220 {
6221
6222 ;
6223 return 0;
6224 }
6225 _ACEOF
6226 if ac_fn_c_try_link "$LINENO"; then :
6227 lt_cv_ld_exported_symbols_list=yes
6228 else
6229 lt_cv_ld_exported_symbols_list=no
6230 fi
6231 rm -f core conftest.err conftest.$ac_objext \
6232 conftest$ac_exeext conftest.$ac_ext
6233 LDFLAGS="$save_LDFLAGS"
6234
6235 fi
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6237 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6238 case $host_os in
6239 rhapsody* | darwin1.[012])
6240 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6241 darwin1.*)
6242 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6243 darwin*) # darwin 5.x on
6244 # if running on 10.5 or later, the deployment target defaults
6245 # to the OS version, if on x86, and 10.4, the deployment
6246 # target defaults to 10.4. Don't you love it?
6247 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6248 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6249 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6250 10.[012]*)
6251 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6252 10.*)
6253 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6254 esac
6255 ;;
6256 esac
6257 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6258 _lt_dar_single_mod='$single_module'
6259 fi
6260 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6261 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6262 else
6263 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6264 fi
6265 if test "$DSYMUTIL" != ":"; then
6266 _lt_dsymutil='~$DSYMUTIL $lib || :'
6267 else
6268 _lt_dsymutil=
6269 fi
6270 ;;
6271 esac
6272
6273 ac_ext=c
6274 ac_cpp='$CPP $CPPFLAGS'
6275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6279 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6280 # On Suns, sometimes $CPP names a directory.
6281 if test -n "$CPP" && test -d "$CPP"; then
6282 CPP=
6283 fi
6284 if test -z "$CPP"; then
6285 if test "${ac_cv_prog_CPP+set}" = set; then :
6286 $as_echo_n "(cached) " >&6
6287 else
6288 # Double quotes because CPP needs to be expanded
6289 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6290 do
6291 ac_preproc_ok=false
6292 for ac_c_preproc_warn_flag in '' yes
6293 do
6294 # Use a header file that comes with gcc, so configuring glibc
6295 # with a fresh cross-compiler works.
6296 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6297 # <limits.h> exists even on freestanding compilers.
6298 # On the NeXT, cc -E runs the code through the compiler's parser,
6299 # not just through cpp. "Syntax error" is here to catch this case.
6300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6301 /* end confdefs.h. */
6302 #ifdef __STDC__
6303 # include <limits.h>
6304 #else
6305 # include <assert.h>
6306 #endif
6307 Syntax error
6308 _ACEOF
6309 if ac_fn_c_try_cpp "$LINENO"; then :
6310
6311 else
6312 # Broken: fails on valid input.
6313 continue
6314 fi
6315 rm -f conftest.err conftest.$ac_ext
6316
6317 # OK, works on sane cases. Now check whether nonexistent headers
6318 # can be detected and how.
6319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6320 /* end confdefs.h. */
6321 #include <ac_nonexistent.h>
6322 _ACEOF
6323 if ac_fn_c_try_cpp "$LINENO"; then :
6324 # Broken: success on invalid input.
6325 continue
6326 else
6327 # Passes both tests.
6328 ac_preproc_ok=:
6329 break
6330 fi
6331 rm -f conftest.err conftest.$ac_ext
6332
6333 done
6334 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6335 rm -f conftest.err conftest.$ac_ext
6336 if $ac_preproc_ok; then :
6337 break
6338 fi
6339
6340 done
6341 ac_cv_prog_CPP=$CPP
6342
6343 fi
6344 CPP=$ac_cv_prog_CPP
6345 else
6346 ac_cv_prog_CPP=$CPP
6347 fi
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6349 $as_echo "$CPP" >&6; }
6350 ac_preproc_ok=false
6351 for ac_c_preproc_warn_flag in '' yes
6352 do
6353 # Use a header file that comes with gcc, so configuring glibc
6354 # with a fresh cross-compiler works.
6355 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6356 # <limits.h> exists even on freestanding compilers.
6357 # On the NeXT, cc -E runs the code through the compiler's parser,
6358 # not just through cpp. "Syntax error" is here to catch this case.
6359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6360 /* end confdefs.h. */
6361 #ifdef __STDC__
6362 # include <limits.h>
6363 #else
6364 # include <assert.h>
6365 #endif
6366 Syntax error
6367 _ACEOF
6368 if ac_fn_c_try_cpp "$LINENO"; then :
6369
6370 else
6371 # Broken: fails on valid input.
6372 continue
6373 fi
6374 rm -f conftest.err conftest.$ac_ext
6375
6376 # OK, works on sane cases. Now check whether nonexistent headers
6377 # can be detected and how.
6378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6379 /* end confdefs.h. */
6380 #include <ac_nonexistent.h>
6381 _ACEOF
6382 if ac_fn_c_try_cpp "$LINENO"; then :
6383 # Broken: success on invalid input.
6384 continue
6385 else
6386 # Passes both tests.
6387 ac_preproc_ok=:
6388 break
6389 fi
6390 rm -f conftest.err conftest.$ac_ext
6391
6392 done
6393 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6394 rm -f conftest.err conftest.$ac_ext
6395 if $ac_preproc_ok; then :
6396
6397 else
6398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6400 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6401 See \`config.log' for more details." "$LINENO" 5; }
6402 fi
6403
6404 ac_ext=c
6405 ac_cpp='$CPP $CPPFLAGS'
6406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6409
6410
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6412 $as_echo_n "checking for ANSI C header files... " >&6; }
6413 if test "${ac_cv_header_stdc+set}" = set; then :
6414 $as_echo_n "(cached) " >&6
6415 else
6416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6417 /* end confdefs.h. */
6418 #include <stdlib.h>
6419 #include <stdarg.h>
6420 #include <string.h>
6421 #include <float.h>
6422
6423 int
6424 main ()
6425 {
6426
6427 ;
6428 return 0;
6429 }
6430 _ACEOF
6431 if ac_fn_c_try_compile "$LINENO"; then :
6432 ac_cv_header_stdc=yes
6433 else
6434 ac_cv_header_stdc=no
6435 fi
6436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6437
6438 if test $ac_cv_header_stdc = yes; then
6439 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6441 /* end confdefs.h. */
6442 #include <string.h>
6443
6444 _ACEOF
6445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6446 $EGREP "memchr" >/dev/null 2>&1; then :
6447
6448 else
6449 ac_cv_header_stdc=no
6450 fi
6451 rm -f conftest*
6452
6453 fi
6454
6455 if test $ac_cv_header_stdc = yes; then
6456 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6458 /* end confdefs.h. */
6459 #include <stdlib.h>
6460
6461 _ACEOF
6462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6463 $EGREP "free" >/dev/null 2>&1; then :
6464
6465 else
6466 ac_cv_header_stdc=no
6467 fi
6468 rm -f conftest*
6469
6470 fi
6471
6472 if test $ac_cv_header_stdc = yes; then
6473 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6474 if test "$cross_compiling" = yes; then :
6475 :
6476 else
6477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6478 /* end confdefs.h. */
6479 #include <ctype.h>
6480 #include <stdlib.h>
6481 #if ((' ' & 0x0FF) == 0x020)
6482 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6483 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6484 #else
6485 # define ISLOWER(c) \
6486 (('a' <= (c) && (c) <= 'i') \
6487 || ('j' <= (c) && (c) <= 'r') \
6488 || ('s' <= (c) && (c) <= 'z'))
6489 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6490 #endif
6491
6492 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6493 int
6494 main ()
6495 {
6496 int i;
6497 for (i = 0; i < 256; i++)
6498 if (XOR (islower (i), ISLOWER (i))
6499 || toupper (i) != TOUPPER (i))
6500 return 2;
6501 return 0;
6502 }
6503 _ACEOF
6504 if ac_fn_c_try_run "$LINENO"; then :
6505
6506 else
6507 ac_cv_header_stdc=no
6508 fi
6509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6510 conftest.$ac_objext conftest.beam conftest.$ac_ext
6511 fi
6512
6513 fi
6514 fi
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6516 $as_echo "$ac_cv_header_stdc" >&6; }
6517 if test $ac_cv_header_stdc = yes; then
6518
6519 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6520
6521 fi
6522
6523 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6524 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6525 inttypes.h stdint.h unistd.h
6526 do :
6527 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6528 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6529 "
6530 eval as_val=\$$as_ac_Header
6531 if test "x$as_val" = x""yes; then :
6532 cat >>confdefs.h <<_ACEOF
6533 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6534 _ACEOF
6535
6536 fi
6537
6538 done
6539
6540
6541 for ac_header in dlfcn.h
6542 do :
6543 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6544 "
6545 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6546 cat >>confdefs.h <<_ACEOF
6547 #define HAVE_DLFCN_H 1
6548 _ACEOF
6549
6550 fi
6551
6552 done
6553
6554
6555
6556 ac_ext=cpp
6557 ac_cpp='$CXXCPP $CPPFLAGS'
6558 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6559 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6560 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6561 if test -z "$CXX"; then
6562 if test -n "$CCC"; then
6563 CXX=$CCC
6564 else
6565 if test -n "$ac_tool_prefix"; then
6566 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6567 do
6568 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6569 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6571 $as_echo_n "checking for $ac_word... " >&6; }
6572 if test "${ac_cv_prog_CXX+set}" = set; then :
6573 $as_echo_n "(cached) " >&6
6574 else
6575 if test -n "$CXX"; then
6576 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6577 else
6578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579 for as_dir in $PATH
6580 do
6581 IFS=$as_save_IFS
6582 test -z "$as_dir" && as_dir=.
6583 for ac_exec_ext in '' $ac_executable_extensions; do
6584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6585 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6587 break 2
6588 fi
6589 done
6590 done
6591 IFS=$as_save_IFS
6592
6593 fi
6594 fi
6595 CXX=$ac_cv_prog_CXX
6596 if test -n "$CXX"; then
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6598 $as_echo "$CXX" >&6; }
6599 else
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6601 $as_echo "no" >&6; }
6602 fi
6603
6604
6605 test -n "$CXX" && break
6606 done
6607 fi
6608 if test -z "$CXX"; then
6609 ac_ct_CXX=$CXX
6610 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6611 do
6612 # Extract the first word of "$ac_prog", so it can be a program name with args.
6613 set dummy $ac_prog; ac_word=$2
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615 $as_echo_n "checking for $ac_word... " >&6; }
6616 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6617 $as_echo_n "(cached) " >&6
6618 else
6619 if test -n "$ac_ct_CXX"; then
6620 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6621 else
6622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 for as_dir in $PATH
6624 do
6625 IFS=$as_save_IFS
6626 test -z "$as_dir" && as_dir=.
6627 for ac_exec_ext in '' $ac_executable_extensions; do
6628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6629 ac_cv_prog_ac_ct_CXX="$ac_prog"
6630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6631 break 2
6632 fi
6633 done
6634 done
6635 IFS=$as_save_IFS
6636
6637 fi
6638 fi
6639 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6640 if test -n "$ac_ct_CXX"; then
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6642 $as_echo "$ac_ct_CXX" >&6; }
6643 else
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645 $as_echo "no" >&6; }
6646 fi
6647
6648
6649 test -n "$ac_ct_CXX" && break
6650 done
6651
6652 if test "x$ac_ct_CXX" = x; then
6653 CXX="g++"
6654 else
6655 case $cross_compiling:$ac_tool_warned in
6656 yes:)
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6659 ac_tool_warned=yes ;;
6660 esac
6661 CXX=$ac_ct_CXX
6662 fi
6663 fi
6664
6665 fi
6666 fi
6667 # Provide some information about the compiler.
6668 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6669 set X $ac_compile
6670 ac_compiler=$2
6671 for ac_option in --version -v -V -qversion; do
6672 { { ac_try="$ac_compiler $ac_option >&5"
6673 case "(($ac_try" in
6674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6675 *) ac_try_echo=$ac_try;;
6676 esac
6677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6678 $as_echo "$ac_try_echo"; } >&5
6679 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6680 ac_status=$?
6681 if test -s conftest.err; then
6682 sed '10a\
6683 ... rest of stderr output deleted ...
6684 10q' conftest.err >conftest.er1
6685 cat conftest.er1 >&5
6686 rm -f conftest.er1 conftest.err
6687 fi
6688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6689 test $ac_status = 0; }
6690 done
6691
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6693 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6694 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6695 $as_echo_n "(cached) " >&6
6696 else
6697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6698 /* end confdefs.h. */
6699
6700 int
6701 main ()
6702 {
6703 #ifndef __GNUC__
6704 choke me
6705 #endif
6706
6707 ;
6708 return 0;
6709 }
6710 _ACEOF
6711 if ac_fn_cxx_try_compile "$LINENO"; then :
6712 ac_compiler_gnu=yes
6713 else
6714 ac_compiler_gnu=no
6715 fi
6716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6717 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6718
6719 fi
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6721 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6722 if test $ac_compiler_gnu = yes; then
6723 GXX=yes
6724 else
6725 GXX=
6726 fi
6727 ac_test_CXXFLAGS=${CXXFLAGS+set}
6728 ac_save_CXXFLAGS=$CXXFLAGS
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6730 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6731 if test "${ac_cv_prog_cxx_g+set}" = set; then :
6732 $as_echo_n "(cached) " >&6
6733 else
6734 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6735 ac_cxx_werror_flag=yes
6736 ac_cv_prog_cxx_g=no
6737 CXXFLAGS="-g"
6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739 /* end confdefs.h. */
6740
6741 int
6742 main ()
6743 {
6744
6745 ;
6746 return 0;
6747 }
6748 _ACEOF
6749 if ac_fn_cxx_try_compile "$LINENO"; then :
6750 ac_cv_prog_cxx_g=yes
6751 else
6752 CXXFLAGS=""
6753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754 /* end confdefs.h. */
6755
6756 int
6757 main ()
6758 {
6759
6760 ;
6761 return 0;
6762 }
6763 _ACEOF
6764 if ac_fn_cxx_try_compile "$LINENO"; then :
6765
6766 else
6767 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6768 CXXFLAGS="-g"
6769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6770 /* end confdefs.h. */
6771
6772 int
6773 main ()
6774 {
6775
6776 ;
6777 return 0;
6778 }
6779 _ACEOF
6780 if ac_fn_cxx_try_compile "$LINENO"; then :
6781 ac_cv_prog_cxx_g=yes
6782 fi
6783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6784 fi
6785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6786 fi
6787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6788 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6789 fi
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6791 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6792 if test "$ac_test_CXXFLAGS" = set; then
6793 CXXFLAGS=$ac_save_CXXFLAGS
6794 elif test $ac_cv_prog_cxx_g = yes; then
6795 if test "$GXX" = yes; then
6796 CXXFLAGS="-g -O2"
6797 else
6798 CXXFLAGS="-g"
6799 fi
6800 else
6801 if test "$GXX" = yes; then
6802 CXXFLAGS="-O2"
6803 else
6804 CXXFLAGS=
6805 fi
6806 fi
6807 ac_ext=c
6808 ac_cpp='$CPP $CPPFLAGS'
6809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6812
6813 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6814 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6815 (test "X$CXX" != "Xg++"))) ; then
6816 ac_ext=cpp
6817 ac_cpp='$CXXCPP $CPPFLAGS'
6818 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6819 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6820 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6822 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6823 if test -z "$CXXCPP"; then
6824 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
6825 $as_echo_n "(cached) " >&6
6826 else
6827 # Double quotes because CXXCPP needs to be expanded
6828 for CXXCPP in "$CXX -E" "/lib/cpp"
6829 do
6830 ac_preproc_ok=false
6831 for ac_cxx_preproc_warn_flag in '' yes
6832 do
6833 # Use a header file that comes with gcc, so configuring glibc
6834 # with a fresh cross-compiler works.
6835 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6836 # <limits.h> exists even on freestanding compilers.
6837 # On the NeXT, cc -E runs the code through the compiler's parser,
6838 # not just through cpp. "Syntax error" is here to catch this case.
6839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6840 /* end confdefs.h. */
6841 #ifdef __STDC__
6842 # include <limits.h>
6843 #else
6844 # include <assert.h>
6845 #endif
6846 Syntax error
6847 _ACEOF
6848 if ac_fn_cxx_try_cpp "$LINENO"; then :
6849
6850 else
6851 # Broken: fails on valid input.
6852 continue
6853 fi
6854 rm -f conftest.err conftest.$ac_ext
6855
6856 # OK, works on sane cases. Now check whether nonexistent headers
6857 # can be detected and how.
6858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6859 /* end confdefs.h. */
6860 #include <ac_nonexistent.h>
6861 _ACEOF
6862 if ac_fn_cxx_try_cpp "$LINENO"; then :
6863 # Broken: success on invalid input.
6864 continue
6865 else
6866 # Passes both tests.
6867 ac_preproc_ok=:
6868 break
6869 fi
6870 rm -f conftest.err conftest.$ac_ext
6871
6872 done
6873 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6874 rm -f conftest.err conftest.$ac_ext
6875 if $ac_preproc_ok; then :
6876 break
6877 fi
6878
6879 done
6880 ac_cv_prog_CXXCPP=$CXXCPP
6881
6882 fi
6883 CXXCPP=$ac_cv_prog_CXXCPP
6884 else
6885 ac_cv_prog_CXXCPP=$CXXCPP
6886 fi
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6888 $as_echo "$CXXCPP" >&6; }
6889 ac_preproc_ok=false
6890 for ac_cxx_preproc_warn_flag in '' yes
6891 do
6892 # Use a header file that comes with gcc, so configuring glibc
6893 # with a fresh cross-compiler works.
6894 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6895 # <limits.h> exists even on freestanding compilers.
6896 # On the NeXT, cc -E runs the code through the compiler's parser,
6897 # not just through cpp. "Syntax error" is here to catch this case.
6898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6899 /* end confdefs.h. */
6900 #ifdef __STDC__
6901 # include <limits.h>
6902 #else
6903 # include <assert.h>
6904 #endif
6905 Syntax error
6906 _ACEOF
6907 if ac_fn_cxx_try_cpp "$LINENO"; then :
6908
6909 else
6910 # Broken: fails on valid input.
6911 continue
6912 fi
6913 rm -f conftest.err conftest.$ac_ext
6914
6915 # OK, works on sane cases. Now check whether nonexistent headers
6916 # can be detected and how.
6917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6918 /* end confdefs.h. */
6919 #include <ac_nonexistent.h>
6920 _ACEOF
6921 if ac_fn_cxx_try_cpp "$LINENO"; then :
6922 # Broken: success on invalid input.
6923 continue
6924 else
6925 # Passes both tests.
6926 ac_preproc_ok=:
6927 break
6928 fi
6929 rm -f conftest.err conftest.$ac_ext
6930
6931 done
6932 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6933 rm -f conftest.err conftest.$ac_ext
6934 if $ac_preproc_ok; then :
6935
6936 else
6937 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6939 _lt_caught_CXX_error=yes; }
6940 fi
6941
6942 ac_ext=c
6943 ac_cpp='$CPP $CPPFLAGS'
6944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6947
6948 else
6949 _lt_caught_CXX_error=yes
6950 fi
6951
6952
6953
6954
6955
6956 # Set options
6957
6958
6959
6960 enable_dlopen=no
6961
6962
6963 enable_win32_dll=no
6964
6965
6966 # Check whether --enable-shared was given.
6967 if test "${enable_shared+set}" = set; then :
6968 enableval=$enable_shared; p=${PACKAGE-default}
6969 case $enableval in
6970 yes) enable_shared=yes ;;
6971 no) enable_shared=no ;;
6972 *)
6973 enable_shared=no
6974 # Look at the argument we got. We use all the common list separators.
6975 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6976 for pkg in $enableval; do
6977 IFS="$lt_save_ifs"
6978 if test "X$pkg" = "X$p"; then
6979 enable_shared=yes
6980 fi
6981 done
6982 IFS="$lt_save_ifs"
6983 ;;
6984 esac
6985 else
6986 enable_shared=yes
6987 fi
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997 # Check whether --enable-static was given.
6998 if test "${enable_static+set}" = set; then :
6999 enableval=$enable_static; p=${PACKAGE-default}
7000 case $enableval in
7001 yes) enable_static=yes ;;
7002 no) enable_static=no ;;
7003 *)
7004 enable_static=no
7005 # Look at the argument we got. We use all the common list separators.
7006 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7007 for pkg in $enableval; do
7008 IFS="$lt_save_ifs"
7009 if test "X$pkg" = "X$p"; then
7010 enable_static=yes
7011 fi
7012 done
7013 IFS="$lt_save_ifs"
7014 ;;
7015 esac
7016 else
7017 enable_static=yes
7018 fi
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029 # Check whether --with-pic was given.
7030 if test "${with_pic+set}" = set; then :
7031 withval=$with_pic; pic_mode="$withval"
7032 else
7033 pic_mode=default
7034 fi
7035
7036
7037 test -z "$pic_mode" && pic_mode=default
7038
7039
7040
7041
7042
7043
7044
7045 # Check whether --enable-fast-install was given.
7046 if test "${enable_fast_install+set}" = set; then :
7047 enableval=$enable_fast_install; p=${PACKAGE-default}
7048 case $enableval in
7049 yes) enable_fast_install=yes ;;
7050 no) enable_fast_install=no ;;
7051 *)
7052 enable_fast_install=no
7053 # Look at the argument we got. We use all the common list separators.
7054 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7055 for pkg in $enableval; do
7056 IFS="$lt_save_ifs"
7057 if test "X$pkg" = "X$p"; then
7058 enable_fast_install=yes
7059 fi
7060 done
7061 IFS="$lt_save_ifs"
7062 ;;
7063 esac
7064 else
7065 enable_fast_install=yes
7066 fi
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078 # This can be used to rebuild libtool when needed
7079 LIBTOOL_DEPS="$ltmain"
7080
7081 # Always use our own libtool.
7082 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108 test -z "$LN_S" && LN_S="ln -s"
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123 if test -n "${ZSH_VERSION+set}" ; then
7124 setopt NO_GLOB_SUBST
7125 fi
7126
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7128 $as_echo_n "checking for objdir... " >&6; }
7129 if test "${lt_cv_objdir+set}" = set; then :
7130 $as_echo_n "(cached) " >&6
7131 else
7132 rm -f .libs 2>/dev/null
7133 mkdir .libs 2>/dev/null
7134 if test -d .libs; then
7135 lt_cv_objdir=.libs
7136 else
7137 # MS-DOS does not allow filenames that begin with a dot.
7138 lt_cv_objdir=_libs
7139 fi
7140 rmdir .libs 2>/dev/null
7141 fi
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7143 $as_echo "$lt_cv_objdir" >&6; }
7144 objdir=$lt_cv_objdir
7145
7146
7147
7148
7149
7150 cat >>confdefs.h <<_ACEOF
7151 #define LT_OBJDIR "$lt_cv_objdir/"
7152 _ACEOF
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170 case $host_os in
7171 aix3*)
7172 # AIX sometimes has problems with the GCC collect2 program. For some
7173 # reason, if we set the COLLECT_NAMES environment variable, the problems
7174 # vanish in a puff of smoke.
7175 if test "X${COLLECT_NAMES+set}" != Xset; then
7176 COLLECT_NAMES=
7177 export COLLECT_NAMES
7178 fi
7179 ;;
7180 esac
7181
7182 # Sed substitution that helps us do robust quoting. It backslashifies
7183 # metacharacters that are still active within double-quoted strings.
7184 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7185
7186 # Same as above, but do not quote variable references.
7187 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7188
7189 # Sed substitution to delay expansion of an escaped shell variable in a
7190 # double_quote_subst'ed string.
7191 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7192
7193 # Sed substitution to delay expansion of an escaped single quote.
7194 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7195
7196 # Sed substitution to avoid accidental globbing in evaled expressions
7197 no_glob_subst='s/\*/\\\*/g'
7198
7199 # Global variables:
7200 ofile=libtool
7201 can_build_shared=yes
7202
7203 # All known linkers require a `.a' archive for static linking (except MSVC,
7204 # which needs '.lib').
7205 libext=a
7206
7207 with_gnu_ld="$lt_cv_prog_gnu_ld"
7208
7209 old_CC="$CC"
7210 old_CFLAGS="$CFLAGS"
7211
7212 # Set sane defaults for various variables
7213 test -z "$CC" && CC=cc
7214 test -z "$LTCC" && LTCC=$CC
7215 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7216 test -z "$LD" && LD=ld
7217 test -z "$ac_objext" && ac_objext=o
7218
7219 for cc_temp in $compiler""; do
7220 case $cc_temp in
7221 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7222 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7223 \-*) ;;
7224 *) break;;
7225 esac
7226 done
7227 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7228
7229
7230 # Only perform the check for file, if the check method requires it
7231 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7232 case $deplibs_check_method in
7233 file_magic*)
7234 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7236 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7237 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7238 $as_echo_n "(cached) " >&6
7239 else
7240 case $MAGIC_CMD in
7241 [\\/*] | ?:[\\/]*)
7242 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7243 ;;
7244 *)
7245 lt_save_MAGIC_CMD="$MAGIC_CMD"
7246 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7247 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7248 for ac_dir in $ac_dummy; do
7249 IFS="$lt_save_ifs"
7250 test -z "$ac_dir" && ac_dir=.
7251 if test -f $ac_dir/${ac_tool_prefix}file; then
7252 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7253 if test -n "$file_magic_test_file"; then
7254 case $deplibs_check_method in
7255 "file_magic "*)
7256 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7257 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7258 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7259 $EGREP "$file_magic_regex" > /dev/null; then
7260 :
7261 else
7262 cat <<_LT_EOF 1>&2
7263
7264 *** Warning: the command libtool uses to detect shared libraries,
7265 *** $file_magic_cmd, produces output that libtool cannot recognize.
7266 *** The result is that libtool may fail to recognize shared libraries
7267 *** as such. This will affect the creation of libtool libraries that
7268 *** depend on shared libraries, but programs linked with such libtool
7269 *** libraries will work regardless of this problem. Nevertheless, you
7270 *** may want to report the problem to your system manager and/or to
7271 *** [email protected]
7272
7273 _LT_EOF
7274 fi ;;
7275 esac
7276 fi
7277 break
7278 fi
7279 done
7280 IFS="$lt_save_ifs"
7281 MAGIC_CMD="$lt_save_MAGIC_CMD"
7282 ;;
7283 esac
7284 fi
7285
7286 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7287 if test -n "$MAGIC_CMD"; then
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7289 $as_echo "$MAGIC_CMD" >&6; }
7290 else
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7292 $as_echo "no" >&6; }
7293 fi
7294
7295
7296
7297
7298
7299 if test -z "$lt_cv_path_MAGIC_CMD"; then
7300 if test -n "$ac_tool_prefix"; then
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7302 $as_echo_n "checking for file... " >&6; }
7303 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7304 $as_echo_n "(cached) " >&6
7305 else
7306 case $MAGIC_CMD in
7307 [\\/*] | ?:[\\/]*)
7308 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7309 ;;
7310 *)
7311 lt_save_MAGIC_CMD="$MAGIC_CMD"
7312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7313 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7314 for ac_dir in $ac_dummy; do
7315 IFS="$lt_save_ifs"
7316 test -z "$ac_dir" && ac_dir=.
7317 if test -f $ac_dir/file; then
7318 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7319 if test -n "$file_magic_test_file"; then
7320 case $deplibs_check_method in
7321 "file_magic "*)
7322 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7323 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7324 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7325 $EGREP "$file_magic_regex" > /dev/null; then
7326 :
7327 else
7328 cat <<_LT_EOF 1>&2
7329
7330 *** Warning: the command libtool uses to detect shared libraries,
7331 *** $file_magic_cmd, produces output that libtool cannot recognize.
7332 *** The result is that libtool may fail to recognize shared libraries
7333 *** as such. This will affect the creation of libtool libraries that
7334 *** depend on shared libraries, but programs linked with such libtool
7335 *** libraries will work regardless of this problem. Nevertheless, you
7336 *** may want to report the problem to your system manager and/or to
7337 *** [email protected]
7338
7339 _LT_EOF
7340 fi ;;
7341 esac
7342 fi
7343 break
7344 fi
7345 done
7346 IFS="$lt_save_ifs"
7347 MAGIC_CMD="$lt_save_MAGIC_CMD"
7348 ;;
7349 esac
7350 fi
7351
7352 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7353 if test -n "$MAGIC_CMD"; then
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7355 $as_echo "$MAGIC_CMD" >&6; }
7356 else
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7358 $as_echo "no" >&6; }
7359 fi
7360
7361
7362 else
7363 MAGIC_CMD=:
7364 fi
7365 fi
7366
7367 fi
7368 ;;
7369 esac
7370
7371 # Use C for the default configuration in the libtool script
7372
7373 lt_save_CC="$CC"
7374 ac_ext=c
7375 ac_cpp='$CPP $CPPFLAGS'
7376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7379
7380
7381 # Source file extension for C test sources.
7382 ac_ext=c
7383
7384 # Object file extension for compiled C test sources.
7385 objext=o
7386 objext=$objext
7387
7388 # Code to be used in simple compile tests
7389 lt_simple_compile_test_code="int some_variable = 0;"
7390
7391 # Code to be used in simple link tests
7392 lt_simple_link_test_code='int main(){return(0);}'
7393
7394
7395
7396
7397
7398
7399
7400 # If no C compiler was specified, use CC.
7401 LTCC=${LTCC-"$CC"}
7402
7403 # If no C compiler flags were specified, use CFLAGS.
7404 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7405
7406 # Allow CC to be a program name with arguments.
7407 compiler=$CC
7408
7409 # Save the default compiler, since it gets overwritten when the other
7410 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7411 compiler_DEFAULT=$CC
7412
7413 # save warnings/boilerplate of simple test code
7414 ac_outfile=conftest.$ac_objext
7415 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7416 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7417 _lt_compiler_boilerplate=`cat conftest.err`
7418 $RM conftest*
7419
7420 ac_outfile=conftest.$ac_objext
7421 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7422 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7423 _lt_linker_boilerplate=`cat conftest.err`
7424 $RM -r conftest*
7425
7426
7427 if test -n "$compiler"; then
7428
7429 lt_prog_compiler_no_builtin_flag=
7430
7431 if test "$GCC" = yes; then
7432 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7433
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7435 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7436 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7437 $as_echo_n "(cached) " >&6
7438 else
7439 lt_cv_prog_compiler_rtti_exceptions=no
7440 ac_outfile=conftest.$ac_objext
7441 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7442 lt_compiler_flag="-fno-rtti -fno-exceptions"
7443 # Insert the option either (1) after the last *FLAGS variable, or
7444 # (2) before a word containing "conftest.", or (3) at the end.
7445 # Note that $ac_compile itself does not contain backslashes and begins
7446 # with a dollar sign (not a hyphen), so the echo should work correctly.
7447 # The option is referenced via a variable to avoid confusing sed.
7448 lt_compile=`echo "$ac_compile" | $SED \
7449 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7450 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7451 -e 's:$: $lt_compiler_flag:'`
7452 (eval echo "\"\$as_me:7452: $lt_compile\"" >&5)
7453 (eval "$lt_compile" 2>conftest.err)
7454 ac_status=$?
7455 cat conftest.err >&5
7456 echo "$as_me:7456: \$? = $ac_status" >&5
7457 if (exit $ac_status) && test -s "$ac_outfile"; then
7458 # The compiler can only warn and ignore the option if not recognized
7459 # So say no if there are warnings other than the usual output.
7460 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7461 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7462 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7463 lt_cv_prog_compiler_rtti_exceptions=yes
7464 fi
7465 fi
7466 $RM conftest*
7467
7468 fi
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7470 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7471
7472 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7473 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7474 else
7475 :
7476 fi
7477
7478 fi
7479
7480
7481
7482
7483
7484
7485 lt_prog_compiler_wl=
7486 lt_prog_compiler_pic=
7487 lt_prog_compiler_static=
7488
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7490 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7491
7492 if test "$GCC" = yes; then
7493 lt_prog_compiler_wl='-Wl,'
7494 lt_prog_compiler_static='-static'
7495
7496 case $host_os in
7497 aix*)
7498 # All AIX code is PIC.
7499 if test "$host_cpu" = ia64; then
7500 # AIX 5 now supports IA64 processor
7501 lt_prog_compiler_static='-Bstatic'
7502 fi
7503 ;;
7504
7505 amigaos*)
7506 case $host_cpu in
7507 powerpc)
7508 # see comment about AmigaOS4 .so support
7509 lt_prog_compiler_pic='-fPIC'
7510 ;;
7511 m68k)
7512 # FIXME: we need at least 68020 code to build shared libraries, but
7513 # adding the `-m68020' flag to GCC prevents building anything better,
7514 # like `-m68040'.
7515 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7516 ;;
7517 esac
7518 ;;
7519
7520 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7521 # PIC is the default for these OSes.
7522 ;;
7523
7524 mingw* | cygwin* | pw32* | os2* | cegcc*)
7525 # This hack is so that the source file can tell whether it is being
7526 # built for inclusion in a dll (and should export symbols for example).
7527 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7528 # (--disable-auto-import) libraries
7529 lt_prog_compiler_pic='-DDLL_EXPORT'
7530 ;;
7531
7532 darwin* | rhapsody*)
7533 # PIC is the default on this platform
7534 # Common symbols not allowed in MH_DYLIB files
7535 lt_prog_compiler_pic='-fno-common'
7536 ;;
7537
7538 hpux*)
7539 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7540 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7541 # sets the default TLS model and affects inlining.
7542 case $host_cpu in
7543 hppa*64*)
7544 # +Z the default
7545 ;;
7546 *)
7547 lt_prog_compiler_pic='-fPIC'
7548 ;;
7549 esac
7550 ;;
7551
7552 interix[3-9]*)
7553 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7554 # Instead, we relocate shared libraries at runtime.
7555 ;;
7556
7557 msdosdjgpp*)
7558 # Just because we use GCC doesn't mean we suddenly get shared libraries
7559 # on systems that don't support them.
7560 lt_prog_compiler_can_build_shared=no
7561 enable_shared=no
7562 ;;
7563
7564 *nto* | *qnx*)
7565 # QNX uses GNU C++, but need to define -shared option too, otherwise
7566 # it will coredump.
7567 lt_prog_compiler_pic='-fPIC -shared'
7568 ;;
7569
7570 sysv4*MP*)
7571 if test -d /usr/nec; then
7572 lt_prog_compiler_pic=-Kconform_pic
7573 fi
7574 ;;
7575
7576 *)
7577 lt_prog_compiler_pic='-fPIC'
7578 ;;
7579 esac
7580 else
7581 # PORTME Check for flag to pass linker flags through the system compiler.
7582 case $host_os in
7583 aix*)
7584 lt_prog_compiler_wl='-Wl,'
7585 if test "$host_cpu" = ia64; then
7586 # AIX 5 now supports IA64 processor
7587 lt_prog_compiler_static='-Bstatic'
7588 else
7589 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7590 fi
7591 ;;
7592
7593 mingw* | cygwin* | pw32* | os2* | cegcc*)
7594 # This hack is so that the source file can tell whether it is being
7595 # built for inclusion in a dll (and should export symbols for example).
7596 lt_prog_compiler_pic='-DDLL_EXPORT'
7597 ;;
7598
7599 hpux9* | hpux10* | hpux11*)
7600 lt_prog_compiler_wl='-Wl,'
7601 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7602 # not for PA HP-UX.
7603 case $host_cpu in
7604 hppa*64*|ia64*)
7605 # +Z the default
7606 ;;
7607 *)
7608 lt_prog_compiler_pic='+Z'
7609 ;;
7610 esac
7611 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7612 lt_prog_compiler_static='${wl}-a ${wl}archive'
7613 ;;
7614
7615 irix5* | irix6* | nonstopux*)
7616 lt_prog_compiler_wl='-Wl,'
7617 # PIC (with -KPIC) is the default.
7618 lt_prog_compiler_static='-non_shared'
7619 ;;
7620
7621 linux* | k*bsd*-gnu)
7622 case $cc_basename in
7623 # old Intel for x86_64 which still supported -KPIC.
7624 ecc*)
7625 lt_prog_compiler_wl='-Wl,'
7626 lt_prog_compiler_pic='-KPIC'
7627 lt_prog_compiler_static='-static'
7628 ;;
7629 # icc used to be incompatible with GCC.
7630 # ICC 10 doesn't accept -KPIC any more.
7631 icc* | ifort*)
7632 lt_prog_compiler_wl='-Wl,'
7633 lt_prog_compiler_pic='-fPIC'
7634 lt_prog_compiler_static='-static'
7635 ;;
7636 # Lahey Fortran 8.1.
7637 lf95*)
7638 lt_prog_compiler_wl='-Wl,'
7639 lt_prog_compiler_pic='--shared'
7640 lt_prog_compiler_static='--static'
7641 ;;
7642 pgcc* | pgf77* | pgf90* | pgf95*)
7643 # Portland Group compilers (*not* the Pentium gcc compiler,
7644 # which looks to be a dead project)
7645 lt_prog_compiler_wl='-Wl,'
7646 lt_prog_compiler_pic='-fpic'
7647 lt_prog_compiler_static='-Bstatic'
7648 ;;
7649 ccc*)
7650 lt_prog_compiler_wl='-Wl,'
7651 # All Alpha code is PIC.
7652 lt_prog_compiler_static='-non_shared'
7653 ;;
7654 xl*)
7655 # IBM XL C 8.0/Fortran 10.1 on PPC
7656 lt_prog_compiler_wl='-Wl,'
7657 lt_prog_compiler_pic='-qpic'
7658 lt_prog_compiler_static='-qstaticlink'
7659 ;;
7660 *)
7661 case `$CC -V 2>&1 | sed 5q` in
7662 *Sun\ C*)
7663 # Sun C 5.9
7664 lt_prog_compiler_pic='-KPIC'
7665 lt_prog_compiler_static='-Bstatic'
7666 lt_prog_compiler_wl='-Wl,'
7667 ;;
7668 *Sun\ F*)
7669 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7670 lt_prog_compiler_pic='-KPIC'
7671 lt_prog_compiler_static='-Bstatic'
7672 lt_prog_compiler_wl=''
7673 ;;
7674 esac
7675 ;;
7676 esac
7677 ;;
7678
7679 newsos6)
7680 lt_prog_compiler_pic='-KPIC'
7681 lt_prog_compiler_static='-Bstatic'
7682 ;;
7683
7684 *nto* | *qnx*)
7685 # QNX uses GNU C++, but need to define -shared option too, otherwise
7686 # it will coredump.
7687 lt_prog_compiler_pic='-fPIC -shared'
7688 ;;
7689
7690 osf3* | osf4* | osf5*)
7691 lt_prog_compiler_wl='-Wl,'
7692 # All OSF/1 code is PIC.
7693 lt_prog_compiler_static='-non_shared'
7694 ;;
7695
7696 rdos*)
7697 lt_prog_compiler_static='-non_shared'
7698 ;;
7699
7700 solaris*)
7701 lt_prog_compiler_pic='-KPIC'
7702 lt_prog_compiler_static='-Bstatic'
7703 case $cc_basename in
7704 f77* | f90* | f95*)
7705 lt_prog_compiler_wl='-Qoption ld ';;
7706 *)
7707 lt_prog_compiler_wl='-Wl,';;
7708 esac
7709 ;;
7710
7711 sunos4*)
7712 lt_prog_compiler_wl='-Qoption ld '
7713 lt_prog_compiler_pic='-PIC'
7714 lt_prog_compiler_static='-Bstatic'
7715 ;;
7716
7717 sysv4 | sysv4.2uw2* | sysv4.3*)
7718 lt_prog_compiler_wl='-Wl,'
7719 lt_prog_compiler_pic='-KPIC'
7720 lt_prog_compiler_static='-Bstatic'
7721 ;;
7722
7723 sysv4*MP*)
7724 if test -d /usr/nec ;then
7725 lt_prog_compiler_pic='-Kconform_pic'
7726 lt_prog_compiler_static='-Bstatic'
7727 fi
7728 ;;
7729
7730 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7731 lt_prog_compiler_wl='-Wl,'
7732 lt_prog_compiler_pic='-KPIC'
7733 lt_prog_compiler_static='-Bstatic'
7734 ;;
7735
7736 unicos*)
7737 lt_prog_compiler_wl='-Wl,'
7738 lt_prog_compiler_can_build_shared=no
7739 ;;
7740
7741 uts4*)
7742 lt_prog_compiler_pic='-pic'
7743 lt_prog_compiler_static='-Bstatic'
7744 ;;
7745
7746 *)
7747 lt_prog_compiler_can_build_shared=no
7748 ;;
7749 esac
7750 fi
7751
7752 case $host_os in
7753 # For platforms which do not support PIC, -DPIC is meaningless:
7754 *djgpp*)
7755 lt_prog_compiler_pic=
7756 ;;
7757 *)
7758 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7759 ;;
7760 esac
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7762 $as_echo "$lt_prog_compiler_pic" >&6; }
7763
7764
7765
7766
7767
7768
7769 #
7770 # Check to make sure the PIC flag actually works.
7771 #
7772 if test -n "$lt_prog_compiler_pic"; then
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7774 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7775 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7776 $as_echo_n "(cached) " >&6
7777 else
7778 lt_cv_prog_compiler_pic_works=no
7779 ac_outfile=conftest.$ac_objext
7780 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7781 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7782 # Insert the option either (1) after the last *FLAGS variable, or
7783 # (2) before a word containing "conftest.", or (3) at the end.
7784 # Note that $ac_compile itself does not contain backslashes and begins
7785 # with a dollar sign (not a hyphen), so the echo should work correctly.
7786 # The option is referenced via a variable to avoid confusing sed.
7787 lt_compile=`echo "$ac_compile" | $SED \
7788 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7789 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7790 -e 's:$: $lt_compiler_flag:'`
7791 (eval echo "\"\$as_me:7791: $lt_compile\"" >&5)
7792 (eval "$lt_compile" 2>conftest.err)
7793 ac_status=$?
7794 cat conftest.err >&5
7795 echo "$as_me:7795: \$? = $ac_status" >&5
7796 if (exit $ac_status) && test -s "$ac_outfile"; then
7797 # The compiler can only warn and ignore the option if not recognized
7798 # So say no if there are warnings other than the usual output.
7799 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7800 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7801 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7802 lt_cv_prog_compiler_pic_works=yes
7803 fi
7804 fi
7805 $RM conftest*
7806
7807 fi
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7809 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7810
7811 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7812 case $lt_prog_compiler_pic in
7813 "" | " "*) ;;
7814 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7815 esac
7816 else
7817 lt_prog_compiler_pic=
7818 lt_prog_compiler_can_build_shared=no
7819 fi
7820
7821 fi
7822
7823
7824
7825
7826
7827
7828 #
7829 # Check to make sure the static flag actually works.
7830 #
7831 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7833 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7834 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7835 $as_echo_n "(cached) " >&6
7836 else
7837 lt_cv_prog_compiler_static_works=no
7838 save_LDFLAGS="$LDFLAGS"
7839 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7840 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7841 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7842 # The linker can only warn and ignore the option if not recognized
7843 # So say no if there are warnings
7844 if test -s conftest.err; then
7845 # Append any errors to the config.log.
7846 cat conftest.err 1>&5
7847 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7848 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7849 if diff conftest.exp conftest.er2 >/dev/null; then
7850 lt_cv_prog_compiler_static_works=yes
7851 fi
7852 else
7853 lt_cv_prog_compiler_static_works=yes
7854 fi
7855 fi
7856 $RM -r conftest*
7857 LDFLAGS="$save_LDFLAGS"
7858
7859 fi
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7861 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7862
7863 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7864 :
7865 else
7866 lt_prog_compiler_static=
7867 fi
7868
7869
7870
7871
7872
7873
7874
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7876 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7877 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7878 $as_echo_n "(cached) " >&6
7879 else
7880 lt_cv_prog_compiler_c_o=no
7881 $RM -r conftest 2>/dev/null
7882 mkdir conftest
7883 cd conftest
7884 mkdir out
7885 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7886
7887 lt_compiler_flag="-o out/conftest2.$ac_objext"
7888 # Insert the option either (1) after the last *FLAGS variable, or
7889 # (2) before a word containing "conftest.", or (3) at the end.
7890 # Note that $ac_compile itself does not contain backslashes and begins
7891 # with a dollar sign (not a hyphen), so the echo should work correctly.
7892 lt_compile=`echo "$ac_compile" | $SED \
7893 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7895 -e 's:$: $lt_compiler_flag:'`
7896 (eval echo "\"\$as_me:7896: $lt_compile\"" >&5)
7897 (eval "$lt_compile" 2>out/conftest.err)
7898 ac_status=$?
7899 cat out/conftest.err >&5
7900 echo "$as_me:7900: \$? = $ac_status" >&5
7901 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7902 then
7903 # The compiler can only warn and ignore the option if not recognized
7904 # So say no if there are warnings
7905 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7906 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7907 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7908 lt_cv_prog_compiler_c_o=yes
7909 fi
7910 fi
7911 chmod u+w . 2>&5
7912 $RM conftest*
7913 # SGI C++ compiler will create directory out/ii_files/ for
7914 # template instantiation
7915 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7916 $RM out/* && rmdir out
7917 cd ..
7918 $RM -r conftest
7919 $RM conftest*
7920
7921 fi
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7923 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7924
7925
7926
7927
7928
7929
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7931 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7932 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7933 $as_echo_n "(cached) " >&6
7934 else
7935 lt_cv_prog_compiler_c_o=no
7936 $RM -r conftest 2>/dev/null
7937 mkdir conftest
7938 cd conftest
7939 mkdir out
7940 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7941
7942 lt_compiler_flag="-o out/conftest2.$ac_objext"
7943 # Insert the option either (1) after the last *FLAGS variable, or
7944 # (2) before a word containing "conftest.", or (3) at the end.
7945 # Note that $ac_compile itself does not contain backslashes and begins
7946 # with a dollar sign (not a hyphen), so the echo should work correctly.
7947 lt_compile=`echo "$ac_compile" | $SED \
7948 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7949 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7950 -e 's:$: $lt_compiler_flag:'`
7951 (eval echo "\"\$as_me:7951: $lt_compile\"" >&5)
7952 (eval "$lt_compile" 2>out/conftest.err)
7953 ac_status=$?
7954 cat out/conftest.err >&5
7955 echo "$as_me:7955: \$? = $ac_status" >&5
7956 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7957 then
7958 # The compiler can only warn and ignore the option if not recognized
7959 # So say no if there are warnings
7960 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7961 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7962 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7963 lt_cv_prog_compiler_c_o=yes
7964 fi
7965 fi
7966 chmod u+w . 2>&5
7967 $RM conftest*
7968 # SGI C++ compiler will create directory out/ii_files/ for
7969 # template instantiation
7970 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7971 $RM out/* && rmdir out
7972 cd ..
7973 $RM -r conftest
7974 $RM conftest*
7975
7976 fi
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7978 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7979
7980
7981
7982
7983 hard_links="nottested"
7984 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7985 # do not overwrite the value of need_locks provided by the user
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7987 $as_echo_n "checking if we can lock with hard links... " >&6; }
7988 hard_links=yes
7989 $RM conftest*
7990 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7991 touch conftest.a
7992 ln conftest.a conftest.b 2>&5 || hard_links=no
7993 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7995 $as_echo "$hard_links" >&6; }
7996 if test "$hard_links" = no; then
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7998 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7999 need_locks=warn
8000 fi
8001 else
8002 need_locks=no
8003 fi
8004
8005
8006
8007
8008
8009
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8011 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8012
8013 runpath_var=
8014 allow_undefined_flag=
8015 always_export_symbols=no
8016 archive_cmds=
8017 archive_expsym_cmds=
8018 compiler_needs_object=no
8019 enable_shared_with_static_runtimes=no
8020 export_dynamic_flag_spec=
8021 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8022 hardcode_automatic=no
8023 hardcode_direct=no
8024 hardcode_direct_absolute=no
8025 hardcode_libdir_flag_spec=
8026 hardcode_libdir_flag_spec_ld=
8027 hardcode_libdir_separator=
8028 hardcode_minus_L=no
8029 hardcode_shlibpath_var=unsupported
8030 inherit_rpath=no
8031 link_all_deplibs=unknown
8032 module_cmds=
8033 module_expsym_cmds=
8034 old_archive_from_new_cmds=
8035 old_archive_from_expsyms_cmds=
8036 thread_safe_flag_spec=
8037 whole_archive_flag_spec=
8038 # include_expsyms should be a list of space-separated symbols to be *always*
8039 # included in the symbol list
8040 include_expsyms=
8041 # exclude_expsyms can be an extended regexp of symbols to exclude
8042 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8043 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8044 # as well as any symbol that contains `d'.
8045 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8046 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8047 # platforms (ab)use it in PIC code, but their linkers get confused if
8048 # the symbol is explicitly referenced. Since portable code cannot
8049 # rely on this symbol name, it's probably fine to never include it in
8050 # preloaded symbol tables.
8051 # Exclude shared library initialization/finalization symbols.
8052 extract_expsyms_cmds=
8053
8054 case $host_os in
8055 cygwin* | mingw* | pw32* | cegcc*)
8056 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8057 # When not using gcc, we currently assume that we are using
8058 # Microsoft Visual C++.
8059 if test "$GCC" != yes; then
8060 with_gnu_ld=no
8061 fi
8062 ;;
8063 interix*)
8064 # we just hope/assume this is gcc and not c89 (= MSVC++)
8065 with_gnu_ld=yes
8066 ;;
8067 openbsd*)
8068 with_gnu_ld=no
8069 ;;
8070 esac
8071
8072 ld_shlibs=yes
8073 if test "$with_gnu_ld" = yes; then
8074 # If archive_cmds runs LD, not CC, wlarc should be empty
8075 wlarc='${wl}'
8076
8077 # Set some defaults for GNU ld with shared library support. These
8078 # are reset later if shared libraries are not supported. Putting them
8079 # here allows them to be overridden if necessary.
8080 runpath_var=LD_RUN_PATH
8081 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8082 export_dynamic_flag_spec='${wl}--export-dynamic'
8083 # ancient GNU ld didn't support --whole-archive et. al.
8084 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8085 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8086 else
8087 whole_archive_flag_spec=
8088 fi
8089 supports_anon_versioning=no
8090 case `$LD -v 2>&1` in
8091 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8092 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8093 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8094 *\ 2.11.*) ;; # other 2.11 versions
8095 *) supports_anon_versioning=yes ;;
8096 esac
8097
8098 # See if GNU ld supports shared libraries.
8099 case $host_os in
8100 aix[3-9]*)
8101 # On AIX/PPC, the GNU linker is very broken
8102 if test "$host_cpu" != ia64; then
8103 ld_shlibs=no
8104 cat <<_LT_EOF 1>&2
8105
8106 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8107 *** to be unable to reliably create shared libraries on AIX.
8108 *** Therefore, libtool is disabling shared libraries support. If you
8109 *** really care for shared libraries, you may want to modify your PATH
8110 *** so that a non-GNU linker is found, and then restart.
8111
8112 _LT_EOF
8113 fi
8114 ;;
8115
8116 amigaos*)
8117 case $host_cpu in
8118 powerpc)
8119 # see comment about AmigaOS4 .so support
8120 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8121 archive_expsym_cmds=''
8122 ;;
8123 m68k)
8124 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)'
8125 hardcode_libdir_flag_spec='-L$libdir'
8126 hardcode_minus_L=yes
8127 ;;
8128 esac
8129 ;;
8130
8131 beos*)
8132 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8133 allow_undefined_flag=unsupported
8134 # Joseph Beckenbach <[email protected]> says some releases of gcc
8135 # support --undefined. This deserves some investigation. FIXME
8136 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8137 else
8138 ld_shlibs=no
8139 fi
8140 ;;
8141
8142 cygwin* | mingw* | pw32* | cegcc*)
8143 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8144 # as there is no search path for DLLs.
8145 hardcode_libdir_flag_spec='-L$libdir'
8146 allow_undefined_flag=unsupported
8147 always_export_symbols=no
8148 enable_shared_with_static_runtimes=yes
8149 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8150
8151 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8152 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8153 # If the export-symbols file already is a .def file (1st line
8154 # is EXPORTS), use it as is; otherwise, prepend...
8155 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8156 cp $export_symbols $output_objdir/$soname.def;
8157 else
8158 echo EXPORTS > $output_objdir/$soname.def;
8159 cat $export_symbols >> $output_objdir/$soname.def;
8160 fi~
8161 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8162 else
8163 ld_shlibs=no
8164 fi
8165 ;;
8166
8167 interix[3-9]*)
8168 hardcode_direct=no
8169 hardcode_shlibpath_var=no
8170 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8171 export_dynamic_flag_spec='${wl}-E'
8172 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8173 # Instead, shared libraries are loaded at an image base (0x10000000 by
8174 # default) and relocated if they conflict, which is a slow very memory
8175 # consuming and fragmenting process. To avoid this, we pick a random,
8176 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8177 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8178 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8179 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'
8180 ;;
8181
8182 gnu* | linux* | tpf* | k*bsd*-gnu)
8183 tmp_diet=no
8184 if test "$host_os" = linux-dietlibc; then
8185 case $cc_basename in
8186 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8187 esac
8188 fi
8189 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8190 && test "$tmp_diet" = no
8191 then
8192 tmp_addflag=
8193 tmp_sharedflag='-shared'
8194 case $cc_basename,$host_cpu in
8195 pgcc*) # Portland Group C compiler
8196 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8197 tmp_addflag=' $pic_flag'
8198 ;;
8199 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8200 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8201 tmp_addflag=' $pic_flag -Mnomain' ;;
8202 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8203 tmp_addflag=' -i_dynamic' ;;
8204 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8205 tmp_addflag=' -i_dynamic -nofor_main' ;;
8206 ifc* | ifort*) # Intel Fortran compiler
8207 tmp_addflag=' -nofor_main' ;;
8208 lf95*) # Lahey Fortran 8.1
8209 whole_archive_flag_spec=
8210 tmp_sharedflag='--shared' ;;
8211 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8212 tmp_sharedflag='-qmkshrobj'
8213 tmp_addflag= ;;
8214 esac
8215 case `$CC -V 2>&1 | sed 5q` in
8216 *Sun\ C*) # Sun C 5.9
8217 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8218 compiler_needs_object=yes
8219 tmp_sharedflag='-G' ;;
8220 *Sun\ F*) # Sun Fortran 8.3
8221 tmp_sharedflag='-G' ;;
8222 esac
8223 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8224
8225 if test "x$supports_anon_versioning" = xyes; then
8226 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8227 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8228 echo "local: *; };" >> $output_objdir/$libname.ver~
8229 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8230 fi
8231
8232 case $cc_basename in
8233 xlf*)
8234 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8235 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8236 hardcode_libdir_flag_spec=
8237 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8238 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8239 if test "x$supports_anon_versioning" = xyes; then
8240 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8241 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8242 echo "local: *; };" >> $output_objdir/$libname.ver~
8243 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8244 fi
8245 ;;
8246 esac
8247 else
8248 ld_shlibs=no
8249 fi
8250 ;;
8251
8252 netbsd*)
8253 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8254 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8255 wlarc=
8256 else
8257 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8258 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8259 fi
8260 ;;
8261
8262 solaris*)
8263 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8264 ld_shlibs=no
8265 cat <<_LT_EOF 1>&2
8266
8267 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8268 *** create shared libraries on Solaris systems. Therefore, libtool
8269 *** is disabling shared libraries support. We urge you to upgrade GNU
8270 *** binutils to release 2.9.1 or newer. Another option is to modify
8271 *** your PATH or compiler configuration so that the native linker is
8272 *** used, and then restart.
8273
8274 _LT_EOF
8275 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8276 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8277 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8278 else
8279 ld_shlibs=no
8280 fi
8281 ;;
8282
8283 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8284 case `$LD -v 2>&1` in
8285 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8286 ld_shlibs=no
8287 cat <<_LT_EOF 1>&2
8288
8289 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8290 *** reliably create shared libraries on SCO systems. Therefore, libtool
8291 *** is disabling shared libraries support. We urge you to upgrade GNU
8292 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8293 *** your PATH or compiler configuration so that the native linker is
8294 *** used, and then restart.
8295
8296 _LT_EOF
8297 ;;
8298 *)
8299 # For security reasons, it is highly recommended that you always
8300 # use absolute paths for naming shared libraries, and exclude the
8301 # DT_RUNPATH tag from executables and libraries. But doing so
8302 # requires that you compile everything twice, which is a pain.
8303 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8304 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8306 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8307 else
8308 ld_shlibs=no
8309 fi
8310 ;;
8311 esac
8312 ;;
8313
8314 sunos4*)
8315 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8316 wlarc=
8317 hardcode_direct=yes
8318 hardcode_shlibpath_var=no
8319 ;;
8320
8321 *)
8322 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8323 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8324 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8325 else
8326 ld_shlibs=no
8327 fi
8328 ;;
8329 esac
8330
8331 if test "$ld_shlibs" = no; then
8332 runpath_var=
8333 hardcode_libdir_flag_spec=
8334 export_dynamic_flag_spec=
8335 whole_archive_flag_spec=
8336 fi
8337 else
8338 # PORTME fill in a description of your system's linker (not GNU ld)
8339 case $host_os in
8340 aix3*)
8341 allow_undefined_flag=unsupported
8342 always_export_symbols=yes
8343 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'
8344 # Note: this linker hardcodes the directories in LIBPATH if there
8345 # are no directories specified by -L.
8346 hardcode_minus_L=yes
8347 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8348 # Neither direct hardcoding nor static linking is supported with a
8349 # broken collect2.
8350 hardcode_direct=unsupported
8351 fi
8352 ;;
8353
8354 aix[4-9]*)
8355 if test "$host_cpu" = ia64; then
8356 # On IA64, the linker does run time linking by default, so we don't
8357 # have to do anything special.
8358 aix_use_runtimelinking=no
8359 exp_sym_flag='-Bexport'
8360 no_entry_flag=""
8361 else
8362 # If we're using GNU nm, then we don't want the "-C" option.
8363 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8364 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8365 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8366 else
8367 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8368 fi
8369 aix_use_runtimelinking=no
8370
8371 # Test if we are trying to use run time linking or normal
8372 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8373 # need to do runtime linking.
8374 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8375 for ld_flag in $LDFLAGS; do
8376 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8377 aix_use_runtimelinking=yes
8378 break
8379 fi
8380 done
8381 ;;
8382 esac
8383
8384 exp_sym_flag='-bexport'
8385 no_entry_flag='-bnoentry'
8386 fi
8387
8388 # When large executables or shared objects are built, AIX ld can
8389 # have problems creating the table of contents. If linking a library
8390 # or program results in "error TOC overflow" add -mminimal-toc to
8391 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8392 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8393
8394 archive_cmds=''
8395 hardcode_direct=yes
8396 hardcode_direct_absolute=yes
8397 hardcode_libdir_separator=':'
8398 link_all_deplibs=yes
8399 file_list_spec='${wl}-f,'
8400
8401 if test "$GCC" = yes; then
8402 case $host_os in aix4.[012]|aix4.[012].*)
8403 # We only want to do this on AIX 4.2 and lower, the check
8404 # below for broken collect2 doesn't work under 4.3+
8405 collect2name=`${CC} -print-prog-name=collect2`
8406 if test -f "$collect2name" &&
8407 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8408 then
8409 # We have reworked collect2
8410 :
8411 else
8412 # We have old collect2
8413 hardcode_direct=unsupported
8414 # It fails to find uninstalled libraries when the uninstalled
8415 # path is not listed in the libpath. Setting hardcode_minus_L
8416 # to unsupported forces relinking
8417 hardcode_minus_L=yes
8418 hardcode_libdir_flag_spec='-L$libdir'
8419 hardcode_libdir_separator=
8420 fi
8421 ;;
8422 esac
8423 shared_flag='-shared'
8424 if test "$aix_use_runtimelinking" = yes; then
8425 shared_flag="$shared_flag "'${wl}-G'
8426 fi
8427 else
8428 # not using gcc
8429 if test "$host_cpu" = ia64; then
8430 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8431 # chokes on -Wl,-G. The following line is correct:
8432 shared_flag='-G'
8433 else
8434 if test "$aix_use_runtimelinking" = yes; then
8435 shared_flag='${wl}-G'
8436 else
8437 shared_flag='${wl}-bM:SRE'
8438 fi
8439 fi
8440 fi
8441
8442 export_dynamic_flag_spec='${wl}-bexpall'
8443 # It seems that -bexpall does not export symbols beginning with
8444 # underscore (_), so it is better to generate a list of symbols to export.
8445 always_export_symbols=yes
8446 if test "$aix_use_runtimelinking" = yes; then
8447 # Warning - without using the other runtime loading flags (-brtl),
8448 # -berok will link without error, but may produce a broken library.
8449 allow_undefined_flag='-berok'
8450 # Determine the default libpath from the value encoded in an
8451 # empty executable.
8452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453 /* end confdefs.h. */
8454
8455 int
8456 main ()
8457 {
8458
8459 ;
8460 return 0;
8461 }
8462 _ACEOF
8463 if ac_fn_c_try_link "$LINENO"; then :
8464
8465 lt_aix_libpath_sed='
8466 /Import File Strings/,/^$/ {
8467 /^0/ {
8468 s/^0 *\(.*\)$/\1/
8469 p
8470 }
8471 }'
8472 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8473 # Check for a 64-bit object if we didn't find anything.
8474 if test -z "$aix_libpath"; then
8475 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8476 fi
8477 fi
8478 rm -f core conftest.err conftest.$ac_objext \
8479 conftest$ac_exeext conftest.$ac_ext
8480 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8481
8482 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8483 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8484 else
8485 if test "$host_cpu" = ia64; then
8486 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8487 allow_undefined_flag="-z nodefs"
8488 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"
8489 else
8490 # Determine the default libpath from the value encoded in an
8491 # empty executable.
8492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8493 /* end confdefs.h. */
8494
8495 int
8496 main ()
8497 {
8498
8499 ;
8500 return 0;
8501 }
8502 _ACEOF
8503 if ac_fn_c_try_link "$LINENO"; then :
8504
8505 lt_aix_libpath_sed='
8506 /Import File Strings/,/^$/ {
8507 /^0/ {
8508 s/^0 *\(.*\)$/\1/
8509 p
8510 }
8511 }'
8512 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8513 # Check for a 64-bit object if we didn't find anything.
8514 if test -z "$aix_libpath"; then
8515 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8516 fi
8517 fi
8518 rm -f core conftest.err conftest.$ac_objext \
8519 conftest$ac_exeext conftest.$ac_ext
8520 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8521
8522 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8523 # Warning - without using the other run time loading flags,
8524 # -berok will link without error, but may produce a broken library.
8525 no_undefined_flag=' ${wl}-bernotok'
8526 allow_undefined_flag=' ${wl}-berok'
8527 # Exported symbols can be pulled into shared objects from archives
8528 whole_archive_flag_spec='$convenience'
8529 archive_cmds_need_lc=yes
8530 # This is similar to how AIX traditionally builds its shared libraries.
8531 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8532 fi
8533 fi
8534 ;;
8535
8536 amigaos*)
8537 case $host_cpu in
8538 powerpc)
8539 # see comment about AmigaOS4 .so support
8540 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8541 archive_expsym_cmds=''
8542 ;;
8543 m68k)
8544 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)'
8545 hardcode_libdir_flag_spec='-L$libdir'
8546 hardcode_minus_L=yes
8547 ;;
8548 esac
8549 ;;
8550
8551 bsdi[45]*)
8552 export_dynamic_flag_spec=-rdynamic
8553 ;;
8554
8555 cygwin* | mingw* | pw32* | cegcc*)
8556 # When not using gcc, we currently assume that we are using
8557 # Microsoft Visual C++.
8558 # hardcode_libdir_flag_spec is actually meaningless, as there is
8559 # no search path for DLLs.
8560 hardcode_libdir_flag_spec=' '
8561 allow_undefined_flag=unsupported
8562 # Tell ltmain to make .lib files, not .a files.
8563 libext=lib
8564 # Tell ltmain to make .dll files, not .so files.
8565 shrext_cmds=".dll"
8566 # FIXME: Setting linknames here is a bad hack.
8567 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8568 # The linker will automatically build a .lib file if we build a DLL.
8569 old_archive_from_new_cmds='true'
8570 # FIXME: Should let the user specify the lib program.
8571 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8572 fix_srcfile_path='`cygpath -w "$srcfile"`'
8573 enable_shared_with_static_runtimes=yes
8574 ;;
8575
8576 darwin* | rhapsody*)
8577
8578
8579 archive_cmds_need_lc=no
8580 hardcode_direct=no
8581 hardcode_automatic=yes
8582 hardcode_shlibpath_var=unsupported
8583 whole_archive_flag_spec=''
8584 link_all_deplibs=yes
8585 allow_undefined_flag="$_lt_dar_allow_undefined"
8586 case $cc_basename in
8587 ifort*) _lt_dar_can_shared=yes ;;
8588 *) _lt_dar_can_shared=$GCC ;;
8589 esac
8590 if test "$_lt_dar_can_shared" = "yes"; then
8591 output_verbose_link_cmd=echo
8592 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8593 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8594 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}"
8595 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}"
8596
8597 else
8598 ld_shlibs=no
8599 fi
8600
8601 ;;
8602
8603 dgux*)
8604 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8605 hardcode_libdir_flag_spec='-L$libdir'
8606 hardcode_shlibpath_var=no
8607 ;;
8608
8609 freebsd1*)
8610 ld_shlibs=no
8611 ;;
8612
8613 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8614 # support. Future versions do this automatically, but an explicit c++rt0.o
8615 # does not break anything, and helps significantly (at the cost of a little
8616 # extra space).
8617 freebsd2.2*)
8618 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8619 hardcode_libdir_flag_spec='-R$libdir'
8620 hardcode_direct=yes
8621 hardcode_shlibpath_var=no
8622 ;;
8623
8624 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8625 freebsd2*)
8626 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8627 hardcode_direct=yes
8628 hardcode_minus_L=yes
8629 hardcode_shlibpath_var=no
8630 ;;
8631
8632 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8633 freebsd* | dragonfly*)
8634 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8635 hardcode_libdir_flag_spec='-R$libdir'
8636 hardcode_direct=yes
8637 hardcode_shlibpath_var=no
8638 ;;
8639
8640 hpux9*)
8641 if test "$GCC" = yes; then
8642 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8643 else
8644 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8645 fi
8646 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8647 hardcode_libdir_separator=:
8648 hardcode_direct=yes
8649
8650 # hardcode_minus_L: Not really in the search PATH,
8651 # but as the default location of the library.
8652 hardcode_minus_L=yes
8653 export_dynamic_flag_spec='${wl}-E'
8654 ;;
8655
8656 hpux10*)
8657 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8658 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8659 else
8660 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8661 fi
8662 if test "$with_gnu_ld" = no; then
8663 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8664 hardcode_libdir_flag_spec_ld='+b $libdir'
8665 hardcode_libdir_separator=:
8666 hardcode_direct=yes
8667 hardcode_direct_absolute=yes
8668 export_dynamic_flag_spec='${wl}-E'
8669 # hardcode_minus_L: Not really in the search PATH,
8670 # but as the default location of the library.
8671 hardcode_minus_L=yes
8672 fi
8673 ;;
8674
8675 hpux11*)
8676 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8677 case $host_cpu in
8678 hppa*64*)
8679 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8680 ;;
8681 ia64*)
8682 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8683 ;;
8684 *)
8685 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8686 ;;
8687 esac
8688 else
8689 case $host_cpu in
8690 hppa*64*)
8691 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8692 ;;
8693 ia64*)
8694 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8695 ;;
8696 *)
8697 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8698 ;;
8699 esac
8700 fi
8701 if test "$with_gnu_ld" = no; then
8702 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8703 hardcode_libdir_separator=:
8704
8705 case $host_cpu in
8706 hppa*64*|ia64*)
8707 hardcode_direct=no
8708 hardcode_shlibpath_var=no
8709 ;;
8710 *)
8711 hardcode_direct=yes
8712 hardcode_direct_absolute=yes
8713 export_dynamic_flag_spec='${wl}-E'
8714
8715 # hardcode_minus_L: Not really in the search PATH,
8716 # but as the default location of the library.
8717 hardcode_minus_L=yes
8718 ;;
8719 esac
8720 fi
8721 ;;
8722
8723 irix5* | irix6* | nonstopux*)
8724 if test "$GCC" = yes; then
8725 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8726 # Try to use the -exported_symbol ld option, if it does not
8727 # work, assume that -exports_file does not work either and
8728 # implicitly export all symbols.
8729 save_LDFLAGS="$LDFLAGS"
8730 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732 /* end confdefs.h. */
8733 int foo(void) {}
8734 _ACEOF
8735 if ac_fn_c_try_link "$LINENO"; then :
8736 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8737
8738 fi
8739 rm -f core conftest.err conftest.$ac_objext \
8740 conftest$ac_exeext conftest.$ac_ext
8741 LDFLAGS="$save_LDFLAGS"
8742 else
8743 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8744 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8745 fi
8746 archive_cmds_need_lc='no'
8747 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8748 hardcode_libdir_separator=:
8749 inherit_rpath=yes
8750 link_all_deplibs=yes
8751 ;;
8752
8753 netbsd*)
8754 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8755 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8756 else
8757 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8758 fi
8759 hardcode_libdir_flag_spec='-R$libdir'
8760 hardcode_direct=yes
8761 hardcode_shlibpath_var=no
8762 ;;
8763
8764 newsos6)
8765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8766 hardcode_direct=yes
8767 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8768 hardcode_libdir_separator=:
8769 hardcode_shlibpath_var=no
8770 ;;
8771
8772 *nto* | *qnx*)
8773 ;;
8774
8775 openbsd*)
8776 if test -f /usr/libexec/ld.so; then
8777 hardcode_direct=yes
8778 hardcode_shlibpath_var=no
8779 hardcode_direct_absolute=yes
8780 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8781 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8782 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8783 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8784 export_dynamic_flag_spec='${wl}-E'
8785 else
8786 case $host_os in
8787 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8788 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8789 hardcode_libdir_flag_spec='-R$libdir'
8790 ;;
8791 *)
8792 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8793 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8794 ;;
8795 esac
8796 fi
8797 else
8798 ld_shlibs=no
8799 fi
8800 ;;
8801
8802 os2*)
8803 hardcode_libdir_flag_spec='-L$libdir'
8804 hardcode_minus_L=yes
8805 allow_undefined_flag=unsupported
8806 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8807 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8808 ;;
8809
8810 osf3*)
8811 if test "$GCC" = yes; then
8812 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8813 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8814 else
8815 allow_undefined_flag=' -expect_unresolved \*'
8816 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8817 fi
8818 archive_cmds_need_lc='no'
8819 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8820 hardcode_libdir_separator=:
8821 ;;
8822
8823 osf4* | osf5*) # as osf3* with the addition of -msym flag
8824 if test "$GCC" = yes; then
8825 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8826 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8827 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8828 else
8829 allow_undefined_flag=' -expect_unresolved \*'
8830 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8831 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~
8832 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8833
8834 # Both c and cxx compiler support -rpath directly
8835 hardcode_libdir_flag_spec='-rpath $libdir'
8836 fi
8837 archive_cmds_need_lc='no'
8838 hardcode_libdir_separator=:
8839 ;;
8840
8841 solaris*)
8842 no_undefined_flag=' -z defs'
8843 if test "$GCC" = yes; then
8844 wlarc='${wl}'
8845 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8846 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8847 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8848 else
8849 case `$CC -V 2>&1` in
8850 *"Compilers 5.0"*)
8851 wlarc=''
8852 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8853 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8854 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8855 ;;
8856 *)
8857 wlarc='${wl}'
8858 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8859 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8860 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8861 ;;
8862 esac
8863 fi
8864 hardcode_libdir_flag_spec='-R$libdir'
8865 hardcode_shlibpath_var=no
8866 case $host_os in
8867 solaris2.[0-5] | solaris2.[0-5].*) ;;
8868 *)
8869 # The compiler driver will combine and reorder linker options,
8870 # but understands `-z linker_flag'. GCC discards it without `$wl',
8871 # but is careful enough not to reorder.
8872 # Supported since Solaris 2.6 (maybe 2.5.1?)
8873 if test "$GCC" = yes; then
8874 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8875 else
8876 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8877 fi
8878 ;;
8879 esac
8880 link_all_deplibs=yes
8881 ;;
8882
8883 sunos4*)
8884 if test "x$host_vendor" = xsequent; then
8885 # Use $CC to link under sequent, because it throws in some extra .o
8886 # files that make .init and .fini sections work.
8887 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8888 else
8889 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8890 fi
8891 hardcode_libdir_flag_spec='-L$libdir'
8892 hardcode_direct=yes
8893 hardcode_minus_L=yes
8894 hardcode_shlibpath_var=no
8895 ;;
8896
8897 sysv4)
8898 case $host_vendor in
8899 sni)
8900 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8901 hardcode_direct=yes # is this really true???
8902 ;;
8903 siemens)
8904 ## LD is ld it makes a PLAMLIB
8905 ## CC just makes a GrossModule.
8906 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8907 reload_cmds='$CC -r -o $output$reload_objs'
8908 hardcode_direct=no
8909 ;;
8910 motorola)
8911 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8912 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8913 ;;
8914 esac
8915 runpath_var='LD_RUN_PATH'
8916 hardcode_shlibpath_var=no
8917 ;;
8918
8919 sysv4.3*)
8920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8921 hardcode_shlibpath_var=no
8922 export_dynamic_flag_spec='-Bexport'
8923 ;;
8924
8925 sysv4*MP*)
8926 if test -d /usr/nec; then
8927 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8928 hardcode_shlibpath_var=no
8929 runpath_var=LD_RUN_PATH
8930 hardcode_runpath_var=yes
8931 ld_shlibs=yes
8932 fi
8933 ;;
8934
8935 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8936 no_undefined_flag='${wl}-z,text'
8937 archive_cmds_need_lc=no
8938 hardcode_shlibpath_var=no
8939 runpath_var='LD_RUN_PATH'
8940
8941 if test "$GCC" = yes; then
8942 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8943 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8944 else
8945 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8946 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8947 fi
8948 ;;
8949
8950 sysv5* | sco3.2v5* | sco5v6*)
8951 # Note: We can NOT use -z defs as we might desire, because we do not
8952 # link with -lc, and that would cause any symbols used from libc to
8953 # always be unresolved, which means just about no library would
8954 # ever link correctly. If we're not using GNU ld we use -z text
8955 # though, which does catch some bad symbols but isn't as heavy-handed
8956 # as -z defs.
8957 no_undefined_flag='${wl}-z,text'
8958 allow_undefined_flag='${wl}-z,nodefs'
8959 archive_cmds_need_lc=no
8960 hardcode_shlibpath_var=no
8961 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8962 hardcode_libdir_separator=':'
8963 link_all_deplibs=yes
8964 export_dynamic_flag_spec='${wl}-Bexport'
8965 runpath_var='LD_RUN_PATH'
8966
8967 if test "$GCC" = yes; then
8968 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8969 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8970 else
8971 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8972 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8973 fi
8974 ;;
8975
8976 uts4*)
8977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8978 hardcode_libdir_flag_spec='-L$libdir'
8979 hardcode_shlibpath_var=no
8980 ;;
8981
8982 *)
8983 ld_shlibs=no
8984 ;;
8985 esac
8986
8987 if test x$host_vendor = xsni; then
8988 case $host in
8989 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8990 export_dynamic_flag_spec='${wl}-Blargedynsym'
8991 ;;
8992 esac
8993 fi
8994 fi
8995
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8997 $as_echo "$ld_shlibs" >&6; }
8998 test "$ld_shlibs" = no && can_build_shared=no
8999
9000 with_gnu_ld=$with_gnu_ld
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016 #
9017 # Do we need to explicitly link libc?
9018 #
9019 case "x$archive_cmds_need_lc" in
9020 x|xyes)
9021 # Assume -lc should be added
9022 archive_cmds_need_lc=yes
9023
9024 if test "$enable_shared" = yes && test "$GCC" = yes; then
9025 case $archive_cmds in
9026 *'~'*)
9027 # FIXME: we may have to deal with multi-command sequences.
9028 ;;
9029 '$CC '*)
9030 # Test whether the compiler implicitly links with -lc since on some
9031 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9032 # to ld, don't add -lc before -lgcc.
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9034 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9035 $RM conftest*
9036 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9037
9038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9039 (eval $ac_compile) 2>&5
9040 ac_status=$?
9041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9042 test $ac_status = 0; } 2>conftest.err; then
9043 soname=conftest
9044 lib=conftest
9045 libobjs=conftest.$ac_objext
9046 deplibs=
9047 wl=$lt_prog_compiler_wl
9048 pic_flag=$lt_prog_compiler_pic
9049 compiler_flags=-v
9050 linker_flags=-v
9051 verstring=
9052 output_objdir=.
9053 libname=conftest
9054 lt_save_allow_undefined_flag=$allow_undefined_flag
9055 allow_undefined_flag=
9056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9057 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9058 ac_status=$?
9059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9060 test $ac_status = 0; }
9061 then
9062 archive_cmds_need_lc=no
9063 else
9064 archive_cmds_need_lc=yes
9065 fi
9066 allow_undefined_flag=$lt_save_allow_undefined_flag
9067 else
9068 cat conftest.err 1>&5
9069 fi
9070 $RM conftest*
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9072 $as_echo "$archive_cmds_need_lc" >&6; }
9073 ;;
9074 esac
9075 fi
9076 ;;
9077 esac
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9236 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9237
9238 if test "$GCC" = yes; then
9239 case $host_os in
9240 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9241 *) lt_awk_arg="/^libraries:/" ;;
9242 esac
9243 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9244 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9245 # if the path contains ";" then we assume it to be the separator
9246 # otherwise default to the standard path separator (i.e. ":") - it is
9247 # assumed that no part of a normal pathname contains ";" but that should
9248 # okay in the real world where ";" in dirpaths is itself problematic.
9249 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9250 else
9251 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9252 fi
9253 # Ok, now we have the path, separated by spaces, we can step through it
9254 # and add multilib dir if necessary.
9255 lt_tmp_lt_search_path_spec=
9256 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9257 for lt_sys_path in $lt_search_path_spec; do
9258 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9259 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9260 else
9261 test -d "$lt_sys_path" && \
9262 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9263 fi
9264 done
9265 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9266 BEGIN {RS=" "; FS="/|\n";} {
9267 lt_foo="";
9268 lt_count=0;
9269 for (lt_i = NF; lt_i > 0; lt_i--) {
9270 if ($lt_i != "" && $lt_i != ".") {
9271 if ($lt_i == "..") {
9272 lt_count++;
9273 } else {
9274 if (lt_count == 0) {
9275 lt_foo="/" $lt_i lt_foo;
9276 } else {
9277 lt_count--;
9278 }
9279 }
9280 }
9281 }
9282 if (lt_foo != "") { lt_freq[lt_foo]++; }
9283 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9284 }'`
9285 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9286 else
9287 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9288 fi
9289 library_names_spec=
9290 libname_spec='lib$name'
9291 soname_spec=
9292 shrext_cmds=".so"
9293 postinstall_cmds=
9294 postuninstall_cmds=
9295 finish_cmds=
9296 finish_eval=
9297 shlibpath_var=
9298 shlibpath_overrides_runpath=unknown
9299 version_type=none
9300 dynamic_linker="$host_os ld.so"
9301 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9302 need_lib_prefix=unknown
9303 hardcode_into_libs=no
9304
9305 # when you set need_version to no, make sure it does not cause -set_version
9306 # flags to be left without arguments
9307 need_version=unknown
9308
9309 case $host_os in
9310 aix3*)
9311 version_type=linux
9312 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9313 shlibpath_var=LIBPATH
9314
9315 # AIX 3 has no versioning support, so we append a major version to the name.
9316 soname_spec='${libname}${release}${shared_ext}$major'
9317 ;;
9318
9319 aix[4-9]*)
9320 version_type=linux
9321 need_lib_prefix=no
9322 need_version=no
9323 hardcode_into_libs=yes
9324 if test "$host_cpu" = ia64; then
9325 # AIX 5 supports IA64
9326 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9327 shlibpath_var=LD_LIBRARY_PATH
9328 else
9329 # With GCC up to 2.95.x, collect2 would create an import file
9330 # for dependence libraries. The import file would start with
9331 # the line `#! .'. This would cause the generated library to
9332 # depend on `.', always an invalid library. This was fixed in
9333 # development snapshots of GCC prior to 3.0.
9334 case $host_os in
9335 aix4 | aix4.[01] | aix4.[01].*)
9336 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9337 echo ' yes '
9338 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9339 :
9340 else
9341 can_build_shared=no
9342 fi
9343 ;;
9344 esac
9345 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9346 # soname into executable. Probably we can add versioning support to
9347 # collect2, so additional links can be useful in future.
9348 if test "$aix_use_runtimelinking" = yes; then
9349 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9350 # instead of lib<name>.a to let people know that these are not
9351 # typical AIX shared libraries.
9352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9353 else
9354 # We preserve .a as extension for shared libraries through AIX4.2
9355 # and later when we are not doing run time linking.
9356 library_names_spec='${libname}${release}.a $libname.a'
9357 soname_spec='${libname}${release}${shared_ext}$major'
9358 fi
9359 shlibpath_var=LIBPATH
9360 fi
9361 ;;
9362
9363 amigaos*)
9364 case $host_cpu in
9365 powerpc)
9366 # Since July 2007 AmigaOS4 officially supports .so libraries.
9367 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9369 ;;
9370 m68k)
9371 library_names_spec='$libname.ixlibrary $libname.a'
9372 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9373 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9374 ;;
9375 esac
9376 ;;
9377
9378 beos*)
9379 library_names_spec='${libname}${shared_ext}'
9380 dynamic_linker="$host_os ld.so"
9381 shlibpath_var=LIBRARY_PATH
9382 ;;
9383
9384 bsdi[45]*)
9385 version_type=linux
9386 need_version=no
9387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9388 soname_spec='${libname}${release}${shared_ext}$major'
9389 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9390 shlibpath_var=LD_LIBRARY_PATH
9391 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9392 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9393 # the default ld.so.conf also contains /usr/contrib/lib and
9394 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9395 # libtool to hard-code these into programs
9396 ;;
9397
9398 cygwin* | mingw* | pw32* | cegcc*)
9399 version_type=windows
9400 shrext_cmds=".dll"
9401 need_version=no
9402 need_lib_prefix=no
9403
9404 case $GCC,$host_os in
9405 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9406 library_names_spec='$libname.dll.a'
9407 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9408 postinstall_cmds='base_file=`basename \${file}`~
9409 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9410 dldir=$destdir/`dirname \$dlpath`~
9411 test -d \$dldir || mkdir -p \$dldir~
9412 $install_prog $dir/$dlname \$dldir/$dlname~
9413 chmod a+x \$dldir/$dlname~
9414 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9415 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9416 fi'
9417 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9418 dlpath=$dir/\$dldll~
9419 $RM \$dlpath'
9420 shlibpath_overrides_runpath=yes
9421
9422 case $host_os in
9423 cygwin*)
9424 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9425 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9426 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9427 ;;
9428 mingw* | cegcc*)
9429 # MinGW DLLs use traditional 'lib' prefix
9430 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9431 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9432 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9433 # It is most probably a Windows format PATH printed by
9434 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9435 # path with ; separators, and with drive letters. We can handle the
9436 # drive letters (cygwin fileutils understands them), so leave them,
9437 # especially as we might pass files found there to a mingw objdump,
9438 # which wouldn't understand a cygwinified path. Ahh.
9439 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9440 else
9441 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9442 fi
9443 ;;
9444 pw32*)
9445 # pw32 DLLs use 'pw' prefix rather than 'lib'
9446 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9447 ;;
9448 esac
9449 ;;
9450
9451 *)
9452 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9453 ;;
9454 esac
9455 dynamic_linker='Win32 ld.exe'
9456 # FIXME: first we should search . and the directory the executable is in
9457 shlibpath_var=PATH
9458 ;;
9459
9460 darwin* | rhapsody*)
9461 dynamic_linker="$host_os dyld"
9462 version_type=darwin
9463 need_lib_prefix=no
9464 need_version=no
9465 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9466 soname_spec='${libname}${release}${major}$shared_ext'
9467 shlibpath_overrides_runpath=yes
9468 shlibpath_var=DYLD_LIBRARY_PATH
9469 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9470
9471 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9472 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9473 ;;
9474
9475 dgux*)
9476 version_type=linux
9477 need_lib_prefix=no
9478 need_version=no
9479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9480 soname_spec='${libname}${release}${shared_ext}$major'
9481 shlibpath_var=LD_LIBRARY_PATH
9482 ;;
9483
9484 freebsd1*)
9485 dynamic_linker=no
9486 ;;
9487
9488 freebsd* | dragonfly*)
9489 # DragonFly does not have aout. When/if they implement a new
9490 # versioning mechanism, adjust this.
9491 if test -x /usr/bin/objformat; then
9492 objformat=`/usr/bin/objformat`
9493 else
9494 case $host_os in
9495 freebsd[123]*) objformat=aout ;;
9496 *) objformat=elf ;;
9497 esac
9498 fi
9499 version_type=freebsd-$objformat
9500 case $version_type in
9501 freebsd-elf*)
9502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9503 need_version=no
9504 need_lib_prefix=no
9505 ;;
9506 freebsd-*)
9507 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9508 need_version=yes
9509 ;;
9510 esac
9511 shlibpath_var=LD_LIBRARY_PATH
9512 case $host_os in
9513 freebsd2*)
9514 shlibpath_overrides_runpath=yes
9515 ;;
9516 freebsd3.[01]* | freebsdelf3.[01]*)
9517 shlibpath_overrides_runpath=yes
9518 hardcode_into_libs=yes
9519 ;;
9520 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9521 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9522 shlibpath_overrides_runpath=no
9523 hardcode_into_libs=yes
9524 ;;
9525 *) # from 4.6 on, and DragonFly
9526 shlibpath_overrides_runpath=yes
9527 hardcode_into_libs=yes
9528 ;;
9529 esac
9530 ;;
9531
9532 gnu*)
9533 version_type=linux
9534 need_lib_prefix=no
9535 need_version=no
9536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9537 soname_spec='${libname}${release}${shared_ext}$major'
9538 shlibpath_var=LD_LIBRARY_PATH
9539 hardcode_into_libs=yes
9540 ;;
9541
9542 hpux9* | hpux10* | hpux11*)
9543 # Give a soname corresponding to the major version so that dld.sl refuses to
9544 # link against other versions.
9545 version_type=sunos
9546 need_lib_prefix=no
9547 need_version=no
9548 case $host_cpu in
9549 ia64*)
9550 shrext_cmds='.so'
9551 hardcode_into_libs=yes
9552 dynamic_linker="$host_os dld.so"
9553 shlibpath_var=LD_LIBRARY_PATH
9554 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9556 soname_spec='${libname}${release}${shared_ext}$major'
9557 if test "X$HPUX_IA64_MODE" = X32; then
9558 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9559 else
9560 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9561 fi
9562 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9563 ;;
9564 hppa*64*)
9565 shrext_cmds='.sl'
9566 hardcode_into_libs=yes
9567 dynamic_linker="$host_os dld.sl"
9568 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9569 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9571 soname_spec='${libname}${release}${shared_ext}$major'
9572 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9573 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9574 ;;
9575 *)
9576 shrext_cmds='.sl'
9577 dynamic_linker="$host_os dld.sl"
9578 shlibpath_var=SHLIB_PATH
9579 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9581 soname_spec='${libname}${release}${shared_ext}$major'
9582 ;;
9583 esac
9584 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9585 postinstall_cmds='chmod 555 $lib'
9586 ;;
9587
9588 interix[3-9]*)
9589 version_type=linux
9590 need_lib_prefix=no
9591 need_version=no
9592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9593 soname_spec='${libname}${release}${shared_ext}$major'
9594 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9595 shlibpath_var=LD_LIBRARY_PATH
9596 shlibpath_overrides_runpath=no
9597 hardcode_into_libs=yes
9598 ;;
9599
9600 irix5* | irix6* | nonstopux*)
9601 case $host_os in
9602 nonstopux*) version_type=nonstopux ;;
9603 *)
9604 if test "$lt_cv_prog_gnu_ld" = yes; then
9605 version_type=linux
9606 else
9607 version_type=irix
9608 fi ;;
9609 esac
9610 need_lib_prefix=no
9611 need_version=no
9612 soname_spec='${libname}${release}${shared_ext}$major'
9613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9614 case $host_os in
9615 irix5* | nonstopux*)
9616 libsuff= shlibsuff=
9617 ;;
9618 *)
9619 case $LD in # libtool.m4 will add one of these switches to LD
9620 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9621 libsuff= shlibsuff= libmagic=32-bit;;
9622 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9623 libsuff=32 shlibsuff=N32 libmagic=N32;;
9624 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9625 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9626 *) libsuff= shlibsuff= libmagic=never-match;;
9627 esac
9628 ;;
9629 esac
9630 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9631 shlibpath_overrides_runpath=no
9632 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9633 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9634 hardcode_into_libs=yes
9635 ;;
9636
9637 # No shared lib support for Linux oldld, aout, or coff.
9638 linux*oldld* | linux*aout* | linux*coff*)
9639 dynamic_linker=no
9640 ;;
9641
9642 # This must be Linux ELF.
9643 linux* | k*bsd*-gnu)
9644 version_type=linux
9645 need_lib_prefix=no
9646 need_version=no
9647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9648 soname_spec='${libname}${release}${shared_ext}$major'
9649 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9650 shlibpath_var=LD_LIBRARY_PATH
9651 shlibpath_overrides_runpath=no
9652 # Some binutils ld are patched to set DT_RUNPATH
9653 save_LDFLAGS=$LDFLAGS
9654 save_libdir=$libdir
9655 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9656 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9658 /* end confdefs.h. */
9659
9660 int
9661 main ()
9662 {
9663
9664 ;
9665 return 0;
9666 }
9667 _ACEOF
9668 if ac_fn_c_try_link "$LINENO"; then :
9669 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9670 shlibpath_overrides_runpath=yes
9671 fi
9672 fi
9673 rm -f core conftest.err conftest.$ac_objext \
9674 conftest$ac_exeext conftest.$ac_ext
9675 LDFLAGS=$save_LDFLAGS
9676 libdir=$save_libdir
9677
9678 # This implies no fast_install, which is unacceptable.
9679 # Some rework will be needed to allow for fast_install
9680 # before this can be enabled.
9681 hardcode_into_libs=yes
9682
9683 # Append ld.so.conf contents to the search path
9684 if test -f /etc/ld.so.conf; then
9685 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;/^$/d' | tr '\n' ' '`
9686 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9687 fi
9688
9689 # We used to test for /lib/ld.so.1 and disable shared libraries on
9690 # powerpc, because MkLinux only supported shared libraries with the
9691 # GNU dynamic linker. Since this was broken with cross compilers,
9692 # most powerpc-linux boxes support dynamic linking these days and
9693 # people can always --disable-shared, the test was removed, and we
9694 # assume the GNU/Linux dynamic linker is in use.
9695 dynamic_linker='GNU/Linux ld.so'
9696 ;;
9697
9698 netbsd*)
9699 version_type=sunos
9700 need_lib_prefix=no
9701 need_version=no
9702 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9705 dynamic_linker='NetBSD (a.out) ld.so'
9706 else
9707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9708 soname_spec='${libname}${release}${shared_ext}$major'
9709 dynamic_linker='NetBSD ld.elf_so'
9710 fi
9711 shlibpath_var=LD_LIBRARY_PATH
9712 shlibpath_overrides_runpath=yes
9713 hardcode_into_libs=yes
9714 ;;
9715
9716 newsos6)
9717 version_type=linux
9718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9719 shlibpath_var=LD_LIBRARY_PATH
9720 shlibpath_overrides_runpath=yes
9721 ;;
9722
9723 *nto* | *qnx*)
9724 version_type=qnx
9725 need_lib_prefix=no
9726 need_version=no
9727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9728 soname_spec='${libname}${release}${shared_ext}$major'
9729 shlibpath_var=LD_LIBRARY_PATH
9730 shlibpath_overrides_runpath=no
9731 hardcode_into_libs=yes
9732 dynamic_linker='ldqnx.so'
9733 ;;
9734
9735 openbsd*)
9736 version_type=sunos
9737 sys_lib_dlsearch_path_spec="/usr/lib"
9738 need_lib_prefix=no
9739 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9740 case $host_os in
9741 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9742 *) need_version=no ;;
9743 esac
9744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9745 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9746 shlibpath_var=LD_LIBRARY_PATH
9747 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9748 case $host_os in
9749 openbsd2.[89] | openbsd2.[89].*)
9750 shlibpath_overrides_runpath=no
9751 ;;
9752 *)
9753 shlibpath_overrides_runpath=yes
9754 ;;
9755 esac
9756 else
9757 shlibpath_overrides_runpath=yes
9758 fi
9759 ;;
9760
9761 os2*)
9762 libname_spec='$name'
9763 shrext_cmds=".dll"
9764 need_lib_prefix=no
9765 library_names_spec='$libname${shared_ext} $libname.a'
9766 dynamic_linker='OS/2 ld.exe'
9767 shlibpath_var=LIBPATH
9768 ;;
9769
9770 osf3* | osf4* | osf5*)
9771 version_type=osf
9772 need_lib_prefix=no
9773 need_version=no
9774 soname_spec='${libname}${release}${shared_ext}$major'
9775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9776 shlibpath_var=LD_LIBRARY_PATH
9777 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9778 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9779 ;;
9780
9781 rdos*)
9782 dynamic_linker=no
9783 ;;
9784
9785 solaris*)
9786 version_type=linux
9787 need_lib_prefix=no
9788 need_version=no
9789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9790 soname_spec='${libname}${release}${shared_ext}$major'
9791 shlibpath_var=LD_LIBRARY_PATH
9792 shlibpath_overrides_runpath=yes
9793 hardcode_into_libs=yes
9794 # ldd complains unless libraries are executable
9795 postinstall_cmds='chmod +x $lib'
9796 ;;
9797
9798 sunos4*)
9799 version_type=sunos
9800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9801 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9802 shlibpath_var=LD_LIBRARY_PATH
9803 shlibpath_overrides_runpath=yes
9804 if test "$with_gnu_ld" = yes; then
9805 need_lib_prefix=no
9806 fi
9807 need_version=yes
9808 ;;
9809
9810 sysv4 | sysv4.3*)
9811 version_type=linux
9812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9813 soname_spec='${libname}${release}${shared_ext}$major'
9814 shlibpath_var=LD_LIBRARY_PATH
9815 case $host_vendor in
9816 sni)
9817 shlibpath_overrides_runpath=no
9818 need_lib_prefix=no
9819 runpath_var=LD_RUN_PATH
9820 ;;
9821 siemens)
9822 need_lib_prefix=no
9823 ;;
9824 motorola)
9825 need_lib_prefix=no
9826 need_version=no
9827 shlibpath_overrides_runpath=no
9828 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9829 ;;
9830 esac
9831 ;;
9832
9833 sysv4*MP*)
9834 if test -d /usr/nec ;then
9835 version_type=linux
9836 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9837 soname_spec='$libname${shared_ext}.$major'
9838 shlibpath_var=LD_LIBRARY_PATH
9839 fi
9840 ;;
9841
9842 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9843 version_type=freebsd-elf
9844 need_lib_prefix=no
9845 need_version=no
9846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9847 soname_spec='${libname}${release}${shared_ext}$major'
9848 shlibpath_var=LD_LIBRARY_PATH
9849 shlibpath_overrides_runpath=yes
9850 hardcode_into_libs=yes
9851 if test "$with_gnu_ld" = yes; then
9852 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9853 else
9854 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9855 case $host_os in
9856 sco3.2v5*)
9857 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9858 ;;
9859 esac
9860 fi
9861 sys_lib_dlsearch_path_spec='/usr/lib'
9862 ;;
9863
9864 tpf*)
9865 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9866 version_type=linux
9867 need_lib_prefix=no
9868 need_version=no
9869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9870 shlibpath_var=LD_LIBRARY_PATH
9871 shlibpath_overrides_runpath=no
9872 hardcode_into_libs=yes
9873 ;;
9874
9875 uts4*)
9876 version_type=linux
9877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9878 soname_spec='${libname}${release}${shared_ext}$major'
9879 shlibpath_var=LD_LIBRARY_PATH
9880 ;;
9881
9882 *)
9883 dynamic_linker=no
9884 ;;
9885 esac
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9887 $as_echo "$dynamic_linker" >&6; }
9888 test "$dynamic_linker" = no && can_build_shared=no
9889
9890 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9891 if test "$GCC" = yes; then
9892 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9893 fi
9894
9895 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9896 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9897 fi
9898 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9899 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9900 fi
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9989 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9990 hardcode_action=
9991 if test -n "$hardcode_libdir_flag_spec" ||
9992 test -n "$runpath_var" ||
9993 test "X$hardcode_automatic" = "Xyes" ; then
9994
9995 # We can hardcode non-existent directories.
9996 if test "$hardcode_direct" != no &&
9997 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9998 # have to relink, otherwise we might link with an installed library
9999 # when we should be linking with a yet-to-be-installed one
10000 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10001 test "$hardcode_minus_L" != no; then
10002 # Linking always hardcodes the temporary library directory.
10003 hardcode_action=relink
10004 else
10005 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10006 hardcode_action=immediate
10007 fi
10008 else
10009 # We cannot hardcode anything, or else we can only hardcode existing
10010 # directories.
10011 hardcode_action=unsupported
10012 fi
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10014 $as_echo "$hardcode_action" >&6; }
10015
10016 if test "$hardcode_action" = relink ||
10017 test "$inherit_rpath" = yes; then
10018 # Fast installation is not supported
10019 enable_fast_install=no
10020 elif test "$shlibpath_overrides_runpath" = yes ||
10021 test "$enable_shared" = no; then
10022 # Fast installation is not necessary
10023 enable_fast_install=needless
10024 fi
10025
10026
10027
10028
10029
10030
10031 if test "x$enable_dlopen" != xyes; then
10032 enable_dlopen=unknown
10033 enable_dlopen_self=unknown
10034 enable_dlopen_self_static=unknown
10035 else
10036 lt_cv_dlopen=no
10037 lt_cv_dlopen_libs=
10038
10039 case $host_os in
10040 beos*)
10041 lt_cv_dlopen="load_add_on"
10042 lt_cv_dlopen_libs=
10043 lt_cv_dlopen_self=yes
10044 ;;
10045
10046 mingw* | pw32* | cegcc*)
10047 lt_cv_dlopen="LoadLibrary"
10048 lt_cv_dlopen_libs=
10049 ;;
10050
10051 cygwin*)
10052 lt_cv_dlopen="dlopen"
10053 lt_cv_dlopen_libs=
10054 ;;
10055
10056 darwin*)
10057 # if libdl is installed we need to link against it
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10059 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10060 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10061 $as_echo_n "(cached) " >&6
10062 else
10063 ac_check_lib_save_LIBS=$LIBS
10064 LIBS="-ldl $LIBS"
10065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10066 /* end confdefs.h. */
10067
10068 /* Override any GCC internal prototype to avoid an error.
10069 Use char because int might match the return type of a GCC
10070 builtin and then its argument prototype would still apply. */
10071 #ifdef __cplusplus
10072 extern "C"
10073 #endif
10074 char dlopen ();
10075 int
10076 main ()
10077 {
10078 return dlopen ();
10079 ;
10080 return 0;
10081 }
10082 _ACEOF
10083 if ac_fn_c_try_link "$LINENO"; then :
10084 ac_cv_lib_dl_dlopen=yes
10085 else
10086 ac_cv_lib_dl_dlopen=no
10087 fi
10088 rm -f core conftest.err conftest.$ac_objext \
10089 conftest$ac_exeext conftest.$ac_ext
10090 LIBS=$ac_check_lib_save_LIBS
10091 fi
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10093 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10094 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10095 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10096 else
10097
10098 lt_cv_dlopen="dyld"
10099 lt_cv_dlopen_libs=
10100 lt_cv_dlopen_self=yes
10101
10102 fi
10103
10104 ;;
10105
10106 *)
10107 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10108 if test "x$ac_cv_func_shl_load" = x""yes; then :
10109 lt_cv_dlopen="shl_load"
10110 else
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10112 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10113 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10114 $as_echo_n "(cached) " >&6
10115 else
10116 ac_check_lib_save_LIBS=$LIBS
10117 LIBS="-ldld $LIBS"
10118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10119 /* end confdefs.h. */
10120
10121 /* Override any GCC internal prototype to avoid an error.
10122 Use char because int might match the return type of a GCC
10123 builtin and then its argument prototype would still apply. */
10124 #ifdef __cplusplus
10125 extern "C"
10126 #endif
10127 char shl_load ();
10128 int
10129 main ()
10130 {
10131 return shl_load ();
10132 ;
10133 return 0;
10134 }
10135 _ACEOF
10136 if ac_fn_c_try_link "$LINENO"; then :
10137 ac_cv_lib_dld_shl_load=yes
10138 else
10139 ac_cv_lib_dld_shl_load=no
10140 fi
10141 rm -f core conftest.err conftest.$ac_objext \
10142 conftest$ac_exeext conftest.$ac_ext
10143 LIBS=$ac_check_lib_save_LIBS
10144 fi
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10146 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10147 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10148 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10149 else
10150 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10151 if test "x$ac_cv_func_dlopen" = x""yes; then :
10152 lt_cv_dlopen="dlopen"
10153 else
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10155 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10156 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10157 $as_echo_n "(cached) " >&6
10158 else
10159 ac_check_lib_save_LIBS=$LIBS
10160 LIBS="-ldl $LIBS"
10161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10162 /* end confdefs.h. */
10163
10164 /* Override any GCC internal prototype to avoid an error.
10165 Use char because int might match the return type of a GCC
10166 builtin and then its argument prototype would still apply. */
10167 #ifdef __cplusplus
10168 extern "C"
10169 #endif
10170 char dlopen ();
10171 int
10172 main ()
10173 {
10174 return dlopen ();
10175 ;
10176 return 0;
10177 }
10178 _ACEOF
10179 if ac_fn_c_try_link "$LINENO"; then :
10180 ac_cv_lib_dl_dlopen=yes
10181 else
10182 ac_cv_lib_dl_dlopen=no
10183 fi
10184 rm -f core conftest.err conftest.$ac_objext \
10185 conftest$ac_exeext conftest.$ac_ext
10186 LIBS=$ac_check_lib_save_LIBS
10187 fi
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10189 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10190 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10191 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10192 else
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10194 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10195 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10196 $as_echo_n "(cached) " >&6
10197 else
10198 ac_check_lib_save_LIBS=$LIBS
10199 LIBS="-lsvld $LIBS"
10200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10201 /* end confdefs.h. */
10202
10203 /* Override any GCC internal prototype to avoid an error.
10204 Use char because int might match the return type of a GCC
10205 builtin and then its argument prototype would still apply. */
10206 #ifdef __cplusplus
10207 extern "C"
10208 #endif
10209 char dlopen ();
10210 int
10211 main ()
10212 {
10213 return dlopen ();
10214 ;
10215 return 0;
10216 }
10217 _ACEOF
10218 if ac_fn_c_try_link "$LINENO"; then :
10219 ac_cv_lib_svld_dlopen=yes
10220 else
10221 ac_cv_lib_svld_dlopen=no
10222 fi
10223 rm -f core conftest.err conftest.$ac_objext \
10224 conftest$ac_exeext conftest.$ac_ext
10225 LIBS=$ac_check_lib_save_LIBS
10226 fi
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10228 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10229 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10230 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10231 else
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10233 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10234 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10235 $as_echo_n "(cached) " >&6
10236 else
10237 ac_check_lib_save_LIBS=$LIBS
10238 LIBS="-ldld $LIBS"
10239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10240 /* end confdefs.h. */
10241
10242 /* Override any GCC internal prototype to avoid an error.
10243 Use char because int might match the return type of a GCC
10244 builtin and then its argument prototype would still apply. */
10245 #ifdef __cplusplus
10246 extern "C"
10247 #endif
10248 char dld_link ();
10249 int
10250 main ()
10251 {
10252 return dld_link ();
10253 ;
10254 return 0;
10255 }
10256 _ACEOF
10257 if ac_fn_c_try_link "$LINENO"; then :
10258 ac_cv_lib_dld_dld_link=yes
10259 else
10260 ac_cv_lib_dld_dld_link=no
10261 fi
10262 rm -f core conftest.err conftest.$ac_objext \
10263 conftest$ac_exeext conftest.$ac_ext
10264 LIBS=$ac_check_lib_save_LIBS
10265 fi
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10267 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10268 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10269 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10270 fi
10271
10272
10273 fi
10274
10275
10276 fi
10277
10278
10279 fi
10280
10281
10282 fi
10283
10284
10285 fi
10286
10287 ;;
10288 esac
10289
10290 if test "x$lt_cv_dlopen" != xno; then
10291 enable_dlopen=yes
10292 else
10293 enable_dlopen=no
10294 fi
10295
10296 case $lt_cv_dlopen in
10297 dlopen)
10298 save_CPPFLAGS="$CPPFLAGS"
10299 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10300
10301 save_LDFLAGS="$LDFLAGS"
10302 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10303
10304 save_LIBS="$LIBS"
10305 LIBS="$lt_cv_dlopen_libs $LIBS"
10306
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10308 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10309 if test "${lt_cv_dlopen_self+set}" = set; then :
10310 $as_echo_n "(cached) " >&6
10311 else
10312 if test "$cross_compiling" = yes; then :
10313 lt_cv_dlopen_self=cross
10314 else
10315 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10316 lt_status=$lt_dlunknown
10317 cat > conftest.$ac_ext <<_LT_EOF
10318 #line 10318 "configure"
10319 #include "confdefs.h"
10320
10321 #if HAVE_DLFCN_H
10322 #include <dlfcn.h>
10323 #endif
10324
10325 #include <stdio.h>
10326
10327 #ifdef RTLD_GLOBAL
10328 # define LT_DLGLOBAL RTLD_GLOBAL
10329 #else
10330 # ifdef DL_GLOBAL
10331 # define LT_DLGLOBAL DL_GLOBAL
10332 # else
10333 # define LT_DLGLOBAL 0
10334 # endif
10335 #endif
10336
10337 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10338 find out it does not work in some platform. */
10339 #ifndef LT_DLLAZY_OR_NOW
10340 # ifdef RTLD_LAZY
10341 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10342 # else
10343 # ifdef DL_LAZY
10344 # define LT_DLLAZY_OR_NOW DL_LAZY
10345 # else
10346 # ifdef RTLD_NOW
10347 # define LT_DLLAZY_OR_NOW RTLD_NOW
10348 # else
10349 # ifdef DL_NOW
10350 # define LT_DLLAZY_OR_NOW DL_NOW
10351 # else
10352 # define LT_DLLAZY_OR_NOW 0
10353 # endif
10354 # endif
10355 # endif
10356 # endif
10357 #endif
10358
10359 void fnord() { int i=42;}
10360 int main ()
10361 {
10362 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10363 int status = $lt_dlunknown;
10364
10365 if (self)
10366 {
10367 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10368 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10369 /* dlclose (self); */
10370 }
10371 else
10372 puts (dlerror ());
10373
10374 return status;
10375 }
10376 _LT_EOF
10377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10378 (eval $ac_link) 2>&5
10379 ac_status=$?
10380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10381 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10382 (./conftest; exit; ) >&5 2>/dev/null
10383 lt_status=$?
10384 case x$lt_status in
10385 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10386 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10387 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10388 esac
10389 else :
10390 # compilation failed
10391 lt_cv_dlopen_self=no
10392 fi
10393 fi
10394 rm -fr conftest*
10395
10396
10397 fi
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10399 $as_echo "$lt_cv_dlopen_self" >&6; }
10400
10401 if test "x$lt_cv_dlopen_self" = xyes; then
10402 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10404 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10405 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10406 $as_echo_n "(cached) " >&6
10407 else
10408 if test "$cross_compiling" = yes; then :
10409 lt_cv_dlopen_self_static=cross
10410 else
10411 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10412 lt_status=$lt_dlunknown
10413 cat > conftest.$ac_ext <<_LT_EOF
10414 #line 10414 "configure"
10415 #include "confdefs.h"
10416
10417 #if HAVE_DLFCN_H
10418 #include <dlfcn.h>
10419 #endif
10420
10421 #include <stdio.h>
10422
10423 #ifdef RTLD_GLOBAL
10424 # define LT_DLGLOBAL RTLD_GLOBAL
10425 #else
10426 # ifdef DL_GLOBAL
10427 # define LT_DLGLOBAL DL_GLOBAL
10428 # else
10429 # define LT_DLGLOBAL 0
10430 # endif
10431 #endif
10432
10433 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10434 find out it does not work in some platform. */
10435 #ifndef LT_DLLAZY_OR_NOW
10436 # ifdef RTLD_LAZY
10437 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10438 # else
10439 # ifdef DL_LAZY
10440 # define LT_DLLAZY_OR_NOW DL_LAZY
10441 # else
10442 # ifdef RTLD_NOW
10443 # define LT_DLLAZY_OR_NOW RTLD_NOW
10444 # else
10445 # ifdef DL_NOW
10446 # define LT_DLLAZY_OR_NOW DL_NOW
10447 # else
10448 # define LT_DLLAZY_OR_NOW 0
10449 # endif
10450 # endif
10451 # endif
10452 # endif
10453 #endif
10454
10455 void fnord() { int i=42;}
10456 int main ()
10457 {
10458 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10459 int status = $lt_dlunknown;
10460
10461 if (self)
10462 {
10463 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10464 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10465 /* dlclose (self); */
10466 }
10467 else
10468 puts (dlerror ());
10469
10470 return status;
10471 }
10472 _LT_EOF
10473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10474 (eval $ac_link) 2>&5
10475 ac_status=$?
10476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10477 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10478 (./conftest; exit; ) >&5 2>/dev/null
10479 lt_status=$?
10480 case x$lt_status in
10481 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10482 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10483 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10484 esac
10485 else :
10486 # compilation failed
10487 lt_cv_dlopen_self_static=no
10488 fi
10489 fi
10490 rm -fr conftest*
10491
10492
10493 fi
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10495 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10496 fi
10497
10498 CPPFLAGS="$save_CPPFLAGS"
10499 LDFLAGS="$save_LDFLAGS"
10500 LIBS="$save_LIBS"
10501 ;;
10502 esac
10503
10504 case $lt_cv_dlopen_self in
10505 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10506 *) enable_dlopen_self=unknown ;;
10507 esac
10508
10509 case $lt_cv_dlopen_self_static in
10510 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10511 *) enable_dlopen_self_static=unknown ;;
10512 esac
10513 fi
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531 striplib=
10532 old_striplib=
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10534 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10535 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10536 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10537 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10539 $as_echo "yes" >&6; }
10540 else
10541 # FIXME - insert some real tests, host_os isn't really good enough
10542 case $host_os in
10543 darwin*)
10544 if test -n "$STRIP" ; then
10545 striplib="$STRIP -x"
10546 old_striplib="$STRIP -S"
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10548 $as_echo "yes" >&6; }
10549 else
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10551 $as_echo "no" >&6; }
10552 fi
10553 ;;
10554 *)
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10556 $as_echo "no" >&6; }
10557 ;;
10558 esac
10559 fi
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572 # Report which library types will actually be built
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10574 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10576 $as_echo "$can_build_shared" >&6; }
10577
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10579 $as_echo_n "checking whether to build shared libraries... " >&6; }
10580 test "$can_build_shared" = "no" && enable_shared=no
10581
10582 # On AIX, shared libraries and static libraries use the same namespace, and
10583 # are all built from PIC.
10584 case $host_os in
10585 aix3*)
10586 test "$enable_shared" = yes && enable_static=no
10587 if test -n "$RANLIB"; then
10588 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10589 postinstall_cmds='$RANLIB $lib'
10590 fi
10591 ;;
10592
10593 aix[4-9]*)
10594 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10595 test "$enable_shared" = yes && enable_static=no
10596 fi
10597 ;;
10598 esac
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10600 $as_echo "$enable_shared" >&6; }
10601
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10603 $as_echo_n "checking whether to build static libraries... " >&6; }
10604 # Make sure either enable_shared or enable_static is yes.
10605 test "$enable_shared" = yes || enable_static=yes
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10607 $as_echo "$enable_static" >&6; }
10608
10609
10610
10611
10612 fi
10613 ac_ext=c
10614 ac_cpp='$CPP $CPPFLAGS'
10615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10618
10619 CC="$lt_save_CC"
10620
10621
10622 ac_ext=cpp
10623 ac_cpp='$CXXCPP $CPPFLAGS'
10624 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10625 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10626 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10627
10628 archive_cmds_need_lc_CXX=no
10629 allow_undefined_flag_CXX=
10630 always_export_symbols_CXX=no
10631 archive_expsym_cmds_CXX=
10632 compiler_needs_object_CXX=no
10633 export_dynamic_flag_spec_CXX=
10634 hardcode_direct_CXX=no
10635 hardcode_direct_absolute_CXX=no
10636 hardcode_libdir_flag_spec_CXX=
10637 hardcode_libdir_flag_spec_ld_CXX=
10638 hardcode_libdir_separator_CXX=
10639 hardcode_minus_L_CXX=no
10640 hardcode_shlibpath_var_CXX=unsupported
10641 hardcode_automatic_CXX=no
10642 inherit_rpath_CXX=no
10643 module_cmds_CXX=
10644 module_expsym_cmds_CXX=
10645 link_all_deplibs_CXX=unknown
10646 old_archive_cmds_CXX=$old_archive_cmds
10647 no_undefined_flag_CXX=
10648 whole_archive_flag_spec_CXX=
10649 enable_shared_with_static_runtimes_CXX=no
10650
10651 # Source file extension for C++ test sources.
10652 ac_ext=cpp
10653
10654 # Object file extension for compiled C++ test sources.
10655 objext=o
10656 objext_CXX=$objext
10657
10658 # No sense in running all these tests if we already determined that
10659 # the CXX compiler isn't working. Some variables (like enable_shared)
10660 # are currently assumed to apply to all compilers on this platform,
10661 # and will be corrupted by setting them based on a non-working compiler.
10662 if test "$_lt_caught_CXX_error" != yes; then
10663 # Code to be used in simple compile tests
10664 lt_simple_compile_test_code="int some_variable = 0;"
10665
10666 # Code to be used in simple link tests
10667 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10668
10669 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10670
10671
10672
10673
10674
10675
10676 # If no C compiler was specified, use CC.
10677 LTCC=${LTCC-"$CC"}
10678
10679 # If no C compiler flags were specified, use CFLAGS.
10680 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10681
10682 # Allow CC to be a program name with arguments.
10683 compiler=$CC
10684
10685
10686 # save warnings/boilerplate of simple test code
10687 ac_outfile=conftest.$ac_objext
10688 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10689 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10690 _lt_compiler_boilerplate=`cat conftest.err`
10691 $RM conftest*
10692
10693 ac_outfile=conftest.$ac_objext
10694 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10695 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10696 _lt_linker_boilerplate=`cat conftest.err`
10697 $RM -r conftest*
10698
10699
10700 # Allow CC to be a program name with arguments.
10701 lt_save_CC=$CC
10702 lt_save_LD=$LD
10703 lt_save_GCC=$GCC
10704 GCC=$GXX
10705 lt_save_with_gnu_ld=$with_gnu_ld
10706 lt_save_path_LD=$lt_cv_path_LD
10707 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10708 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10709 else
10710 $as_unset lt_cv_prog_gnu_ld
10711 fi
10712 if test -n "${lt_cv_path_LDCXX+set}"; then
10713 lt_cv_path_LD=$lt_cv_path_LDCXX
10714 else
10715 $as_unset lt_cv_path_LD
10716 fi
10717 test -z "${LDCXX+set}" || LD=$LDCXX
10718 CC=${CXX-"c++"}
10719 compiler=$CC
10720 compiler_CXX=$CC
10721 for cc_temp in $compiler""; do
10722 case $cc_temp in
10723 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10724 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10725 \-*) ;;
10726 *) break;;
10727 esac
10728 done
10729 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10730
10731
10732 if test -n "$compiler"; then
10733 # We don't want -fno-exception when compiling C++ code, so set the
10734 # no_builtin_flag separately
10735 if test "$GXX" = yes; then
10736 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10737 else
10738 lt_prog_compiler_no_builtin_flag_CXX=
10739 fi
10740
10741 if test "$GXX" = yes; then
10742 # Set up default GNU C++ configuration
10743
10744
10745
10746 # Check whether --with-gnu-ld was given.
10747 if test "${with_gnu_ld+set}" = set; then :
10748 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10749 else
10750 with_gnu_ld=no
10751 fi
10752
10753 ac_prog=ld
10754 if test "$GCC" = yes; then
10755 # Check if gcc -print-prog-name=ld gives a path.
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10757 $as_echo_n "checking for ld used by $CC... " >&6; }
10758 case $host in
10759 *-*-mingw*)
10760 # gcc leaves a trailing carriage return which upsets mingw
10761 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10762 *)
10763 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10764 esac
10765 case $ac_prog in
10766 # Accept absolute paths.
10767 [\\/]* | ?:[\\/]*)
10768 re_direlt='/[^/][^/]*/\.\./'
10769 # Canonicalize the pathname of ld
10770 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10771 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10772 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10773 done
10774 test -z "$LD" && LD="$ac_prog"
10775 ;;
10776 "")
10777 # If it fails, then pretend we aren't using GCC.
10778 ac_prog=ld
10779 ;;
10780 *)
10781 # If it is relative, then search for the first ld in PATH.
10782 with_gnu_ld=unknown
10783 ;;
10784 esac
10785 elif test "$with_gnu_ld" = yes; then
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10787 $as_echo_n "checking for GNU ld... " >&6; }
10788 else
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10790 $as_echo_n "checking for non-GNU ld... " >&6; }
10791 fi
10792 if test "${lt_cv_path_LD+set}" = set; then :
10793 $as_echo_n "(cached) " >&6
10794 else
10795 if test -z "$LD"; then
10796 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10797 for ac_dir in $PATH; do
10798 IFS="$lt_save_ifs"
10799 test -z "$ac_dir" && ac_dir=.
10800 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10801 lt_cv_path_LD="$ac_dir/$ac_prog"
10802 # Check to see if the program is GNU ld. I'd rather use --version,
10803 # but apparently some variants of GNU ld only accept -v.
10804 # Break only if it was the GNU/non-GNU ld that we prefer.
10805 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10806 *GNU* | *'with BFD'*)
10807 test "$with_gnu_ld" != no && break
10808 ;;
10809 *)
10810 test "$with_gnu_ld" != yes && break
10811 ;;
10812 esac
10813 fi
10814 done
10815 IFS="$lt_save_ifs"
10816 else
10817 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10818 fi
10819 fi
10820
10821 LD="$lt_cv_path_LD"
10822 if test -n "$LD"; then
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10824 $as_echo "$LD" >&6; }
10825 else
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10827 $as_echo "no" >&6; }
10828 fi
10829 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10831 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10832 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
10833 $as_echo_n "(cached) " >&6
10834 else
10835 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10836 case `$LD -v 2>&1 </dev/null` in
10837 *GNU* | *'with BFD'*)
10838 lt_cv_prog_gnu_ld=yes
10839 ;;
10840 *)
10841 lt_cv_prog_gnu_ld=no
10842 ;;
10843 esac
10844 fi
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10846 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10847 with_gnu_ld=$lt_cv_prog_gnu_ld
10848
10849
10850
10851
10852
10853
10854
10855 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10856 # archiving commands below assume that GNU ld is being used.
10857 if test "$with_gnu_ld" = yes; then
10858 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10859 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10860
10861 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10862 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10863
10864 # If archive_cmds runs LD, not CC, wlarc should be empty
10865 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10866 # investigate it a little bit more. (MM)
10867 wlarc='${wl}'
10868
10869 # ancient GNU ld didn't support --whole-archive et. al.
10870 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
10871 $GREP 'no-whole-archive' > /dev/null; then
10872 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10873 else
10874 whole_archive_flag_spec_CXX=
10875 fi
10876 else
10877 with_gnu_ld=no
10878 wlarc=
10879
10880 # A generic and very simple default shared library creation
10881 # command for GNU C++ for the case where it uses the native
10882 # linker, instead of GNU ld. If possible, this setting should
10883 # overridden to take advantage of the native linker features on
10884 # the platform it is being used on.
10885 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10886 fi
10887
10888 # Commands to make compiler produce verbose output that lists
10889 # what "hidden" libraries, object files and flags are used when
10890 # linking a shared library.
10891 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
10892
10893 else
10894 GXX=no
10895 with_gnu_ld=no
10896 wlarc=
10897 fi
10898
10899 # PORTME: fill in a description of your system's C++ link characteristics
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10901 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10902 ld_shlibs_CXX=yes
10903 case $host_os in
10904 aix3*)
10905 # FIXME: insert proper C++ library support
10906 ld_shlibs_CXX=no
10907 ;;
10908 aix[4-9]*)
10909 if test "$host_cpu" = ia64; then
10910 # On IA64, the linker does run time linking by default, so we don't
10911 # have to do anything special.
10912 aix_use_runtimelinking=no
10913 exp_sym_flag='-Bexport'
10914 no_entry_flag=""
10915 else
10916 aix_use_runtimelinking=no
10917
10918 # Test if we are trying to use run time linking or normal
10919 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10920 # need to do runtime linking.
10921 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10922 for ld_flag in $LDFLAGS; do
10923 case $ld_flag in
10924 *-brtl*)
10925 aix_use_runtimelinking=yes
10926 break
10927 ;;
10928 esac
10929 done
10930 ;;
10931 esac
10932
10933 exp_sym_flag='-bexport'
10934 no_entry_flag='-bnoentry'
10935 fi
10936
10937 # When large executables or shared objects are built, AIX ld can
10938 # have problems creating the table of contents. If linking a library
10939 # or program results in "error TOC overflow" add -mminimal-toc to
10940 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10941 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10942
10943 archive_cmds_CXX=''
10944 hardcode_direct_CXX=yes
10945 hardcode_direct_absolute_CXX=yes
10946 hardcode_libdir_separator_CXX=':'
10947 link_all_deplibs_CXX=yes
10948 file_list_spec_CXX='${wl}-f,'
10949
10950 if test "$GXX" = yes; then
10951 case $host_os in aix4.[012]|aix4.[012].*)
10952 # We only want to do this on AIX 4.2 and lower, the check
10953 # below for broken collect2 doesn't work under 4.3+
10954 collect2name=`${CC} -print-prog-name=collect2`
10955 if test -f "$collect2name" &&
10956 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10957 then
10958 # We have reworked collect2
10959 :
10960 else
10961 # We have old collect2
10962 hardcode_direct_CXX=unsupported
10963 # It fails to find uninstalled libraries when the uninstalled
10964 # path is not listed in the libpath. Setting hardcode_minus_L
10965 # to unsupported forces relinking
10966 hardcode_minus_L_CXX=yes
10967 hardcode_libdir_flag_spec_CXX='-L$libdir'
10968 hardcode_libdir_separator_CXX=
10969 fi
10970 esac
10971 shared_flag='-shared'
10972 if test "$aix_use_runtimelinking" = yes; then
10973 shared_flag="$shared_flag "'${wl}-G'
10974 fi
10975 else
10976 # not using gcc
10977 if test "$host_cpu" = ia64; then
10978 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10979 # chokes on -Wl,-G. The following line is correct:
10980 shared_flag='-G'
10981 else
10982 if test "$aix_use_runtimelinking" = yes; then
10983 shared_flag='${wl}-G'
10984 else
10985 shared_flag='${wl}-bM:SRE'
10986 fi
10987 fi
10988 fi
10989
10990 export_dynamic_flag_spec_CXX='${wl}-bexpall'
10991 # It seems that -bexpall does not export symbols beginning with
10992 # underscore (_), so it is better to generate a list of symbols to
10993 # export.
10994 always_export_symbols_CXX=yes
10995 if test "$aix_use_runtimelinking" = yes; then
10996 # Warning - without using the other runtime loading flags (-brtl),
10997 # -berok will link without error, but may produce a broken library.
10998 allow_undefined_flag_CXX='-berok'
10999 # Determine the default libpath from the value encoded in an empty
11000 # executable.
11001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11002 /* end confdefs.h. */
11003
11004 int
11005 main ()
11006 {
11007
11008 ;
11009 return 0;
11010 }
11011 _ACEOF
11012 if ac_fn_cxx_try_link "$LINENO"; then :
11013
11014 lt_aix_libpath_sed='
11015 /Import File Strings/,/^$/ {
11016 /^0/ {
11017 s/^0 *\(.*\)$/\1/
11018 p
11019 }
11020 }'
11021 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11022 # Check for a 64-bit object if we didn't find anything.
11023 if test -z "$aix_libpath"; then
11024 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11025 fi
11026 fi
11027 rm -f core conftest.err conftest.$ac_objext \
11028 conftest$ac_exeext conftest.$ac_ext
11029 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11030
11031 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11032
11033 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11034 else
11035 if test "$host_cpu" = ia64; then
11036 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11037 allow_undefined_flag_CXX="-z nodefs"
11038 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"
11039 else
11040 # Determine the default libpath from the value encoded in an
11041 # empty executable.
11042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11043 /* end confdefs.h. */
11044
11045 int
11046 main ()
11047 {
11048
11049 ;
11050 return 0;
11051 }
11052 _ACEOF
11053 if ac_fn_cxx_try_link "$LINENO"; then :
11054
11055 lt_aix_libpath_sed='
11056 /Import File Strings/,/^$/ {
11057 /^0/ {
11058 s/^0 *\(.*\)$/\1/
11059 p
11060 }
11061 }'
11062 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11063 # Check for a 64-bit object if we didn't find anything.
11064 if test -z "$aix_libpath"; then
11065 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11066 fi
11067 fi
11068 rm -f core conftest.err conftest.$ac_objext \
11069 conftest$ac_exeext conftest.$ac_ext
11070 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11071
11072 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11073 # Warning - without using the other run time loading flags,
11074 # -berok will link without error, but may produce a broken library.
11075 no_undefined_flag_CXX=' ${wl}-bernotok'
11076 allow_undefined_flag_CXX=' ${wl}-berok'
11077 # Exported symbols can be pulled into shared objects from archives
11078 whole_archive_flag_spec_CXX='$convenience'
11079 archive_cmds_need_lc_CXX=yes
11080 # This is similar to how AIX traditionally builds its shared
11081 # libraries.
11082 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11083 fi
11084 fi
11085 ;;
11086
11087 beos*)
11088 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11089 allow_undefined_flag_CXX=unsupported
11090 # Joseph Beckenbach <[email protected]> says some releases of gcc
11091 # support --undefined. This deserves some investigation. FIXME
11092 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11093 else
11094 ld_shlibs_CXX=no
11095 fi
11096 ;;
11097
11098 chorus*)
11099 case $cc_basename in
11100 *)
11101 # FIXME: insert proper C++ library support
11102 ld_shlibs_CXX=no
11103 ;;
11104 esac
11105 ;;
11106
11107 cygwin* | mingw* | pw32* | cegcc*)
11108 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11109 # as there is no search path for DLLs.
11110 hardcode_libdir_flag_spec_CXX='-L$libdir'
11111 allow_undefined_flag_CXX=unsupported
11112 always_export_symbols_CXX=no
11113 enable_shared_with_static_runtimes_CXX=yes
11114
11115 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11116 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'
11117 # If the export-symbols file already is a .def file (1st line
11118 # is EXPORTS), use it as is; otherwise, prepend...
11119 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11120 cp $export_symbols $output_objdir/$soname.def;
11121 else
11122 echo EXPORTS > $output_objdir/$soname.def;
11123 cat $export_symbols >> $output_objdir/$soname.def;
11124 fi~
11125 $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'
11126 else
11127 ld_shlibs_CXX=no
11128 fi
11129 ;;
11130 darwin* | rhapsody*)
11131
11132
11133 archive_cmds_need_lc_CXX=no
11134 hardcode_direct_CXX=no
11135 hardcode_automatic_CXX=yes
11136 hardcode_shlibpath_var_CXX=unsupported
11137 whole_archive_flag_spec_CXX=''
11138 link_all_deplibs_CXX=yes
11139 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11140 case $cc_basename in
11141 ifort*) _lt_dar_can_shared=yes ;;
11142 *) _lt_dar_can_shared=$GCC ;;
11143 esac
11144 if test "$_lt_dar_can_shared" = "yes"; then
11145 output_verbose_link_cmd=echo
11146 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}"
11147 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11148 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}"
11149 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}"
11150 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11151 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}"
11152 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}"
11153 fi
11154
11155 else
11156 ld_shlibs_CXX=no
11157 fi
11158
11159 ;;
11160
11161 dgux*)
11162 case $cc_basename in
11163 ec++*)
11164 # FIXME: insert proper C++ library support
11165 ld_shlibs_CXX=no
11166 ;;
11167 ghcx*)
11168 # Green Hills C++ Compiler
11169 # FIXME: insert proper C++ library support
11170 ld_shlibs_CXX=no
11171 ;;
11172 *)
11173 # FIXME: insert proper C++ library support
11174 ld_shlibs_CXX=no
11175 ;;
11176 esac
11177 ;;
11178
11179 freebsd[12]*)
11180 # C++ shared libraries reported to be fairly broken before
11181 # switch to ELF
11182 ld_shlibs_CXX=no
11183 ;;
11184
11185 freebsd-elf*)
11186 archive_cmds_need_lc_CXX=no
11187 ;;
11188
11189 freebsd* | dragonfly*)
11190 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11191 # conventions
11192 ld_shlibs_CXX=yes
11193 ;;
11194
11195 gnu*)
11196 ;;
11197
11198 hpux9*)
11199 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11200 hardcode_libdir_separator_CXX=:
11201 export_dynamic_flag_spec_CXX='${wl}-E'
11202 hardcode_direct_CXX=yes
11203 hardcode_minus_L_CXX=yes # Not in the search PATH,
11204 # but as the default
11205 # location of the library.
11206
11207 case $cc_basename in
11208 CC*)
11209 # FIXME: insert proper C++ library support
11210 ld_shlibs_CXX=no
11211 ;;
11212 aCC*)
11213 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11214 # Commands to make compiler produce verbose output that lists
11215 # what "hidden" libraries, object files and flags are used when
11216 # linking a shared library.
11217 #
11218 # There doesn't appear to be a way to prevent this compiler from
11219 # explicitly linking system object files so we need to strip them
11220 # from the output so that they don't get included in the library
11221 # dependencies.
11222 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; $ECHO "X$list" | $Xsed'
11223 ;;
11224 *)
11225 if test "$GXX" = yes; then
11226 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11227 else
11228 # FIXME: insert proper C++ library support
11229 ld_shlibs_CXX=no
11230 fi
11231 ;;
11232 esac
11233 ;;
11234
11235 hpux10*|hpux11*)
11236 if test $with_gnu_ld = no; then
11237 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11238 hardcode_libdir_separator_CXX=:
11239
11240 case $host_cpu in
11241 hppa*64*|ia64*)
11242 ;;
11243 *)
11244 export_dynamic_flag_spec_CXX='${wl}-E'
11245 ;;
11246 esac
11247 fi
11248 case $host_cpu in
11249 hppa*64*|ia64*)
11250 hardcode_direct_CXX=no
11251 hardcode_shlibpath_var_CXX=no
11252 ;;
11253 *)
11254 hardcode_direct_CXX=yes
11255 hardcode_direct_absolute_CXX=yes
11256 hardcode_minus_L_CXX=yes # Not in the search PATH,
11257 # but as the default
11258 # location of the library.
11259 ;;
11260 esac
11261
11262 case $cc_basename in
11263 CC*)
11264 # FIXME: insert proper C++ library support
11265 ld_shlibs_CXX=no
11266 ;;
11267 aCC*)
11268 case $host_cpu in
11269 hppa*64*)
11270 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11271 ;;
11272 ia64*)
11273 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11274 ;;
11275 *)
11276 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11277 ;;
11278 esac
11279 # Commands to make compiler produce verbose output that lists
11280 # what "hidden" libraries, object files and flags are used when
11281 # linking a shared library.
11282 #
11283 # There doesn't appear to be a way to prevent this compiler from
11284 # explicitly linking system object files so we need to strip them
11285 # from the output so that they don't get included in the library
11286 # dependencies.
11287 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; $ECHO "X$list" | $Xsed'
11288 ;;
11289 *)
11290 if test "$GXX" = yes; then
11291 if test $with_gnu_ld = no; then
11292 case $host_cpu in
11293 hppa*64*)
11294 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11295 ;;
11296 ia64*)
11297 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11298 ;;
11299 *)
11300 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11301 ;;
11302 esac
11303 fi
11304 else
11305 # FIXME: insert proper C++ library support
11306 ld_shlibs_CXX=no
11307 fi
11308 ;;
11309 esac
11310 ;;
11311
11312 interix[3-9]*)
11313 hardcode_direct_CXX=no
11314 hardcode_shlibpath_var_CXX=no
11315 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11316 export_dynamic_flag_spec_CXX='${wl}-E'
11317 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11318 # Instead, shared libraries are loaded at an image base (0x10000000 by
11319 # default) and relocated if they conflict, which is a slow very memory
11320 # consuming and fragmenting process. To avoid this, we pick a random,
11321 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11322 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11323 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'
11324 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'
11325 ;;
11326 irix5* | irix6*)
11327 case $cc_basename in
11328 CC*)
11329 # SGI C++
11330 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11331
11332 # Archives containing C++ object files must be created using
11333 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11334 # necessary to make sure instantiated templates are included
11335 # in the archive.
11336 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11337 ;;
11338 *)
11339 if test "$GXX" = yes; then
11340 if test "$with_gnu_ld" = no; then
11341 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11342 else
11343 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
11344 fi
11345 fi
11346 link_all_deplibs_CXX=yes
11347 ;;
11348 esac
11349 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11350 hardcode_libdir_separator_CXX=:
11351 inherit_rpath_CXX=yes
11352 ;;
11353
11354 linux* | k*bsd*-gnu)
11355 case $cc_basename in
11356 KCC*)
11357 # Kuck and Associates, Inc. (KAI) C++ Compiler
11358
11359 # KCC will only create a shared library if the output file
11360 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11361 # to its proper name (with version) after linking.
11362 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'
11363 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'
11364 # Commands to make compiler produce verbose output that lists
11365 # what "hidden" libraries, object files and flags are used when
11366 # linking a shared library.
11367 #
11368 # There doesn't appear to be a way to prevent this compiler from
11369 # explicitly linking system object files so we need to strip them
11370 # from the output so that they don't get included in the library
11371 # dependencies.
11372 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; $ECHO "X$list" | $Xsed'
11373
11374 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11375 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11376
11377 # Archives containing C++ object files must be created using
11378 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11379 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11380 ;;
11381 icpc* | ecpc* )
11382 # Intel C++
11383 with_gnu_ld=yes
11384 # version 8.0 and above of icpc choke on multiply defined symbols
11385 # if we add $predep_objects and $postdep_objects, however 7.1 and
11386 # earlier do not add the objects themselves.
11387 case `$CC -V 2>&1` in
11388 *"Version 7."*)
11389 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11390 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'
11391 ;;
11392 *) # Version 8.0 or newer
11393 tmp_idyn=
11394 case $host_cpu in
11395 ia64*) tmp_idyn=' -i_dynamic';;
11396 esac
11397 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11398 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'
11399 ;;
11400 esac
11401 archive_cmds_need_lc_CXX=no
11402 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11403 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11404 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11405 ;;
11406 pgCC* | pgcpp*)
11407 # Portland Group C++ compiler
11408 case `$CC -V` in
11409 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
11410 prelink_cmds_CXX='tpldir=Template.dir~
11411 rm -rf $tpldir~
11412 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
11413 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
11414 old_archive_cmds_CXX='tpldir=Template.dir~
11415 rm -rf $tpldir~
11416 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
11417 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
11418 $RANLIB $oldlib'
11419 archive_cmds_CXX='tpldir=Template.dir~
11420 rm -rf $tpldir~
11421 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
11422 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11423 archive_expsym_cmds_CXX='tpldir=Template.dir~
11424 rm -rf $tpldir~
11425 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
11426 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11427 ;;
11428 *) # Version 6 will use weak symbols
11429 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11430 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'
11431 ;;
11432 esac
11433
11434 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11435 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11436 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11437 ;;
11438 cxx*)
11439 # Compaq C++
11440 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11441 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'
11442
11443 runpath_var=LD_RUN_PATH
11444 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11445 hardcode_libdir_separator_CXX=:
11446
11447 # Commands to make compiler produce verbose output that lists
11448 # what "hidden" libraries, object files and flags are used when
11449 # linking a shared library.
11450 #
11451 # There doesn't appear to be a way to prevent this compiler from
11452 # explicitly linking system object files so we need to strip them
11453 # from the output so that they don't get included in the library
11454 # dependencies.
11455 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
11456 ;;
11457 xl*)
11458 # IBM XL 8.0 on PPC, with GNU ld
11459 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11460 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11461 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11462 if test "x$supports_anon_versioning" = xyes; then
11463 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
11464 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11465 echo "local: *; };" >> $output_objdir/$libname.ver~
11466 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11467 fi
11468 ;;
11469 *)
11470 case `$CC -V 2>&1 | sed 5q` in
11471 *Sun\ C*)
11472 # Sun C++ 5.9
11473 no_undefined_flag_CXX=' -zdefs'
11474 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11475 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'
11476 hardcode_libdir_flag_spec_CXX='-R$libdir'
11477 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11478 compiler_needs_object_CXX=yes
11479
11480 # Not sure whether something based on
11481 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11482 # would be better.
11483 output_verbose_link_cmd='echo'
11484
11485 # Archives containing C++ object files must be created using
11486 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11487 # necessary to make sure instantiated templates are included
11488 # in the archive.
11489 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11490 ;;
11491 esac
11492 ;;
11493 esac
11494 ;;
11495
11496 lynxos*)
11497 # FIXME: insert proper C++ library support
11498 ld_shlibs_CXX=no
11499 ;;
11500
11501 m88k*)
11502 # FIXME: insert proper C++ library support
11503 ld_shlibs_CXX=no
11504 ;;
11505
11506 mvs*)
11507 case $cc_basename in
11508 cxx*)
11509 # FIXME: insert proper C++ library support
11510 ld_shlibs_CXX=no
11511 ;;
11512 *)
11513 # FIXME: insert proper C++ library support
11514 ld_shlibs_CXX=no
11515 ;;
11516 esac
11517 ;;
11518
11519 netbsd*)
11520 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11521 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11522 wlarc=
11523 hardcode_libdir_flag_spec_CXX='-R$libdir'
11524 hardcode_direct_CXX=yes
11525 hardcode_shlibpath_var_CXX=no
11526 fi
11527 # Workaround some broken pre-1.5 toolchains
11528 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11529 ;;
11530
11531 *nto* | *qnx*)
11532 ld_shlibs_CXX=yes
11533 ;;
11534
11535 openbsd2*)
11536 # C++ shared libraries are fairly broken
11537 ld_shlibs_CXX=no
11538 ;;
11539
11540 openbsd*)
11541 if test -f /usr/libexec/ld.so; then
11542 hardcode_direct_CXX=yes
11543 hardcode_shlibpath_var_CXX=no
11544 hardcode_direct_absolute_CXX=yes
11545 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11546 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11547 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11548 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11549 export_dynamic_flag_spec_CXX='${wl}-E'
11550 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11551 fi
11552 output_verbose_link_cmd=echo
11553 else
11554 ld_shlibs_CXX=no
11555 fi
11556 ;;
11557
11558 osf3* | osf4* | osf5*)
11559 case $cc_basename in
11560 KCC*)
11561 # Kuck and Associates, Inc. (KAI) C++ Compiler
11562
11563 # KCC will only create a shared library if the output file
11564 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11565 # to its proper name (with version) after linking.
11566 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'
11567
11568 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11569 hardcode_libdir_separator_CXX=:
11570
11571 # Archives containing C++ object files must be created using
11572 # the KAI C++ compiler.
11573 case $host in
11574 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
11575 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
11576 esac
11577 ;;
11578 RCC*)
11579 # Rational C++ 2.4.1
11580 # FIXME: insert proper C++ library support
11581 ld_shlibs_CXX=no
11582 ;;
11583 cxx*)
11584 case $host in
11585 osf3*)
11586 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11587 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11588 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11589 ;;
11590 *)
11591 allow_undefined_flag_CXX=' -expect_unresolved \*'
11592 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11593 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11594 echo "-hidden">> $lib.exp~
11595 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
11596 $RM $lib.exp'
11597 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11598 ;;
11599 esac
11600
11601 hardcode_libdir_separator_CXX=:
11602
11603 # Commands to make compiler produce verbose output that lists
11604 # what "hidden" libraries, object files and flags are used when
11605 # linking a shared library.
11606 #
11607 # There doesn't appear to be a way to prevent this compiler from
11608 # explicitly linking system object files so we need to strip them
11609 # from the output so that they don't get included in the library
11610 # dependencies.
11611 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
11612 ;;
11613 *)
11614 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11615 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11616 case $host in
11617 osf3*)
11618 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11619 ;;
11620 *)
11621 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11622 ;;
11623 esac
11624
11625 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11626 hardcode_libdir_separator_CXX=:
11627
11628 # Commands to make compiler produce verbose output that lists
11629 # what "hidden" libraries, object files and flags are used when
11630 # linking a shared library.
11631 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11632
11633 else
11634 # FIXME: insert proper C++ library support
11635 ld_shlibs_CXX=no
11636 fi
11637 ;;
11638 esac
11639 ;;
11640
11641 psos*)
11642 # FIXME: insert proper C++ library support
11643 ld_shlibs_CXX=no
11644 ;;
11645
11646 sunos4*)
11647 case $cc_basename in
11648 CC*)
11649 # Sun C++ 4.x
11650 # FIXME: insert proper C++ library support
11651 ld_shlibs_CXX=no
11652 ;;
11653 lcc*)
11654 # Lucid
11655 # FIXME: insert proper C++ library support
11656 ld_shlibs_CXX=no
11657 ;;
11658 *)
11659 # FIXME: insert proper C++ library support
11660 ld_shlibs_CXX=no
11661 ;;
11662 esac
11663 ;;
11664
11665 solaris*)
11666 case $cc_basename in
11667 CC*)
11668 # Sun C++ 4.2, 5.x and Centerline C++
11669 archive_cmds_need_lc_CXX=yes
11670 no_undefined_flag_CXX=' -zdefs'
11671 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11672 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11673 $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'
11674
11675 hardcode_libdir_flag_spec_CXX='-R$libdir'
11676 hardcode_shlibpath_var_CXX=no
11677 case $host_os in
11678 solaris2.[0-5] | solaris2.[0-5].*) ;;
11679 *)
11680 # The compiler driver will combine and reorder linker options,
11681 # but understands `-z linker_flag'.
11682 # Supported since Solaris 2.6 (maybe 2.5.1?)
11683 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11684 ;;
11685 esac
11686 link_all_deplibs_CXX=yes
11687
11688 output_verbose_link_cmd='echo'
11689
11690 # Archives containing C++ object files must be created using
11691 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11692 # necessary to make sure instantiated templates are included
11693 # in the archive.
11694 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11695 ;;
11696 gcx*)
11697 # Green Hills C++ Compiler
11698 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11699
11700 # The C++ compiler must be used to create the archive.
11701 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11702 ;;
11703 *)
11704 # GNU C++ compiler with Solaris linker
11705 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11706 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11707 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
11708 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11709 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11710 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
11711
11712 # Commands to make compiler produce verbose output that lists
11713 # what "hidden" libraries, object files and flags are used when
11714 # linking a shared library.
11715 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11716 else
11717 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11718 # platform.
11719 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11720 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11721 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
11722
11723 # Commands to make compiler produce verbose output that lists
11724 # what "hidden" libraries, object files and flags are used when
11725 # linking a shared library.
11726 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11727 fi
11728
11729 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11730 case $host_os in
11731 solaris2.[0-5] | solaris2.[0-5].*) ;;
11732 *)
11733 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11734 ;;
11735 esac
11736 fi
11737 ;;
11738 esac
11739 ;;
11740
11741 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11742 no_undefined_flag_CXX='${wl}-z,text'
11743 archive_cmds_need_lc_CXX=no
11744 hardcode_shlibpath_var_CXX=no
11745 runpath_var='LD_RUN_PATH'
11746
11747 case $cc_basename in
11748 CC*)
11749 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11750 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11751 ;;
11752 *)
11753 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11754 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11755 ;;
11756 esac
11757 ;;
11758
11759 sysv5* | sco3.2v5* | sco5v6*)
11760 # Note: We can NOT use -z defs as we might desire, because we do not
11761 # link with -lc, and that would cause any symbols used from libc to
11762 # always be unresolved, which means just about no library would
11763 # ever link correctly. If we're not using GNU ld we use -z text
11764 # though, which does catch some bad symbols but isn't as heavy-handed
11765 # as -z defs.
11766 no_undefined_flag_CXX='${wl}-z,text'
11767 allow_undefined_flag_CXX='${wl}-z,nodefs'
11768 archive_cmds_need_lc_CXX=no
11769 hardcode_shlibpath_var_CXX=no
11770 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
11771 hardcode_libdir_separator_CXX=':'
11772 link_all_deplibs_CXX=yes
11773 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11774 runpath_var='LD_RUN_PATH'
11775
11776 case $cc_basename in
11777 CC*)
11778 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11779 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11780 ;;
11781 *)
11782 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11783 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11784 ;;
11785 esac
11786 ;;
11787
11788 tandem*)
11789 case $cc_basename in
11790 NCC*)
11791 # NonStop-UX NCC 3.20
11792 # FIXME: insert proper C++ library support
11793 ld_shlibs_CXX=no
11794 ;;
11795 *)
11796 # FIXME: insert proper C++ library support
11797 ld_shlibs_CXX=no
11798 ;;
11799 esac
11800 ;;
11801
11802 vxworks*)
11803 # FIXME: insert proper C++ library support
11804 ld_shlibs_CXX=no
11805 ;;
11806
11807 *)
11808 # FIXME: insert proper C++ library support
11809 ld_shlibs_CXX=no
11810 ;;
11811 esac
11812
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11814 $as_echo "$ld_shlibs_CXX" >&6; }
11815 test "$ld_shlibs_CXX" = no && can_build_shared=no
11816
11817 GCC_CXX="$GXX"
11818 LD_CXX="$LD"
11819
11820 ## CAVEAT EMPTOR:
11821 ## There is no encapsulation within the following macros, do not change
11822 ## the running order or otherwise move them around unless you know exactly
11823 ## what you are doing...
11824 # Dependencies to place before and after the object being linked:
11825 predep_objects_CXX=
11826 postdep_objects_CXX=
11827 predeps_CXX=
11828 postdeps_CXX=
11829 compiler_lib_search_path_CXX=
11830
11831 cat > conftest.$ac_ext <<_LT_EOF
11832 class Foo
11833 {
11834 public:
11835 Foo (void) { a = 0; }
11836 private:
11837 int a;
11838 };
11839 _LT_EOF
11840
11841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11842 (eval $ac_compile) 2>&5
11843 ac_status=$?
11844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11845 test $ac_status = 0; }; then
11846 # Parse the compiler output and extract the necessary
11847 # objects, libraries and library flags.
11848
11849 # Sentinel used to keep track of whether or not we are before
11850 # the conftest object file.
11851 pre_test_object_deps_done=no
11852
11853 for p in `eval "$output_verbose_link_cmd"`; do
11854 case $p in
11855
11856 -L* | -R* | -l*)
11857 # Some compilers place space between "-{L,R}" and the path.
11858 # Remove the space.
11859 if test $p = "-L" ||
11860 test $p = "-R"; then
11861 prev=$p
11862 continue
11863 else
11864 prev=
11865 fi
11866
11867 if test "$pre_test_object_deps_done" = no; then
11868 case $p in
11869 -L* | -R*)
11870 # Internal compiler library paths should come after those
11871 # provided the user. The postdeps already come after the
11872 # user supplied libs so there is no need to process them.
11873 if test -z "$compiler_lib_search_path_CXX"; then
11874 compiler_lib_search_path_CXX="${prev}${p}"
11875 else
11876 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11877 fi
11878 ;;
11879 # The "-l" case would never come before the object being
11880 # linked, so don't bother handling this case.
11881 esac
11882 else
11883 if test -z "$postdeps_CXX"; then
11884 postdeps_CXX="${prev}${p}"
11885 else
11886 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11887 fi
11888 fi
11889 ;;
11890
11891 *.$objext)
11892 # This assumes that the test object file only shows up
11893 # once in the compiler output.
11894 if test "$p" = "conftest.$objext"; then
11895 pre_test_object_deps_done=yes
11896 continue
11897 fi
11898
11899 if test "$pre_test_object_deps_done" = no; then
11900 if test -z "$predep_objects_CXX"; then
11901 predep_objects_CXX="$p"
11902 else
11903 predep_objects_CXX="$predep_objects_CXX $p"
11904 fi
11905 else
11906 if test -z "$postdep_objects_CXX"; then
11907 postdep_objects_CXX="$p"
11908 else
11909 postdep_objects_CXX="$postdep_objects_CXX $p"
11910 fi
11911 fi
11912 ;;
11913
11914 *) ;; # Ignore the rest.
11915
11916 esac
11917 done
11918
11919 # Clean up.
11920 rm -f a.out a.exe
11921 else
11922 echo "libtool.m4: error: problem compiling CXX test program"
11923 fi
11924
11925 $RM -f confest.$objext
11926
11927 # PORTME: override above test on systems where it is broken
11928 case $host_os in
11929 interix[3-9]*)
11930 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11931 # hack all around it, let's just trust "g++" to DTRT.
11932 predep_objects_CXX=
11933 postdep_objects_CXX=
11934 postdeps_CXX=
11935 ;;
11936
11937 linux*)
11938 case `$CC -V 2>&1 | sed 5q` in
11939 *Sun\ C*)
11940 # Sun C++ 5.9
11941
11942 # The more standards-conforming stlport4 library is
11943 # incompatible with the Cstd library. Avoid specifying
11944 # it if it's in CXXFLAGS. Ignore libCrun as
11945 # -library=stlport4 depends on it.
11946 case " $CXX $CXXFLAGS " in
11947 *" -library=stlport4 "*)
11948 solaris_use_stlport4=yes
11949 ;;
11950 esac
11951
11952 if test "$solaris_use_stlport4" != yes; then
11953 postdeps_CXX='-library=Cstd -library=Crun'
11954 fi
11955 ;;
11956 esac
11957 ;;
11958
11959 solaris*)
11960 case $cc_basename in
11961 CC*)
11962 # The more standards-conforming stlport4 library is
11963 # incompatible with the Cstd library. Avoid specifying
11964 # it if it's in CXXFLAGS. Ignore libCrun as
11965 # -library=stlport4 depends on it.
11966 case " $CXX $CXXFLAGS " in
11967 *" -library=stlport4 "*)
11968 solaris_use_stlport4=yes
11969 ;;
11970 esac
11971
11972 # Adding this requires a known-good setup of shared libraries for
11973 # Sun compiler versions before 5.6, else PIC objects from an old
11974 # archive will be linked into the output, leading to subtle bugs.
11975 if test "$solaris_use_stlport4" != yes; then
11976 postdeps_CXX='-library=Cstd -library=Crun'
11977 fi
11978 ;;
11979 esac
11980 ;;
11981 esac
11982
11983
11984 case " $postdeps_CXX " in
11985 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11986 esac
11987 compiler_lib_search_dirs_CXX=
11988 if test -n "${compiler_lib_search_path_CXX}"; then
11989 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11990 fi
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022 lt_prog_compiler_wl_CXX=
12023 lt_prog_compiler_pic_CXX=
12024 lt_prog_compiler_static_CXX=
12025
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12027 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12028
12029 # C++ specific cases for pic, static, wl, etc.
12030 if test "$GXX" = yes; then
12031 lt_prog_compiler_wl_CXX='-Wl,'
12032 lt_prog_compiler_static_CXX='-static'
12033
12034 case $host_os in
12035 aix*)
12036 # All AIX code is PIC.
12037 if test "$host_cpu" = ia64; then
12038 # AIX 5 now supports IA64 processor
12039 lt_prog_compiler_static_CXX='-Bstatic'
12040 fi
12041 ;;
12042
12043 amigaos*)
12044 case $host_cpu in
12045 powerpc)
12046 # see comment about AmigaOS4 .so support
12047 lt_prog_compiler_pic_CXX='-fPIC'
12048 ;;
12049 m68k)
12050 # FIXME: we need at least 68020 code to build shared libraries, but
12051 # adding the `-m68020' flag to GCC prevents building anything better,
12052 # like `-m68040'.
12053 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12054 ;;
12055 esac
12056 ;;
12057
12058 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12059 # PIC is the default for these OSes.
12060 ;;
12061 mingw* | cygwin* | os2* | pw32* | cegcc*)
12062 # This hack is so that the source file can tell whether it is being
12063 # built for inclusion in a dll (and should export symbols for example).
12064 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12065 # (--disable-auto-import) libraries
12066 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12067 ;;
12068 darwin* | rhapsody*)
12069 # PIC is the default on this platform
12070 # Common symbols not allowed in MH_DYLIB files
12071 lt_prog_compiler_pic_CXX='-fno-common'
12072 ;;
12073 *djgpp*)
12074 # DJGPP does not support shared libraries at all
12075 lt_prog_compiler_pic_CXX=
12076 ;;
12077 interix[3-9]*)
12078 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12079 # Instead, we relocate shared libraries at runtime.
12080 ;;
12081 sysv4*MP*)
12082 if test -d /usr/nec; then
12083 lt_prog_compiler_pic_CXX=-Kconform_pic
12084 fi
12085 ;;
12086 hpux*)
12087 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12088 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12089 # sets the default TLS model and affects inlining.
12090 case $host_cpu in
12091 hppa*64*)
12092 ;;
12093 *)
12094 lt_prog_compiler_pic_CXX='-fPIC'
12095 ;;
12096 esac
12097 ;;
12098 *qnx* | *nto*)
12099 # QNX uses GNU C++, but need to define -shared option too, otherwise
12100 # it will coredump.
12101 lt_prog_compiler_pic_CXX='-fPIC -shared'
12102 ;;
12103 *)
12104 lt_prog_compiler_pic_CXX='-fPIC'
12105 ;;
12106 esac
12107 else
12108 case $host_os in
12109 aix[4-9]*)
12110 # All AIX code is PIC.
12111 if test "$host_cpu" = ia64; then
12112 # AIX 5 now supports IA64 processor
12113 lt_prog_compiler_static_CXX='-Bstatic'
12114 else
12115 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12116 fi
12117 ;;
12118 chorus*)
12119 case $cc_basename in
12120 cxch68*)
12121 # Green Hills C++ Compiler
12122 # _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"
12123 ;;
12124 esac
12125 ;;
12126 dgux*)
12127 case $cc_basename in
12128 ec++*)
12129 lt_prog_compiler_pic_CXX='-KPIC'
12130 ;;
12131 ghcx*)
12132 # Green Hills C++ Compiler
12133 lt_prog_compiler_pic_CXX='-pic'
12134 ;;
12135 *)
12136 ;;
12137 esac
12138 ;;
12139 freebsd* | dragonfly*)
12140 # FreeBSD uses GNU C++
12141 ;;
12142 hpux9* | hpux10* | hpux11*)
12143 case $cc_basename in
12144 CC*)
12145 lt_prog_compiler_wl_CXX='-Wl,'
12146 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12147 if test "$host_cpu" != ia64; then
12148 lt_prog_compiler_pic_CXX='+Z'
12149 fi
12150 ;;
12151 aCC*)
12152 lt_prog_compiler_wl_CXX='-Wl,'
12153 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12154 case $host_cpu in
12155 hppa*64*|ia64*)
12156 # +Z the default
12157 ;;
12158 *)
12159 lt_prog_compiler_pic_CXX='+Z'
12160 ;;
12161 esac
12162 ;;
12163 *)
12164 ;;
12165 esac
12166 ;;
12167 interix*)
12168 # This is c89, which is MS Visual C++ (no shared libs)
12169 # Anyone wants to do a port?
12170 ;;
12171 irix5* | irix6* | nonstopux*)
12172 case $cc_basename in
12173 CC*)
12174 lt_prog_compiler_wl_CXX='-Wl,'
12175 lt_prog_compiler_static_CXX='-non_shared'
12176 # CC pic flag -KPIC is the default.
12177 ;;
12178 *)
12179 ;;
12180 esac
12181 ;;
12182 linux* | k*bsd*-gnu)
12183 case $cc_basename in
12184 KCC*)
12185 # KAI C++ Compiler
12186 lt_prog_compiler_wl_CXX='--backend -Wl,'
12187 lt_prog_compiler_pic_CXX='-fPIC'
12188 ;;
12189 ecpc* )
12190 # old Intel C++ for x86_64 which still supported -KPIC.
12191 lt_prog_compiler_wl_CXX='-Wl,'
12192 lt_prog_compiler_pic_CXX='-KPIC'
12193 lt_prog_compiler_static_CXX='-static'
12194 ;;
12195 icpc* )
12196 # Intel C++, used to be incompatible with GCC.
12197 # ICC 10 doesn't accept -KPIC any more.
12198 lt_prog_compiler_wl_CXX='-Wl,'
12199 lt_prog_compiler_pic_CXX='-fPIC'
12200 lt_prog_compiler_static_CXX='-static'
12201 ;;
12202 pgCC* | pgcpp*)
12203 # Portland Group C++ compiler
12204 lt_prog_compiler_wl_CXX='-Wl,'
12205 lt_prog_compiler_pic_CXX='-fpic'
12206 lt_prog_compiler_static_CXX='-Bstatic'
12207 ;;
12208 cxx*)
12209 # Compaq C++
12210 # Make sure the PIC flag is empty. It appears that all Alpha
12211 # Linux and Compaq Tru64 Unix objects are PIC.
12212 lt_prog_compiler_pic_CXX=
12213 lt_prog_compiler_static_CXX='-non_shared'
12214 ;;
12215 xlc* | xlC*)
12216 # IBM XL 8.0 on PPC
12217 lt_prog_compiler_wl_CXX='-Wl,'
12218 lt_prog_compiler_pic_CXX='-qpic'
12219 lt_prog_compiler_static_CXX='-qstaticlink'
12220 ;;
12221 *)
12222 case `$CC -V 2>&1 | sed 5q` in
12223 *Sun\ C*)
12224 # Sun C++ 5.9
12225 lt_prog_compiler_pic_CXX='-KPIC'
12226 lt_prog_compiler_static_CXX='-Bstatic'
12227 lt_prog_compiler_wl_CXX='-Qoption ld '
12228 ;;
12229 esac
12230 ;;
12231 esac
12232 ;;
12233 lynxos*)
12234 ;;
12235 m88k*)
12236 ;;
12237 mvs*)
12238 case $cc_basename in
12239 cxx*)
12240 lt_prog_compiler_pic_CXX='-W c,exportall'
12241 ;;
12242 *)
12243 ;;
12244 esac
12245 ;;
12246 netbsd*)
12247 ;;
12248 *qnx* | *nto*)
12249 # QNX uses GNU C++, but need to define -shared option too, otherwise
12250 # it will coredump.
12251 lt_prog_compiler_pic_CXX='-fPIC -shared'
12252 ;;
12253 osf3* | osf4* | osf5*)
12254 case $cc_basename in
12255 KCC*)
12256 lt_prog_compiler_wl_CXX='--backend -Wl,'
12257 ;;
12258 RCC*)
12259 # Rational C++ 2.4.1
12260 lt_prog_compiler_pic_CXX='-pic'
12261 ;;
12262 cxx*)
12263 # Digital/Compaq C++
12264 lt_prog_compiler_wl_CXX='-Wl,'
12265 # Make sure the PIC flag is empty. It appears that all Alpha
12266 # Linux and Compaq Tru64 Unix objects are PIC.
12267 lt_prog_compiler_pic_CXX=
12268 lt_prog_compiler_static_CXX='-non_shared'
12269 ;;
12270 *)
12271 ;;
12272 esac
12273 ;;
12274 psos*)
12275 ;;
12276 solaris*)
12277 case $cc_basename in
12278 CC*)
12279 # Sun C++ 4.2, 5.x and Centerline C++
12280 lt_prog_compiler_pic_CXX='-KPIC'
12281 lt_prog_compiler_static_CXX='-Bstatic'
12282 lt_prog_compiler_wl_CXX='-Qoption ld '
12283 ;;
12284 gcx*)
12285 # Green Hills C++ Compiler
12286 lt_prog_compiler_pic_CXX='-PIC'
12287 ;;
12288 *)
12289 ;;
12290 esac
12291 ;;
12292 sunos4*)
12293 case $cc_basename in
12294 CC*)
12295 # Sun C++ 4.x
12296 lt_prog_compiler_pic_CXX='-pic'
12297 lt_prog_compiler_static_CXX='-Bstatic'
12298 ;;
12299 lcc*)
12300 # Lucid
12301 lt_prog_compiler_pic_CXX='-pic'
12302 ;;
12303 *)
12304 ;;
12305 esac
12306 ;;
12307 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12308 case $cc_basename in
12309 CC*)
12310 lt_prog_compiler_wl_CXX='-Wl,'
12311 lt_prog_compiler_pic_CXX='-KPIC'
12312 lt_prog_compiler_static_CXX='-Bstatic'
12313 ;;
12314 esac
12315 ;;
12316 tandem*)
12317 case $cc_basename in
12318 NCC*)
12319 # NonStop-UX NCC 3.20
12320 lt_prog_compiler_pic_CXX='-KPIC'
12321 ;;
12322 *)
12323 ;;
12324 esac
12325 ;;
12326 vxworks*)
12327 ;;
12328 *)
12329 lt_prog_compiler_can_build_shared_CXX=no
12330 ;;
12331 esac
12332 fi
12333
12334 case $host_os in
12335 # For platforms which do not support PIC, -DPIC is meaningless:
12336 *djgpp*)
12337 lt_prog_compiler_pic_CXX=
12338 ;;
12339 *)
12340 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12341 ;;
12342 esac
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12344 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12345
12346
12347
12348 #
12349 # Check to make sure the PIC flag actually works.
12350 #
12351 if test -n "$lt_prog_compiler_pic_CXX"; then
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12353 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12354 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
12355 $as_echo_n "(cached) " >&6
12356 else
12357 lt_cv_prog_compiler_pic_works_CXX=no
12358 ac_outfile=conftest.$ac_objext
12359 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12360 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12361 # Insert the option either (1) after the last *FLAGS variable, or
12362 # (2) before a word containing "conftest.", or (3) at the end.
12363 # Note that $ac_compile itself does not contain backslashes and begins
12364 # with a dollar sign (not a hyphen), so the echo should work correctly.
12365 # The option is referenced via a variable to avoid confusing sed.
12366 lt_compile=`echo "$ac_compile" | $SED \
12367 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12368 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12369 -e 's:$: $lt_compiler_flag:'`
12370 (eval echo "\"\$as_me:12370: $lt_compile\"" >&5)
12371 (eval "$lt_compile" 2>conftest.err)
12372 ac_status=$?
12373 cat conftest.err >&5
12374 echo "$as_me:12374: \$? = $ac_status" >&5
12375 if (exit $ac_status) && test -s "$ac_outfile"; then
12376 # The compiler can only warn and ignore the option if not recognized
12377 # So say no if there are warnings other than the usual output.
12378 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12379 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12380 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12381 lt_cv_prog_compiler_pic_works_CXX=yes
12382 fi
12383 fi
12384 $RM conftest*
12385
12386 fi
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12388 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12389
12390 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12391 case $lt_prog_compiler_pic_CXX in
12392 "" | " "*) ;;
12393 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12394 esac
12395 else
12396 lt_prog_compiler_pic_CXX=
12397 lt_prog_compiler_can_build_shared_CXX=no
12398 fi
12399
12400 fi
12401
12402
12403
12404 #
12405 # Check to make sure the static flag actually works.
12406 #
12407 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12409 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12410 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
12411 $as_echo_n "(cached) " >&6
12412 else
12413 lt_cv_prog_compiler_static_works_CXX=no
12414 save_LDFLAGS="$LDFLAGS"
12415 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12416 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12417 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12418 # The linker can only warn and ignore the option if not recognized
12419 # So say no if there are warnings
12420 if test -s conftest.err; then
12421 # Append any errors to the config.log.
12422 cat conftest.err 1>&5
12423 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12424 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12425 if diff conftest.exp conftest.er2 >/dev/null; then
12426 lt_cv_prog_compiler_static_works_CXX=yes
12427 fi
12428 else
12429 lt_cv_prog_compiler_static_works_CXX=yes
12430 fi
12431 fi
12432 $RM -r conftest*
12433 LDFLAGS="$save_LDFLAGS"
12434
12435 fi
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12437 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12438
12439 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12440 :
12441 else
12442 lt_prog_compiler_static_CXX=
12443 fi
12444
12445
12446
12447
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12449 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12450 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
12451 $as_echo_n "(cached) " >&6
12452 else
12453 lt_cv_prog_compiler_c_o_CXX=no
12454 $RM -r conftest 2>/dev/null
12455 mkdir conftest
12456 cd conftest
12457 mkdir out
12458 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12459
12460 lt_compiler_flag="-o out/conftest2.$ac_objext"
12461 # Insert the option either (1) after the last *FLAGS variable, or
12462 # (2) before a word containing "conftest.", or (3) at the end.
12463 # Note that $ac_compile itself does not contain backslashes and begins
12464 # with a dollar sign (not a hyphen), so the echo should work correctly.
12465 lt_compile=`echo "$ac_compile" | $SED \
12466 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12467 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12468 -e 's:$: $lt_compiler_flag:'`
12469 (eval echo "\"\$as_me:12469: $lt_compile\"" >&5)
12470 (eval "$lt_compile" 2>out/conftest.err)
12471 ac_status=$?
12472 cat out/conftest.err >&5
12473 echo "$as_me:12473: \$? = $ac_status" >&5
12474 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12475 then
12476 # The compiler can only warn and ignore the option if not recognized
12477 # So say no if there are warnings
12478 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12479 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12480 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12481 lt_cv_prog_compiler_c_o_CXX=yes
12482 fi
12483 fi
12484 chmod u+w . 2>&5
12485 $RM conftest*
12486 # SGI C++ compiler will create directory out/ii_files/ for
12487 # template instantiation
12488 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12489 $RM out/* && rmdir out
12490 cd ..
12491 $RM -r conftest
12492 $RM conftest*
12493
12494 fi
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12496 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12497
12498
12499
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12501 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12502 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
12503 $as_echo_n "(cached) " >&6
12504 else
12505 lt_cv_prog_compiler_c_o_CXX=no
12506 $RM -r conftest 2>/dev/null
12507 mkdir conftest
12508 cd conftest
12509 mkdir out
12510 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12511
12512 lt_compiler_flag="-o out/conftest2.$ac_objext"
12513 # Insert the option either (1) after the last *FLAGS variable, or
12514 # (2) before a word containing "conftest.", or (3) at the end.
12515 # Note that $ac_compile itself does not contain backslashes and begins
12516 # with a dollar sign (not a hyphen), so the echo should work correctly.
12517 lt_compile=`echo "$ac_compile" | $SED \
12518 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12519 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12520 -e 's:$: $lt_compiler_flag:'`
12521 (eval echo "\"\$as_me:12521: $lt_compile\"" >&5)
12522 (eval "$lt_compile" 2>out/conftest.err)
12523 ac_status=$?
12524 cat out/conftest.err >&5
12525 echo "$as_me:12525: \$? = $ac_status" >&5
12526 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12527 then
12528 # The compiler can only warn and ignore the option if not recognized
12529 # So say no if there are warnings
12530 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12531 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12532 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12533 lt_cv_prog_compiler_c_o_CXX=yes
12534 fi
12535 fi
12536 chmod u+w . 2>&5
12537 $RM conftest*
12538 # SGI C++ compiler will create directory out/ii_files/ for
12539 # template instantiation
12540 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12541 $RM out/* && rmdir out
12542 cd ..
12543 $RM -r conftest
12544 $RM conftest*
12545
12546 fi
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12548 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12549
12550
12551
12552
12553 hard_links="nottested"
12554 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12555 # do not overwrite the value of need_locks provided by the user
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12557 $as_echo_n "checking if we can lock with hard links... " >&6; }
12558 hard_links=yes
12559 $RM conftest*
12560 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12561 touch conftest.a
12562 ln conftest.a conftest.b 2>&5 || hard_links=no
12563 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12565 $as_echo "$hard_links" >&6; }
12566 if test "$hard_links" = no; then
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12568 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12569 need_locks=warn
12570 fi
12571 else
12572 need_locks=no
12573 fi
12574
12575
12576
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12578 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12579
12580 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12581 case $host_os in
12582 aix[4-9]*)
12583 # If we're using GNU nm, then we don't want the "-C" option.
12584 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12585 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12586 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12587 else
12588 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12589 fi
12590 ;;
12591 pw32*)
12592 export_symbols_cmds_CXX="$ltdll_cmds"
12593 ;;
12594 cygwin* | mingw* | cegcc*)
12595 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
12596 ;;
12597 *)
12598 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12599 ;;
12600 esac
12601 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12602
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12604 $as_echo "$ld_shlibs_CXX" >&6; }
12605 test "$ld_shlibs_CXX" = no && can_build_shared=no
12606
12607 with_gnu_ld_CXX=$with_gnu_ld
12608
12609
12610
12611
12612
12613
12614 #
12615 # Do we need to explicitly link libc?
12616 #
12617 case "x$archive_cmds_need_lc_CXX" in
12618 x|xyes)
12619 # Assume -lc should be added
12620 archive_cmds_need_lc_CXX=yes
12621
12622 if test "$enable_shared" = yes && test "$GCC" = yes; then
12623 case $archive_cmds_CXX in
12624 *'~'*)
12625 # FIXME: we may have to deal with multi-command sequences.
12626 ;;
12627 '$CC '*)
12628 # Test whether the compiler implicitly links with -lc since on some
12629 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12630 # to ld, don't add -lc before -lgcc.
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12632 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12633 $RM conftest*
12634 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12635
12636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12637 (eval $ac_compile) 2>&5
12638 ac_status=$?
12639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12640 test $ac_status = 0; } 2>conftest.err; then
12641 soname=conftest
12642 lib=conftest
12643 libobjs=conftest.$ac_objext
12644 deplibs=
12645 wl=$lt_prog_compiler_wl_CXX
12646 pic_flag=$lt_prog_compiler_pic_CXX
12647 compiler_flags=-v
12648 linker_flags=-v
12649 verstring=
12650 output_objdir=.
12651 libname=conftest
12652 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12653 allow_undefined_flag_CXX=
12654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12655 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12656 ac_status=$?
12657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12658 test $ac_status = 0; }
12659 then
12660 archive_cmds_need_lc_CXX=no
12661 else
12662 archive_cmds_need_lc_CXX=yes
12663 fi
12664 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12665 else
12666 cat conftest.err 1>&5
12667 fi
12668 $RM conftest*
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12670 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12671 ;;
12672 esac
12673 fi
12674 ;;
12675 esac
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12741 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12742
12743 library_names_spec=
12744 libname_spec='lib$name'
12745 soname_spec=
12746 shrext_cmds=".so"
12747 postinstall_cmds=
12748 postuninstall_cmds=
12749 finish_cmds=
12750 finish_eval=
12751 shlibpath_var=
12752 shlibpath_overrides_runpath=unknown
12753 version_type=none
12754 dynamic_linker="$host_os ld.so"
12755 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12756 need_lib_prefix=unknown
12757 hardcode_into_libs=no
12758
12759 # when you set need_version to no, make sure it does not cause -set_version
12760 # flags to be left without arguments
12761 need_version=unknown
12762
12763 case $host_os in
12764 aix3*)
12765 version_type=linux
12766 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12767 shlibpath_var=LIBPATH
12768
12769 # AIX 3 has no versioning support, so we append a major version to the name.
12770 soname_spec='${libname}${release}${shared_ext}$major'
12771 ;;
12772
12773 aix[4-9]*)
12774 version_type=linux
12775 need_lib_prefix=no
12776 need_version=no
12777 hardcode_into_libs=yes
12778 if test "$host_cpu" = ia64; then
12779 # AIX 5 supports IA64
12780 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12781 shlibpath_var=LD_LIBRARY_PATH
12782 else
12783 # With GCC up to 2.95.x, collect2 would create an import file
12784 # for dependence libraries. The import file would start with
12785 # the line `#! .'. This would cause the generated library to
12786 # depend on `.', always an invalid library. This was fixed in
12787 # development snapshots of GCC prior to 3.0.
12788 case $host_os in
12789 aix4 | aix4.[01] | aix4.[01].*)
12790 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12791 echo ' yes '
12792 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12793 :
12794 else
12795 can_build_shared=no
12796 fi
12797 ;;
12798 esac
12799 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12800 # soname into executable. Probably we can add versioning support to
12801 # collect2, so additional links can be useful in future.
12802 if test "$aix_use_runtimelinking" = yes; then
12803 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12804 # instead of lib<name>.a to let people know that these are not
12805 # typical AIX shared libraries.
12806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12807 else
12808 # We preserve .a as extension for shared libraries through AIX4.2
12809 # and later when we are not doing run time linking.
12810 library_names_spec='${libname}${release}.a $libname.a'
12811 soname_spec='${libname}${release}${shared_ext}$major'
12812 fi
12813 shlibpath_var=LIBPATH
12814 fi
12815 ;;
12816
12817 amigaos*)
12818 case $host_cpu in
12819 powerpc)
12820 # Since July 2007 AmigaOS4 officially supports .so libraries.
12821 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12823 ;;
12824 m68k)
12825 library_names_spec='$libname.ixlibrary $libname.a'
12826 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12827 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12828 ;;
12829 esac
12830 ;;
12831
12832 beos*)
12833 library_names_spec='${libname}${shared_ext}'
12834 dynamic_linker="$host_os ld.so"
12835 shlibpath_var=LIBRARY_PATH
12836 ;;
12837
12838 bsdi[45]*)
12839 version_type=linux
12840 need_version=no
12841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12842 soname_spec='${libname}${release}${shared_ext}$major'
12843 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12844 shlibpath_var=LD_LIBRARY_PATH
12845 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12846 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12847 # the default ld.so.conf also contains /usr/contrib/lib and
12848 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12849 # libtool to hard-code these into programs
12850 ;;
12851
12852 cygwin* | mingw* | pw32* | cegcc*)
12853 version_type=windows
12854 shrext_cmds=".dll"
12855 need_version=no
12856 need_lib_prefix=no
12857
12858 case $GCC,$host_os in
12859 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12860 library_names_spec='$libname.dll.a'
12861 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12862 postinstall_cmds='base_file=`basename \${file}`~
12863 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12864 dldir=$destdir/`dirname \$dlpath`~
12865 test -d \$dldir || mkdir -p \$dldir~
12866 $install_prog $dir/$dlname \$dldir/$dlname~
12867 chmod a+x \$dldir/$dlname~
12868 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12869 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12870 fi'
12871 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12872 dlpath=$dir/\$dldll~
12873 $RM \$dlpath'
12874 shlibpath_overrides_runpath=yes
12875
12876 case $host_os in
12877 cygwin*)
12878 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12879 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12880 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12881 ;;
12882 mingw* | cegcc*)
12883 # MinGW DLLs use traditional 'lib' prefix
12884 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12885 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12886 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12887 # It is most probably a Windows format PATH printed by
12888 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12889 # path with ; separators, and with drive letters. We can handle the
12890 # drive letters (cygwin fileutils understands them), so leave them,
12891 # especially as we might pass files found there to a mingw objdump,
12892 # which wouldn't understand a cygwinified path. Ahh.
12893 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12894 else
12895 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12896 fi
12897 ;;
12898 pw32*)
12899 # pw32 DLLs use 'pw' prefix rather than 'lib'
12900 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12901 ;;
12902 esac
12903 ;;
12904
12905 *)
12906 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12907 ;;
12908 esac
12909 dynamic_linker='Win32 ld.exe'
12910 # FIXME: first we should search . and the directory the executable is in
12911 shlibpath_var=PATH
12912 ;;
12913
12914 darwin* | rhapsody*)
12915 dynamic_linker="$host_os dyld"
12916 version_type=darwin
12917 need_lib_prefix=no
12918 need_version=no
12919 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12920 soname_spec='${libname}${release}${major}$shared_ext'
12921 shlibpath_overrides_runpath=yes
12922 shlibpath_var=DYLD_LIBRARY_PATH
12923 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12924
12925 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12926 ;;
12927
12928 dgux*)
12929 version_type=linux
12930 need_lib_prefix=no
12931 need_version=no
12932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12933 soname_spec='${libname}${release}${shared_ext}$major'
12934 shlibpath_var=LD_LIBRARY_PATH
12935 ;;
12936
12937 freebsd1*)
12938 dynamic_linker=no
12939 ;;
12940
12941 freebsd* | dragonfly*)
12942 # DragonFly does not have aout. When/if they implement a new
12943 # versioning mechanism, adjust this.
12944 if test -x /usr/bin/objformat; then
12945 objformat=`/usr/bin/objformat`
12946 else
12947 case $host_os in
12948 freebsd[123]*) objformat=aout ;;
12949 *) objformat=elf ;;
12950 esac
12951 fi
12952 version_type=freebsd-$objformat
12953 case $version_type in
12954 freebsd-elf*)
12955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12956 need_version=no
12957 need_lib_prefix=no
12958 ;;
12959 freebsd-*)
12960 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12961 need_version=yes
12962 ;;
12963 esac
12964 shlibpath_var=LD_LIBRARY_PATH
12965 case $host_os in
12966 freebsd2*)
12967 shlibpath_overrides_runpath=yes
12968 ;;
12969 freebsd3.[01]* | freebsdelf3.[01]*)
12970 shlibpath_overrides_runpath=yes
12971 hardcode_into_libs=yes
12972 ;;
12973 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12974 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12975 shlibpath_overrides_runpath=no
12976 hardcode_into_libs=yes
12977 ;;
12978 *) # from 4.6 on, and DragonFly
12979 shlibpath_overrides_runpath=yes
12980 hardcode_into_libs=yes
12981 ;;
12982 esac
12983 ;;
12984
12985 gnu*)
12986 version_type=linux
12987 need_lib_prefix=no
12988 need_version=no
12989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12990 soname_spec='${libname}${release}${shared_ext}$major'
12991 shlibpath_var=LD_LIBRARY_PATH
12992 hardcode_into_libs=yes
12993 ;;
12994
12995 hpux9* | hpux10* | hpux11*)
12996 # Give a soname corresponding to the major version so that dld.sl refuses to
12997 # link against other versions.
12998 version_type=sunos
12999 need_lib_prefix=no
13000 need_version=no
13001 case $host_cpu in
13002 ia64*)
13003 shrext_cmds='.so'
13004 hardcode_into_libs=yes
13005 dynamic_linker="$host_os dld.so"
13006 shlibpath_var=LD_LIBRARY_PATH
13007 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13009 soname_spec='${libname}${release}${shared_ext}$major'
13010 if test "X$HPUX_IA64_MODE" = X32; then
13011 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13012 else
13013 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13014 fi
13015 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13016 ;;
13017 hppa*64*)
13018 shrext_cmds='.sl'
13019 hardcode_into_libs=yes
13020 dynamic_linker="$host_os dld.sl"
13021 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13022 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13026 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13027 ;;
13028 *)
13029 shrext_cmds='.sl'
13030 dynamic_linker="$host_os dld.sl"
13031 shlibpath_var=SHLIB_PATH
13032 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13034 soname_spec='${libname}${release}${shared_ext}$major'
13035 ;;
13036 esac
13037 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13038 postinstall_cmds='chmod 555 $lib'
13039 ;;
13040
13041 interix[3-9]*)
13042 version_type=linux
13043 need_lib_prefix=no
13044 need_version=no
13045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13046 soname_spec='${libname}${release}${shared_ext}$major'
13047 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13048 shlibpath_var=LD_LIBRARY_PATH
13049 shlibpath_overrides_runpath=no
13050 hardcode_into_libs=yes
13051 ;;
13052
13053 irix5* | irix6* | nonstopux*)
13054 case $host_os in
13055 nonstopux*) version_type=nonstopux ;;
13056 *)
13057 if test "$lt_cv_prog_gnu_ld" = yes; then
13058 version_type=linux
13059 else
13060 version_type=irix
13061 fi ;;
13062 esac
13063 need_lib_prefix=no
13064 need_version=no
13065 soname_spec='${libname}${release}${shared_ext}$major'
13066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13067 case $host_os in
13068 irix5* | nonstopux*)
13069 libsuff= shlibsuff=
13070 ;;
13071 *)
13072 case $LD in # libtool.m4 will add one of these switches to LD
13073 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13074 libsuff= shlibsuff= libmagic=32-bit;;
13075 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13076 libsuff=32 shlibsuff=N32 libmagic=N32;;
13077 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13078 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13079 *) libsuff= shlibsuff= libmagic=never-match;;
13080 esac
13081 ;;
13082 esac
13083 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13084 shlibpath_overrides_runpath=no
13085 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13086 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13087 hardcode_into_libs=yes
13088 ;;
13089
13090 # No shared lib support for Linux oldld, aout, or coff.
13091 linux*oldld* | linux*aout* | linux*coff*)
13092 dynamic_linker=no
13093 ;;
13094
13095 # This must be Linux ELF.
13096 linux* | k*bsd*-gnu)
13097 version_type=linux
13098 need_lib_prefix=no
13099 need_version=no
13100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13101 soname_spec='${libname}${release}${shared_ext}$major'
13102 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13103 shlibpath_var=LD_LIBRARY_PATH
13104 shlibpath_overrides_runpath=no
13105 # Some binutils ld are patched to set DT_RUNPATH
13106 save_LDFLAGS=$LDFLAGS
13107 save_libdir=$libdir
13108 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13109 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13111 /* end confdefs.h. */
13112
13113 int
13114 main ()
13115 {
13116
13117 ;
13118 return 0;
13119 }
13120 _ACEOF
13121 if ac_fn_cxx_try_link "$LINENO"; then :
13122 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13123 shlibpath_overrides_runpath=yes
13124 fi
13125 fi
13126 rm -f core conftest.err conftest.$ac_objext \
13127 conftest$ac_exeext conftest.$ac_ext
13128 LDFLAGS=$save_LDFLAGS
13129 libdir=$save_libdir
13130
13131 # This implies no fast_install, which is unacceptable.
13132 # Some rework will be needed to allow for fast_install
13133 # before this can be enabled.
13134 hardcode_into_libs=yes
13135
13136 # Append ld.so.conf contents to the search path
13137 if test -f /etc/ld.so.conf; then
13138 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;/^$/d' | tr '\n' ' '`
13139 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13140 fi
13141
13142 # We used to test for /lib/ld.so.1 and disable shared libraries on
13143 # powerpc, because MkLinux only supported shared libraries with the
13144 # GNU dynamic linker. Since this was broken with cross compilers,
13145 # most powerpc-linux boxes support dynamic linking these days and
13146 # people can always --disable-shared, the test was removed, and we
13147 # assume the GNU/Linux dynamic linker is in use.
13148 dynamic_linker='GNU/Linux ld.so'
13149 ;;
13150
13151 netbsd*)
13152 version_type=sunos
13153 need_lib_prefix=no
13154 need_version=no
13155 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13157 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13158 dynamic_linker='NetBSD (a.out) ld.so'
13159 else
13160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13161 soname_spec='${libname}${release}${shared_ext}$major'
13162 dynamic_linker='NetBSD ld.elf_so'
13163 fi
13164 shlibpath_var=LD_LIBRARY_PATH
13165 shlibpath_overrides_runpath=yes
13166 hardcode_into_libs=yes
13167 ;;
13168
13169 newsos6)
13170 version_type=linux
13171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13172 shlibpath_var=LD_LIBRARY_PATH
13173 shlibpath_overrides_runpath=yes
13174 ;;
13175
13176 *nto* | *qnx*)
13177 version_type=qnx
13178 need_lib_prefix=no
13179 need_version=no
13180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13181 soname_spec='${libname}${release}${shared_ext}$major'
13182 shlibpath_var=LD_LIBRARY_PATH
13183 shlibpath_overrides_runpath=no
13184 hardcode_into_libs=yes
13185 dynamic_linker='ldqnx.so'
13186 ;;
13187
13188 openbsd*)
13189 version_type=sunos
13190 sys_lib_dlsearch_path_spec="/usr/lib"
13191 need_lib_prefix=no
13192 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13193 case $host_os in
13194 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13195 *) need_version=no ;;
13196 esac
13197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13198 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13199 shlibpath_var=LD_LIBRARY_PATH
13200 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13201 case $host_os in
13202 openbsd2.[89] | openbsd2.[89].*)
13203 shlibpath_overrides_runpath=no
13204 ;;
13205 *)
13206 shlibpath_overrides_runpath=yes
13207 ;;
13208 esac
13209 else
13210 shlibpath_overrides_runpath=yes
13211 fi
13212 ;;
13213
13214 os2*)
13215 libname_spec='$name'
13216 shrext_cmds=".dll"
13217 need_lib_prefix=no
13218 library_names_spec='$libname${shared_ext} $libname.a'
13219 dynamic_linker='OS/2 ld.exe'
13220 shlibpath_var=LIBPATH
13221 ;;
13222
13223 osf3* | osf4* | osf5*)
13224 version_type=osf
13225 need_lib_prefix=no
13226 need_version=no
13227 soname_spec='${libname}${release}${shared_ext}$major'
13228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13229 shlibpath_var=LD_LIBRARY_PATH
13230 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13231 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13232 ;;
13233
13234 rdos*)
13235 dynamic_linker=no
13236 ;;
13237
13238 solaris*)
13239 version_type=linux
13240 need_lib_prefix=no
13241 need_version=no
13242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13243 soname_spec='${libname}${release}${shared_ext}$major'
13244 shlibpath_var=LD_LIBRARY_PATH
13245 shlibpath_overrides_runpath=yes
13246 hardcode_into_libs=yes
13247 # ldd complains unless libraries are executable
13248 postinstall_cmds='chmod +x $lib'
13249 ;;
13250
13251 sunos4*)
13252 version_type=sunos
13253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13254 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13255 shlibpath_var=LD_LIBRARY_PATH
13256 shlibpath_overrides_runpath=yes
13257 if test "$with_gnu_ld" = yes; then
13258 need_lib_prefix=no
13259 fi
13260 need_version=yes
13261 ;;
13262
13263 sysv4 | sysv4.3*)
13264 version_type=linux
13265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13266 soname_spec='${libname}${release}${shared_ext}$major'
13267 shlibpath_var=LD_LIBRARY_PATH
13268 case $host_vendor in
13269 sni)
13270 shlibpath_overrides_runpath=no
13271 need_lib_prefix=no
13272 runpath_var=LD_RUN_PATH
13273 ;;
13274 siemens)
13275 need_lib_prefix=no
13276 ;;
13277 motorola)
13278 need_lib_prefix=no
13279 need_version=no
13280 shlibpath_overrides_runpath=no
13281 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13282 ;;
13283 esac
13284 ;;
13285
13286 sysv4*MP*)
13287 if test -d /usr/nec ;then
13288 version_type=linux
13289 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13290 soname_spec='$libname${shared_ext}.$major'
13291 shlibpath_var=LD_LIBRARY_PATH
13292 fi
13293 ;;
13294
13295 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13296 version_type=freebsd-elf
13297 need_lib_prefix=no
13298 need_version=no
13299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13300 soname_spec='${libname}${release}${shared_ext}$major'
13301 shlibpath_var=LD_LIBRARY_PATH
13302 shlibpath_overrides_runpath=yes
13303 hardcode_into_libs=yes
13304 if test "$with_gnu_ld" = yes; then
13305 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13306 else
13307 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13308 case $host_os in
13309 sco3.2v5*)
13310 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13311 ;;
13312 esac
13313 fi
13314 sys_lib_dlsearch_path_spec='/usr/lib'
13315 ;;
13316
13317 tpf*)
13318 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13319 version_type=linux
13320 need_lib_prefix=no
13321 need_version=no
13322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13323 shlibpath_var=LD_LIBRARY_PATH
13324 shlibpath_overrides_runpath=no
13325 hardcode_into_libs=yes
13326 ;;
13327
13328 uts4*)
13329 version_type=linux
13330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13331 soname_spec='${libname}${release}${shared_ext}$major'
13332 shlibpath_var=LD_LIBRARY_PATH
13333 ;;
13334
13335 *)
13336 dynamic_linker=no
13337 ;;
13338 esac
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13340 $as_echo "$dynamic_linker" >&6; }
13341 test "$dynamic_linker" = no && can_build_shared=no
13342
13343 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13344 if test "$GCC" = yes; then
13345 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13346 fi
13347
13348 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13349 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13350 fi
13351 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13352 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13353 fi
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13391 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13392 hardcode_action_CXX=
13393 if test -n "$hardcode_libdir_flag_spec_CXX" ||
13394 test -n "$runpath_var_CXX" ||
13395 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13396
13397 # We can hardcode non-existent directories.
13398 if test "$hardcode_direct_CXX" != no &&
13399 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13400 # have to relink, otherwise we might link with an installed library
13401 # when we should be linking with a yet-to-be-installed one
13402 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13403 test "$hardcode_minus_L_CXX" != no; then
13404 # Linking always hardcodes the temporary library directory.
13405 hardcode_action_CXX=relink
13406 else
13407 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13408 hardcode_action_CXX=immediate
13409 fi
13410 else
13411 # We cannot hardcode anything, or else we can only hardcode existing
13412 # directories.
13413 hardcode_action_CXX=unsupported
13414 fi
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
13416 $as_echo "$hardcode_action_CXX" >&6; }
13417
13418 if test "$hardcode_action_CXX" = relink ||
13419 test "$inherit_rpath_CXX" = yes; then
13420 # Fast installation is not supported
13421 enable_fast_install=no
13422 elif test "$shlibpath_overrides_runpath" = yes ||
13423 test "$enable_shared" = no; then
13424 # Fast installation is not necessary
13425 enable_fast_install=needless
13426 fi
13427
13428
13429
13430
13431
13432
13433
13434 fi # test -n "$compiler"
13435
13436 CC=$lt_save_CC
13437 LDCXX=$LD
13438 LD=$lt_save_LD
13439 GCC=$lt_save_GCC
13440 with_gnu_ld=$lt_save_with_gnu_ld
13441 lt_cv_path_LDCXX=$lt_cv_path_LD
13442 lt_cv_path_LD=$lt_save_path_LD
13443 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13444 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13445 fi # test "$_lt_caught_CXX_error" != yes
13446
13447 ac_ext=c
13448 ac_cpp='$CPP $CPPFLAGS'
13449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465 ac_config_commands="$ac_config_commands libtool"
13466
13467
13468
13469
13470 # Only expand once:
13471
13472
13473 # Find a good install program. We prefer a C program (faster),
13474 # so one script is as good as another. But avoid the broken or
13475 # incompatible versions:
13476 # SysV /etc/install, /usr/sbin/install
13477 # SunOS /usr/etc/install
13478 # IRIX /sbin/install
13479 # AIX /bin/install
13480 # AmigaOS /C/install, which installs bootblocks on floppy discs
13481 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13482 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
13483 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13484 # OS/2's system install, which has a completely different semantic
13485 # ./install, which can be erroneously created by make from ./install.sh.
13486 # Reject install programs that cannot install multiple files.
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
13488 $as_echo_n "checking for a BSD-compatible install... " >&6; }
13489 if test -z "$INSTALL"; then
13490 if test "${ac_cv_path_install+set}" = set; then :
13491 $as_echo_n "(cached) " >&6
13492 else
13493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13494 for as_dir in $PATH
13495 do
13496 IFS=$as_save_IFS
13497 test -z "$as_dir" && as_dir=.
13498 # Account for people who put trailing slashes in PATH elements.
13499 case $as_dir/ in #((
13500 ./ | .// | /[cC]/* | \
13501 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
13502 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
13503 /usr/ucb/* ) ;;
13504 *)
13505 # OSF1 and SCO ODT 3.0 have their own names for install.
13506 # Don't use installbsd from OSF since it installs stuff as root
13507 # by default.
13508 for ac_prog in ginstall scoinst install; do
13509 for ac_exec_ext in '' $ac_executable_extensions; do
13510 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
13511 if test $ac_prog = install &&
13512 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13513 # AIX install. It has an incompatible calling convention.
13514 :
13515 elif test $ac_prog = install &&
13516 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13517 # program-specific install script used by HP pwplus--don't use.
13518 :
13519 else
13520 rm -rf conftest.one conftest.two conftest.dir
13521 echo one > conftest.one
13522 echo two > conftest.two
13523 mkdir conftest.dir
13524 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
13525 test -s conftest.one && test -s conftest.two &&
13526 test -s conftest.dir/conftest.one &&
13527 test -s conftest.dir/conftest.two
13528 then
13529 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13530 break 3
13531 fi
13532 fi
13533 fi
13534 done
13535 done
13536 ;;
13537 esac
13538
13539 done
13540 IFS=$as_save_IFS
13541
13542 rm -rf conftest.one conftest.two conftest.dir
13543
13544 fi
13545 if test "${ac_cv_path_install+set}" = set; then
13546 INSTALL=$ac_cv_path_install
13547 else
13548 # As a last resort, use the slow shell script. Don't cache a
13549 # value for INSTALL within a source directory, because that will
13550 # break other packages using the cache if that directory is
13551 # removed, or if the value is a relative name.
13552 INSTALL=$ac_install_sh
13553 fi
13554 fi
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
13556 $as_echo "$INSTALL" >&6; }
13557
13558 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13559 # It thinks the first close brace ends the variable substitution.
13560 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13561
13562 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13563
13564 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13565
13566 # Extract the first word of "gzip", so it can be a program name with args.
13567 set dummy gzip; ac_word=$2
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13569 $as_echo_n "checking for $ac_word... " >&6; }
13570 if test "${ac_cv_path_GZIP+set}" = set; then :
13571 $as_echo_n "(cached) " >&6
13572 else
13573 case $GZIP in
13574 [\\/]* | ?:[\\/]*)
13575 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
13576 ;;
13577 *)
13578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13579 for as_dir in $PATH
13580 do
13581 IFS=$as_save_IFS
13582 test -z "$as_dir" && as_dir=.
13583 for ac_exec_ext in '' $ac_executable_extensions; do
13584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13585 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
13586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13587 break 2
13588 fi
13589 done
13590 done
13591 IFS=$as_save_IFS
13592
13593 ;;
13594 esac
13595 fi
13596 GZIP=$ac_cv_path_GZIP
13597 if test -n "$GZIP"; then
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
13599 $as_echo "$GZIP" >&6; }
13600 else
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13602 $as_echo "no" >&6; }
13603 fi
13604
13605
13606 # Extract the first word of "rm", so it can be a program name with args.
13607 set dummy rm; ac_word=$2
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13609 $as_echo_n "checking for $ac_word... " >&6; }
13610 if test "${ac_cv_path_RM+set}" = set; then :
13611 $as_echo_n "(cached) " >&6
13612 else
13613 case $RM in
13614 [\\/]* | ?:[\\/]*)
13615 ac_cv_path_RM="$RM" # Let the user override the test with a path.
13616 ;;
13617 *)
13618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13619 for as_dir in $PATH
13620 do
13621 IFS=$as_save_IFS
13622 test -z "$as_dir" && as_dir=.
13623 for ac_exec_ext in '' $ac_executable_extensions; do
13624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13625 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
13626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13627 break 2
13628 fi
13629 done
13630 done
13631 IFS=$as_save_IFS
13632
13633 ;;
13634 esac
13635 fi
13636 RM=$ac_cv_path_RM
13637 if test -n "$RM"; then
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
13639 $as_echo "$RM" >&6; }
13640 else
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13642 $as_echo "no" >&6; }
13643 fi
13644
13645
13646 RM="$RM -f"
13647
13648 # Checks for libraries.
13649
13650 zlib_ok='no'
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
13652 $as_echo_n "checking for inflate in -lz... " >&6; }
13653 if test "${ac_cv_lib_z_inflate+set}" = set; then :
13654 $as_echo_n "(cached) " >&6
13655 else
13656 ac_check_lib_save_LIBS=$LIBS
13657 LIBS="-lz $LIBS"
13658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13659 /* end confdefs.h. */
13660
13661 /* Override any GCC internal prototype to avoid an error.
13662 Use char because int might match the return type of a GCC
13663 builtin and then its argument prototype would still apply. */
13664 #ifdef __cplusplus
13665 extern "C"
13666 #endif
13667 char inflate ();
13668 int
13669 main ()
13670 {
13671 return inflate ();
13672 ;
13673 return 0;
13674 }
13675 _ACEOF
13676 if ac_fn_c_try_link "$LINENO"; then :
13677 ac_cv_lib_z_inflate=yes
13678 else
13679 ac_cv_lib_z_inflate=no
13680 fi
13681 rm -f core conftest.err conftest.$ac_objext \
13682 conftest$ac_exeext conftest.$ac_ext
13683 LIBS=$ac_check_lib_save_LIBS
13684 fi
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
13686 $as_echo "$ac_cv_lib_z_inflate" >&6; }
13687 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
13688 z_libs="-lz"; zlib_ok='yes'
13689 fi
13690
13691
13692 jpeg_ok='no'
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_decompress in -ljpeg" >&5
13694 $as_echo_n "checking for jpeg_destroy_decompress in -ljpeg... " >&6; }
13695 if test "${ac_cv_lib_jpeg_jpeg_destroy_decompress+set}" = set; then :
13696 $as_echo_n "(cached) " >&6
13697 else
13698 ac_check_lib_save_LIBS=$LIBS
13699 LIBS="-ljpeg $LIBS"
13700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13701 /* end confdefs.h. */
13702
13703 /* Override any GCC internal prototype to avoid an error.
13704 Use char because int might match the return type of a GCC
13705 builtin and then its argument prototype would still apply. */
13706 #ifdef __cplusplus
13707 extern "C"
13708 #endif
13709 char jpeg_destroy_decompress ();
13710 int
13711 main ()
13712 {
13713 return jpeg_destroy_decompress ();
13714 ;
13715 return 0;
13716 }
13717 _ACEOF
13718 if ac_fn_c_try_link "$LINENO"; then :
13719 ac_cv_lib_jpeg_jpeg_destroy_decompress=yes
13720 else
13721 ac_cv_lib_jpeg_jpeg_destroy_decompress=no
13722 fi
13723 rm -f core conftest.err conftest.$ac_objext \
13724 conftest$ac_exeext conftest.$ac_ext
13725 LIBS=$ac_check_lib_save_LIBS
13726 fi
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_decompress" >&5
13728 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_decompress" >&6; }
13729 if test "x$ac_cv_lib_jpeg_jpeg_destroy_decompress" = x""yes; then :
13730 jpeg_libs="-ljpeg"; jpeg_ok='yes'
13731 fi
13732
13733
13734 # Checks for header files.
13735
13736 if test "$tiff" != 'no'; then
13737 have_tiff_header='no'
13738 have_libtiff='no'
13739
13740 if test "$static" != 'yes' || test "$zlib_ok" = 'yes' -a "$jpeg_ok" = 'yes'; then
13741 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
13742 if test "x$ac_cv_header_tiff_h" = x""yes; then :
13743 have_tiff_header='yes'
13744 fi
13745
13746
13747 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13748 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
13749 have_tiff_header='yes'
13750 else
13751 have_tiff_header='no'
13752 fi
13753
13754
13755 if test "$have_tiff_header" = 'yes'; then
13756 saveLIBS="$LIBS"
13757 if test "$static" = 'yes'; then
13758 LIBS="$z_libs $jpeg_libs $LIBS"
13759 fi
13760
13761 have_libtiff='no'
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
13763 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
13764 if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
13765 $as_echo_n "(cached) " >&6
13766 else
13767 ac_check_lib_save_LIBS=$LIBS
13768 LIBS="-ltiff $LIBS"
13769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13770 /* end confdefs.h. */
13771
13772 /* Override any GCC internal prototype to avoid an error.
13773 Use char because int might match the return type of a GCC
13774 builtin and then its argument prototype would still apply. */
13775 #ifdef __cplusplus
13776 extern "C"
13777 #endif
13778 char TIFFOpen ();
13779 int
13780 main ()
13781 {
13782 return TIFFOpen ();
13783 ;
13784 return 0;
13785 }
13786 _ACEOF
13787 if ac_fn_c_try_link "$LINENO"; then :
13788 ac_cv_lib_tiff_TIFFOpen=yes
13789 else
13790 ac_cv_lib_tiff_TIFFOpen=no
13791 fi
13792 rm -f core conftest.err conftest.$ac_objext \
13793 conftest$ac_exeext conftest.$ac_ext
13794 LIBS=$ac_check_lib_save_LIBS
13795 fi
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
13797 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
13798 if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
13799 have_libtiff='yes'
13800 else
13801 have_libtiff='no'
13802 fi
13803
13804 if test "$have_libtiff" != 'no'; then
13805 LIBS="-ltiff $LIBS"
13806
13807 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13808
13809 else
13810 LIBS=$saveLIBS
13811 fi
13812 fi
13813 fi
13814
13815 if test "$have_libtiff" != 'yes'; then
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Native TIFF support will not be included ***" >&5
13817 $as_echo "$as_me: WARNING: *** Native TIFF support will not be included ***" >&2;}
13818 fi
13819 fi
13820
13821 PO_YES='#'
13822 if test "$gettext" != 'no'; then
13823 have_intl_header='no'
13824 gettext_ok='no'
13825 needs_lintl='no'
13826
13827 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
13828 if test "x$ac_cv_header_libintl_h" = x""yes; then :
13829 have_intl_header='yes'
13830 fi
13831
13832
13833 if test "$have_intl_header" = 'yes'; then
13834 ac_fn_c_check_func "$LINENO" "gettext" "ac_cv_func_gettext"
13835 if test "x$ac_cv_func_gettext" = x""yes; then :
13836 gettext_ok='yes'
13837 fi
13838
13839
13840 if test "$gettext_ok" = 'no'; then
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
13842 $as_echo_n "checking for gettext in -lintl... " >&6; }
13843 if test "${ac_cv_lib_intl_gettext+set}" = set; then :
13844 $as_echo_n "(cached) " >&6
13845 else
13846 ac_check_lib_save_LIBS=$LIBS
13847 LIBS="-lintl $LIBS"
13848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13849 /* end confdefs.h. */
13850
13851 /* Override any GCC internal prototype to avoid an error.
13852 Use char because int might match the return type of a GCC
13853 builtin and then its argument prototype would still apply. */
13854 #ifdef __cplusplus
13855 extern "C"
13856 #endif
13857 char gettext ();
13858 int
13859 main ()
13860 {
13861 return gettext ();
13862 ;
13863 return 0;
13864 }
13865 _ACEOF
13866 if ac_fn_c_try_link "$LINENO"; then :
13867 ac_cv_lib_intl_gettext=yes
13868 else
13869 ac_cv_lib_intl_gettext=no
13870 fi
13871 rm -f core conftest.err conftest.$ac_objext \
13872 conftest$ac_exeext conftest.$ac_ext
13873 LIBS=$ac_check_lib_save_LIBS
13874 fi
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
13876 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
13877 if test "x$ac_cv_lib_intl_gettext" = x""yes; then :
13878 gettext_ok='yes'; needs_lintl='yes'
13879 fi
13880
13881 fi
13882 fi
13883
13884 iconv_ok='no'
13885 needs_liconv='no'
13886 ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
13887 if test "x$ac_cv_func_iconv" = x""yes; then :
13888 iconv_ok='yes'
13889 fi
13890
13891 if test "$iconv_ok" = "no"; then
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -liconv" >&5
13893 $as_echo_n "checking for iconv in -liconv... " >&6; }
13894 if test "${ac_cv_lib_iconv_iconv+set}" = set; then :
13895 $as_echo_n "(cached) " >&6
13896 else
13897 ac_check_lib_save_LIBS=$LIBS
13898 LIBS="-liconv $LIBS"
13899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13900 /* end confdefs.h. */
13901
13902 /* Override any GCC internal prototype to avoid an error.
13903 Use char because int might match the return type of a GCC
13904 builtin and then its argument prototype would still apply. */
13905 #ifdef __cplusplus
13906 extern "C"
13907 #endif
13908 char iconv ();
13909 int
13910 main ()
13911 {
13912 return iconv ();
13913 ;
13914 return 0;
13915 }
13916 _ACEOF
13917 if ac_fn_c_try_link "$LINENO"; then :
13918 ac_cv_lib_iconv_iconv=yes
13919 else
13920 ac_cv_lib_iconv_iconv=no
13921 fi
13922 rm -f core conftest.err conftest.$ac_objext \
13923 conftest$ac_exeext conftest.$ac_ext
13924 LIBS=$ac_check_lib_save_LIBS
13925 fi
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv" >&5
13927 $as_echo "$ac_cv_lib_iconv_iconv" >&6; }
13928 if test "x$ac_cv_lib_iconv_iconv" = x""yes; then :
13929 iconv_ok='yes'; needs_liconv='yes'
13930 fi
13931
13932 fi
13933
13934 # Extract the first word of "msgfmt", so it can be a program name with args.
13935 set dummy msgfmt; ac_word=$2
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13937 $as_echo_n "checking for $ac_word... " >&6; }
13938 if test "${ac_cv_prog_MSGFMT+set}" = set; then :
13939 $as_echo_n "(cached) " >&6
13940 else
13941 if test -n "$MSGFMT"; then
13942 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
13943 else
13944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13945 for as_dir in $PATH
13946 do
13947 IFS=$as_save_IFS
13948 test -z "$as_dir" && as_dir=.
13949 for ac_exec_ext in '' $ac_executable_extensions; do
13950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13951 ac_cv_prog_MSGFMT="msgfmt"
13952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13953 break 2
13954 fi
13955 done
13956 done
13957 IFS=$as_save_IFS
13958
13959 fi
13960 fi
13961 MSGFMT=$ac_cv_prog_MSGFMT
13962 if test -n "$MSGFMT"; then
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13964 $as_echo "$MSGFMT" >&6; }
13965 else
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13967 $as_echo "no" >&6; }
13968 fi
13969
13970
13971 if test "$MSGFMT" != ""; then
13972 if msgfmt --help 2>&1 | grep illegal >/dev/null ; then
13973 echo "msgfmt isn't GNU version"
13974 MSGFMT=""
13975 fi
13976 fi
13977
13978 if test "$MSGFMT" != "" -a "$gettext_ok" != "no" -a "$iconv_ok" != "no" ; then
13979 echo "msgfmt, iconv() and gettext() exist; will build i18n support"
13980
13981 $as_echo "#define HAVE_GETTEXT /**/" >>confdefs.h
13982
13983 PO_YES=''
13984 if test "$needs_lintl" != "no"; then
13985 intl_libs="-lintl"
13986 LIBS="$intl_libs $LIBS"
13987 fi
13988 if test "$needs_liconv" != "no"; then
13989 iconv_libs="-liconv"
13990 LIBS="$iconv_libs $LIBS"
13991 fi
13992 else
13993 echo "msgfmt and libintl don't both exist; will not build i18n support"
13994 fi
13995 fi
13996
13997 for ac_header in locale.h stdlib.h string.h
13998 do :
13999 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14000 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14001 eval as_val=\$$as_ac_Header
14002 if test "x$as_val" = x""yes; then :
14003 cat >>confdefs.h <<_ACEOF
14004 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14005 _ACEOF
14006
14007 fi
14008
14009 done
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024 # Checks for typedefs, structures, and compiler characteristics.
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14026 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14027 if test "${ac_cv_header_stdbool_h+set}" = set; then :
14028 $as_echo_n "(cached) " >&6
14029 else
14030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14031 /* end confdefs.h. */
14032
14033 #include <stdbool.h>
14034 #ifndef bool
14035 "error: bool is not defined"
14036 #endif
14037 #ifndef false
14038 "error: false is not defined"
14039 #endif
14040 #if false
14041 "error: false is not 0"
14042 #endif
14043 #ifndef true
14044 "error: true is not defined"
14045 #endif
14046 #if true != 1
14047 "error: true is not 1"
14048 #endif
14049 #ifndef __bool_true_false_are_defined
14050 "error: __bool_true_false_are_defined is not defined"
14051 #endif
14052
14053 struct s { _Bool s: 1; _Bool t; } s;
14054
14055 char a[true == 1 ? 1 : -1];
14056 char b[false == 0 ? 1 : -1];
14057 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14058 char d[(bool) 0.5 == true ? 1 : -1];
14059 bool e = &s;
14060 char f[(_Bool) 0.0 == false ? 1 : -1];
14061 char g[true];
14062 char h[sizeof (_Bool)];
14063 char i[sizeof s.t];
14064 enum { j = false, k = true, l = false * true, m = true * 256 };
14065 /* The following fails for
14066 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14067 _Bool n[m];
14068 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14069 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14070 # if defined __xlc__ || defined __GNUC__
14071 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
14072 reported by James Lemley on 2005-10-05; see
14073 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
14074 This test is not quite right, since xlc is allowed to
14075 reject this program, as the initializer for xlcbug is
14076 not one of the forms that C requires support for.
14077 However, doing the test right would require a runtime
14078 test, and that would make cross-compilation harder.
14079 Let us hope that IBM fixes the xlc bug, and also adds
14080 support for this kind of constant expression. In the
14081 meantime, this test will reject xlc, which is OK, since
14082 our stdbool.h substitute should suffice. We also test
14083 this with GCC, where it should work, to detect more
14084 quickly whether someone messes up the test in the
14085 future. */
14086 char digs[] = "0123456789";
14087 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
14088 # endif
14089 /* Catch a bug in an HP-UX C compiler. See
14090 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14091 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14092 */
14093 _Bool q = true;
14094 _Bool *pq = &q;
14095
14096 int
14097 main ()
14098 {
14099
14100 *pq |= q;
14101 *pq |= ! q;
14102 /* Refer to every declared value, to avoid compiler optimizations. */
14103 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14104 + !m + !n + !o + !p + !q + !pq);
14105
14106 ;
14107 return 0;
14108 }
14109 _ACEOF
14110 if ac_fn_c_try_compile "$LINENO"; then :
14111 ac_cv_header_stdbool_h=yes
14112 else
14113 ac_cv_header_stdbool_h=no
14114 fi
14115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14116 fi
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14118 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14119 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14120 if test "x$ac_cv_type__Bool" = x""yes; then :
14121
14122 cat >>confdefs.h <<_ACEOF
14123 #define HAVE__BOOL 1
14124 _ACEOF
14125
14126
14127 fi
14128
14129 if test $ac_cv_header_stdbool_h = yes; then
14130
14131 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
14132
14133 fi
14134
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14136 $as_echo_n "checking for inline... " >&6; }
14137 if test "${ac_cv_c_inline+set}" = set; then :
14138 $as_echo_n "(cached) " >&6
14139 else
14140 ac_cv_c_inline=no
14141 for ac_kw in inline __inline__ __inline; do
14142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14143 /* end confdefs.h. */
14144 #ifndef __cplusplus
14145 typedef int foo_t;
14146 static $ac_kw foo_t static_foo () {return 0; }
14147 $ac_kw foo_t foo () {return 0; }
14148 #endif
14149
14150 _ACEOF
14151 if ac_fn_c_try_compile "$LINENO"; then :
14152 ac_cv_c_inline=$ac_kw
14153 fi
14154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14155 test "$ac_cv_c_inline" != no && break
14156 done
14157
14158 fi
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14160 $as_echo "$ac_cv_c_inline" >&6; }
14161
14162 case $ac_cv_c_inline in
14163 inline | yes) ;;
14164 *)
14165 case $ac_cv_c_inline in
14166 no) ac_val=;;
14167 *) ac_val=$ac_cv_c_inline;;
14168 esac
14169 cat >>confdefs.h <<_ACEOF
14170 #ifndef __cplusplus
14171 #define inline $ac_val
14172 #endif
14173 _ACEOF
14174 ;;
14175 esac
14176
14177 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14178 if test "x$ac_cv_type_size_t" = x""yes; then :
14179
14180 else
14181
14182 cat >>confdefs.h <<_ACEOF
14183 #define size_t unsigned int
14184 _ACEOF
14185
14186 fi
14187
14188
14189 CFLAGS="$CFLAGS -Wall -Wshadow"
14190 CFLAGS="$CFLAGS -pedantic-errors -Wpointer-arith -Waggregate-return"
14191 CFLAGS="$CFLAGS -Wlong-long -Wredundant-decls -Wcast-qual -Wcast-align"
14192 DEFS="$DEFS -D__STRICT_ANSI__ -DNDEBUG"
14193 OPTS="-Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations"
14194
14195 # Checks for library functions.
14196 for ac_header in stdlib.h
14197 do :
14198 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
14199 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
14200 cat >>confdefs.h <<_ACEOF
14201 #define HAVE_STDLIB_H 1
14202 _ACEOF
14203
14204 fi
14205
14206 done
14207
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
14209 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
14210 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
14211 $as_echo_n "(cached) " >&6
14212 else
14213 if test "$cross_compiling" = yes; then :
14214 ac_cv_func_malloc_0_nonnull=no
14215 else
14216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14217 /* end confdefs.h. */
14218 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
14219 # include <stdlib.h>
14220 #else
14221 char *malloc ();
14222 #endif
14223
14224 int
14225 main ()
14226 {
14227 return ! malloc (0);
14228 ;
14229 return 0;
14230 }
14231 _ACEOF
14232 if ac_fn_c_try_run "$LINENO"; then :
14233 ac_cv_func_malloc_0_nonnull=yes
14234 else
14235 ac_cv_func_malloc_0_nonnull=no
14236 fi
14237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14238 conftest.$ac_objext conftest.beam conftest.$ac_ext
14239 fi
14240
14241 fi
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
14243 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
14244 if test $ac_cv_func_malloc_0_nonnull = yes; then :
14245
14246 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
14247
14248 else
14249 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
14250
14251 case " $LIBOBJS " in
14252 *" malloc.$ac_objext "* ) ;;
14253 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
14254 ;;
14255 esac
14256
14257
14258 $as_echo "#define malloc rpl_malloc" >>confdefs.h
14259
14260 fi
14261
14262
14263 for ac_header in stdlib.h
14264 do :
14265 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
14266 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
14267 cat >>confdefs.h <<_ACEOF
14268 #define HAVE_STDLIB_H 1
14269 _ACEOF
14270
14271 fi
14272
14273 done
14274
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
14276 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
14277 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
14278 $as_echo_n "(cached) " >&6
14279 else
14280 if test "$cross_compiling" = yes; then :
14281 ac_cv_func_realloc_0_nonnull=no
14282 else
14283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14284 /* end confdefs.h. */
14285 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
14286 # include <stdlib.h>
14287 #else
14288 char *realloc ();
14289 #endif
14290
14291 int
14292 main ()
14293 {
14294 return ! realloc (0, 0);
14295 ;
14296 return 0;
14297 }
14298 _ACEOF
14299 if ac_fn_c_try_run "$LINENO"; then :
14300 ac_cv_func_realloc_0_nonnull=yes
14301 else
14302 ac_cv_func_realloc_0_nonnull=no
14303 fi
14304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14305 conftest.$ac_objext conftest.beam conftest.$ac_ext
14306 fi
14307
14308 fi
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
14310 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
14311 if test $ac_cv_func_realloc_0_nonnull = yes; then :
14312
14313 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
14314
14315 else
14316 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
14317
14318 case " $LIBOBJS " in
14319 *" realloc.$ac_objext "* ) ;;
14320 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
14321 ;;
14322 esac
14323
14324
14325 $as_echo "#define realloc rpl_realloc" >>confdefs.h
14326
14327 fi
14328
14329
14330 for ac_func in memset pow setlocale strcspn strrchr
14331 do :
14332 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14333 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14334 eval as_val=\$$as_ac_var
14335 if test "x$as_val" = x""yes; then :
14336 cat >>confdefs.h <<_ACEOF
14337 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14338 _ACEOF
14339
14340 fi
14341 done
14342
14343
14344 ac_config_files="$ac_config_files Makefile"
14345
14346 ac_config_files="$ac_config_files src/Makefile"
14347
14348 ac_config_files="$ac_config_files tools/Makefile"
14349
14350 ac_config_files="$ac_config_files po/Makefile"
14351
14352 cat >confcache <<\_ACEOF
14353 # This file is a shell script that caches the results of configure
14354 # tests run on this system so they can be shared between configure
14355 # scripts and configure runs, see configure's option --config-cache.
14356 # It is not useful on other systems. If it contains results you don't
14357 # want to keep, you may remove or edit it.
14358 #
14359 # config.status only pays attention to the cache file if you give it
14360 # the --recheck option to rerun configure.
14361 #
14362 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14363 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14364 # following values.
14365
14366 _ACEOF
14367
14368 # The following way of writing the cache mishandles newlines in values,
14369 # but we know of no workaround that is simple, portable, and efficient.
14370 # So, we kill variables containing newlines.
14371 # Ultrix sh set writes to stderr and can't be redirected directly,
14372 # and sets the high bit in the cache file unless we assign to the vars.
14373 (
14374 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14375 eval ac_val=\$$ac_var
14376 case $ac_val in #(
14377 *${as_nl}*)
14378 case $ac_var in #(
14379 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14380 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14381 esac
14382 case $ac_var in #(
14383 _ | IFS | as_nl) ;; #(
14384 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14385 *) { eval $ac_var=; unset $ac_var;} ;;
14386 esac ;;
14387 esac
14388 done
14389
14390 (set) 2>&1 |
14391 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14392 *${as_nl}ac_space=\ *)
14393 # `set' does not quote correctly, so add quotes: double-quote
14394 # substitution turns \\\\ into \\, and sed turns \\ into \.
14395 sed -n \
14396 "s/'/'\\\\''/g;
14397 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14398 ;; #(
14399 *)
14400 # `set' quotes correctly as required by POSIX, so do not add quotes.
14401 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14402 ;;
14403 esac |
14404 sort
14405 ) |
14406 sed '
14407 /^ac_cv_env_/b end
14408 t clear
14409 :clear
14410 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14411 t end
14412 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14413 :end' >>confcache
14414 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14415 if test -w "$cache_file"; then
14416 test "x$cache_file" != "x/dev/null" &&
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14418 $as_echo "$as_me: updating cache $cache_file" >&6;}
14419 cat confcache >$cache_file
14420 else
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14422 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14423 fi
14424 fi
14425 rm -f confcache
14426
14427 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14428 # Let make expand exec_prefix.
14429 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14430
14431 DEFS=-DHAVE_CONFIG_H
14432
14433 ac_libobjs=
14434 ac_ltlibobjs=
14435 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14436 # 1. Remove the extension, and $U if already installed.
14437 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14438 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14439 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14440 # will be set to the directory where LIBOBJS objects are built.
14441 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14442 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14443 done
14444 LIBOBJS=$ac_libobjs
14445
14446 LTLIBOBJS=$ac_ltlibobjs
14447
14448
14449
14450 : ${CONFIG_STATUS=./config.status}
14451 ac_write_fail=0
14452 ac_clean_files_save=$ac_clean_files
14453 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14455 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14456 as_write_fail=0
14457 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14458 #! $SHELL
14459 # Generated by $as_me.
14460 # Run this file to recreate the current configuration.
14461 # Compiler output produced by configure, useful for debugging
14462 # configure, is in config.log if it exists.
14463
14464 debug=false
14465 ac_cs_recheck=false
14466 ac_cs_silent=false
14467
14468 SHELL=\${CONFIG_SHELL-$SHELL}
14469 export SHELL
14470 _ASEOF
14471 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14472 ## -------------------- ##
14473 ## M4sh Initialization. ##
14474 ## -------------------- ##
14475
14476 # Be more Bourne compatible
14477 DUALCASE=1; export DUALCASE # for MKS sh
14478 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14479 emulate sh
14480 NULLCMD=:
14481 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14482 # is contrary to our usage. Disable this feature.
14483 alias -g '${1+"$@"}'='"$@"'
14484 setopt NO_GLOB_SUBST
14485 else
14486 case `(set -o) 2>/dev/null` in #(
14487 *posix*) :
14488 set -o posix ;; #(
14489 *) :
14490 ;;
14491 esac
14492 fi
14493
14494
14495 as_nl='
14496 '
14497 export as_nl
14498 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14499 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14500 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14501 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14502 # Prefer a ksh shell builtin over an external printf program on Solaris,
14503 # but without wasting forks for bash or zsh.
14504 if test -z "$BASH_VERSION$ZSH_VERSION" \
14505 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14506 as_echo='print -r --'
14507 as_echo_n='print -rn --'
14508 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14509 as_echo='printf %s\n'
14510 as_echo_n='printf %s'
14511 else
14512 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14513 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14514 as_echo_n='/usr/ucb/echo -n'
14515 else
14516 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14517 as_echo_n_body='eval
14518 arg=$1;
14519 case $arg in #(
14520 *"$as_nl"*)
14521 expr "X$arg" : "X\\(.*\\)$as_nl";
14522 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14523 esac;
14524 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14525 '
14526 export as_echo_n_body
14527 as_echo_n='sh -c $as_echo_n_body as_echo'
14528 fi
14529 export as_echo_body
14530 as_echo='sh -c $as_echo_body as_echo'
14531 fi
14532
14533 # The user is always right.
14534 if test "${PATH_SEPARATOR+set}" != set; then
14535 PATH_SEPARATOR=:
14536 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14537 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14538 PATH_SEPARATOR=';'
14539 }
14540 fi
14541
14542
14543 # IFS
14544 # We need space, tab and new line, in precisely that order. Quoting is
14545 # there to prevent editors from complaining about space-tab.
14546 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14547 # splitting by setting IFS to empty value.)
14548 IFS=" "" $as_nl"
14549
14550 # Find who we are. Look in the path if we contain no directory separator.
14551 case $0 in #((
14552 *[\\/]* ) as_myself=$0 ;;
14553 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14554 for as_dir in $PATH
14555 do
14556 IFS=$as_save_IFS
14557 test -z "$as_dir" && as_dir=.
14558 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14559 done
14560 IFS=$as_save_IFS
14561
14562 ;;
14563 esac
14564 # We did not find ourselves, most probably we were run as `sh COMMAND'
14565 # in which case we are not to be found in the path.
14566 if test "x$as_myself" = x; then
14567 as_myself=$0
14568 fi
14569 if test ! -f "$as_myself"; then
14570 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14571 exit 1
14572 fi
14573
14574 # Unset variables that we do not need and which cause bugs (e.g. in
14575 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14576 # suppresses any "Segmentation fault" message there. '((' could
14577 # trigger a bug in pdksh 5.2.14.
14578 for as_var in BASH_ENV ENV MAIL MAILPATH
14579 do eval test x\${$as_var+set} = xset \
14580 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14581 done
14582 PS1='$ '
14583 PS2='> '
14584 PS4='+ '
14585
14586 # NLS nuisances.
14587 LC_ALL=C
14588 export LC_ALL
14589 LANGUAGE=C
14590 export LANGUAGE
14591
14592 # CDPATH.
14593 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14594
14595
14596 # as_fn_error ERROR [LINENO LOG_FD]
14597 # ---------------------------------
14598 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14599 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14600 # script with status $?, using 1 if that was 0.
14601 as_fn_error ()
14602 {
14603 as_status=$?; test $as_status -eq 0 && as_status=1
14604 if test "$3"; then
14605 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14606 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14607 fi
14608 $as_echo "$as_me: error: $1" >&2
14609 as_fn_exit $as_status
14610 } # as_fn_error
14611
14612
14613 # as_fn_set_status STATUS
14614 # -----------------------
14615 # Set $? to STATUS, without forking.
14616 as_fn_set_status ()
14617 {
14618 return $1
14619 } # as_fn_set_status
14620
14621 # as_fn_exit STATUS
14622 # -----------------
14623 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14624 as_fn_exit ()
14625 {
14626 set +e
14627 as_fn_set_status $1
14628 exit $1
14629 } # as_fn_exit
14630
14631 # as_fn_unset VAR
14632 # ---------------
14633 # Portably unset VAR.
14634 as_fn_unset ()
14635 {
14636 { eval $1=; unset $1;}
14637 }
14638 as_unset=as_fn_unset
14639 # as_fn_append VAR VALUE
14640 # ----------------------
14641 # Append the text in VALUE to the end of the definition contained in VAR. Take
14642 # advantage of any shell optimizations that allow amortized linear growth over
14643 # repeated appends, instead of the typical quadratic growth present in naive
14644 # implementations.
14645 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14646 eval 'as_fn_append ()
14647 {
14648 eval $1+=\$2
14649 }'
14650 else
14651 as_fn_append ()
14652 {
14653 eval $1=\$$1\$2
14654 }
14655 fi # as_fn_append
14656
14657 # as_fn_arith ARG...
14658 # ------------------
14659 # Perform arithmetic evaluation on the ARGs, and store the result in the
14660 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14661 # must be portable across $(()) and expr.
14662 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14663 eval 'as_fn_arith ()
14664 {
14665 as_val=$(( $* ))
14666 }'
14667 else
14668 as_fn_arith ()
14669 {
14670 as_val=`expr "$@" || test $? -eq 1`
14671 }
14672 fi # as_fn_arith
14673
14674
14675 if expr a : '\(a\)' >/dev/null 2>&1 &&
14676 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14677 as_expr=expr
14678 else
14679 as_expr=false
14680 fi
14681
14682 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14683 as_basename=basename
14684 else
14685 as_basename=false
14686 fi
14687
14688 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14689 as_dirname=dirname
14690 else
14691 as_dirname=false
14692 fi
14693
14694 as_me=`$as_basename -- "$0" ||
14695 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14696 X"$0" : 'X\(//\)$' \| \
14697 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14698 $as_echo X/"$0" |
14699 sed '/^.*\/\([^/][^/]*\)\/*$/{
14700 s//\1/
14701 q
14702 }
14703 /^X\/\(\/\/\)$/{
14704 s//\1/
14705 q
14706 }
14707 /^X\/\(\/\).*/{
14708 s//\1/
14709 q
14710 }
14711 s/.*/./; q'`
14712
14713 # Avoid depending upon Character Ranges.
14714 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14715 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14716 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14717 as_cr_digits='0123456789'
14718 as_cr_alnum=$as_cr_Letters$as_cr_digits
14719
14720 ECHO_C= ECHO_N= ECHO_T=
14721 case `echo -n x` in #(((((
14722 -n*)
14723 case `echo 'xy\c'` in
14724 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14725 xy) ECHO_C='\c';;
14726 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14727 ECHO_T=' ';;
14728 esac;;
14729 *)
14730 ECHO_N='-n';;
14731 esac
14732
14733 rm -f conf$$ conf$$.exe conf$$.file
14734 if test -d conf$$.dir; then
14735 rm -f conf$$.dir/conf$$.file
14736 else
14737 rm -f conf$$.dir
14738 mkdir conf$$.dir 2>/dev/null
14739 fi
14740 if (echo >conf$$.file) 2>/dev/null; then
14741 if ln -s conf$$.file conf$$ 2>/dev/null; then
14742 as_ln_s='ln -s'
14743 # ... but there are two gotchas:
14744 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14745 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14746 # In both cases, we have to default to `cp -p'.
14747 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14748 as_ln_s='cp -p'
14749 elif ln conf$$.file conf$$ 2>/dev/null; then
14750 as_ln_s=ln
14751 else
14752 as_ln_s='cp -p'
14753 fi
14754 else
14755 as_ln_s='cp -p'
14756 fi
14757 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14758 rmdir conf$$.dir 2>/dev/null
14759
14760
14761 # as_fn_mkdir_p
14762 # -------------
14763 # Create "$as_dir" as a directory, including parents if necessary.
14764 as_fn_mkdir_p ()
14765 {
14766
14767 case $as_dir in #(
14768 -*) as_dir=./$as_dir;;
14769 esac
14770 test -d "$as_dir" || eval $as_mkdir_p || {
14771 as_dirs=
14772 while :; do
14773 case $as_dir in #(
14774 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14775 *) as_qdir=$as_dir;;
14776 esac
14777 as_dirs="'$as_qdir' $as_dirs"
14778 as_dir=`$as_dirname -- "$as_dir" ||
14779 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14780 X"$as_dir" : 'X\(//\)[^/]' \| \
14781 X"$as_dir" : 'X\(//\)$' \| \
14782 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14783 $as_echo X"$as_dir" |
14784 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14785 s//\1/
14786 q
14787 }
14788 /^X\(\/\/\)[^/].*/{
14789 s//\1/
14790 q
14791 }
14792 /^X\(\/\/\)$/{
14793 s//\1/
14794 q
14795 }
14796 /^X\(\/\).*/{
14797 s//\1/
14798 q
14799 }
14800 s/.*/./; q'`
14801 test -d "$as_dir" && break
14802 done
14803 test -z "$as_dirs" || eval "mkdir $as_dirs"
14804 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14805
14806
14807 } # as_fn_mkdir_p
14808 if mkdir -p . 2>/dev/null; then
14809 as_mkdir_p='mkdir -p "$as_dir"'
14810 else
14811 test -d ./-p && rmdir ./-p
14812 as_mkdir_p=false
14813 fi
14814
14815 if test -x / >/dev/null 2>&1; then
14816 as_test_x='test -x'
14817 else
14818 if ls -dL / >/dev/null 2>&1; then
14819 as_ls_L_option=L
14820 else
14821 as_ls_L_option=
14822 fi
14823 as_test_x='
14824 eval sh -c '\''
14825 if test -d "$1"; then
14826 test -d "$1/.";
14827 else
14828 case $1 in #(
14829 -*)set "./$1";;
14830 esac;
14831 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14832 ???[sx]*):;;*)false;;esac;fi
14833 '\'' sh
14834 '
14835 fi
14836 as_executable_p=$as_test_x
14837
14838 # Sed expression to map a string onto a valid CPP name.
14839 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14840
14841 # Sed expression to map a string onto a valid variable name.
14842 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14843
14844
14845 exec 6>&1
14846 ## ----------------------------------- ##
14847 ## Main body of $CONFIG_STATUS script. ##
14848 ## ----------------------------------- ##
14849 _ASEOF
14850 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14851
14852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14853 # Save the log message, to keep $0 and so on meaningful, and to
14854 # report actual input values of CONFIG_FILES etc. instead of their
14855 # values after options handling.
14856 ac_log="
14857 This file was extended by minidjvu $as_me 0.8, which was
14858 generated by GNU Autoconf 2.64. Invocation command line was
14859
14860 CONFIG_FILES = $CONFIG_FILES
14861 CONFIG_HEADERS = $CONFIG_HEADERS
14862 CONFIG_LINKS = $CONFIG_LINKS
14863 CONFIG_COMMANDS = $CONFIG_COMMANDS
14864 $ $0 $@
14865
14866 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14867 "
14868
14869 _ACEOF
14870
14871 case $ac_config_files in *"
14872 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14873 esac
14874
14875 case $ac_config_headers in *"
14876 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14877 esac
14878
14879
14880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14881 # Files that config.status was made for.
14882 config_files="$ac_config_files"
14883 config_headers="$ac_config_headers"
14884 config_commands="$ac_config_commands"
14885
14886 _ACEOF
14887
14888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14889 ac_cs_usage="\
14890 \`$as_me' instantiates files and other configuration actions
14891 from templates according to the current configuration. Unless the files
14892 and actions are specified as TAGs, all are instantiated by default.
14893
14894 Usage: $0 [OPTION]... [TAG]...
14895
14896 -h, --help print this help, then exit
14897 -V, --version print version number and configuration settings, then exit
14898 -q, --quiet, --silent
14899 do not print progress messages
14900 -d, --debug don't remove temporary files
14901 --recheck update $as_me by reconfiguring in the same conditions
14902 --file=FILE[:TEMPLATE]
14903 instantiate the configuration file FILE
14904 --header=FILE[:TEMPLATE]
14905 instantiate the configuration header FILE
14906
14907 Configuration files:
14908 $config_files
14909
14910 Configuration headers:
14911 $config_headers
14912
14913 Configuration commands:
14914 $config_commands
14915
14916 Report bugs to <[email protected]>."
14917
14918 _ACEOF
14919 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14920 ac_cs_version="\\
14921 minidjvu config.status 0.8
14922 configured by $0, generated by GNU Autoconf 2.64,
14923 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14924
14925 Copyright (C) 2009 Free Software Foundation, Inc.
14926 This config.status script is free software; the Free Software Foundation
14927 gives unlimited permission to copy, distribute and modify it."
14928
14929 ac_pwd='$ac_pwd'
14930 srcdir='$srcdir'
14931 INSTALL='$INSTALL'
14932 test -n "\$AWK" || AWK=awk
14933 _ACEOF
14934
14935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14936 # The default lists apply if the user does not specify any file.
14937 ac_need_defaults=:
14938 while test $# != 0
14939 do
14940 case $1 in
14941 --*=*)
14942 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14943 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14944 ac_shift=:
14945 ;;
14946 *)
14947 ac_option=$1
14948 ac_optarg=$2
14949 ac_shift=shift
14950 ;;
14951 esac
14952
14953 case $ac_option in
14954 # Handling of the options.
14955 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14956 ac_cs_recheck=: ;;
14957 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14958 $as_echo "$ac_cs_version"; exit ;;
14959 --debug | --debu | --deb | --de | --d | -d )
14960 debug=: ;;
14961 --file | --fil | --fi | --f )
14962 $ac_shift
14963 case $ac_optarg in
14964 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14965 esac
14966 as_fn_append CONFIG_FILES " '$ac_optarg'"
14967 ac_need_defaults=false;;
14968 --header | --heade | --head | --hea )
14969 $ac_shift
14970 case $ac_optarg in
14971 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14972 esac
14973 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14974 ac_need_defaults=false;;
14975 --he | --h)
14976 # Conflict between --help and --header
14977 as_fn_error "ambiguous option: \`$1'
14978 Try \`$0 --help' for more information.";;
14979 --help | --hel | -h )
14980 $as_echo "$ac_cs_usage"; exit ;;
14981 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14982 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14983 ac_cs_silent=: ;;
14984
14985 # This is an error.
14986 -*) as_fn_error "unrecognized option: \`$1'
14987 Try \`$0 --help' for more information." ;;
14988
14989 *) as_fn_append ac_config_targets " $1"
14990 ac_need_defaults=false ;;
14991
14992 esac
14993 shift
14994 done
14995
14996 ac_configure_extra_args=
14997
14998 if $ac_cs_silent; then
14999 exec 6>/dev/null
15000 ac_configure_extra_args="$ac_configure_extra_args --silent"
15001 fi
15002
15003 _ACEOF
15004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15005 if \$ac_cs_recheck; then
15006 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15007 shift
15008 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15009 CONFIG_SHELL='$SHELL'
15010 export CONFIG_SHELL
15011 exec "\$@"
15012 fi
15013
15014 _ACEOF
15015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15016 exec 5>>config.log
15017 {
15018 echo
15019 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15020 ## Running $as_me. ##
15021 _ASBOX
15022 $as_echo "$ac_log"
15023 } >&5
15024
15025 _ACEOF
15026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15027 #
15028 # INIT-COMMANDS
15029 #
15030
15031
15032 # The HP-UX ksh and POSIX shell print the target directory to stdout
15033 # if CDPATH is set.
15034 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15035
15036 sed_quote_subst='$sed_quote_subst'
15037 double_quote_subst='$double_quote_subst'
15038 delay_variable_subst='$delay_variable_subst'
15039 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15040 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15041 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15042 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15043 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15044 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15045 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15046 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15047 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15048 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15049 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15050 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15051 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15052 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15053 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15054 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15055 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15056 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15057 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15058 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15059 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15060 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15061 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15062 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15063 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15064 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15065 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15066 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15067 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15068 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15069 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15070 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15071 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15072 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15073 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15074 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15075 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15076 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15077 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15078 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15079 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15080 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15081 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15082 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15083 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
15084 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15085 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15086 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15087 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15088 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15089 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15090 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15091 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15092 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15093 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15094 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15095 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15096 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15097 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15098 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15099 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15100 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15101 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15102 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15103 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15104 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15105 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15106 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15107 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15108 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15109 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15110 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15111 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15112 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15113 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15114 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15115 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15116 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15117 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15118 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15119 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15120 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15121 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15122 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15123 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15124 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15125 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15126 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15127 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15128 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15129 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15130 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15131 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15132 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15133 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15134 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15135 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15136 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15137 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15138 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15139 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15140 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15141 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15142 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15143 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15144 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15145 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15146 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15147 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15148 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15149 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15150 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15151 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15152 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15153 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15154 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15155 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15156 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15157 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
15158 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15159 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15160 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
15161 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
15162 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
15163 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15164 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15165 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15166 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15167 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15168 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15169 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15170 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15171 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15172 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15173 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15174 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15175 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15176 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15177 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15178 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15179 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15180 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15181 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15182 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15183 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15184 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15185 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15186 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15187 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15188 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15189 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15190 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15191 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15192 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15193 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15194 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15195 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15196 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15197 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15198 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15199 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15200 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15201 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15202 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15203 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15204 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15205 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15206 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15207 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15208 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15209 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15210
15211 LTCC='$LTCC'
15212 LTCFLAGS='$LTCFLAGS'
15213 compiler='$compiler_DEFAULT'
15214
15215 # Quote evaled strings.
15216 for var in SED \
15217 GREP \
15218 EGREP \
15219 FGREP \
15220 LD \
15221 NM \
15222 LN_S \
15223 lt_SP2NL \
15224 lt_NL2SP \
15225 reload_flag \
15226 OBJDUMP \
15227 deplibs_check_method \
15228 file_magic_cmd \
15229 AR \
15230 AR_FLAGS \
15231 STRIP \
15232 RANLIB \
15233 CC \
15234 CFLAGS \
15235 compiler \
15236 lt_cv_sys_global_symbol_pipe \
15237 lt_cv_sys_global_symbol_to_cdecl \
15238 lt_cv_sys_global_symbol_to_c_name_address \
15239 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15240 SHELL \
15241 ECHO \
15242 lt_prog_compiler_no_builtin_flag \
15243 lt_prog_compiler_wl \
15244 lt_prog_compiler_pic \
15245 lt_prog_compiler_static \
15246 lt_cv_prog_compiler_c_o \
15247 need_locks \
15248 DSYMUTIL \
15249 NMEDIT \
15250 LIPO \
15251 OTOOL \
15252 OTOOL64 \
15253 shrext_cmds \
15254 export_dynamic_flag_spec \
15255 whole_archive_flag_spec \
15256 compiler_needs_object \
15257 with_gnu_ld \
15258 allow_undefined_flag \
15259 no_undefined_flag \
15260 hardcode_libdir_flag_spec \
15261 hardcode_libdir_flag_spec_ld \
15262 hardcode_libdir_separator \
15263 fix_srcfile_path \
15264 exclude_expsyms \
15265 include_expsyms \
15266 file_list_spec \
15267 variables_saved_for_relink \
15268 libname_spec \
15269 library_names_spec \
15270 soname_spec \
15271 finish_eval \
15272 old_striplib \
15273 striplib \
15274 compiler_lib_search_dirs \
15275 predep_objects \
15276 postdep_objects \
15277 predeps \
15278 postdeps \
15279 compiler_lib_search_path \
15280 LD_CXX \
15281 compiler_CXX \
15282 lt_prog_compiler_no_builtin_flag_CXX \
15283 lt_prog_compiler_wl_CXX \
15284 lt_prog_compiler_pic_CXX \
15285 lt_prog_compiler_static_CXX \
15286 lt_cv_prog_compiler_c_o_CXX \
15287 export_dynamic_flag_spec_CXX \
15288 whole_archive_flag_spec_CXX \
15289 compiler_needs_object_CXX \
15290 with_gnu_ld_CXX \
15291 allow_undefined_flag_CXX \
15292 no_undefined_flag_CXX \
15293 hardcode_libdir_flag_spec_CXX \
15294 hardcode_libdir_flag_spec_ld_CXX \
15295 hardcode_libdir_separator_CXX \
15296 fix_srcfile_path_CXX \
15297 exclude_expsyms_CXX \
15298 include_expsyms_CXX \
15299 file_list_spec_CXX \
15300 compiler_lib_search_dirs_CXX \
15301 predep_objects_CXX \
15302 postdep_objects_CXX \
15303 predeps_CXX \
15304 postdeps_CXX \
15305 compiler_lib_search_path_CXX; do
15306 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15307 *[\\\\\\\`\\"\\\$]*)
15308 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15309 ;;
15310 *)
15311 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15312 ;;
15313 esac
15314 done
15315
15316 # Double-quote double-evaled strings.
15317 for var in reload_cmds \
15318 old_postinstall_cmds \
15319 old_postuninstall_cmds \
15320 old_archive_cmds \
15321 extract_expsyms_cmds \
15322 old_archive_from_new_cmds \
15323 old_archive_from_expsyms_cmds \
15324 archive_cmds \
15325 archive_expsym_cmds \
15326 module_cmds \
15327 module_expsym_cmds \
15328 export_symbols_cmds \
15329 prelink_cmds \
15330 postinstall_cmds \
15331 postuninstall_cmds \
15332 finish_cmds \
15333 sys_lib_search_path_spec \
15334 sys_lib_dlsearch_path_spec \
15335 old_archive_cmds_CXX \
15336 old_archive_from_new_cmds_CXX \
15337 old_archive_from_expsyms_cmds_CXX \
15338 archive_cmds_CXX \
15339 archive_expsym_cmds_CXX \
15340 module_cmds_CXX \
15341 module_expsym_cmds_CXX \
15342 export_symbols_cmds_CXX \
15343 prelink_cmds_CXX; do
15344 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15345 *[\\\\\\\`\\"\\\$]*)
15346 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15347 ;;
15348 *)
15349 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15350 ;;
15351 esac
15352 done
15353
15354 # Fix-up fallback echo if it was mangled by the above quoting rules.
15355 case \$lt_ECHO in
15356 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15357 ;;
15358 esac
15359
15360 ac_aux_dir='$ac_aux_dir'
15361 xsi_shell='$xsi_shell'
15362 lt_shell_append='$lt_shell_append'
15363
15364 # See if we are running on zsh, and set the options which allow our
15365 # commands through without removal of \ escapes INIT.
15366 if test -n "\${ZSH_VERSION+set}" ; then
15367 setopt NO_GLOB_SUBST
15368 fi
15369
15370
15371 PACKAGE='$PACKAGE'
15372 VERSION='$VERSION'
15373 TIMESTAMP='$TIMESTAMP'
15374 RM='$RM'
15375 ofile='$ofile'
15376
15377
15378
15379
15380
15381
15382 _ACEOF
15383
15384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15385
15386 # Handling of arguments.
15387 for ac_config_target in $ac_config_targets
15388 do
15389 case $ac_config_target in
15390 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config/config.h.in" ;;
15391 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15392 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15393 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15394 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
15395 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
15396
15397 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15398 esac
15399 done
15400
15401
15402 # If the user did not use the arguments to specify the items to instantiate,
15403 # then the envvar interface is used. Set only those that are not.
15404 # We use the long form for the default assignment because of an extremely
15405 # bizarre bug on SunOS 4.1.3.
15406 if $ac_need_defaults; then
15407 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15408 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15409 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15410 fi
15411
15412 # Have a temporary directory for convenience. Make it in the build tree
15413 # simply because there is no reason against having it here, and in addition,
15414 # creating and moving files from /tmp can sometimes cause problems.
15415 # Hook for its removal unless debugging.
15416 # Note that there is a small window in which the directory will not be cleaned:
15417 # after its creation but before its name has been assigned to `$tmp'.
15418 $debug ||
15419 {
15420 tmp=
15421 trap 'exit_status=$?
15422 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15423 ' 0
15424 trap 'as_fn_exit 1' 1 2 13 15
15425 }
15426 # Create a (secure) tmp directory for tmp files.
15427
15428 {
15429 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15430 test -n "$tmp" && test -d "$tmp"
15431 } ||
15432 {
15433 tmp=./conf$$-$RANDOM
15434 (umask 077 && mkdir "$tmp")
15435 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15436
15437 # Set up the scripts for CONFIG_FILES section.
15438 # No need to generate them if there are no CONFIG_FILES.
15439 # This happens for instance with `./config.status config.h'.
15440 if test -n "$CONFIG_FILES"; then
15441
15442
15443 ac_cr=`echo X | tr X '\015'`
15444 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15445 # But we know of no other shell where ac_cr would be empty at this
15446 # point, so we can use a bashism as a fallback.
15447 if test "x$ac_cr" = x; then
15448 eval ac_cr=\$\'\\r\'
15449 fi
15450 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15451 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15452 ac_cs_awk_cr='\r'
15453 else
15454 ac_cs_awk_cr=$ac_cr
15455 fi
15456
15457 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15458 _ACEOF
15459
15460
15461 {
15462 echo "cat >conf$$subs.awk <<_ACEOF" &&
15463 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15464 echo "_ACEOF"
15465 } >conf$$subs.sh ||
15466 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15467 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15468 ac_delim='%!_!# '
15469 for ac_last_try in false false false false false :; do
15470 . ./conf$$subs.sh ||
15471 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15472
15473 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15474 if test $ac_delim_n = $ac_delim_num; then
15475 break
15476 elif $ac_last_try; then
15477 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15478 else
15479 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15480 fi
15481 done
15482 rm -f conf$$subs.sh
15483
15484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15485 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15486 _ACEOF
15487 sed -n '
15488 h
15489 s/^/S["/; s/!.*/"]=/
15490 p
15491 g
15492 s/^[^!]*!//
15493 :repl
15494 t repl
15495 s/'"$ac_delim"'$//
15496 t delim
15497 :nl
15498 h
15499 s/\(.\{148\}\).*/\1/
15500 t more1
15501 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15502 p
15503 n
15504 b repl
15505 :more1
15506 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15507 p
15508 g
15509 s/.\{148\}//
15510 t nl
15511 :delim
15512 h
15513 s/\(.\{148\}\).*/\1/
15514 t more2
15515 s/["\\]/\\&/g; s/^/"/; s/$/"/
15516 p
15517 b
15518 :more2
15519 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15520 p
15521 g
15522 s/.\{148\}//
15523 t delim
15524 ' <conf$$subs.awk | sed '
15525 /^[^""]/{
15526 N
15527 s/\n//
15528 }
15529 ' >>$CONFIG_STATUS || ac_write_fail=1
15530 rm -f conf$$subs.awk
15531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15532 _ACAWK
15533 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15534 for (key in S) S_is_set[key] = 1
15535 FS = ""
15536
15537 }
15538 {
15539 line = $ 0
15540 nfields = split(line, field, "@")
15541 substed = 0
15542 len = length(field[1])
15543 for (i = 2; i < nfields; i++) {
15544 key = field[i]
15545 keylen = length(key)
15546 if (S_is_set[key]) {
15547 value = S[key]
15548 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15549 len += length(value) + length(field[++i])
15550 substed = 1
15551 } else
15552 len += 1 + keylen
15553 }
15554
15555 print line
15556 }
15557
15558 _ACAWK
15559 _ACEOF
15560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15561 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15562 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15563 else
15564 cat
15565 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15566 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15567 _ACEOF
15568
15569 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15570 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15571 # trailing colons and then remove the whole line if VPATH becomes empty
15572 # (actually we leave an empty line to preserve line numbers).
15573 if test "x$srcdir" = x.; then
15574 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15575 s/:*\$(srcdir):*/:/
15576 s/:*\${srcdir}:*/:/
15577 s/:*@srcdir@:*/:/
15578 s/^\([^=]*=[ ]*\):*/\1/
15579 s/:*$//
15580 s/^[^=]*=[ ]*$//
15581 }'
15582 fi
15583
15584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15585 fi # test -n "$CONFIG_FILES"
15586
15587 # Set up the scripts for CONFIG_HEADERS section.
15588 # No need to generate them if there are no CONFIG_HEADERS.
15589 # This happens for instance with `./config.status Makefile'.
15590 if test -n "$CONFIG_HEADERS"; then
15591 cat >"$tmp/defines.awk" <<\_ACAWK ||
15592 BEGIN {
15593 _ACEOF
15594
15595 # Transform confdefs.h into an awk script `defines.awk', embedded as
15596 # here-document in config.status, that substitutes the proper values into
15597 # config.h.in to produce config.h.
15598
15599 # Create a delimiter string that does not exist in confdefs.h, to ease
15600 # handling of long lines.
15601 ac_delim='%!_!# '
15602 for ac_last_try in false false :; do
15603 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15604 if test -z "$ac_t"; then
15605 break
15606 elif $ac_last_try; then
15607 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15608 else
15609 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15610 fi
15611 done
15612
15613 # For the awk script, D is an array of macro values keyed by name,
15614 # likewise P contains macro parameters if any. Preserve backslash
15615 # newline sequences.
15616
15617 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15618 sed -n '
15619 s/.\{148\}/&'"$ac_delim"'/g
15620 t rset
15621 :rset
15622 s/^[ ]*#[ ]*define[ ][ ]*/ /
15623 t def
15624 d
15625 :def
15626 s/\\$//
15627 t bsnl
15628 s/["\\]/\\&/g
15629 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15630 D["\1"]=" \3"/p
15631 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15632 d
15633 :bsnl
15634 s/["\\]/\\&/g
15635 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15636 D["\1"]=" \3\\\\\\n"\\/p
15637 t cont
15638 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15639 t cont
15640 d
15641 :cont
15642 n
15643 s/.\{148\}/&'"$ac_delim"'/g
15644 t clear
15645 :clear
15646 s/\\$//
15647 t bsnlc
15648 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15649 d
15650 :bsnlc
15651 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15652 b cont
15653 ' <confdefs.h | sed '
15654 s/'"$ac_delim"'/"\\\
15655 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15656
15657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15658 for (key in D) D_is_set[key] = 1
15659 FS = ""
15660 }
15661 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15662 line = \$ 0
15663 split(line, arg, " ")
15664 if (arg[1] == "#") {
15665 defundef = arg[2]
15666 mac1 = arg[3]
15667 } else {
15668 defundef = substr(arg[1], 2)
15669 mac1 = arg[2]
15670 }
15671 split(mac1, mac2, "(") #)
15672 macro = mac2[1]
15673 prefix = substr(line, 1, index(line, defundef) - 1)
15674 if (D_is_set[macro]) {
15675 # Preserve the white space surrounding the "#".
15676 print prefix "define", macro P[macro] D[macro]
15677 next
15678 } else {
15679 # Replace #undef with comments. This is necessary, for example,
15680 # in the case of _POSIX_SOURCE, which is predefined and required
15681 # on some systems where configure will not decide to define it.
15682 if (defundef == "undef") {
15683 print "/*", prefix defundef, macro, "*/"
15684 next
15685 }
15686 }
15687 }
15688 { print }
15689 _ACAWK
15690 _ACEOF
15691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15692 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15693 fi # test -n "$CONFIG_HEADERS"
15694
15695
15696 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15697 shift
15698 for ac_tag
15699 do
15700 case $ac_tag in
15701 :[FHLC]) ac_mode=$ac_tag; continue;;
15702 esac
15703 case $ac_mode$ac_tag in
15704 :[FHL]*:*);;
15705 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15706 :[FH]-) ac_tag=-:-;;
15707 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15708 esac
15709 ac_save_IFS=$IFS
15710 IFS=:
15711 set x $ac_tag
15712 IFS=$ac_save_IFS
15713 shift
15714 ac_file=$1
15715 shift
15716
15717 case $ac_mode in
15718 :L) ac_source=$1;;
15719 :[FH])
15720 ac_file_inputs=
15721 for ac_f
15722 do
15723 case $ac_f in
15724 -) ac_f="$tmp/stdin";;
15725 *) # Look for the file first in the build tree, then in the source tree
15726 # (if the path is not absolute). The absolute path cannot be DOS-style,
15727 # because $ac_f cannot contain `:'.
15728 test -f "$ac_f" ||
15729 case $ac_f in
15730 [\\/$]*) false;;
15731 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15732 esac ||
15733 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15734 esac
15735 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15736 as_fn_append ac_file_inputs " '$ac_f'"
15737 done
15738
15739 # Let's still pretend it is `configure' which instantiates (i.e., don't
15740 # use $as_me), people would be surprised to read:
15741 # /* config.h. Generated by config.status. */
15742 configure_input='Generated from '`
15743 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15744 `' by configure.'
15745 if test x"$ac_file" != x-; then
15746 configure_input="$ac_file. $configure_input"
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15748 $as_echo "$as_me: creating $ac_file" >&6;}
15749 fi
15750 # Neutralize special characters interpreted by sed in replacement strings.
15751 case $configure_input in #(
15752 *\&* | *\|* | *\\* )
15753 ac_sed_conf_input=`$as_echo "$configure_input" |
15754 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15755 *) ac_sed_conf_input=$configure_input;;
15756 esac
15757
15758 case $ac_tag in
15759 *:-:* | *:-) cat >"$tmp/stdin" \
15760 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15761 esac
15762 ;;
15763 esac
15764
15765 ac_dir=`$as_dirname -- "$ac_file" ||
15766 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15767 X"$ac_file" : 'X\(//\)[^/]' \| \
15768 X"$ac_file" : 'X\(//\)$' \| \
15769 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15770 $as_echo X"$ac_file" |
15771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15772 s//\1/
15773 q
15774 }
15775 /^X\(\/\/\)[^/].*/{
15776 s//\1/
15777 q
15778 }
15779 /^X\(\/\/\)$/{
15780 s//\1/
15781 q
15782 }
15783 /^X\(\/\).*/{
15784 s//\1/
15785 q
15786 }
15787 s/.*/./; q'`
15788 as_dir="$ac_dir"; as_fn_mkdir_p
15789 ac_builddir=.
15790
15791 case "$ac_dir" in
15792 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15793 *)
15794 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15795 # A ".." for each directory in $ac_dir_suffix.
15796 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15797 case $ac_top_builddir_sub in
15798 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15799 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15800 esac ;;
15801 esac
15802 ac_abs_top_builddir=$ac_pwd
15803 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15804 # for backward compatibility:
15805 ac_top_builddir=$ac_top_build_prefix
15806
15807 case $srcdir in
15808 .) # We are building in place.
15809 ac_srcdir=.
15810 ac_top_srcdir=$ac_top_builddir_sub
15811 ac_abs_top_srcdir=$ac_pwd ;;
15812 [\\/]* | ?:[\\/]* ) # Absolute name.
15813 ac_srcdir=$srcdir$ac_dir_suffix;
15814 ac_top_srcdir=$srcdir
15815 ac_abs_top_srcdir=$srcdir ;;
15816 *) # Relative name.
15817 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15818 ac_top_srcdir=$ac_top_build_prefix$srcdir
15819 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15820 esac
15821 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15822
15823
15824 case $ac_mode in
15825 :F)
15826 #
15827 # CONFIG_FILE
15828 #
15829
15830 case $INSTALL in
15831 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15832 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15833 esac
15834 _ACEOF
15835
15836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15837 # If the template does not know about datarootdir, expand it.
15838 # FIXME: This hack should be removed a few years after 2.60.
15839 ac_datarootdir_hack=; ac_datarootdir_seen=
15840 ac_sed_dataroot='
15841 /datarootdir/ {
15842 p
15843 q
15844 }
15845 /@datadir@/p
15846 /@docdir@/p
15847 /@infodir@/p
15848 /@localedir@/p
15849 /@mandir@/p'
15850 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15851 *datarootdir*) ac_datarootdir_seen=yes;;
15852 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15854 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15855 _ACEOF
15856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15857 ac_datarootdir_hack='
15858 s&@datadir@&$datadir&g
15859 s&@docdir@&$docdir&g
15860 s&@infodir@&$infodir&g
15861 s&@localedir@&$localedir&g
15862 s&@mandir@&$mandir&g
15863 s&\\\${datarootdir}&$datarootdir&g' ;;
15864 esac
15865 _ACEOF
15866
15867 # Neutralize VPATH when `$srcdir' = `.'.
15868 # Shell code in configure.ac might set extrasub.
15869 # FIXME: do we really want to maintain this feature?
15870 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15871 ac_sed_extra="$ac_vpsub
15872 $extrasub
15873 _ACEOF
15874 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15875 :t
15876 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15877 s|@configure_input@|$ac_sed_conf_input|;t t
15878 s&@top_builddir@&$ac_top_builddir_sub&;t t
15879 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15880 s&@srcdir@&$ac_srcdir&;t t
15881 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15882 s&@top_srcdir@&$ac_top_srcdir&;t t
15883 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15884 s&@builddir@&$ac_builddir&;t t
15885 s&@abs_builddir@&$ac_abs_builddir&;t t
15886 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15887 s&@INSTALL@&$ac_INSTALL&;t t
15888 $ac_datarootdir_hack
15889 "
15890 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15891 || as_fn_error "could not create $ac_file" "$LINENO" 5
15892
15893 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15894 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15895 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15897 which seems to be undefined. Please make sure it is defined." >&5
15898 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15899 which seems to be undefined. Please make sure it is defined." >&2;}
15900
15901 rm -f "$tmp/stdin"
15902 case $ac_file in
15903 -) cat "$tmp/out" && rm -f "$tmp/out";;
15904 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15905 esac \
15906 || as_fn_error "could not create $ac_file" "$LINENO" 5
15907 ;;
15908 :H)
15909 #
15910 # CONFIG_HEADER
15911 #
15912 if test x"$ac_file" != x-; then
15913 {
15914 $as_echo "/* $configure_input */" \
15915 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15916 } >"$tmp/config.h" \
15917 || as_fn_error "could not create $ac_file" "$LINENO" 5
15918 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15920 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15921 else
15922 rm -f "$ac_file"
15923 mv "$tmp/config.h" "$ac_file" \
15924 || as_fn_error "could not create $ac_file" "$LINENO" 5
15925 fi
15926 else
15927 $as_echo "/* $configure_input */" \
15928 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15929 || as_fn_error "could not create -" "$LINENO" 5
15930 fi
15931 ;;
15932
15933 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15934 $as_echo "$as_me: executing $ac_file commands" >&6;}
15935 ;;
15936 esac
15937
15938
15939 case $ac_file$ac_mode in
15940 "libtool":C)
15941
15942 # See if we are running on zsh, and set the options which allow our
15943 # commands through without removal of \ escapes.
15944 if test -n "${ZSH_VERSION+set}" ; then
15945 setopt NO_GLOB_SUBST
15946 fi
15947
15948 cfgfile="${ofile}T"
15949 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15950 $RM "$cfgfile"
15951
15952 cat <<_LT_EOF >> "$cfgfile"
15953 #! $SHELL
15954
15955 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15956 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15957 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15958 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15959 #
15960 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15961 # 2006, 2007, 2008 Free Software Foundation, Inc.
15962 # Written by Gordon Matzigkeit, 1996
15963 #
15964 # This file is part of GNU Libtool.
15965 #
15966 # GNU Libtool is free software; you can redistribute it and/or
15967 # modify it under the terms of the GNU General Public License as
15968 # published by the Free Software Foundation; either version 2 of
15969 # the License, or (at your option) any later version.
15970 #
15971 # As a special exception to the GNU General Public License,
15972 # if you distribute this file as part of a program or library that
15973 # is built using GNU Libtool, you may include this file under the
15974 # same distribution terms that you use for the rest of that program.
15975 #
15976 # GNU Libtool is distributed in the hope that it will be useful,
15977 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15978 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15979 # GNU General Public License for more details.
15980 #
15981 # You should have received a copy of the GNU General Public License
15982 # along with GNU Libtool; see the file COPYING. If not, a copy
15983 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15984 # obtained by writing to the Free Software Foundation, Inc.,
15985 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15986
15987
15988 # The names of the tagged configurations supported by this script.
15989 available_tags="CXX "
15990
15991 # ### BEGIN LIBTOOL CONFIG
15992
15993 # Which release of libtool.m4 was used?
15994 macro_version=$macro_version
15995 macro_revision=$macro_revision
15996
15997 # Whether or not to build shared libraries.
15998 build_libtool_libs=$enable_shared
15999
16000 # Whether or not to build static libraries.
16001 build_old_libs=$enable_static
16002
16003 # What type of objects to build.
16004 pic_mode=$pic_mode
16005
16006 # Whether or not to optimize for fast installation.
16007 fast_install=$enable_fast_install
16008
16009 # The host system.
16010 host_alias=$host_alias
16011 host=$host
16012 host_os=$host_os
16013
16014 # The build system.
16015 build_alias=$build_alias
16016 build=$build
16017 build_os=$build_os
16018
16019 # A sed program that does not truncate output.
16020 SED=$lt_SED
16021
16022 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16023 Xsed="\$SED -e 1s/^X//"
16024
16025 # A grep program that handles long lines.
16026 GREP=$lt_GREP
16027
16028 # An ERE matcher.
16029 EGREP=$lt_EGREP
16030
16031 # A literal string matcher.
16032 FGREP=$lt_FGREP
16033
16034 # A BSD- or MS-compatible name lister.
16035 NM=$lt_NM
16036
16037 # Whether we need soft or hard links.
16038 LN_S=$lt_LN_S
16039
16040 # What is the maximum length of a command?
16041 max_cmd_len=$max_cmd_len
16042
16043 # Object file suffix (normally "o").
16044 objext=$ac_objext
16045
16046 # Executable file suffix (normally "").
16047 exeext=$exeext
16048
16049 # whether the shell understands "unset".
16050 lt_unset=$lt_unset
16051
16052 # turn spaces into newlines.
16053 SP2NL=$lt_lt_SP2NL
16054
16055 # turn newlines into spaces.
16056 NL2SP=$lt_lt_NL2SP
16057
16058 # How to create reloadable object files.
16059 reload_flag=$lt_reload_flag
16060 reload_cmds=$lt_reload_cmds
16061
16062 # An object symbol dumper.
16063 OBJDUMP=$lt_OBJDUMP
16064
16065 # Method to check whether dependent libraries are shared objects.
16066 deplibs_check_method=$lt_deplibs_check_method
16067
16068 # Command to use when deplibs_check_method == "file_magic".
16069 file_magic_cmd=$lt_file_magic_cmd
16070
16071 # The archiver.
16072 AR=$lt_AR
16073 AR_FLAGS=$lt_AR_FLAGS
16074
16075 # A symbol stripping program.
16076 STRIP=$lt_STRIP
16077
16078 # Commands used to install an old-style archive.
16079 RANLIB=$lt_RANLIB
16080 old_postinstall_cmds=$lt_old_postinstall_cmds
16081 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16082
16083 # A C compiler.
16084 LTCC=$lt_CC
16085
16086 # LTCC compiler flags.
16087 LTCFLAGS=$lt_CFLAGS
16088
16089 # Take the output of nm and produce a listing of raw symbols and C names.
16090 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16091
16092 # Transform the output of nm in a proper C declaration.
16093 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16094
16095 # Transform the output of nm in a C name address pair.
16096 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16097
16098 # Transform the output of nm in a C name address pair when lib prefix is needed.
16099 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16100
16101 # The name of the directory that contains temporary libtool files.
16102 objdir=$objdir
16103
16104 # Shell to use when invoking shell scripts.
16105 SHELL=$lt_SHELL
16106
16107 # An echo program that does not interpret backslashes.
16108 ECHO=$lt_ECHO
16109
16110 # Used to examine libraries when file_magic_cmd begins with "file".
16111 MAGIC_CMD=$MAGIC_CMD
16112
16113 # Must we lock files when doing compilation?
16114 need_locks=$lt_need_locks
16115
16116 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16117 DSYMUTIL=$lt_DSYMUTIL
16118
16119 # Tool to change global to local symbols on Mac OS X.
16120 NMEDIT=$lt_NMEDIT
16121
16122 # Tool to manipulate fat objects and archives on Mac OS X.
16123 LIPO=$lt_LIPO
16124
16125 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16126 OTOOL=$lt_OTOOL
16127
16128 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16129 OTOOL64=$lt_OTOOL64
16130
16131 # Old archive suffix (normally "a").
16132 libext=$libext
16133
16134 # Shared library suffix (normally ".so").
16135 shrext_cmds=$lt_shrext_cmds
16136
16137 # The commands to extract the exported symbol list from a shared archive.
16138 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16139
16140 # Variables whose values should be saved in libtool wrapper scripts and
16141 # restored at link time.
16142 variables_saved_for_relink=$lt_variables_saved_for_relink
16143
16144 # Do we need the "lib" prefix for modules?
16145 need_lib_prefix=$need_lib_prefix
16146
16147 # Do we need a version for libraries?
16148 need_version=$need_version
16149
16150 # Library versioning type.
16151 version_type=$version_type
16152
16153 # Shared library runtime path variable.
16154 runpath_var=$runpath_var
16155
16156 # Shared library path variable.
16157 shlibpath_var=$shlibpath_var
16158
16159 # Is shlibpath searched before the hard-coded library search path?
16160 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16161
16162 # Format of library name prefix.
16163 libname_spec=$lt_libname_spec
16164
16165 # List of archive names. First name is the real one, the rest are links.
16166 # The last name is the one that the linker finds with -lNAME
16167 library_names_spec=$lt_library_names_spec
16168
16169 # The coded name of the library, if different from the real name.
16170 soname_spec=$lt_soname_spec
16171
16172 # Command to use after installation of a shared archive.
16173 postinstall_cmds=$lt_postinstall_cmds
16174
16175 # Command to use after uninstallation of a shared archive.
16176 postuninstall_cmds=$lt_postuninstall_cmds
16177
16178 # Commands used to finish a libtool library installation in a directory.
16179 finish_cmds=$lt_finish_cmds
16180
16181 # As "finish_cmds", except a single script fragment to be evaled but
16182 # not shown.
16183 finish_eval=$lt_finish_eval
16184
16185 # Whether we should hardcode library paths into libraries.
16186 hardcode_into_libs=$hardcode_into_libs
16187
16188 # Compile-time system search path for libraries.
16189 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16190
16191 # Run-time system search path for libraries.
16192 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16193
16194 # Whether dlopen is supported.
16195 dlopen_support=$enable_dlopen
16196
16197 # Whether dlopen of programs is supported.
16198 dlopen_self=$enable_dlopen_self
16199
16200 # Whether dlopen of statically linked programs is supported.
16201 dlopen_self_static=$enable_dlopen_self_static
16202
16203 # Commands to strip libraries.
16204 old_striplib=$lt_old_striplib
16205 striplib=$lt_striplib
16206
16207
16208 # The linker used to build libraries.
16209 LD=$lt_LD
16210
16211 # Commands used to build an old-style archive.
16212 old_archive_cmds=$lt_old_archive_cmds
16213
16214 # A language specific compiler.
16215 CC=$lt_compiler
16216
16217 # Is the compiler the GNU compiler?
16218 with_gcc=$GCC
16219
16220 # Compiler flag to turn off builtin functions.
16221 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16222
16223 # How to pass a linker flag through the compiler.
16224 wl=$lt_lt_prog_compiler_wl
16225
16226 # Additional compiler flags for building library objects.
16227 pic_flag=$lt_lt_prog_compiler_pic
16228
16229 # Compiler flag to prevent dynamic linking.
16230 link_static_flag=$lt_lt_prog_compiler_static
16231
16232 # Does compiler simultaneously support -c and -o options?
16233 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16234
16235 # Whether or not to add -lc for building shared libraries.
16236 build_libtool_need_lc=$archive_cmds_need_lc
16237
16238 # Whether or not to disallow shared libs when runtime libs are static.
16239 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16240
16241 # Compiler flag to allow reflexive dlopens.
16242 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16243
16244 # Compiler flag to generate shared objects directly from archives.
16245 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16246
16247 # Whether the compiler copes with passing no objects directly.
16248 compiler_needs_object=$lt_compiler_needs_object
16249
16250 # Create an old-style archive from a shared archive.
16251 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16252
16253 # Create a temporary old-style archive to link instead of a shared archive.
16254 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16255
16256 # Commands used to build a shared archive.
16257 archive_cmds=$lt_archive_cmds
16258 archive_expsym_cmds=$lt_archive_expsym_cmds
16259
16260 # Commands used to build a loadable module if different from building
16261 # a shared archive.
16262 module_cmds=$lt_module_cmds
16263 module_expsym_cmds=$lt_module_expsym_cmds
16264
16265 # Whether we are building with GNU ld or not.
16266 with_gnu_ld=$lt_with_gnu_ld
16267
16268 # Flag that allows shared libraries with undefined symbols to be built.
16269 allow_undefined_flag=$lt_allow_undefined_flag
16270
16271 # Flag that enforces no undefined symbols.
16272 no_undefined_flag=$lt_no_undefined_flag
16273
16274 # Flag to hardcode \$libdir into a binary during linking.
16275 # This must work even if \$libdir does not exist
16276 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16277
16278 # If ld is used when linking, flag to hardcode \$libdir into a binary
16279 # during linking. This must work even if \$libdir does not exist.
16280 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16281
16282 # Whether we need a single "-rpath" flag with a separated argument.
16283 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16284
16285 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16286 # DIR into the resulting binary.
16287 hardcode_direct=$hardcode_direct
16288
16289 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16290 # DIR into the resulting binary and the resulting library dependency is
16291 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16292 # library is relocated.
16293 hardcode_direct_absolute=$hardcode_direct_absolute
16294
16295 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16296 # into the resulting binary.
16297 hardcode_minus_L=$hardcode_minus_L
16298
16299 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16300 # into the resulting binary.
16301 hardcode_shlibpath_var=$hardcode_shlibpath_var
16302
16303 # Set to "yes" if building a shared library automatically hardcodes DIR
16304 # into the library and all subsequent libraries and executables linked
16305 # against it.
16306 hardcode_automatic=$hardcode_automatic
16307
16308 # Set to yes if linker adds runtime paths of dependent libraries
16309 # to runtime path list.
16310 inherit_rpath=$inherit_rpath
16311
16312 # Whether libtool must link a program against all its dependency libraries.
16313 link_all_deplibs=$link_all_deplibs
16314
16315 # Fix the shell variable \$srcfile for the compiler.
16316 fix_srcfile_path=$lt_fix_srcfile_path
16317
16318 # Set to "yes" if exported symbols are required.
16319 always_export_symbols=$always_export_symbols
16320
16321 # The commands to list exported symbols.
16322 export_symbols_cmds=$lt_export_symbols_cmds
16323
16324 # Symbols that should not be listed in the preloaded symbols.
16325 exclude_expsyms=$lt_exclude_expsyms
16326
16327 # Symbols that must always be exported.
16328 include_expsyms=$lt_include_expsyms
16329
16330 # Commands necessary for linking programs (against libraries) with templates.
16331 prelink_cmds=$lt_prelink_cmds
16332
16333 # Specify filename containing input files.
16334 file_list_spec=$lt_file_list_spec
16335
16336 # How to hardcode a shared library path into an executable.
16337 hardcode_action=$hardcode_action
16338
16339 # The directories searched by this compiler when creating a shared library.
16340 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16341
16342 # Dependencies to place before and after the objects being linked to
16343 # create a shared library.
16344 predep_objects=$lt_predep_objects
16345 postdep_objects=$lt_postdep_objects
16346 predeps=$lt_predeps
16347 postdeps=$lt_postdeps
16348
16349 # The library search path used internally by the compiler when linking
16350 # a shared library.
16351 compiler_lib_search_path=$lt_compiler_lib_search_path
16352
16353 # ### END LIBTOOL CONFIG
16354
16355 _LT_EOF
16356
16357 case $host_os in
16358 aix3*)
16359 cat <<\_LT_EOF >> "$cfgfile"
16360 # AIX sometimes has problems with the GCC collect2 program. For some
16361 # reason, if we set the COLLECT_NAMES environment variable, the problems
16362 # vanish in a puff of smoke.
16363 if test "X${COLLECT_NAMES+set}" != Xset; then
16364 COLLECT_NAMES=
16365 export COLLECT_NAMES
16366 fi
16367 _LT_EOF
16368 ;;
16369 esac
16370
16371
16372 ltmain="$ac_aux_dir/ltmain.sh"
16373
16374
16375 # We use sed instead of cat because bash on DJGPP gets confused if
16376 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16377 # text mode, it properly converts lines to CR/LF. This bash problem
16378 # is reportedly fixed, but why not run on old versions too?
16379 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16380 || (rm -f "$cfgfile"; exit 1)
16381
16382 case $xsi_shell in
16383 yes)
16384 cat << \_LT_EOF >> "$cfgfile"
16385
16386 # func_dirname file append nondir_replacement
16387 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16388 # otherwise set result to NONDIR_REPLACEMENT.
16389 func_dirname ()
16390 {
16391 case ${1} in
16392 */*) func_dirname_result="${1%/*}${2}" ;;
16393 * ) func_dirname_result="${3}" ;;
16394 esac
16395 }
16396
16397 # func_basename file
16398 func_basename ()
16399 {
16400 func_basename_result="${1##*/}"
16401 }
16402
16403 # func_dirname_and_basename file append nondir_replacement
16404 # perform func_basename and func_dirname in a single function
16405 # call:
16406 # dirname: Compute the dirname of FILE. If nonempty,
16407 # add APPEND to the result, otherwise set result
16408 # to NONDIR_REPLACEMENT.
16409 # value returned in "$func_dirname_result"
16410 # basename: Compute filename of FILE.
16411 # value retuned in "$func_basename_result"
16412 # Implementation must be kept synchronized with func_dirname
16413 # and func_basename. For efficiency, we do not delegate to
16414 # those functions but instead duplicate the functionality here.
16415 func_dirname_and_basename ()
16416 {
16417 case ${1} in
16418 */*) func_dirname_result="${1%/*}${2}" ;;
16419 * ) func_dirname_result="${3}" ;;
16420 esac
16421 func_basename_result="${1##*/}"
16422 }
16423
16424 # func_stripname prefix suffix name
16425 # strip PREFIX and SUFFIX off of NAME.
16426 # PREFIX and SUFFIX must not contain globbing or regex special
16427 # characters, hashes, percent signs, but SUFFIX may contain a leading
16428 # dot (in which case that matches only a dot).
16429 func_stripname ()
16430 {
16431 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16432 # positional parameters, so assign one to ordinary parameter first.
16433 func_stripname_result=${3}
16434 func_stripname_result=${func_stripname_result#"${1}"}
16435 func_stripname_result=${func_stripname_result%"${2}"}
16436 }
16437
16438 # func_opt_split
16439 func_opt_split ()
16440 {
16441 func_opt_split_opt=${1%%=*}
16442 func_opt_split_arg=${1#*=}
16443 }
16444
16445 # func_lo2o object
16446 func_lo2o ()
16447 {
16448 case ${1} in
16449 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16450 *) func_lo2o_result=${1} ;;
16451 esac
16452 }
16453
16454 # func_xform libobj-or-source
16455 func_xform ()
16456 {
16457 func_xform_result=${1%.*}.lo
16458 }
16459
16460 # func_arith arithmetic-term...
16461 func_arith ()
16462 {
16463 func_arith_result=$(( $* ))
16464 }
16465
16466 # func_len string
16467 # STRING may not start with a hyphen.
16468 func_len ()
16469 {
16470 func_len_result=${#1}
16471 }
16472
16473 _LT_EOF
16474 ;;
16475 *) # Bourne compatible functions.
16476 cat << \_LT_EOF >> "$cfgfile"
16477
16478 # func_dirname file append nondir_replacement
16479 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16480 # otherwise set result to NONDIR_REPLACEMENT.
16481 func_dirname ()
16482 {
16483 # Extract subdirectory from the argument.
16484 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16485 if test "X$func_dirname_result" = "X${1}"; then
16486 func_dirname_result="${3}"
16487 else
16488 func_dirname_result="$func_dirname_result${2}"
16489 fi
16490 }
16491
16492 # func_basename file
16493 func_basename ()
16494 {
16495 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16496 }
16497
16498
16499 # func_stripname prefix suffix name
16500 # strip PREFIX and SUFFIX off of NAME.
16501 # PREFIX and SUFFIX must not contain globbing or regex special
16502 # characters, hashes, percent signs, but SUFFIX may contain a leading
16503 # dot (in which case that matches only a dot).
16504 # func_strip_suffix prefix name
16505 func_stripname ()
16506 {
16507 case ${2} in
16508 .*) func_stripname_result=`$ECHO "X${3}" \
16509 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16510 *) func_stripname_result=`$ECHO "X${3}" \
16511 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16512 esac
16513 }
16514
16515 # sed scripts:
16516 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16517 my_sed_long_arg='1s/^-[^=]*=//'
16518
16519 # func_opt_split
16520 func_opt_split ()
16521 {
16522 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16523 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16524 }
16525
16526 # func_lo2o object
16527 func_lo2o ()
16528 {
16529 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16530 }
16531
16532 # func_xform libobj-or-source
16533 func_xform ()
16534 {
16535 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16536 }
16537
16538 # func_arith arithmetic-term...
16539 func_arith ()
16540 {
16541 func_arith_result=`expr "$@"`
16542 }
16543
16544 # func_len string
16545 # STRING may not start with a hyphen.
16546 func_len ()
16547 {
16548 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16549 }
16550
16551 _LT_EOF
16552 esac
16553
16554 case $lt_shell_append in
16555 yes)
16556 cat << \_LT_EOF >> "$cfgfile"
16557
16558 # func_append var value
16559 # Append VALUE to the end of shell variable VAR.
16560 func_append ()
16561 {
16562 eval "$1+=\$2"
16563 }
16564 _LT_EOF
16565 ;;
16566 *)
16567 cat << \_LT_EOF >> "$cfgfile"
16568
16569 # func_append var value
16570 # Append VALUE to the end of shell variable VAR.
16571 func_append ()
16572 {
16573 eval "$1=\$$1\$2"
16574 }
16575
16576 _LT_EOF
16577 ;;
16578 esac
16579
16580
16581 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16582 || (rm -f "$cfgfile"; exit 1)
16583
16584 mv -f "$cfgfile" "$ofile" ||
16585 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16586 chmod +x "$ofile"
16587
16588
16589 cat <<_LT_EOF >> "$ofile"
16590
16591 # ### BEGIN LIBTOOL TAG CONFIG: CXX
16592
16593 # The linker used to build libraries.
16594 LD=$lt_LD_CXX
16595
16596 # Commands used to build an old-style archive.
16597 old_archive_cmds=$lt_old_archive_cmds_CXX
16598
16599 # A language specific compiler.
16600 CC=$lt_compiler_CXX
16601
16602 # Is the compiler the GNU compiler?
16603 with_gcc=$GCC_CXX
16604
16605 # Compiler flag to turn off builtin functions.
16606 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16607
16608 # How to pass a linker flag through the compiler.
16609 wl=$lt_lt_prog_compiler_wl_CXX
16610
16611 # Additional compiler flags for building library objects.
16612 pic_flag=$lt_lt_prog_compiler_pic_CXX
16613
16614 # Compiler flag to prevent dynamic linking.
16615 link_static_flag=$lt_lt_prog_compiler_static_CXX
16616
16617 # Does compiler simultaneously support -c and -o options?
16618 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16619
16620 # Whether or not to add -lc for building shared libraries.
16621 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16622
16623 # Whether or not to disallow shared libs when runtime libs are static.
16624 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16625
16626 # Compiler flag to allow reflexive dlopens.
16627 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16628
16629 # Compiler flag to generate shared objects directly from archives.
16630 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16631
16632 # Whether the compiler copes with passing no objects directly.
16633 compiler_needs_object=$lt_compiler_needs_object_CXX
16634
16635 # Create an old-style archive from a shared archive.
16636 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16637
16638 # Create a temporary old-style archive to link instead of a shared archive.
16639 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16640
16641 # Commands used to build a shared archive.
16642 archive_cmds=$lt_archive_cmds_CXX
16643 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16644
16645 # Commands used to build a loadable module if different from building
16646 # a shared archive.
16647 module_cmds=$lt_module_cmds_CXX
16648 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16649
16650 # Whether we are building with GNU ld or not.
16651 with_gnu_ld=$lt_with_gnu_ld_CXX
16652
16653 # Flag that allows shared libraries with undefined symbols to be built.
16654 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16655
16656 # Flag that enforces no undefined symbols.
16657 no_undefined_flag=$lt_no_undefined_flag_CXX
16658
16659 # Flag to hardcode \$libdir into a binary during linking.
16660 # This must work even if \$libdir does not exist
16661 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16662
16663 # If ld is used when linking, flag to hardcode \$libdir into a binary
16664 # during linking. This must work even if \$libdir does not exist.
16665 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16666
16667 # Whether we need a single "-rpath" flag with a separated argument.
16668 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16669
16670 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16671 # DIR into the resulting binary.
16672 hardcode_direct=$hardcode_direct_CXX
16673
16674 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16675 # DIR into the resulting binary and the resulting library dependency is
16676 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16677 # library is relocated.
16678 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
16679
16680 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16681 # into the resulting binary.
16682 hardcode_minus_L=$hardcode_minus_L_CXX
16683
16684 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16685 # into the resulting binary.
16686 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16687
16688 # Set to "yes" if building a shared library automatically hardcodes DIR
16689 # into the library and all subsequent libraries and executables linked
16690 # against it.
16691 hardcode_automatic=$hardcode_automatic_CXX
16692
16693 # Set to yes if linker adds runtime paths of dependent libraries
16694 # to runtime path list.
16695 inherit_rpath=$inherit_rpath_CXX
16696
16697 # Whether libtool must link a program against all its dependency libraries.
16698 link_all_deplibs=$link_all_deplibs_CXX
16699
16700 # Fix the shell variable \$srcfile for the compiler.
16701 fix_srcfile_path=$lt_fix_srcfile_path_CXX
16702
16703 # Set to "yes" if exported symbols are required.
16704 always_export_symbols=$always_export_symbols_CXX
16705
16706 # The commands to list exported symbols.
16707 export_symbols_cmds=$lt_export_symbols_cmds_CXX
16708
16709 # Symbols that should not be listed in the preloaded symbols.
16710 exclude_expsyms=$lt_exclude_expsyms_CXX
16711
16712 # Symbols that must always be exported.
16713 include_expsyms=$lt_include_expsyms_CXX
16714
16715 # Commands necessary for linking programs (against libraries) with templates.
16716 prelink_cmds=$lt_prelink_cmds_CXX
16717
16718 # Specify filename containing input files.
16719 file_list_spec=$lt_file_list_spec_CXX
16720
16721 # How to hardcode a shared library path into an executable.
16722 hardcode_action=$hardcode_action_CXX
16723
16724 # The directories searched by this compiler when creating a shared library.
16725 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16726
16727 # Dependencies to place before and after the objects being linked to
16728 # create a shared library.
16729 predep_objects=$lt_predep_objects_CXX
16730 postdep_objects=$lt_postdep_objects_CXX
16731 predeps=$lt_predeps_CXX
16732 postdeps=$lt_postdeps_CXX
16733
16734 # The library search path used internally by the compiler when linking
16735 # a shared library.
16736 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16737
16738 # ### END LIBTOOL TAG CONFIG: CXX
16739 _LT_EOF
16740
16741 ;;
16742
16743 esac
16744 done # for ac_tag
16745
16746
16747 as_fn_exit 0
16748 _ACEOF
16749 ac_clean_files=$ac_clean_files_save
16750
16751 test $ac_write_fail = 0 ||
16752 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16753
16754
16755 # configure is writing to config.log, and then calls config.status.
16756 # config.status does its own redirection, appending to config.log.
16757 # Unfortunately, on DOS this fails, as config.log is still kept open
16758 # by configure, so config.status won't be able to write to it; its
16759 # output is simply discarded. So we exec the FD to /dev/null,
16760 # effectively closing config.log, so it can be properly (re)opened and
16761 # appended to by config.status. When coming back to configure, we
16762 # need to make the FD available again.
16763 if test "$no_create" != yes; then
16764 ac_cs_success=:
16765 ac_config_status_args=
16766 test "$silent" = yes &&
16767 ac_config_status_args="$ac_config_status_args --quiet"
16768 exec 5>/dev/null
16769 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16770 exec 5>>config.log
16771 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16772 # would make configure fail if this is the last instruction.
16773 $ac_cs_success || as_fn_exit $?
16774 fi
16775 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16777 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16778 fi
16779