Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for flactag 2.0.4.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 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] about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370 fi
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
532
533 case X$lt_ECHO in
534 X*--fallback-echo)
535 # Remove one level of quotation (which was required for Make).
536 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
537 ;;
538 esac
539
540 ECHO=${lt_ECHO-echo}
541 if test "X$1" = X--no-reexec; then
542 # Discard the --no-reexec flag, and continue.
543 shift
544 elif test "X$1" = X--fallback-echo; then
545 # Avoid inline document here, it may be left over
546 :
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548 # Yippee, $ECHO works!
549 :
550 else
551 # Restart under the correct shell.
552 exec $SHELL "$0" --no-reexec ${1+"$@"}
553 fi
554
555 if test "X$1" = X--fallback-echo; then
556 # used as fallback echo
557 shift
558 cat <<_LT_EOF
559 $*
560 _LT_EOF
561 exit 0
562 fi
563
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
565 # if CDPATH is set.
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
567
568 if test -z "$lt_ECHO"; then
569 if test "X${echo_test_string+set}" != Xset; then
570 # find a string as large as possible, as long as the shell can cope with it
571 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
575 then
576 break
577 fi
578 done
579 fi
580
581 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583 test "X$echo_testing_string" = "X$echo_test_string"; then
584 :
585 else
586 # The Solaris, AIX, and Digital Unix default echo programs unquote
587 # backslashes. This makes it impossible to quote backslashes using
588 # echo "$something" | sed 's/\\/\\\\/g'
589 #
590 # So, first we look for a working echo in the user's PATH.
591
592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593 for dir in $PATH /usr/ucb; do
594 IFS="$lt_save_ifs"
595 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598 test "X$echo_testing_string" = "X$echo_test_string"; then
599 ECHO="$dir/echo"
600 break
601 fi
602 done
603 IFS="$lt_save_ifs"
604
605 if test "X$ECHO" = Xecho; then
606 # We didn't find a better echo, so look for alternatives.
607 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # This shell has a builtin print -r that does the trick.
611 ECHO='print -r'
612 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613 test "X$CONFIG_SHELL" != X/bin/ksh; then
614 # If we have ksh, try running configure again with it.
615 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616 export ORIGINAL_CONFIG_SHELL
617 CONFIG_SHELL=/bin/ksh
618 export CONFIG_SHELL
619 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
620 else
621 # Try using printf.
622 ECHO='printf %s\n'
623 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625 test "X$echo_testing_string" = "X$echo_test_string"; then
626 # Cool, printf works
627 :
628 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629 test "X$echo_testing_string" = 'X\t' &&
630 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
632 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
633 export CONFIG_SHELL
634 SHELL="$CONFIG_SHELL"
635 export SHELL
636 ECHO="$CONFIG_SHELL $0 --fallback-echo"
637 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638 test "X$echo_testing_string" = 'X\t' &&
639 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 ECHO="$CONFIG_SHELL $0 --fallback-echo"
642 else
643 # maybe with a smaller string...
644 prev=:
645
646 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
648 then
649 break
650 fi
651 prev="$cmd"
652 done
653
654 if test "$prev" != 'sed 50q "$0"'; then
655 echo_test_string=`eval $prev`
656 export echo_test_string
657 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
658 else
659 # Oops. We lost completely, so just stick with echo.
660 ECHO=echo
661 fi
662 fi
663 fi
664 fi
665 fi
666 fi
667
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
670 lt_ECHO=$ECHO
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
673 fi
674
675
676
677
678 test -n "$DJDIR" || exec 7<&0 </dev/null
679 exec 6>&1
680
681 # Name of the host.
682 # hostname on some systems (SVR3.2, old GNU/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='flactag'
700 PACKAGE_TARNAME='flactag'
701 PACKAGE_VERSION='2.0.4'
702 PACKAGE_STRING='flactag 2.0.4'
703 PACKAGE_BUGREPORT=''
704 PACKAGE_URL=''
705
706 ac_unique_file="flactag.cc"
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 gl_header_list=
744 gl_func_list=
745 ac_subst_vars='gltests_LTLIBOBJS
746 gltests_LIBOBJS
747 gl_LTLIBOBJS
748 gl_LIBOBJS
749 am__EXEEXT_FALSE
750 am__EXEEXT_TRUE
751 LTLIBOBJS
752 LIBOBJS
753 DEP_FLACTAG_LIBS
754 DEP_FLACTAG_CFLAGS
755 DEP_ALL_LIBS
756 DEP_ALL_CFLAGS
757 PKG_CONFIG_LIBDIR
758 PKG_CONFIG_PATH
759 PKG_CONFIG
760 CXXCPP
761 OTOOL64
762 OTOOL
763 LIPO
764 NMEDIT
765 DSYMUTIL
766 lt_ECHO
767 AR
768 LN_S
769 NM
770 ac_ct_DUMPBIN
771 DUMPBIN
772 LD
773 FGREP
774 SED
775 LIBTOOL
776 NEXT_WCHAR_H
777 HAVE_WCHAR_H
778 WCHAR_H
779 REPLACE_WCWIDTH
780 HAVE_DECL_WCWIDTH
781 GNULIB_WCWIDTH
782 HAVE_VISIBILITY
783 CFLAG_VISIBILITY
784 HAVE_UNISTD_H
785 NEXT_UNISTD_H
786 REPLACE_LSEEK
787 REPLACE_LCHOWN
788 REPLACE_GETPAGESIZE
789 REPLACE_GETCWD
790 REPLACE_FCHDIR
791 REPLACE_CHOWN
792 HAVE_SYS_PARAM_H
793 HAVE_OS_H
794 HAVE_DECL_GETLOGIN_R
795 HAVE_DECL_ENVIRON
796 HAVE_SLEEP
797 HAVE_READLINK
798 HAVE_GETPAGESIZE
799 HAVE_FTRUNCATE
800 HAVE_DUP2
801 GNULIB_SLEEP
802 GNULIB_READLINK
803 GNULIB_LSEEK
804 GNULIB_LCHOWN
805 GNULIB_GETPAGESIZE
806 GNULIB_GETLOGIN_R
807 GNULIB_GETCWD
808 GNULIB_FTRUNCATE
809 GNULIB_FCHDIR
810 GNULIB_ENVIRON
811 GNULIB_DUP2
812 GNULIB_CHOWN
813 SYS_STAT_H
814 NEXT_SYS_STAT_H
815 HAVE_LSTAT
816 REPLACE_MKDIR
817 NEXT_STDLIB_H
818 NEXT_STDIO_H
819 STDINT_H
820 WINT_T_SUFFIX
821 WCHAR_T_SUFFIX
822 SIZE_T_SUFFIX
823 SIG_ATOMIC_T_SUFFIX
824 PTRDIFF_T_SUFFIX
825 HAVE_SIGNED_WINT_T
826 HAVE_SIGNED_WCHAR_T
827 HAVE_SIGNED_SIG_ATOMIC_T
828 BITSIZEOF_WINT_T
829 BITSIZEOF_WCHAR_T
830 BITSIZEOF_SIZE_T
831 BITSIZEOF_SIG_ATOMIC_T
832 BITSIZEOF_PTRDIFF_T
833 HAVE_SYS_BITYPES_H
834 HAVE_SYS_INTTYPES_H
835 HAVE_STDINT_H
836 NEXT_STDINT_H
837 INCLUDE_NEXT
838 HAVE_SYS_TYPES_H
839 HAVE_INTTYPES_H
840 HAVE_UNSIGNED_LONG_LONG_INT
841 HAVE_LONG_LONG_INT
842 VOID_UNSETENV
843 REPLACE_STRTOD
844 REPLACE_PUTENV
845 REPLACE_MKSTEMP
846 HAVE_UNSETENV
847 HAVE_STRTOD
848 HAVE_SETENV
849 HAVE_RPMATCH
850 HAVE_MKDTEMP
851 HAVE_MALLOC_POSIX
852 HAVE_GETSUBOPT
853 HAVE_CALLOC_POSIX
854 GNULIB_UNSETENV
855 GNULIB_STRTOD
856 GNULIB_SETENV
857 GNULIB_RPMATCH
858 GNULIB_PUTENV
859 GNULIB_MKSTEMP
860 GNULIB_MKDTEMP
861 GNULIB_GETSUBOPT
862 GNULIB_CALLOC_POSIX
863 GNULIB_REALLOC_POSIX
864 GNULIB_MALLOC_POSIX
865 HAVE_REALLOC_POSIX
866 REPLACE_OBSTACK_PRINTF
867 HAVE_DECL_OBSTACK_PRINTF
868 REPLACE_GETLINE
869 HAVE_DECL_GETLINE
870 HAVE_DECL_GETDELIM
871 REPLACE_FFLUSH
872 REPLACE_FTELL
873 REPLACE_FTELLO
874 HAVE_FTELLO
875 REPLACE_FSEEK
876 REPLACE_FSEEKO
877 HAVE_FSEEKO
878 REPLACE_FREOPEN
879 REPLACE_FOPEN
880 REPLACE_VASPRINTF
881 HAVE_VASPRINTF
882 REPLACE_VSPRINTF
883 REPLACE_SPRINTF
884 HAVE_DECL_VSNPRINTF
885 REPLACE_VSNPRINTF
886 HAVE_DECL_SNPRINTF
887 REPLACE_SNPRINTF
888 REPLACE_VPRINTF
889 REPLACE_PRINTF
890 REPLACE_VFPRINTF
891 REPLACE_FPRINTF
892 GNULIB_GETLINE
893 GNULIB_GETDELIM
894 GNULIB_FFLUSH
895 GNULIB_FTELLO
896 GNULIB_FTELL
897 GNULIB_FSEEKO
898 GNULIB_FSEEK
899 GNULIB_FREOPEN
900 GNULIB_FOPEN
901 GNULIB_VASPRINTF
902 GNULIB_VSPRINTF_POSIX
903 GNULIB_VSNPRINTF
904 GNULIB_VPRINTF_POSIX
905 GNULIB_VFPRINTF_POSIX
906 GNULIB_SPRINTF_POSIX
907 GNULIB_SNPRINTF
908 GNULIB_OBSTACK_PRINTF_POSIX
909 GNULIB_OBSTACK_PRINTF
910 GNULIB_PRINTF_POSIX
911 GNULIB_FPRINTF_POSIX
912 LIBGCRYPT_PREFIX
913 LTLIBGCRYPT
914 LIBGCRYPT
915 HAVE_LIBGCRYPT
916 EOVERFLOW
917 GL_COND_LIBTOOL_FALSE
918 GL_COND_LIBTOOL_TRUE
919 EGREP
920 GREP
921 CPP
922 RANLIB
923 am__fastdepCXX_FALSE
924 am__fastdepCXX_TRUE
925 CXXDEPMODE
926 ac_ct_CXX
927 CXXFLAGS
928 CXX
929 am__fastdepCC_FALSE
930 am__fastdepCC_TRUE
931 CCDEPMODE
932 AMDEPBACKSLASH
933 AMDEP_FALSE
934 AMDEP_TRUE
935 am__quote
936 am__include
937 DEPDIR
938 OBJEXT
939 EXEEXT
940 ac_ct_CC
941 CPPFLAGS
942 LDFLAGS
943 CFLAGS
944 CC
945 OBJDUMP
946 DLLTOOL
947 AS
948 host_os
949 host_vendor
950 host_cpu
951 host
952 build_os
953 build_vendor
954 build_cpu
955 build
956 am__untar
957 am__tar
958 AMTAR
959 am__leading_dot
960 SET_MAKE
961 AWK
962 mkdir_p
963 MKDIR_P
964 INSTALL_STRIP_PROGRAM
965 STRIP
966 install_sh
967 MAKEINFO
968 AUTOHEADER
969 AUTOMAKE
970 AUTOCONF
971 ACLOCAL
972 VERSION
973 PACKAGE
974 CYGPATH_W
975 am__isrc
976 INSTALL_DATA
977 INSTALL_SCRIPT
978 INSTALL_PROGRAM
979 target_alias
980 host_alias
981 build_alias
982 LIBS
983 ECHO_T
984 ECHO_N
985 ECHO_C
986 DEFS
987 mandir
988 localedir
989 libdir
990 psdir
991 pdfdir
992 dvidir
993 htmldir
994 infodir
995 docdir
996 oldincludedir
997 includedir
998 localstatedir
999 sharedstatedir
1000 sysconfdir
1001 datadir
1002 datarootdir
1003 libexecdir
1004 sbindir
1005 bindir
1006 program_transform_name
1007 prefix
1008 exec_prefix
1009 PACKAGE_URL
1010 PACKAGE_BUGREPORT
1011 PACKAGE_STRING
1012 PACKAGE_VERSION
1013 PACKAGE_TARNAME
1014 PACKAGE_NAME
1015 PATH_SEPARATOR
1016 SHELL'
1017 ac_subst_files=''
1018 ac_user_opts='
1019 enable_option_checking
1020 enable_dependency_tracking
1021 with_libgcrypt
1022 with_gnu_ld
1023 enable_rpath
1024 with_libgcrypt_prefix
1025 enable_shared
1026 enable_static
1027 with_pic
1028 enable_fast_install
1029 enable_libtool_lock
1030 '
1031 ac_precious_vars='build_alias
1032 host_alias
1033 target_alias
1034 CC
1035 CFLAGS
1036 LDFLAGS
1037 LIBS
1038 CPPFLAGS
1039 CXX
1040 CXXFLAGS
1041 CCC
1042 CPP
1043 CXXCPP
1044 PKG_CONFIG
1045 PKG_CONFIG_PATH
1046 PKG_CONFIG_LIBDIR
1047 DEP_ALL_CFLAGS
1048 DEP_ALL_LIBS
1049 DEP_FLACTAG_CFLAGS
1050 DEP_FLACTAG_LIBS'
1051
1052
1053 # Initialize some variables set by options.
1054 ac_init_help=
1055 ac_init_version=false
1056 ac_unrecognized_opts=
1057 ac_unrecognized_sep=
1058 # The variables have the same names as the options, with
1059 # dashes changed to underlines.
1060 cache_file=/dev/null
1061 exec_prefix=NONE
1062 no_create=
1063 no_recursion=
1064 prefix=NONE
1065 program_prefix=NONE
1066 program_suffix=NONE
1067 program_transform_name=s,x,x,
1068 silent=
1069 site=
1070 srcdir=
1071 verbose=
1072 x_includes=NONE
1073 x_libraries=NONE
1074
1075 # Installation directory options.
1076 # These are left unexpanded so users can "make install exec_prefix=/foo"
1077 # and all the variables that are supposed to be based on exec_prefix
1078 # by default will actually change.
1079 # Use braces instead of parens because sh, perl, etc. also accept them.
1080 # (The list follows the same order as the GNU Coding Standards.)
1081 bindir='${exec_prefix}/bin'
1082 sbindir='${exec_prefix}/sbin'
1083 libexecdir='${exec_prefix}/libexec'
1084 datarootdir='${prefix}/share'
1085 datadir='${datarootdir}'
1086 sysconfdir='${prefix}/etc'
1087 sharedstatedir='${prefix}/com'
1088 localstatedir='${prefix}/var'
1089 includedir='${prefix}/include'
1090 oldincludedir='/usr/include'
1091 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1092 infodir='${datarootdir}/info'
1093 htmldir='${docdir}'
1094 dvidir='${docdir}'
1095 pdfdir='${docdir}'
1096 psdir='${docdir}'
1097 libdir='${exec_prefix}/lib'
1098 localedir='${datarootdir}/locale'
1099 mandir='${datarootdir}/man'
1100
1101 ac_prev=
1102 ac_dashdash=
1103 for ac_option
1104 do
1105 # If the previous option needs an argument, assign it.
1106 if test -n "$ac_prev"; then
1107 eval $ac_prev=\$ac_option
1108 ac_prev=
1109 continue
1110 fi
1111
1112 case $ac_option in
1113 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1114 *=) ac_optarg= ;;
1115 *) ac_optarg=yes ;;
1116 esac
1117
1118 # Accept the important Cygnus configure options, so we can diagnose typos.
1119
1120 case $ac_dashdash$ac_option in
1121 --)
1122 ac_dashdash=yes ;;
1123
1124 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1125 ac_prev=bindir ;;
1126 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1127 bindir=$ac_optarg ;;
1128
1129 -build | --build | --buil | --bui | --bu)
1130 ac_prev=build_alias ;;
1131 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1132 build_alias=$ac_optarg ;;
1133
1134 -cache-file | --cache-file | --cache-fil | --cache-fi \
1135 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1136 ac_prev=cache_file ;;
1137 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1138 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1139 cache_file=$ac_optarg ;;
1140
1141 --config-cache | -C)
1142 cache_file=config.cache ;;
1143
1144 -datadir | --datadir | --datadi | --datad)
1145 ac_prev=datadir ;;
1146 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1147 datadir=$ac_optarg ;;
1148
1149 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1150 | --dataroo | --dataro | --datar)
1151 ac_prev=datarootdir ;;
1152 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1153 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1154 datarootdir=$ac_optarg ;;
1155
1156 -disable-* | --disable-*)
1157 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160 as_fn_error $? "invalid feature name: $ac_useropt"
1161 ac_useropt_orig=$ac_useropt
1162 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 case $ac_user_opts in
1164 *"
1165 "enable_$ac_useropt"
1166 "*) ;;
1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1168 ac_unrecognized_sep=', ';;
1169 esac
1170 eval enable_$ac_useropt=no ;;
1171
1172 -docdir | --docdir | --docdi | --doc | --do)
1173 ac_prev=docdir ;;
1174 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1175 docdir=$ac_optarg ;;
1176
1177 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1178 ac_prev=dvidir ;;
1179 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1180 dvidir=$ac_optarg ;;
1181
1182 -enable-* | --enable-*)
1183 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 as_fn_error $? "invalid feature name: $ac_useropt"
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1190 *"
1191 "enable_$ac_useropt"
1192 "*) ;;
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1195 esac
1196 eval enable_$ac_useropt=\$ac_optarg ;;
1197
1198 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1199 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1200 | --exec | --exe | --ex)
1201 ac_prev=exec_prefix ;;
1202 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1203 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1204 | --exec=* | --exe=* | --ex=*)
1205 exec_prefix=$ac_optarg ;;
1206
1207 -gas | --gas | --ga | --g)
1208 # Obsolete; use --with-gas.
1209 with_gas=yes ;;
1210
1211 -help | --help | --hel | --he | -h)
1212 ac_init_help=long ;;
1213 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1214 ac_init_help=recursive ;;
1215 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1216 ac_init_help=short ;;
1217
1218 -host | --host | --hos | --ho)
1219 ac_prev=host_alias ;;
1220 -host=* | --host=* | --hos=* | --ho=*)
1221 host_alias=$ac_optarg ;;
1222
1223 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1224 ac_prev=htmldir ;;
1225 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1226 | --ht=*)
1227 htmldir=$ac_optarg ;;
1228
1229 -includedir | --includedir | --includedi | --included | --include \
1230 | --includ | --inclu | --incl | --inc)
1231 ac_prev=includedir ;;
1232 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1233 | --includ=* | --inclu=* | --incl=* | --inc=*)
1234 includedir=$ac_optarg ;;
1235
1236 -infodir | --infodir | --infodi | --infod | --info | --inf)
1237 ac_prev=infodir ;;
1238 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1239 infodir=$ac_optarg ;;
1240
1241 -libdir | --libdir | --libdi | --libd)
1242 ac_prev=libdir ;;
1243 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1244 libdir=$ac_optarg ;;
1245
1246 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1247 | --libexe | --libex | --libe)
1248 ac_prev=libexecdir ;;
1249 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1250 | --libexe=* | --libex=* | --libe=*)
1251 libexecdir=$ac_optarg ;;
1252
1253 -localedir | --localedir | --localedi | --localed | --locale)
1254 ac_prev=localedir ;;
1255 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1256 localedir=$ac_optarg ;;
1257
1258 -localstatedir | --localstatedir | --localstatedi | --localstated \
1259 | --localstate | --localstat | --localsta | --localst | --locals)
1260 ac_prev=localstatedir ;;
1261 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1262 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1263 localstatedir=$ac_optarg ;;
1264
1265 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1266 ac_prev=mandir ;;
1267 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1268 mandir=$ac_optarg ;;
1269
1270 -nfp | --nfp | --nf)
1271 # Obsolete; use --without-fp.
1272 with_fp=no ;;
1273
1274 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1275 | --no-cr | --no-c | -n)
1276 no_create=yes ;;
1277
1278 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1279 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1280 no_recursion=yes ;;
1281
1282 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1283 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1284 | --oldin | --oldi | --old | --ol | --o)
1285 ac_prev=oldincludedir ;;
1286 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1287 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1288 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1289 oldincludedir=$ac_optarg ;;
1290
1291 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1292 ac_prev=prefix ;;
1293 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1294 prefix=$ac_optarg ;;
1295
1296 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1297 | --program-pre | --program-pr | --program-p)
1298 ac_prev=program_prefix ;;
1299 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1300 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1301 program_prefix=$ac_optarg ;;
1302
1303 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1304 | --program-suf | --program-su | --program-s)
1305 ac_prev=program_suffix ;;
1306 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1307 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1308 program_suffix=$ac_optarg ;;
1309
1310 -program-transform-name | --program-transform-name \
1311 | --program-transform-nam | --program-transform-na \
1312 | --program-transform-n | --program-transform- \
1313 | --program-transform | --program-transfor \
1314 | --program-transfo | --program-transf \
1315 | --program-trans | --program-tran \
1316 | --progr-tra | --program-tr | --program-t)
1317 ac_prev=program_transform_name ;;
1318 -program-transform-name=* | --program-transform-name=* \
1319 | --program-transform-nam=* | --program-transform-na=* \
1320 | --program-transform-n=* | --program-transform-=* \
1321 | --program-transform=* | --program-transfor=* \
1322 | --program-transfo=* | --program-transf=* \
1323 | --program-trans=* | --program-tran=* \
1324 | --progr-tra=* | --program-tr=* | --program-t=*)
1325 program_transform_name=$ac_optarg ;;
1326
1327 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1328 ac_prev=pdfdir ;;
1329 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1330 pdfdir=$ac_optarg ;;
1331
1332 -psdir | --psdir | --psdi | --psd | --ps)
1333 ac_prev=psdir ;;
1334 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1335 psdir=$ac_optarg ;;
1336
1337 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1338 | -silent | --silent | --silen | --sile | --sil)
1339 silent=yes ;;
1340
1341 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1342 ac_prev=sbindir ;;
1343 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1344 | --sbi=* | --sb=*)
1345 sbindir=$ac_optarg ;;
1346
1347 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1348 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1349 | --sharedst | --shareds | --shared | --share | --shar \
1350 | --sha | --sh)
1351 ac_prev=sharedstatedir ;;
1352 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1353 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1354 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1355 | --sha=* | --sh=*)
1356 sharedstatedir=$ac_optarg ;;
1357
1358 -site | --site | --sit)
1359 ac_prev=site ;;
1360 -site=* | --site=* | --sit=*)
1361 site=$ac_optarg ;;
1362
1363 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1364 ac_prev=srcdir ;;
1365 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1366 srcdir=$ac_optarg ;;
1367
1368 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1369 | --syscon | --sysco | --sysc | --sys | --sy)
1370 ac_prev=sysconfdir ;;
1371 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1372 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1373 sysconfdir=$ac_optarg ;;
1374
1375 -target | --target | --targe | --targ | --tar | --ta | --t)
1376 ac_prev=target_alias ;;
1377 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1378 target_alias=$ac_optarg ;;
1379
1380 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1381 verbose=yes ;;
1382
1383 -version | --version | --versio | --versi | --vers | -V)
1384 ac_init_version=: ;;
1385
1386 -with-* | --with-*)
1387 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1388 # Reject names that are not valid shell variable names.
1389 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1390 as_fn_error $? "invalid package name: $ac_useropt"
1391 ac_useropt_orig=$ac_useropt
1392 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1393 case $ac_user_opts in
1394 *"
1395 "with_$ac_useropt"
1396 "*) ;;
1397 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1398 ac_unrecognized_sep=', ';;
1399 esac
1400 eval with_$ac_useropt=\$ac_optarg ;;
1401
1402 -without-* | --without-*)
1403 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1404 # Reject names that are not valid shell variable names.
1405 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1406 as_fn_error $? "invalid package name: $ac_useropt"
1407 ac_useropt_orig=$ac_useropt
1408 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1409 case $ac_user_opts in
1410 *"
1411 "with_$ac_useropt"
1412 "*) ;;
1413 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1414 ac_unrecognized_sep=', ';;
1415 esac
1416 eval with_$ac_useropt=no ;;
1417
1418 --x)
1419 # Obsolete; use --with-x.
1420 with_x=yes ;;
1421
1422 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1423 | --x-incl | --x-inc | --x-in | --x-i)
1424 ac_prev=x_includes ;;
1425 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1426 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1427 x_includes=$ac_optarg ;;
1428
1429 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1430 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1431 ac_prev=x_libraries ;;
1432 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1433 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1434 x_libraries=$ac_optarg ;;
1435
1436 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1437 Try \`$0 --help' for more information"
1438 ;;
1439
1440 *=*)
1441 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1442 # Reject names that are not valid shell variable names.
1443 case $ac_envvar in #(
1444 '' | [0-9]* | *[!_$as_cr_alnum]* )
1445 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1446 esac
1447 eval $ac_envvar=\$ac_optarg
1448 export $ac_envvar ;;
1449
1450 *)
1451 # FIXME: should be removed in autoconf 3.0.
1452 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1453 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1454 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1455 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1456 ;;
1457
1458 esac
1459 done
1460
1461 if test -n "$ac_prev"; then
1462 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1463 as_fn_error $? "missing argument to $ac_option"
1464 fi
1465
1466 if test -n "$ac_unrecognized_opts"; then
1467 case $enable_option_checking in
1468 no) ;;
1469 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1470 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1471 esac
1472 fi
1473
1474 # Check all directory arguments for consistency.
1475 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1476 datadir sysconfdir sharedstatedir localstatedir includedir \
1477 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1478 libdir localedir mandir
1479 do
1480 eval ac_val=\$$ac_var
1481 # Remove trailing slashes.
1482 case $ac_val in
1483 */ )
1484 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1485 eval $ac_var=\$ac_val;;
1486 esac
1487 # Be sure to have absolute directory names.
1488 case $ac_val in
1489 [\\/$]* | ?:[\\/]* ) continue;;
1490 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1491 esac
1492 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1493 done
1494
1495 # There might be people who depend on the old broken behavior: `$host'
1496 # used to hold the argument of --host etc.
1497 # FIXME: To remove some day.
1498 build=$build_alias
1499 host=$host_alias
1500 target=$target_alias
1501
1502 # FIXME: To remove some day.
1503 if test "x$host_alias" != x; then
1504 if test "x$build_alias" = x; then
1505 cross_compiling=maybe
1506 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1507 If a cross compiler is detected then cross compile mode will be used" >&2
1508 elif test "x$build_alias" != "x$host_alias"; then
1509 cross_compiling=yes
1510 fi
1511 fi
1512
1513 ac_tool_prefix=
1514 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1515
1516 test "$silent" = yes && exec 6>/dev/null
1517
1518
1519 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1520 ac_ls_di=`ls -di .` &&
1521 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1522 as_fn_error $? "working directory cannot be determined"
1523 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1524 as_fn_error $? "pwd does not report name of working directory"
1525
1526
1527 # Find the source files, if location was not specified.
1528 if test -z "$srcdir"; then
1529 ac_srcdir_defaulted=yes
1530 # Try the directory containing this script, then the parent directory.
1531 ac_confdir=`$as_dirname -- "$as_myself" ||
1532 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1533 X"$as_myself" : 'X\(//\)[^/]' \| \
1534 X"$as_myself" : 'X\(//\)$' \| \
1535 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1536 $as_echo X"$as_myself" |
1537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1538 s//\1/
1539 q
1540 }
1541 /^X\(\/\/\)[^/].*/{
1542 s//\1/
1543 q
1544 }
1545 /^X\(\/\/\)$/{
1546 s//\1/
1547 q
1548 }
1549 /^X\(\/\).*/{
1550 s//\1/
1551 q
1552 }
1553 s/.*/./; q'`
1554 srcdir=$ac_confdir
1555 if test ! -r "$srcdir/$ac_unique_file"; then
1556 srcdir=..
1557 fi
1558 else
1559 ac_srcdir_defaulted=no
1560 fi
1561 if test ! -r "$srcdir/$ac_unique_file"; then
1562 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1563 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1564 fi
1565 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1566 ac_abs_confdir=`(
1567 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1568 pwd)`
1569 # When building in place, set srcdir=.
1570 if test "$ac_abs_confdir" = "$ac_pwd"; then
1571 srcdir=.
1572 fi
1573 # Remove unnecessary trailing slashes from srcdir.
1574 # Double slashes in file names in object file debugging info
1575 # mess up M-x gdb in Emacs.
1576 case $srcdir in
1577 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1578 esac
1579 for ac_var in $ac_precious_vars; do
1580 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1581 eval ac_env_${ac_var}_value=\$${ac_var}
1582 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1583 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1584 done
1585
1586 #
1587 # Report the --help message.
1588 #
1589 if test "$ac_init_help" = "long"; then
1590 # Omit some internal or obsolete options to make the list less imposing.
1591 # This message is too long to be a string in the A/UX 3.1 sh.
1592 cat <<_ACEOF
1593 \`configure' configures flactag 2.0.4 to adapt to many kinds of systems.
1594
1595 Usage: $0 [OPTION]... [VAR=VALUE]...
1596
1597 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1598 VAR=VALUE. See below for descriptions of some of the useful variables.
1599
1600 Defaults for the options are specified in brackets.
1601
1602 Configuration:
1603 -h, --help display this help and exit
1604 --help=short display options specific to this package
1605 --help=recursive display the short help of all the included packages
1606 -V, --version display version information and exit
1607 -q, --quiet, --silent do not print \`checking ...' messages
1608 --cache-file=FILE cache test results in FILE [disabled]
1609 -C, --config-cache alias for \`--cache-file=config.cache'
1610 -n, --no-create do not create output files
1611 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1612
1613 Installation directories:
1614 --prefix=PREFIX install architecture-independent files in PREFIX
1615 [$ac_default_prefix]
1616 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1617 [PREFIX]
1618
1619 By default, \`make install' will install all the files in
1620 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1621 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1622 for instance \`--prefix=\$HOME'.
1623
1624 For better control, use the options below.
1625
1626 Fine tuning of the installation directories:
1627 --bindir=DIR user executables [EPREFIX/bin]
1628 --sbindir=DIR system admin executables [EPREFIX/sbin]
1629 --libexecdir=DIR program executables [EPREFIX/libexec]
1630 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1631 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1632 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1633 --libdir=DIR object code libraries [EPREFIX/lib]
1634 --includedir=DIR C header files [PREFIX/include]
1635 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1636 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1637 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1638 --infodir=DIR info documentation [DATAROOTDIR/info]
1639 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1640 --mandir=DIR man documentation [DATAROOTDIR/man]
1641 --docdir=DIR documentation root [DATAROOTDIR/doc/flactag]
1642 --htmldir=DIR html documentation [DOCDIR]
1643 --dvidir=DIR dvi documentation [DOCDIR]
1644 --pdfdir=DIR pdf documentation [DOCDIR]
1645 --psdir=DIR ps documentation [DOCDIR]
1646 _ACEOF
1647
1648 cat <<\_ACEOF
1649
1650 Program names:
1651 --program-prefix=PREFIX prepend PREFIX to installed program names
1652 --program-suffix=SUFFIX append SUFFIX to installed program names
1653 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1654
1655 System types:
1656 --build=BUILD configure for building on BUILD [guessed]
1657 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1658 _ACEOF
1659 fi
1660
1661 if test -n "$ac_init_help"; then
1662 case $ac_init_help in
1663 short | recursive ) echo "Configuration of flactag 2.0.4:";;
1664 esac
1665 cat <<\_ACEOF
1666
1667 Optional Features:
1668 --disable-option-checking ignore unrecognized --enable/--with options
1669 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1670 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1671 --disable-dependency-tracking speeds up one-time build
1672 --enable-dependency-tracking do not reject slow dependency extractors
1673 --disable-rpath do not hardcode runtime library paths
1674 --enable-shared[=PKGS] build shared libraries [default=yes]
1675 --enable-static[=PKGS] build static libraries [default=yes]
1676 --enable-fast-install[=PKGS]
1677 optimize for fast installation [default=yes]
1678 --disable-libtool-lock avoid locking (might break parallel builds)
1679
1680 Optional Packages:
1681 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1682 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1683 --with-libgcrypt use libgcrypt for low-level crypto
1684 --with-gnu-ld assume the C compiler uses GNU ld default=no
1685 --with-libgcrypt-prefix[=DIR] search for libgcrypt in DIR/include and DIR/lib
1686 --without-libgcrypt-prefix don't search for libgcrypt in includedir and libdir
1687 --with-pic try to use only PIC/non-PIC objects [default=use
1688 both]
1689 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1690
1691 Some influential environment variables:
1692 CC C compiler command
1693 CFLAGS C compiler flags
1694 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1695 nonstandard directory <lib dir>
1696 LIBS libraries to pass to the linker, e.g. -l<library>
1697 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1698 you have headers in a nonstandard directory <include dir>
1699 CXX C++ compiler command
1700 CXXFLAGS C++ compiler flags
1701 CPP C preprocessor
1702 CXXCPP C++ preprocessor
1703 PKG_CONFIG path to pkg-config utility
1704 PKG_CONFIG_PATH
1705 directories to add to pkg-config's search path
1706 PKG_CONFIG_LIBDIR
1707 path overriding pkg-config's built-in search path
1708 DEP_ALL_CFLAGS
1709 C compiler flags for DEP_ALL, overriding pkg-config
1710 DEP_ALL_LIBS
1711 linker flags for DEP_ALL, overriding pkg-config
1712 DEP_FLACTAG_CFLAGS
1713 C compiler flags for DEP_FLACTAG, overriding pkg-config
1714 DEP_FLACTAG_LIBS
1715 linker flags for DEP_FLACTAG, overriding pkg-config
1716
1717 Use these variables to override the choices made by `configure' or to help
1718 it to find libraries and programs with nonstandard names/locations.
1719
1720 Report bugs to the package provider.
1721 _ACEOF
1722 ac_status=$?
1723 fi
1724
1725 if test "$ac_init_help" = "recursive"; then
1726 # If there are subdirs, report their specific --help.
1727 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1728 test -d "$ac_dir" ||
1729 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1730 continue
1731 ac_builddir=.
1732
1733 case "$ac_dir" in
1734 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1735 *)
1736 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1737 # A ".." for each directory in $ac_dir_suffix.
1738 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1739 case $ac_top_builddir_sub in
1740 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1741 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1742 esac ;;
1743 esac
1744 ac_abs_top_builddir=$ac_pwd
1745 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1746 # for backward compatibility:
1747 ac_top_builddir=$ac_top_build_prefix
1748
1749 case $srcdir in
1750 .) # We are building in place.
1751 ac_srcdir=.
1752 ac_top_srcdir=$ac_top_builddir_sub
1753 ac_abs_top_srcdir=$ac_pwd ;;
1754 [\\/]* | ?:[\\/]* ) # Absolute name.
1755 ac_srcdir=$srcdir$ac_dir_suffix;
1756 ac_top_srcdir=$srcdir
1757 ac_abs_top_srcdir=$srcdir ;;
1758 *) # Relative name.
1759 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1760 ac_top_srcdir=$ac_top_build_prefix$srcdir
1761 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1762 esac
1763 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1764
1765 cd "$ac_dir" || { ac_status=$?; continue; }
1766 # Check for guested configure.
1767 if test -f "$ac_srcdir/configure.gnu"; then
1768 echo &&
1769 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1770 elif test -f "$ac_srcdir/configure"; then
1771 echo &&
1772 $SHELL "$ac_srcdir/configure" --help=recursive
1773 else
1774 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1775 fi || ac_status=$?
1776 cd "$ac_pwd" || { ac_status=$?; break; }
1777 done
1778 fi
1779
1780 test -n "$ac_init_help" && exit $ac_status
1781 if $ac_init_version; then
1782 cat <<\_ACEOF
1783 flactag configure 2.0.4
1784 generated by GNU Autoconf 2.67
1785
1786 Copyright (C) 2010 Free Software Foundation, Inc.
1787 This configure script is free software; the Free Software Foundation
1788 gives unlimited permission to copy, distribute and modify it.
1789 _ACEOF
1790 exit
1791 fi
1792
1793 ## ------------------------ ##
1794 ## Autoconf initialization. ##
1795 ## ------------------------ ##
1796
1797 # ac_fn_c_try_compile LINENO
1798 # --------------------------
1799 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1800 ac_fn_c_try_compile ()
1801 {
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 rm -f conftest.$ac_objext
1804 if { { ac_try="$ac_compile"
1805 case "(($ac_try" in
1806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807 *) ac_try_echo=$ac_try;;
1808 esac
1809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 $as_echo "$ac_try_echo"; } >&5
1811 (eval "$ac_compile") 2>conftest.err
1812 ac_status=$?
1813 if test -s conftest.err; then
1814 grep -v '^ *+' conftest.err >conftest.er1
1815 cat conftest.er1 >&5
1816 mv -f conftest.er1 conftest.err
1817 fi
1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; } && {
1820 test -z "$ac_c_werror_flag" ||
1821 test ! -s conftest.err
1822 } && test -s conftest.$ac_objext; then :
1823 ac_retval=0
1824 else
1825 $as_echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1827
1828 ac_retval=1
1829 fi
1830 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1831 as_fn_set_status $ac_retval
1832
1833 } # ac_fn_c_try_compile
1834
1835 # ac_fn_cxx_try_compile LINENO
1836 # ----------------------------
1837 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1838 ac_fn_cxx_try_compile ()
1839 {
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 rm -f conftest.$ac_objext
1842 if { { ac_try="$ac_compile"
1843 case "(($ac_try" in
1844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845 *) ac_try_echo=$ac_try;;
1846 esac
1847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848 $as_echo "$ac_try_echo"; } >&5
1849 (eval "$ac_compile") 2>conftest.err
1850 ac_status=$?
1851 if test -s conftest.err; then
1852 grep -v '^ *+' conftest.err >conftest.er1
1853 cat conftest.er1 >&5
1854 mv -f conftest.er1 conftest.err
1855 fi
1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857 test $ac_status = 0; } && {
1858 test -z "$ac_cxx_werror_flag" ||
1859 test ! -s conftest.err
1860 } && test -s conftest.$ac_objext; then :
1861 ac_retval=0
1862 else
1863 $as_echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1865
1866 ac_retval=1
1867 fi
1868 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1869 as_fn_set_status $ac_retval
1870
1871 } # ac_fn_cxx_try_compile
1872
1873 # ac_fn_c_try_cpp LINENO
1874 # ----------------------
1875 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1876 ac_fn_c_try_cpp ()
1877 {
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 if { { ac_try="$ac_cpp conftest.$ac_ext"
1880 case "(($ac_try" in
1881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882 *) ac_try_echo=$ac_try;;
1883 esac
1884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885 $as_echo "$ac_try_echo"; } >&5
1886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1887 ac_status=$?
1888 if test -s conftest.err; then
1889 grep -v '^ *+' conftest.err >conftest.er1
1890 cat conftest.er1 >&5
1891 mv -f conftest.er1 conftest.err
1892 fi
1893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894 test $ac_status = 0; } > conftest.i && {
1895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1896 test ! -s conftest.err
1897 }; then :
1898 ac_retval=0
1899 else
1900 $as_echo "$as_me: failed program was:" >&5
1901 sed 's/^/| /' conftest.$ac_ext >&5
1902
1903 ac_retval=1
1904 fi
1905 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1906 as_fn_set_status $ac_retval
1907
1908 } # ac_fn_c_try_cpp
1909
1910 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1911 # -------------------------------------------------------
1912 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1913 # the include files in INCLUDES and setting the cache variable VAR
1914 # accordingly.
1915 ac_fn_c_check_header_mongrel ()
1916 {
1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918 if eval "test \"\${$3+set}\"" = set; then :
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1920 $as_echo_n "checking for $2... " >&6; }
1921 if eval "test \"\${$3+set}\"" = set; then :
1922 $as_echo_n "(cached) " >&6
1923 fi
1924 eval ac_res=\$$3
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1926 $as_echo "$ac_res" >&6; }
1927 else
1928 # Is the header compilable?
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1930 $as_echo_n "checking $2 usability... " >&6; }
1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932 /* end confdefs.h. */
1933 $4
1934 #include <$2>
1935 _ACEOF
1936 if ac_fn_c_try_compile "$LINENO"; then :
1937 ac_header_compiler=yes
1938 else
1939 ac_header_compiler=no
1940 fi
1941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1943 $as_echo "$ac_header_compiler" >&6; }
1944
1945 # Is the header present?
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1947 $as_echo_n "checking $2 presence... " >&6; }
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h. */
1950 #include <$2>
1951 _ACEOF
1952 if ac_fn_c_try_cpp "$LINENO"; then :
1953 ac_header_preproc=yes
1954 else
1955 ac_header_preproc=no
1956 fi
1957 rm -f conftest.err conftest.i conftest.$ac_ext
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1959 $as_echo "$ac_header_preproc" >&6; }
1960
1961 # So? What about this header?
1962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1963 yes:no: )
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1965 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1967 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1968 ;;
1969 no:yes:* )
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1971 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1973 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1975 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1977 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1979 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1980 ;;
1981 esac
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1983 $as_echo_n "checking for $2... " >&6; }
1984 if eval "test \"\${$3+set}\"" = set; then :
1985 $as_echo_n "(cached) " >&6
1986 else
1987 eval "$3=\$ac_header_compiler"
1988 fi
1989 eval ac_res=\$$3
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1991 $as_echo "$ac_res" >&6; }
1992 fi
1993 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1994
1995 } # ac_fn_c_check_header_mongrel
1996
1997 # ac_fn_c_try_run LINENO
1998 # ----------------------
1999 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2000 # that executables *can* be run.
2001 ac_fn_c_try_run ()
2002 {
2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004 if { { ac_try="$ac_link"
2005 case "(($ac_try" in
2006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2007 *) ac_try_echo=$ac_try;;
2008 esac
2009 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2010 $as_echo "$ac_try_echo"; } >&5
2011 (eval "$ac_link") 2>&5
2012 ac_status=$?
2013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2014 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2015 { { case "(($ac_try" in
2016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2017 *) ac_try_echo=$ac_try;;
2018 esac
2019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2020 $as_echo "$ac_try_echo"; } >&5
2021 (eval "$ac_try") 2>&5
2022 ac_status=$?
2023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2024 test $ac_status = 0; }; }; then :
2025 ac_retval=0
2026 else
2027 $as_echo "$as_me: program exited with status $ac_status" >&5
2028 $as_echo "$as_me: failed program was:" >&5
2029 sed 's/^/| /' conftest.$ac_ext >&5
2030
2031 ac_retval=$ac_status
2032 fi
2033 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2034 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2035 as_fn_set_status $ac_retval
2036
2037 } # ac_fn_c_try_run
2038
2039 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2040 # -------------------------------------------------------
2041 # Tests whether HEADER exists and can be compiled using the include files in
2042 # INCLUDES, setting the cache variable VAR accordingly.
2043 ac_fn_c_check_header_compile ()
2044 {
2045 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2047 $as_echo_n "checking for $2... " >&6; }
2048 if eval "test \"\${$3+set}\"" = set; then :
2049 $as_echo_n "(cached) " >&6
2050 else
2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052 /* end confdefs.h. */
2053 $4
2054 #include <$2>
2055 _ACEOF
2056 if ac_fn_c_try_compile "$LINENO"; then :
2057 eval "$3=yes"
2058 else
2059 eval "$3=no"
2060 fi
2061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2062 fi
2063 eval ac_res=\$$3
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2065 $as_echo "$ac_res" >&6; }
2066 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2067
2068 } # ac_fn_c_check_header_compile
2069
2070 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2071 # --------------------------------------------
2072 # Tries to find the compile-time value of EXPR in a program that includes
2073 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2074 # computed
2075 ac_fn_c_compute_int ()
2076 {
2077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078 if test "$cross_compiling" = yes; then
2079 # Depending upon the size, compute the lo and hi bounds.
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2082 $4
2083 int
2084 main ()
2085 {
2086 static int test_array [1 - 2 * !(($2) >= 0)];
2087 test_array [0] = 0
2088
2089 ;
2090 return 0;
2091 }
2092 _ACEOF
2093 if ac_fn_c_try_compile "$LINENO"; then :
2094 ac_lo=0 ac_mid=0
2095 while :; do
2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h. */
2098 $4
2099 int
2100 main ()
2101 {
2102 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2103 test_array [0] = 0
2104
2105 ;
2106 return 0;
2107 }
2108 _ACEOF
2109 if ac_fn_c_try_compile "$LINENO"; then :
2110 ac_hi=$ac_mid; break
2111 else
2112 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2113 if test $ac_lo -le $ac_mid; then
2114 ac_lo= ac_hi=
2115 break
2116 fi
2117 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2118 fi
2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120 done
2121 else
2122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123 /* end confdefs.h. */
2124 $4
2125 int
2126 main ()
2127 {
2128 static int test_array [1 - 2 * !(($2) < 0)];
2129 test_array [0] = 0
2130
2131 ;
2132 return 0;
2133 }
2134 _ACEOF
2135 if ac_fn_c_try_compile "$LINENO"; then :
2136 ac_hi=-1 ac_mid=-1
2137 while :; do
2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h. */
2140 $4
2141 int
2142 main ()
2143 {
2144 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2145 test_array [0] = 0
2146
2147 ;
2148 return 0;
2149 }
2150 _ACEOF
2151 if ac_fn_c_try_compile "$LINENO"; then :
2152 ac_lo=$ac_mid; break
2153 else
2154 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2155 if test $ac_mid -le $ac_hi; then
2156 ac_lo= ac_hi=
2157 break
2158 fi
2159 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2160 fi
2161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162 done
2163 else
2164 ac_lo= ac_hi=
2165 fi
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167 fi
2168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 # Binary search between lo and hi bounds.
2170 while test "x$ac_lo" != "x$ac_hi"; do
2171 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h. */
2174 $4
2175 int
2176 main ()
2177 {
2178 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2179 test_array [0] = 0
2180
2181 ;
2182 return 0;
2183 }
2184 _ACEOF
2185 if ac_fn_c_try_compile "$LINENO"; then :
2186 ac_hi=$ac_mid
2187 else
2188 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2189 fi
2190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2191 done
2192 case $ac_lo in #((
2193 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2194 '') ac_retval=1 ;;
2195 esac
2196 else
2197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2198 /* end confdefs.h. */
2199 $4
2200 static long int longval () { return $2; }
2201 static unsigned long int ulongval () { return $2; }
2202 #include <stdio.h>
2203 #include <stdlib.h>
2204 int
2205 main ()
2206 {
2207
2208 FILE *f = fopen ("conftest.val", "w");
2209 if (! f)
2210 return 1;
2211 if (($2) < 0)
2212 {
2213 long int i = longval ();
2214 if (i != ($2))
2215 return 1;
2216 fprintf (f, "%ld", i);
2217 }
2218 else
2219 {
2220 unsigned long int i = ulongval ();
2221 if (i != ($2))
2222 return 1;
2223 fprintf (f, "%lu", i);
2224 }
2225 /* Do not output a trailing newline, as this causes \r\n confusion
2226 on some platforms. */
2227 return ferror (f) || fclose (f) != 0;
2228
2229 ;
2230 return 0;
2231 }
2232 _ACEOF
2233 if ac_fn_c_try_run "$LINENO"; then :
2234 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2235 else
2236 ac_retval=1
2237 fi
2238 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2239 conftest.$ac_objext conftest.beam conftest.$ac_ext
2240 rm -f conftest.val
2241
2242 fi
2243 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2244 as_fn_set_status $ac_retval
2245
2246 } # ac_fn_c_compute_int
2247
2248 # ac_fn_c_try_link LINENO
2249 # -----------------------
2250 # Try to link conftest.$ac_ext, and return whether this succeeded.
2251 ac_fn_c_try_link ()
2252 {
2253 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2254 rm -f conftest.$ac_objext conftest$ac_exeext
2255 if { { ac_try="$ac_link"
2256 case "(($ac_try" in
2257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2258 *) ac_try_echo=$ac_try;;
2259 esac
2260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2261 $as_echo "$ac_try_echo"; } >&5
2262 (eval "$ac_link") 2>conftest.err
2263 ac_status=$?
2264 if test -s conftest.err; then
2265 grep -v '^ *+' conftest.err >conftest.er1
2266 cat conftest.er1 >&5
2267 mv -f conftest.er1 conftest.err
2268 fi
2269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2270 test $ac_status = 0; } && {
2271 test -z "$ac_c_werror_flag" ||
2272 test ! -s conftest.err
2273 } && test -s conftest$ac_exeext && {
2274 test "$cross_compiling" = yes ||
2275 $as_test_x conftest$ac_exeext
2276 }; then :
2277 ac_retval=0
2278 else
2279 $as_echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2281
2282 ac_retval=1
2283 fi
2284 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2285 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2286 # interfere with the next link command; also delete a directory that is
2287 # left behind by Apple's compiler. We do this before executing the actions.
2288 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2289 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2290 as_fn_set_status $ac_retval
2291
2292 } # ac_fn_c_try_link
2293
2294 # ac_fn_c_check_func LINENO FUNC VAR
2295 # ----------------------------------
2296 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2297 ac_fn_c_check_func ()
2298 {
2299 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2301 $as_echo_n "checking for $2... " >&6; }
2302 if eval "test \"\${$3+set}\"" = set; then :
2303 $as_echo_n "(cached) " >&6
2304 else
2305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2306 /* end confdefs.h. */
2307 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2309 #define $2 innocuous_$2
2310
2311 /* System header to define __stub macros and hopefully few prototypes,
2312 which can conflict with char $2 (); below.
2313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2314 <limits.h> exists even on freestanding compilers. */
2315
2316 #ifdef __STDC__
2317 # include <limits.h>
2318 #else
2319 # include <assert.h>
2320 #endif
2321
2322 #undef $2
2323
2324 /* Override any GCC internal prototype to avoid an error.
2325 Use char because int might match the return type of a GCC
2326 builtin and then its argument prototype would still apply. */
2327 #ifdef __cplusplus
2328 extern "C"
2329 #endif
2330 char $2 ();
2331 /* The GNU C library defines this for functions which it implements
2332 to always fail with ENOSYS. Some functions are actually named
2333 something starting with __ and the normal name is an alias. */
2334 #if defined __stub_$2 || defined __stub___$2
2335 choke me
2336 #endif
2337
2338 int
2339 main ()
2340 {
2341 return $2 ();
2342 ;
2343 return 0;
2344 }
2345 _ACEOF
2346 if ac_fn_c_try_link "$LINENO"; then :
2347 eval "$3=yes"
2348 else
2349 eval "$3=no"
2350 fi
2351 rm -f core conftest.err conftest.$ac_objext \
2352 conftest$ac_exeext conftest.$ac_ext
2353 fi
2354 eval ac_res=\$$3
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2356 $as_echo "$ac_res" >&6; }
2357 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2358
2359 } # ac_fn_c_check_func
2360
2361 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2362 # ---------------------------------------------
2363 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2364 # accordingly.
2365 ac_fn_c_check_decl ()
2366 {
2367 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2368 as_decl_name=`echo $2|sed 's/ *(.*//'`
2369 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2371 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2372 if eval "test \"\${$3+set}\"" = set; then :
2373 $as_echo_n "(cached) " >&6
2374 else
2375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2376 /* end confdefs.h. */
2377 $4
2378 int
2379 main ()
2380 {
2381 #ifndef $as_decl_name
2382 #ifdef __cplusplus
2383 (void) $as_decl_use;
2384 #else
2385 (void) $as_decl_name;
2386 #endif
2387 #endif
2388
2389 ;
2390 return 0;
2391 }
2392 _ACEOF
2393 if ac_fn_c_try_compile "$LINENO"; then :
2394 eval "$3=yes"
2395 else
2396 eval "$3=no"
2397 fi
2398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2399 fi
2400 eval ac_res=\$$3
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2402 $as_echo "$ac_res" >&6; }
2403 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2404
2405 } # ac_fn_c_check_decl
2406
2407 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2408 # -------------------------------------------
2409 # Tests whether TYPE exists after having included INCLUDES, setting cache
2410 # variable VAR accordingly.
2411 ac_fn_c_check_type ()
2412 {
2413 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2415 $as_echo_n "checking for $2... " >&6; }
2416 if eval "test \"\${$3+set}\"" = set; then :
2417 $as_echo_n "(cached) " >&6
2418 else
2419 eval "$3=no"
2420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2421 /* end confdefs.h. */
2422 $4
2423 int
2424 main ()
2425 {
2426 if (sizeof ($2))
2427 return 0;
2428 ;
2429 return 0;
2430 }
2431 _ACEOF
2432 if ac_fn_c_try_compile "$LINENO"; then :
2433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2434 /* end confdefs.h. */
2435 $4
2436 int
2437 main ()
2438 {
2439 if (sizeof (($2)))
2440 return 0;
2441 ;
2442 return 0;
2443 }
2444 _ACEOF
2445 if ac_fn_c_try_compile "$LINENO"; then :
2446
2447 else
2448 eval "$3=yes"
2449 fi
2450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2451 fi
2452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2453 fi
2454 eval ac_res=\$$3
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2456 $as_echo "$ac_res" >&6; }
2457 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2458
2459 } # ac_fn_c_check_type
2460
2461 # ac_fn_cxx_try_cpp LINENO
2462 # ------------------------
2463 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2464 ac_fn_cxx_try_cpp ()
2465 {
2466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2467 if { { ac_try="$ac_cpp conftest.$ac_ext"
2468 case "(($ac_try" in
2469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2470 *) ac_try_echo=$ac_try;;
2471 esac
2472 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2473 $as_echo "$ac_try_echo"; } >&5
2474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2475 ac_status=$?
2476 if test -s conftest.err; then
2477 grep -v '^ *+' conftest.err >conftest.er1
2478 cat conftest.er1 >&5
2479 mv -f conftest.er1 conftest.err
2480 fi
2481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2482 test $ac_status = 0; } > conftest.i && {
2483 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2484 test ! -s conftest.err
2485 }; then :
2486 ac_retval=0
2487 else
2488 $as_echo "$as_me: failed program was:" >&5
2489 sed 's/^/| /' conftest.$ac_ext >&5
2490
2491 ac_retval=1
2492 fi
2493 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2494 as_fn_set_status $ac_retval
2495
2496 } # ac_fn_cxx_try_cpp
2497
2498 # ac_fn_cxx_try_link LINENO
2499 # -------------------------
2500 # Try to link conftest.$ac_ext, and return whether this succeeded.
2501 ac_fn_cxx_try_link ()
2502 {
2503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2504 rm -f conftest.$ac_objext conftest$ac_exeext
2505 if { { ac_try="$ac_link"
2506 case "(($ac_try" in
2507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2508 *) ac_try_echo=$ac_try;;
2509 esac
2510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2511 $as_echo "$ac_try_echo"; } >&5
2512 (eval "$ac_link") 2>conftest.err
2513 ac_status=$?
2514 if test -s conftest.err; then
2515 grep -v '^ *+' conftest.err >conftest.er1
2516 cat conftest.er1 >&5
2517 mv -f conftest.er1 conftest.err
2518 fi
2519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2520 test $ac_status = 0; } && {
2521 test -z "$ac_cxx_werror_flag" ||
2522 test ! -s conftest.err
2523 } && test -s conftest$ac_exeext && {
2524 test "$cross_compiling" = yes ||
2525 $as_test_x conftest$ac_exeext
2526 }; then :
2527 ac_retval=0
2528 else
2529 $as_echo "$as_me: failed program was:" >&5
2530 sed 's/^/| /' conftest.$ac_ext >&5
2531
2532 ac_retval=1
2533 fi
2534 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2535 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2536 # interfere with the next link command; also delete a directory that is
2537 # left behind by Apple's compiler. We do this before executing the actions.
2538 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2539 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2540 as_fn_set_status $ac_retval
2541
2542 } # ac_fn_cxx_try_link
2543 cat >config.log <<_ACEOF
2544 This file contains any messages produced by compilers while
2545 running configure, to aid debugging if configure makes a mistake.
2546
2547 It was created by flactag $as_me 2.0.4, which was
2548 generated by GNU Autoconf 2.67. Invocation command line was
2549
2550 $ $0 $@
2551
2552 _ACEOF
2553 exec 5>>config.log
2554 {
2555 cat <<_ASUNAME
2556 ## --------- ##
2557 ## Platform. ##
2558 ## --------- ##
2559
2560 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2561 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2562 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2563 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2564 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2565
2566 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2567 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2568
2569 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2570 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2571 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2572 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2573 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2574 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2575 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2576
2577 _ASUNAME
2578
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2581 do
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 $as_echo "PATH: $as_dir"
2585 done
2586 IFS=$as_save_IFS
2587
2588 } >&5
2589
2590 cat >&5 <<_ACEOF
2591
2592
2593 ## ----------- ##
2594 ## Core tests. ##
2595 ## ----------- ##
2596
2597 _ACEOF
2598
2599
2600 # Keep a trace of the command line.
2601 # Strip out --no-create and --no-recursion so they do not pile up.
2602 # Strip out --silent because we don't want to record it for future runs.
2603 # Also quote any args containing shell meta-characters.
2604 # Make two passes to allow for proper duplicate-argument suppression.
2605 ac_configure_args=
2606 ac_configure_args0=
2607 ac_configure_args1=
2608 ac_must_keep_next=false
2609 for ac_pass in 1 2
2610 do
2611 for ac_arg
2612 do
2613 case $ac_arg in
2614 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2615 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2616 | -silent | --silent | --silen | --sile | --sil)
2617 continue ;;
2618 *\'*)
2619 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2620 esac
2621 case $ac_pass in
2622 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2623 2)
2624 as_fn_append ac_configure_args1 " '$ac_arg'"
2625 if test $ac_must_keep_next = true; then
2626 ac_must_keep_next=false # Got value, back to normal.
2627 else
2628 case $ac_arg in
2629 *=* | --config-cache | -C | -disable-* | --disable-* \
2630 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2631 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2632 | -with-* | --with-* | -without-* | --without-* | --x)
2633 case "$ac_configure_args0 " in
2634 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2635 esac
2636 ;;
2637 -* ) ac_must_keep_next=true ;;
2638 esac
2639 fi
2640 as_fn_append ac_configure_args " '$ac_arg'"
2641 ;;
2642 esac
2643 done
2644 done
2645 { ac_configure_args0=; unset ac_configure_args0;}
2646 { ac_configure_args1=; unset ac_configure_args1;}
2647
2648 # When interrupted or exit'd, cleanup temporary files, and complete
2649 # config.log. We remove comments because anyway the quotes in there
2650 # would cause problems or look ugly.
2651 # WARNING: Use '\'' to represent an apostrophe within the trap.
2652 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2653 trap 'exit_status=$?
2654 # Save into config.log some information that might help in debugging.
2655 {
2656 echo
2657
2658 $as_echo "## ---------------- ##
2659 ## Cache variables. ##
2660 ## ---------------- ##"
2661 echo
2662 # The following way of writing the cache mishandles newlines in values,
2663 (
2664 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2665 eval ac_val=\$$ac_var
2666 case $ac_val in #(
2667 *${as_nl}*)
2668 case $ac_var in #(
2669 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2670 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2671 esac
2672 case $ac_var in #(
2673 _ | IFS | as_nl) ;; #(
2674 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2675 *) { eval $ac_var=; unset $ac_var;} ;;
2676 esac ;;
2677 esac
2678 done
2679 (set) 2>&1 |
2680 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2681 *${as_nl}ac_space=\ *)
2682 sed -n \
2683 "s/'\''/'\''\\\\'\'''\''/g;
2684 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2685 ;; #(
2686 *)
2687 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2688 ;;
2689 esac |
2690 sort
2691 )
2692 echo
2693
2694 $as_echo "## ----------------- ##
2695 ## Output variables. ##
2696 ## ----------------- ##"
2697 echo
2698 for ac_var in $ac_subst_vars
2699 do
2700 eval ac_val=\$$ac_var
2701 case $ac_val in
2702 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2703 esac
2704 $as_echo "$ac_var='\''$ac_val'\''"
2705 done | sort
2706 echo
2707
2708 if test -n "$ac_subst_files"; then
2709 $as_echo "## ------------------- ##
2710 ## File substitutions. ##
2711 ## ------------------- ##"
2712 echo
2713 for ac_var in $ac_subst_files
2714 do
2715 eval ac_val=\$$ac_var
2716 case $ac_val in
2717 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2718 esac
2719 $as_echo "$ac_var='\''$ac_val'\''"
2720 done | sort
2721 echo
2722 fi
2723
2724 if test -s confdefs.h; then
2725 $as_echo "## ----------- ##
2726 ## confdefs.h. ##
2727 ## ----------- ##"
2728 echo
2729 cat confdefs.h
2730 echo
2731 fi
2732 test "$ac_signal" != 0 &&
2733 $as_echo "$as_me: caught signal $ac_signal"
2734 $as_echo "$as_me: exit $exit_status"
2735 } >&5
2736 rm -f core *.core core.conftest.* &&
2737 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2738 exit $exit_status
2739 ' 0
2740 for ac_signal in 1 2 13 15; do
2741 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2742 done
2743 ac_signal=0
2744
2745 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2746 rm -f -r conftest* confdefs.h
2747
2748 $as_echo "/* confdefs.h */" > confdefs.h
2749
2750 # Predefined preprocessor variables.
2751
2752 cat >>confdefs.h <<_ACEOF
2753 #define PACKAGE_NAME "$PACKAGE_NAME"
2754 _ACEOF
2755
2756 cat >>confdefs.h <<_ACEOF
2757 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2758 _ACEOF
2759
2760 cat >>confdefs.h <<_ACEOF
2761 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2762 _ACEOF
2763
2764 cat >>confdefs.h <<_ACEOF
2765 #define PACKAGE_STRING "$PACKAGE_STRING"
2766 _ACEOF
2767
2768 cat >>confdefs.h <<_ACEOF
2769 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2770 _ACEOF
2771
2772 cat >>confdefs.h <<_ACEOF
2773 #define PACKAGE_URL "$PACKAGE_URL"
2774 _ACEOF
2775
2776
2777 # Let the site file select an alternate cache file if it wants to.
2778 # Prefer an explicitly selected file to automatically selected ones.
2779 ac_site_file1=NONE
2780 ac_site_file2=NONE
2781 if test -n "$CONFIG_SITE"; then
2782 # We do not want a PATH search for config.site.
2783 case $CONFIG_SITE in #((
2784 -*) ac_site_file1=./$CONFIG_SITE;;
2785 */*) ac_site_file1=$CONFIG_SITE;;
2786 *) ac_site_file1=./$CONFIG_SITE;;
2787 esac
2788 elif test "x$prefix" != xNONE; then
2789 ac_site_file1=$prefix/share/config.site
2790 ac_site_file2=$prefix/etc/config.site
2791 else
2792 ac_site_file1=$ac_default_prefix/share/config.site
2793 ac_site_file2=$ac_default_prefix/etc/config.site
2794 fi
2795 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2796 do
2797 test "x$ac_site_file" = xNONE && continue
2798 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2800 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2801 sed 's/^/| /' "$ac_site_file" >&5
2802 . "$ac_site_file" \
2803 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2804 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2805 as_fn_error $? "failed to load site script $ac_site_file
2806 See \`config.log' for more details" "$LINENO" 5 ; }
2807 fi
2808 done
2809
2810 if test -r "$cache_file"; then
2811 # Some versions of bash will fail to source /dev/null (special files
2812 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2813 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2815 $as_echo "$as_me: loading cache $cache_file" >&6;}
2816 case $cache_file in
2817 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2818 *) . "./$cache_file";;
2819 esac
2820 fi
2821 else
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2823 $as_echo "$as_me: creating cache $cache_file" >&6;}
2824 >$cache_file
2825 fi
2826
2827 gl_header_list="$gl_header_list stdint.h"
2828 gl_header_list="$gl_header_list wchar.h"
2829 gl_header_list="$gl_header_list stdio.h"
2830 gl_header_list="$gl_header_list stdlib.h"
2831 gl_func_list="$gl_func_list lstat"
2832 gl_header_list="$gl_header_list sys/stat.h"
2833 gl_header_list="$gl_header_list unistd.h"
2834 # Check that the precious variables saved in the cache have kept the same
2835 # value.
2836 ac_cache_corrupted=false
2837 for ac_var in $ac_precious_vars; do
2838 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2839 eval ac_new_set=\$ac_env_${ac_var}_set
2840 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2841 eval ac_new_val=\$ac_env_${ac_var}_value
2842 case $ac_old_set,$ac_new_set in
2843 set,)
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2845 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2846 ac_cache_corrupted=: ;;
2847 ,set)
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2849 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2850 ac_cache_corrupted=: ;;
2851 ,);;
2852 *)
2853 if test "x$ac_old_val" != "x$ac_new_val"; then
2854 # differences in whitespace do not lead to failure.
2855 ac_old_val_w=`echo x $ac_old_val`
2856 ac_new_val_w=`echo x $ac_new_val`
2857 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2859 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2860 ac_cache_corrupted=:
2861 else
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2863 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2864 eval $ac_var=\$ac_old_val
2865 fi
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2867 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2869 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2870 fi;;
2871 esac
2872 # Pass precious variables to config.status.
2873 if test "$ac_new_set" = set; then
2874 case $ac_new_val in
2875 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2876 *) ac_arg=$ac_var=$ac_new_val ;;
2877 esac
2878 case " $ac_configure_args " in
2879 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2880 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2881 esac
2882 fi
2883 done
2884 if $ac_cache_corrupted; then
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2888 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2889 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2890 fi
2891 ## -------------------- ##
2892 ## Main body of script. ##
2893 ## -------------------- ##
2894
2895 ac_ext=c
2896 ac_cpp='$CPP $CPPFLAGS'
2897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2900
2901
2902
2903
2904 ac_aux_dir=
2905 for ac_dir in build-aux "$srcdir"/build-aux; do
2906 if test -f "$ac_dir/install-sh"; then
2907 ac_aux_dir=$ac_dir
2908 ac_install_sh="$ac_aux_dir/install-sh -c"
2909 break
2910 elif test -f "$ac_dir/install.sh"; then
2911 ac_aux_dir=$ac_dir
2912 ac_install_sh="$ac_aux_dir/install.sh -c"
2913 break
2914 elif test -f "$ac_dir/shtool"; then
2915 ac_aux_dir=$ac_dir
2916 ac_install_sh="$ac_aux_dir/shtool install -c"
2917 break
2918 fi
2919 done
2920 if test -z "$ac_aux_dir"; then
2921 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2922 fi
2923
2924 # These three variables are undocumented and unsupported,
2925 # and are intended to be withdrawn in a future Autoconf release.
2926 # They can cause serious problems if a builder's source tree is in a directory
2927 # whose full name contains unusual characters.
2928 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2929 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2930 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2931
2932
2933
2934 am__api_version='1.11'
2935
2936 # Find a good install program. We prefer a C program (faster),
2937 # so one script is as good as another. But avoid the broken or
2938 # incompatible versions:
2939 # SysV /etc/install, /usr/sbin/install
2940 # SunOS /usr/etc/install
2941 # IRIX /sbin/install
2942 # AIX /bin/install
2943 # AmigaOS /C/install, which installs bootblocks on floppy discs
2944 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2945 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2946 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2947 # OS/2's system install, which has a completely different semantic
2948 # ./install, which can be erroneously created by make from ./install.sh.
2949 # Reject install programs that cannot install multiple files.
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2951 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2952 if test -z "$INSTALL"; then
2953 if test "${ac_cv_path_install+set}" = set; then :
2954 $as_echo_n "(cached) " >&6
2955 else
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957 for as_dir in $PATH
2958 do
2959 IFS=$as_save_IFS
2960 test -z "$as_dir" && as_dir=.
2961 # Account for people who put trailing slashes in PATH elements.
2962 case $as_dir/ in #((
2963 ./ | .// | /[cC]/* | \
2964 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2965 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2966 /usr/ucb/* ) ;;
2967 *)
2968 # OSF1 and SCO ODT 3.0 have their own names for install.
2969 # Don't use installbsd from OSF since it installs stuff as root
2970 # by default.
2971 for ac_prog in ginstall scoinst install; do
2972 for ac_exec_ext in '' $ac_executable_extensions; do
2973 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2974 if test $ac_prog = install &&
2975 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2976 # AIX install. It has an incompatible calling convention.
2977 :
2978 elif test $ac_prog = install &&
2979 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2980 # program-specific install script used by HP pwplus--don't use.
2981 :
2982 else
2983 rm -rf conftest.one conftest.two conftest.dir
2984 echo one > conftest.one
2985 echo two > conftest.two
2986 mkdir conftest.dir
2987 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2988 test -s conftest.one && test -s conftest.two &&
2989 test -s conftest.dir/conftest.one &&
2990 test -s conftest.dir/conftest.two
2991 then
2992 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2993 break 3
2994 fi
2995 fi
2996 fi
2997 done
2998 done
2999 ;;
3000 esac
3001
3002 done
3003 IFS=$as_save_IFS
3004
3005 rm -rf conftest.one conftest.two conftest.dir
3006
3007 fi
3008 if test "${ac_cv_path_install+set}" = set; then
3009 INSTALL=$ac_cv_path_install
3010 else
3011 # As a last resort, use the slow shell script. Don't cache a
3012 # value for INSTALL within a source directory, because that will
3013 # break other packages using the cache if that directory is
3014 # removed, or if the value is a relative name.
3015 INSTALL=$ac_install_sh
3016 fi
3017 fi
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3019 $as_echo "$INSTALL" >&6; }
3020
3021 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3022 # It thinks the first close brace ends the variable substitution.
3023 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3024
3025 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3026
3027 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3028
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3030 $as_echo_n "checking whether build environment is sane... " >&6; }
3031 # Just in case
3032 sleep 1
3033 echo timestamp > conftest.file
3034 # Reject unsafe characters in $srcdir or the absolute working directory
3035 # name. Accept space and tab only in the latter.
3036 am_lf='
3037 '
3038 case `pwd` in
3039 *[\\\"\#\$\&\'\`$am_lf]*)
3040 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
3041 esac
3042 case $srcdir in
3043 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3044 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
3045 esac
3046
3047 # Do `set' in a subshell so we don't clobber the current shell's
3048 # arguments. Must try -L first in case configure is actually a
3049 # symlink; some systems play weird games with the mod time of symlinks
3050 # (eg FreeBSD returns the mod time of the symlink's containing
3051 # directory).
3052 if (
3053 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3054 if test "$*" = "X"; then
3055 # -L didn't work.
3056 set X `ls -t "$srcdir/configure" conftest.file`
3057 fi
3058 rm -f conftest.file
3059 if test "$*" != "X $srcdir/configure conftest.file" \
3060 && test "$*" != "X conftest.file $srcdir/configure"; then
3061
3062 # If neither matched, then we have a broken ls. This can happen
3063 # if, for instance, CONFIG_SHELL is bash and it inherits a
3064 # broken ls alias from the environment. This has actually
3065 # happened. Such a system could not be considered "sane".
3066 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3067 alias in your environment" "$LINENO" 5
3068 fi
3069
3070 test "$2" = conftest.file
3071 )
3072 then
3073 # Ok.
3074 :
3075 else
3076 as_fn_error $? "newly created file is older than distributed files!
3077 Check your system clock" "$LINENO" 5
3078 fi
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3080 $as_echo "yes" >&6; }
3081 test "$program_prefix" != NONE &&
3082 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3083 # Use a double $ so make ignores it.
3084 test "$program_suffix" != NONE &&
3085 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3086 # Double any \ or $.
3087 # By default was `s,x,x', remove it if useless.
3088 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3089 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3090
3091 # expand $ac_aux_dir to an absolute path
3092 am_aux_dir=`cd $ac_aux_dir && pwd`
3093
3094 if test x"${MISSING+set}" != xset; then
3095 case $am_aux_dir in
3096 *\ * | *\ *)
3097 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3098 *)
3099 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3100 esac
3101 fi
3102 # Use eval to expand $SHELL
3103 if eval "$MISSING --run true"; then
3104 am_missing_run="$MISSING --run "
3105 else
3106 am_missing_run=
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3108 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3109 fi
3110
3111 if test x"${install_sh}" != xset; then
3112 case $am_aux_dir in
3113 *\ * | *\ *)
3114 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3115 *)
3116 install_sh="\${SHELL} $am_aux_dir/install-sh"
3117 esac
3118 fi
3119
3120 # Installed binaries are usually stripped using `strip' when the user
3121 # run `make install-strip'. However `strip' might not be the right
3122 # tool to use in cross-compilation environments, therefore Automake
3123 # will honor the `STRIP' environment variable to overrule this program.
3124 if test "$cross_compiling" != no; then
3125 if test -n "$ac_tool_prefix"; then
3126 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3127 set dummy ${ac_tool_prefix}strip; ac_word=$2
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129 $as_echo_n "checking for $ac_word... " >&6; }
3130 if test "${ac_cv_prog_STRIP+set}" = set; then :
3131 $as_echo_n "(cached) " >&6
3132 else
3133 if test -n "$STRIP"; then
3134 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3135 else
3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137 for as_dir in $PATH
3138 do
3139 IFS=$as_save_IFS
3140 test -z "$as_dir" && as_dir=.
3141 for ac_exec_ext in '' $ac_executable_extensions; do
3142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3143 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3145 break 2
3146 fi
3147 done
3148 done
3149 IFS=$as_save_IFS
3150
3151 fi
3152 fi
3153 STRIP=$ac_cv_prog_STRIP
3154 if test -n "$STRIP"; then
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3156 $as_echo "$STRIP" >&6; }
3157 else
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159 $as_echo "no" >&6; }
3160 fi
3161
3162
3163 fi
3164 if test -z "$ac_cv_prog_STRIP"; then
3165 ac_ct_STRIP=$STRIP
3166 # Extract the first word of "strip", so it can be a program name with args.
3167 set dummy strip; ac_word=$2
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3169 $as_echo_n "checking for $ac_word... " >&6; }
3170 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3171 $as_echo_n "(cached) " >&6
3172 else
3173 if test -n "$ac_ct_STRIP"; then
3174 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3175 else
3176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177 for as_dir in $PATH
3178 do
3179 IFS=$as_save_IFS
3180 test -z "$as_dir" && as_dir=.
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3183 ac_cv_prog_ac_ct_STRIP="strip"
3184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3185 break 2
3186 fi
3187 done
3188 done
3189 IFS=$as_save_IFS
3190
3191 fi
3192 fi
3193 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3194 if test -n "$ac_ct_STRIP"; then
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3196 $as_echo "$ac_ct_STRIP" >&6; }
3197 else
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199 $as_echo "no" >&6; }
3200 fi
3201
3202 if test "x$ac_ct_STRIP" = x; then
3203 STRIP=":"
3204 else
3205 case $cross_compiling:$ac_tool_warned in
3206 yes:)
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3209 ac_tool_warned=yes ;;
3210 esac
3211 STRIP=$ac_ct_STRIP
3212 fi
3213 else
3214 STRIP="$ac_cv_prog_STRIP"
3215 fi
3216
3217 fi
3218 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3219
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3221 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3222 if test -z "$MKDIR_P"; then
3223 if test "${ac_cv_path_mkdir+set}" = set; then :
3224 $as_echo_n "(cached) " >&6
3225 else
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3228 do
3229 IFS=$as_save_IFS
3230 test -z "$as_dir" && as_dir=.
3231 for ac_prog in mkdir gmkdir; do
3232 for ac_exec_ext in '' $ac_executable_extensions; do
3233 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3234 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3235 'mkdir (GNU coreutils) '* | \
3236 'mkdir (coreutils) '* | \
3237 'mkdir (fileutils) '4.1*)
3238 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3239 break 3;;
3240 esac
3241 done
3242 done
3243 done
3244 IFS=$as_save_IFS
3245
3246 fi
3247
3248 test -d ./--version && rmdir ./--version
3249 if test "${ac_cv_path_mkdir+set}" = set; then
3250 MKDIR_P="$ac_cv_path_mkdir -p"
3251 else
3252 # As a last resort, use the slow shell script. Don't cache a
3253 # value for MKDIR_P within a source directory, because that will
3254 # break other packages using the cache if that directory is
3255 # removed, or if the value is a relative name.
3256 MKDIR_P="$ac_install_sh -d"
3257 fi
3258 fi
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3260 $as_echo "$MKDIR_P" >&6; }
3261
3262 mkdir_p="$MKDIR_P"
3263 case $mkdir_p in
3264 [\\/$]* | ?:[\\/]*) ;;
3265 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3266 esac
3267
3268 for ac_prog in gawk mawk nawk awk
3269 do
3270 # Extract the first word of "$ac_prog", so it can be a program name with args.
3271 set dummy $ac_prog; ac_word=$2
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3273 $as_echo_n "checking for $ac_word... " >&6; }
3274 if test "${ac_cv_prog_AWK+set}" = set; then :
3275 $as_echo_n "(cached) " >&6
3276 else
3277 if test -n "$AWK"; then
3278 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3279 else
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 for as_dir in $PATH
3282 do
3283 IFS=$as_save_IFS
3284 test -z "$as_dir" && as_dir=.
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3287 ac_cv_prog_AWK="$ac_prog"
3288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3289 break 2
3290 fi
3291 done
3292 done
3293 IFS=$as_save_IFS
3294
3295 fi
3296 fi
3297 AWK=$ac_cv_prog_AWK
3298 if test -n "$AWK"; then
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3300 $as_echo "$AWK" >&6; }
3301 else
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3303 $as_echo "no" >&6; }
3304 fi
3305
3306
3307 test -n "$AWK" && break
3308 done
3309
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3311 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3312 set x ${MAKE-make}
3313 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3314 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3315 $as_echo_n "(cached) " >&6
3316 else
3317 cat >conftest.make <<\_ACEOF
3318 SHELL = /bin/sh
3319 all:
3320 @echo '@@@%%%=$(MAKE)=@@@%%%'
3321 _ACEOF
3322 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3323 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3324 *@@@%%%=?*=@@@%%%*)
3325 eval ac_cv_prog_make_${ac_make}_set=yes;;
3326 *)
3327 eval ac_cv_prog_make_${ac_make}_set=no;;
3328 esac
3329 rm -f conftest.make
3330 fi
3331 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3333 $as_echo "yes" >&6; }
3334 SET_MAKE=
3335 else
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3338 SET_MAKE="MAKE=${MAKE-make}"
3339 fi
3340
3341 rm -rf .tst 2>/dev/null
3342 mkdir .tst 2>/dev/null
3343 if test -d .tst; then
3344 am__leading_dot=.
3345 else
3346 am__leading_dot=_
3347 fi
3348 rmdir .tst 2>/dev/null
3349
3350 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3351 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3352 # is not polluted with repeated "-I."
3353 am__isrc=' -I$(srcdir)'
3354 # test to see if srcdir already configured
3355 if test -f $srcdir/config.status; then
3356 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3357 fi
3358 fi
3359
3360 # test whether we have cygpath
3361 if test -z "$CYGPATH_W"; then
3362 if (cygpath --version) >/dev/null 2>/dev/null; then
3363 CYGPATH_W='cygpath -w'
3364 else
3365 CYGPATH_W=echo
3366 fi
3367 fi
3368
3369
3370 # Define the identity of the package.
3371 PACKAGE='flactag'
3372 VERSION='2.0.4'
3373
3374
3375 cat >>confdefs.h <<_ACEOF
3376 #define PACKAGE "$PACKAGE"
3377 _ACEOF
3378
3379
3380 cat >>confdefs.h <<_ACEOF
3381 #define VERSION "$VERSION"
3382 _ACEOF
3383
3384 # Some tools Automake needs.
3385
3386 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3387
3388
3389 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3390
3391
3392 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3393
3394
3395 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3396
3397
3398 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3399
3400 # We need awk for the "check" target. The system "awk" is bad on
3401 # some platforms.
3402 # Always define AMTAR for backward compatibility.
3403
3404 AMTAR=${AMTAR-"${am_missing_run}tar"}
3405
3406 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3407
3408
3409
3410
3411
3412
3413 # Make sure we can run config.sub.
3414 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3415 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3416
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3418 $as_echo_n "checking build system type... " >&6; }
3419 if test "${ac_cv_build+set}" = set; then :
3420 $as_echo_n "(cached) " >&6
3421 else
3422 ac_build_alias=$build_alias
3423 test "x$ac_build_alias" = x &&
3424 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3425 test "x$ac_build_alias" = x &&
3426 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3427 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3428 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3429
3430 fi
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3432 $as_echo "$ac_cv_build" >&6; }
3433 case $ac_cv_build in
3434 *-*-*) ;;
3435 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3436 esac
3437 build=$ac_cv_build
3438 ac_save_IFS=$IFS; IFS='-'
3439 set x $ac_cv_build
3440 shift
3441 build_cpu=$1
3442 build_vendor=$2
3443 shift; shift
3444 # Remember, the first character of IFS is used to create $*,
3445 # except with old shells:
3446 build_os=$*
3447 IFS=$ac_save_IFS
3448 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3449
3450
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3452 $as_echo_n "checking host system type... " >&6; }
3453 if test "${ac_cv_host+set}" = set; then :
3454 $as_echo_n "(cached) " >&6
3455 else
3456 if test "x$host_alias" = x; then
3457 ac_cv_host=$ac_cv_build
3458 else
3459 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3460 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3461 fi
3462
3463 fi
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3465 $as_echo "$ac_cv_host" >&6; }
3466 case $ac_cv_host in
3467 *-*-*) ;;
3468 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3469 esac
3470 host=$ac_cv_host
3471 ac_save_IFS=$IFS; IFS='-'
3472 set x $ac_cv_host
3473 shift
3474 host_cpu=$1
3475 host_vendor=$2
3476 shift; shift
3477 # Remember, the first character of IFS is used to create $*,
3478 # except with old shells:
3479 host_os=$*
3480 IFS=$ac_save_IFS
3481 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3482
3483
3484 ac_config_headers="$ac_config_headers config.h"
3485
3486
3487 enable_win32_dll=yes
3488
3489 case $host in
3490 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
3491 if test -n "$ac_tool_prefix"; then
3492 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3493 set dummy ${ac_tool_prefix}as; ac_word=$2
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3495 $as_echo_n "checking for $ac_word... " >&6; }
3496 if test "${ac_cv_prog_AS+set}" = set; then :
3497 $as_echo_n "(cached) " >&6
3498 else
3499 if test -n "$AS"; then
3500 ac_cv_prog_AS="$AS" # Let the user override the test.
3501 else
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503 for as_dir in $PATH
3504 do
3505 IFS=$as_save_IFS
3506 test -z "$as_dir" && as_dir=.
3507 for ac_exec_ext in '' $ac_executable_extensions; do
3508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3509 ac_cv_prog_AS="${ac_tool_prefix}as"
3510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3511 break 2
3512 fi
3513 done
3514 done
3515 IFS=$as_save_IFS
3516
3517 fi
3518 fi
3519 AS=$ac_cv_prog_AS
3520 if test -n "$AS"; then
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3522 $as_echo "$AS" >&6; }
3523 else
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3525 $as_echo "no" >&6; }
3526 fi
3527
3528
3529 fi
3530 if test -z "$ac_cv_prog_AS"; then
3531 ac_ct_AS=$AS
3532 # Extract the first word of "as", so it can be a program name with args.
3533 set dummy as; ac_word=$2
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3535 $as_echo_n "checking for $ac_word... " >&6; }
3536 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
3537 $as_echo_n "(cached) " >&6
3538 else
3539 if test -n "$ac_ct_AS"; then
3540 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3541 else
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543 for as_dir in $PATH
3544 do
3545 IFS=$as_save_IFS
3546 test -z "$as_dir" && as_dir=.
3547 for ac_exec_ext in '' $ac_executable_extensions; do
3548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3549 ac_cv_prog_ac_ct_AS="as"
3550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3551 break 2
3552 fi
3553 done
3554 done
3555 IFS=$as_save_IFS
3556
3557 fi
3558 fi
3559 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3560 if test -n "$ac_ct_AS"; then
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3562 $as_echo "$ac_ct_AS" >&6; }
3563 else
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3565 $as_echo "no" >&6; }
3566 fi
3567
3568 if test "x$ac_ct_AS" = x; then
3569 AS="false"
3570 else
3571 case $cross_compiling:$ac_tool_warned in
3572 yes:)
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3575 ac_tool_warned=yes ;;
3576 esac
3577 AS=$ac_ct_AS
3578 fi
3579 else
3580 AS="$ac_cv_prog_AS"
3581 fi
3582
3583 if test -n "$ac_tool_prefix"; then
3584 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3585 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3587 $as_echo_n "checking for $ac_word... " >&6; }
3588 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
3589 $as_echo_n "(cached) " >&6
3590 else
3591 if test -n "$DLLTOOL"; then
3592 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3593 else
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 for as_dir in $PATH
3596 do
3597 IFS=$as_save_IFS
3598 test -z "$as_dir" && as_dir=.
3599 for ac_exec_ext in '' $ac_executable_extensions; do
3600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3601 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 break 2
3604 fi
3605 done
3606 done
3607 IFS=$as_save_IFS
3608
3609 fi
3610 fi
3611 DLLTOOL=$ac_cv_prog_DLLTOOL
3612 if test -n "$DLLTOOL"; then
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
3614 $as_echo "$DLLTOOL" >&6; }
3615 else
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617 $as_echo "no" >&6; }
3618 fi
3619
3620
3621 fi
3622 if test -z "$ac_cv_prog_DLLTOOL"; then
3623 ac_ct_DLLTOOL=$DLLTOOL
3624 # Extract the first word of "dlltool", so it can be a program name with args.
3625 set dummy dlltool; ac_word=$2
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3627 $as_echo_n "checking for $ac_word... " >&6; }
3628 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
3629 $as_echo_n "(cached) " >&6
3630 else
3631 if test -n "$ac_ct_DLLTOOL"; then
3632 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3633 else
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635 for as_dir in $PATH
3636 do
3637 IFS=$as_save_IFS
3638 test -z "$as_dir" && as_dir=.
3639 for ac_exec_ext in '' $ac_executable_extensions; do
3640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3641 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3643 break 2
3644 fi
3645 done
3646 done
3647 IFS=$as_save_IFS
3648
3649 fi
3650 fi
3651 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3652 if test -n "$ac_ct_DLLTOOL"; then
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
3654 $as_echo "$ac_ct_DLLTOOL" >&6; }
3655 else
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3657 $as_echo "no" >&6; }
3658 fi
3659
3660 if test "x$ac_ct_DLLTOOL" = x; then
3661 DLLTOOL="false"
3662 else
3663 case $cross_compiling:$ac_tool_warned in
3664 yes:)
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3667 ac_tool_warned=yes ;;
3668 esac
3669 DLLTOOL=$ac_ct_DLLTOOL
3670 fi
3671 else
3672 DLLTOOL="$ac_cv_prog_DLLTOOL"
3673 fi
3674
3675 if test -n "$ac_tool_prefix"; then
3676 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3677 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3679 $as_echo_n "checking for $ac_word... " >&6; }
3680 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
3681 $as_echo_n "(cached) " >&6
3682 else
3683 if test -n "$OBJDUMP"; then
3684 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3685 else
3686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687 for as_dir in $PATH
3688 do
3689 IFS=$as_save_IFS
3690 test -z "$as_dir" && as_dir=.
3691 for ac_exec_ext in '' $ac_executable_extensions; do
3692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3693 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3695 break 2
3696 fi
3697 done
3698 done
3699 IFS=$as_save_IFS
3700
3701 fi
3702 fi
3703 OBJDUMP=$ac_cv_prog_OBJDUMP
3704 if test -n "$OBJDUMP"; then
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
3706 $as_echo "$OBJDUMP" >&6; }
3707 else
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3709 $as_echo "no" >&6; }
3710 fi
3711
3712
3713 fi
3714 if test -z "$ac_cv_prog_OBJDUMP"; then
3715 ac_ct_OBJDUMP=$OBJDUMP
3716 # Extract the first word of "objdump", so it can be a program name with args.
3717 set dummy objdump; ac_word=$2
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3719 $as_echo_n "checking for $ac_word... " >&6; }
3720 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
3721 $as_echo_n "(cached) " >&6
3722 else
3723 if test -n "$ac_ct_OBJDUMP"; then
3724 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3725 else
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727 for as_dir in $PATH
3728 do
3729 IFS=$as_save_IFS
3730 test -z "$as_dir" && as_dir=.
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3733 ac_cv_prog_ac_ct_OBJDUMP="objdump"
3734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3735 break 2
3736 fi
3737 done
3738 done
3739 IFS=$as_save_IFS
3740
3741 fi
3742 fi
3743 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3744 if test -n "$ac_ct_OBJDUMP"; then
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
3746 $as_echo "$ac_ct_OBJDUMP" >&6; }
3747 else
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3749 $as_echo "no" >&6; }
3750 fi
3751
3752 if test "x$ac_ct_OBJDUMP" = x; then
3753 OBJDUMP="false"
3754 else
3755 case $cross_compiling:$ac_tool_warned in
3756 yes:)
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3759 ac_tool_warned=yes ;;
3760 esac
3761 OBJDUMP=$ac_ct_OBJDUMP
3762 fi
3763 else
3764 OBJDUMP="$ac_cv_prog_OBJDUMP"
3765 fi
3766
3767 ;;
3768 esac
3769
3770 test -z "$AS" && AS=as
3771
3772
3773
3774
3775
3776 test -z "$DLLTOOL" && DLLTOOL=dlltool
3777
3778
3779
3780
3781
3782 test -z "$OBJDUMP" && OBJDUMP=objdump
3783
3784
3785
3786
3787
3788
3789
3790
3791 ac_ext=c
3792 ac_cpp='$CPP $CPPFLAGS'
3793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3796 if test -n "$ac_tool_prefix"; then
3797 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3798 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3800 $as_echo_n "checking for $ac_word... " >&6; }
3801 if test "${ac_cv_prog_CC+set}" = set; then :
3802 $as_echo_n "(cached) " >&6
3803 else
3804 if test -n "$CC"; then
3805 ac_cv_prog_CC="$CC" # Let the user override the test.
3806 else
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 for as_dir in $PATH
3809 do
3810 IFS=$as_save_IFS
3811 test -z "$as_dir" && as_dir=.
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3814 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3816 break 2
3817 fi
3818 done
3819 done
3820 IFS=$as_save_IFS
3821
3822 fi
3823 fi
3824 CC=$ac_cv_prog_CC
3825 if test -n "$CC"; then
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3827 $as_echo "$CC" >&6; }
3828 else
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3830 $as_echo "no" >&6; }
3831 fi
3832
3833
3834 fi
3835 if test -z "$ac_cv_prog_CC"; then
3836 ac_ct_CC=$CC
3837 # Extract the first word of "gcc", so it can be a program name with args.
3838 set dummy gcc; ac_word=$2
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3840 $as_echo_n "checking for $ac_word... " >&6; }
3841 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3842 $as_echo_n "(cached) " >&6
3843 else
3844 if test -n "$ac_ct_CC"; then
3845 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3846 else
3847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3848 for as_dir in $PATH
3849 do
3850 IFS=$as_save_IFS
3851 test -z "$as_dir" && as_dir=.
3852 for ac_exec_ext in '' $ac_executable_extensions; do
3853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3854 ac_cv_prog_ac_ct_CC="gcc"
3855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3856 break 2
3857 fi
3858 done
3859 done
3860 IFS=$as_save_IFS
3861
3862 fi
3863 fi
3864 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3865 if test -n "$ac_ct_CC"; then
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3867 $as_echo "$ac_ct_CC" >&6; }
3868 else
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3870 $as_echo "no" >&6; }
3871 fi
3872
3873 if test "x$ac_ct_CC" = x; then
3874 CC=""
3875 else
3876 case $cross_compiling:$ac_tool_warned in
3877 yes:)
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3880 ac_tool_warned=yes ;;
3881 esac
3882 CC=$ac_ct_CC
3883 fi
3884 else
3885 CC="$ac_cv_prog_CC"
3886 fi
3887
3888 if test -z "$CC"; then
3889 if test -n "$ac_tool_prefix"; then
3890 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3891 set dummy ${ac_tool_prefix}cc; ac_word=$2
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3893 $as_echo_n "checking for $ac_word... " >&6; }
3894 if test "${ac_cv_prog_CC+set}" = set; then :
3895 $as_echo_n "(cached) " >&6
3896 else
3897 if test -n "$CC"; then
3898 ac_cv_prog_CC="$CC" # Let the user override the test.
3899 else
3900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 for as_dir in $PATH
3902 do
3903 IFS=$as_save_IFS
3904 test -z "$as_dir" && as_dir=.
3905 for ac_exec_ext in '' $ac_executable_extensions; do
3906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3907 ac_cv_prog_CC="${ac_tool_prefix}cc"
3908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3909 break 2
3910 fi
3911 done
3912 done
3913 IFS=$as_save_IFS
3914
3915 fi
3916 fi
3917 CC=$ac_cv_prog_CC
3918 if test -n "$CC"; then
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3920 $as_echo "$CC" >&6; }
3921 else
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3923 $as_echo "no" >&6; }
3924 fi
3925
3926
3927 fi
3928 fi
3929 if test -z "$CC"; then
3930 # Extract the first word of "cc", so it can be a program name with args.
3931 set dummy cc; ac_word=$2
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3933 $as_echo_n "checking for $ac_word... " >&6; }
3934 if test "${ac_cv_prog_CC+set}" = set; then :
3935 $as_echo_n "(cached) " >&6
3936 else
3937 if test -n "$CC"; then
3938 ac_cv_prog_CC="$CC" # Let the user override the test.
3939 else
3940 ac_prog_rejected=no
3941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942 for as_dir in $PATH
3943 do
3944 IFS=$as_save_IFS
3945 test -z "$as_dir" && as_dir=.
3946 for ac_exec_ext in '' $ac_executable_extensions; do
3947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3948 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3949 ac_prog_rejected=yes
3950 continue
3951 fi
3952 ac_cv_prog_CC="cc"
3953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3954 break 2
3955 fi
3956 done
3957 done
3958 IFS=$as_save_IFS
3959
3960 if test $ac_prog_rejected = yes; then
3961 # We found a bogon in the path, so make sure we never use it.
3962 set dummy $ac_cv_prog_CC
3963 shift
3964 if test $# != 0; then
3965 # We chose a different compiler from the bogus one.
3966 # However, it has the same basename, so the bogon will be chosen
3967 # first if we set CC to just the basename; use the full file name.
3968 shift
3969 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3970 fi
3971 fi
3972 fi
3973 fi
3974 CC=$ac_cv_prog_CC
3975 if test -n "$CC"; then
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3977 $as_echo "$CC" >&6; }
3978 else
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3980 $as_echo "no" >&6; }
3981 fi
3982
3983
3984 fi
3985 if test -z "$CC"; then
3986 if test -n "$ac_tool_prefix"; then
3987 for ac_prog in cl.exe
3988 do
3989 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3990 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3992 $as_echo_n "checking for $ac_word... " >&6; }
3993 if test "${ac_cv_prog_CC+set}" = set; then :
3994 $as_echo_n "(cached) " >&6
3995 else
3996 if test -n "$CC"; then
3997 ac_cv_prog_CC="$CC" # Let the user override the test.
3998 else
3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000 for as_dir in $PATH
4001 do
4002 IFS=$as_save_IFS
4003 test -z "$as_dir" && as_dir=.
4004 for ac_exec_ext in '' $ac_executable_extensions; do
4005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4006 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4008 break 2
4009 fi
4010 done
4011 done
4012 IFS=$as_save_IFS
4013
4014 fi
4015 fi
4016 CC=$ac_cv_prog_CC
4017 if test -n "$CC"; then
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4019 $as_echo "$CC" >&6; }
4020 else
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4022 $as_echo "no" >&6; }
4023 fi
4024
4025
4026 test -n "$CC" && break
4027 done
4028 fi
4029 if test -z "$CC"; then
4030 ac_ct_CC=$CC
4031 for ac_prog in cl.exe
4032 do
4033 # Extract the first word of "$ac_prog", so it can be a program name with args.
4034 set dummy $ac_prog; ac_word=$2
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4036 $as_echo_n "checking for $ac_word... " >&6; }
4037 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4038 $as_echo_n "(cached) " >&6
4039 else
4040 if test -n "$ac_ct_CC"; then
4041 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4042 else
4043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044 for as_dir in $PATH
4045 do
4046 IFS=$as_save_IFS
4047 test -z "$as_dir" && as_dir=.
4048 for ac_exec_ext in '' $ac_executable_extensions; do
4049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4050 ac_cv_prog_ac_ct_CC="$ac_prog"
4051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4052 break 2
4053 fi
4054 done
4055 done
4056 IFS=$as_save_IFS
4057
4058 fi
4059 fi
4060 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4061 if test -n "$ac_ct_CC"; then
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4063 $as_echo "$ac_ct_CC" >&6; }
4064 else
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4066 $as_echo "no" >&6; }
4067 fi
4068
4069
4070 test -n "$ac_ct_CC" && break
4071 done
4072
4073 if test "x$ac_ct_CC" = x; then
4074 CC=""
4075 else
4076 case $cross_compiling:$ac_tool_warned in
4077 yes:)
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4079 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4080 ac_tool_warned=yes ;;
4081 esac
4082 CC=$ac_ct_CC
4083 fi
4084 fi
4085
4086 fi
4087
4088
4089 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4091 as_fn_error $? "no acceptable C compiler found in \$PATH
4092 See \`config.log' for more details" "$LINENO" 5 ; }
4093
4094 # Provide some information about the compiler.
4095 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4096 set X $ac_compile
4097 ac_compiler=$2
4098 for ac_option in --version -v -V -qversion; do
4099 { { ac_try="$ac_compiler $ac_option >&5"
4100 case "(($ac_try" in
4101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4102 *) ac_try_echo=$ac_try;;
4103 esac
4104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4105 $as_echo "$ac_try_echo"; } >&5
4106 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4107 ac_status=$?
4108 if test -s conftest.err; then
4109 sed '10a\
4110 ... rest of stderr output deleted ...
4111 10q' conftest.err >conftest.er1
4112 cat conftest.er1 >&5
4113 fi
4114 rm -f conftest.er1 conftest.err
4115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4116 test $ac_status = 0; }
4117 done
4118
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4121
4122 int
4123 main ()
4124 {
4125
4126 ;
4127 return 0;
4128 }
4129 _ACEOF
4130 ac_clean_files_save=$ac_clean_files
4131 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4132 # Try to create an executable without -o first, disregard a.out.
4133 # It will help us diagnose broken compilers, and finding out an intuition
4134 # of exeext.
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4136 $as_echo_n "checking whether the C compiler works... " >&6; }
4137 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4138
4139 # The possible output files:
4140 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4141
4142 ac_rmfiles=
4143 for ac_file in $ac_files
4144 do
4145 case $ac_file in
4146 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4147 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4148 esac
4149 done
4150 rm -f $ac_rmfiles
4151
4152 if { { ac_try="$ac_link_default"
4153 case "(($ac_try" in
4154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155 *) ac_try_echo=$ac_try;;
4156 esac
4157 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4158 $as_echo "$ac_try_echo"; } >&5
4159 (eval "$ac_link_default") 2>&5
4160 ac_status=$?
4161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4162 test $ac_status = 0; }; then :
4163 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4164 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4165 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4166 # so that the user can short-circuit this test for compilers unknown to
4167 # Autoconf.
4168 for ac_file in $ac_files ''
4169 do
4170 test -f "$ac_file" || continue
4171 case $ac_file in
4172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4173 ;;
4174 [ab].out )
4175 # We found the default executable, but exeext='' is most
4176 # certainly right.
4177 break;;
4178 *.* )
4179 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4180 then :; else
4181 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4182 fi
4183 # We set ac_cv_exeext here because the later test for it is not
4184 # safe: cross compilers may not add the suffix if given an `-o'
4185 # argument, so we may need to know it at that point already.
4186 # Even if this section looks crufty: it has the advantage of
4187 # actually working.
4188 break;;
4189 * )
4190 break;;
4191 esac
4192 done
4193 test "$ac_cv_exeext" = no && ac_cv_exeext=
4194
4195 else
4196 ac_file=''
4197 fi
4198 if test -z "$ac_file"; then :
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4200 $as_echo "no" >&6; }
4201 $as_echo "$as_me: failed program was:" >&5
4202 sed 's/^/| /' conftest.$ac_ext >&5
4203
4204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4206 as_fn_error 77 "C compiler cannot create executables
4207 See \`config.log' for more details" "$LINENO" 5 ; }
4208 else
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4210 $as_echo "yes" >&6; }
4211 fi
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4213 $as_echo_n "checking for C compiler default output file name... " >&6; }
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4215 $as_echo "$ac_file" >&6; }
4216 ac_exeext=$ac_cv_exeext
4217
4218 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4219 ac_clean_files=$ac_clean_files_save
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4221 $as_echo_n "checking for suffix of executables... " >&6; }
4222 if { { ac_try="$ac_link"
4223 case "(($ac_try" in
4224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225 *) ac_try_echo=$ac_try;;
4226 esac
4227 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4228 $as_echo "$ac_try_echo"; } >&5
4229 (eval "$ac_link") 2>&5
4230 ac_status=$?
4231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4232 test $ac_status = 0; }; then :
4233 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4234 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4235 # work properly (i.e., refer to `conftest.exe'), while it won't with
4236 # `rm'.
4237 for ac_file in conftest.exe conftest conftest.*; do
4238 test -f "$ac_file" || continue
4239 case $ac_file in
4240 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4241 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4242 break;;
4243 * ) break;;
4244 esac
4245 done
4246 else
4247 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4249 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4250 See \`config.log' for more details" "$LINENO" 5 ; }
4251 fi
4252 rm -f conftest conftest$ac_cv_exeext
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4254 $as_echo "$ac_cv_exeext" >&6; }
4255
4256 rm -f conftest.$ac_ext
4257 EXEEXT=$ac_cv_exeext
4258 ac_exeext=$EXEEXT
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h. */
4261 #include <stdio.h>
4262 int
4263 main ()
4264 {
4265 FILE *f = fopen ("conftest.out", "w");
4266 return ferror (f) || fclose (f) != 0;
4267
4268 ;
4269 return 0;
4270 }
4271 _ACEOF
4272 ac_clean_files="$ac_clean_files conftest.out"
4273 # Check that the compiler produces executables we can run. If not, either
4274 # the compiler is broken, or we cross compile.
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4276 $as_echo_n "checking whether we are cross compiling... " >&6; }
4277 if test "$cross_compiling" != yes; then
4278 { { ac_try="$ac_link"
4279 case "(($ac_try" in
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4282 esac
4283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4284 $as_echo "$ac_try_echo"; } >&5
4285 (eval "$ac_link") 2>&5
4286 ac_status=$?
4287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4288 test $ac_status = 0; }
4289 if { ac_try='./conftest$ac_cv_exeext'
4290 { { case "(($ac_try" in
4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4293 esac
4294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4295 $as_echo "$ac_try_echo"; } >&5
4296 (eval "$ac_try") 2>&5
4297 ac_status=$?
4298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4299 test $ac_status = 0; }; }; then
4300 cross_compiling=no
4301 else
4302 if test "$cross_compiling" = maybe; then
4303 cross_compiling=yes
4304 else
4305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4307 as_fn_error $? "cannot run C compiled programs.
4308 If you meant to cross compile, use \`--host'.
4309 See \`config.log' for more details" "$LINENO" 5 ; }
4310 fi
4311 fi
4312 fi
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4314 $as_echo "$cross_compiling" >&6; }
4315
4316 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4317 ac_clean_files=$ac_clean_files_save
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4319 $as_echo_n "checking for suffix of object files... " >&6; }
4320 if test "${ac_cv_objext+set}" = set; then :
4321 $as_echo_n "(cached) " >&6
4322 else
4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h. */
4325
4326 int
4327 main ()
4328 {
4329
4330 ;
4331 return 0;
4332 }
4333 _ACEOF
4334 rm -f conftest.o conftest.obj
4335 if { { ac_try="$ac_compile"
4336 case "(($ac_try" in
4337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338 *) ac_try_echo=$ac_try;;
4339 esac
4340 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4341 $as_echo "$ac_try_echo"; } >&5
4342 (eval "$ac_compile") 2>&5
4343 ac_status=$?
4344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4345 test $ac_status = 0; }; then :
4346 for ac_file in conftest.o conftest.obj conftest.*; do
4347 test -f "$ac_file" || continue;
4348 case $ac_file in
4349 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4350 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4351 break;;
4352 esac
4353 done
4354 else
4355 $as_echo "$as_me: failed program was:" >&5
4356 sed 's/^/| /' conftest.$ac_ext >&5
4357
4358 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4360 as_fn_error $? "cannot compute suffix of object files: cannot compile
4361 See \`config.log' for more details" "$LINENO" 5 ; }
4362 fi
4363 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4364 fi
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4366 $as_echo "$ac_cv_objext" >&6; }
4367 OBJEXT=$ac_cv_objext
4368 ac_objext=$OBJEXT
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4370 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4371 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4372 $as_echo_n "(cached) " >&6
4373 else
4374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375 /* end confdefs.h. */
4376
4377 int
4378 main ()
4379 {
4380 #ifndef __GNUC__
4381 choke me
4382 #endif
4383
4384 ;
4385 return 0;
4386 }
4387 _ACEOF
4388 if ac_fn_c_try_compile "$LINENO"; then :
4389 ac_compiler_gnu=yes
4390 else
4391 ac_compiler_gnu=no
4392 fi
4393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4394 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4395
4396 fi
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4398 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4399 if test $ac_compiler_gnu = yes; then
4400 GCC=yes
4401 else
4402 GCC=
4403 fi
4404 ac_test_CFLAGS=${CFLAGS+set}
4405 ac_save_CFLAGS=$CFLAGS
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4407 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4408 if test "${ac_cv_prog_cc_g+set}" = set; then :
4409 $as_echo_n "(cached) " >&6
4410 else
4411 ac_save_c_werror_flag=$ac_c_werror_flag
4412 ac_c_werror_flag=yes
4413 ac_cv_prog_cc_g=no
4414 CFLAGS="-g"
4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416 /* end confdefs.h. */
4417
4418 int
4419 main ()
4420 {
4421
4422 ;
4423 return 0;
4424 }
4425 _ACEOF
4426 if ac_fn_c_try_compile "$LINENO"; then :
4427 ac_cv_prog_cc_g=yes
4428 else
4429 CFLAGS=""
4430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431 /* end confdefs.h. */
4432
4433 int
4434 main ()
4435 {
4436
4437 ;
4438 return 0;
4439 }
4440 _ACEOF
4441 if ac_fn_c_try_compile "$LINENO"; then :
4442
4443 else
4444 ac_c_werror_flag=$ac_save_c_werror_flag
4445 CFLAGS="-g"
4446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4447 /* end confdefs.h. */
4448
4449 int
4450 main ()
4451 {
4452
4453 ;
4454 return 0;
4455 }
4456 _ACEOF
4457 if ac_fn_c_try_compile "$LINENO"; then :
4458 ac_cv_prog_cc_g=yes
4459 fi
4460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4461 fi
4462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4463 fi
4464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4465 ac_c_werror_flag=$ac_save_c_werror_flag
4466 fi
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4468 $as_echo "$ac_cv_prog_cc_g" >&6; }
4469 if test "$ac_test_CFLAGS" = set; then
4470 CFLAGS=$ac_save_CFLAGS
4471 elif test $ac_cv_prog_cc_g = yes; then
4472 if test "$GCC" = yes; then
4473 CFLAGS="-g -O2"
4474 else
4475 CFLAGS="-g"
4476 fi
4477 else
4478 if test "$GCC" = yes; then
4479 CFLAGS="-O2"
4480 else
4481 CFLAGS=
4482 fi
4483 fi
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4485 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4486 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4487 $as_echo_n "(cached) " >&6
4488 else
4489 ac_cv_prog_cc_c89=no
4490 ac_save_CC=$CC
4491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492 /* end confdefs.h. */
4493 #include <stdarg.h>
4494 #include <stdio.h>
4495 #include <sys/types.h>
4496 #include <sys/stat.h>
4497 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4498 struct buf { int x; };
4499 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4500 static char *e (p, i)
4501 char **p;
4502 int i;
4503 {
4504 return p[i];
4505 }
4506 static char *f (char * (*g) (char **, int), char **p, ...)
4507 {
4508 char *s;
4509 va_list v;
4510 va_start (v,p);
4511 s = g (p, va_arg (v,int));
4512 va_end (v);
4513 return s;
4514 }
4515
4516 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4517 function prototypes and stuff, but not '\xHH' hex character constants.
4518 These don't provoke an error unfortunately, instead are silently treated
4519 as 'x'. The following induces an error, until -std is added to get
4520 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4521 array size at least. It's necessary to write '\x00'==0 to get something
4522 that's true only with -std. */
4523 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4524
4525 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4526 inside strings and character constants. */
4527 #define FOO(x) 'x'
4528 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4529
4530 int test (int i, double x);
4531 struct s1 {int (*f) (int a);};
4532 struct s2 {int (*f) (double a);};
4533 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4534 int argc;
4535 char **argv;
4536 int
4537 main ()
4538 {
4539 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4540 ;
4541 return 0;
4542 }
4543 _ACEOF
4544 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4545 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4546 do
4547 CC="$ac_save_CC $ac_arg"
4548 if ac_fn_c_try_compile "$LINENO"; then :
4549 ac_cv_prog_cc_c89=$ac_arg
4550 fi
4551 rm -f core conftest.err conftest.$ac_objext
4552 test "x$ac_cv_prog_cc_c89" != "xno" && break
4553 done
4554 rm -f conftest.$ac_ext
4555 CC=$ac_save_CC
4556
4557 fi
4558 # AC_CACHE_VAL
4559 case "x$ac_cv_prog_cc_c89" in
4560 x)
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4562 $as_echo "none needed" >&6; } ;;
4563 xno)
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4565 $as_echo "unsupported" >&6; } ;;
4566 *)
4567 CC="$CC $ac_cv_prog_cc_c89"
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4569 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4570 esac
4571 if test "x$ac_cv_prog_cc_c89" != xno; then :
4572
4573 fi
4574
4575 ac_ext=c
4576 ac_cpp='$CPP $CPPFLAGS'
4577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4580 DEPDIR="${am__leading_dot}deps"
4581
4582 ac_config_commands="$ac_config_commands depfiles"
4583
4584
4585 am_make=${MAKE-make}
4586 cat > confinc << 'END'
4587 am__doit:
4588 @echo this is the am__doit target
4589 .PHONY: am__doit
4590 END
4591 # If we don't find an include directive, just comment out the code.
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4593 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4594 am__include="#"
4595 am__quote=
4596 _am_result=none
4597 # First try GNU make style include.
4598 echo "include confinc" > confmf
4599 # Ignore all kinds of additional output from `make'.
4600 case `$am_make -s -f confmf 2> /dev/null` in #(
4601 *the\ am__doit\ target*)
4602 am__include=include
4603 am__quote=
4604 _am_result=GNU
4605 ;;
4606 esac
4607 # Now try BSD make style include.
4608 if test "$am__include" = "#"; then
4609 echo '.include "confinc"' > confmf
4610 case `$am_make -s -f confmf 2> /dev/null` in #(
4611 *the\ am__doit\ target*)
4612 am__include=.include
4613 am__quote="\""
4614 _am_result=BSD
4615 ;;
4616 esac
4617 fi
4618
4619
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4621 $as_echo "$_am_result" >&6; }
4622 rm -f confinc confmf
4623
4624 # Check whether --enable-dependency-tracking was given.
4625 if test "${enable_dependency_tracking+set}" = set; then :
4626 enableval=$enable_dependency_tracking;
4627 fi
4628
4629 if test "x$enable_dependency_tracking" != xno; then
4630 am_depcomp="$ac_aux_dir/depcomp"
4631 AMDEPBACKSLASH='\'
4632 fi
4633 if test "x$enable_dependency_tracking" != xno; then
4634 AMDEP_TRUE=
4635 AMDEP_FALSE='#'
4636 else
4637 AMDEP_TRUE='#'
4638 AMDEP_FALSE=
4639 fi
4640
4641
4642
4643 depcc="$CC" am_compiler_list=
4644
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4646 $as_echo_n "checking dependency style of $depcc... " >&6; }
4647 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4648 $as_echo_n "(cached) " >&6
4649 else
4650 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4651 # We make a subdir and do the tests there. Otherwise we can end up
4652 # making bogus files that we don't know about and never remove. For
4653 # instance it was reported that on HP-UX the gcc test will end up
4654 # making a dummy file named `D' -- because `-MD' means `put the output
4655 # in D'.
4656 mkdir conftest.dir
4657 # Copy depcomp to subdir because otherwise we won't find it if we're
4658 # using a relative directory.
4659 cp "$am_depcomp" conftest.dir
4660 cd conftest.dir
4661 # We will build objects and dependencies in a subdirectory because
4662 # it helps to detect inapplicable dependency modes. For instance
4663 # both Tru64's cc and ICC support -MD to output dependencies as a
4664 # side effect of compilation, but ICC will put the dependencies in
4665 # the current directory while Tru64 will put them in the object
4666 # directory.
4667 mkdir sub
4668
4669 am_cv_CC_dependencies_compiler_type=none
4670 if test "$am_compiler_list" = ""; then
4671 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4672 fi
4673 am__universal=false
4674 case " $depcc " in #(
4675 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4676 esac
4677
4678 for depmode in $am_compiler_list; do
4679 # Setup a source with many dependencies, because some compilers
4680 # like to wrap large dependency lists on column 80 (with \), and
4681 # we should not choose a depcomp mode which is confused by this.
4682 #
4683 # We need to recreate these files for each test, as the compiler may
4684 # overwrite some of them when testing with obscure command lines.
4685 # This happens at least with the AIX C compiler.
4686 : > sub/conftest.c
4687 for i in 1 2 3 4 5 6; do
4688 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4689 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4690 # Solaris 8's {/usr,}/bin/sh.
4691 touch sub/conftst$i.h
4692 done
4693 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4694
4695 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4696 # mode. It turns out that the SunPro C++ compiler does not properly
4697 # handle `-M -o', and we need to detect this. Also, some Intel
4698 # versions had trouble with output in subdirs
4699 am__obj=sub/conftest.${OBJEXT-o}
4700 am__minus_obj="-o $am__obj"
4701 case $depmode in
4702 gcc)
4703 # This depmode causes a compiler race in universal mode.
4704 test "$am__universal" = false || continue
4705 ;;
4706 nosideeffect)
4707 # after this tag, mechanisms are not by side-effect, so they'll
4708 # only be used when explicitly requested
4709 if test "x$enable_dependency_tracking" = xyes; then
4710 continue
4711 else
4712 break
4713 fi
4714 ;;
4715 msvisualcpp | msvcmsys)
4716 # This compiler won't grok `-c -o', but also, the minuso test has
4717 # not run yet. These depmodes are late enough in the game, and
4718 # so weak that their functioning should not be impacted.
4719 am__obj=conftest.${OBJEXT-o}
4720 am__minus_obj=
4721 ;;
4722 none) break ;;
4723 esac
4724 if depmode=$depmode \
4725 source=sub/conftest.c object=$am__obj \
4726 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4727 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4728 >/dev/null 2>conftest.err &&
4729 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4730 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4731 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4732 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4733 # icc doesn't choke on unknown options, it will just issue warnings
4734 # or remarks (even with -Werror). So we grep stderr for any message
4735 # that says an option was ignored or not supported.
4736 # When given -MP, icc 7.0 and 7.1 complain thusly:
4737 # icc: Command line warning: ignoring option '-M'; no argument required
4738 # The diagnosis changed in icc 8.0:
4739 # icc: Command line remark: option '-MP' not supported
4740 if (grep 'ignoring option' conftest.err ||
4741 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4742 am_cv_CC_dependencies_compiler_type=$depmode
4743 break
4744 fi
4745 fi
4746 done
4747
4748 cd ..
4749 rm -rf conftest.dir
4750 else
4751 am_cv_CC_dependencies_compiler_type=none
4752 fi
4753
4754 fi
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4756 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4757 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4758
4759 if
4760 test "x$enable_dependency_tracking" != xno \
4761 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4762 am__fastdepCC_TRUE=
4763 am__fastdepCC_FALSE='#'
4764 else
4765 am__fastdepCC_TRUE='#'
4766 am__fastdepCC_FALSE=
4767 fi
4768
4769
4770 ac_ext=cpp
4771 ac_cpp='$CXXCPP $CPPFLAGS'
4772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4775 if test -z "$CXX"; then
4776 if test -n "$CCC"; then
4777 CXX=$CCC
4778 else
4779 if test -n "$ac_tool_prefix"; then
4780 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4781 do
4782 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4783 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4785 $as_echo_n "checking for $ac_word... " >&6; }
4786 if test "${ac_cv_prog_CXX+set}" = set; then :
4787 $as_echo_n "(cached) " >&6
4788 else
4789 if test -n "$CXX"; then
4790 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4791 else
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 for as_dir in $PATH
4794 do
4795 IFS=$as_save_IFS
4796 test -z "$as_dir" && as_dir=.
4797 for ac_exec_ext in '' $ac_executable_extensions; do
4798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4799 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4801 break 2
4802 fi
4803 done
4804 done
4805 IFS=$as_save_IFS
4806
4807 fi
4808 fi
4809 CXX=$ac_cv_prog_CXX
4810 if test -n "$CXX"; then
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4812 $as_echo "$CXX" >&6; }
4813 else
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4815 $as_echo "no" >&6; }
4816 fi
4817
4818
4819 test -n "$CXX" && break
4820 done
4821 fi
4822 if test -z "$CXX"; then
4823 ac_ct_CXX=$CXX
4824 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4825 do
4826 # Extract the first word of "$ac_prog", so it can be a program name with args.
4827 set dummy $ac_prog; ac_word=$2
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4829 $as_echo_n "checking for $ac_word... " >&6; }
4830 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4831 $as_echo_n "(cached) " >&6
4832 else
4833 if test -n "$ac_ct_CXX"; then
4834 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4835 else
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 for as_dir in $PATH
4838 do
4839 IFS=$as_save_IFS
4840 test -z "$as_dir" && as_dir=.
4841 for ac_exec_ext in '' $ac_executable_extensions; do
4842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4843 ac_cv_prog_ac_ct_CXX="$ac_prog"
4844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4845 break 2
4846 fi
4847 done
4848 done
4849 IFS=$as_save_IFS
4850
4851 fi
4852 fi
4853 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4854 if test -n "$ac_ct_CXX"; then
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4856 $as_echo "$ac_ct_CXX" >&6; }
4857 else
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859 $as_echo "no" >&6; }
4860 fi
4861
4862
4863 test -n "$ac_ct_CXX" && break
4864 done
4865
4866 if test "x$ac_ct_CXX" = x; then
4867 CXX="g++"
4868 else
4869 case $cross_compiling:$ac_tool_warned in
4870 yes:)
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4873 ac_tool_warned=yes ;;
4874 esac
4875 CXX=$ac_ct_CXX
4876 fi
4877 fi
4878
4879 fi
4880 fi
4881 # Provide some information about the compiler.
4882 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4883 set X $ac_compile
4884 ac_compiler=$2
4885 for ac_option in --version -v -V -qversion; do
4886 { { ac_try="$ac_compiler $ac_option >&5"
4887 case "(($ac_try" in
4888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4889 *) ac_try_echo=$ac_try;;
4890 esac
4891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4892 $as_echo "$ac_try_echo"; } >&5
4893 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4894 ac_status=$?
4895 if test -s conftest.err; then
4896 sed '10a\
4897 ... rest of stderr output deleted ...
4898 10q' conftest.err >conftest.er1
4899 cat conftest.er1 >&5
4900 fi
4901 rm -f conftest.er1 conftest.err
4902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4903 test $ac_status = 0; }
4904 done
4905
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4907 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4908 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4909 $as_echo_n "(cached) " >&6
4910 else
4911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912 /* end confdefs.h. */
4913
4914 int
4915 main ()
4916 {
4917 #ifndef __GNUC__
4918 choke me
4919 #endif
4920
4921 ;
4922 return 0;
4923 }
4924 _ACEOF
4925 if ac_fn_cxx_try_compile "$LINENO"; then :
4926 ac_compiler_gnu=yes
4927 else
4928 ac_compiler_gnu=no
4929 fi
4930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4931 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4932
4933 fi
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4935 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4936 if test $ac_compiler_gnu = yes; then
4937 GXX=yes
4938 else
4939 GXX=
4940 fi
4941 ac_test_CXXFLAGS=${CXXFLAGS+set}
4942 ac_save_CXXFLAGS=$CXXFLAGS
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4944 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4945 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4946 $as_echo_n "(cached) " >&6
4947 else
4948 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4949 ac_cxx_werror_flag=yes
4950 ac_cv_prog_cxx_g=no
4951 CXXFLAGS="-g"
4952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953 /* end confdefs.h. */
4954
4955 int
4956 main ()
4957 {
4958
4959 ;
4960 return 0;
4961 }
4962 _ACEOF
4963 if ac_fn_cxx_try_compile "$LINENO"; then :
4964 ac_cv_prog_cxx_g=yes
4965 else
4966 CXXFLAGS=""
4967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4968 /* end confdefs.h. */
4969
4970 int
4971 main ()
4972 {
4973
4974 ;
4975 return 0;
4976 }
4977 _ACEOF
4978 if ac_fn_cxx_try_compile "$LINENO"; then :
4979
4980 else
4981 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4982 CXXFLAGS="-g"
4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4984 /* end confdefs.h. */
4985
4986 int
4987 main ()
4988 {
4989
4990 ;
4991 return 0;
4992 }
4993 _ACEOF
4994 if ac_fn_cxx_try_compile "$LINENO"; then :
4995 ac_cv_prog_cxx_g=yes
4996 fi
4997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4998 fi
4999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5000 fi
5001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5002 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5003 fi
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5005 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5006 if test "$ac_test_CXXFLAGS" = set; then
5007 CXXFLAGS=$ac_save_CXXFLAGS
5008 elif test $ac_cv_prog_cxx_g = yes; then
5009 if test "$GXX" = yes; then
5010 CXXFLAGS="-g -O2"
5011 else
5012 CXXFLAGS="-g"
5013 fi
5014 else
5015 if test "$GXX" = yes; then
5016 CXXFLAGS="-O2"
5017 else
5018 CXXFLAGS=
5019 fi
5020 fi
5021 ac_ext=c
5022 ac_cpp='$CPP $CPPFLAGS'
5023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5026
5027 depcc="$CXX" am_compiler_list=
5028
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5030 $as_echo_n "checking dependency style of $depcc... " >&6; }
5031 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5032 $as_echo_n "(cached) " >&6
5033 else
5034 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5035 # We make a subdir and do the tests there. Otherwise we can end up
5036 # making bogus files that we don't know about and never remove. For
5037 # instance it was reported that on HP-UX the gcc test will end up
5038 # making a dummy file named `D' -- because `-MD' means `put the output
5039 # in D'.
5040 mkdir conftest.dir
5041 # Copy depcomp to subdir because otherwise we won't find it if we're
5042 # using a relative directory.
5043 cp "$am_depcomp" conftest.dir
5044 cd conftest.dir
5045 # We will build objects and dependencies in a subdirectory because
5046 # it helps to detect inapplicable dependency modes. For instance
5047 # both Tru64's cc and ICC support -MD to output dependencies as a
5048 # side effect of compilation, but ICC will put the dependencies in
5049 # the current directory while Tru64 will put them in the object
5050 # directory.
5051 mkdir sub
5052
5053 am_cv_CXX_dependencies_compiler_type=none
5054 if test "$am_compiler_list" = ""; then
5055 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5056 fi
5057 am__universal=false
5058 case " $depcc " in #(
5059 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5060 esac
5061
5062 for depmode in $am_compiler_list; do
5063 # Setup a source with many dependencies, because some compilers
5064 # like to wrap large dependency lists on column 80 (with \), and
5065 # we should not choose a depcomp mode which is confused by this.
5066 #
5067 # We need to recreate these files for each test, as the compiler may
5068 # overwrite some of them when testing with obscure command lines.
5069 # This happens at least with the AIX C compiler.
5070 : > sub/conftest.c
5071 for i in 1 2 3 4 5 6; do
5072 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5073 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5074 # Solaris 8's {/usr,}/bin/sh.
5075 touch sub/conftst$i.h
5076 done
5077 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5078
5079 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5080 # mode. It turns out that the SunPro C++ compiler does not properly
5081 # handle `-M -o', and we need to detect this. Also, some Intel
5082 # versions had trouble with output in subdirs
5083 am__obj=sub/conftest.${OBJEXT-o}
5084 am__minus_obj="-o $am__obj"
5085 case $depmode in
5086 gcc)
5087 # This depmode causes a compiler race in universal mode.
5088 test "$am__universal" = false || continue
5089 ;;
5090 nosideeffect)
5091 # after this tag, mechanisms are not by side-effect, so they'll
5092 # only be used when explicitly requested
5093 if test "x$enable_dependency_tracking" = xyes; then
5094 continue
5095 else
5096 break
5097 fi
5098 ;;
5099 msvisualcpp | msvcmsys)
5100 # This compiler won't grok `-c -o', but also, the minuso test has
5101 # not run yet. These depmodes are late enough in the game, and
5102 # so weak that their functioning should not be impacted.
5103 am__obj=conftest.${OBJEXT-o}
5104 am__minus_obj=
5105 ;;
5106 none) break ;;
5107 esac
5108 if depmode=$depmode \
5109 source=sub/conftest.c object=$am__obj \
5110 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5111 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5112 >/dev/null 2>conftest.err &&
5113 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5114 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5115 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5116 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5117 # icc doesn't choke on unknown options, it will just issue warnings
5118 # or remarks (even with -Werror). So we grep stderr for any message
5119 # that says an option was ignored or not supported.
5120 # When given -MP, icc 7.0 and 7.1 complain thusly:
5121 # icc: Command line warning: ignoring option '-M'; no argument required
5122 # The diagnosis changed in icc 8.0:
5123 # icc: Command line remark: option '-MP' not supported
5124 if (grep 'ignoring option' conftest.err ||
5125 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5126 am_cv_CXX_dependencies_compiler_type=$depmode
5127 break
5128 fi
5129 fi
5130 done
5131
5132 cd ..
5133 rm -rf conftest.dir
5134 else
5135 am_cv_CXX_dependencies_compiler_type=none
5136 fi
5137
5138 fi
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5140 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5141 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5142
5143 if
5144 test "x$enable_dependency_tracking" != xno \
5145 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5146 am__fastdepCXX_TRUE=
5147 am__fastdepCXX_FALSE='#'
5148 else
5149 am__fastdepCXX_TRUE='#'
5150 am__fastdepCXX_FALSE=
5151 fi
5152
5153
5154 if test -n "$ac_tool_prefix"; then
5155 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5156 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5158 $as_echo_n "checking for $ac_word... " >&6; }
5159 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5160 $as_echo_n "(cached) " >&6
5161 else
5162 if test -n "$RANLIB"; then
5163 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5164 else
5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 for as_dir in $PATH
5167 do
5168 IFS=$as_save_IFS
5169 test -z "$as_dir" && as_dir=.
5170 for ac_exec_ext in '' $ac_executable_extensions; do
5171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5172 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5174 break 2
5175 fi
5176 done
5177 done
5178 IFS=$as_save_IFS
5179
5180 fi
5181 fi
5182 RANLIB=$ac_cv_prog_RANLIB
5183 if test -n "$RANLIB"; then
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5185 $as_echo "$RANLIB" >&6; }
5186 else
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5188 $as_echo "no" >&6; }
5189 fi
5190
5191
5192 fi
5193 if test -z "$ac_cv_prog_RANLIB"; then
5194 ac_ct_RANLIB=$RANLIB
5195 # Extract the first word of "ranlib", so it can be a program name with args.
5196 set dummy ranlib; ac_word=$2
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5198 $as_echo_n "checking for $ac_word... " >&6; }
5199 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5200 $as_echo_n "(cached) " >&6
5201 else
5202 if test -n "$ac_ct_RANLIB"; then
5203 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5204 else
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 for as_dir in $PATH
5207 do
5208 IFS=$as_save_IFS
5209 test -z "$as_dir" && as_dir=.
5210 for ac_exec_ext in '' $ac_executable_extensions; do
5211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5212 ac_cv_prog_ac_ct_RANLIB="ranlib"
5213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5214 break 2
5215 fi
5216 done
5217 done
5218 IFS=$as_save_IFS
5219
5220 fi
5221 fi
5222 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5223 if test -n "$ac_ct_RANLIB"; then
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5225 $as_echo "$ac_ct_RANLIB" >&6; }
5226 else
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228 $as_echo "no" >&6; }
5229 fi
5230
5231 if test "x$ac_ct_RANLIB" = x; then
5232 RANLIB=":"
5233 else
5234 case $cross_compiling:$ac_tool_warned in
5235 yes:)
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5238 ac_tool_warned=yes ;;
5239 esac
5240 RANLIB=$ac_ct_RANLIB
5241 fi
5242 else
5243 RANLIB="$ac_cv_prog_RANLIB"
5244 fi
5245
5246
5247 ac_ext=c
5248 ac_cpp='$CPP $CPPFLAGS'
5249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5253 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5254 # On Suns, sometimes $CPP names a directory.
5255 if test -n "$CPP" && test -d "$CPP"; then
5256 CPP=
5257 fi
5258 if test -z "$CPP"; then
5259 if test "${ac_cv_prog_CPP+set}" = set; then :
5260 $as_echo_n "(cached) " >&6
5261 else
5262 # Double quotes because CPP needs to be expanded
5263 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5264 do
5265 ac_preproc_ok=false
5266 for ac_c_preproc_warn_flag in '' yes
5267 do
5268 # Use a header file that comes with gcc, so configuring glibc
5269 # with a fresh cross-compiler works.
5270 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5271 # <limits.h> exists even on freestanding compilers.
5272 # On the NeXT, cc -E runs the code through the compiler's parser,
5273 # not just through cpp. "Syntax error" is here to catch this case.
5274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5275 /* end confdefs.h. */
5276 #ifdef __STDC__
5277 # include <limits.h>
5278 #else
5279 # include <assert.h>
5280 #endif
5281 Syntax error
5282 _ACEOF
5283 if ac_fn_c_try_cpp "$LINENO"; then :
5284
5285 else
5286 # Broken: fails on valid input.
5287 continue
5288 fi
5289 rm -f conftest.err conftest.i conftest.$ac_ext
5290
5291 # OK, works on sane cases. Now check whether nonexistent headers
5292 # can be detected and how.
5293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5294 /* end confdefs.h. */
5295 #include <ac_nonexistent.h>
5296 _ACEOF
5297 if ac_fn_c_try_cpp "$LINENO"; then :
5298 # Broken: success on invalid input.
5299 continue
5300 else
5301 # Passes both tests.
5302 ac_preproc_ok=:
5303 break
5304 fi
5305 rm -f conftest.err conftest.i conftest.$ac_ext
5306
5307 done
5308 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5309 rm -f conftest.i conftest.err conftest.$ac_ext
5310 if $ac_preproc_ok; then :
5311 break
5312 fi
5313
5314 done
5315 ac_cv_prog_CPP=$CPP
5316
5317 fi
5318 CPP=$ac_cv_prog_CPP
5319 else
5320 ac_cv_prog_CPP=$CPP
5321 fi
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5323 $as_echo "$CPP" >&6; }
5324 ac_preproc_ok=false
5325 for ac_c_preproc_warn_flag in '' yes
5326 do
5327 # Use a header file that comes with gcc, so configuring glibc
5328 # with a fresh cross-compiler works.
5329 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5330 # <limits.h> exists even on freestanding compilers.
5331 # On the NeXT, cc -E runs the code through the compiler's parser,
5332 # not just through cpp. "Syntax error" is here to catch this case.
5333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334 /* end confdefs.h. */
5335 #ifdef __STDC__
5336 # include <limits.h>
5337 #else
5338 # include <assert.h>
5339 #endif
5340 Syntax error
5341 _ACEOF
5342 if ac_fn_c_try_cpp "$LINENO"; then :
5343
5344 else
5345 # Broken: fails on valid input.
5346 continue
5347 fi
5348 rm -f conftest.err conftest.i conftest.$ac_ext
5349
5350 # OK, works on sane cases. Now check whether nonexistent headers
5351 # can be detected and how.
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h. */
5354 #include <ac_nonexistent.h>
5355 _ACEOF
5356 if ac_fn_c_try_cpp "$LINENO"; then :
5357 # Broken: success on invalid input.
5358 continue
5359 else
5360 # Passes both tests.
5361 ac_preproc_ok=:
5362 break
5363 fi
5364 rm -f conftest.err conftest.i conftest.$ac_ext
5365
5366 done
5367 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5368 rm -f conftest.i conftest.err conftest.$ac_ext
5369 if $ac_preproc_ok; then :
5370
5371 else
5372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5374 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5375 See \`config.log' for more details" "$LINENO" 5 ; }
5376 fi
5377
5378 ac_ext=c
5379 ac_cpp='$CPP $CPPFLAGS'
5380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5383
5384
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5386 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5387 if test "${ac_cv_path_GREP+set}" = set; then :
5388 $as_echo_n "(cached) " >&6
5389 else
5390 if test -z "$GREP"; then
5391 ac_path_GREP_found=false
5392 # Loop through the user's path and test for each of PROGNAME-LIST
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5395 do
5396 IFS=$as_save_IFS
5397 test -z "$as_dir" && as_dir=.
5398 for ac_prog in grep ggrep; do
5399 for ac_exec_ext in '' $ac_executable_extensions; do
5400 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5401 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5402 # Check for GNU ac_path_GREP and select it if it is found.
5403 # Check for GNU $ac_path_GREP
5404 case `"$ac_path_GREP" --version 2>&1` in
5405 *GNU*)
5406 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5407 *)
5408 ac_count=0
5409 $as_echo_n 0123456789 >"conftest.in"
5410 while :
5411 do
5412 cat "conftest.in" "conftest.in" >"conftest.tmp"
5413 mv "conftest.tmp" "conftest.in"
5414 cp "conftest.in" "conftest.nl"
5415 $as_echo 'GREP' >> "conftest.nl"
5416 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5417 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5418 as_fn_arith $ac_count + 1 && ac_count=$as_val
5419 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5420 # Best one so far, save it but keep looking for a better one
5421 ac_cv_path_GREP="$ac_path_GREP"
5422 ac_path_GREP_max=$ac_count
5423 fi
5424 # 10*(2^10) chars as input seems more than enough
5425 test $ac_count -gt 10 && break
5426 done
5427 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5428 esac
5429
5430 $ac_path_GREP_found && break 3
5431 done
5432 done
5433 done
5434 IFS=$as_save_IFS
5435 if test -z "$ac_cv_path_GREP"; then
5436 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5437 fi
5438 else
5439 ac_cv_path_GREP=$GREP
5440 fi
5441
5442 fi
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5444 $as_echo "$ac_cv_path_GREP" >&6; }
5445 GREP="$ac_cv_path_GREP"
5446
5447
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5449 $as_echo_n "checking for egrep... " >&6; }
5450 if test "${ac_cv_path_EGREP+set}" = set; then :
5451 $as_echo_n "(cached) " >&6
5452 else
5453 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5454 then ac_cv_path_EGREP="$GREP -E"
5455 else
5456 if test -z "$EGREP"; then
5457 ac_path_EGREP_found=false
5458 # Loop through the user's path and test for each of PROGNAME-LIST
5459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5461 do
5462 IFS=$as_save_IFS
5463 test -z "$as_dir" && as_dir=.
5464 for ac_prog in egrep; do
5465 for ac_exec_ext in '' $ac_executable_extensions; do
5466 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5467 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5468 # Check for GNU ac_path_EGREP and select it if it is found.
5469 # Check for GNU $ac_path_EGREP
5470 case `"$ac_path_EGREP" --version 2>&1` in
5471 *GNU*)
5472 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5473 *)
5474 ac_count=0
5475 $as_echo_n 0123456789 >"conftest.in"
5476 while :
5477 do
5478 cat "conftest.in" "conftest.in" >"conftest.tmp"
5479 mv "conftest.tmp" "conftest.in"
5480 cp "conftest.in" "conftest.nl"
5481 $as_echo 'EGREP' >> "conftest.nl"
5482 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5483 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5484 as_fn_arith $ac_count + 1 && ac_count=$as_val
5485 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5486 # Best one so far, save it but keep looking for a better one
5487 ac_cv_path_EGREP="$ac_path_EGREP"
5488 ac_path_EGREP_max=$ac_count
5489 fi
5490 # 10*(2^10) chars as input seems more than enough
5491 test $ac_count -gt 10 && break
5492 done
5493 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5494 esac
5495
5496 $ac_path_EGREP_found && break 3
5497 done
5498 done
5499 done
5500 IFS=$as_save_IFS
5501 if test -z "$ac_cv_path_EGREP"; then
5502 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5503 fi
5504 else
5505 ac_cv_path_EGREP=$EGREP
5506 fi
5507
5508 fi
5509 fi
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5511 $as_echo "$ac_cv_path_EGREP" >&6; }
5512 EGREP="$ac_cv_path_EGREP"
5513
5514
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5516 $as_echo_n "checking for ANSI C header files... " >&6; }
5517 if test "${ac_cv_header_stdc+set}" = set; then :
5518 $as_echo_n "(cached) " >&6
5519 else
5520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521 /* end confdefs.h. */
5522 #include <stdlib.h>
5523 #include <stdarg.h>
5524 #include <string.h>
5525 #include <float.h>
5526
5527 int
5528 main ()
5529 {
5530
5531 ;
5532 return 0;
5533 }
5534 _ACEOF
5535 if ac_fn_c_try_compile "$LINENO"; then :
5536 ac_cv_header_stdc=yes
5537 else
5538 ac_cv_header_stdc=no
5539 fi
5540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5541
5542 if test $ac_cv_header_stdc = yes; then
5543 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5545 /* end confdefs.h. */
5546 #include <string.h>
5547
5548 _ACEOF
5549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5550 $EGREP "memchr" >/dev/null 2>&1; then :
5551
5552 else
5553 ac_cv_header_stdc=no
5554 fi
5555 rm -f conftest*
5556
5557 fi
5558
5559 if test $ac_cv_header_stdc = yes; then
5560 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5562 /* end confdefs.h. */
5563 #include <stdlib.h>
5564
5565 _ACEOF
5566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5567 $EGREP "free" >/dev/null 2>&1; then :
5568
5569 else
5570 ac_cv_header_stdc=no
5571 fi
5572 rm -f conftest*
5573
5574 fi
5575
5576 if test $ac_cv_header_stdc = yes; then
5577 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5578 if test "$cross_compiling" = yes; then :
5579 :
5580 else
5581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5582 /* end confdefs.h. */
5583 #include <ctype.h>
5584 #include <stdlib.h>
5585 #if ((' ' & 0x0FF) == 0x020)
5586 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5587 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5588 #else
5589 # define ISLOWER(c) \
5590 (('a' <= (c) && (c) <= 'i') \
5591 || ('j' <= (c) && (c) <= 'r') \
5592 || ('s' <= (c) && (c) <= 'z'))
5593 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5594 #endif
5595
5596 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5597 int
5598 main ()
5599 {
5600 int i;
5601 for (i = 0; i < 256; i++)
5602 if (XOR (islower (i), ISLOWER (i))
5603 || toupper (i) != TOUPPER (i))
5604 return 2;
5605 return 0;
5606 }
5607 _ACEOF
5608 if ac_fn_c_try_run "$LINENO"; then :
5609
5610 else
5611 ac_cv_header_stdc=no
5612 fi
5613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5614 conftest.$ac_objext conftest.beam conftest.$ac_ext
5615 fi
5616
5617 fi
5618 fi
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5620 $as_echo "$ac_cv_header_stdc" >&6; }
5621 if test $ac_cv_header_stdc = yes; then
5622
5623 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5624
5625 fi
5626
5627 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5628 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5629 inttypes.h stdint.h unistd.h
5630 do :
5631 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5632 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5633 "
5634 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5635 cat >>confdefs.h <<_ACEOF
5636 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5637 _ACEOF
5638
5639 fi
5640
5641 done
5642
5643
5644
5645 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5646 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5647 MINIX=yes
5648 else
5649 MINIX=
5650 fi
5651
5652
5653 if test "$MINIX" = yes; then
5654
5655 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5656
5657
5658 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5659
5660
5661 $as_echo "#define _MINIX 1" >>confdefs.h
5662
5663 fi
5664
5665
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5667 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5668 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5669 $as_echo_n "(cached) " >&6
5670 else
5671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672 /* end confdefs.h. */
5673
5674 # define __EXTENSIONS__ 1
5675 $ac_includes_default
5676 int
5677 main ()
5678 {
5679
5680 ;
5681 return 0;
5682 }
5683 _ACEOF
5684 if ac_fn_c_try_compile "$LINENO"; then :
5685 ac_cv_safe_to_define___extensions__=yes
5686 else
5687 ac_cv_safe_to_define___extensions__=no
5688 fi
5689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5690 fi
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5692 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5693 test $ac_cv_safe_to_define___extensions__ = yes &&
5694 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5695
5696 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5697
5698 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5699
5700 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5701
5702 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714 if test "X$prefix" = "XNONE"; then
5715 acl_final_prefix="$ac_default_prefix"
5716 else
5717 acl_final_prefix="$prefix"
5718 fi
5719 if test "X$exec_prefix" = "XNONE"; then
5720 acl_final_exec_prefix='${prefix}'
5721 else
5722 acl_final_exec_prefix="$exec_prefix"
5723 fi
5724 acl_save_prefix="$prefix"
5725 prefix="$acl_final_prefix"
5726 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5727 prefix="$acl_save_prefix"
5728
5729
5730 # Check whether --with-gnu-ld was given.
5731 if test "${with_gnu_ld+set}" = set; then :
5732 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5733 else
5734 with_gnu_ld=no
5735 fi
5736
5737 # Prepare PATH_SEPARATOR.
5738 # The user is always right.
5739 if test "${PATH_SEPARATOR+set}" != set; then
5740 echo "#! /bin/sh" >conf$$.sh
5741 echo "exit 0" >>conf$$.sh
5742 chmod +x conf$$.sh
5743 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5744 PATH_SEPARATOR=';'
5745 else
5746 PATH_SEPARATOR=:
5747 fi
5748 rm -f conf$$.sh
5749 fi
5750 ac_prog=ld
5751 if test "$GCC" = yes; then
5752 # Check if gcc -print-prog-name=ld gives a path.
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5754 $as_echo_n "checking for ld used by GCC... " >&6; }
5755 case $host in
5756 *-*-mingw*)
5757 # gcc leaves a trailing carriage return which upsets mingw
5758 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5759 *)
5760 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5761 esac
5762 case $ac_prog in
5763 # Accept absolute paths.
5764 [\\/]* | [A-Za-z]:[\\/]*)
5765 re_direlt='/[^/][^/]*/\.\./'
5766 # Canonicalize the path of ld
5767 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5768 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5769 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5770 done
5771 test -z "$LD" && LD="$ac_prog"
5772 ;;
5773 "")
5774 # If it fails, then pretend we aren't using GCC.
5775 ac_prog=ld
5776 ;;
5777 *)
5778 # If it is relative, then search for the first ld in PATH.
5779 with_gnu_ld=unknown
5780 ;;
5781 esac
5782 elif test "$with_gnu_ld" = yes; then
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5784 $as_echo_n "checking for GNU ld... " >&6; }
5785 else
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5787 $as_echo_n "checking for non-GNU ld... " >&6; }
5788 fi
5789 if test "${acl_cv_path_LD+set}" = set; then :
5790 $as_echo_n "(cached) " >&6
5791 else
5792 if test -z "$LD"; then
5793 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5794 for ac_dir in $PATH; do
5795 test -z "$ac_dir" && ac_dir=.
5796 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5797 acl_cv_path_LD="$ac_dir/$ac_prog"
5798 # Check to see if the program is GNU ld. I'd rather use --version,
5799 # but apparently some GNU ld's only accept -v.
5800 # Break only if it was the GNU/non-GNU ld that we prefer.
5801 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5802 *GNU* | *'with BFD'*)
5803 test "$with_gnu_ld" != no && break ;;
5804 *)
5805 test "$with_gnu_ld" != yes && break ;;
5806 esac
5807 fi
5808 done
5809 IFS="$ac_save_ifs"
5810 else
5811 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5812 fi
5813 fi
5814
5815 LD="$acl_cv_path_LD"
5816 if test -n "$LD"; then
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5818 $as_echo "$LD" >&6; }
5819 else
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5821 $as_echo "no" >&6; }
5822 fi
5823 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5825 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5826 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5827 $as_echo_n "(cached) " >&6
5828 else
5829 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5830 case `$LD -v 2>&1 </dev/null` in
5831 *GNU* | *'with BFD'*)
5832 acl_cv_prog_gnu_ld=yes ;;
5833 *)
5834 acl_cv_prog_gnu_ld=no ;;
5835 esac
5836 fi
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5838 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5839 with_gnu_ld=$acl_cv_prog_gnu_ld
5840
5841
5842
5843
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5845 $as_echo_n "checking for shared library run path origin... " >&6; }
5846 if test "${acl_cv_rpath+set}" = set; then :
5847 $as_echo_n "(cached) " >&6
5848 else
5849
5850 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5851 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5852 . ./conftest.sh
5853 rm -f ./conftest.sh
5854 acl_cv_rpath=done
5855
5856 fi
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5858 $as_echo "$acl_cv_rpath" >&6; }
5859 wl="$acl_cv_wl"
5860 acl_libext="$acl_cv_libext"
5861 acl_shlibext="$acl_cv_shlibext"
5862 acl_libname_spec="$acl_cv_libname_spec"
5863 acl_library_names_spec="$acl_cv_library_names_spec"
5864 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5865 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5866 acl_hardcode_direct="$acl_cv_hardcode_direct"
5867 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5868 # Check whether --enable-rpath was given.
5869 if test "${enable_rpath+set}" = set; then :
5870 enableval=$enable_rpath; :
5871 else
5872 enable_rpath=yes
5873 fi
5874
5875
5876
5877 acl_libdirstem=lib
5878 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5879 if test -n "$searchpath"; then
5880 acl_save_IFS="${IFS= }"; IFS=":"
5881 for searchdir in $searchpath; do
5882 if test -d "$searchdir"; then
5883 case "$searchdir" in
5884 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5885 *) searchdir=`cd "$searchdir" && pwd`
5886 case "$searchdir" in
5887 */lib64 ) acl_libdirstem=lib64 ;;
5888 esac ;;
5889 esac
5890 fi
5891 done
5892 IFS="$acl_save_IFS"
5893 fi
5894
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5896 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5897 if test "${ac_cv_c_bigendian+set}" = set; then :
5898 $as_echo_n "(cached) " >&6
5899 else
5900 ac_cv_c_bigendian=unknown
5901 # See if we're dealing with a universal compiler.
5902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5903 /* end confdefs.h. */
5904 #ifndef __APPLE_CC__
5905 not a universal capable compiler
5906 #endif
5907 typedef int dummy;
5908
5909 _ACEOF
5910 if ac_fn_c_try_compile "$LINENO"; then :
5911
5912 # Check for potential -arch flags. It is not universal unless
5913 # there are at least two -arch flags with different values.
5914 ac_arch=
5915 ac_prev=
5916 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5917 if test -n "$ac_prev"; then
5918 case $ac_word in
5919 i?86 | x86_64 | ppc | ppc64)
5920 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5921 ac_arch=$ac_word
5922 else
5923 ac_cv_c_bigendian=universal
5924 break
5925 fi
5926 ;;
5927 esac
5928 ac_prev=
5929 elif test "x$ac_word" = "x-arch"; then
5930 ac_prev=arch
5931 fi
5932 done
5933 fi
5934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5935 if test $ac_cv_c_bigendian = unknown; then
5936 # See if sys/param.h defines the BYTE_ORDER macro.
5937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5938 /* end confdefs.h. */
5939 #include <sys/types.h>
5940 #include <sys/param.h>
5941
5942 int
5943 main ()
5944 {
5945 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5946 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5947 && LITTLE_ENDIAN)
5948 bogus endian macros
5949 #endif
5950
5951 ;
5952 return 0;
5953 }
5954 _ACEOF
5955 if ac_fn_c_try_compile "$LINENO"; then :
5956 # It does; now see whether it defined to BIG_ENDIAN or not.
5957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5958 /* end confdefs.h. */
5959 #include <sys/types.h>
5960 #include <sys/param.h>
5961
5962 int
5963 main ()
5964 {
5965 #if BYTE_ORDER != BIG_ENDIAN
5966 not big endian
5967 #endif
5968
5969 ;
5970 return 0;
5971 }
5972 _ACEOF
5973 if ac_fn_c_try_compile "$LINENO"; then :
5974 ac_cv_c_bigendian=yes
5975 else
5976 ac_cv_c_bigendian=no
5977 fi
5978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5979 fi
5980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5981 fi
5982 if test $ac_cv_c_bigendian = unknown; then
5983 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5985 /* end confdefs.h. */
5986 #include <limits.h>
5987
5988 int
5989 main ()
5990 {
5991 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5992 bogus endian macros
5993 #endif
5994
5995 ;
5996 return 0;
5997 }
5998 _ACEOF
5999 if ac_fn_c_try_compile "$LINENO"; then :
6000 # It does; now see whether it defined to _BIG_ENDIAN or not.
6001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6002 /* end confdefs.h. */
6003 #include <limits.h>
6004
6005 int
6006 main ()
6007 {
6008 #ifndef _BIG_ENDIAN
6009 not big endian
6010 #endif
6011
6012 ;
6013 return 0;
6014 }
6015 _ACEOF
6016 if ac_fn_c_try_compile "$LINENO"; then :
6017 ac_cv_c_bigendian=yes
6018 else
6019 ac_cv_c_bigendian=no
6020 fi
6021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6022 fi
6023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6024 fi
6025 if test $ac_cv_c_bigendian = unknown; then
6026 # Compile a test program.
6027 if test "$cross_compiling" = yes; then :
6028 # Try to guess by grepping values from an object file.
6029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6030 /* end confdefs.h. */
6031 short int ascii_mm[] =
6032 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6033 short int ascii_ii[] =
6034 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6035 int use_ascii (int i) {
6036 return ascii_mm[i] + ascii_ii[i];
6037 }
6038 short int ebcdic_ii[] =
6039 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6040 short int ebcdic_mm[] =
6041 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6042 int use_ebcdic (int i) {
6043 return ebcdic_mm[i] + ebcdic_ii[i];
6044 }
6045 extern int foo;
6046
6047 int
6048 main ()
6049 {
6050 return use_ascii (foo) == use_ebcdic (foo);
6051 ;
6052 return 0;
6053 }
6054 _ACEOF
6055 if ac_fn_c_try_compile "$LINENO"; then :
6056 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6057 ac_cv_c_bigendian=yes
6058 fi
6059 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6060 if test "$ac_cv_c_bigendian" = unknown; then
6061 ac_cv_c_bigendian=no
6062 else
6063 # finding both strings is unlikely to happen, but who knows?
6064 ac_cv_c_bigendian=unknown
6065 fi
6066 fi
6067 fi
6068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6069 else
6070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6071 /* end confdefs.h. */
6072 $ac_includes_default
6073 int
6074 main ()
6075 {
6076
6077 /* Are we little or big endian? From Harbison&Steele. */
6078 union
6079 {
6080 long int l;
6081 char c[sizeof (long int)];
6082 } u;
6083 u.l = 1;
6084 return u.c[sizeof (long int) - 1] == 1;
6085
6086 ;
6087 return 0;
6088 }
6089 _ACEOF
6090 if ac_fn_c_try_run "$LINENO"; then :
6091 ac_cv_c_bigendian=no
6092 else
6093 ac_cv_c_bigendian=yes
6094 fi
6095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6096 conftest.$ac_objext conftest.beam conftest.$ac_ext
6097 fi
6098
6099 fi
6100 fi
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6102 $as_echo "$ac_cv_c_bigendian" >&6; }
6103 case $ac_cv_c_bigendian in #(
6104 yes)
6105 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6106 ;; #(
6107 no)
6108 ;; #(
6109 universal)
6110
6111 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6112
6113 ;; #(
6114 *)
6115 as_fn_error $? "unknown endianness
6116 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6117 esac
6118
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6120 $as_echo_n "checking for inline... " >&6; }
6121 if test "${ac_cv_c_inline+set}" = set; then :
6122 $as_echo_n "(cached) " >&6
6123 else
6124 ac_cv_c_inline=no
6125 for ac_kw in inline __inline__ __inline; do
6126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6127 /* end confdefs.h. */
6128 #ifndef __cplusplus
6129 typedef int foo_t;
6130 static $ac_kw foo_t static_foo () {return 0; }
6131 $ac_kw foo_t foo () {return 0; }
6132 #endif
6133
6134 _ACEOF
6135 if ac_fn_c_try_compile "$LINENO"; then :
6136 ac_cv_c_inline=$ac_kw
6137 fi
6138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6139 test "$ac_cv_c_inline" != no && break
6140 done
6141
6142 fi
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6144 $as_echo "$ac_cv_c_inline" >&6; }
6145
6146 case $ac_cv_c_inline in
6147 inline | yes) ;;
6148 *)
6149 case $ac_cv_c_inline in
6150 no) ac_val=;;
6151 *) ac_val=$ac_cv_c_inline;;
6152 esac
6153 cat >>confdefs.h <<_ACEOF
6154 #ifndef __cplusplus
6155 #define inline $ac_val
6156 #endif
6157 _ACEOF
6158 ;;
6159 esac
6160
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
6162 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
6163 if test "${ac_cv_c_restrict+set}" = set; then :
6164 $as_echo_n "(cached) " >&6
6165 else
6166 ac_cv_c_restrict=no
6167 # The order here caters to the fact that C++ does not require restrict.
6168 for ac_kw in __restrict __restrict__ _Restrict restrict; do
6169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6170 /* end confdefs.h. */
6171 typedef int * int_ptr;
6172 int foo (int_ptr $ac_kw ip) {
6173 return ip[0];
6174 }
6175 int
6176 main ()
6177 {
6178 int s[1];
6179 int * $ac_kw t = s;
6180 t[0] = 0;
6181 return foo(t)
6182 ;
6183 return 0;
6184 }
6185 _ACEOF
6186 if ac_fn_c_try_compile "$LINENO"; then :
6187 ac_cv_c_restrict=$ac_kw
6188 fi
6189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6190 test "$ac_cv_c_restrict" != no && break
6191 done
6192
6193 fi
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
6195 $as_echo "$ac_cv_c_restrict" >&6; }
6196
6197 case $ac_cv_c_restrict in
6198 restrict) ;;
6199 no) $as_echo "#define restrict /**/" >>confdefs.h
6200 ;;
6201 *) cat >>confdefs.h <<_ACEOF
6202 #define restrict $ac_cv_c_restrict
6203 _ACEOF
6204 ;;
6205 esac
6206
6207
6208 GNULIB_FPRINTF_POSIX=0;
6209 GNULIB_PRINTF_POSIX=0;
6210 GNULIB_OBSTACK_PRINTF=0;
6211 GNULIB_OBSTACK_PRINTF_POSIX=0;
6212 GNULIB_SNPRINTF=0;
6213 GNULIB_SPRINTF_POSIX=0;
6214 GNULIB_VFPRINTF_POSIX=0;
6215 GNULIB_VPRINTF_POSIX=0;
6216 GNULIB_VSNPRINTF=0;
6217 GNULIB_VSPRINTF_POSIX=0;
6218 GNULIB_VASPRINTF=0;
6219 GNULIB_FOPEN=0;
6220 GNULIB_FREOPEN=0;
6221 GNULIB_FSEEK=0;
6222 GNULIB_FSEEKO=0;
6223 GNULIB_FTELL=0;
6224 GNULIB_FTELLO=0;
6225 GNULIB_FFLUSH=0;
6226 GNULIB_GETDELIM=0;
6227 GNULIB_GETLINE=0;
6228 REPLACE_FPRINTF=0;
6229 REPLACE_VFPRINTF=0;
6230 REPLACE_PRINTF=0;
6231 REPLACE_VPRINTF=0;
6232 REPLACE_SNPRINTF=0;
6233 HAVE_DECL_SNPRINTF=1;
6234 REPLACE_VSNPRINTF=0;
6235 HAVE_DECL_VSNPRINTF=1;
6236 REPLACE_SPRINTF=0;
6237 REPLACE_VSPRINTF=0;
6238 HAVE_VASPRINTF=1;
6239 REPLACE_VASPRINTF=0;
6240 REPLACE_FOPEN=0;
6241 REPLACE_FREOPEN=0;
6242 HAVE_FSEEKO=1;
6243 REPLACE_FSEEKO=0;
6244 REPLACE_FSEEK=0;
6245 HAVE_FTELLO=1;
6246 REPLACE_FTELLO=0;
6247 REPLACE_FTELL=0;
6248 REPLACE_FFLUSH=0;
6249 HAVE_DECL_GETDELIM=1;
6250 HAVE_DECL_GETLINE=1;
6251 REPLACE_GETLINE=0;
6252 HAVE_DECL_OBSTACK_PRINTF=1;
6253 REPLACE_OBSTACK_PRINTF=0;
6254
6255
6256 ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default"
6257 if test "x$ac_cv_have_decl_getdelim" = x""yes; then :
6258 ac_have_decl=1
6259 else
6260 ac_have_decl=0
6261 fi
6262
6263 cat >>confdefs.h <<_ACEOF
6264 #define HAVE_DECL_GETDELIM $ac_have_decl
6265 _ACEOF
6266
6267
6268
6269 ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
6270 if test "x$ac_cv_have_decl_getline" = x""yes; then :
6271 ac_have_decl=1
6272 else
6273 ac_have_decl=0
6274 fi
6275
6276 cat >>confdefs.h <<_ACEOF
6277 #define HAVE_DECL_GETLINE $ac_have_decl
6278 _ACEOF
6279
6280
6281
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
6283 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
6284 if test "${gl_cv_func_malloc_posix+set}" = set; then :
6285 $as_echo_n "(cached) " >&6
6286 else
6287
6288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6289 /* end confdefs.h. */
6290
6291 int
6292 main ()
6293 {
6294 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
6295 choke me
6296 #endif
6297
6298 ;
6299 return 0;
6300 }
6301 _ACEOF
6302 if ac_fn_c_try_compile "$LINENO"; then :
6303 gl_cv_func_malloc_posix=yes
6304 else
6305 gl_cv_func_malloc_posix=no
6306 fi
6307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6308
6309 fi
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
6311 $as_echo "$gl_cv_func_malloc_posix" >&6; }
6312
6313
6314 GNULIB_MALLOC_POSIX=0;
6315 GNULIB_REALLOC_POSIX=0;
6316 GNULIB_CALLOC_POSIX=0;
6317 GNULIB_GETSUBOPT=0;
6318 GNULIB_MKDTEMP=0;
6319 GNULIB_MKSTEMP=0;
6320 GNULIB_PUTENV=0;
6321 GNULIB_RPMATCH=0;
6322 GNULIB_SETENV=0;
6323 GNULIB_STRTOD=0;
6324 GNULIB_UNSETENV=0;
6325 HAVE_CALLOC_POSIX=1;
6326 HAVE_GETSUBOPT=1;
6327 HAVE_MALLOC_POSIX=1;
6328 HAVE_MKDTEMP=1;
6329 HAVE_REALLOC_POSIX=1;
6330 HAVE_RPMATCH=1;
6331 HAVE_SETENV=1;
6332 HAVE_STRTOD=1;
6333 HAVE_UNSETENV=1;
6334 REPLACE_MKSTEMP=0;
6335 REPLACE_PUTENV=0;
6336 REPLACE_STRTOD=0;
6337 VOID_UNSETENV=0;
6338
6339
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6341 $as_echo_n "checking for long long int... " >&6; }
6342 if test "${ac_cv_type_long_long_int+set}" = set; then :
6343 $as_echo_n "(cached) " >&6
6344 else
6345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346 /* end confdefs.h. */
6347
6348 /* For now, do not test the preprocessor; as of 2007 there are too many
6349 implementations with broken preprocessors. Perhaps this can
6350 be revisited in 2012. In the meantime, code should not expect
6351 #if to work with literals wider than 32 bits. */
6352 /* Test literals. */
6353 long long int ll = 9223372036854775807ll;
6354 long long int nll = -9223372036854775807LL;
6355 unsigned long long int ull = 18446744073709551615ULL;
6356 /* Test constant expressions. */
6357 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6358 ? 1 : -1)];
6359 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6360 ? 1 : -1)];
6361 int i = 63;
6362 int
6363 main ()
6364 {
6365 /* Test availability of runtime routines for shift and division. */
6366 long long int llmax = 9223372036854775807ll;
6367 unsigned long long int ullmax = 18446744073709551615ull;
6368 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6369 | (llmax / ll) | (llmax % ll)
6370 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6371 | (ullmax / ull) | (ullmax % ull));
6372 ;
6373 return 0;
6374 }
6375
6376 _ACEOF
6377 if ac_fn_c_try_link "$LINENO"; then :
6378 if test "$cross_compiling" = yes; then :
6379 ac_cv_type_long_long_int=yes
6380 else
6381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382 /* end confdefs.h. */
6383 #include <limits.h>
6384 #ifndef LLONG_MAX
6385 # define HALF \
6386 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6387 # define LLONG_MAX (HALF - 1 + HALF)
6388 #endif
6389 int
6390 main ()
6391 {
6392 long long int n = 1;
6393 int i;
6394 for (i = 0; ; i++)
6395 {
6396 long long int m = n << i;
6397 if (m >> i != n)
6398 return 1;
6399 if (LLONG_MAX / 2 < m)
6400 break;
6401 }
6402 return 0;
6403 ;
6404 return 0;
6405 }
6406 _ACEOF
6407 if ac_fn_c_try_run "$LINENO"; then :
6408 ac_cv_type_long_long_int=yes
6409 else
6410 ac_cv_type_long_long_int=no
6411 fi
6412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6413 conftest.$ac_objext conftest.beam conftest.$ac_ext
6414 fi
6415
6416 else
6417 ac_cv_type_long_long_int=no
6418 fi
6419 rm -f core conftest.err conftest.$ac_objext \
6420 conftest$ac_exeext conftest.$ac_ext
6421 fi
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6423 $as_echo "$ac_cv_type_long_long_int" >&6; }
6424 if test $ac_cv_type_long_long_int = yes; then
6425
6426 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6427
6428 fi
6429
6430
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6432 $as_echo_n "checking for unsigned long long int... " >&6; }
6433 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6434 $as_echo_n "(cached) " >&6
6435 else
6436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6437 /* end confdefs.h. */
6438
6439 /* For now, do not test the preprocessor; as of 2007 there are too many
6440 implementations with broken preprocessors. Perhaps this can
6441 be revisited in 2012. In the meantime, code should not expect
6442 #if to work with literals wider than 32 bits. */
6443 /* Test literals. */
6444 long long int ll = 9223372036854775807ll;
6445 long long int nll = -9223372036854775807LL;
6446 unsigned long long int ull = 18446744073709551615ULL;
6447 /* Test constant expressions. */
6448 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6449 ? 1 : -1)];
6450 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6451 ? 1 : -1)];
6452 int i = 63;
6453 int
6454 main ()
6455 {
6456 /* Test availability of runtime routines for shift and division. */
6457 long long int llmax = 9223372036854775807ll;
6458 unsigned long long int ullmax = 18446744073709551615ull;
6459 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6460 | (llmax / ll) | (llmax % ll)
6461 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6462 | (ullmax / ull) | (ullmax % ull));
6463 ;
6464 return 0;
6465 }
6466
6467 _ACEOF
6468 if ac_fn_c_try_link "$LINENO"; then :
6469 ac_cv_type_unsigned_long_long_int=yes
6470 else
6471 ac_cv_type_unsigned_long_long_int=no
6472 fi
6473 rm -f core conftest.err conftest.$ac_objext \
6474 conftest$ac_exeext conftest.$ac_ext
6475 fi
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6477 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6478 if test $ac_cv_type_unsigned_long_long_int = yes; then
6479
6480 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6481
6482 fi
6483
6484
6485
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
6487 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6488 if test "${gl_cv_have_include_next+set}" = set; then :
6489 $as_echo_n "(cached) " >&6
6490 else
6491 rm -rf conftestd1 conftestd2
6492 mkdir conftestd1 conftestd2
6493 cat <<EOF > conftestd1/conftest.h
6494 #define DEFINED_IN_CONFTESTD1
6495 #include_next <conftest.h>
6496 #ifdef DEFINED_IN_CONFTESTD2
6497 int foo;
6498 #else
6499 #error "include_next doesn't work"
6500 #endif
6501 EOF
6502 cat <<EOF > conftestd2/conftest.h
6503 #ifndef DEFINED_IN_CONFTESTD1
6504 #error "include_next test doesn't work"
6505 #endif
6506 #define DEFINED_IN_CONFTESTD2
6507 EOF
6508 save_CPPFLAGS="$CPPFLAGS"
6509 CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
6510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6511 /* end confdefs.h. */
6512 #include <conftest.h>
6513 _ACEOF
6514 if ac_fn_c_try_compile "$LINENO"; then :
6515 gl_cv_have_include_next=yes
6516 else
6517 gl_cv_have_include_next=no
6518 fi
6519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6520 CPPFLAGS="$save_CPPFLAGS"
6521 rm -rf conftestd1 conftestd2
6522
6523 fi
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6525 $as_echo "$gl_cv_have_include_next" >&6; }
6526 if test $gl_cv_have_include_next = yes; then
6527
6528
6529 $as_echo "#define HAVE_INCLUDE_NEXT 1" >>confdefs.h
6530
6531
6532 INCLUDE_NEXT=include_next
6533 else
6534 INCLUDE_NEXT=include
6535 fi
6536
6537
6538
6539
6540
6541
6542 for ac_header in $gl_header_list
6543 do :
6544 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6545 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6546 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6547 cat >>confdefs.h <<_ACEOF
6548 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6549 _ACEOF
6550
6551 fi
6552
6553 done
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575 REPLACE_MKDIR=0;
6576
6577
6578
6579
6580
6581 for ac_func in $gl_func_list
6582 do :
6583 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6584 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6585 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6586 cat >>confdefs.h <<_ACEOF
6587 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6588 _ACEOF
6589
6590 fi
6591 done
6592
6593
6594
6595
6596
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6598 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6599 if test "${ac_cv_header_stat_broken+set}" = set; then :
6600 $as_echo_n "(cached) " >&6
6601 else
6602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6603 /* end confdefs.h. */
6604 #include <sys/types.h>
6605 #include <sys/stat.h>
6606
6607 #if defined S_ISBLK && defined S_IFDIR
6608 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6609 #endif
6610
6611 #if defined S_ISBLK && defined S_IFCHR
6612 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6613 #endif
6614
6615 #if defined S_ISLNK && defined S_IFREG
6616 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6617 #endif
6618
6619 #if defined S_ISSOCK && defined S_IFREG
6620 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6621 #endif
6622
6623 _ACEOF
6624 if ac_fn_c_try_compile "$LINENO"; then :
6625 ac_cv_header_stat_broken=no
6626 else
6627 ac_cv_header_stat_broken=yes
6628 fi
6629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6630 fi
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6632 $as_echo "$ac_cv_header_stat_broken" >&6; }
6633 if test $ac_cv_header_stat_broken = yes; then
6634
6635 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6636
6637 fi
6638
6639
6640
6641
6642
6643
6644
6645 GNULIB_CHOWN=0;
6646 GNULIB_DUP2=0;
6647 GNULIB_ENVIRON=0;
6648 GNULIB_FCHDIR=0;
6649 GNULIB_FTRUNCATE=0;
6650 GNULIB_GETCWD=0;
6651 GNULIB_GETLOGIN_R=0;
6652 GNULIB_GETPAGESIZE=0;
6653 GNULIB_LCHOWN=0;
6654 GNULIB_LSEEK=0;
6655 GNULIB_READLINK=0;
6656 GNULIB_SLEEP=0;
6657 HAVE_DUP2=1;
6658 HAVE_FTRUNCATE=1;
6659 HAVE_GETPAGESIZE=1;
6660 HAVE_READLINK=1;
6661 HAVE_SLEEP=1;
6662 HAVE_DECL_ENVIRON=1;
6663 HAVE_DECL_GETLOGIN_R=1;
6664 HAVE_OS_H=0;
6665 HAVE_SYS_PARAM_H=0;
6666 REPLACE_CHOWN=0;
6667 REPLACE_FCHDIR=0;
6668 REPLACE_GETCWD=0;
6669 REPLACE_GETPAGESIZE=0;
6670 REPLACE_LCHOWN=0;
6671 REPLACE_LSEEK=0;
6672
6673
6674
6675
6676
6677
6678
6679 GNULIB_WCWIDTH=0;
6680 HAVE_DECL_WCWIDTH=1;
6681 REPLACE_WCWIDTH=0;
6682 WCHAR_H=
6683
6684
6685
6686 if true; then
6687 GL_COND_LIBTOOL_TRUE=
6688 GL_COND_LIBTOOL_FALSE='#'
6689 else
6690 GL_COND_LIBTOOL_TRUE='#'
6691 GL_COND_LIBTOOL_FALSE=
6692 fi
6693
6694 gl_cond_libtool=true
6695
6696
6697
6698
6699
6700
6701
6702
6703 gl_source_base='libdynalogin/lib'
6704
6705
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW" >&5
6707 $as_echo_n "checking for EOVERFLOW... " >&6; }
6708 if test "${ac_cv_decl_EOVERFLOW+set}" = set; then :
6709 $as_echo_n "(cached) " >&6
6710 else
6711
6712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6713 /* end confdefs.h. */
6714
6715 #include <errno.h>
6716 #ifdef EOVERFLOW
6717 yes
6718 #endif
6719
6720 _ACEOF
6721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6722 $EGREP "yes" >/dev/null 2>&1; then :
6723 have_eoverflow=1
6724 fi
6725 rm -f conftest*
6726
6727 if test -n "$have_eoverflow"; then
6728 ac_cv_decl_EOVERFLOW=yes
6729 else
6730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6731 /* end confdefs.h. */
6732
6733 #define _XOPEN_SOURCE_EXTENDED 1
6734 #include <errno.h>
6735 #ifdef EOVERFLOW
6736 yes
6737 #endif
6738
6739 _ACEOF
6740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6741 $EGREP "yes" >/dev/null 2>&1; then :
6742 have_eoverflow=1
6743 fi
6744 rm -f conftest*
6745
6746 if test -n "$have_eoverflow"; then
6747 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "ac_cv_decl_EOVERFLOW" "
6748 #define _XOPEN_SOURCE_EXTENDED 1
6749 #include <errno.h>
6750 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6751 #include <stdio.h>
6752 #include <stdlib.h>
6753 "; then :
6754
6755 fi
6756
6757 else
6758 ac_cv_decl_EOVERFLOW=E2BIG
6759 fi
6760 fi
6761
6762 fi
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_EOVERFLOW" >&5
6764 $as_echo "$ac_cv_decl_EOVERFLOW" >&6; }
6765 if test "$ac_cv_decl_EOVERFLOW" != yes; then
6766
6767 cat >>confdefs.h <<_ACEOF
6768 #define EOVERFLOW $ac_cv_decl_EOVERFLOW
6769 _ACEOF
6770
6771 EOVERFLOW="$ac_cv_decl_EOVERFLOW"
6772
6773 fi
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784 gl_LIBOBJS="$gl_LIBOBJS check-version.$ac_objext"
6785
6786
6787
6788
6789 # Check whether --with-libgcrypt was given.
6790 if test "${with_libgcrypt+set}" = set; then :
6791 withval=$with_libgcrypt; libgcrypt=$withval
6792 else
6793 libgcrypt=no
6794 fi
6795
6796 if test "$libgcrypt" != no; then
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810 use_additional=yes
6811
6812 acl_save_prefix="$prefix"
6813 prefix="$acl_final_prefix"
6814 acl_save_exec_prefix="$exec_prefix"
6815 exec_prefix="$acl_final_exec_prefix"
6816
6817 eval additional_includedir=\"$includedir\"
6818 eval additional_libdir=\"$libdir\"
6819
6820 exec_prefix="$acl_save_exec_prefix"
6821 prefix="$acl_save_prefix"
6822
6823
6824 # Check whether --with-libgcrypt-prefix was given.
6825 if test "${with_libgcrypt_prefix+set}" = set; then :
6826 withval=$with_libgcrypt_prefix;
6827 if test "X$withval" = "Xno"; then
6828 use_additional=no
6829 else
6830 if test "X$withval" = "X"; then
6831
6832 acl_save_prefix="$prefix"
6833 prefix="$acl_final_prefix"
6834 acl_save_exec_prefix="$exec_prefix"
6835 exec_prefix="$acl_final_exec_prefix"
6836
6837 eval additional_includedir=\"$includedir\"
6838 eval additional_libdir=\"$libdir\"
6839
6840 exec_prefix="$acl_save_exec_prefix"
6841 prefix="$acl_save_prefix"
6842
6843 else
6844 additional_includedir="$withval/include"
6845 additional_libdir="$withval/$acl_libdirstem"
6846 fi
6847 fi
6848
6849 fi
6850
6851 LIBGCRYPT=
6852 LTLIBGCRYPT=
6853 INCGCRYPT=
6854 LIBGCRYPT_PREFIX=
6855 rpathdirs=
6856 ltrpathdirs=
6857 names_already_handled=
6858 names_next_round='gcrypt '
6859 while test -n "$names_next_round"; do
6860 names_this_round="$names_next_round"
6861 names_next_round=
6862 for name in $names_this_round; do
6863 already_handled=
6864 for n in $names_already_handled; do
6865 if test "$n" = "$name"; then
6866 already_handled=yes
6867 break
6868 fi
6869 done
6870 if test -z "$already_handled"; then
6871 names_already_handled="$names_already_handled $name"
6872 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6873 eval value=\"\$HAVE_LIB$uppername\"
6874 if test -n "$value"; then
6875 if test "$value" = yes; then
6876 eval value=\"\$LIB$uppername\"
6877 test -z "$value" || LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$value"
6878 eval value=\"\$LTLIB$uppername\"
6879 test -z "$value" || LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }$value"
6880 else
6881 :
6882 fi
6883 else
6884 found_dir=
6885 found_la=
6886 found_so=
6887 found_a=
6888 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6889 if test -n "$acl_shlibext"; then
6890 shrext=".$acl_shlibext" # typically: shrext=.so
6891 else
6892 shrext=
6893 fi
6894 if test $use_additional = yes; then
6895 dir="$additional_libdir"
6896 if test -n "$acl_shlibext"; then
6897 if test -f "$dir/$libname$shrext"; then
6898 found_dir="$dir"
6899 found_so="$dir/$libname$shrext"
6900 else
6901 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6902 ver=`(cd "$dir" && \
6903 for f in "$libname$shrext".*; do echo "$f"; done \
6904 | sed -e "s,^$libname$shrext\\\\.,," \
6905 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6906 | sed 1q ) 2>/dev/null`
6907 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6908 found_dir="$dir"
6909 found_so="$dir/$libname$shrext.$ver"
6910 fi
6911 else
6912 eval library_names=\"$acl_library_names_spec\"
6913 for f in $library_names; do
6914 if test -f "$dir/$f"; then
6915 found_dir="$dir"
6916 found_so="$dir/$f"
6917 break
6918 fi
6919 done
6920 fi
6921 fi
6922 fi
6923 if test "X$found_dir" = "X"; then
6924 if test -f "$dir/$libname.$acl_libext"; then
6925 found_dir="$dir"
6926 found_a="$dir/$libname.$acl_libext"
6927 fi
6928 fi
6929 if test "X$found_dir" != "X"; then
6930 if test -f "$dir/$libname.la"; then
6931 found_la="$dir/$libname.la"
6932 fi
6933 fi
6934 fi
6935 if test "X$found_dir" = "X"; then
6936 for x in $LDFLAGS $LTLIBGCRYPT; do
6937
6938 acl_save_prefix="$prefix"
6939 prefix="$acl_final_prefix"
6940 acl_save_exec_prefix="$exec_prefix"
6941 exec_prefix="$acl_final_exec_prefix"
6942 eval x=\"$x\"
6943 exec_prefix="$acl_save_exec_prefix"
6944 prefix="$acl_save_prefix"
6945
6946 case "$x" in
6947 -L*)
6948 dir=`echo "X$x" | sed -e 's/^X-L//'`
6949 if test -n "$acl_shlibext"; then
6950 if test -f "$dir/$libname$shrext"; then
6951 found_dir="$dir"
6952 found_so="$dir/$libname$shrext"
6953 else
6954 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6955 ver=`(cd "$dir" && \
6956 for f in "$libname$shrext".*; do echo "$f"; done \
6957 | sed -e "s,^$libname$shrext\\\\.,," \
6958 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6959 | sed 1q ) 2>/dev/null`
6960 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6961 found_dir="$dir"
6962 found_so="$dir/$libname$shrext.$ver"
6963 fi
6964 else
6965 eval library_names=\"$acl_library_names_spec\"
6966 for f in $library_names; do
6967 if test -f "$dir/$f"; then
6968 found_dir="$dir"
6969 found_so="$dir/$f"
6970 break
6971 fi
6972 done
6973 fi
6974 fi
6975 fi
6976 if test "X$found_dir" = "X"; then
6977 if test -f "$dir/$libname.$acl_libext"; then
6978 found_dir="$dir"
6979 found_a="$dir/$libname.$acl_libext"
6980 fi
6981 fi
6982 if test "X$found_dir" != "X"; then
6983 if test -f "$dir/$libname.la"; then
6984 found_la="$dir/$libname.la"
6985 fi
6986 fi
6987 ;;
6988 esac
6989 if test "X$found_dir" != "X"; then
6990 break
6991 fi
6992 done
6993 fi
6994 if test "X$found_dir" != "X"; then
6995 LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-L$found_dir -l$name"
6996 if test "X$found_so" != "X"; then
6997 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
6998 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
6999 else
7000 haveit=
7001 for x in $ltrpathdirs; do
7002 if test "X$x" = "X$found_dir"; then
7003 haveit=yes
7004 break
7005 fi
7006 done
7007 if test -z "$haveit"; then
7008 ltrpathdirs="$ltrpathdirs $found_dir"
7009 fi
7010 if test "$acl_hardcode_direct" = yes; then
7011 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
7012 else
7013 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7014 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
7015 haveit=
7016 for x in $rpathdirs; do
7017 if test "X$x" = "X$found_dir"; then
7018 haveit=yes
7019 break
7020 fi
7021 done
7022 if test -z "$haveit"; then
7023 rpathdirs="$rpathdirs $found_dir"
7024 fi
7025 else
7026 haveit=
7027 for x in $LDFLAGS $LIBGCRYPT; do
7028
7029 acl_save_prefix="$prefix"
7030 prefix="$acl_final_prefix"
7031 acl_save_exec_prefix="$exec_prefix"
7032 exec_prefix="$acl_final_exec_prefix"
7033 eval x=\"$x\"
7034 exec_prefix="$acl_save_exec_prefix"
7035 prefix="$acl_save_prefix"
7036
7037 if test "X$x" = "X-L$found_dir"; then
7038 haveit=yes
7039 break
7040 fi
7041 done
7042 if test -z "$haveit"; then
7043 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$found_dir"
7044 fi
7045 if test "$acl_hardcode_minus_L" != no; then
7046 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
7047 else
7048 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-l$name"
7049 fi
7050 fi
7051 fi
7052 fi
7053 else
7054 if test "X$found_a" != "X"; then
7055 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_a"
7056 else
7057 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$found_dir -l$name"
7058 fi
7059 fi
7060 additional_includedir=
7061 case "$found_dir" in
7062 */$acl_libdirstem | */$acl_libdirstem/)
7063 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7064 LIBGCRYPT_PREFIX="$basedir"
7065 additional_includedir="$basedir/include"
7066 ;;
7067 esac
7068 if test "X$additional_includedir" != "X"; then
7069 if test "X$additional_includedir" != "X/usr/include"; then
7070 haveit=
7071 if test "X$additional_includedir" = "X/usr/local/include"; then
7072 if test -n "$GCC"; then
7073 case $host_os in
7074 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7075 esac
7076 fi
7077 fi
7078 if test -z "$haveit"; then
7079 for x in $CPPFLAGS $INCGCRYPT; do
7080
7081 acl_save_prefix="$prefix"
7082 prefix="$acl_final_prefix"
7083 acl_save_exec_prefix="$exec_prefix"
7084 exec_prefix="$acl_final_exec_prefix"
7085 eval x=\"$x\"
7086 exec_prefix="$acl_save_exec_prefix"
7087 prefix="$acl_save_prefix"
7088
7089 if test "X$x" = "X-I$additional_includedir"; then
7090 haveit=yes
7091 break
7092 fi
7093 done
7094 if test -z "$haveit"; then
7095 if test -d "$additional_includedir"; then
7096 INCGCRYPT="${INCGCRYPT}${INCGCRYPT:+ }-I$additional_includedir"
7097 fi
7098 fi
7099 fi
7100 fi
7101 fi
7102 if test -n "$found_la"; then
7103 save_libdir="$libdir"
7104 case "$found_la" in
7105 */* | *\\*) . "$found_la" ;;
7106 *) . "./$found_la" ;;
7107 esac
7108 libdir="$save_libdir"
7109 for dep in $dependency_libs; do
7110 case "$dep" in
7111 -L*)
7112 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7113 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
7114 haveit=
7115 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
7116 if test -n "$GCC"; then
7117 case $host_os in
7118 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7119 esac
7120 fi
7121 fi
7122 if test -z "$haveit"; then
7123 haveit=
7124 for x in $LDFLAGS $LIBGCRYPT; do
7125
7126 acl_save_prefix="$prefix"
7127 prefix="$acl_final_prefix"
7128 acl_save_exec_prefix="$exec_prefix"
7129 exec_prefix="$acl_final_exec_prefix"
7130 eval x=\"$x\"
7131 exec_prefix="$acl_save_exec_prefix"
7132 prefix="$acl_save_prefix"
7133
7134 if test "X$x" = "X-L$additional_libdir"; then
7135 haveit=yes
7136 break
7137 fi
7138 done
7139 if test -z "$haveit"; then
7140 if test -d "$additional_libdir"; then
7141 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$additional_libdir"
7142 fi
7143 fi
7144 haveit=
7145 for x in $LDFLAGS $LTLIBGCRYPT; do
7146
7147 acl_save_prefix="$prefix"
7148 prefix="$acl_final_prefix"
7149 acl_save_exec_prefix="$exec_prefix"
7150 exec_prefix="$acl_final_exec_prefix"
7151 eval x=\"$x\"
7152 exec_prefix="$acl_save_exec_prefix"
7153 prefix="$acl_save_prefix"
7154
7155 if test "X$x" = "X-L$additional_libdir"; then
7156 haveit=yes
7157 break
7158 fi
7159 done
7160 if test -z "$haveit"; then
7161 if test -d "$additional_libdir"; then
7162 LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-L$additional_libdir"
7163 fi
7164 fi
7165 fi
7166 fi
7167 ;;
7168 -R*)
7169 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7170 if test "$enable_rpath" != no; then
7171 haveit=
7172 for x in $rpathdirs; do
7173 if test "X$x" = "X$dir"; then
7174 haveit=yes
7175 break
7176 fi
7177 done
7178 if test -z "$haveit"; then
7179 rpathdirs="$rpathdirs $dir"
7180 fi
7181 haveit=
7182 for x in $ltrpathdirs; do
7183 if test "X$x" = "X$dir"; then
7184 haveit=yes
7185 break
7186 fi
7187 done
7188 if test -z "$haveit"; then
7189 ltrpathdirs="$ltrpathdirs $dir"
7190 fi
7191 fi
7192 ;;
7193 -l*)
7194 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7195 ;;
7196 *.la)
7197 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7198 ;;
7199 *)
7200 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$dep"
7201 LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }$dep"
7202 ;;
7203 esac
7204 done
7205 fi
7206 else
7207 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-l$name"
7208 LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-l$name"
7209 fi
7210 fi
7211 fi
7212 done
7213 done
7214 if test "X$rpathdirs" != "X"; then
7215 if test -n "$acl_hardcode_libdir_separator"; then
7216 alldirs=
7217 for found_dir in $rpathdirs; do
7218 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7219 done
7220 acl_save_libdir="$libdir"
7221 libdir="$alldirs"
7222 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7223 libdir="$acl_save_libdir"
7224 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$flag"
7225 else
7226 for found_dir in $rpathdirs; do
7227 acl_save_libdir="$libdir"
7228 libdir="$found_dir"
7229 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7230 libdir="$acl_save_libdir"
7231 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$flag"
7232 done
7233 fi
7234 fi
7235 if test "X$ltrpathdirs" != "X"; then
7236 for found_dir in $ltrpathdirs; do
7237 LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-R$found_dir"
7238 done
7239 fi
7240
7241
7242
7243
7244
7245
7246
7247 ac_save_CPPFLAGS="$CPPFLAGS"
7248
7249 for element in $INCGCRYPT; do
7250 haveit=
7251 for x in $CPPFLAGS; do
7252
7253 acl_save_prefix="$prefix"
7254 prefix="$acl_final_prefix"
7255 acl_save_exec_prefix="$exec_prefix"
7256 exec_prefix="$acl_final_exec_prefix"
7257 eval x=\"$x\"
7258 exec_prefix="$acl_save_exec_prefix"
7259 prefix="$acl_save_prefix"
7260
7261 if test "X$x" = "X$element"; then
7262 haveit=yes
7263 break
7264 fi
7265 done
7266 if test -z "$haveit"; then
7267 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7268 fi
7269 done
7270
7271
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgcrypt" >&5
7273 $as_echo_n "checking for libgcrypt... " >&6; }
7274 if test "${ac_cv_libgcrypt+set}" = set; then :
7275 $as_echo_n "(cached) " >&6
7276 else
7277
7278 ac_save_LIBS="$LIBS"
7279 LIBS="$LIBS $LIBGCRYPT"
7280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7281 /* end confdefs.h. */
7282 #include <gcrypt.h>
7283 int
7284 main ()
7285 {
7286
7287 ;
7288 return 0;
7289 }
7290 _ACEOF
7291 if ac_fn_c_try_link "$LINENO"; then :
7292 ac_cv_libgcrypt=yes
7293 else
7294 ac_cv_libgcrypt=no
7295 fi
7296 rm -f core conftest.err conftest.$ac_objext \
7297 conftest$ac_exeext conftest.$ac_ext
7298 LIBS="$ac_save_LIBS"
7299
7300 fi
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgcrypt" >&5
7302 $as_echo "$ac_cv_libgcrypt" >&6; }
7303 if test "$ac_cv_libgcrypt" = yes; then
7304 HAVE_LIBGCRYPT=yes
7305
7306 $as_echo "#define HAVE_LIBGCRYPT 1" >>confdefs.h
7307
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libgcrypt" >&5
7309 $as_echo_n "checking how to link with libgcrypt... " >&6; }
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT" >&5
7311 $as_echo "$LIBGCRYPT" >&6; }
7312 else
7313 HAVE_LIBGCRYPT=no
7314 CPPFLAGS="$ac_save_CPPFLAGS"
7315 LIBGCRYPT=
7316 LTLIBGCRYPT=
7317 LIBGCRYPT_PREFIX=
7318 fi
7319
7320
7321
7322
7323
7324
7325
7326 fi
7327 if test "$ac_cv_libgcrypt" = yes; then
7328
7329
7330
7331
7332
7333
7334
7335
7336 gl_LIBOBJS="$gl_LIBOBJS gc-libgcrypt.$ac_objext"
7337
7338 else
7339
7340
7341
7342
7343
7344
7345
7346
7347 gl_LIBOBJS="$gl_LIBOBJS gc-gnulib.$ac_objext"
7348
7349 fi
7350
7351 if test $gl_cond_libtool = false; then
7352 gl_ltlibdeps="$gl_ltlibdeps $LTLIBGCRYPT"
7353 gl_libdeps="$gl_libdeps $LIBGCRYPT"
7354 fi
7355
7356
7357 if test "$ac_cv_libgcrypt" != yes; then
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367 gl_LIBOBJS="$gl_LIBOBJS sha1.$ac_objext"
7368
7369
7370
7371
7372 :
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383 gl_LIBOBJS="$gl_LIBOBJS hmac-sha1.$ac_objext"
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395 gl_LIBOBJS="$gl_LIBOBJS memxor.$ac_objext"
7396
7397
7398
7399 fi
7400
7401
7402
7403 $as_echo "#define GNULIB_GC_HMAC_SHA1 1" >>confdefs.h
7404
7405
7406
7407
7408 if test "$ac_cv_libgcrypt" != yes; then
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418 gl_LIBOBJS="$gl_LIBOBJS md5.$ac_objext"
7419
7420
7421
7422
7423 :
7424
7425 fi
7426
7427
7428
7429 $as_echo "#define GNULIB_GC_MD5 1" >>confdefs.h
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445 for ac_func in getdelim
7446 do :
7447 ac_fn_c_check_func "$LINENO" "getdelim" "ac_cv_func_getdelim"
7448 if test "x$ac_cv_func_getdelim" = x""yes; then :
7449 cat >>confdefs.h <<_ACEOF
7450 #define HAVE_GETDELIM 1
7451 _ACEOF
7452
7453 else
7454
7455 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
7456
7457 fi
7458 done
7459
7460
7461
7462 :
7463
7464
7465
7466
7467
7468
7469 if test $ac_cv_func_getdelim = no; then
7470
7471 for ac_func in flockfile funlockfile
7472 do :
7473 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7474 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7475 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7476 cat >>confdefs.h <<_ACEOF
7477 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7478 _ACEOF
7479
7480 fi
7481 done
7482
7483
7484 fi
7485
7486 if test $ac_cv_have_decl_getdelim = no; then
7487 HAVE_DECL_GETDELIM=0
7488 fi
7489
7490
7491
7492 GNULIB_GETDELIM=1
7493
7494
7495
7496
7497
7498
7499
7500 :
7501
7502
7503
7504
7505
7506
7507 gl_getline_needs_run_time_check=no
7508 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
7509 if test "x$ac_cv_func_getline" = x""yes; then :
7510 gl_getline_needs_run_time_check=yes
7511 else
7512 am_cv_func_working_getline=no
7513 fi
7514
7515 if test $gl_getline_needs_run_time_check = yes; then
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
7517 $as_echo_n "checking for working getline function... " >&6; }
7518 if test "${am_cv_func_working_getline+set}" = set; then :
7519 $as_echo_n "(cached) " >&6
7520 else
7521 echo fooN |tr -d '\012'|tr N '\012' > conftest.data
7522 if test "$cross_compiling" = yes; then :
7523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7524 /* end confdefs.h. */
7525
7526 #include <features.h>
7527 #ifdef __GNU_LIBRARY__
7528 #if (__GLIBC__ >= 2)
7529 Lucky GNU user
7530 #endif
7531 #endif
7532
7533 _ACEOF
7534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7535 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7536 am_cv_func_working_getline=yes
7537 else
7538 am_cv_func_working_getline=no
7539 fi
7540 rm -f conftest*
7541
7542
7543 else
7544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7545 /* end confdefs.h. */
7546
7547 # include <stdio.h>
7548 # include <stdlib.h>
7549 # include <string.h>
7550 int main ()
7551 { /* Based on a test program from Karl Heuer. */
7552 char *line = NULL;
7553 size_t siz = 0;
7554 int len;
7555 FILE *in = fopen ("./conftest.data", "r");
7556 if (!in)
7557 return 1;
7558 len = getline (&line, &siz, in);
7559 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
7560 }
7561
7562 _ACEOF
7563 if ac_fn_c_try_run "$LINENO"; then :
7564 am_cv_func_working_getline=yes
7565 else
7566 am_cv_func_working_getline=no
7567 fi
7568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7569 conftest.$ac_objext conftest.beam conftest.$ac_ext
7570 fi
7571
7572 fi
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
7574 $as_echo "$am_cv_func_working_getline" >&6; }
7575 fi
7576
7577 if test $ac_cv_have_decl_getline = no; then
7578 HAVE_DECL_GETLINE=0
7579 fi
7580
7581 if test $am_cv_func_working_getline = no; then
7582 REPLACE_GETLINE=1
7583
7584
7585
7586
7587
7588
7589
7590
7591 gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608 for ac_func in getdelim
7609 do :
7610 ac_fn_c_check_func "$LINENO" "getdelim" "ac_cv_func_getdelim"
7611 if test "x$ac_cv_func_getdelim" = x""yes; then :
7612 cat >>confdefs.h <<_ACEOF
7613 #define HAVE_GETDELIM 1
7614 _ACEOF
7615
7616 else
7617
7618 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
7619
7620 fi
7621 done
7622
7623
7624
7625 :
7626
7627
7628
7629
7630
7631
7632 if test $ac_cv_func_getdelim = no; then
7633
7634 for ac_func in flockfile funlockfile
7635 do :
7636 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7637 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7638 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7639 cat >>confdefs.h <<_ACEOF
7640 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7641 _ACEOF
7642
7643 fi
7644 done
7645
7646
7647 fi
7648
7649 if test $ac_cv_have_decl_getdelim = no; then
7650 HAVE_DECL_GETDELIM=0
7651 fi
7652
7653
7654 fi
7655
7656
7657
7658 GNULIB_GETLINE=1
7659
7660
7661
7662 if test $gl_cv_func_malloc_posix = yes; then
7663 HAVE_REALLOC_POSIX=1
7664
7665 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
7666
7667 else
7668
7669
7670
7671
7672
7673
7674
7675
7676 gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
7677
7678 HAVE_REALLOC_POSIX=0
7679 fi
7680
7681
7682
7683
7684 GNULIB_REALLOC_POSIX=1
7685
7686
7687
7688
7689 if test $ac_cv_type_long_long_int = yes; then
7690 HAVE_LONG_LONG_INT=1
7691 else
7692 HAVE_LONG_LONG_INT=0
7693 fi
7694
7695
7696 if test $ac_cv_type_unsigned_long_long_int = yes; then
7697 HAVE_UNSIGNED_LONG_LONG_INT=1
7698 else
7699 HAVE_UNSIGNED_LONG_LONG_INT=0
7700 fi
7701
7702
7703 if test $ac_cv_header_inttypes_h = yes; then
7704 HAVE_INTTYPES_H=1
7705 else
7706 HAVE_INTTYPES_H=0
7707 fi
7708
7709
7710 if test $ac_cv_header_sys_types_h = yes; then
7711 HAVE_SYS_TYPES_H=1
7712 else
7713 HAVE_SYS_TYPES_H=0
7714 fi
7715
7716
7717
7718
7719
7720 :
7721
7722
7723
7724
7725
7726
7727
7728 if test $gl_cv_have_include_next = yes; then
7729 gl_cv_next_stdint_h='<'stdint.h'>'
7730 else
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
7732 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
7733 if test "${gl_cv_next_stdint_h+set}" = set; then :
7734 $as_echo_n "(cached) " >&6
7735 else
7736
7737 if test $ac_cv_header_stdint_h = yes; then
7738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7739 /* end confdefs.h. */
7740 #include <stdint.h>
7741
7742 _ACEOF
7743 gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7744 sed -n '\#/stdint.h#{
7745 s#.*"\(.*/stdint.h\)".*#\1#
7746 s#^/[^/]#//&#
7747 p
7748 q
7749 }'`'"'
7750 else
7751 gl_cv_next_stdint_h='<'stdint.h'>'
7752 fi
7753
7754 fi
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
7756 $as_echo "$gl_cv_next_stdint_h" >&6; }
7757 fi
7758 NEXT_STDINT_H=$gl_cv_next_stdint_h
7759
7760
7761
7762 if test $ac_cv_header_stdint_h = yes; then
7763 HAVE_STDINT_H=1
7764 else
7765 HAVE_STDINT_H=0
7766 fi
7767
7768
7769 if test $ac_cv_header_stdint_h = yes; then
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
7771 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
7772 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
7773 $as_echo_n "(cached) " >&6
7774 else
7775 gl_cv_header_working_stdint_h=no
7776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777 /* end confdefs.h. */
7778
7779
7780 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
7781 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
7782 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7783 #include <stdint.h>
7784 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
7785 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
7786 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
7787 #endif
7788
7789
7790 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7791 included before <wchar.h>. */
7792 #include <stddef.h>
7793 #include <signal.h>
7794 #if HAVE_WCHAR_H
7795 # include <stdio.h>
7796 # include <time.h>
7797 # include <wchar.h>
7798 #endif
7799
7800
7801 #ifdef INT8_MAX
7802 int8_t a1 = INT8_MAX;
7803 int8_t a1min = INT8_MIN;
7804 #endif
7805 #ifdef INT16_MAX
7806 int16_t a2 = INT16_MAX;
7807 int16_t a2min = INT16_MIN;
7808 #endif
7809 #ifdef INT32_MAX
7810 int32_t a3 = INT32_MAX;
7811 int32_t a3min = INT32_MIN;
7812 #endif
7813 #ifdef INT64_MAX
7814 int64_t a4 = INT64_MAX;
7815 int64_t a4min = INT64_MIN;
7816 #endif
7817 #ifdef UINT8_MAX
7818 uint8_t b1 = UINT8_MAX;
7819 #else
7820 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
7821 #endif
7822 #ifdef UINT16_MAX
7823 uint16_t b2 = UINT16_MAX;
7824 #endif
7825 #ifdef UINT32_MAX
7826 uint32_t b3 = UINT32_MAX;
7827 #endif
7828 #ifdef UINT64_MAX
7829 uint64_t b4 = UINT64_MAX;
7830 #endif
7831 int_least8_t c1 = INT8_C (0x7f);
7832 int_least8_t c1max = INT_LEAST8_MAX;
7833 int_least8_t c1min = INT_LEAST8_MIN;
7834 int_least16_t c2 = INT16_C (0x7fff);
7835 int_least16_t c2max = INT_LEAST16_MAX;
7836 int_least16_t c2min = INT_LEAST16_MIN;
7837 int_least32_t c3 = INT32_C (0x7fffffff);
7838 int_least32_t c3max = INT_LEAST32_MAX;
7839 int_least32_t c3min = INT_LEAST32_MIN;
7840 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
7841 int_least64_t c4max = INT_LEAST64_MAX;
7842 int_least64_t c4min = INT_LEAST64_MIN;
7843 uint_least8_t d1 = UINT8_C (0xff);
7844 uint_least8_t d1max = UINT_LEAST8_MAX;
7845 uint_least16_t d2 = UINT16_C (0xffff);
7846 uint_least16_t d2max = UINT_LEAST16_MAX;
7847 uint_least32_t d3 = UINT32_C (0xffffffff);
7848 uint_least32_t d3max = UINT_LEAST32_MAX;
7849 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
7850 uint_least64_t d4max = UINT_LEAST64_MAX;
7851 int_fast8_t e1 = INT_FAST8_MAX;
7852 int_fast8_t e1min = INT_FAST8_MIN;
7853 int_fast16_t e2 = INT_FAST16_MAX;
7854 int_fast16_t e2min = INT_FAST16_MIN;
7855 int_fast32_t e3 = INT_FAST32_MAX;
7856 int_fast32_t e3min = INT_FAST32_MIN;
7857 int_fast64_t e4 = INT_FAST64_MAX;
7858 int_fast64_t e4min = INT_FAST64_MIN;
7859 uint_fast8_t f1 = UINT_FAST8_MAX;
7860 uint_fast16_t f2 = UINT_FAST16_MAX;
7861 uint_fast32_t f3 = UINT_FAST32_MAX;
7862 uint_fast64_t f4 = UINT_FAST64_MAX;
7863 #ifdef INTPTR_MAX
7864 intptr_t g = INTPTR_MAX;
7865 intptr_t gmin = INTPTR_MIN;
7866 #endif
7867 #ifdef UINTPTR_MAX
7868 uintptr_t h = UINTPTR_MAX;
7869 #endif
7870 intmax_t i = INTMAX_MAX;
7871 uintmax_t j = UINTMAX_MAX;
7872
7873 #include <limits.h> /* for CHAR_BIT */
7874 #define TYPE_MINIMUM(t) \
7875 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
7876 #define TYPE_MAXIMUM(t) \
7877 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
7878 struct s {
7879 int check_PTRDIFF:
7880 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
7881 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
7882 ? 1 : -1;
7883 /* Detect bug in FreeBSD 6.0 / ia64. */
7884 int check_SIG_ATOMIC:
7885 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
7886 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
7887 ? 1 : -1;
7888 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
7889 int check_WCHAR:
7890 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
7891 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
7892 ? 1 : -1;
7893 /* Detect bug in mingw. */
7894 int check_WINT:
7895 WINT_MIN == TYPE_MINIMUM (wint_t)
7896 && WINT_MAX == TYPE_MAXIMUM (wint_t)
7897 ? 1 : -1;
7898
7899 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
7900 int check_UINT8_C:
7901 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
7902 int check_UINT16_C:
7903 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
7904
7905 /* Detect bugs in OpenBSD 3.9 stdint.h. */
7906 #ifdef UINT8_MAX
7907 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
7908 #endif
7909 #ifdef UINT16_MAX
7910 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
7911 #endif
7912 #ifdef UINT32_MAX
7913 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
7914 #endif
7915 #ifdef UINT64_MAX
7916 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
7917 #endif
7918 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
7919 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
7920 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
7921 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
7922 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
7923 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
7924 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
7925 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
7926 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
7927 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
7928 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
7929 };
7930
7931 int
7932 main ()
7933 {
7934
7935 ;
7936 return 0;
7937 }
7938 _ACEOF
7939 if ac_fn_c_try_compile "$LINENO"; then :
7940 gl_cv_header_working_stdint_h=yes
7941 fi
7942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7943 fi
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
7945 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
7946 fi
7947 if test "$gl_cv_header_working_stdint_h" = yes; then
7948 STDINT_H=
7949 else
7950 for ac_header in sys/inttypes.h sys/bitypes.h
7951 do :
7952 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7953 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7954 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7955 cat >>confdefs.h <<_ACEOF
7956 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7957 _ACEOF
7958
7959 fi
7960
7961 done
7962
7963 if test $ac_cv_header_sys_inttypes_h = yes; then
7964 HAVE_SYS_INTTYPES_H=1
7965 else
7966 HAVE_SYS_INTTYPES_H=0
7967 fi
7968
7969 if test $ac_cv_header_sys_bitypes_h = yes; then
7970 HAVE_SYS_BITYPES_H=1
7971 else
7972 HAVE_SYS_BITYPES_H=0
7973 fi
7974
7975
7976
7977 :
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
7989 $as_echo_n "checking for bit size of $gltype... " >&6; }
7990 if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\"" = set; then :
7991 $as_echo_n "(cached) " >&6
7992 else
7993 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
7994 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7995 included before <wchar.h>. */
7996 #include <stddef.h>
7997 #include <signal.h>
7998 #if HAVE_WCHAR_H
7999 # include <stdio.h>
8000 # include <time.h>
8001 # include <wchar.h>
8002 #endif
8003
8004 #include <limits.h>"; then :
8005
8006 else
8007 result=unknown
8008 fi
8009
8010 eval gl_cv_bitsizeof_${gltype}=\$result
8011
8012 fi
8013 eval ac_res=\$gl_cv_bitsizeof_${gltype}
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8015 $as_echo "$ac_res" >&6; }
8016 eval result=\$gl_cv_bitsizeof_${gltype}
8017 if test $result = unknown; then
8018 result=0
8019 fi
8020 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8021 cat >>confdefs.h <<_ACEOF
8022 #define BITSIZEOF_${GLTYPE} $result
8023 _ACEOF
8024
8025 eval BITSIZEOF_${GLTYPE}=\$result
8026 done
8027
8028
8029
8030
8031 for gltype in sig_atomic_t wchar_t wint_t ; do
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
8033 $as_echo_n "checking whether $gltype is signed... " >&6; }
8034 if eval "test \"\${gl_cv_type_${gltype}_signed+set}\"" = set; then :
8035 $as_echo_n "(cached) " >&6
8036 else
8037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8038 /* end confdefs.h. */
8039
8040 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8041 included before <wchar.h>. */
8042 #include <stddef.h>
8043 #include <signal.h>
8044 #if HAVE_WCHAR_H
8045 # include <stdio.h>
8046 # include <time.h>
8047 # include <wchar.h>
8048 #endif
8049
8050 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
8051 int
8052 main ()
8053 {
8054
8055 ;
8056 return 0;
8057 }
8058 _ACEOF
8059 if ac_fn_c_try_compile "$LINENO"; then :
8060 result=yes
8061 else
8062 result=no
8063 fi
8064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8065 eval gl_cv_type_${gltype}_signed=\$result
8066
8067 fi
8068 eval ac_res=\$gl_cv_type_${gltype}_signed
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8070 $as_echo "$ac_res" >&6; }
8071 eval result=\$gl_cv_type_${gltype}_signed
8072 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8073 if test "$result" = yes; then
8074 cat >>confdefs.h <<_ACEOF
8075 #define HAVE_SIGNED_${GLTYPE} 1
8076 _ACEOF
8077
8078 eval HAVE_SIGNED_${GLTYPE}=1
8079 else
8080 eval HAVE_SIGNED_${GLTYPE}=0
8081 fi
8082 done
8083
8084
8085 gl_cv_type_ptrdiff_t_signed=yes
8086 gl_cv_type_size_t_signed=no
8087
8088
8089 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8091 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8092 if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\"" = set; then :
8093 $as_echo_n "(cached) " >&6
8094 else
8095 eval gl_cv_type_${gltype}_suffix=no
8096 eval result=\$gl_cv_type_${gltype}_signed
8097 if test "$result" = yes; then
8098 glsufu=
8099 else
8100 glsufu=u
8101 fi
8102 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8103 case $glsuf in
8104 '') gltype1='int';;
8105 l) gltype1='long int';;
8106 ll) gltype1='long long int';;
8107 i64) gltype1='__int64';;
8108 u) gltype1='unsigned int';;
8109 ul) gltype1='unsigned long int';;
8110 ull) gltype1='unsigned long long int';;
8111 ui64)gltype1='unsigned __int64';;
8112 esac
8113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8114 /* end confdefs.h. */
8115
8116 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8117 included before <wchar.h>. */
8118 #include <stddef.h>
8119 #include <signal.h>
8120 #if HAVE_WCHAR_H
8121 # include <stdio.h>
8122 # include <time.h>
8123 # include <wchar.h>
8124 #endif
8125
8126 extern $gltype foo;
8127 extern $gltype1 foo;
8128 int
8129 main ()
8130 {
8131
8132 ;
8133 return 0;
8134 }
8135 _ACEOF
8136 if ac_fn_c_try_compile "$LINENO"; then :
8137 eval gl_cv_type_${gltype}_suffix=\$glsuf
8138 fi
8139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8140 eval result=\$gl_cv_type_${gltype}_suffix
8141 test "$result" != no && break
8142 done
8143 fi
8144 eval ac_res=\$gl_cv_type_${gltype}_suffix
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8146 $as_echo "$ac_res" >&6; }
8147 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8148 eval result=\$gl_cv_type_${gltype}_suffix
8149 test "$result" = no && result=
8150 eval ${GLTYPE}_SUFFIX=\$result
8151 cat >>confdefs.h <<_ACEOF
8152 #define ${GLTYPE}_SUFFIX $result
8153 _ACEOF
8154
8155 done
8156
8157
8158
8159 STDINT_H=stdint.h
8160 fi
8161
8162
8163
8164
8165
8166
8167
8168 :
8169
8170
8171
8172
8173
8174
8175
8176 if test $gl_cv_have_include_next = yes; then
8177 gl_cv_next_stdio_h='<'stdio.h'>'
8178 else
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
8180 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
8181 if test "${gl_cv_next_stdio_h+set}" = set; then :
8182 $as_echo_n "(cached) " >&6
8183 else
8184
8185 if test $ac_cv_header_stdio_h = yes; then
8186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8187 /* end confdefs.h. */
8188 #include <stdio.h>
8189
8190 _ACEOF
8191 gl_cv_next_stdio_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8192 sed -n '\#/stdio.h#{
8193 s#.*"\(.*/stdio.h\)".*#\1#
8194 s#^/[^/]#//&#
8195 p
8196 q
8197 }'`'"'
8198 else
8199 gl_cv_next_stdio_h='<'stdio.h'>'
8200 fi
8201
8202 fi
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
8204 $as_echo "$gl_cv_next_stdio_h" >&6; }
8205 fi
8206 NEXT_STDIO_H=$gl_cv_next_stdio_h
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216 :
8217
8218
8219
8220
8221
8222
8223
8224 if test $gl_cv_have_include_next = yes; then
8225 gl_cv_next_stdlib_h='<'stdlib.h'>'
8226 else
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
8228 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
8229 if test "${gl_cv_next_stdlib_h+set}" = set; then :
8230 $as_echo_n "(cached) " >&6
8231 else
8232
8233 if test $ac_cv_header_stdlib_h = yes; then
8234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8235 /* end confdefs.h. */
8236 #include <stdlib.h>
8237
8238 _ACEOF
8239 gl_cv_next_stdlib_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8240 sed -n '\#/stdlib.h#{
8241 s#.*"\(.*/stdlib.h\)".*#\1#
8242 s#^/[^/]#//&#
8243 p
8244 q
8245 }'`'"'
8246 else
8247 gl_cv_next_stdlib_h='<'stdlib.h'>'
8248 fi
8249
8250 fi
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
8252 $as_echo "$gl_cv_next_stdlib_h" >&6; }
8253 fi
8254 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270 for ac_func in strverscmp
8271 do :
8272 ac_fn_c_check_func "$LINENO" "strverscmp" "ac_cv_func_strverscmp"
8273 if test "x$ac_cv_func_strverscmp" = x""yes; then :
8274 cat >>confdefs.h <<_ACEOF
8275 #define HAVE_STRVERSCMP 1
8276 _ACEOF
8277
8278 else
8279
8280 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
8281
8282 fi
8283 done
8284
8285
8286 if test $ac_cv_func_strverscmp = no; then
8287
8288 :
8289
8290 fi
8291
8292
8293
8294
8295
8296 :
8297
8298
8299
8300
8301
8302 if test $ac_cv_func_lstat = yes; then
8303 HAVE_LSTAT=1
8304 else
8305 HAVE_LSTAT=0
8306 fi
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316 :
8317
8318
8319
8320
8321
8322
8323
8324 if test $gl_cv_have_include_next = yes; then
8325 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
8326 else
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
8328 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
8329 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
8330 $as_echo_n "(cached) " >&6
8331 else
8332
8333 if test $ac_cv_header_sys_stat_h = yes; then
8334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8335 /* end confdefs.h. */
8336 #include <sys/stat.h>
8337
8338 _ACEOF
8339 gl_cv_next_sys_stat_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8340 sed -n '\#/sys/stat.h#{
8341 s#.*"\(.*/sys/stat.h\)".*#\1#
8342 s#^/[^/]#//&#
8343 p
8344 q
8345 }'`'"'
8346 else
8347 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
8348 fi
8349
8350 fi
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
8352 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
8353 fi
8354 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
8355
8356
8357
8358 SYS_STAT_H='sys/stat.h'
8359
8360
8361 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
8362 #include <sys/stat.h>
8363 "
8364 if test "x$ac_cv_type_nlink_t" = x""yes; then :
8365
8366 else
8367
8368 $as_echo "#define nlink_t int" >>confdefs.h
8369
8370 fi
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381 :
8382
8383
8384
8385
8386
8387
8388
8389 if test $gl_cv_have_include_next = yes; then
8390 gl_cv_next_unistd_h='<'unistd.h'>'
8391 else
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
8393 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
8394 if test "${gl_cv_next_unistd_h+set}" = set; then :
8395 $as_echo_n "(cached) " >&6
8396 else
8397
8398 if test $ac_cv_header_unistd_h = yes; then
8399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8400 /* end confdefs.h. */
8401 #include <unistd.h>
8402
8403 _ACEOF
8404 gl_cv_next_unistd_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8405 sed -n '\#/unistd.h#{
8406 s#.*"\(.*/unistd.h\)".*#\1#
8407 s#^/[^/]#//&#
8408 p
8409 q
8410 }'`'"'
8411 else
8412 gl_cv_next_unistd_h='<'unistd.h'>'
8413 fi
8414
8415 fi
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
8417 $as_echo "$gl_cv_next_unistd_h" >&6; }
8418 fi
8419 NEXT_UNISTD_H=$gl_cv_next_unistd_h
8420
8421
8422
8423
8424
8425 :
8426
8427
8428
8429
8430
8431 if test $ac_cv_header_unistd_h = yes; then
8432 HAVE_UNISTD_H=1
8433 else
8434 HAVE_UNISTD_H=0
8435 fi
8436
8437
8438
8439
8440 CFLAG_VISIBILITY=
8441 HAVE_VISIBILITY=0
8442 if test -n "$GCC"; then
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
8444 $as_echo_n "checking for simple visibility declarations... " >&6; }
8445 if test "${gl_cv_cc_visibility+set}" = set; then :
8446 $as_echo_n "(cached) " >&6
8447 else
8448
8449 gl_save_CFLAGS="$CFLAGS"
8450 CFLAGS="$CFLAGS -fvisibility=hidden"
8451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8452 /* end confdefs.h. */
8453 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
8454 extern __attribute__((__visibility__("default"))) int exportedvar;
8455 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
8456 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
8457 int
8458 main ()
8459 {
8460
8461 ;
8462 return 0;
8463 }
8464 _ACEOF
8465 if ac_fn_c_try_compile "$LINENO"; then :
8466 gl_cv_cc_visibility=yes
8467 else
8468 gl_cv_cc_visibility=no
8469 fi
8470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8471 CFLAGS="$gl_save_CFLAGS"
8472 fi
8473
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
8475 $as_echo "$gl_cv_cc_visibility" >&6; }
8476 if test $gl_cv_cc_visibility = yes; then
8477 CFLAG_VISIBILITY="-fvisibility=hidden"
8478 HAVE_VISIBILITY=1
8479 fi
8480 fi
8481
8482
8483
8484 cat >>confdefs.h <<_ACEOF
8485 #define HAVE_VISIBILITY $HAVE_VISIBILITY
8486 _ACEOF
8487
8488
8489
8490
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> is standalone" >&5
8492 $as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
8493 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then :
8494 $as_echo_n "(cached) " >&6
8495 else
8496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8497 /* end confdefs.h. */
8498 #include <wchar.h>
8499 wchar_t w;
8500 _ACEOF
8501 if ac_fn_c_try_compile "$LINENO"; then :
8502 gl_cv_header_wchar_h_standalone=yes
8503 else
8504 gl_cv_header_wchar_h_standalone=no
8505 fi
8506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8507 fi
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_standalone" >&5
8509 $as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
8510 if test $gl_cv_header_wchar_h_standalone != yes; then
8511 WCHAR_H=wchar.h
8512 fi
8513
8514
8515 :
8516
8517
8518
8519
8520
8521 if test $ac_cv_header_wchar_h = yes; then
8522 HAVE_WCHAR_H=1
8523 else
8524 HAVE_WCHAR_H=0
8525 fi
8526
8527
8528
8529
8530 :
8531
8532
8533
8534
8535
8536
8537
8538 if test $gl_cv_have_include_next = yes; then
8539 gl_cv_next_wchar_h='<'wchar.h'>'
8540 else
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
8542 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
8543 if test "${gl_cv_next_wchar_h+set}" = set; then :
8544 $as_echo_n "(cached) " >&6
8545 else
8546
8547 if test $ac_cv_header_wchar_h = yes; then
8548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8549 /* end confdefs.h. */
8550 #include <wchar.h>
8551
8552 _ACEOF
8553 gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8554 sed -n '\#/wchar.h#{
8555 s#.*"\(.*/wchar.h\)".*#\1#
8556 s#^/[^/]#//&#
8557 p
8558 q
8559 }'`'"'
8560 else
8561 gl_cv_next_wchar_h='<'wchar.h'>'
8562 fi
8563
8564 fi
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
8566 $as_echo "$gl_cv_next_wchar_h" >&6; }
8567 fi
8568 NEXT_WCHAR_H=$gl_cv_next_wchar_h
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582 gltests_libdeps=
8583 gltests_ltlibdeps=
8584
8585
8586
8587
8588
8589
8590
8591
8592 gl_source_base='tests'
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604 case `pwd` in
8605 *\ * | *\ *)
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8607 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8608 esac
8609
8610
8611
8612 macro_version='2.2.6b'
8613 macro_revision='1.3017'
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627 ltmain="$ac_aux_dir/ltmain.sh"
8628
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8630 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
8631 if test "${ac_cv_path_SED+set}" = set; then :
8632 $as_echo_n "(cached) " >&6
8633 else
8634 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8635 for ac_i in 1 2 3 4 5 6 7; do
8636 ac_script="$ac_script$as_nl$ac_script"
8637 done
8638 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8639 { ac_script=; unset ac_script;}
8640 if test -z "$SED"; then
8641 ac_path_SED_found=false
8642 # Loop through the user's path and test for each of PROGNAME-LIST
8643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8644 for as_dir in $PATH
8645 do
8646 IFS=$as_save_IFS
8647 test -z "$as_dir" && as_dir=.
8648 for ac_prog in sed gsed; do
8649 for ac_exec_ext in '' $ac_executable_extensions; do
8650 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8651 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
8652 # Check for GNU ac_path_SED and select it if it is found.
8653 # Check for GNU $ac_path_SED
8654 case `"$ac_path_SED" --version 2>&1` in
8655 *GNU*)
8656 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8657 *)
8658 ac_count=0
8659 $as_echo_n 0123456789 >"conftest.in"
8660 while :
8661 do
8662 cat "conftest.in" "conftest.in" >"conftest.tmp"
8663 mv "conftest.tmp" "conftest.in"
8664 cp "conftest.in" "conftest.nl"
8665 $as_echo '' >> "conftest.nl"
8666 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8667 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8668 as_fn_arith $ac_count + 1 && ac_count=$as_val
8669 if test $ac_count -gt ${ac_path_SED_max-0}; then
8670 # Best one so far, save it but keep looking for a better one
8671 ac_cv_path_SED="$ac_path_SED"
8672 ac_path_SED_max=$ac_count
8673 fi
8674 # 10*(2^10) chars as input seems more than enough
8675 test $ac_count -gt 10 && break
8676 done
8677 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8678 esac
8679
8680 $ac_path_SED_found && break 3
8681 done
8682 done
8683 done
8684 IFS=$as_save_IFS
8685 if test -z "$ac_cv_path_SED"; then
8686 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8687 fi
8688 else
8689 ac_cv_path_SED=$SED
8690 fi
8691
8692 fi
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8694 $as_echo "$ac_cv_path_SED" >&6; }
8695 SED="$ac_cv_path_SED"
8696 rm -f conftest.sed
8697
8698 test -z "$SED" && SED=sed
8699 Xsed="$SED -e 1s/^X//"
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8712 $as_echo_n "checking for fgrep... " >&6; }
8713 if test "${ac_cv_path_FGREP+set}" = set; then :
8714 $as_echo_n "(cached) " >&6
8715 else
8716 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8717 then ac_cv_path_FGREP="$GREP -F"
8718 else
8719 if test -z "$FGREP"; then
8720 ac_path_FGREP_found=false
8721 # Loop through the user's path and test for each of PROGNAME-LIST
8722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8723 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8724 do
8725 IFS=$as_save_IFS
8726 test -z "$as_dir" && as_dir=.
8727 for ac_prog in fgrep; do
8728 for ac_exec_ext in '' $ac_executable_extensions; do
8729 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8730 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
8731 # Check for GNU ac_path_FGREP and select it if it is found.
8732 # Check for GNU $ac_path_FGREP
8733 case `"$ac_path_FGREP" --version 2>&1` in
8734 *GNU*)
8735 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8736 *)
8737 ac_count=0
8738 $as_echo_n 0123456789 >"conftest.in"
8739 while :
8740 do
8741 cat "conftest.in" "conftest.in" >"conftest.tmp"
8742 mv "conftest.tmp" "conftest.in"
8743 cp "conftest.in" "conftest.nl"
8744 $as_echo 'FGREP' >> "conftest.nl"
8745 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8746 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8747 as_fn_arith $ac_count + 1 && ac_count=$as_val
8748 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8749 # Best one so far, save it but keep looking for a better one
8750 ac_cv_path_FGREP="$ac_path_FGREP"
8751 ac_path_FGREP_max=$ac_count
8752 fi
8753 # 10*(2^10) chars as input seems more than enough
8754 test $ac_count -gt 10 && break
8755 done
8756 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8757 esac
8758
8759 $ac_path_FGREP_found && break 3
8760 done
8761 done
8762 done
8763 IFS=$as_save_IFS
8764 if test -z "$ac_cv_path_FGREP"; then
8765 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8766 fi
8767 else
8768 ac_cv_path_FGREP=$FGREP
8769 fi
8770
8771 fi
8772 fi
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8774 $as_echo "$ac_cv_path_FGREP" >&6; }
8775 FGREP="$ac_cv_path_FGREP"
8776
8777
8778 test -z "$GREP" && GREP=grep
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798 # Check whether --with-gnu-ld was given.
8799 if test "${with_gnu_ld+set}" = set; then :
8800 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8801 else
8802 with_gnu_ld=no
8803 fi
8804
8805 ac_prog=ld
8806 if test "$GCC" = yes; then
8807 # Check if gcc -print-prog-name=ld gives a path.
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8809 $as_echo_n "checking for ld used by $CC... " >&6; }
8810 case $host in
8811 *-*-mingw*)
8812 # gcc leaves a trailing carriage return which upsets mingw
8813 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8814 *)
8815 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8816 esac
8817 case $ac_prog in
8818 # Accept absolute paths.
8819 [\\/]* | ?:[\\/]*)
8820 re_direlt='/[^/][^/]*/\.\./'
8821 # Canonicalize the pathname of ld
8822 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8823 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8824 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8825 done
8826 test -z "$LD" && LD="$ac_prog"
8827 ;;
8828 "")
8829 # If it fails, then pretend we aren't using GCC.
8830 ac_prog=ld
8831 ;;
8832 *)
8833 # If it is relative, then search for the first ld in PATH.
8834 with_gnu_ld=unknown
8835 ;;
8836 esac
8837 elif test "$with_gnu_ld" = yes; then
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8839 $as_echo_n "checking for GNU ld... " >&6; }
8840 else
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8842 $as_echo_n "checking for non-GNU ld... " >&6; }
8843 fi
8844 if test "${lt_cv_path_LD+set}" = set; then :
8845 $as_echo_n "(cached) " >&6
8846 else
8847 if test -z "$LD"; then
8848 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8849 for ac_dir in $PATH; do
8850 IFS="$lt_save_ifs"
8851 test -z "$ac_dir" && ac_dir=.
8852 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8853 lt_cv_path_LD="$ac_dir/$ac_prog"
8854 # Check to see if the program is GNU ld. I'd rather use --version,
8855 # but apparently some variants of GNU ld only accept -v.
8856 # Break only if it was the GNU/non-GNU ld that we prefer.
8857 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8858 *GNU* | *'with BFD'*)
8859 test "$with_gnu_ld" != no && break
8860 ;;
8861 *)
8862 test "$with_gnu_ld" != yes && break
8863 ;;
8864 esac
8865 fi
8866 done
8867 IFS="$lt_save_ifs"
8868 else
8869 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8870 fi
8871 fi
8872
8873 LD="$lt_cv_path_LD"
8874 if test -n "$LD"; then
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8876 $as_echo "$LD" >&6; }
8877 else
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8879 $as_echo "no" >&6; }
8880 fi
8881 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8883 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8884 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
8885 $as_echo_n "(cached) " >&6
8886 else
8887 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8888 case `$LD -v 2>&1 </dev/null` in
8889 *GNU* | *'with BFD'*)
8890 lt_cv_prog_gnu_ld=yes
8891 ;;
8892 *)
8893 lt_cv_prog_gnu_ld=no
8894 ;;
8895 esac
8896 fi
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8898 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8899 with_gnu_ld=$lt_cv_prog_gnu_ld
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8910 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8911 if test "${lt_cv_path_NM+set}" = set; then :
8912 $as_echo_n "(cached) " >&6
8913 else
8914 if test -n "$NM"; then
8915 # Let the user override the test.
8916 lt_cv_path_NM="$NM"
8917 else
8918 lt_nm_to_check="${ac_tool_prefix}nm"
8919 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8920 lt_nm_to_check="$lt_nm_to_check nm"
8921 fi
8922 for lt_tmp_nm in $lt_nm_to_check; do
8923 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8924 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8925 IFS="$lt_save_ifs"
8926 test -z "$ac_dir" && ac_dir=.
8927 tmp_nm="$ac_dir/$lt_tmp_nm"
8928 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8929 # Check to see if the nm accepts a BSD-compat flag.
8930 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8931 # nm: unknown option "B" ignored
8932 # Tru64's nm complains that /dev/null is an invalid object file
8933 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8934 */dev/null* | *'Invalid file or object type'*)
8935 lt_cv_path_NM="$tmp_nm -B"
8936 break
8937 ;;
8938 *)
8939 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8940 */dev/null*)
8941 lt_cv_path_NM="$tmp_nm -p"
8942 break
8943 ;;
8944 *)
8945 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8946 continue # so that we can try to find one that supports BSD flags
8947 ;;
8948 esac
8949 ;;
8950 esac
8951 fi
8952 done
8953 IFS="$lt_save_ifs"
8954 done
8955 : ${lt_cv_path_NM=no}
8956 fi
8957 fi
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8959 $as_echo "$lt_cv_path_NM" >&6; }
8960 if test "$lt_cv_path_NM" != "no"; then
8961 NM="$lt_cv_path_NM"
8962 else
8963 # Didn't find any BSD compatible name lister, look for dumpbin.
8964 if test -n "$ac_tool_prefix"; then
8965 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
8966 do
8967 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8968 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8970 $as_echo_n "checking for $ac_word... " >&6; }
8971 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
8972 $as_echo_n "(cached) " >&6
8973 else
8974 if test -n "$DUMPBIN"; then
8975 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8976 else
8977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8978 for as_dir in $PATH
8979 do
8980 IFS=$as_save_IFS
8981 test -z "$as_dir" && as_dir=.
8982 for ac_exec_ext in '' $ac_executable_extensions; do
8983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8984 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8986 break 2
8987 fi
8988 done
8989 done
8990 IFS=$as_save_IFS
8991
8992 fi
8993 fi
8994 DUMPBIN=$ac_cv_prog_DUMPBIN
8995 if test -n "$DUMPBIN"; then
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8997 $as_echo "$DUMPBIN" >&6; }
8998 else
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9000 $as_echo "no" >&6; }
9001 fi
9002
9003
9004 test -n "$DUMPBIN" && break
9005 done
9006 fi
9007 if test -z "$DUMPBIN"; then
9008 ac_ct_DUMPBIN=$DUMPBIN
9009 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
9010 do
9011 # Extract the first word of "$ac_prog", so it can be a program name with args.
9012 set dummy $ac_prog; ac_word=$2
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9014 $as_echo_n "checking for $ac_word... " >&6; }
9015 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
9016 $as_echo_n "(cached) " >&6
9017 else
9018 if test -n "$ac_ct_DUMPBIN"; then
9019 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9020 else
9021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9022 for as_dir in $PATH
9023 do
9024 IFS=$as_save_IFS
9025 test -z "$as_dir" && as_dir=.
9026 for ac_exec_ext in '' $ac_executable_extensions; do
9027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9028 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9030 break 2
9031 fi
9032 done
9033 done
9034 IFS=$as_save_IFS
9035
9036 fi
9037 fi
9038 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9039 if test -n "$ac_ct_DUMPBIN"; then
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9041 $as_echo "$ac_ct_DUMPBIN" >&6; }
9042 else
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9044 $as_echo "no" >&6; }
9045 fi
9046
9047
9048 test -n "$ac_ct_DUMPBIN" && break
9049 done
9050
9051 if test "x$ac_ct_DUMPBIN" = x; then
9052 DUMPBIN=":"
9053 else
9054 case $cross_compiling:$ac_tool_warned in
9055 yes:)
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9058 ac_tool_warned=yes ;;
9059 esac
9060 DUMPBIN=$ac_ct_DUMPBIN
9061 fi
9062 fi
9063
9064
9065 if test "$DUMPBIN" != ":"; then
9066 NM="$DUMPBIN"
9067 fi
9068 fi
9069 test -z "$NM" && NM=nm
9070
9071
9072
9073
9074
9075
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9077 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
9078 if test "${lt_cv_nm_interface+set}" = set; then :
9079 $as_echo_n "(cached) " >&6
9080 else
9081 lt_cv_nm_interface="BSD nm"
9082 echo "int some_variable = 0;" > conftest.$ac_ext
9083 (eval echo "\"\$as_me:9083: $ac_compile\"" >&5)
9084 (eval "$ac_compile" 2>conftest.err)
9085 cat conftest.err >&5
9086 (eval echo "\"\$as_me:9086: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9087 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9088 cat conftest.err >&5
9089 (eval echo "\"\$as_me:9089: output\"" >&5)
9090 cat conftest.out >&5
9091 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9092 lt_cv_nm_interface="MS dumpbin"
9093 fi
9094 rm -f conftest*
9095 fi
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9097 $as_echo "$lt_cv_nm_interface" >&6; }
9098
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9100 $as_echo_n "checking whether ln -s works... " >&6; }
9101 LN_S=$as_ln_s
9102 if test "$LN_S" = "ln -s"; then
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9104 $as_echo "yes" >&6; }
9105 else
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9107 $as_echo "no, using $LN_S" >&6; }
9108 fi
9109
9110 # find the maximum length of command line arguments
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9112 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
9113 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
9114 $as_echo_n "(cached) " >&6
9115 else
9116 i=0
9117 teststring="ABCD"
9118
9119 case $build_os in
9120 msdosdjgpp*)
9121 # On DJGPP, this test can blow up pretty badly due to problems in libc
9122 # (any single argument exceeding 2000 bytes causes a buffer overrun
9123 # during glob expansion). Even if it were fixed, the result of this
9124 # check would be larger than it should be.
9125 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9126 ;;
9127
9128 gnu*)
9129 # Under GNU Hurd, this test is not required because there is
9130 # no limit to the length of command line arguments.
9131 # Libtool will interpret -1 as no limit whatsoever
9132 lt_cv_sys_max_cmd_len=-1;
9133 ;;
9134
9135 cygwin* | mingw* | cegcc*)
9136 # On Win9x/ME, this test blows up -- it succeeds, but takes
9137 # about 5 minutes as the teststring grows exponentially.
9138 # Worse, since 9x/ME are not pre-emptively multitasking,
9139 # you end up with a "frozen" computer, even though with patience
9140 # the test eventually succeeds (with a max line length of 256k).
9141 # Instead, let's just punt: use the minimum linelength reported by
9142 # all of the supported platforms: 8192 (on NT/2K/XP).
9143 lt_cv_sys_max_cmd_len=8192;
9144 ;;
9145
9146 amigaos*)
9147 # On AmigaOS with pdksh, this test takes hours, literally.
9148 # So we just punt and use a minimum line length of 8192.
9149 lt_cv_sys_max_cmd_len=8192;
9150 ;;
9151
9152 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9153 # This has been around since 386BSD, at least. Likely further.
9154 if test -x /sbin/sysctl; then
9155 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9156 elif test -x /usr/sbin/sysctl; then
9157 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9158 else
9159 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9160 fi
9161 # And add a safety zone
9162 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9163 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9164 ;;
9165
9166 interix*)
9167 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9168 lt_cv_sys_max_cmd_len=196608
9169 ;;
9170
9171 osf*)
9172 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9173 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9174 # nice to cause kernel panics so lets avoid the loop below.
9175 # First set a reasonable default.
9176 lt_cv_sys_max_cmd_len=16384
9177 #
9178 if test -x /sbin/sysconfig; then
9179 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9180 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9181 esac
9182 fi
9183 ;;
9184 sco3.2v5*)
9185 lt_cv_sys_max_cmd_len=102400
9186 ;;
9187 sysv5* | sco5v6* | sysv4.2uw2*)
9188 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9189 if test -n "$kargmax"; then
9190 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9191 else
9192 lt_cv_sys_max_cmd_len=32768
9193 fi
9194 ;;
9195 *)
9196 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9197 if test -n "$lt_cv_sys_max_cmd_len"; then
9198 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9199 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9200 else
9201 # Make teststring a little bigger before we do anything with it.
9202 # a 1K string should be a reasonable start.
9203 for i in 1 2 3 4 5 6 7 8 ; do
9204 teststring=$teststring$teststring
9205 done
9206 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9207 # If test is not a shell built-in, we'll probably end up computing a
9208 # maximum length that is only half of the actual maximum length, but
9209 # we can't tell.
9210 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
9211 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
9212 test $i != 17 # 1/2 MB should be enough
9213 do
9214 i=`expr $i + 1`
9215 teststring=$teststring$teststring
9216 done
9217 # Only check the string length outside the loop.
9218 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9219 teststring=
9220 # Add a significant safety factor because C++ compilers can tack on
9221 # massive amounts of additional arguments before passing them to the
9222 # linker. It appears as though 1/2 is a usable value.
9223 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9224 fi
9225 ;;
9226 esac
9227
9228 fi
9229
9230 if test -n $lt_cv_sys_max_cmd_len ; then
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9232 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9233 else
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9235 $as_echo "none" >&6; }
9236 fi
9237 max_cmd_len=$lt_cv_sys_max_cmd_len
9238
9239
9240
9241
9242
9243
9244 : ${CP="cp -f"}
9245 : ${MV="mv -f"}
9246 : ${RM="rm -f"}
9247
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9249 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9250 # Try some XSI features
9251 xsi_shell=no
9252 ( _lt_dummy="a/b/c"
9253 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9254 = c,a/b,, \
9255 && eval 'test $(( 1 + 1 )) -eq 2 \
9256 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9257 && xsi_shell=yes
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9259 $as_echo "$xsi_shell" >&6; }
9260
9261
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9263 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9264 lt_shell_append=no
9265 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9266 >/dev/null 2>&1 \
9267 && lt_shell_append=yes
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9269 $as_echo "$lt_shell_append" >&6; }
9270
9271
9272 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9273 lt_unset=unset
9274 else
9275 lt_unset=false
9276 fi
9277
9278
9279
9280
9281
9282 # test EBCDIC or ASCII
9283 case `echo X|tr X '\101'` in
9284 A) # ASCII based system
9285 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9286 lt_SP2NL='tr \040 \012'
9287 lt_NL2SP='tr \015\012 \040\040'
9288 ;;
9289 *) # EBCDIC based system
9290 lt_SP2NL='tr \100 \n'
9291 lt_NL2SP='tr \r\n \100\100'
9292 ;;
9293 esac
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9304 $as_echo_n "checking for $LD option to reload object files... " >&6; }
9305 if test "${lt_cv_ld_reload_flag+set}" = set; then :
9306 $as_echo_n "(cached) " >&6
9307 else
9308 lt_cv_ld_reload_flag='-r'
9309 fi
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9311 $as_echo "$lt_cv_ld_reload_flag" >&6; }
9312 reload_flag=$lt_cv_ld_reload_flag
9313 case $reload_flag in
9314 "" | " "*) ;;
9315 *) reload_flag=" $reload_flag" ;;
9316 esac
9317 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9318 case $host_os in
9319 darwin*)
9320 if test "$GCC" = yes; then
9321 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9322 else
9323 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9324 fi
9325 ;;
9326 esac
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336 if test -n "$ac_tool_prefix"; then
9337 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9338 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9340 $as_echo_n "checking for $ac_word... " >&6; }
9341 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9342 $as_echo_n "(cached) " >&6
9343 else
9344 if test -n "$OBJDUMP"; then
9345 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9346 else
9347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9348 for as_dir in $PATH
9349 do
9350 IFS=$as_save_IFS
9351 test -z "$as_dir" && as_dir=.
9352 for ac_exec_ext in '' $ac_executable_extensions; do
9353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9354 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9356 break 2
9357 fi
9358 done
9359 done
9360 IFS=$as_save_IFS
9361
9362 fi
9363 fi
9364 OBJDUMP=$ac_cv_prog_OBJDUMP
9365 if test -n "$OBJDUMP"; then
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9367 $as_echo "$OBJDUMP" >&6; }
9368 else
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9370 $as_echo "no" >&6; }
9371 fi
9372
9373
9374 fi
9375 if test -z "$ac_cv_prog_OBJDUMP"; then
9376 ac_ct_OBJDUMP=$OBJDUMP
9377 # Extract the first word of "objdump", so it can be a program name with args.
9378 set dummy objdump; ac_word=$2
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9380 $as_echo_n "checking for $ac_word... " >&6; }
9381 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
9382 $as_echo_n "(cached) " >&6
9383 else
9384 if test -n "$ac_ct_OBJDUMP"; then
9385 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9386 else
9387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9388 for as_dir in $PATH
9389 do
9390 IFS=$as_save_IFS
9391 test -z "$as_dir" && as_dir=.
9392 for ac_exec_ext in '' $ac_executable_extensions; do
9393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9394 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9396 break 2
9397 fi
9398 done
9399 done
9400 IFS=$as_save_IFS
9401
9402 fi
9403 fi
9404 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9405 if test -n "$ac_ct_OBJDUMP"; then
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9407 $as_echo "$ac_ct_OBJDUMP" >&6; }
9408 else
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9410 $as_echo "no" >&6; }
9411 fi
9412
9413 if test "x$ac_ct_OBJDUMP" = x; then
9414 OBJDUMP="false"
9415 else
9416 case $cross_compiling:$ac_tool_warned in
9417 yes:)
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9420 ac_tool_warned=yes ;;
9421 esac
9422 OBJDUMP=$ac_ct_OBJDUMP
9423 fi
9424 else
9425 OBJDUMP="$ac_cv_prog_OBJDUMP"
9426 fi
9427
9428 test -z "$OBJDUMP" && OBJDUMP=objdump
9429
9430
9431
9432
9433
9434
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9436 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
9437 if test "${lt_cv_deplibs_check_method+set}" = set; then :
9438 $as_echo_n "(cached) " >&6
9439 else
9440 lt_cv_file_magic_cmd='$MAGIC_CMD'
9441 lt_cv_file_magic_test_file=
9442 lt_cv_deplibs_check_method='unknown'
9443 # Need to set the preceding variable on all platforms that support
9444 # interlibrary dependencies.
9445 # 'none' -- dependencies not supported.
9446 # `unknown' -- same as none, but documents that we really don't know.
9447 # 'pass_all' -- all dependencies passed with no checks.
9448 # 'test_compile' -- check by making test program.
9449 # 'file_magic [[regex]]' -- check by looking for files in library path
9450 # which responds to the $file_magic_cmd with a given extended regex.
9451 # If you have `file' or equivalent on your system and you're not sure
9452 # whether `pass_all' will *always* work, you probably want this one.
9453
9454 case $host_os in
9455 aix[4-9]*)
9456 lt_cv_deplibs_check_method=pass_all
9457 ;;
9458
9459 beos*)
9460 lt_cv_deplibs_check_method=pass_all
9461 ;;
9462
9463 bsdi[45]*)
9464 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9465 lt_cv_file_magic_cmd='/usr/bin/file -L'
9466 lt_cv_file_magic_test_file=/shlib/libc.so
9467 ;;
9468
9469 cygwin*)
9470 # func_win32_libid is a shell function defined in ltmain.sh
9471 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9472 lt_cv_file_magic_cmd='func_win32_libid'
9473 ;;
9474
9475 mingw* | pw32*)
9476 # Base MSYS/MinGW do not provide the 'file' command needed by
9477 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9478 # unless we find 'file', for example because we are cross-compiling.
9479 if ( file / ) >/dev/null 2>&1; then
9480 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9481 lt_cv_file_magic_cmd='func_win32_libid'
9482 else
9483 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9484 lt_cv_file_magic_cmd='$OBJDUMP -f'
9485 fi
9486 ;;
9487
9488 cegcc)
9489 # use the weaker test based on 'objdump'. See mingw*.
9490 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9491 lt_cv_file_magic_cmd='$OBJDUMP -f'
9492 ;;
9493
9494 darwin* | rhapsody*)
9495 lt_cv_deplibs_check_method=pass_all
9496 ;;
9497
9498 freebsd* | dragonfly*)
9499 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9500 case $host_cpu in
9501 i*86 )
9502 # Not sure whether the presence of OpenBSD here was a mistake.
9503 # Let's accept both of them until this is cleared up.
9504 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9505 lt_cv_file_magic_cmd=/usr/bin/file
9506 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9507 ;;
9508 esac
9509 else
9510 lt_cv_deplibs_check_method=pass_all
9511 fi
9512 ;;
9513
9514 gnu*)
9515 lt_cv_deplibs_check_method=pass_all
9516 ;;
9517
9518 hpux10.20* | hpux11*)
9519 lt_cv_file_magic_cmd=/usr/bin/file
9520 case $host_cpu in
9521 ia64*)
9522 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9523 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9524 ;;
9525 hppa*64*)
9526 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]'
9527 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9528 ;;
9529 *)
9530 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
9531 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9532 ;;
9533 esac
9534 ;;
9535
9536 interix[3-9]*)
9537 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9538 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9539 ;;
9540
9541 irix5* | irix6* | nonstopux*)
9542 case $LD in
9543 *-32|*"-32 ") libmagic=32-bit;;
9544 *-n32|*"-n32 ") libmagic=N32;;
9545 *-64|*"-64 ") libmagic=64-bit;;
9546 *) libmagic=never-match;;
9547 esac
9548 lt_cv_deplibs_check_method=pass_all
9549 ;;
9550
9551 # This must be Linux ELF.
9552 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9553 lt_cv_deplibs_check_method=pass_all
9554 ;;
9555
9556 netbsd* | netbsdelf*-gnu)
9557 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9558 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9559 else
9560 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9561 fi
9562 ;;
9563
9564 newos6*)
9565 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9566 lt_cv_file_magic_cmd=/usr/bin/file
9567 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9568 ;;
9569
9570 *nto* | *qnx*)
9571 lt_cv_deplibs_check_method=pass_all
9572 ;;
9573
9574 openbsd*)
9575 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9576 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9577 else
9578 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9579 fi
9580 ;;
9581
9582 osf3* | osf4* | osf5*)
9583 lt_cv_deplibs_check_method=pass_all
9584 ;;
9585
9586 rdos*)
9587 lt_cv_deplibs_check_method=pass_all
9588 ;;
9589
9590 solaris*)
9591 lt_cv_deplibs_check_method=pass_all
9592 ;;
9593
9594 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9595 lt_cv_deplibs_check_method=pass_all
9596 ;;
9597
9598 sysv4 | sysv4.3*)
9599 case $host_vendor in
9600 motorola)
9601 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]'
9602 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9603 ;;
9604 ncr)
9605 lt_cv_deplibs_check_method=pass_all
9606 ;;
9607 sequent)
9608 lt_cv_file_magic_cmd='/bin/file'
9609 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9610 ;;
9611 sni)
9612 lt_cv_file_magic_cmd='/bin/file'
9613 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9614 lt_cv_file_magic_test_file=/lib/libc.so
9615 ;;
9616 siemens)
9617 lt_cv_deplibs_check_method=pass_all
9618 ;;
9619 pc)
9620 lt_cv_deplibs_check_method=pass_all
9621 ;;
9622 esac
9623 ;;
9624
9625 tpf*)
9626 lt_cv_deplibs_check_method=pass_all
9627 ;;
9628 esac
9629
9630 fi
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9632 $as_echo "$lt_cv_deplibs_check_method" >&6; }
9633 file_magic_cmd=$lt_cv_file_magic_cmd
9634 deplibs_check_method=$lt_cv_deplibs_check_method
9635 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648 if test -n "$ac_tool_prefix"; then
9649 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9650 set dummy ${ac_tool_prefix}ar; ac_word=$2
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9652 $as_echo_n "checking for $ac_word... " >&6; }
9653 if test "${ac_cv_prog_AR+set}" = set; then :
9654 $as_echo_n "(cached) " >&6
9655 else
9656 if test -n "$AR"; then
9657 ac_cv_prog_AR="$AR" # Let the user override the test.
9658 else
9659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9660 for as_dir in $PATH
9661 do
9662 IFS=$as_save_IFS
9663 test -z "$as_dir" && as_dir=.
9664 for ac_exec_ext in '' $ac_executable_extensions; do
9665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9666 ac_cv_prog_AR="${ac_tool_prefix}ar"
9667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9668 break 2
9669 fi
9670 done
9671 done
9672 IFS=$as_save_IFS
9673
9674 fi
9675 fi
9676 AR=$ac_cv_prog_AR
9677 if test -n "$AR"; then
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9679 $as_echo "$AR" >&6; }
9680 else
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9682 $as_echo "no" >&6; }
9683 fi
9684
9685
9686 fi
9687 if test -z "$ac_cv_prog_AR"; then
9688 ac_ct_AR=$AR
9689 # Extract the first word of "ar", so it can be a program name with args.
9690 set dummy ar; ac_word=$2
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9692 $as_echo_n "checking for $ac_word... " >&6; }
9693 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
9694 $as_echo_n "(cached) " >&6
9695 else
9696 if test -n "$ac_ct_AR"; then
9697 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9698 else
9699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9700 for as_dir in $PATH
9701 do
9702 IFS=$as_save_IFS
9703 test -z "$as_dir" && as_dir=.
9704 for ac_exec_ext in '' $ac_executable_extensions; do
9705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9706 ac_cv_prog_ac_ct_AR="ar"
9707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9708 break 2
9709 fi
9710 done
9711 done
9712 IFS=$as_save_IFS
9713
9714 fi
9715 fi
9716 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9717 if test -n "$ac_ct_AR"; then
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9719 $as_echo "$ac_ct_AR" >&6; }
9720 else
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9722 $as_echo "no" >&6; }
9723 fi
9724
9725 if test "x$ac_ct_AR" = x; then
9726 AR="false"
9727 else
9728 case $cross_compiling:$ac_tool_warned in
9729 yes:)
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9732 ac_tool_warned=yes ;;
9733 esac
9734 AR=$ac_ct_AR
9735 fi
9736 else
9737 AR="$ac_cv_prog_AR"
9738 fi
9739
9740 test -z "$AR" && AR=ar
9741 test -z "$AR_FLAGS" && AR_FLAGS=cru
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753 if test -n "$ac_tool_prefix"; then
9754 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9755 set dummy ${ac_tool_prefix}strip; ac_word=$2
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9757 $as_echo_n "checking for $ac_word... " >&6; }
9758 if test "${ac_cv_prog_STRIP+set}" = set; then :
9759 $as_echo_n "(cached) " >&6
9760 else
9761 if test -n "$STRIP"; then
9762 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9763 else
9764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9765 for as_dir in $PATH
9766 do
9767 IFS=$as_save_IFS
9768 test -z "$as_dir" && as_dir=.
9769 for ac_exec_ext in '' $ac_executable_extensions; do
9770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9771 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9773 break 2
9774 fi
9775 done
9776 done
9777 IFS=$as_save_IFS
9778
9779 fi
9780 fi
9781 STRIP=$ac_cv_prog_STRIP
9782 if test -n "$STRIP"; then
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9784 $as_echo "$STRIP" >&6; }
9785 else
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9787 $as_echo "no" >&6; }
9788 fi
9789
9790
9791 fi
9792 if test -z "$ac_cv_prog_STRIP"; then
9793 ac_ct_STRIP=$STRIP
9794 # Extract the first word of "strip", so it can be a program name with args.
9795 set dummy strip; ac_word=$2
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9797 $as_echo_n "checking for $ac_word... " >&6; }
9798 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
9799 $as_echo_n "(cached) " >&6
9800 else
9801 if test -n "$ac_ct_STRIP"; then
9802 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9803 else
9804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9805 for as_dir in $PATH
9806 do
9807 IFS=$as_save_IFS
9808 test -z "$as_dir" && as_dir=.
9809 for ac_exec_ext in '' $ac_executable_extensions; do
9810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9811 ac_cv_prog_ac_ct_STRIP="strip"
9812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9813 break 2
9814 fi
9815 done
9816 done
9817 IFS=$as_save_IFS
9818
9819 fi
9820 fi
9821 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9822 if test -n "$ac_ct_STRIP"; then
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9824 $as_echo "$ac_ct_STRIP" >&6; }
9825 else
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9827 $as_echo "no" >&6; }
9828 fi
9829
9830 if test "x$ac_ct_STRIP" = x; then
9831 STRIP=":"
9832 else
9833 case $cross_compiling:$ac_tool_warned in
9834 yes:)
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9837 ac_tool_warned=yes ;;
9838 esac
9839 STRIP=$ac_ct_STRIP
9840 fi
9841 else
9842 STRIP="$ac_cv_prog_STRIP"
9843 fi
9844
9845 test -z "$STRIP" && STRIP=:
9846
9847
9848
9849
9850
9851
9852 if test -n "$ac_tool_prefix"; then
9853 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9854 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9856 $as_echo_n "checking for $ac_word... " >&6; }
9857 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9858 $as_echo_n "(cached) " >&6
9859 else
9860 if test -n "$RANLIB"; then
9861 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9862 else
9863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9864 for as_dir in $PATH
9865 do
9866 IFS=$as_save_IFS
9867 test -z "$as_dir" && as_dir=.
9868 for ac_exec_ext in '' $ac_executable_extensions; do
9869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9870 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9872 break 2
9873 fi
9874 done
9875 done
9876 IFS=$as_save_IFS
9877
9878 fi
9879 fi
9880 RANLIB=$ac_cv_prog_RANLIB
9881 if test -n "$RANLIB"; then
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9883 $as_echo "$RANLIB" >&6; }
9884 else
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9886 $as_echo "no" >&6; }
9887 fi
9888
9889
9890 fi
9891 if test -z "$ac_cv_prog_RANLIB"; then
9892 ac_ct_RANLIB=$RANLIB
9893 # Extract the first word of "ranlib", so it can be a program name with args.
9894 set dummy ranlib; ac_word=$2
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9896 $as_echo_n "checking for $ac_word... " >&6; }
9897 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
9898 $as_echo_n "(cached) " >&6
9899 else
9900 if test -n "$ac_ct_RANLIB"; then
9901 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9902 else
9903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9904 for as_dir in $PATH
9905 do
9906 IFS=$as_save_IFS
9907 test -z "$as_dir" && as_dir=.
9908 for ac_exec_ext in '' $ac_executable_extensions; do
9909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9910 ac_cv_prog_ac_ct_RANLIB="ranlib"
9911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9912 break 2
9913 fi
9914 done
9915 done
9916 IFS=$as_save_IFS
9917
9918 fi
9919 fi
9920 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9921 if test -n "$ac_ct_RANLIB"; then
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9923 $as_echo "$ac_ct_RANLIB" >&6; }
9924 else
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9926 $as_echo "no" >&6; }
9927 fi
9928
9929 if test "x$ac_ct_RANLIB" = x; then
9930 RANLIB=":"
9931 else
9932 case $cross_compiling:$ac_tool_warned in
9933 yes:)
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9936 ac_tool_warned=yes ;;
9937 esac
9938 RANLIB=$ac_ct_RANLIB
9939 fi
9940 else
9941 RANLIB="$ac_cv_prog_RANLIB"
9942 fi
9943
9944 test -z "$RANLIB" && RANLIB=:
9945
9946
9947
9948
9949
9950
9951 # Determine commands to create old-style static archives.
9952 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9953 old_postinstall_cmds='chmod 644 $oldlib'
9954 old_postuninstall_cmds=
9955
9956 if test -n "$RANLIB"; then
9957 case $host_os in
9958 openbsd*)
9959 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9960 ;;
9961 *)
9962 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9963 ;;
9964 esac
9965 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9966 fi
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001 # If no C compiler was specified, use CC.
10002 LTCC=${LTCC-"$CC"}
10003
10004 # If no C compiler flags were specified, use CFLAGS.
10005 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10006
10007 # Allow CC to be a program name with arguments.
10008 compiler=$CC
10009
10010
10011 # Check for command to grab the raw symbol name followed by C symbol from nm.
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10013 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10014 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
10015 $as_echo_n "(cached) " >&6
10016 else
10017
10018 # These are sane defaults that work on at least a few old systems.
10019 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10020
10021 # Character class describing NM global symbol codes.
10022 symcode='[BCDEGRST]'
10023
10024 # Regexp to match symbols that can be accessed directly from C.
10025 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10026
10027 # Define system-specific variables.
10028 case $host_os in
10029 aix*)
10030 symcode='[BCDT]'
10031 ;;
10032 cygwin* | mingw* | pw32* | cegcc*)
10033 symcode='[ABCDGISTW]'
10034 ;;
10035 hpux*)
10036 if test "$host_cpu" = ia64; then
10037 symcode='[ABCDEGRST]'
10038 fi
10039 ;;
10040 irix* | nonstopux*)
10041 symcode='[BCDEGRST]'
10042 ;;
10043 osf*)
10044 symcode='[BCDEGQRST]'
10045 ;;
10046 solaris*)
10047 symcode='[BDRT]'
10048 ;;
10049 sco3.2v5*)
10050 symcode='[DT]'
10051 ;;
10052 sysv4.2uw2*)
10053 symcode='[DT]'
10054 ;;
10055 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10056 symcode='[ABDT]'
10057 ;;
10058 sysv4)
10059 symcode='[DFNSTU]'
10060 ;;
10061 esac
10062
10063 # If we're using GNU nm, then use its standard symbol codes.
10064 case `$NM -V 2>&1` in
10065 *GNU* | *'with BFD'*)
10066 symcode='[ABCDGIRSTW]' ;;
10067 esac
10068
10069 # Transform an extracted symbol line into a proper C declaration.
10070 # Some systems (esp. on ia64) link data and code symbols differently,
10071 # so use this general approach.
10072 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10073
10074 # Transform an extracted symbol line into symbol name and symbol address
10075 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10076 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'"
10077
10078 # Handle CRLF in mingw tool chain
10079 opt_cr=
10080 case $build_os in
10081 mingw*)
10082 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10083 ;;
10084 esac
10085
10086 # Try without a prefix underscore, then with it.
10087 for ac_symprfx in "" "_"; do
10088
10089 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10090 symxfrm="\\1 $ac_symprfx\\2 \\2"
10091
10092 # Write the raw and C identifiers.
10093 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10094 # Fake it for dumpbin and say T for any non-static function
10095 # and D for any global variable.
10096 # Also find C++ and __fastcall symbols from MSVC++,
10097 # which start with @ or ?.
10098 lt_cv_sys_global_symbol_pipe="$AWK '"\
10099 " {last_section=section; section=\$ 3};"\
10100 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10101 " \$ 0!~/External *\|/{next};"\
10102 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10103 " {if(hide[section]) next};"\
10104 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10105 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10106 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
10107 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10108 " ' prfx=^$ac_symprfx"
10109 else
10110 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10111 fi
10112
10113 # Check to see that the pipe works correctly.
10114 pipe_works=no
10115
10116 rm -f conftest*
10117 cat > conftest.$ac_ext <<_LT_EOF
10118 #ifdef __cplusplus
10119 extern "C" {
10120 #endif
10121 char nm_test_var;
10122 void nm_test_func(void);
10123 void nm_test_func(void){}
10124 #ifdef __cplusplus
10125 }
10126 #endif
10127 int main(){nm_test_var='a';nm_test_func();return(0);}
10128 _LT_EOF
10129
10130 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10131 (eval $ac_compile) 2>&5
10132 ac_status=$?
10133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10134 test $ac_status = 0; }; then
10135 # Now try to grab the symbols.
10136 nlist=conftest.nm
10137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
10138 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10139 ac_status=$?
10140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10141 test $ac_status = 0; } && test -s "$nlist"; then
10142 # Try sorting and uniquifying the output.
10143 if sort "$nlist" | uniq > "$nlist"T; then
10144 mv -f "$nlist"T "$nlist"
10145 else
10146 rm -f "$nlist"T
10147 fi
10148
10149 # Make sure that we snagged all the symbols we need.
10150 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10151 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10152 cat <<_LT_EOF > conftest.$ac_ext
10153 #ifdef __cplusplus
10154 extern "C" {
10155 #endif
10156
10157 _LT_EOF
10158 # Now generate the symbol file.
10159 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10160
10161 cat <<_LT_EOF >> conftest.$ac_ext
10162
10163 /* The mapping between symbol names and symbols. */
10164 const struct {
10165 const char *name;
10166 void *address;
10167 }
10168 lt__PROGRAM__LTX_preloaded_symbols[] =
10169 {
10170 { "@PROGRAM@", (void *) 0 },
10171 _LT_EOF
10172 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10173 cat <<\_LT_EOF >> conftest.$ac_ext
10174 {0, (void *) 0}
10175 };
10176
10177 /* This works around a problem in FreeBSD linker */
10178 #ifdef FREEBSD_WORKAROUND
10179 static const void *lt_preloaded_setup() {
10180 return lt__PROGRAM__LTX_preloaded_symbols;
10181 }
10182 #endif
10183
10184 #ifdef __cplusplus
10185 }
10186 #endif
10187 _LT_EOF
10188 # Now try linking the two files.
10189 mv conftest.$ac_objext conftstm.$ac_objext
10190 lt_save_LIBS="$LIBS"
10191 lt_save_CFLAGS="$CFLAGS"
10192 LIBS="conftstm.$ac_objext"
10193 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10195 (eval $ac_link) 2>&5
10196 ac_status=$?
10197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10198 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
10199 pipe_works=yes
10200 fi
10201 LIBS="$lt_save_LIBS"
10202 CFLAGS="$lt_save_CFLAGS"
10203 else
10204 echo "cannot find nm_test_func in $nlist" >&5
10205 fi
10206 else
10207 echo "cannot find nm_test_var in $nlist" >&5
10208 fi
10209 else
10210 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10211 fi
10212 else
10213 echo "$progname: failed program was:" >&5
10214 cat conftest.$ac_ext >&5
10215 fi
10216 rm -rf conftest* conftst*
10217
10218 # Do not use the global_symbol_pipe unless it works.
10219 if test "$pipe_works" = yes; then
10220 break
10221 else
10222 lt_cv_sys_global_symbol_pipe=
10223 fi
10224 done
10225
10226 fi
10227
10228 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10229 lt_cv_sys_global_symbol_to_cdecl=
10230 fi
10231 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10233 $as_echo "failed" >&6; }
10234 else
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10236 $as_echo "ok" >&6; }
10237 fi
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260 # Check whether --enable-libtool-lock was given.
10261 if test "${enable_libtool_lock+set}" = set; then :
10262 enableval=$enable_libtool_lock;
10263 fi
10264
10265 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10266
10267 # Some flags need to be propagated to the compiler or linker for good
10268 # libtool support.
10269 case $host in
10270 ia64-*-hpux*)
10271 # Find out which ABI we are using.
10272 echo 'int i;' > conftest.$ac_ext
10273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10274 (eval $ac_compile) 2>&5
10275 ac_status=$?
10276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10277 test $ac_status = 0; }; then
10278 case `/usr/bin/file conftest.$ac_objext` in
10279 *ELF-32*)
10280 HPUX_IA64_MODE="32"
10281 ;;
10282 *ELF-64*)
10283 HPUX_IA64_MODE="64"
10284 ;;
10285 esac
10286 fi
10287 rm -rf conftest*
10288 ;;
10289 *-*-irix6*)
10290 # Find out which ABI we are using.
10291 echo '#line 10291 "configure"' > conftest.$ac_ext
10292 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10293 (eval $ac_compile) 2>&5
10294 ac_status=$?
10295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10296 test $ac_status = 0; }; then
10297 if test "$lt_cv_prog_gnu_ld" = yes; then
10298 case `/usr/bin/file conftest.$ac_objext` in
10299 *32-bit*)
10300 LD="${LD-ld} -melf32bsmip"
10301 ;;
10302 *N32*)
10303 LD="${LD-ld} -melf32bmipn32"
10304 ;;
10305 *64-bit*)
10306 LD="${LD-ld} -melf64bmip"
10307 ;;
10308 esac
10309 else
10310 case `/usr/bin/file conftest.$ac_objext` in
10311 *32-bit*)
10312 LD="${LD-ld} -32"
10313 ;;
10314 *N32*)
10315 LD="${LD-ld} -n32"
10316 ;;
10317 *64-bit*)
10318 LD="${LD-ld} -64"
10319 ;;
10320 esac
10321 fi
10322 fi
10323 rm -rf conftest*
10324 ;;
10325
10326 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10327 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10328 # Find out which ABI we are using.
10329 echo 'int i;' > conftest.$ac_ext
10330 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10331 (eval $ac_compile) 2>&5
10332 ac_status=$?
10333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10334 test $ac_status = 0; }; then
10335 case `/usr/bin/file conftest.o` in
10336 *32-bit*)
10337 case $host in
10338 x86_64-*kfreebsd*-gnu)
10339 LD="${LD-ld} -m elf_i386_fbsd"
10340 ;;
10341 x86_64-*linux*)
10342 LD="${LD-ld} -m elf_i386"
10343 ;;
10344 ppc64-*linux*|powerpc64-*linux*)
10345 LD="${LD-ld} -m elf32ppclinux"
10346 ;;
10347 s390x-*linux*)
10348 LD="${LD-ld} -m elf_s390"
10349 ;;
10350 sparc64-*linux*)
10351 LD="${LD-ld} -m elf32_sparc"
10352 ;;
10353 esac
10354 ;;
10355 *64-bit*)
10356 case $host in
10357 x86_64-*kfreebsd*-gnu)
10358 LD="${LD-ld} -m elf_x86_64_fbsd"
10359 ;;
10360 x86_64-*linux*)
10361 LD="${LD-ld} -m elf_x86_64"
10362 ;;
10363 ppc*-*linux*|powerpc*-*linux*)
10364 LD="${LD-ld} -m elf64ppc"
10365 ;;
10366 s390*-*linux*|s390*-*tpf*)
10367 LD="${LD-ld} -m elf64_s390"
10368 ;;
10369 sparc*-*linux*)
10370 LD="${LD-ld} -m elf64_sparc"
10371 ;;
10372 esac
10373 ;;
10374 esac
10375 fi
10376 rm -rf conftest*
10377 ;;
10378
10379 *-*-sco3.2v5*)
10380 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10381 SAVE_CFLAGS="$CFLAGS"
10382 CFLAGS="$CFLAGS -belf"
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10384 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10385 if test "${lt_cv_cc_needs_belf+set}" = set; then :
10386 $as_echo_n "(cached) " >&6
10387 else
10388 ac_ext=c
10389 ac_cpp='$CPP $CPPFLAGS'
10390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10393
10394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10395 /* end confdefs.h. */
10396
10397 int
10398 main ()
10399 {
10400
10401 ;
10402 return 0;
10403 }
10404 _ACEOF
10405 if ac_fn_c_try_link "$LINENO"; then :
10406 lt_cv_cc_needs_belf=yes
10407 else
10408 lt_cv_cc_needs_belf=no
10409 fi
10410 rm -f core conftest.err conftest.$ac_objext \
10411 conftest$ac_exeext conftest.$ac_ext
10412 ac_ext=c
10413 ac_cpp='$CPP $CPPFLAGS'
10414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10417
10418 fi
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10420 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10421 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10422 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10423 CFLAGS="$SAVE_CFLAGS"
10424 fi
10425 ;;
10426 sparc*-*solaris*)
10427 # Find out which ABI we are using.
10428 echo 'int i;' > conftest.$ac_ext
10429 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10430 (eval $ac_compile) 2>&5
10431 ac_status=$?
10432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10433 test $ac_status = 0; }; then
10434 case `/usr/bin/file conftest.o` in
10435 *64-bit*)
10436 case $lt_cv_prog_gnu_ld in
10437 yes*) LD="${LD-ld} -m elf64_sparc" ;;
10438 *)
10439 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10440 LD="${LD-ld} -64"
10441 fi
10442 ;;
10443 esac
10444 ;;
10445 esac
10446 fi
10447 rm -rf conftest*
10448 ;;
10449 esac
10450
10451 need_locks="$enable_libtool_lock"
10452
10453
10454 case $host_os in
10455 rhapsody* | darwin*)
10456 if test -n "$ac_tool_prefix"; then
10457 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10458 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10460 $as_echo_n "checking for $ac_word... " >&6; }
10461 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
10462 $as_echo_n "(cached) " >&6
10463 else
10464 if test -n "$DSYMUTIL"; then
10465 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10466 else
10467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10468 for as_dir in $PATH
10469 do
10470 IFS=$as_save_IFS
10471 test -z "$as_dir" && as_dir=.
10472 for ac_exec_ext in '' $ac_executable_extensions; do
10473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10474 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10476 break 2
10477 fi
10478 done
10479 done
10480 IFS=$as_save_IFS
10481
10482 fi
10483 fi
10484 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10485 if test -n "$DSYMUTIL"; then
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10487 $as_echo "$DSYMUTIL" >&6; }
10488 else
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10490 $as_echo "no" >&6; }
10491 fi
10492
10493
10494 fi
10495 if test -z "$ac_cv_prog_DSYMUTIL"; then
10496 ac_ct_DSYMUTIL=$DSYMUTIL
10497 # Extract the first word of "dsymutil", so it can be a program name with args.
10498 set dummy dsymutil; ac_word=$2
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10500 $as_echo_n "checking for $ac_word... " >&6; }
10501 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
10502 $as_echo_n "(cached) " >&6
10503 else
10504 if test -n "$ac_ct_DSYMUTIL"; then
10505 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10506 else
10507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10508 for as_dir in $PATH
10509 do
10510 IFS=$as_save_IFS
10511 test -z "$as_dir" && as_dir=.
10512 for ac_exec_ext in '' $ac_executable_extensions; do
10513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10514 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10516 break 2
10517 fi
10518 done
10519 done
10520 IFS=$as_save_IFS
10521
10522 fi
10523 fi
10524 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10525 if test -n "$ac_ct_DSYMUTIL"; then
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10527 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10528 else
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10530 $as_echo "no" >&6; }
10531 fi
10532
10533 if test "x$ac_ct_DSYMUTIL" = x; then
10534 DSYMUTIL=":"
10535 else
10536 case $cross_compiling:$ac_tool_warned in
10537 yes:)
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10540 ac_tool_warned=yes ;;
10541 esac
10542 DSYMUTIL=$ac_ct_DSYMUTIL
10543 fi
10544 else
10545 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10546 fi
10547
10548 if test -n "$ac_tool_prefix"; then
10549 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10550 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10552 $as_echo_n "checking for $ac_word... " >&6; }
10553 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
10554 $as_echo_n "(cached) " >&6
10555 else
10556 if test -n "$NMEDIT"; then
10557 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10558 else
10559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10560 for as_dir in $PATH
10561 do
10562 IFS=$as_save_IFS
10563 test -z "$as_dir" && as_dir=.
10564 for ac_exec_ext in '' $ac_executable_extensions; do
10565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10566 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10568 break 2
10569 fi
10570 done
10571 done
10572 IFS=$as_save_IFS
10573
10574 fi
10575 fi
10576 NMEDIT=$ac_cv_prog_NMEDIT
10577 if test -n "$NMEDIT"; then
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10579 $as_echo "$NMEDIT" >&6; }
10580 else
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10582 $as_echo "no" >&6; }
10583 fi
10584
10585
10586 fi
10587 if test -z "$ac_cv_prog_NMEDIT"; then
10588 ac_ct_NMEDIT=$NMEDIT
10589 # Extract the first word of "nmedit", so it can be a program name with args.
10590 set dummy nmedit; ac_word=$2
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10592 $as_echo_n "checking for $ac_word... " >&6; }
10593 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
10594 $as_echo_n "(cached) " >&6
10595 else
10596 if test -n "$ac_ct_NMEDIT"; then
10597 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10598 else
10599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10600 for as_dir in $PATH
10601 do
10602 IFS=$as_save_IFS
10603 test -z "$as_dir" && as_dir=.
10604 for ac_exec_ext in '' $ac_executable_extensions; do
10605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10606 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10608 break 2
10609 fi
10610 done
10611 done
10612 IFS=$as_save_IFS
10613
10614 fi
10615 fi
10616 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10617 if test -n "$ac_ct_NMEDIT"; then
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10619 $as_echo "$ac_ct_NMEDIT" >&6; }
10620 else
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10622 $as_echo "no" >&6; }
10623 fi
10624
10625 if test "x$ac_ct_NMEDIT" = x; then
10626 NMEDIT=":"
10627 else
10628 case $cross_compiling:$ac_tool_warned in
10629 yes:)
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10632 ac_tool_warned=yes ;;
10633 esac
10634 NMEDIT=$ac_ct_NMEDIT
10635 fi
10636 else
10637 NMEDIT="$ac_cv_prog_NMEDIT"
10638 fi
10639
10640 if test -n "$ac_tool_prefix"; then
10641 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10642 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10644 $as_echo_n "checking for $ac_word... " >&6; }
10645 if test "${ac_cv_prog_LIPO+set}" = set; then :
10646 $as_echo_n "(cached) " >&6
10647 else
10648 if test -n "$LIPO"; then
10649 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10650 else
10651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10652 for as_dir in $PATH
10653 do
10654 IFS=$as_save_IFS
10655 test -z "$as_dir" && as_dir=.
10656 for ac_exec_ext in '' $ac_executable_extensions; do
10657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10658 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10660 break 2
10661 fi
10662 done
10663 done
10664 IFS=$as_save_IFS
10665
10666 fi
10667 fi
10668 LIPO=$ac_cv_prog_LIPO
10669 if test -n "$LIPO"; then
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10671 $as_echo "$LIPO" >&6; }
10672 else
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10674 $as_echo "no" >&6; }
10675 fi
10676
10677
10678 fi
10679 if test -z "$ac_cv_prog_LIPO"; then
10680 ac_ct_LIPO=$LIPO
10681 # Extract the first word of "lipo", so it can be a program name with args.
10682 set dummy lipo; ac_word=$2
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10684 $as_echo_n "checking for $ac_word... " >&6; }
10685 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
10686 $as_echo_n "(cached) " >&6
10687 else
10688 if test -n "$ac_ct_LIPO"; then
10689 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10690 else
10691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10692 for as_dir in $PATH
10693 do
10694 IFS=$as_save_IFS
10695 test -z "$as_dir" && as_dir=.
10696 for ac_exec_ext in '' $ac_executable_extensions; do
10697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10698 ac_cv_prog_ac_ct_LIPO="lipo"
10699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10700 break 2
10701 fi
10702 done
10703 done
10704 IFS=$as_save_IFS
10705
10706 fi
10707 fi
10708 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10709 if test -n "$ac_ct_LIPO"; then
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10711 $as_echo "$ac_ct_LIPO" >&6; }
10712 else
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10714 $as_echo "no" >&6; }
10715 fi
10716
10717 if test "x$ac_ct_LIPO" = x; then
10718 LIPO=":"
10719 else
10720 case $cross_compiling:$ac_tool_warned in
10721 yes:)
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10723 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10724 ac_tool_warned=yes ;;
10725 esac
10726 LIPO=$ac_ct_LIPO
10727 fi
10728 else
10729 LIPO="$ac_cv_prog_LIPO"
10730 fi
10731
10732 if test -n "$ac_tool_prefix"; then
10733 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10734 set dummy ${ac_tool_prefix}otool; ac_word=$2
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10736 $as_echo_n "checking for $ac_word... " >&6; }
10737 if test "${ac_cv_prog_OTOOL+set}" = set; then :
10738 $as_echo_n "(cached) " >&6
10739 else
10740 if test -n "$OTOOL"; then
10741 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10742 else
10743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10744 for as_dir in $PATH
10745 do
10746 IFS=$as_save_IFS
10747 test -z "$as_dir" && as_dir=.
10748 for ac_exec_ext in '' $ac_executable_extensions; do
10749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10750 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10752 break 2
10753 fi
10754 done
10755 done
10756 IFS=$as_save_IFS
10757
10758 fi
10759 fi
10760 OTOOL=$ac_cv_prog_OTOOL
10761 if test -n "$OTOOL"; then
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10763 $as_echo "$OTOOL" >&6; }
10764 else
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10766 $as_echo "no" >&6; }
10767 fi
10768
10769
10770 fi
10771 if test -z "$ac_cv_prog_OTOOL"; then
10772 ac_ct_OTOOL=$OTOOL
10773 # Extract the first word of "otool", so it can be a program name with args.
10774 set dummy otool; ac_word=$2
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10776 $as_echo_n "checking for $ac_word... " >&6; }
10777 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
10778 $as_echo_n "(cached) " >&6
10779 else
10780 if test -n "$ac_ct_OTOOL"; then
10781 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10782 else
10783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10784 for as_dir in $PATH
10785 do
10786 IFS=$as_save_IFS
10787 test -z "$as_dir" && as_dir=.
10788 for ac_exec_ext in '' $ac_executable_extensions; do
10789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10790 ac_cv_prog_ac_ct_OTOOL="otool"
10791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10792 break 2
10793 fi
10794 done
10795 done
10796 IFS=$as_save_IFS
10797
10798 fi
10799 fi
10800 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10801 if test -n "$ac_ct_OTOOL"; then
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10803 $as_echo "$ac_ct_OTOOL" >&6; }
10804 else
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10806 $as_echo "no" >&6; }
10807 fi
10808
10809 if test "x$ac_ct_OTOOL" = x; then
10810 OTOOL=":"
10811 else
10812 case $cross_compiling:$ac_tool_warned in
10813 yes:)
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10816 ac_tool_warned=yes ;;
10817 esac
10818 OTOOL=$ac_ct_OTOOL
10819 fi
10820 else
10821 OTOOL="$ac_cv_prog_OTOOL"
10822 fi
10823
10824 if test -n "$ac_tool_prefix"; then
10825 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10826 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10828 $as_echo_n "checking for $ac_word... " >&6; }
10829 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
10830 $as_echo_n "(cached) " >&6
10831 else
10832 if test -n "$OTOOL64"; then
10833 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10834 else
10835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10836 for as_dir in $PATH
10837 do
10838 IFS=$as_save_IFS
10839 test -z "$as_dir" && as_dir=.
10840 for ac_exec_ext in '' $ac_executable_extensions; do
10841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10842 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10844 break 2
10845 fi
10846 done
10847 done
10848 IFS=$as_save_IFS
10849
10850 fi
10851 fi
10852 OTOOL64=$ac_cv_prog_OTOOL64
10853 if test -n "$OTOOL64"; then
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10855 $as_echo "$OTOOL64" >&6; }
10856 else
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10858 $as_echo "no" >&6; }
10859 fi
10860
10861
10862 fi
10863 if test -z "$ac_cv_prog_OTOOL64"; then
10864 ac_ct_OTOOL64=$OTOOL64
10865 # Extract the first word of "otool64", so it can be a program name with args.
10866 set dummy otool64; ac_word=$2
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10868 $as_echo_n "checking for $ac_word... " >&6; }
10869 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
10870 $as_echo_n "(cached) " >&6
10871 else
10872 if test -n "$ac_ct_OTOOL64"; then
10873 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10874 else
10875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10876 for as_dir in $PATH
10877 do
10878 IFS=$as_save_IFS
10879 test -z "$as_dir" && as_dir=.
10880 for ac_exec_ext in '' $ac_executable_extensions; do
10881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10882 ac_cv_prog_ac_ct_OTOOL64="otool64"
10883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10884 break 2
10885 fi
10886 done
10887 done
10888 IFS=$as_save_IFS
10889
10890 fi
10891 fi
10892 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10893 if test -n "$ac_ct_OTOOL64"; then
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10895 $as_echo "$ac_ct_OTOOL64" >&6; }
10896 else
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10898 $as_echo "no" >&6; }
10899 fi
10900
10901 if test "x$ac_ct_OTOOL64" = x; then
10902 OTOOL64=":"
10903 else
10904 case $cross_compiling:$ac_tool_warned in
10905 yes:)
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10908 ac_tool_warned=yes ;;
10909 esac
10910 OTOOL64=$ac_ct_OTOOL64
10911 fi
10912 else
10913 OTOOL64="$ac_cv_prog_OTOOL64"
10914 fi
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10943 $as_echo_n "checking for -single_module linker flag... " >&6; }
10944 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
10945 $as_echo_n "(cached) " >&6
10946 else
10947 lt_cv_apple_cc_single_mod=no
10948 if test -z "${LT_MULTI_MODULE}"; then
10949 # By default we will add the -single_module flag. You can override
10950 # by either setting the environment variable LT_MULTI_MODULE
10951 # non-empty at configure time, or by adding -multi_module to the
10952 # link flags.
10953 rm -rf libconftest.dylib*
10954 echo "int foo(void){return 1;}" > conftest.c
10955 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10956 -dynamiclib -Wl,-single_module conftest.c" >&5
10957 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10958 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10959 _lt_result=$?
10960 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10961 lt_cv_apple_cc_single_mod=yes
10962 else
10963 cat conftest.err >&5
10964 fi
10965 rm -rf libconftest.dylib*
10966 rm -f conftest.*
10967 fi
10968 fi
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10970 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10972 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10973 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
10974 $as_echo_n "(cached) " >&6
10975 else
10976 lt_cv_ld_exported_symbols_list=no
10977 save_LDFLAGS=$LDFLAGS
10978 echo "_main" > conftest.sym
10979 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10981 /* end confdefs.h. */
10982
10983 int
10984 main ()
10985 {
10986
10987 ;
10988 return 0;
10989 }
10990 _ACEOF
10991 if ac_fn_c_try_link "$LINENO"; then :
10992 lt_cv_ld_exported_symbols_list=yes
10993 else
10994 lt_cv_ld_exported_symbols_list=no
10995 fi
10996 rm -f core conftest.err conftest.$ac_objext \
10997 conftest$ac_exeext conftest.$ac_ext
10998 LDFLAGS="$save_LDFLAGS"
10999
11000 fi
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11002 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11003 case $host_os in
11004 rhapsody* | darwin1.[012])
11005 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11006 darwin1.*)
11007 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11008 darwin*) # darwin 5.x on
11009 # if running on 10.5 or later, the deployment target defaults
11010 # to the OS version, if on x86, and 10.4, the deployment
11011 # target defaults to 10.4. Don't you love it?
11012 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11013 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11014 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11015 10.[012]*)
11016 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11017 10.*)
11018 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11019 esac
11020 ;;
11021 esac
11022 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11023 _lt_dar_single_mod='$single_module'
11024 fi
11025 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11026 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11027 else
11028 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11029 fi
11030 if test "$DSYMUTIL" != ":"; then
11031 _lt_dsymutil='~$DSYMUTIL $lib || :'
11032 else
11033 _lt_dsymutil=
11034 fi
11035 ;;
11036 esac
11037
11038 for ac_header in dlfcn.h
11039 do :
11040 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11041 "
11042 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11043 cat >>confdefs.h <<_ACEOF
11044 #define HAVE_DLFCN_H 1
11045 _ACEOF
11046
11047 fi
11048
11049 done
11050
11051
11052
11053 ac_ext=cpp
11054 ac_cpp='$CXXCPP $CPPFLAGS'
11055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11058 if test -z "$CXX"; then
11059 if test -n "$CCC"; then
11060 CXX=$CCC
11061 else
11062 if test -n "$ac_tool_prefix"; then
11063 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11064 do
11065 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11066 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11068 $as_echo_n "checking for $ac_word... " >&6; }
11069 if test "${ac_cv_prog_CXX+set}" = set; then :
11070 $as_echo_n "(cached) " >&6
11071 else
11072 if test -n "$CXX"; then
11073 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11074 else
11075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11076 for as_dir in $PATH
11077 do
11078 IFS=$as_save_IFS
11079 test -z "$as_dir" && as_dir=.
11080 for ac_exec_ext in '' $ac_executable_extensions; do
11081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11082 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11084 break 2
11085 fi
11086 done
11087 done
11088 IFS=$as_save_IFS
11089
11090 fi
11091 fi
11092 CXX=$ac_cv_prog_CXX
11093 if test -n "$CXX"; then
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11095 $as_echo "$CXX" >&6; }
11096 else
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11098 $as_echo "no" >&6; }
11099 fi
11100
11101
11102 test -n "$CXX" && break
11103 done
11104 fi
11105 if test -z "$CXX"; then
11106 ac_ct_CXX=$CXX
11107 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11108 do
11109 # Extract the first word of "$ac_prog", so it can be a program name with args.
11110 set dummy $ac_prog; ac_word=$2
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11112 $as_echo_n "checking for $ac_word... " >&6; }
11113 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11114 $as_echo_n "(cached) " >&6
11115 else
11116 if test -n "$ac_ct_CXX"; then
11117 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11118 else
11119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11120 for as_dir in $PATH
11121 do
11122 IFS=$as_save_IFS
11123 test -z "$as_dir" && as_dir=.
11124 for ac_exec_ext in '' $ac_executable_extensions; do
11125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11126 ac_cv_prog_ac_ct_CXX="$ac_prog"
11127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11128 break 2
11129 fi
11130 done
11131 done
11132 IFS=$as_save_IFS
11133
11134 fi
11135 fi
11136 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11137 if test -n "$ac_ct_CXX"; then
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11139 $as_echo "$ac_ct_CXX" >&6; }
11140 else
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11142 $as_echo "no" >&6; }
11143 fi
11144
11145
11146 test -n "$ac_ct_CXX" && break
11147 done
11148
11149 if test "x$ac_ct_CXX" = x; then
11150 CXX="g++"
11151 else
11152 case $cross_compiling:$ac_tool_warned in
11153 yes:)
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11156 ac_tool_warned=yes ;;
11157 esac
11158 CXX=$ac_ct_CXX
11159 fi
11160 fi
11161
11162 fi
11163 fi
11164 # Provide some information about the compiler.
11165 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11166 set X $ac_compile
11167 ac_compiler=$2
11168 for ac_option in --version -v -V -qversion; do
11169 { { ac_try="$ac_compiler $ac_option >&5"
11170 case "(($ac_try" in
11171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11172 *) ac_try_echo=$ac_try;;
11173 esac
11174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11175 $as_echo "$ac_try_echo"; } >&5
11176 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11177 ac_status=$?
11178 if test -s conftest.err; then
11179 sed '10a\
11180 ... rest of stderr output deleted ...
11181 10q' conftest.err >conftest.er1
11182 cat conftest.er1 >&5
11183 fi
11184 rm -f conftest.er1 conftest.err
11185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11186 test $ac_status = 0; }
11187 done
11188
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11190 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11191 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11192 $as_echo_n "(cached) " >&6
11193 else
11194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11195 /* end confdefs.h. */
11196
11197 int
11198 main ()
11199 {
11200 #ifndef __GNUC__
11201 choke me
11202 #endif
11203
11204 ;
11205 return 0;
11206 }
11207 _ACEOF
11208 if ac_fn_cxx_try_compile "$LINENO"; then :
11209 ac_compiler_gnu=yes
11210 else
11211 ac_compiler_gnu=no
11212 fi
11213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11214 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11215
11216 fi
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11218 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11219 if test $ac_compiler_gnu = yes; then
11220 GXX=yes
11221 else
11222 GXX=
11223 fi
11224 ac_test_CXXFLAGS=${CXXFLAGS+set}
11225 ac_save_CXXFLAGS=$CXXFLAGS
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11227 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11228 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11229 $as_echo_n "(cached) " >&6
11230 else
11231 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11232 ac_cxx_werror_flag=yes
11233 ac_cv_prog_cxx_g=no
11234 CXXFLAGS="-g"
11235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11236 /* end confdefs.h. */
11237
11238 int
11239 main ()
11240 {
11241
11242 ;
11243 return 0;
11244 }
11245 _ACEOF
11246 if ac_fn_cxx_try_compile "$LINENO"; then :
11247 ac_cv_prog_cxx_g=yes
11248 else
11249 CXXFLAGS=""
11250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11251 /* end confdefs.h. */
11252
11253 int
11254 main ()
11255 {
11256
11257 ;
11258 return 0;
11259 }
11260 _ACEOF
11261 if ac_fn_cxx_try_compile "$LINENO"; then :
11262
11263 else
11264 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11265 CXXFLAGS="-g"
11266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11267 /* end confdefs.h. */
11268
11269 int
11270 main ()
11271 {
11272
11273 ;
11274 return 0;
11275 }
11276 _ACEOF
11277 if ac_fn_cxx_try_compile "$LINENO"; then :
11278 ac_cv_prog_cxx_g=yes
11279 fi
11280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11281 fi
11282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11283 fi
11284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11285 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11286 fi
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11288 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11289 if test "$ac_test_CXXFLAGS" = set; then
11290 CXXFLAGS=$ac_save_CXXFLAGS
11291 elif test $ac_cv_prog_cxx_g = yes; then
11292 if test "$GXX" = yes; then
11293 CXXFLAGS="-g -O2"
11294 else
11295 CXXFLAGS="-g"
11296 fi
11297 else
11298 if test "$GXX" = yes; then
11299 CXXFLAGS="-O2"
11300 else
11301 CXXFLAGS=
11302 fi
11303 fi
11304 ac_ext=c
11305 ac_cpp='$CPP $CPPFLAGS'
11306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11309
11310 depcc="$CXX" am_compiler_list=
11311
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11313 $as_echo_n "checking dependency style of $depcc... " >&6; }
11314 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11315 $as_echo_n "(cached) " >&6
11316 else
11317 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11318 # We make a subdir and do the tests there. Otherwise we can end up
11319 # making bogus files that we don't know about and never remove. For
11320 # instance it was reported that on HP-UX the gcc test will end up
11321 # making a dummy file named `D' -- because `-MD' means `put the output
11322 # in D'.
11323 mkdir conftest.dir
11324 # Copy depcomp to subdir because otherwise we won't find it if we're
11325 # using a relative directory.
11326 cp "$am_depcomp" conftest.dir
11327 cd conftest.dir
11328 # We will build objects and dependencies in a subdirectory because
11329 # it helps to detect inapplicable dependency modes. For instance
11330 # both Tru64's cc and ICC support -MD to output dependencies as a
11331 # side effect of compilation, but ICC will put the dependencies in
11332 # the current directory while Tru64 will put them in the object
11333 # directory.
11334 mkdir sub
11335
11336 am_cv_CXX_dependencies_compiler_type=none
11337 if test "$am_compiler_list" = ""; then
11338 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11339 fi
11340 am__universal=false
11341 case " $depcc " in #(
11342 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11343 esac
11344
11345 for depmode in $am_compiler_list; do
11346 # Setup a source with many dependencies, because some compilers
11347 # like to wrap large dependency lists on column 80 (with \), and
11348 # we should not choose a depcomp mode which is confused by this.
11349 #
11350 # We need to recreate these files for each test, as the compiler may
11351 # overwrite some of them when testing with obscure command lines.
11352 # This happens at least with the AIX C compiler.
11353 : > sub/conftest.c
11354 for i in 1 2 3 4 5 6; do
11355 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11356 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11357 # Solaris 8's {/usr,}/bin/sh.
11358 touch sub/conftst$i.h
11359 done
11360 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11361
11362 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11363 # mode. It turns out that the SunPro C++ compiler does not properly
11364 # handle `-M -o', and we need to detect this. Also, some Intel
11365 # versions had trouble with output in subdirs
11366 am__obj=sub/conftest.${OBJEXT-o}
11367 am__minus_obj="-o $am__obj"
11368 case $depmode in
11369 gcc)
11370 # This depmode causes a compiler race in universal mode.
11371 test "$am__universal" = false || continue
11372 ;;
11373 nosideeffect)
11374 # after this tag, mechanisms are not by side-effect, so they'll
11375 # only be used when explicitly requested
11376 if test "x$enable_dependency_tracking" = xyes; then
11377 continue
11378 else
11379 break
11380 fi
11381 ;;
11382 msvisualcpp | msvcmsys)
11383 # This compiler won't grok `-c -o', but also, the minuso test has
11384 # not run yet. These depmodes are late enough in the game, and
11385 # so weak that their functioning should not be impacted.
11386 am__obj=conftest.${OBJEXT-o}
11387 am__minus_obj=
11388 ;;
11389 none) break ;;
11390 esac
11391 if depmode=$depmode \
11392 source=sub/conftest.c object=$am__obj \
11393 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11394 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11395 >/dev/null 2>conftest.err &&
11396 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11397 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11398 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11399 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11400 # icc doesn't choke on unknown options, it will just issue warnings
11401 # or remarks (even with -Werror). So we grep stderr for any message
11402 # that says an option was ignored or not supported.
11403 # When given -MP, icc 7.0 and 7.1 complain thusly:
11404 # icc: Command line warning: ignoring option '-M'; no argument required
11405 # The diagnosis changed in icc 8.0:
11406 # icc: Command line remark: option '-MP' not supported
11407 if (grep 'ignoring option' conftest.err ||
11408 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11409 am_cv_CXX_dependencies_compiler_type=$depmode
11410 break
11411 fi
11412 fi
11413 done
11414
11415 cd ..
11416 rm -rf conftest.dir
11417 else
11418 am_cv_CXX_dependencies_compiler_type=none
11419 fi
11420
11421 fi
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11423 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11424 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11425
11426 if
11427 test "x$enable_dependency_tracking" != xno \
11428 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11429 am__fastdepCXX_TRUE=
11430 am__fastdepCXX_FALSE='#'
11431 else
11432 am__fastdepCXX_TRUE='#'
11433 am__fastdepCXX_FALSE=
11434 fi
11435
11436
11437 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11438 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11439 (test "X$CXX" != "Xg++"))) ; then
11440 ac_ext=cpp
11441 ac_cpp='$CXXCPP $CPPFLAGS'
11442 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11443 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11444 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11446 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11447 if test -z "$CXXCPP"; then
11448 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11449 $as_echo_n "(cached) " >&6
11450 else
11451 # Double quotes because CXXCPP needs to be expanded
11452 for CXXCPP in "$CXX -E" "/lib/cpp"
11453 do
11454 ac_preproc_ok=false
11455 for ac_cxx_preproc_warn_flag in '' yes
11456 do
11457 # Use a header file that comes with gcc, so configuring glibc
11458 # with a fresh cross-compiler works.
11459 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11460 # <limits.h> exists even on freestanding compilers.
11461 # On the NeXT, cc -E runs the code through the compiler's parser,
11462 # not just through cpp. "Syntax error" is here to catch this case.
11463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11464 /* end confdefs.h. */
11465 #ifdef __STDC__
11466 # include <limits.h>
11467 #else
11468 # include <assert.h>
11469 #endif
11470 Syntax error
11471 _ACEOF
11472 if ac_fn_cxx_try_cpp "$LINENO"; then :
11473
11474 else
11475 # Broken: fails on valid input.
11476 continue
11477 fi
11478 rm -f conftest.err conftest.i conftest.$ac_ext
11479
11480 # OK, works on sane cases. Now check whether nonexistent headers
11481 # can be detected and how.
11482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11483 /* end confdefs.h. */
11484 #include <ac_nonexistent.h>
11485 _ACEOF
11486 if ac_fn_cxx_try_cpp "$LINENO"; then :
11487 # Broken: success on invalid input.
11488 continue
11489 else
11490 # Passes both tests.
11491 ac_preproc_ok=:
11492 break
11493 fi
11494 rm -f conftest.err conftest.i conftest.$ac_ext
11495
11496 done
11497 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11498 rm -f conftest.i conftest.err conftest.$ac_ext
11499 if $ac_preproc_ok; then :
11500 break
11501 fi
11502
11503 done
11504 ac_cv_prog_CXXCPP=$CXXCPP
11505
11506 fi
11507 CXXCPP=$ac_cv_prog_CXXCPP
11508 else
11509 ac_cv_prog_CXXCPP=$CXXCPP
11510 fi
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11512 $as_echo "$CXXCPP" >&6; }
11513 ac_preproc_ok=false
11514 for ac_cxx_preproc_warn_flag in '' yes
11515 do
11516 # Use a header file that comes with gcc, so configuring glibc
11517 # with a fresh cross-compiler works.
11518 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11519 # <limits.h> exists even on freestanding compilers.
11520 # On the NeXT, cc -E runs the code through the compiler's parser,
11521 # not just through cpp. "Syntax error" is here to catch this case.
11522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11523 /* end confdefs.h. */
11524 #ifdef __STDC__
11525 # include <limits.h>
11526 #else
11527 # include <assert.h>
11528 #endif
11529 Syntax error
11530 _ACEOF
11531 if ac_fn_cxx_try_cpp "$LINENO"; then :
11532
11533 else
11534 # Broken: fails on valid input.
11535 continue
11536 fi
11537 rm -f conftest.err conftest.i conftest.$ac_ext
11538
11539 # OK, works on sane cases. Now check whether nonexistent headers
11540 # can be detected and how.
11541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11542 /* end confdefs.h. */
11543 #include <ac_nonexistent.h>
11544 _ACEOF
11545 if ac_fn_cxx_try_cpp "$LINENO"; then :
11546 # Broken: success on invalid input.
11547 continue
11548 else
11549 # Passes both tests.
11550 ac_preproc_ok=:
11551 break
11552 fi
11553 rm -f conftest.err conftest.i conftest.$ac_ext
11554
11555 done
11556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11557 rm -f conftest.i conftest.err conftest.$ac_ext
11558 if $ac_preproc_ok; then :
11559
11560 else
11561 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11563 _lt_caught_CXX_error=yes; }
11564 fi
11565
11566 ac_ext=c
11567 ac_cpp='$CPP $CPPFLAGS'
11568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11571
11572 else
11573 _lt_caught_CXX_error=yes
11574 fi
11575
11576
11577
11578
11579
11580 # Set options
11581
11582
11583
11584 enable_dlopen=no
11585
11586
11587
11588 # Check whether --enable-shared was given.
11589 if test "${enable_shared+set}" = set; then :
11590 enableval=$enable_shared; p=${PACKAGE-default}
11591 case $enableval in
11592 yes) enable_shared=yes ;;
11593 no) enable_shared=no ;;
11594 *)
11595 enable_shared=no
11596 # Look at the argument we got. We use all the common list separators.
11597 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11598 for pkg in $enableval; do
11599 IFS="$lt_save_ifs"
11600 if test "X$pkg" = "X$p"; then
11601 enable_shared=yes
11602 fi
11603 done
11604 IFS="$lt_save_ifs"
11605 ;;
11606 esac
11607 else
11608 enable_shared=yes
11609 fi
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619 # Check whether --enable-static was given.
11620 if test "${enable_static+set}" = set; then :
11621 enableval=$enable_static; p=${PACKAGE-default}
11622 case $enableval in
11623 yes) enable_static=yes ;;
11624 no) enable_static=no ;;
11625 *)
11626 enable_static=no
11627 # Look at the argument we got. We use all the common list separators.
11628 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11629 for pkg in $enableval; do
11630 IFS="$lt_save_ifs"
11631 if test "X$pkg" = "X$p"; then
11632 enable_static=yes
11633 fi
11634 done
11635 IFS="$lt_save_ifs"
11636 ;;
11637 esac
11638 else
11639 enable_static=yes
11640 fi
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651 # Check whether --with-pic was given.
11652 if test "${with_pic+set}" = set; then :
11653 withval=$with_pic; pic_mode="$withval"
11654 else
11655 pic_mode=default
11656 fi
11657
11658
11659 test -z "$pic_mode" && pic_mode=default
11660
11661
11662
11663
11664
11665
11666
11667 # Check whether --enable-fast-install was given.
11668 if test "${enable_fast_install+set}" = set; then :
11669 enableval=$enable_fast_install; p=${PACKAGE-default}
11670 case $enableval in
11671 yes) enable_fast_install=yes ;;
11672 no) enable_fast_install=no ;;
11673 *)
11674 enable_fast_install=no
11675 # Look at the argument we got. We use all the common list separators.
11676 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11677 for pkg in $enableval; do
11678 IFS="$lt_save_ifs"
11679 if test "X$pkg" = "X$p"; then
11680 enable_fast_install=yes
11681 fi
11682 done
11683 IFS="$lt_save_ifs"
11684 ;;
11685 esac
11686 else
11687 enable_fast_install=yes
11688 fi
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700 # This can be used to rebuild libtool when needed
11701 LIBTOOL_DEPS="$ltmain"
11702
11703 # Always use our own libtool.
11704 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730 test -z "$LN_S" && LN_S="ln -s"
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745 if test -n "${ZSH_VERSION+set}" ; then
11746 setopt NO_GLOB_SUBST
11747 fi
11748
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11750 $as_echo_n "checking for objdir... " >&6; }
11751 if test "${lt_cv_objdir+set}" = set; then :
11752 $as_echo_n "(cached) " >&6
11753 else
11754 rm -f .libs 2>/dev/null
11755 mkdir .libs 2>/dev/null
11756 if test -d .libs; then
11757 lt_cv_objdir=.libs
11758 else
11759 # MS-DOS does not allow filenames that begin with a dot.
11760 lt_cv_objdir=_libs
11761 fi
11762 rmdir .libs 2>/dev/null
11763 fi
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11765 $as_echo "$lt_cv_objdir" >&6; }
11766 objdir=$lt_cv_objdir
11767
11768
11769
11770
11771
11772 cat >>confdefs.h <<_ACEOF
11773 #define LT_OBJDIR "$lt_cv_objdir/"
11774 _ACEOF
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792 case $host_os in
11793 aix3*)
11794 # AIX sometimes has problems with the GCC collect2 program. For some
11795 # reason, if we set the COLLECT_NAMES environment variable, the problems
11796 # vanish in a puff of smoke.
11797 if test "X${COLLECT_NAMES+set}" != Xset; then
11798 COLLECT_NAMES=
11799 export COLLECT_NAMES
11800 fi
11801 ;;
11802 esac
11803
11804 # Sed substitution that helps us do robust quoting. It backslashifies
11805 # metacharacters that are still active within double-quoted strings.
11806 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11807
11808 # Same as above, but do not quote variable references.
11809 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11810
11811 # Sed substitution to delay expansion of an escaped shell variable in a
11812 # double_quote_subst'ed string.
11813 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11814
11815 # Sed substitution to delay expansion of an escaped single quote.
11816 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11817
11818 # Sed substitution to avoid accidental globbing in evaled expressions
11819 no_glob_subst='s/\*/\\\*/g'
11820
11821 # Global variables:
11822 ofile=libtool
11823 can_build_shared=yes
11824
11825 # All known linkers require a `.a' archive for static linking (except MSVC,
11826 # which needs '.lib').
11827 libext=a
11828
11829 with_gnu_ld="$lt_cv_prog_gnu_ld"
11830
11831 old_CC="$CC"
11832 old_CFLAGS="$CFLAGS"
11833
11834 # Set sane defaults for various variables
11835 test -z "$CC" && CC=cc
11836 test -z "$LTCC" && LTCC=$CC
11837 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11838 test -z "$LD" && LD=ld
11839 test -z "$ac_objext" && ac_objext=o
11840
11841 for cc_temp in $compiler""; do
11842 case $cc_temp in
11843 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11844 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11845 \-*) ;;
11846 *) break;;
11847 esac
11848 done
11849 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11850
11851
11852 # Only perform the check for file, if the check method requires it
11853 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11854 case $deplibs_check_method in
11855 file_magic*)
11856 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11858 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11859 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
11860 $as_echo_n "(cached) " >&6
11861 else
11862 case $MAGIC_CMD in
11863 [\\/*] | ?:[\\/]*)
11864 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11865 ;;
11866 *)
11867 lt_save_MAGIC_CMD="$MAGIC_CMD"
11868 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11869 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11870 for ac_dir in $ac_dummy; do
11871 IFS="$lt_save_ifs"
11872 test -z "$ac_dir" && ac_dir=.
11873 if test -f $ac_dir/${ac_tool_prefix}file; then
11874 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11875 if test -n "$file_magic_test_file"; then
11876 case $deplibs_check_method in
11877 "file_magic "*)
11878 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11879 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11880 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11881 $EGREP "$file_magic_regex" > /dev/null; then
11882 :
11883 else
11884 cat <<_LT_EOF 1>&2
11885
11886 *** Warning: the command libtool uses to detect shared libraries,
11887 *** $file_magic_cmd, produces output that libtool cannot recognize.
11888 *** The result is that libtool may fail to recognize shared libraries
11889 *** as such. This will affect the creation of libtool libraries that
11890 *** depend on shared libraries, but programs linked with such libtool
11891 *** libraries will work regardless of this problem. Nevertheless, you
11892 *** may want to report the problem to your system manager and/or to
11893 *** [email protected]
11894
11895 _LT_EOF
11896 fi ;;
11897 esac
11898 fi
11899 break
11900 fi
11901 done
11902 IFS="$lt_save_ifs"
11903 MAGIC_CMD="$lt_save_MAGIC_CMD"
11904 ;;
11905 esac
11906 fi
11907
11908 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11909 if test -n "$MAGIC_CMD"; then
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11911 $as_echo "$MAGIC_CMD" >&6; }
11912 else
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11914 $as_echo "no" >&6; }
11915 fi
11916
11917
11918
11919
11920
11921 if test -z "$lt_cv_path_MAGIC_CMD"; then
11922 if test -n "$ac_tool_prefix"; then
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11924 $as_echo_n "checking for file... " >&6; }
11925 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
11926 $as_echo_n "(cached) " >&6
11927 else
11928 case $MAGIC_CMD in
11929 [\\/*] | ?:[\\/]*)
11930 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11931 ;;
11932 *)
11933 lt_save_MAGIC_CMD="$MAGIC_CMD"
11934 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11935 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11936 for ac_dir in $ac_dummy; do
11937 IFS="$lt_save_ifs"
11938 test -z "$ac_dir" && ac_dir=.
11939 if test -f $ac_dir/file; then
11940 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11941 if test -n "$file_magic_test_file"; then
11942 case $deplibs_check_method in
11943 "file_magic "*)
11944 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11945 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11946 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11947 $EGREP "$file_magic_regex" > /dev/null; then
11948 :
11949 else
11950 cat <<_LT_EOF 1>&2
11951
11952 *** Warning: the command libtool uses to detect shared libraries,
11953 *** $file_magic_cmd, produces output that libtool cannot recognize.
11954 *** The result is that libtool may fail to recognize shared libraries
11955 *** as such. This will affect the creation of libtool libraries that
11956 *** depend on shared libraries, but programs linked with such libtool
11957 *** libraries will work regardless of this problem. Nevertheless, you
11958 *** may want to report the problem to your system manager and/or to
11959 *** [email protected]
11960
11961 _LT_EOF
11962 fi ;;
11963 esac
11964 fi
11965 break
11966 fi
11967 done
11968 IFS="$lt_save_ifs"
11969 MAGIC_CMD="$lt_save_MAGIC_CMD"
11970 ;;
11971 esac
11972 fi
11973
11974 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11975 if test -n "$MAGIC_CMD"; then
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11977 $as_echo "$MAGIC_CMD" >&6; }
11978 else
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11980 $as_echo "no" >&6; }
11981 fi
11982
11983
11984 else
11985 MAGIC_CMD=:
11986 fi
11987 fi
11988
11989 fi
11990 ;;
11991 esac
11992
11993 # Use C for the default configuration in the libtool script
11994
11995 lt_save_CC="$CC"
11996 ac_ext=c
11997 ac_cpp='$CPP $CPPFLAGS'
11998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12001
12002
12003 # Source file extension for C test sources.
12004 ac_ext=c
12005
12006 # Object file extension for compiled C test sources.
12007 objext=o
12008 objext=$objext
12009
12010 # Code to be used in simple compile tests
12011 lt_simple_compile_test_code="int some_variable = 0;"
12012
12013 # Code to be used in simple link tests
12014 lt_simple_link_test_code='int main(){return(0);}'
12015
12016
12017
12018
12019
12020
12021
12022 # If no C compiler was specified, use CC.
12023 LTCC=${LTCC-"$CC"}
12024
12025 # If no C compiler flags were specified, use CFLAGS.
12026 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12027
12028 # Allow CC to be a program name with arguments.
12029 compiler=$CC
12030
12031 # Save the default compiler, since it gets overwritten when the other
12032 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12033 compiler_DEFAULT=$CC
12034
12035 # save warnings/boilerplate of simple test code
12036 ac_outfile=conftest.$ac_objext
12037 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12038 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12039 _lt_compiler_boilerplate=`cat conftest.err`
12040 $RM conftest*
12041
12042 ac_outfile=conftest.$ac_objext
12043 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12044 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12045 _lt_linker_boilerplate=`cat conftest.err`
12046 $RM -r conftest*
12047
12048
12049 ## CAVEAT EMPTOR:
12050 ## There is no encapsulation within the following macros, do not change
12051 ## the running order or otherwise move them around unless you know exactly
12052 ## what you are doing...
12053 if test -n "$compiler"; then
12054
12055 lt_prog_compiler_no_builtin_flag=
12056
12057 if test "$GCC" = yes; then
12058 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12059
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12061 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12062 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
12063 $as_echo_n "(cached) " >&6
12064 else
12065 lt_cv_prog_compiler_rtti_exceptions=no
12066 ac_outfile=conftest.$ac_objext
12067 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12068 lt_compiler_flag="-fno-rtti -fno-exceptions"
12069 # Insert the option either (1) after the last *FLAGS variable, or
12070 # (2) before a word containing "conftest.", or (3) at the end.
12071 # Note that $ac_compile itself does not contain backslashes and begins
12072 # with a dollar sign (not a hyphen), so the echo should work correctly.
12073 # The option is referenced via a variable to avoid confusing sed.
12074 lt_compile=`echo "$ac_compile" | $SED \
12075 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12076 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12077 -e 's:$: $lt_compiler_flag:'`
12078 (eval echo "\"\$as_me:12078: $lt_compile\"" >&5)
12079 (eval "$lt_compile" 2>conftest.err)
12080 ac_status=$?
12081 cat conftest.err >&5
12082 echo "$as_me:12082: \$? = $ac_status" >&5
12083 if (exit $ac_status) && test -s "$ac_outfile"; then
12084 # The compiler can only warn and ignore the option if not recognized
12085 # So say no if there are warnings other than the usual output.
12086 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12087 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12088 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12089 lt_cv_prog_compiler_rtti_exceptions=yes
12090 fi
12091 fi
12092 $RM conftest*
12093
12094 fi
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12096 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12097
12098 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12099 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12100 else
12101 :
12102 fi
12103
12104 fi
12105
12106
12107
12108
12109
12110
12111 lt_prog_compiler_wl=
12112 lt_prog_compiler_pic=
12113 lt_prog_compiler_static=
12114
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12116 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12117
12118 if test "$GCC" = yes; then
12119 lt_prog_compiler_wl='-Wl,'
12120 lt_prog_compiler_static='-static'
12121
12122 case $host_os in
12123 aix*)
12124 # All AIX code is PIC.
12125 if test "$host_cpu" = ia64; then
12126 # AIX 5 now supports IA64 processor
12127 lt_prog_compiler_static='-Bstatic'
12128 fi
12129 ;;
12130
12131 amigaos*)
12132 case $host_cpu in
12133 powerpc)
12134 # see comment about AmigaOS4 .so support
12135 lt_prog_compiler_pic='-fPIC'
12136 ;;
12137 m68k)
12138 # FIXME: we need at least 68020 code to build shared libraries, but
12139 # adding the `-m68020' flag to GCC prevents building anything better,
12140 # like `-m68040'.
12141 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12142 ;;
12143 esac
12144 ;;
12145
12146 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12147 # PIC is the default for these OSes.
12148 ;;
12149
12150 mingw* | cygwin* | pw32* | os2* | cegcc*)
12151 # This hack is so that the source file can tell whether it is being
12152 # built for inclusion in a dll (and should export symbols for example).
12153 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12154 # (--disable-auto-import) libraries
12155 lt_prog_compiler_pic='-DDLL_EXPORT'
12156 ;;
12157
12158 darwin* | rhapsody*)
12159 # PIC is the default on this platform
12160 # Common symbols not allowed in MH_DYLIB files
12161 lt_prog_compiler_pic='-fno-common'
12162 ;;
12163
12164 hpux*)
12165 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12166 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12167 # sets the default TLS model and affects inlining.
12168 case $host_cpu in
12169 hppa*64*)
12170 # +Z the default
12171 ;;
12172 *)
12173 lt_prog_compiler_pic='-fPIC'
12174 ;;
12175 esac
12176 ;;
12177
12178 interix[3-9]*)
12179 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12180 # Instead, we relocate shared libraries at runtime.
12181 ;;
12182
12183 msdosdjgpp*)
12184 # Just because we use GCC doesn't mean we suddenly get shared libraries
12185 # on systems that don't support them.
12186 lt_prog_compiler_can_build_shared=no
12187 enable_shared=no
12188 ;;
12189
12190 *nto* | *qnx*)
12191 # QNX uses GNU C++, but need to define -shared option too, otherwise
12192 # it will coredump.
12193 lt_prog_compiler_pic='-fPIC -shared'
12194 ;;
12195
12196 sysv4*MP*)
12197 if test -d /usr/nec; then
12198 lt_prog_compiler_pic=-Kconform_pic
12199 fi
12200 ;;
12201
12202 *)
12203 lt_prog_compiler_pic='-fPIC'
12204 ;;
12205 esac
12206 else
12207 # PORTME Check for flag to pass linker flags through the system compiler.
12208 case $host_os in
12209 aix*)
12210 lt_prog_compiler_wl='-Wl,'
12211 if test "$host_cpu" = ia64; then
12212 # AIX 5 now supports IA64 processor
12213 lt_prog_compiler_static='-Bstatic'
12214 else
12215 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12216 fi
12217 ;;
12218
12219 mingw* | cygwin* | pw32* | os2* | cegcc*)
12220 # This hack is so that the source file can tell whether it is being
12221 # built for inclusion in a dll (and should export symbols for example).
12222 lt_prog_compiler_pic='-DDLL_EXPORT'
12223 ;;
12224
12225 hpux9* | hpux10* | hpux11*)
12226 lt_prog_compiler_wl='-Wl,'
12227 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12228 # not for PA HP-UX.
12229 case $host_cpu in
12230 hppa*64*|ia64*)
12231 # +Z the default
12232 ;;
12233 *)
12234 lt_prog_compiler_pic='+Z'
12235 ;;
12236 esac
12237 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12238 lt_prog_compiler_static='${wl}-a ${wl}archive'
12239 ;;
12240
12241 irix5* | irix6* | nonstopux*)
12242 lt_prog_compiler_wl='-Wl,'
12243 # PIC (with -KPIC) is the default.
12244 lt_prog_compiler_static='-non_shared'
12245 ;;
12246
12247 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12248 case $cc_basename in
12249 # old Intel for x86_64 which still supported -KPIC.
12250 ecc*)
12251 lt_prog_compiler_wl='-Wl,'
12252 lt_prog_compiler_pic='-KPIC'
12253 lt_prog_compiler_static='-static'
12254 ;;
12255 # icc used to be incompatible with GCC.
12256 # ICC 10 doesn't accept -KPIC any more.
12257 icc* | ifort*)
12258 lt_prog_compiler_wl='-Wl,'
12259 lt_prog_compiler_pic='-fPIC'
12260 lt_prog_compiler_static='-static'
12261 ;;
12262 # Lahey Fortran 8.1.
12263 lf95*)
12264 lt_prog_compiler_wl='-Wl,'
12265 lt_prog_compiler_pic='--shared'
12266 lt_prog_compiler_static='--static'
12267 ;;
12268 pgcc* | pgf77* | pgf90* | pgf95*)
12269 # Portland Group compilers (*not* the Pentium gcc compiler,
12270 # which looks to be a dead project)
12271 lt_prog_compiler_wl='-Wl,'
12272 lt_prog_compiler_pic='-fpic'
12273 lt_prog_compiler_static='-Bstatic'
12274 ;;
12275 ccc*)
12276 lt_prog_compiler_wl='-Wl,'
12277 # All Alpha code is PIC.
12278 lt_prog_compiler_static='-non_shared'
12279 ;;
12280 xl*)
12281 # IBM XL C 8.0/Fortran 10.1 on PPC
12282 lt_prog_compiler_wl='-Wl,'
12283 lt_prog_compiler_pic='-qpic'
12284 lt_prog_compiler_static='-qstaticlink'
12285 ;;
12286 *)
12287 case `$CC -V 2>&1 | sed 5q` in
12288 *Sun\ C*)
12289 # Sun C 5.9
12290 lt_prog_compiler_pic='-KPIC'
12291 lt_prog_compiler_static='-Bstatic'
12292 lt_prog_compiler_wl='-Wl,'
12293 ;;
12294 *Sun\ F*)
12295 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12296 lt_prog_compiler_pic='-KPIC'
12297 lt_prog_compiler_static='-Bstatic'
12298 lt_prog_compiler_wl=''
12299 ;;
12300 esac
12301 ;;
12302 esac
12303 ;;
12304
12305 newsos6)
12306 lt_prog_compiler_pic='-KPIC'
12307 lt_prog_compiler_static='-Bstatic'
12308 ;;
12309
12310 *nto* | *qnx*)
12311 # QNX uses GNU C++, but need to define -shared option too, otherwise
12312 # it will coredump.
12313 lt_prog_compiler_pic='-fPIC -shared'
12314 ;;
12315
12316 osf3* | osf4* | osf5*)
12317 lt_prog_compiler_wl='-Wl,'
12318 # All OSF/1 code is PIC.
12319 lt_prog_compiler_static='-non_shared'
12320 ;;
12321
12322 rdos*)
12323 lt_prog_compiler_static='-non_shared'
12324 ;;
12325
12326 solaris*)
12327 lt_prog_compiler_pic='-KPIC'
12328 lt_prog_compiler_static='-Bstatic'
12329 case $cc_basename in
12330 f77* | f90* | f95*)
12331 lt_prog_compiler_wl='-Qoption ld ';;
12332 *)
12333 lt_prog_compiler_wl='-Wl,';;
12334 esac
12335 ;;
12336
12337 sunos4*)
12338 lt_prog_compiler_wl='-Qoption ld '
12339 lt_prog_compiler_pic='-PIC'
12340 lt_prog_compiler_static='-Bstatic'
12341 ;;
12342
12343 sysv4 | sysv4.2uw2* | sysv4.3*)
12344 lt_prog_compiler_wl='-Wl,'
12345 lt_prog_compiler_pic='-KPIC'
12346 lt_prog_compiler_static='-Bstatic'
12347 ;;
12348
12349 sysv4*MP*)
12350 if test -d /usr/nec ;then
12351 lt_prog_compiler_pic='-Kconform_pic'
12352 lt_prog_compiler_static='-Bstatic'
12353 fi
12354 ;;
12355
12356 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12357 lt_prog_compiler_wl='-Wl,'
12358 lt_prog_compiler_pic='-KPIC'
12359 lt_prog_compiler_static='-Bstatic'
12360 ;;
12361
12362 unicos*)
12363 lt_prog_compiler_wl='-Wl,'
12364 lt_prog_compiler_can_build_shared=no
12365 ;;
12366
12367 uts4*)
12368 lt_prog_compiler_pic='-pic'
12369 lt_prog_compiler_static='-Bstatic'
12370 ;;
12371
12372 *)
12373 lt_prog_compiler_can_build_shared=no
12374 ;;
12375 esac
12376 fi
12377
12378 case $host_os in
12379 # For platforms which do not support PIC, -DPIC is meaningless:
12380 *djgpp*)
12381 lt_prog_compiler_pic=
12382 ;;
12383 *)
12384 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12385 ;;
12386 esac
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
12388 $as_echo "$lt_prog_compiler_pic" >&6; }
12389
12390
12391
12392
12393
12394
12395 #
12396 # Check to make sure the PIC flag actually works.
12397 #
12398 if test -n "$lt_prog_compiler_pic"; then
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12400 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12401 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
12402 $as_echo_n "(cached) " >&6
12403 else
12404 lt_cv_prog_compiler_pic_works=no
12405 ac_outfile=conftest.$ac_objext
12406 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12407 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12408 # Insert the option either (1) after the last *FLAGS variable, or
12409 # (2) before a word containing "conftest.", or (3) at the end.
12410 # Note that $ac_compile itself does not contain backslashes and begins
12411 # with a dollar sign (not a hyphen), so the echo should work correctly.
12412 # The option is referenced via a variable to avoid confusing sed.
12413 lt_compile=`echo "$ac_compile" | $SED \
12414 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12415 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12416 -e 's:$: $lt_compiler_flag:'`
12417 (eval echo "\"\$as_me:12417: $lt_compile\"" >&5)
12418 (eval "$lt_compile" 2>conftest.err)
12419 ac_status=$?
12420 cat conftest.err >&5
12421 echo "$as_me:12421: \$? = $ac_status" >&5
12422 if (exit $ac_status) && test -s "$ac_outfile"; then
12423 # The compiler can only warn and ignore the option if not recognized
12424 # So say no if there are warnings other than the usual output.
12425 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12426 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12427 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12428 lt_cv_prog_compiler_pic_works=yes
12429 fi
12430 fi
12431 $RM conftest*
12432
12433 fi
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12435 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12436
12437 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12438 case $lt_prog_compiler_pic in
12439 "" | " "*) ;;
12440 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12441 esac
12442 else
12443 lt_prog_compiler_pic=
12444 lt_prog_compiler_can_build_shared=no
12445 fi
12446
12447 fi
12448
12449
12450
12451
12452
12453
12454 #
12455 # Check to make sure the static flag actually works.
12456 #
12457 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12459 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12460 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
12461 $as_echo_n "(cached) " >&6
12462 else
12463 lt_cv_prog_compiler_static_works=no
12464 save_LDFLAGS="$LDFLAGS"
12465 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12466 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12467 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12468 # The linker can only warn and ignore the option if not recognized
12469 # So say no if there are warnings
12470 if test -s conftest.err; then
12471 # Append any errors to the config.log.
12472 cat conftest.err 1>&5
12473 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12474 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12475 if diff conftest.exp conftest.er2 >/dev/null; then
12476 lt_cv_prog_compiler_static_works=yes
12477 fi
12478 else
12479 lt_cv_prog_compiler_static_works=yes
12480 fi
12481 fi
12482 $RM -r conftest*
12483 LDFLAGS="$save_LDFLAGS"
12484
12485 fi
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12487 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12488
12489 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12490 :
12491 else
12492 lt_prog_compiler_static=
12493 fi
12494
12495
12496
12497
12498
12499
12500
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12502 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12503 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
12504 $as_echo_n "(cached) " >&6
12505 else
12506 lt_cv_prog_compiler_c_o=no
12507 $RM -r conftest 2>/dev/null
12508 mkdir conftest
12509 cd conftest
12510 mkdir out
12511 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12512
12513 lt_compiler_flag="-o out/conftest2.$ac_objext"
12514 # Insert the option either (1) after the last *FLAGS variable, or
12515 # (2) before a word containing "conftest.", or (3) at the end.
12516 # Note that $ac_compile itself does not contain backslashes and begins
12517 # with a dollar sign (not a hyphen), so the echo should work correctly.
12518 lt_compile=`echo "$ac_compile" | $SED \
12519 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12520 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12521 -e 's:$: $lt_compiler_flag:'`
12522 (eval echo "\"\$as_me:12522: $lt_compile\"" >&5)
12523 (eval "$lt_compile" 2>out/conftest.err)
12524 ac_status=$?
12525 cat out/conftest.err >&5
12526 echo "$as_me:12526: \$? = $ac_status" >&5
12527 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12528 then
12529 # The compiler can only warn and ignore the option if not recognized
12530 # So say no if there are warnings
12531 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12532 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12533 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12534 lt_cv_prog_compiler_c_o=yes
12535 fi
12536 fi
12537 chmod u+w . 2>&5
12538 $RM conftest*
12539 # SGI C++ compiler will create directory out/ii_files/ for
12540 # template instantiation
12541 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12542 $RM out/* && rmdir out
12543 cd ..
12544 $RM -r conftest
12545 $RM conftest*
12546
12547 fi
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12549 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12550
12551
12552
12553
12554
12555
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12557 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12558 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
12559 $as_echo_n "(cached) " >&6
12560 else
12561 lt_cv_prog_compiler_c_o=no
12562 $RM -r conftest 2>/dev/null
12563 mkdir conftest
12564 cd conftest
12565 mkdir out
12566 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12567
12568 lt_compiler_flag="-o out/conftest2.$ac_objext"
12569 # Insert the option either (1) after the last *FLAGS variable, or
12570 # (2) before a word containing "conftest.", or (3) at the end.
12571 # Note that $ac_compile itself does not contain backslashes and begins
12572 # with a dollar sign (not a hyphen), so the echo should work correctly.
12573 lt_compile=`echo "$ac_compile" | $SED \
12574 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12575 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12576 -e 's:$: $lt_compiler_flag:'`
12577 (eval echo "\"\$as_me:12577: $lt_compile\"" >&5)
12578 (eval "$lt_compile" 2>out/conftest.err)
12579 ac_status=$?
12580 cat out/conftest.err >&5
12581 echo "$as_me:12581: \$? = $ac_status" >&5
12582 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12583 then
12584 # The compiler can only warn and ignore the option if not recognized
12585 # So say no if there are warnings
12586 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12587 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12588 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12589 lt_cv_prog_compiler_c_o=yes
12590 fi
12591 fi
12592 chmod u+w . 2>&5
12593 $RM conftest*
12594 # SGI C++ compiler will create directory out/ii_files/ for
12595 # template instantiation
12596 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12597 $RM out/* && rmdir out
12598 cd ..
12599 $RM -r conftest
12600 $RM conftest*
12601
12602 fi
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12604 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12605
12606
12607
12608
12609 hard_links="nottested"
12610 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12611 # do not overwrite the value of need_locks provided by the user
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12613 $as_echo_n "checking if we can lock with hard links... " >&6; }
12614 hard_links=yes
12615 $RM conftest*
12616 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12617 touch conftest.a
12618 ln conftest.a conftest.b 2>&5 || hard_links=no
12619 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12621 $as_echo "$hard_links" >&6; }
12622 if test "$hard_links" = no; then
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12624 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12625 need_locks=warn
12626 fi
12627 else
12628 need_locks=no
12629 fi
12630
12631
12632
12633
12634
12635
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12637 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12638
12639 runpath_var=
12640 allow_undefined_flag=
12641 always_export_symbols=no
12642 archive_cmds=
12643 archive_expsym_cmds=
12644 compiler_needs_object=no
12645 enable_shared_with_static_runtimes=no
12646 export_dynamic_flag_spec=
12647 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12648 hardcode_automatic=no
12649 hardcode_direct=no
12650 hardcode_direct_absolute=no
12651 hardcode_libdir_flag_spec=
12652 hardcode_libdir_flag_spec_ld=
12653 hardcode_libdir_separator=
12654 hardcode_minus_L=no
12655 hardcode_shlibpath_var=unsupported
12656 inherit_rpath=no
12657 link_all_deplibs=unknown
12658 module_cmds=
12659 module_expsym_cmds=
12660 old_archive_from_new_cmds=
12661 old_archive_from_expsyms_cmds=
12662 thread_safe_flag_spec=
12663 whole_archive_flag_spec=
12664 # include_expsyms should be a list of space-separated symbols to be *always*
12665 # included in the symbol list
12666 include_expsyms=
12667 # exclude_expsyms can be an extended regexp of symbols to exclude
12668 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12669 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12670 # as well as any symbol that contains `d'.
12671 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12672 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12673 # platforms (ab)use it in PIC code, but their linkers get confused if
12674 # the symbol is explicitly referenced. Since portable code cannot
12675 # rely on this symbol name, it's probably fine to never include it in
12676 # preloaded symbol tables.
12677 # Exclude shared library initialization/finalization symbols.
12678 extract_expsyms_cmds=
12679
12680 case $host_os in
12681 cygwin* | mingw* | pw32* | cegcc*)
12682 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12683 # When not using gcc, we currently assume that we are using
12684 # Microsoft Visual C++.
12685 if test "$GCC" != yes; then
12686 with_gnu_ld=no
12687 fi
12688 ;;
12689 interix*)
12690 # we just hope/assume this is gcc and not c89 (= MSVC++)
12691 with_gnu_ld=yes
12692 ;;
12693 openbsd*)
12694 with_gnu_ld=no
12695 ;;
12696 linux* | k*bsd*-gnu)
12697 link_all_deplibs=no
12698 ;;
12699 esac
12700
12701 ld_shlibs=yes
12702 if test "$with_gnu_ld" = yes; then
12703 # If archive_cmds runs LD, not CC, wlarc should be empty
12704 wlarc='${wl}'
12705
12706 # Set some defaults for GNU ld with shared library support. These
12707 # are reset later if shared libraries are not supported. Putting them
12708 # here allows them to be overridden if necessary.
12709 runpath_var=LD_RUN_PATH
12710 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12711 export_dynamic_flag_spec='${wl}--export-dynamic'
12712 # ancient GNU ld didn't support --whole-archive et. al.
12713 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12714 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12715 else
12716 whole_archive_flag_spec=
12717 fi
12718 supports_anon_versioning=no
12719 case `$LD -v 2>&1` in
12720 *GNU\ gold*) supports_anon_versioning=yes ;;
12721 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12722 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12723 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12724 *\ 2.11.*) ;; # other 2.11 versions
12725 *) supports_anon_versioning=yes ;;
12726 esac
12727
12728 # See if GNU ld supports shared libraries.
12729 case $host_os in
12730 aix[3-9]*)
12731 # On AIX/PPC, the GNU linker is very broken
12732 if test "$host_cpu" != ia64; then
12733 ld_shlibs=no
12734 cat <<_LT_EOF 1>&2
12735
12736 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12737 *** to be unable to reliably create shared libraries on AIX.
12738 *** Therefore, libtool is disabling shared libraries support. If you
12739 *** really care for shared libraries, you may want to modify your PATH
12740 *** so that a non-GNU linker is found, and then restart.
12741
12742 _LT_EOF
12743 fi
12744 ;;
12745
12746 amigaos*)
12747 case $host_cpu in
12748 powerpc)
12749 # see comment about AmigaOS4 .so support
12750 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12751 archive_expsym_cmds=''
12752 ;;
12753 m68k)
12754 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)'
12755 hardcode_libdir_flag_spec='-L$libdir'
12756 hardcode_minus_L=yes
12757 ;;
12758 esac
12759 ;;
12760
12761 beos*)
12762 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12763 allow_undefined_flag=unsupported
12764 # Joseph Beckenbach <[email protected]> says some releases of gcc
12765 # support --undefined. This deserves some investigation. FIXME
12766 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12767 else
12768 ld_shlibs=no
12769 fi
12770 ;;
12771
12772 cygwin* | mingw* | pw32* | cegcc*)
12773 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12774 # as there is no search path for DLLs.
12775 hardcode_libdir_flag_spec='-L$libdir'
12776 allow_undefined_flag=unsupported
12777 always_export_symbols=no
12778 enable_shared_with_static_runtimes=yes
12779 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12780
12781 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12782 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12783 # If the export-symbols file already is a .def file (1st line
12784 # is EXPORTS), use it as is; otherwise, prepend...
12785 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12786 cp $export_symbols $output_objdir/$soname.def;
12787 else
12788 echo EXPORTS > $output_objdir/$soname.def;
12789 cat $export_symbols >> $output_objdir/$soname.def;
12790 fi~
12791 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12792 else
12793 ld_shlibs=no
12794 fi
12795 ;;
12796
12797 interix[3-9]*)
12798 hardcode_direct=no
12799 hardcode_shlibpath_var=no
12800 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12801 export_dynamic_flag_spec='${wl}-E'
12802 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12803 # Instead, shared libraries are loaded at an image base (0x10000000 by
12804 # default) and relocated if they conflict, which is a slow very memory
12805 # consuming and fragmenting process. To avoid this, we pick a random,
12806 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12807 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12808 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12809 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'
12810 ;;
12811
12812 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12813 tmp_diet=no
12814 if test "$host_os" = linux-dietlibc; then
12815 case $cc_basename in
12816 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12817 esac
12818 fi
12819 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12820 && test "$tmp_diet" = no
12821 then
12822 tmp_addflag=
12823 tmp_sharedflag='-shared'
12824 case $cc_basename,$host_cpu in
12825 pgcc*) # Portland Group C compiler
12826 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'
12827 tmp_addflag=' $pic_flag'
12828 ;;
12829 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
12830 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'
12831 tmp_addflag=' $pic_flag -Mnomain' ;;
12832 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12833 tmp_addflag=' -i_dynamic' ;;
12834 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12835 tmp_addflag=' -i_dynamic -nofor_main' ;;
12836 ifc* | ifort*) # Intel Fortran compiler
12837 tmp_addflag=' -nofor_main' ;;
12838 lf95*) # Lahey Fortran 8.1
12839 whole_archive_flag_spec=
12840 tmp_sharedflag='--shared' ;;
12841 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12842 tmp_sharedflag='-qmkshrobj'
12843 tmp_addflag= ;;
12844 esac
12845 case `$CC -V 2>&1 | sed 5q` in
12846 *Sun\ C*) # Sun C 5.9
12847 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'
12848 compiler_needs_object=yes
12849 tmp_sharedflag='-G' ;;
12850 *Sun\ F*) # Sun Fortran 8.3
12851 tmp_sharedflag='-G' ;;
12852 esac
12853 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12854
12855 if test "x$supports_anon_versioning" = xyes; then
12856 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12857 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12858 echo "local: *; };" >> $output_objdir/$libname.ver~
12859 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12860 fi
12861
12862 case $cc_basename in
12863 xlf*)
12864 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12865 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12866 hardcode_libdir_flag_spec=
12867 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12868 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12869 if test "x$supports_anon_versioning" = xyes; then
12870 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12871 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12872 echo "local: *; };" >> $output_objdir/$libname.ver~
12873 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12874 fi
12875 ;;
12876 esac
12877 else
12878 ld_shlibs=no
12879 fi
12880 ;;
12881
12882 netbsd* | netbsdelf*-gnu)
12883 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12884 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12885 wlarc=
12886 else
12887 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12888 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12889 fi
12890 ;;
12891
12892 solaris*)
12893 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12894 ld_shlibs=no
12895 cat <<_LT_EOF 1>&2
12896
12897 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12898 *** create shared libraries on Solaris systems. Therefore, libtool
12899 *** is disabling shared libraries support. We urge you to upgrade GNU
12900 *** binutils to release 2.9.1 or newer. Another option is to modify
12901 *** your PATH or compiler configuration so that the native linker is
12902 *** used, and then restart.
12903
12904 _LT_EOF
12905 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12906 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12907 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12908 else
12909 ld_shlibs=no
12910 fi
12911 ;;
12912
12913 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12914 case `$LD -v 2>&1` in
12915 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12916 ld_shlibs=no
12917 cat <<_LT_EOF 1>&2
12918
12919 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12920 *** reliably create shared libraries on SCO systems. Therefore, libtool
12921 *** is disabling shared libraries support. We urge you to upgrade GNU
12922 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12923 *** your PATH or compiler configuration so that the native linker is
12924 *** used, and then restart.
12925
12926 _LT_EOF
12927 ;;
12928 *)
12929 # For security reasons, it is highly recommended that you always
12930 # use absolute paths for naming shared libraries, and exclude the
12931 # DT_RUNPATH tag from executables and libraries. But doing so
12932 # requires that you compile everything twice, which is a pain.
12933 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12934 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12935 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12936 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12937 else
12938 ld_shlibs=no
12939 fi
12940 ;;
12941 esac
12942 ;;
12943
12944 sunos4*)
12945 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12946 wlarc=
12947 hardcode_direct=yes
12948 hardcode_shlibpath_var=no
12949 ;;
12950
12951 *)
12952 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12953 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12954 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12955 else
12956 ld_shlibs=no
12957 fi
12958 ;;
12959 esac
12960
12961 if test "$ld_shlibs" = no; then
12962 runpath_var=
12963 hardcode_libdir_flag_spec=
12964 export_dynamic_flag_spec=
12965 whole_archive_flag_spec=
12966 fi
12967 else
12968 # PORTME fill in a description of your system's linker (not GNU ld)
12969 case $host_os in
12970 aix3*)
12971 allow_undefined_flag=unsupported
12972 always_export_symbols=yes
12973 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'
12974 # Note: this linker hardcodes the directories in LIBPATH if there
12975 # are no directories specified by -L.
12976 hardcode_minus_L=yes
12977 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12978 # Neither direct hardcoding nor static linking is supported with a
12979 # broken collect2.
12980 hardcode_direct=unsupported
12981 fi
12982 ;;
12983
12984 aix[4-9]*)
12985 if test "$host_cpu" = ia64; then
12986 # On IA64, the linker does run time linking by default, so we don't
12987 # have to do anything special.
12988 aix_use_runtimelinking=no
12989 exp_sym_flag='-Bexport'
12990 no_entry_flag=""
12991 else
12992 # If we're using GNU nm, then we don't want the "-C" option.
12993 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12994 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12995 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'
12996 else
12997 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'
12998 fi
12999 aix_use_runtimelinking=no
13000
13001 # Test if we are trying to use run time linking or normal
13002 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13003 # need to do runtime linking.
13004 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13005 for ld_flag in $LDFLAGS; do
13006 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13007 aix_use_runtimelinking=yes
13008 break
13009 fi
13010 done
13011 ;;
13012 esac
13013
13014 exp_sym_flag='-bexport'
13015 no_entry_flag='-bnoentry'
13016 fi
13017
13018 # When large executables or shared objects are built, AIX ld can
13019 # have problems creating the table of contents. If linking a library
13020 # or program results in "error TOC overflow" add -mminimal-toc to
13021 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13022 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13023
13024 archive_cmds=''
13025 hardcode_direct=yes
13026 hardcode_direct_absolute=yes
13027 hardcode_libdir_separator=':'
13028 link_all_deplibs=yes
13029 file_list_spec='${wl}-f,'
13030
13031 if test "$GCC" = yes; then
13032 case $host_os in aix4.[012]|aix4.[012].*)
13033 # We only want to do this on AIX 4.2 and lower, the check
13034 # below for broken collect2 doesn't work under 4.3+
13035 collect2name=`${CC} -print-prog-name=collect2`
13036 if test -f "$collect2name" &&
13037 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13038 then
13039 # We have reworked collect2
13040 :
13041 else
13042 # We have old collect2
13043 hardcode_direct=unsupported
13044 # It fails to find uninstalled libraries when the uninstalled
13045 # path is not listed in the libpath. Setting hardcode_minus_L
13046 # to unsupported forces relinking
13047 hardcode_minus_L=yes
13048 hardcode_libdir_flag_spec='-L$libdir'
13049 hardcode_libdir_separator=
13050 fi
13051 ;;
13052 esac
13053 shared_flag='-shared'
13054 if test "$aix_use_runtimelinking" = yes; then
13055 shared_flag="$shared_flag "'${wl}-G'
13056 fi
13057 link_all_deplibs=no
13058 else
13059 # not using gcc
13060 if test "$host_cpu" = ia64; then
13061 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13062 # chokes on -Wl,-G. The following line is correct:
13063 shared_flag='-G'
13064 else
13065 if test "$aix_use_runtimelinking" = yes; then
13066 shared_flag='${wl}-G'
13067 else
13068 shared_flag='${wl}-bM:SRE'
13069 fi
13070 fi
13071 fi
13072
13073 export_dynamic_flag_spec='${wl}-bexpall'
13074 # It seems that -bexpall does not export symbols beginning with
13075 # underscore (_), so it is better to generate a list of symbols to export.
13076 always_export_symbols=yes
13077 if test "$aix_use_runtimelinking" = yes; then
13078 # Warning - without using the other runtime loading flags (-brtl),
13079 # -berok will link without error, but may produce a broken library.
13080 allow_undefined_flag='-berok'
13081 # Determine the default libpath from the value encoded in an
13082 # empty executable.
13083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13084 /* end confdefs.h. */
13085
13086 int
13087 main ()
13088 {
13089
13090 ;
13091 return 0;
13092 }
13093 _ACEOF
13094 if ac_fn_c_try_link "$LINENO"; then :
13095
13096 lt_aix_libpath_sed='
13097 /Import File Strings/,/^$/ {
13098 /^0/ {
13099 s/^0 *\(.*\)$/\1/
13100 p
13101 }
13102 }'
13103 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13104 # Check for a 64-bit object if we didn't find anything.
13105 if test -z "$aix_libpath"; then
13106 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13107 fi
13108 fi
13109 rm -f core conftest.err conftest.$ac_objext \
13110 conftest$ac_exeext conftest.$ac_ext
13111 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13112
13113 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13114 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"
13115 else
13116 if test "$host_cpu" = ia64; then
13117 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13118 allow_undefined_flag="-z nodefs"
13119 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"
13120 else
13121 # Determine the default libpath from the value encoded in an
13122 # empty executable.
13123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13124 /* end confdefs.h. */
13125
13126 int
13127 main ()
13128 {
13129
13130 ;
13131 return 0;
13132 }
13133 _ACEOF
13134 if ac_fn_c_try_link "$LINENO"; then :
13135
13136 lt_aix_libpath_sed='
13137 /Import File Strings/,/^$/ {
13138 /^0/ {
13139 s/^0 *\(.*\)$/\1/
13140 p
13141 }
13142 }'
13143 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13144 # Check for a 64-bit object if we didn't find anything.
13145 if test -z "$aix_libpath"; then
13146 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13147 fi
13148 fi
13149 rm -f core conftest.err conftest.$ac_objext \
13150 conftest$ac_exeext conftest.$ac_ext
13151 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13152
13153 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13154 # Warning - without using the other run time loading flags,
13155 # -berok will link without error, but may produce a broken library.
13156 no_undefined_flag=' ${wl}-bernotok'
13157 allow_undefined_flag=' ${wl}-berok'
13158 # Exported symbols can be pulled into shared objects from archives
13159 whole_archive_flag_spec='$convenience'
13160 archive_cmds_need_lc=yes
13161 # This is similar to how AIX traditionally builds its shared libraries.
13162 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'
13163 fi
13164 fi
13165 ;;
13166
13167 amigaos*)
13168 case $host_cpu in
13169 powerpc)
13170 # see comment about AmigaOS4 .so support
13171 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13172 archive_expsym_cmds=''
13173 ;;
13174 m68k)
13175 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)'
13176 hardcode_libdir_flag_spec='-L$libdir'
13177 hardcode_minus_L=yes
13178 ;;
13179 esac
13180 ;;
13181
13182 bsdi[45]*)
13183 export_dynamic_flag_spec=-rdynamic
13184 ;;
13185
13186 cygwin* | mingw* | pw32* | cegcc*)
13187 # When not using gcc, we currently assume that we are using
13188 # Microsoft Visual C++.
13189 # hardcode_libdir_flag_spec is actually meaningless, as there is
13190 # no search path for DLLs.
13191 hardcode_libdir_flag_spec=' '
13192 allow_undefined_flag=unsupported
13193 # Tell ltmain to make .lib files, not .a files.
13194 libext=lib
13195 # Tell ltmain to make .dll files, not .so files.
13196 shrext_cmds=".dll"
13197 # FIXME: Setting linknames here is a bad hack.
13198 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
13199 # The linker will automatically build a .lib file if we build a DLL.
13200 old_archive_from_new_cmds='true'
13201 # FIXME: Should let the user specify the lib program.
13202 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13203 fix_srcfile_path='`cygpath -w "$srcfile"`'
13204 enable_shared_with_static_runtimes=yes
13205 ;;
13206
13207 darwin* | rhapsody*)
13208
13209
13210 archive_cmds_need_lc=no
13211 hardcode_direct=no
13212 hardcode_automatic=yes
13213 hardcode_shlibpath_var=unsupported
13214 whole_archive_flag_spec=''
13215 link_all_deplibs=yes
13216 allow_undefined_flag="$_lt_dar_allow_undefined"
13217 case $cc_basename in
13218 ifort*) _lt_dar_can_shared=yes ;;
13219 *) _lt_dar_can_shared=$GCC ;;
13220 esac
13221 if test "$_lt_dar_can_shared" = "yes"; then
13222 output_verbose_link_cmd=echo
13223 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13224 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13225 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}"
13226 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}"
13227
13228 else
13229 ld_shlibs=no
13230 fi
13231
13232 ;;
13233
13234 dgux*)
13235 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13236 hardcode_libdir_flag_spec='-L$libdir'
13237 hardcode_shlibpath_var=no
13238 ;;
13239
13240 freebsd1*)
13241 ld_shlibs=no
13242 ;;
13243
13244 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13245 # support. Future versions do this automatically, but an explicit c++rt0.o
13246 # does not break anything, and helps significantly (at the cost of a little
13247 # extra space).
13248 freebsd2.2*)
13249 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13250 hardcode_libdir_flag_spec='-R$libdir'
13251 hardcode_direct=yes
13252 hardcode_shlibpath_var=no
13253 ;;
13254
13255 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13256 freebsd2*)
13257 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13258 hardcode_direct=yes
13259 hardcode_minus_L=yes
13260 hardcode_shlibpath_var=no
13261 ;;
13262
13263 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13264 freebsd* | dragonfly*)
13265 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13266 hardcode_libdir_flag_spec='-R$libdir'
13267 hardcode_direct=yes
13268 hardcode_shlibpath_var=no
13269 ;;
13270
13271 hpux9*)
13272 if test "$GCC" = yes; then
13273 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'
13274 else
13275 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'
13276 fi
13277 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13278 hardcode_libdir_separator=:
13279 hardcode_direct=yes
13280
13281 # hardcode_minus_L: Not really in the search PATH,
13282 # but as the default location of the library.
13283 hardcode_minus_L=yes
13284 export_dynamic_flag_spec='${wl}-E'
13285 ;;
13286
13287 hpux10*)
13288 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13289 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13290 else
13291 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13292 fi
13293 if test "$with_gnu_ld" = no; then
13294 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13295 hardcode_libdir_flag_spec_ld='+b $libdir'
13296 hardcode_libdir_separator=:
13297 hardcode_direct=yes
13298 hardcode_direct_absolute=yes
13299 export_dynamic_flag_spec='${wl}-E'
13300 # hardcode_minus_L: Not really in the search PATH,
13301 # but as the default location of the library.
13302 hardcode_minus_L=yes
13303 fi
13304 ;;
13305
13306 hpux11*)
13307 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13308 case $host_cpu in
13309 hppa*64*)
13310 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13311 ;;
13312 ia64*)
13313 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13314 ;;
13315 *)
13316 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13317 ;;
13318 esac
13319 else
13320 case $host_cpu in
13321 hppa*64*)
13322 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13323 ;;
13324 ia64*)
13325 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13326 ;;
13327 *)
13328 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13329 ;;
13330 esac
13331 fi
13332 if test "$with_gnu_ld" = no; then
13333 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13334 hardcode_libdir_separator=:
13335
13336 case $host_cpu in
13337 hppa*64*|ia64*)
13338 hardcode_direct=no
13339 hardcode_shlibpath_var=no
13340 ;;
13341 *)
13342 hardcode_direct=yes
13343 hardcode_direct_absolute=yes
13344 export_dynamic_flag_spec='${wl}-E'
13345
13346 # hardcode_minus_L: Not really in the search PATH,
13347 # but as the default location of the library.
13348 hardcode_minus_L=yes
13349 ;;
13350 esac
13351 fi
13352 ;;
13353
13354 irix5* | irix6* | nonstopux*)
13355 if test "$GCC" = yes; then
13356 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'
13357 # Try to use the -exported_symbol ld option, if it does not
13358 # work, assume that -exports_file does not work either and
13359 # implicitly export all symbols.
13360 save_LDFLAGS="$LDFLAGS"
13361 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13363 /* end confdefs.h. */
13364 int foo(void) {}
13365 _ACEOF
13366 if ac_fn_c_try_link "$LINENO"; then :
13367 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'
13368
13369 fi
13370 rm -f core conftest.err conftest.$ac_objext \
13371 conftest$ac_exeext conftest.$ac_ext
13372 LDFLAGS="$save_LDFLAGS"
13373 else
13374 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'
13375 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'
13376 fi
13377 archive_cmds_need_lc='no'
13378 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13379 hardcode_libdir_separator=:
13380 inherit_rpath=yes
13381 link_all_deplibs=yes
13382 ;;
13383
13384 netbsd* | netbsdelf*-gnu)
13385 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13386 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13387 else
13388 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13389 fi
13390 hardcode_libdir_flag_spec='-R$libdir'
13391 hardcode_direct=yes
13392 hardcode_shlibpath_var=no
13393 ;;
13394
13395 newsos6)
13396 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13397 hardcode_direct=yes
13398 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13399 hardcode_libdir_separator=:
13400 hardcode_shlibpath_var=no
13401 ;;
13402
13403 *nto* | *qnx*)
13404 ;;
13405
13406 openbsd*)
13407 if test -f /usr/libexec/ld.so; then
13408 hardcode_direct=yes
13409 hardcode_shlibpath_var=no
13410 hardcode_direct_absolute=yes
13411 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13412 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13413 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13414 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13415 export_dynamic_flag_spec='${wl}-E'
13416 else
13417 case $host_os in
13418 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13419 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13420 hardcode_libdir_flag_spec='-R$libdir'
13421 ;;
13422 *)
13423 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13424 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13425 ;;
13426 esac
13427 fi
13428 else
13429 ld_shlibs=no
13430 fi
13431 ;;
13432
13433 os2*)
13434 hardcode_libdir_flag_spec='-L$libdir'
13435 hardcode_minus_L=yes
13436 allow_undefined_flag=unsupported
13437 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'
13438 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13439 ;;
13440
13441 osf3*)
13442 if test "$GCC" = yes; then
13443 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13444 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'
13445 else
13446 allow_undefined_flag=' -expect_unresolved \*'
13447 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'
13448 fi
13449 archive_cmds_need_lc='no'
13450 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13451 hardcode_libdir_separator=:
13452 ;;
13453
13454 osf4* | osf5*) # as osf3* with the addition of -msym flag
13455 if test "$GCC" = yes; then
13456 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13457 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'
13458 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13459 else
13460 allow_undefined_flag=' -expect_unresolved \*'
13461 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'
13462 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~
13463 $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'
13464
13465 # Both c and cxx compiler support -rpath directly
13466 hardcode_libdir_flag_spec='-rpath $libdir'
13467 fi
13468 archive_cmds_need_lc='no'
13469 hardcode_libdir_separator=:
13470 ;;
13471
13472 solaris*)
13473 no_undefined_flag=' -z defs'
13474 if test "$GCC" = yes; then
13475 wlarc='${wl}'
13476 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13477 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13478 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13479 else
13480 case `$CC -V 2>&1` in
13481 *"Compilers 5.0"*)
13482 wlarc=''
13483 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13484 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13485 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13486 ;;
13487 *)
13488 wlarc='${wl}'
13489 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13490 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13491 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13492 ;;
13493 esac
13494 fi
13495 hardcode_libdir_flag_spec='-R$libdir'
13496 hardcode_shlibpath_var=no
13497 case $host_os in
13498 solaris2.[0-5] | solaris2.[0-5].*) ;;
13499 *)
13500 # The compiler driver will combine and reorder linker options,
13501 # but understands `-z linker_flag'. GCC discards it without `$wl',
13502 # but is careful enough not to reorder.
13503 # Supported since Solaris 2.6 (maybe 2.5.1?)
13504 if test "$GCC" = yes; then
13505 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13506 else
13507 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13508 fi
13509 ;;
13510 esac
13511 link_all_deplibs=yes
13512 ;;
13513
13514 sunos4*)
13515 if test "x$host_vendor" = xsequent; then
13516 # Use $CC to link under sequent, because it throws in some extra .o
13517 # files that make .init and .fini sections work.
13518 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13519 else
13520 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13521 fi
13522 hardcode_libdir_flag_spec='-L$libdir'
13523 hardcode_direct=yes
13524 hardcode_minus_L=yes
13525 hardcode_shlibpath_var=no
13526 ;;
13527
13528 sysv4)
13529 case $host_vendor in
13530 sni)
13531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13532 hardcode_direct=yes # is this really true???
13533 ;;
13534 siemens)
13535 ## LD is ld it makes a PLAMLIB
13536 ## CC just makes a GrossModule.
13537 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13538 reload_cmds='$CC -r -o $output$reload_objs'
13539 hardcode_direct=no
13540 ;;
13541 motorola)
13542 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13543 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13544 ;;
13545 esac
13546 runpath_var='LD_RUN_PATH'
13547 hardcode_shlibpath_var=no
13548 ;;
13549
13550 sysv4.3*)
13551 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13552 hardcode_shlibpath_var=no
13553 export_dynamic_flag_spec='-Bexport'
13554 ;;
13555
13556 sysv4*MP*)
13557 if test -d /usr/nec; then
13558 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13559 hardcode_shlibpath_var=no
13560 runpath_var=LD_RUN_PATH
13561 hardcode_runpath_var=yes
13562 ld_shlibs=yes
13563 fi
13564 ;;
13565
13566 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13567 no_undefined_flag='${wl}-z,text'
13568 archive_cmds_need_lc=no
13569 hardcode_shlibpath_var=no
13570 runpath_var='LD_RUN_PATH'
13571
13572 if test "$GCC" = yes; then
13573 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13574 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13575 else
13576 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13577 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13578 fi
13579 ;;
13580
13581 sysv5* | sco3.2v5* | sco5v6*)
13582 # Note: We can NOT use -z defs as we might desire, because we do not
13583 # link with -lc, and that would cause any symbols used from libc to
13584 # always be unresolved, which means just about no library would
13585 # ever link correctly. If we're not using GNU ld we use -z text
13586 # though, which does catch some bad symbols but isn't as heavy-handed
13587 # as -z defs.
13588 no_undefined_flag='${wl}-z,text'
13589 allow_undefined_flag='${wl}-z,nodefs'
13590 archive_cmds_need_lc=no
13591 hardcode_shlibpath_var=no
13592 hardcode_libdir_flag_spec='${wl}-R,$libdir'
13593 hardcode_libdir_separator=':'
13594 link_all_deplibs=yes
13595 export_dynamic_flag_spec='${wl}-Bexport'
13596 runpath_var='LD_RUN_PATH'
13597
13598 if test "$GCC" = yes; then
13599 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13600 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13601 else
13602 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13603 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13604 fi
13605 ;;
13606
13607 uts4*)
13608 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13609 hardcode_libdir_flag_spec='-L$libdir'
13610 hardcode_shlibpath_var=no
13611 ;;
13612
13613 *)
13614 ld_shlibs=no
13615 ;;
13616 esac
13617
13618 if test x$host_vendor = xsni; then
13619 case $host in
13620 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13621 export_dynamic_flag_spec='${wl}-Blargedynsym'
13622 ;;
13623 esac
13624 fi
13625 fi
13626
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13628 $as_echo "$ld_shlibs" >&6; }
13629 test "$ld_shlibs" = no && can_build_shared=no
13630
13631 with_gnu_ld=$with_gnu_ld
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647 #
13648 # Do we need to explicitly link libc?
13649 #
13650 case "x$archive_cmds_need_lc" in
13651 x|xyes)
13652 # Assume -lc should be added
13653 archive_cmds_need_lc=yes
13654
13655 if test "$enable_shared" = yes && test "$GCC" = yes; then
13656 case $archive_cmds in
13657 *'~'*)
13658 # FIXME: we may have to deal with multi-command sequences.
13659 ;;
13660 '$CC '*)
13661 # Test whether the compiler implicitly links with -lc since on some
13662 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13663 # to ld, don't add -lc before -lgcc.
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13665 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13666 $RM conftest*
13667 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13668
13669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13670 (eval $ac_compile) 2>&5
13671 ac_status=$?
13672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13673 test $ac_status = 0; } 2>conftest.err; then
13674 soname=conftest
13675 lib=conftest
13676 libobjs=conftest.$ac_objext
13677 deplibs=
13678 wl=$lt_prog_compiler_wl
13679 pic_flag=$lt_prog_compiler_pic
13680 compiler_flags=-v
13681 linker_flags=-v
13682 verstring=
13683 output_objdir=.
13684 libname=conftest
13685 lt_save_allow_undefined_flag=$allow_undefined_flag
13686 allow_undefined_flag=
13687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13688 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13689 ac_status=$?
13690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13691 test $ac_status = 0; }
13692 then
13693 archive_cmds_need_lc=no
13694 else
13695 archive_cmds_need_lc=yes
13696 fi
13697 allow_undefined_flag=$lt_save_allow_undefined_flag
13698 else
13699 cat conftest.err 1>&5
13700 fi
13701 $RM conftest*
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
13703 $as_echo "$archive_cmds_need_lc" >&6; }
13704 ;;
13705 esac
13706 fi
13707 ;;
13708 esac
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13867 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13868
13869 if test "$GCC" = yes; then
13870 case $host_os in
13871 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13872 *) lt_awk_arg="/^libraries:/" ;;
13873 esac
13874 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13875 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
13876 # if the path contains ";" then we assume it to be the separator
13877 # otherwise default to the standard path separator (i.e. ":") - it is
13878 # assumed that no part of a normal pathname contains ";" but that should
13879 # okay in the real world where ";" in dirpaths is itself problematic.
13880 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
13881 else
13882 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13883 fi
13884 # Ok, now we have the path, separated by spaces, we can step through it
13885 # and add multilib dir if necessary.
13886 lt_tmp_lt_search_path_spec=
13887 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13888 for lt_sys_path in $lt_search_path_spec; do
13889 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13890 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13891 else
13892 test -d "$lt_sys_path" && \
13893 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13894 fi
13895 done
13896 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
13897 BEGIN {RS=" "; FS="/|\n";} {
13898 lt_foo="";
13899 lt_count=0;
13900 for (lt_i = NF; lt_i > 0; lt_i--) {
13901 if ($lt_i != "" && $lt_i != ".") {
13902 if ($lt_i == "..") {
13903 lt_count++;
13904 } else {
13905 if (lt_count == 0) {
13906 lt_foo="/" $lt_i lt_foo;
13907 } else {
13908 lt_count--;
13909 }
13910 }
13911 }
13912 }
13913 if (lt_foo != "") { lt_freq[lt_foo]++; }
13914 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13915 }'`
13916 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
13917 else
13918 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13919 fi
13920 library_names_spec=
13921 libname_spec='lib$name'
13922 soname_spec=
13923 shrext_cmds=".so"
13924 postinstall_cmds=
13925 postuninstall_cmds=
13926 finish_cmds=
13927 finish_eval=
13928 shlibpath_var=
13929 shlibpath_overrides_runpath=unknown
13930 version_type=none
13931 dynamic_linker="$host_os ld.so"
13932 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13933 need_lib_prefix=unknown
13934 hardcode_into_libs=no
13935
13936 # when you set need_version to no, make sure it does not cause -set_version
13937 # flags to be left without arguments
13938 need_version=unknown
13939
13940 case $host_os in
13941 aix3*)
13942 version_type=linux
13943 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13944 shlibpath_var=LIBPATH
13945
13946 # AIX 3 has no versioning support, so we append a major version to the name.
13947 soname_spec='${libname}${release}${shared_ext}$major'
13948 ;;
13949
13950 aix[4-9]*)
13951 version_type=linux
13952 need_lib_prefix=no
13953 need_version=no
13954 hardcode_into_libs=yes
13955 if test "$host_cpu" = ia64; then
13956 # AIX 5 supports IA64
13957 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13958 shlibpath_var=LD_LIBRARY_PATH
13959 else
13960 # With GCC up to 2.95.x, collect2 would create an import file
13961 # for dependence libraries. The import file would start with
13962 # the line `#! .'. This would cause the generated library to
13963 # depend on `.', always an invalid library. This was fixed in
13964 # development snapshots of GCC prior to 3.0.
13965 case $host_os in
13966 aix4 | aix4.[01] | aix4.[01].*)
13967 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13968 echo ' yes '
13969 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13970 :
13971 else
13972 can_build_shared=no
13973 fi
13974 ;;
13975 esac
13976 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13977 # soname into executable. Probably we can add versioning support to
13978 # collect2, so additional links can be useful in future.
13979 if test "$aix_use_runtimelinking" = yes; then
13980 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13981 # instead of lib<name>.a to let people know that these are not
13982 # typical AIX shared libraries.
13983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13984 else
13985 # We preserve .a as extension for shared libraries through AIX4.2
13986 # and later when we are not doing run time linking.
13987 library_names_spec='${libname}${release}.a $libname.a'
13988 soname_spec='${libname}${release}${shared_ext}$major'
13989 fi
13990 shlibpath_var=LIBPATH
13991 fi
13992 ;;
13993
13994 amigaos*)
13995 case $host_cpu in
13996 powerpc)
13997 # Since July 2007 AmigaOS4 officially supports .so libraries.
13998 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14000 ;;
14001 m68k)
14002 library_names_spec='$libname.ixlibrary $libname.a'
14003 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14004 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'
14005 ;;
14006 esac
14007 ;;
14008
14009 beos*)
14010 library_names_spec='${libname}${shared_ext}'
14011 dynamic_linker="$host_os ld.so"
14012 shlibpath_var=LIBRARY_PATH
14013 ;;
14014
14015 bsdi[45]*)
14016 version_type=linux
14017 need_version=no
14018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14019 soname_spec='${libname}${release}${shared_ext}$major'
14020 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14021 shlibpath_var=LD_LIBRARY_PATH
14022 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14023 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14024 # the default ld.so.conf also contains /usr/contrib/lib and
14025 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14026 # libtool to hard-code these into programs
14027 ;;
14028
14029 cygwin* | mingw* | pw32* | cegcc*)
14030 version_type=windows
14031 shrext_cmds=".dll"
14032 need_version=no
14033 need_lib_prefix=no
14034
14035 case $GCC,$host_os in
14036 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14037 library_names_spec='$libname.dll.a'
14038 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14039 postinstall_cmds='base_file=`basename \${file}`~
14040 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14041 dldir=$destdir/`dirname \$dlpath`~
14042 test -d \$dldir || mkdir -p \$dldir~
14043 $install_prog $dir/$dlname \$dldir/$dlname~
14044 chmod a+x \$dldir/$dlname~
14045 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14046 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14047 fi'
14048 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14049 dlpath=$dir/\$dldll~
14050 $RM \$dlpath'
14051 shlibpath_overrides_runpath=yes
14052
14053 case $host_os in
14054 cygwin*)
14055 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14056 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14057 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14058 ;;
14059 mingw* | cegcc*)
14060 # MinGW DLLs use traditional 'lib' prefix
14061 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14062 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14063 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14064 # It is most probably a Windows format PATH printed by
14065 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14066 # path with ; separators, and with drive letters. We can handle the
14067 # drive letters (cygwin fileutils understands them), so leave them,
14068 # especially as we might pass files found there to a mingw objdump,
14069 # which wouldn't understand a cygwinified path. Ahh.
14070 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14071 else
14072 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14073 fi
14074 ;;
14075 pw32*)
14076 # pw32 DLLs use 'pw' prefix rather than 'lib'
14077 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14078 ;;
14079 esac
14080 ;;
14081
14082 *)
14083 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14084 ;;
14085 esac
14086 dynamic_linker='Win32 ld.exe'
14087 # FIXME: first we should search . and the directory the executable is in
14088 shlibpath_var=PATH
14089 ;;
14090
14091 darwin* | rhapsody*)
14092 dynamic_linker="$host_os dyld"
14093 version_type=darwin
14094 need_lib_prefix=no
14095 need_version=no
14096 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14097 soname_spec='${libname}${release}${major}$shared_ext'
14098 shlibpath_overrides_runpath=yes
14099 shlibpath_var=DYLD_LIBRARY_PATH
14100 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14101
14102 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14103 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14104 ;;
14105
14106 dgux*)
14107 version_type=linux
14108 need_lib_prefix=no
14109 need_version=no
14110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14111 soname_spec='${libname}${release}${shared_ext}$major'
14112 shlibpath_var=LD_LIBRARY_PATH
14113 ;;
14114
14115 freebsd1*)
14116 dynamic_linker=no
14117 ;;
14118
14119 freebsd* | dragonfly*)
14120 # DragonFly does not have aout. When/if they implement a new
14121 # versioning mechanism, adjust this.
14122 if test -x /usr/bin/objformat; then
14123 objformat=`/usr/bin/objformat`
14124 else
14125 case $host_os in
14126 freebsd[123]*) objformat=aout ;;
14127 *) objformat=elf ;;
14128 esac
14129 fi
14130 version_type=freebsd-$objformat
14131 case $version_type in
14132 freebsd-elf*)
14133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14134 need_version=no
14135 need_lib_prefix=no
14136 ;;
14137 freebsd-*)
14138 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14139 need_version=yes
14140 ;;
14141 esac
14142 shlibpath_var=LD_LIBRARY_PATH
14143 case $host_os in
14144 freebsd2*)
14145 shlibpath_overrides_runpath=yes
14146 ;;
14147 freebsd3.[01]* | freebsdelf3.[01]*)
14148 shlibpath_overrides_runpath=yes
14149 hardcode_into_libs=yes
14150 ;;
14151 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14152 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14153 shlibpath_overrides_runpath=no
14154 hardcode_into_libs=yes
14155 ;;
14156 *) # from 4.6 on, and DragonFly
14157 shlibpath_overrides_runpath=yes
14158 hardcode_into_libs=yes
14159 ;;
14160 esac
14161 ;;
14162
14163 gnu*)
14164 version_type=linux
14165 need_lib_prefix=no
14166 need_version=no
14167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14168 soname_spec='${libname}${release}${shared_ext}$major'
14169 shlibpath_var=LD_LIBRARY_PATH
14170 hardcode_into_libs=yes
14171 ;;
14172
14173 hpux9* | hpux10* | hpux11*)
14174 # Give a soname corresponding to the major version so that dld.sl refuses to
14175 # link against other versions.
14176 version_type=sunos
14177 need_lib_prefix=no
14178 need_version=no
14179 case $host_cpu in
14180 ia64*)
14181 shrext_cmds='.so'
14182 hardcode_into_libs=yes
14183 dynamic_linker="$host_os dld.so"
14184 shlibpath_var=LD_LIBRARY_PATH
14185 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14187 soname_spec='${libname}${release}${shared_ext}$major'
14188 if test "X$HPUX_IA64_MODE" = X32; then
14189 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14190 else
14191 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14192 fi
14193 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14194 ;;
14195 hppa*64*)
14196 shrext_cmds='.sl'
14197 hardcode_into_libs=yes
14198 dynamic_linker="$host_os dld.sl"
14199 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14200 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14202 soname_spec='${libname}${release}${shared_ext}$major'
14203 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14204 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14205 ;;
14206 *)
14207 shrext_cmds='.sl'
14208 dynamic_linker="$host_os dld.sl"
14209 shlibpath_var=SHLIB_PATH
14210 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14212 soname_spec='${libname}${release}${shared_ext}$major'
14213 ;;
14214 esac
14215 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14216 postinstall_cmds='chmod 555 $lib'
14217 ;;
14218
14219 interix[3-9]*)
14220 version_type=linux
14221 need_lib_prefix=no
14222 need_version=no
14223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14224 soname_spec='${libname}${release}${shared_ext}$major'
14225 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14226 shlibpath_var=LD_LIBRARY_PATH
14227 shlibpath_overrides_runpath=no
14228 hardcode_into_libs=yes
14229 ;;
14230
14231 irix5* | irix6* | nonstopux*)
14232 case $host_os in
14233 nonstopux*) version_type=nonstopux ;;
14234 *)
14235 if test "$lt_cv_prog_gnu_ld" = yes; then
14236 version_type=linux
14237 else
14238 version_type=irix
14239 fi ;;
14240 esac
14241 need_lib_prefix=no
14242 need_version=no
14243 soname_spec='${libname}${release}${shared_ext}$major'
14244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14245 case $host_os in
14246 irix5* | nonstopux*)
14247 libsuff= shlibsuff=
14248 ;;
14249 *)
14250 case $LD in # libtool.m4 will add one of these switches to LD
14251 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14252 libsuff= shlibsuff= libmagic=32-bit;;
14253 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14254 libsuff=32 shlibsuff=N32 libmagic=N32;;
14255 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14256 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14257 *) libsuff= shlibsuff= libmagic=never-match;;
14258 esac
14259 ;;
14260 esac
14261 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14262 shlibpath_overrides_runpath=no
14263 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14264 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14265 hardcode_into_libs=yes
14266 ;;
14267
14268 # No shared lib support for Linux oldld, aout, or coff.
14269 linux*oldld* | linux*aout* | linux*coff*)
14270 dynamic_linker=no
14271 ;;
14272
14273 # This must be Linux ELF.
14274 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14275 version_type=linux
14276 need_lib_prefix=no
14277 need_version=no
14278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14279 soname_spec='${libname}${release}${shared_ext}$major'
14280 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14281 shlibpath_var=LD_LIBRARY_PATH
14282 shlibpath_overrides_runpath=no
14283 # Some binutils ld are patched to set DT_RUNPATH
14284 save_LDFLAGS=$LDFLAGS
14285 save_libdir=$libdir
14286 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14287 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14289 /* end confdefs.h. */
14290
14291 int
14292 main ()
14293 {
14294
14295 ;
14296 return 0;
14297 }
14298 _ACEOF
14299 if ac_fn_c_try_link "$LINENO"; then :
14300 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14301 shlibpath_overrides_runpath=yes
14302 fi
14303 fi
14304 rm -f core conftest.err conftest.$ac_objext \
14305 conftest$ac_exeext conftest.$ac_ext
14306 LDFLAGS=$save_LDFLAGS
14307 libdir=$save_libdir
14308
14309 # This implies no fast_install, which is unacceptable.
14310 # Some rework will be needed to allow for fast_install
14311 # before this can be enabled.
14312 hardcode_into_libs=yes
14313
14314 # Append ld.so.conf contents to the search path
14315 if test -f /etc/ld.so.conf; then
14316 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' ' '`
14317 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14318 fi
14319
14320 # We used to test for /lib/ld.so.1 and disable shared libraries on
14321 # powerpc, because MkLinux only supported shared libraries with the
14322 # GNU dynamic linker. Since this was broken with cross compilers,
14323 # most powerpc-linux boxes support dynamic linking these days and
14324 # people can always --disable-shared, the test was removed, and we
14325 # assume the GNU/Linux dynamic linker is in use.
14326 dynamic_linker='GNU/Linux ld.so'
14327 ;;
14328
14329 netbsdelf*-gnu)
14330 version_type=linux
14331 need_lib_prefix=no
14332 need_version=no
14333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14334 soname_spec='${libname}${release}${shared_ext}$major'
14335 shlibpath_var=LD_LIBRARY_PATH
14336 shlibpath_overrides_runpath=no
14337 hardcode_into_libs=yes
14338 dynamic_linker='NetBSD ld.elf_so'
14339 ;;
14340
14341 netbsd*)
14342 version_type=sunos
14343 need_lib_prefix=no
14344 need_version=no
14345 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14347 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14348 dynamic_linker='NetBSD (a.out) ld.so'
14349 else
14350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14351 soname_spec='${libname}${release}${shared_ext}$major'
14352 dynamic_linker='NetBSD ld.elf_so'
14353 fi
14354 shlibpath_var=LD_LIBRARY_PATH
14355 shlibpath_overrides_runpath=yes
14356 hardcode_into_libs=yes
14357 ;;
14358
14359 newsos6)
14360 version_type=linux
14361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14362 shlibpath_var=LD_LIBRARY_PATH
14363 shlibpath_overrides_runpath=yes
14364 ;;
14365
14366 *nto* | *qnx*)
14367 version_type=qnx
14368 need_lib_prefix=no
14369 need_version=no
14370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14371 soname_spec='${libname}${release}${shared_ext}$major'
14372 shlibpath_var=LD_LIBRARY_PATH
14373 shlibpath_overrides_runpath=no
14374 hardcode_into_libs=yes
14375 dynamic_linker='ldqnx.so'
14376 ;;
14377
14378 openbsd*)
14379 version_type=sunos
14380 sys_lib_dlsearch_path_spec="/usr/lib"
14381 need_lib_prefix=no
14382 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14383 case $host_os in
14384 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14385 *) need_version=no ;;
14386 esac
14387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14388 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14389 shlibpath_var=LD_LIBRARY_PATH
14390 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14391 case $host_os in
14392 openbsd2.[89] | openbsd2.[89].*)
14393 shlibpath_overrides_runpath=no
14394 ;;
14395 *)
14396 shlibpath_overrides_runpath=yes
14397 ;;
14398 esac
14399 else
14400 shlibpath_overrides_runpath=yes
14401 fi
14402 ;;
14403
14404 os2*)
14405 libname_spec='$name'
14406 shrext_cmds=".dll"
14407 need_lib_prefix=no
14408 library_names_spec='$libname${shared_ext} $libname.a'
14409 dynamic_linker='OS/2 ld.exe'
14410 shlibpath_var=LIBPATH
14411 ;;
14412
14413 osf3* | osf4* | osf5*)
14414 version_type=osf
14415 need_lib_prefix=no
14416 need_version=no
14417 soname_spec='${libname}${release}${shared_ext}$major'
14418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14419 shlibpath_var=LD_LIBRARY_PATH
14420 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14421 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14422 ;;
14423
14424 rdos*)
14425 dynamic_linker=no
14426 ;;
14427
14428 solaris*)
14429 version_type=linux
14430 need_lib_prefix=no
14431 need_version=no
14432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14433 soname_spec='${libname}${release}${shared_ext}$major'
14434 shlibpath_var=LD_LIBRARY_PATH
14435 shlibpath_overrides_runpath=yes
14436 hardcode_into_libs=yes
14437 # ldd complains unless libraries are executable
14438 postinstall_cmds='chmod +x $lib'
14439 ;;
14440
14441 sunos4*)
14442 version_type=sunos
14443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14444 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14445 shlibpath_var=LD_LIBRARY_PATH
14446 shlibpath_overrides_runpath=yes
14447 if test "$with_gnu_ld" = yes; then
14448 need_lib_prefix=no
14449 fi
14450 need_version=yes
14451 ;;
14452
14453 sysv4 | sysv4.3*)
14454 version_type=linux
14455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14456 soname_spec='${libname}${release}${shared_ext}$major'
14457 shlibpath_var=LD_LIBRARY_PATH
14458 case $host_vendor in
14459 sni)
14460 shlibpath_overrides_runpath=no
14461 need_lib_prefix=no
14462 runpath_var=LD_RUN_PATH
14463 ;;
14464 siemens)
14465 need_lib_prefix=no
14466 ;;
14467 motorola)
14468 need_lib_prefix=no
14469 need_version=no
14470 shlibpath_overrides_runpath=no
14471 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14472 ;;
14473 esac
14474 ;;
14475
14476 sysv4*MP*)
14477 if test -d /usr/nec ;then
14478 version_type=linux
14479 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14480 soname_spec='$libname${shared_ext}.$major'
14481 shlibpath_var=LD_LIBRARY_PATH
14482 fi
14483 ;;
14484
14485 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14486 version_type=freebsd-elf
14487 need_lib_prefix=no
14488 need_version=no
14489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14490 soname_spec='${libname}${release}${shared_ext}$major'
14491 shlibpath_var=LD_LIBRARY_PATH
14492 shlibpath_overrides_runpath=yes
14493 hardcode_into_libs=yes
14494 if test "$with_gnu_ld" = yes; then
14495 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14496 else
14497 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14498 case $host_os in
14499 sco3.2v5*)
14500 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14501 ;;
14502 esac
14503 fi
14504 sys_lib_dlsearch_path_spec='/usr/lib'
14505 ;;
14506
14507 tpf*)
14508 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14509 version_type=linux
14510 need_lib_prefix=no
14511 need_version=no
14512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14513 shlibpath_var=LD_LIBRARY_PATH
14514 shlibpath_overrides_runpath=no
14515 hardcode_into_libs=yes
14516 ;;
14517
14518 uts4*)
14519 version_type=linux
14520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14521 soname_spec='${libname}${release}${shared_ext}$major'
14522 shlibpath_var=LD_LIBRARY_PATH
14523 ;;
14524
14525 *)
14526 dynamic_linker=no
14527 ;;
14528 esac
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14530 $as_echo "$dynamic_linker" >&6; }
14531 test "$dynamic_linker" = no && can_build_shared=no
14532
14533 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14534 if test "$GCC" = yes; then
14535 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14536 fi
14537
14538 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14539 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14540 fi
14541 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14542 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14543 fi
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14632 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14633 hardcode_action=
14634 if test -n "$hardcode_libdir_flag_spec" ||
14635 test -n "$runpath_var" ||
14636 test "X$hardcode_automatic" = "Xyes" ; then
14637
14638 # We can hardcode non-existent directories.
14639 if test "$hardcode_direct" != no &&
14640 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14641 # have to relink, otherwise we might link with an installed library
14642 # when we should be linking with a yet-to-be-installed one
14643 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14644 test "$hardcode_minus_L" != no; then
14645 # Linking always hardcodes the temporary library directory.
14646 hardcode_action=relink
14647 else
14648 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14649 hardcode_action=immediate
14650 fi
14651 else
14652 # We cannot hardcode anything, or else we can only hardcode existing
14653 # directories.
14654 hardcode_action=unsupported
14655 fi
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14657 $as_echo "$hardcode_action" >&6; }
14658
14659 if test "$hardcode_action" = relink ||
14660 test "$inherit_rpath" = yes; then
14661 # Fast installation is not supported
14662 enable_fast_install=no
14663 elif test "$shlibpath_overrides_runpath" = yes ||
14664 test "$enable_shared" = no; then
14665 # Fast installation is not necessary
14666 enable_fast_install=needless
14667 fi
14668
14669
14670
14671
14672
14673
14674 if test "x$enable_dlopen" != xyes; then
14675 enable_dlopen=unknown
14676 enable_dlopen_self=unknown
14677 enable_dlopen_self_static=unknown
14678 else
14679 lt_cv_dlopen=no
14680 lt_cv_dlopen_libs=
14681
14682 case $host_os in
14683 beos*)
14684 lt_cv_dlopen="load_add_on"
14685 lt_cv_dlopen_libs=
14686 lt_cv_dlopen_self=yes
14687 ;;
14688
14689 mingw* | pw32* | cegcc*)
14690 lt_cv_dlopen="LoadLibrary"
14691 lt_cv_dlopen_libs=
14692 ;;
14693
14694 cygwin*)
14695 lt_cv_dlopen="dlopen"
14696 lt_cv_dlopen_libs=
14697 ;;
14698
14699 darwin*)
14700 # if libdl is installed we need to link against it
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14702 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14703 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14704 $as_echo_n "(cached) " >&6
14705 else
14706 ac_check_lib_save_LIBS=$LIBS
14707 LIBS="-ldl $LIBS"
14708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14709 /* end confdefs.h. */
14710
14711 /* Override any GCC internal prototype to avoid an error.
14712 Use char because int might match the return type of a GCC
14713 builtin and then its argument prototype would still apply. */
14714 #ifdef __cplusplus
14715 extern "C"
14716 #endif
14717 char dlopen ();
14718 int
14719 main ()
14720 {
14721 return dlopen ();
14722 ;
14723 return 0;
14724 }
14725 _ACEOF
14726 if ac_fn_c_try_link "$LINENO"; then :
14727 ac_cv_lib_dl_dlopen=yes
14728 else
14729 ac_cv_lib_dl_dlopen=no
14730 fi
14731 rm -f core conftest.err conftest.$ac_objext \
14732 conftest$ac_exeext conftest.$ac_ext
14733 LIBS=$ac_check_lib_save_LIBS
14734 fi
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14736 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14737 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14738 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14739 else
14740
14741 lt_cv_dlopen="dyld"
14742 lt_cv_dlopen_libs=
14743 lt_cv_dlopen_self=yes
14744
14745 fi
14746
14747 ;;
14748
14749 *)
14750 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14751 if test "x$ac_cv_func_shl_load" = x""yes; then :
14752 lt_cv_dlopen="shl_load"
14753 else
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14755 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14756 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
14757 $as_echo_n "(cached) " >&6
14758 else
14759 ac_check_lib_save_LIBS=$LIBS
14760 LIBS="-ldld $LIBS"
14761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14762 /* end confdefs.h. */
14763
14764 /* Override any GCC internal prototype to avoid an error.
14765 Use char because int might match the return type of a GCC
14766 builtin and then its argument prototype would still apply. */
14767 #ifdef __cplusplus
14768 extern "C"
14769 #endif
14770 char shl_load ();
14771 int
14772 main ()
14773 {
14774 return shl_load ();
14775 ;
14776 return 0;
14777 }
14778 _ACEOF
14779 if ac_fn_c_try_link "$LINENO"; then :
14780 ac_cv_lib_dld_shl_load=yes
14781 else
14782 ac_cv_lib_dld_shl_load=no
14783 fi
14784 rm -f core conftest.err conftest.$ac_objext \
14785 conftest$ac_exeext conftest.$ac_ext
14786 LIBS=$ac_check_lib_save_LIBS
14787 fi
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14789 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14790 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
14791 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14792 else
14793 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14794 if test "x$ac_cv_func_dlopen" = x""yes; then :
14795 lt_cv_dlopen="dlopen"
14796 else
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14798 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14799 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14800 $as_echo_n "(cached) " >&6
14801 else
14802 ac_check_lib_save_LIBS=$LIBS
14803 LIBS="-ldl $LIBS"
14804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14805 /* end confdefs.h. */
14806
14807 /* Override any GCC internal prototype to avoid an error.
14808 Use char because int might match the return type of a GCC
14809 builtin and then its argument prototype would still apply. */
14810 #ifdef __cplusplus
14811 extern "C"
14812 #endif
14813 char dlopen ();
14814 int
14815 main ()
14816 {
14817 return dlopen ();
14818 ;
14819 return 0;
14820 }
14821 _ACEOF
14822 if ac_fn_c_try_link "$LINENO"; then :
14823 ac_cv_lib_dl_dlopen=yes
14824 else
14825 ac_cv_lib_dl_dlopen=no
14826 fi
14827 rm -f core conftest.err conftest.$ac_objext \
14828 conftest$ac_exeext conftest.$ac_ext
14829 LIBS=$ac_check_lib_save_LIBS
14830 fi
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14832 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14833 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14834 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14835 else
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14837 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14838 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
14839 $as_echo_n "(cached) " >&6
14840 else
14841 ac_check_lib_save_LIBS=$LIBS
14842 LIBS="-lsvld $LIBS"
14843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14844 /* end confdefs.h. */
14845
14846 /* Override any GCC internal prototype to avoid an error.
14847 Use char because int might match the return type of a GCC
14848 builtin and then its argument prototype would still apply. */
14849 #ifdef __cplusplus
14850 extern "C"
14851 #endif
14852 char dlopen ();
14853 int
14854 main ()
14855 {
14856 return dlopen ();
14857 ;
14858 return 0;
14859 }
14860 _ACEOF
14861 if ac_fn_c_try_link "$LINENO"; then :
14862 ac_cv_lib_svld_dlopen=yes
14863 else
14864 ac_cv_lib_svld_dlopen=no
14865 fi
14866 rm -f core conftest.err conftest.$ac_objext \
14867 conftest$ac_exeext conftest.$ac_ext
14868 LIBS=$ac_check_lib_save_LIBS
14869 fi
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14871 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14872 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
14873 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14874 else
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14876 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14877 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
14878 $as_echo_n "(cached) " >&6
14879 else
14880 ac_check_lib_save_LIBS=$LIBS
14881 LIBS="-ldld $LIBS"
14882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14883 /* end confdefs.h. */
14884
14885 /* Override any GCC internal prototype to avoid an error.
14886 Use char because int might match the return type of a GCC
14887 builtin and then its argument prototype would still apply. */
14888 #ifdef __cplusplus
14889 extern "C"
14890 #endif
14891 char dld_link ();
14892 int
14893 main ()
14894 {
14895 return dld_link ();
14896 ;
14897 return 0;
14898 }
14899 _ACEOF
14900 if ac_fn_c_try_link "$LINENO"; then :
14901 ac_cv_lib_dld_dld_link=yes
14902 else
14903 ac_cv_lib_dld_dld_link=no
14904 fi
14905 rm -f core conftest.err conftest.$ac_objext \
14906 conftest$ac_exeext conftest.$ac_ext
14907 LIBS=$ac_check_lib_save_LIBS
14908 fi
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14910 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14911 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
14912 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14913 fi
14914
14915
14916 fi
14917
14918
14919 fi
14920
14921
14922 fi
14923
14924
14925 fi
14926
14927
14928 fi
14929
14930 ;;
14931 esac
14932
14933 if test "x$lt_cv_dlopen" != xno; then
14934 enable_dlopen=yes
14935 else
14936 enable_dlopen=no
14937 fi
14938
14939 case $lt_cv_dlopen in
14940 dlopen)
14941 save_CPPFLAGS="$CPPFLAGS"
14942 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14943
14944 save_LDFLAGS="$LDFLAGS"
14945 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14946
14947 save_LIBS="$LIBS"
14948 LIBS="$lt_cv_dlopen_libs $LIBS"
14949
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14951 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14952 if test "${lt_cv_dlopen_self+set}" = set; then :
14953 $as_echo_n "(cached) " >&6
14954 else
14955 if test "$cross_compiling" = yes; then :
14956 lt_cv_dlopen_self=cross
14957 else
14958 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14959 lt_status=$lt_dlunknown
14960 cat > conftest.$ac_ext <<_LT_EOF
14961 #line 14961 "configure"
14962 #include "confdefs.h"
14963
14964 #if HAVE_DLFCN_H
14965 #include <dlfcn.h>
14966 #endif
14967
14968 #include <stdio.h>
14969
14970 #ifdef RTLD_GLOBAL
14971 # define LT_DLGLOBAL RTLD_GLOBAL
14972 #else
14973 # ifdef DL_GLOBAL
14974 # define LT_DLGLOBAL DL_GLOBAL
14975 # else
14976 # define LT_DLGLOBAL 0
14977 # endif
14978 #endif
14979
14980 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14981 find out it does not work in some platform. */
14982 #ifndef LT_DLLAZY_OR_NOW
14983 # ifdef RTLD_LAZY
14984 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14985 # else
14986 # ifdef DL_LAZY
14987 # define LT_DLLAZY_OR_NOW DL_LAZY
14988 # else
14989 # ifdef RTLD_NOW
14990 # define LT_DLLAZY_OR_NOW RTLD_NOW
14991 # else
14992 # ifdef DL_NOW
14993 # define LT_DLLAZY_OR_NOW DL_NOW
14994 # else
14995 # define LT_DLLAZY_OR_NOW 0
14996 # endif
14997 # endif
14998 # endif
14999 # endif
15000 #endif
15001
15002 void fnord() { int i=42;}
15003 int main ()
15004 {
15005 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15006 int status = $lt_dlunknown;
15007
15008 if (self)
15009 {
15010 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15011 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15012 /* dlclose (self); */
15013 }
15014 else
15015 puts (dlerror ());
15016
15017 return status;
15018 }
15019 _LT_EOF
15020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15021 (eval $ac_link) 2>&5
15022 ac_status=$?
15023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15024 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15025 (./conftest; exit; ) >&5 2>/dev/null
15026 lt_status=$?
15027 case x$lt_status in
15028 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15029 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15030 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15031 esac
15032 else :
15033 # compilation failed
15034 lt_cv_dlopen_self=no
15035 fi
15036 fi
15037 rm -fr conftest*
15038
15039
15040 fi
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15042 $as_echo "$lt_cv_dlopen_self" >&6; }
15043
15044 if test "x$lt_cv_dlopen_self" = xyes; then
15045 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15047 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15048 if test "${lt_cv_dlopen_self_static+set}" = set; then :
15049 $as_echo_n "(cached) " >&6
15050 else
15051 if test "$cross_compiling" = yes; then :
15052 lt_cv_dlopen_self_static=cross
15053 else
15054 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15055 lt_status=$lt_dlunknown
15056 cat > conftest.$ac_ext <<_LT_EOF
15057 #line 15057 "configure"
15058 #include "confdefs.h"
15059
15060 #if HAVE_DLFCN_H
15061 #include <dlfcn.h>
15062 #endif
15063
15064 #include <stdio.h>
15065
15066 #ifdef RTLD_GLOBAL
15067 # define LT_DLGLOBAL RTLD_GLOBAL
15068 #else
15069 # ifdef DL_GLOBAL
15070 # define LT_DLGLOBAL DL_GLOBAL
15071 # else
15072 # define LT_DLGLOBAL 0
15073 # endif
15074 #endif
15075
15076 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15077 find out it does not work in some platform. */
15078 #ifndef LT_DLLAZY_OR_NOW
15079 # ifdef RTLD_LAZY
15080 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15081 # else
15082 # ifdef DL_LAZY
15083 # define LT_DLLAZY_OR_NOW DL_LAZY
15084 # else
15085 # ifdef RTLD_NOW
15086 # define LT_DLLAZY_OR_NOW RTLD_NOW
15087 # else
15088 # ifdef DL_NOW
15089 # define LT_DLLAZY_OR_NOW DL_NOW
15090 # else
15091 # define LT_DLLAZY_OR_NOW 0
15092 # endif
15093 # endif
15094 # endif
15095 # endif
15096 #endif
15097
15098 void fnord() { int i=42;}
15099 int main ()
15100 {
15101 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15102 int status = $lt_dlunknown;
15103
15104 if (self)
15105 {
15106 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15107 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15108 /* dlclose (self); */
15109 }
15110 else
15111 puts (dlerror ());
15112
15113 return status;
15114 }
15115 _LT_EOF
15116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15117 (eval $ac_link) 2>&5
15118 ac_status=$?
15119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15120 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15121 (./conftest; exit; ) >&5 2>/dev/null
15122 lt_status=$?
15123 case x$lt_status in
15124 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15125 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15126 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15127 esac
15128 else :
15129 # compilation failed
15130 lt_cv_dlopen_self_static=no
15131 fi
15132 fi
15133 rm -fr conftest*
15134
15135
15136 fi
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15138 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15139 fi
15140
15141 CPPFLAGS="$save_CPPFLAGS"
15142 LDFLAGS="$save_LDFLAGS"
15143 LIBS="$save_LIBS"
15144 ;;
15145 esac
15146
15147 case $lt_cv_dlopen_self in
15148 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15149 *) enable_dlopen_self=unknown ;;
15150 esac
15151
15152 case $lt_cv_dlopen_self_static in
15153 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15154 *) enable_dlopen_self_static=unknown ;;
15155 esac
15156 fi
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174 striplib=
15175 old_striplib=
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15177 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15178 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15179 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15180 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15182 $as_echo "yes" >&6; }
15183 else
15184 # FIXME - insert some real tests, host_os isn't really good enough
15185 case $host_os in
15186 darwin*)
15187 if test -n "$STRIP" ; then
15188 striplib="$STRIP -x"
15189 old_striplib="$STRIP -S"
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15191 $as_echo "yes" >&6; }
15192 else
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15194 $as_echo "no" >&6; }
15195 fi
15196 ;;
15197 *)
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15199 $as_echo "no" >&6; }
15200 ;;
15201 esac
15202 fi
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215 # Report which library types will actually be built
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15217 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15219 $as_echo "$can_build_shared" >&6; }
15220
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15222 $as_echo_n "checking whether to build shared libraries... " >&6; }
15223 test "$can_build_shared" = "no" && enable_shared=no
15224
15225 # On AIX, shared libraries and static libraries use the same namespace, and
15226 # are all built from PIC.
15227 case $host_os in
15228 aix3*)
15229 test "$enable_shared" = yes && enable_static=no
15230 if test -n "$RANLIB"; then
15231 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15232 postinstall_cmds='$RANLIB $lib'
15233 fi
15234 ;;
15235
15236 aix[4-9]*)
15237 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15238 test "$enable_shared" = yes && enable_static=no
15239 fi
15240 ;;
15241 esac
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15243 $as_echo "$enable_shared" >&6; }
15244
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15246 $as_echo_n "checking whether to build static libraries... " >&6; }
15247 # Make sure either enable_shared or enable_static is yes.
15248 test "$enable_shared" = yes || enable_static=yes
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15250 $as_echo "$enable_static" >&6; }
15251
15252
15253
15254
15255 fi
15256 ac_ext=c
15257 ac_cpp='$CPP $CPPFLAGS'
15258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15261
15262 CC="$lt_save_CC"
15263
15264
15265 ac_ext=cpp
15266 ac_cpp='$CXXCPP $CPPFLAGS'
15267 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15268 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15269 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15270
15271 archive_cmds_need_lc_CXX=no
15272 allow_undefined_flag_CXX=
15273 always_export_symbols_CXX=no
15274 archive_expsym_cmds_CXX=
15275 compiler_needs_object_CXX=no
15276 export_dynamic_flag_spec_CXX=
15277 hardcode_direct_CXX=no
15278 hardcode_direct_absolute_CXX=no
15279 hardcode_libdir_flag_spec_CXX=
15280 hardcode_libdir_flag_spec_ld_CXX=
15281 hardcode_libdir_separator_CXX=
15282 hardcode_minus_L_CXX=no
15283 hardcode_shlibpath_var_CXX=unsupported
15284 hardcode_automatic_CXX=no
15285 inherit_rpath_CXX=no
15286 module_cmds_CXX=
15287 module_expsym_cmds_CXX=
15288 link_all_deplibs_CXX=unknown
15289 old_archive_cmds_CXX=$old_archive_cmds
15290 no_undefined_flag_CXX=
15291 whole_archive_flag_spec_CXX=
15292 enable_shared_with_static_runtimes_CXX=no
15293
15294 # Source file extension for C++ test sources.
15295 ac_ext=cpp
15296
15297 # Object file extension for compiled C++ test sources.
15298 objext=o
15299 objext_CXX=$objext
15300
15301 # No sense in running all these tests if we already determined that
15302 # the CXX compiler isn't working. Some variables (like enable_shared)
15303 # are currently assumed to apply to all compilers on this platform,
15304 # and will be corrupted by setting them based on a non-working compiler.
15305 if test "$_lt_caught_CXX_error" != yes; then
15306 # Code to be used in simple compile tests
15307 lt_simple_compile_test_code="int some_variable = 0;"
15308
15309 # Code to be used in simple link tests
15310 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15311
15312 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15313
15314
15315
15316
15317
15318
15319 # If no C compiler was specified, use CC.
15320 LTCC=${LTCC-"$CC"}
15321
15322 # If no C compiler flags were specified, use CFLAGS.
15323 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15324
15325 # Allow CC to be a program name with arguments.
15326 compiler=$CC
15327
15328
15329 # save warnings/boilerplate of simple test code
15330 ac_outfile=conftest.$ac_objext
15331 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15332 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15333 _lt_compiler_boilerplate=`cat conftest.err`
15334 $RM conftest*
15335
15336 ac_outfile=conftest.$ac_objext
15337 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15338 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15339 _lt_linker_boilerplate=`cat conftest.err`
15340 $RM -r conftest*
15341
15342
15343 # Allow CC to be a program name with arguments.
15344 lt_save_CC=$CC
15345 lt_save_LD=$LD
15346 lt_save_GCC=$GCC
15347 GCC=$GXX
15348 lt_save_with_gnu_ld=$with_gnu_ld
15349 lt_save_path_LD=$lt_cv_path_LD
15350 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15351 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15352 else
15353 $as_unset lt_cv_prog_gnu_ld
15354 fi
15355 if test -n "${lt_cv_path_LDCXX+set}"; then
15356 lt_cv_path_LD=$lt_cv_path_LDCXX
15357 else
15358 $as_unset lt_cv_path_LD
15359 fi
15360 test -z "${LDCXX+set}" || LD=$LDCXX
15361 CC=${CXX-"c++"}
15362 compiler=$CC
15363 compiler_CXX=$CC
15364 for cc_temp in $compiler""; do
15365 case $cc_temp in
15366 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15367 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15368 \-*) ;;
15369 *) break;;
15370 esac
15371 done
15372 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15373
15374
15375 if test -n "$compiler"; then
15376 # We don't want -fno-exception when compiling C++ code, so set the
15377 # no_builtin_flag separately
15378 if test "$GXX" = yes; then
15379 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15380 else
15381 lt_prog_compiler_no_builtin_flag_CXX=
15382 fi
15383
15384 if test "$GXX" = yes; then
15385 # Set up default GNU C++ configuration
15386
15387
15388
15389 # Check whether --with-gnu-ld was given.
15390 if test "${with_gnu_ld+set}" = set; then :
15391 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15392 else
15393 with_gnu_ld=no
15394 fi
15395
15396 ac_prog=ld
15397 if test "$GCC" = yes; then
15398 # Check if gcc -print-prog-name=ld gives a path.
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15400 $as_echo_n "checking for ld used by $CC... " >&6; }
15401 case $host in
15402 *-*-mingw*)
15403 # gcc leaves a trailing carriage return which upsets mingw
15404 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15405 *)
15406 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15407 esac
15408 case $ac_prog in
15409 # Accept absolute paths.
15410 [\\/]* | ?:[\\/]*)
15411 re_direlt='/[^/][^/]*/\.\./'
15412 # Canonicalize the pathname of ld
15413 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15414 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15415 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15416 done
15417 test -z "$LD" && LD="$ac_prog"
15418 ;;
15419 "")
15420 # If it fails, then pretend we aren't using GCC.
15421 ac_prog=ld
15422 ;;
15423 *)
15424 # If it is relative, then search for the first ld in PATH.
15425 with_gnu_ld=unknown
15426 ;;
15427 esac
15428 elif test "$with_gnu_ld" = yes; then
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15430 $as_echo_n "checking for GNU ld... " >&6; }
15431 else
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15433 $as_echo_n "checking for non-GNU ld... " >&6; }
15434 fi
15435 if test "${lt_cv_path_LD+set}" = set; then :
15436 $as_echo_n "(cached) " >&6
15437 else
15438 if test -z "$LD"; then
15439 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15440 for ac_dir in $PATH; do
15441 IFS="$lt_save_ifs"
15442 test -z "$ac_dir" && ac_dir=.
15443 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15444 lt_cv_path_LD="$ac_dir/$ac_prog"
15445 # Check to see if the program is GNU ld. I'd rather use --version,
15446 # but apparently some variants of GNU ld only accept -v.
15447 # Break only if it was the GNU/non-GNU ld that we prefer.
15448 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15449 *GNU* | *'with BFD'*)
15450 test "$with_gnu_ld" != no && break
15451 ;;
15452 *)
15453 test "$with_gnu_ld" != yes && break
15454 ;;
15455 esac
15456 fi
15457 done
15458 IFS="$lt_save_ifs"
15459 else
15460 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15461 fi
15462 fi
15463
15464 LD="$lt_cv_path_LD"
15465 if test -n "$LD"; then
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15467 $as_echo "$LD" >&6; }
15468 else
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15470 $as_echo "no" >&6; }
15471 fi
15472 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15474 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15475 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
15476 $as_echo_n "(cached) " >&6
15477 else
15478 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15479 case `$LD -v 2>&1 </dev/null` in
15480 *GNU* | *'with BFD'*)
15481 lt_cv_prog_gnu_ld=yes
15482 ;;
15483 *)
15484 lt_cv_prog_gnu_ld=no
15485 ;;
15486 esac
15487 fi
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15489 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15490 with_gnu_ld=$lt_cv_prog_gnu_ld
15491
15492
15493
15494
15495
15496
15497
15498 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15499 # archiving commands below assume that GNU ld is being used.
15500 if test "$with_gnu_ld" = yes; then
15501 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15502 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'
15503
15504 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15505 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15506
15507 # If archive_cmds runs LD, not CC, wlarc should be empty
15508 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15509 # investigate it a little bit more. (MM)
15510 wlarc='${wl}'
15511
15512 # ancient GNU ld didn't support --whole-archive et. al.
15513 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15514 $GREP 'no-whole-archive' > /dev/null; then
15515 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15516 else
15517 whole_archive_flag_spec_CXX=
15518 fi
15519 else
15520 with_gnu_ld=no
15521 wlarc=
15522
15523 # A generic and very simple default shared library creation
15524 # command for GNU C++ for the case where it uses the native
15525 # linker, instead of GNU ld. If possible, this setting should
15526 # overridden to take advantage of the native linker features on
15527 # the platform it is being used on.
15528 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15529 fi
15530
15531 # Commands to make compiler produce verbose output that lists
15532 # what "hidden" libraries, object files and flags are used when
15533 # linking a shared library.
15534 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15535
15536 else
15537 GXX=no
15538 with_gnu_ld=no
15539 wlarc=
15540 fi
15541
15542 # PORTME: fill in a description of your system's C++ link characteristics
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15544 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15545 ld_shlibs_CXX=yes
15546 case $host_os in
15547 aix3*)
15548 # FIXME: insert proper C++ library support
15549 ld_shlibs_CXX=no
15550 ;;
15551 aix[4-9]*)
15552 if test "$host_cpu" = ia64; then
15553 # On IA64, the linker does run time linking by default, so we don't
15554 # have to do anything special.
15555 aix_use_runtimelinking=no
15556 exp_sym_flag='-Bexport'
15557 no_entry_flag=""
15558 else
15559 aix_use_runtimelinking=no
15560
15561 # Test if we are trying to use run time linking or normal
15562 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15563 # need to do runtime linking.
15564 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15565 for ld_flag in $LDFLAGS; do
15566 case $ld_flag in
15567 *-brtl*)
15568 aix_use_runtimelinking=yes
15569 break
15570 ;;
15571 esac
15572 done
15573 ;;
15574 esac
15575
15576 exp_sym_flag='-bexport'
15577 no_entry_flag='-bnoentry'
15578 fi
15579
15580 # When large executables or shared objects are built, AIX ld can
15581 # have problems creating the table of contents. If linking a library
15582 # or program results in "error TOC overflow" add -mminimal-toc to
15583 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15584 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15585
15586 archive_cmds_CXX=''
15587 hardcode_direct_CXX=yes
15588 hardcode_direct_absolute_CXX=yes
15589 hardcode_libdir_separator_CXX=':'
15590 link_all_deplibs_CXX=yes
15591 file_list_spec_CXX='${wl}-f,'
15592
15593 if test "$GXX" = yes; then
15594 case $host_os in aix4.[012]|aix4.[012].*)
15595 # We only want to do this on AIX 4.2 and lower, the check
15596 # below for broken collect2 doesn't work under 4.3+
15597 collect2name=`${CC} -print-prog-name=collect2`
15598 if test -f "$collect2name" &&
15599 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15600 then
15601 # We have reworked collect2
15602 :
15603 else
15604 # We have old collect2
15605 hardcode_direct_CXX=unsupported
15606 # It fails to find uninstalled libraries when the uninstalled
15607 # path is not listed in the libpath. Setting hardcode_minus_L
15608 # to unsupported forces relinking
15609 hardcode_minus_L_CXX=yes
15610 hardcode_libdir_flag_spec_CXX='-L$libdir'
15611 hardcode_libdir_separator_CXX=
15612 fi
15613 esac
15614 shared_flag='-shared'
15615 if test "$aix_use_runtimelinking" = yes; then
15616 shared_flag="$shared_flag "'${wl}-G'
15617 fi
15618 else
15619 # not using gcc
15620 if test "$host_cpu" = ia64; then
15621 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15622 # chokes on -Wl,-G. The following line is correct:
15623 shared_flag='-G'
15624 else
15625 if test "$aix_use_runtimelinking" = yes; then
15626 shared_flag='${wl}-G'
15627 else
15628 shared_flag='${wl}-bM:SRE'
15629 fi
15630 fi
15631 fi
15632
15633 export_dynamic_flag_spec_CXX='${wl}-bexpall'
15634 # It seems that -bexpall does not export symbols beginning with
15635 # underscore (_), so it is better to generate a list of symbols to
15636 # export.
15637 always_export_symbols_CXX=yes
15638 if test "$aix_use_runtimelinking" = yes; then
15639 # Warning - without using the other runtime loading flags (-brtl),
15640 # -berok will link without error, but may produce a broken library.
15641 allow_undefined_flag_CXX='-berok'
15642 # Determine the default libpath from the value encoded in an empty
15643 # executable.
15644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15645 /* end confdefs.h. */
15646
15647 int
15648 main ()
15649 {
15650
15651 ;
15652 return 0;
15653 }
15654 _ACEOF
15655 if ac_fn_cxx_try_link "$LINENO"; then :
15656
15657 lt_aix_libpath_sed='
15658 /Import File Strings/,/^$/ {
15659 /^0/ {
15660 s/^0 *\(.*\)$/\1/
15661 p
15662 }
15663 }'
15664 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15665 # Check for a 64-bit object if we didn't find anything.
15666 if test -z "$aix_libpath"; then
15667 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15668 fi
15669 fi
15670 rm -f core conftest.err conftest.$ac_objext \
15671 conftest$ac_exeext conftest.$ac_ext
15672 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15673
15674 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15675
15676 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"
15677 else
15678 if test "$host_cpu" = ia64; then
15679 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15680 allow_undefined_flag_CXX="-z nodefs"
15681 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"
15682 else
15683 # Determine the default libpath from the value encoded in an
15684 # empty executable.
15685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15686 /* end confdefs.h. */
15687
15688 int
15689 main ()
15690 {
15691
15692 ;
15693 return 0;
15694 }
15695 _ACEOF
15696 if ac_fn_cxx_try_link "$LINENO"; then :
15697
15698 lt_aix_libpath_sed='
15699 /Import File Strings/,/^$/ {
15700 /^0/ {
15701 s/^0 *\(.*\)$/\1/
15702 p
15703 }
15704 }'
15705 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15706 # Check for a 64-bit object if we didn't find anything.
15707 if test -z "$aix_libpath"; then
15708 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15709 fi
15710 fi
15711 rm -f core conftest.err conftest.$ac_objext \
15712 conftest$ac_exeext conftest.$ac_ext
15713 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15714
15715 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15716 # Warning - without using the other run time loading flags,
15717 # -berok will link without error, but may produce a broken library.
15718 no_undefined_flag_CXX=' ${wl}-bernotok'
15719 allow_undefined_flag_CXX=' ${wl}-berok'
15720 # Exported symbols can be pulled into shared objects from archives
15721 whole_archive_flag_spec_CXX='$convenience'
15722 archive_cmds_need_lc_CXX=yes
15723 # This is similar to how AIX traditionally builds its shared
15724 # libraries.
15725 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'
15726 fi
15727 fi
15728 ;;
15729
15730 beos*)
15731 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15732 allow_undefined_flag_CXX=unsupported
15733 # Joseph Beckenbach <[email protected]> says some releases of gcc
15734 # support --undefined. This deserves some investigation. FIXME
15735 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15736 else
15737 ld_shlibs_CXX=no
15738 fi
15739 ;;
15740
15741 chorus*)
15742 case $cc_basename in
15743 *)
15744 # FIXME: insert proper C++ library support
15745 ld_shlibs_CXX=no
15746 ;;
15747 esac
15748 ;;
15749
15750 cygwin* | mingw* | pw32* | cegcc*)
15751 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15752 # as there is no search path for DLLs.
15753 hardcode_libdir_flag_spec_CXX='-L$libdir'
15754 allow_undefined_flag_CXX=unsupported
15755 always_export_symbols_CXX=no
15756 enable_shared_with_static_runtimes_CXX=yes
15757
15758 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15759 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'
15760 # If the export-symbols file already is a .def file (1st line
15761 # is EXPORTS), use it as is; otherwise, prepend...
15762 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15763 cp $export_symbols $output_objdir/$soname.def;
15764 else
15765 echo EXPORTS > $output_objdir/$soname.def;
15766 cat $export_symbols >> $output_objdir/$soname.def;
15767 fi~
15768 $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'
15769 else
15770 ld_shlibs_CXX=no
15771 fi
15772 ;;
15773 darwin* | rhapsody*)
15774
15775
15776 archive_cmds_need_lc_CXX=no
15777 hardcode_direct_CXX=no
15778 hardcode_automatic_CXX=yes
15779 hardcode_shlibpath_var_CXX=unsupported
15780 whole_archive_flag_spec_CXX=''
15781 link_all_deplibs_CXX=yes
15782 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15783 case $cc_basename in
15784 ifort*) _lt_dar_can_shared=yes ;;
15785 *) _lt_dar_can_shared=$GCC ;;
15786 esac
15787 if test "$_lt_dar_can_shared" = "yes"; then
15788 output_verbose_link_cmd=echo
15789 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}"
15790 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15791 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}"
15792 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}"
15793 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15794 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}"
15795 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}"
15796 fi
15797
15798 else
15799 ld_shlibs_CXX=no
15800 fi
15801
15802 ;;
15803
15804 dgux*)
15805 case $cc_basename in
15806 ec++*)
15807 # FIXME: insert proper C++ library support
15808 ld_shlibs_CXX=no
15809 ;;
15810 ghcx*)
15811 # Green Hills C++ Compiler
15812 # FIXME: insert proper C++ library support
15813 ld_shlibs_CXX=no
15814 ;;
15815 *)
15816 # FIXME: insert proper C++ library support
15817 ld_shlibs_CXX=no
15818 ;;
15819 esac
15820 ;;
15821
15822 freebsd[12]*)
15823 # C++ shared libraries reported to be fairly broken before
15824 # switch to ELF
15825 ld_shlibs_CXX=no
15826 ;;
15827
15828 freebsd-elf*)
15829 archive_cmds_need_lc_CXX=no
15830 ;;
15831
15832 freebsd* | dragonfly*)
15833 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15834 # conventions
15835 ld_shlibs_CXX=yes
15836 ;;
15837
15838 gnu*)
15839 ;;
15840
15841 hpux9*)
15842 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15843 hardcode_libdir_separator_CXX=:
15844 export_dynamic_flag_spec_CXX='${wl}-E'
15845 hardcode_direct_CXX=yes
15846 hardcode_minus_L_CXX=yes # Not in the search PATH,
15847 # but as the default
15848 # location of the library.
15849
15850 case $cc_basename in
15851 CC*)
15852 # FIXME: insert proper C++ library support
15853 ld_shlibs_CXX=no
15854 ;;
15855 aCC*)
15856 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'
15857 # Commands to make compiler produce verbose output that lists
15858 # what "hidden" libraries, object files and flags are used when
15859 # linking a shared library.
15860 #
15861 # There doesn't appear to be a way to prevent this compiler from
15862 # explicitly linking system object files so we need to strip them
15863 # from the output so that they don't get included in the library
15864 # dependencies.
15865 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'
15866 ;;
15867 *)
15868 if test "$GXX" = yes; then
15869 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'
15870 else
15871 # FIXME: insert proper C++ library support
15872 ld_shlibs_CXX=no
15873 fi
15874 ;;
15875 esac
15876 ;;
15877
15878 hpux10*|hpux11*)
15879 if test $with_gnu_ld = no; then
15880 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15881 hardcode_libdir_separator_CXX=:
15882
15883 case $host_cpu in
15884 hppa*64*|ia64*)
15885 ;;
15886 *)
15887 export_dynamic_flag_spec_CXX='${wl}-E'
15888 ;;
15889 esac
15890 fi
15891 case $host_cpu in
15892 hppa*64*|ia64*)
15893 hardcode_direct_CXX=no
15894 hardcode_shlibpath_var_CXX=no
15895 ;;
15896 *)
15897 hardcode_direct_CXX=yes
15898 hardcode_direct_absolute_CXX=yes
15899 hardcode_minus_L_CXX=yes # Not in the search PATH,
15900 # but as the default
15901 # location of the library.
15902 ;;
15903 esac
15904
15905 case $cc_basename in
15906 CC*)
15907 # FIXME: insert proper C++ library support
15908 ld_shlibs_CXX=no
15909 ;;
15910 aCC*)
15911 case $host_cpu in
15912 hppa*64*)
15913 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15914 ;;
15915 ia64*)
15916 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15917 ;;
15918 *)
15919 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15920 ;;
15921 esac
15922 # Commands to make compiler produce verbose output that lists
15923 # what "hidden" libraries, object files and flags are used when
15924 # linking a shared library.
15925 #
15926 # There doesn't appear to be a way to prevent this compiler from
15927 # explicitly linking system object files so we need to strip them
15928 # from the output so that they don't get included in the library
15929 # dependencies.
15930 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'
15931 ;;
15932 *)
15933 if test "$GXX" = yes; then
15934 if test $with_gnu_ld = no; then
15935 case $host_cpu in
15936 hppa*64*)
15937 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15938 ;;
15939 ia64*)
15940 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15941 ;;
15942 *)
15943 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'
15944 ;;
15945 esac
15946 fi
15947 else
15948 # FIXME: insert proper C++ library support
15949 ld_shlibs_CXX=no
15950 fi
15951 ;;
15952 esac
15953 ;;
15954
15955 interix[3-9]*)
15956 hardcode_direct_CXX=no
15957 hardcode_shlibpath_var_CXX=no
15958 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15959 export_dynamic_flag_spec_CXX='${wl}-E'
15960 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15961 # Instead, shared libraries are loaded at an image base (0x10000000 by
15962 # default) and relocated if they conflict, which is a slow very memory
15963 # consuming and fragmenting process. To avoid this, we pick a random,
15964 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15965 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15966 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'
15967 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'
15968 ;;
15969 irix5* | irix6*)
15970 case $cc_basename in
15971 CC*)
15972 # SGI C++
15973 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'
15974
15975 # Archives containing C++ object files must be created using
15976 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15977 # necessary to make sure instantiated templates are included
15978 # in the archive.
15979 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15980 ;;
15981 *)
15982 if test "$GXX" = yes; then
15983 if test "$with_gnu_ld" = no; then
15984 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'
15985 else
15986 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'
15987 fi
15988 fi
15989 link_all_deplibs_CXX=yes
15990 ;;
15991 esac
15992 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15993 hardcode_libdir_separator_CXX=:
15994 inherit_rpath_CXX=yes
15995 ;;
15996
15997 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15998 case $cc_basename in
15999 KCC*)
16000 # Kuck and Associates, Inc. (KAI) C++ Compiler
16001
16002 # KCC will only create a shared library if the output file
16003 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16004 # to its proper name (with version) after linking.
16005 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'
16006 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'
16007 # Commands to make compiler produce verbose output that lists
16008 # what "hidden" libraries, object files and flags are used when
16009 # linking a shared library.
16010 #
16011 # There doesn't appear to be a way to prevent this compiler from
16012 # explicitly linking system object files so we need to strip them
16013 # from the output so that they don't get included in the library
16014 # dependencies.
16015 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'
16016
16017 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16018 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16019
16020 # Archives containing C++ object files must be created using
16021 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16022 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16023 ;;
16024 icpc* | ecpc* )
16025 # Intel C++
16026 with_gnu_ld=yes
16027 # version 8.0 and above of icpc choke on multiply defined symbols
16028 # if we add $predep_objects and $postdep_objects, however 7.1 and
16029 # earlier do not add the objects themselves.
16030 case `$CC -V 2>&1` in
16031 *"Version 7."*)
16032 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16033 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'
16034 ;;
16035 *) # Version 8.0 or newer
16036 tmp_idyn=
16037 case $host_cpu in
16038 ia64*) tmp_idyn=' -i_dynamic';;
16039 esac
16040 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16041 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'
16042 ;;
16043 esac
16044 archive_cmds_need_lc_CXX=no
16045 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16046 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16047 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16048 ;;
16049 pgCC* | pgcpp*)
16050 # Portland Group C++ compiler
16051 case `$CC -V` in
16052 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
16053 prelink_cmds_CXX='tpldir=Template.dir~
16054 rm -rf $tpldir~
16055 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16056 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
16057 old_archive_cmds_CXX='tpldir=Template.dir~
16058 rm -rf $tpldir~
16059 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16060 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
16061 $RANLIB $oldlib'
16062 archive_cmds_CXX='tpldir=Template.dir~
16063 rm -rf $tpldir~
16064 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16065 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16066 archive_expsym_cmds_CXX='tpldir=Template.dir~
16067 rm -rf $tpldir~
16068 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16069 $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'
16070 ;;
16071 *) # Version 6 will use weak symbols
16072 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16073 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'
16074 ;;
16075 esac
16076
16077 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16078 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16079 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'
16080 ;;
16081 cxx*)
16082 # Compaq C++
16083 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16084 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'
16085
16086 runpath_var=LD_RUN_PATH
16087 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16088 hardcode_libdir_separator_CXX=:
16089
16090 # Commands to make compiler produce verbose output that lists
16091 # what "hidden" libraries, object files and flags are used when
16092 # linking a shared library.
16093 #
16094 # There doesn't appear to be a way to prevent this compiler from
16095 # explicitly linking system object files so we need to strip them
16096 # from the output so that they don't get included in the library
16097 # dependencies.
16098 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'
16099 ;;
16100 xl*)
16101 # IBM XL 8.0 on PPC, with GNU ld
16102 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16103 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16104 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16105 if test "x$supports_anon_versioning" = xyes; then
16106 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16107 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16108 echo "local: *; };" >> $output_objdir/$libname.ver~
16109 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16110 fi
16111 ;;
16112 *)
16113 case `$CC -V 2>&1 | sed 5q` in
16114 *Sun\ C*)
16115 # Sun C++ 5.9
16116 no_undefined_flag_CXX=' -zdefs'
16117 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16118 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'
16119 hardcode_libdir_flag_spec_CXX='-R$libdir'
16120 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'
16121 compiler_needs_object_CXX=yes
16122
16123 # Not sure whether something based on
16124 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16125 # would be better.
16126 output_verbose_link_cmd='echo'
16127
16128 # Archives containing C++ object files must be created using
16129 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16130 # necessary to make sure instantiated templates are included
16131 # in the archive.
16132 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16133 ;;
16134 esac
16135 ;;
16136 esac
16137 ;;
16138
16139 lynxos*)
16140 # FIXME: insert proper C++ library support
16141 ld_shlibs_CXX=no
16142 ;;
16143
16144 m88k*)
16145 # FIXME: insert proper C++ library support
16146 ld_shlibs_CXX=no
16147 ;;
16148
16149 mvs*)
16150 case $cc_basename in
16151 cxx*)
16152 # FIXME: insert proper C++ library support
16153 ld_shlibs_CXX=no
16154 ;;
16155 *)
16156 # FIXME: insert proper C++ library support
16157 ld_shlibs_CXX=no
16158 ;;
16159 esac
16160 ;;
16161
16162 netbsd*)
16163 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16164 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16165 wlarc=
16166 hardcode_libdir_flag_spec_CXX='-R$libdir'
16167 hardcode_direct_CXX=yes
16168 hardcode_shlibpath_var_CXX=no
16169 fi
16170 # Workaround some broken pre-1.5 toolchains
16171 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16172 ;;
16173
16174 *nto* | *qnx*)
16175 ld_shlibs_CXX=yes
16176 ;;
16177
16178 openbsd2*)
16179 # C++ shared libraries are fairly broken
16180 ld_shlibs_CXX=no
16181 ;;
16182
16183 openbsd*)
16184 if test -f /usr/libexec/ld.so; then
16185 hardcode_direct_CXX=yes
16186 hardcode_shlibpath_var_CXX=no
16187 hardcode_direct_absolute_CXX=yes
16188 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16189 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16190 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16191 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16192 export_dynamic_flag_spec_CXX='${wl}-E'
16193 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16194 fi
16195 output_verbose_link_cmd=echo
16196 else
16197 ld_shlibs_CXX=no
16198 fi
16199 ;;
16200
16201 osf3* | osf4* | osf5*)
16202 case $cc_basename in
16203 KCC*)
16204 # Kuck and Associates, Inc. (KAI) C++ Compiler
16205
16206 # KCC will only create a shared library if the output file
16207 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16208 # to its proper name (with version) after linking.
16209 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'
16210
16211 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16212 hardcode_libdir_separator_CXX=:
16213
16214 # Archives containing C++ object files must be created using
16215 # the KAI C++ compiler.
16216 case $host in
16217 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16218 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16219 esac
16220 ;;
16221 RCC*)
16222 # Rational C++ 2.4.1
16223 # FIXME: insert proper C++ library support
16224 ld_shlibs_CXX=no
16225 ;;
16226 cxx*)
16227 case $host in
16228 osf3*)
16229 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16230 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'
16231 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16232 ;;
16233 *)
16234 allow_undefined_flag_CXX=' -expect_unresolved \*'
16235 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'
16236 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16237 echo "-hidden">> $lib.exp~
16238 $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~
16239 $RM $lib.exp'
16240 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16241 ;;
16242 esac
16243
16244 hardcode_libdir_separator_CXX=:
16245
16246 # Commands to make compiler produce verbose output that lists
16247 # what "hidden" libraries, object files and flags are used when
16248 # linking a shared library.
16249 #
16250 # There doesn't appear to be a way to prevent this compiler from
16251 # explicitly linking system object files so we need to strip them
16252 # from the output so that they don't get included in the library
16253 # dependencies.
16254 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'
16255 ;;
16256 *)
16257 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16258 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16259 case $host in
16260 osf3*)
16261 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'
16262 ;;
16263 *)
16264 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'
16265 ;;
16266 esac
16267
16268 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16269 hardcode_libdir_separator_CXX=:
16270
16271 # Commands to make compiler produce verbose output that lists
16272 # what "hidden" libraries, object files and flags are used when
16273 # linking a shared library.
16274 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16275
16276 else
16277 # FIXME: insert proper C++ library support
16278 ld_shlibs_CXX=no
16279 fi
16280 ;;
16281 esac
16282 ;;
16283
16284 psos*)
16285 # FIXME: insert proper C++ library support
16286 ld_shlibs_CXX=no
16287 ;;
16288
16289 sunos4*)
16290 case $cc_basename in
16291 CC*)
16292 # Sun C++ 4.x
16293 # FIXME: insert proper C++ library support
16294 ld_shlibs_CXX=no
16295 ;;
16296 lcc*)
16297 # Lucid
16298 # FIXME: insert proper C++ library support
16299 ld_shlibs_CXX=no
16300 ;;
16301 *)
16302 # FIXME: insert proper C++ library support
16303 ld_shlibs_CXX=no
16304 ;;
16305 esac
16306 ;;
16307
16308 solaris*)
16309 case $cc_basename in
16310 CC*)
16311 # Sun C++ 4.2, 5.x and Centerline C++
16312 archive_cmds_need_lc_CXX=yes
16313 no_undefined_flag_CXX=' -zdefs'
16314 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16315 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16316 $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'
16317
16318 hardcode_libdir_flag_spec_CXX='-R$libdir'
16319 hardcode_shlibpath_var_CXX=no
16320 case $host_os in
16321 solaris2.[0-5] | solaris2.[0-5].*) ;;
16322 *)
16323 # The compiler driver will combine and reorder linker options,
16324 # but understands `-z linker_flag'.
16325 # Supported since Solaris 2.6 (maybe 2.5.1?)
16326 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16327 ;;
16328 esac
16329 link_all_deplibs_CXX=yes
16330
16331 output_verbose_link_cmd='echo'
16332
16333 # Archives containing C++ object files must be created using
16334 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16335 # necessary to make sure instantiated templates are included
16336 # in the archive.
16337 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16338 ;;
16339 gcx*)
16340 # Green Hills C++ Compiler
16341 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16342
16343 # The C++ compiler must be used to create the archive.
16344 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16345 ;;
16346 *)
16347 # GNU C++ compiler with Solaris linker
16348 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16349 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16350 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16351 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16352 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16353 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16354
16355 # Commands to make compiler produce verbose output that lists
16356 # what "hidden" libraries, object files and flags are used when
16357 # linking a shared library.
16358 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16359 else
16360 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16361 # platform.
16362 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16363 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16364 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16365
16366 # Commands to make compiler produce verbose output that lists
16367 # what "hidden" libraries, object files and flags are used when
16368 # linking a shared library.
16369 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16370 fi
16371
16372 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16373 case $host_os in
16374 solaris2.[0-5] | solaris2.[0-5].*) ;;
16375 *)
16376 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16377 ;;
16378 esac
16379 fi
16380 ;;
16381 esac
16382 ;;
16383
16384 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16385 no_undefined_flag_CXX='${wl}-z,text'
16386 archive_cmds_need_lc_CXX=no
16387 hardcode_shlibpath_var_CXX=no
16388 runpath_var='LD_RUN_PATH'
16389
16390 case $cc_basename in
16391 CC*)
16392 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16393 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16394 ;;
16395 *)
16396 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16397 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16398 ;;
16399 esac
16400 ;;
16401
16402 sysv5* | sco3.2v5* | sco5v6*)
16403 # Note: We can NOT use -z defs as we might desire, because we do not
16404 # link with -lc, and that would cause any symbols used from libc to
16405 # always be unresolved, which means just about no library would
16406 # ever link correctly. If we're not using GNU ld we use -z text
16407 # though, which does catch some bad symbols but isn't as heavy-handed
16408 # as -z defs.
16409 no_undefined_flag_CXX='${wl}-z,text'
16410 allow_undefined_flag_CXX='${wl}-z,nodefs'
16411 archive_cmds_need_lc_CXX=no
16412 hardcode_shlibpath_var_CXX=no
16413 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16414 hardcode_libdir_separator_CXX=':'
16415 link_all_deplibs_CXX=yes
16416 export_dynamic_flag_spec_CXX='${wl}-Bexport'
16417 runpath_var='LD_RUN_PATH'
16418
16419 case $cc_basename in
16420 CC*)
16421 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16422 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16423 ;;
16424 *)
16425 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16426 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16427 ;;
16428 esac
16429 ;;
16430
16431 tandem*)
16432 case $cc_basename in
16433 NCC*)
16434 # NonStop-UX NCC 3.20
16435 # FIXME: insert proper C++ library support
16436 ld_shlibs_CXX=no
16437 ;;
16438 *)
16439 # FIXME: insert proper C++ library support
16440 ld_shlibs_CXX=no
16441 ;;
16442 esac
16443 ;;
16444
16445 vxworks*)
16446 # FIXME: insert proper C++ library support
16447 ld_shlibs_CXX=no
16448 ;;
16449
16450 *)
16451 # FIXME: insert proper C++ library support
16452 ld_shlibs_CXX=no
16453 ;;
16454 esac
16455
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16457 $as_echo "$ld_shlibs_CXX" >&6; }
16458 test "$ld_shlibs_CXX" = no && can_build_shared=no
16459
16460 GCC_CXX="$GXX"
16461 LD_CXX="$LD"
16462
16463 ## CAVEAT EMPTOR:
16464 ## There is no encapsulation within the following macros, do not change
16465 ## the running order or otherwise move them around unless you know exactly
16466 ## what you are doing...
16467 # Dependencies to place before and after the object being linked:
16468 predep_objects_CXX=
16469 postdep_objects_CXX=
16470 predeps_CXX=
16471 postdeps_CXX=
16472 compiler_lib_search_path_CXX=
16473
16474 cat > conftest.$ac_ext <<_LT_EOF
16475 class Foo
16476 {
16477 public:
16478 Foo (void) { a = 0; }
16479 private:
16480 int a;
16481 };
16482 _LT_EOF
16483
16484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16485 (eval $ac_compile) 2>&5
16486 ac_status=$?
16487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16488 test $ac_status = 0; }; then
16489 # Parse the compiler output and extract the necessary
16490 # objects, libraries and library flags.
16491
16492 # Sentinel used to keep track of whether or not we are before
16493 # the conftest object file.
16494 pre_test_object_deps_done=no
16495
16496 for p in `eval "$output_verbose_link_cmd"`; do
16497 case $p in
16498
16499 -L* | -R* | -l*)
16500 # Some compilers place space between "-{L,R}" and the path.
16501 # Remove the space.
16502 if test $p = "-L" ||
16503 test $p = "-R"; then
16504 prev=$p
16505 continue
16506 else
16507 prev=
16508 fi
16509
16510 if test "$pre_test_object_deps_done" = no; then
16511 case $p in
16512 -L* | -R*)
16513 # Internal compiler library paths should come after those
16514 # provided the user. The postdeps already come after the
16515 # user supplied libs so there is no need to process them.
16516 if test -z "$compiler_lib_search_path_CXX"; then
16517 compiler_lib_search_path_CXX="${prev}${p}"
16518 else
16519 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16520 fi
16521 ;;
16522 # The "-l" case would never come before the object being
16523 # linked, so don't bother handling this case.
16524 esac
16525 else
16526 if test -z "$postdeps_CXX"; then
16527 postdeps_CXX="${prev}${p}"
16528 else
16529 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16530 fi
16531 fi
16532 ;;
16533
16534 *.$objext)
16535 # This assumes that the test object file only shows up
16536 # once in the compiler output.
16537 if test "$p" = "conftest.$objext"; then
16538 pre_test_object_deps_done=yes
16539 continue
16540 fi
16541
16542 if test "$pre_test_object_deps_done" = no; then
16543 if test -z "$predep_objects_CXX"; then
16544 predep_objects_CXX="$p"
16545 else
16546 predep_objects_CXX="$predep_objects_CXX $p"
16547 fi
16548 else
16549 if test -z "$postdep_objects_CXX"; then
16550 postdep_objects_CXX="$p"
16551 else
16552 postdep_objects_CXX="$postdep_objects_CXX $p"
16553 fi
16554 fi
16555 ;;
16556
16557 *) ;; # Ignore the rest.
16558
16559 esac
16560 done
16561
16562 # Clean up.
16563 rm -f a.out a.exe
16564 else
16565 echo "libtool.m4: error: problem compiling CXX test program"
16566 fi
16567
16568 $RM -f confest.$objext
16569
16570 # PORTME: override above test on systems where it is broken
16571 case $host_os in
16572 interix[3-9]*)
16573 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16574 # hack all around it, let's just trust "g++" to DTRT.
16575 predep_objects_CXX=
16576 postdep_objects_CXX=
16577 postdeps_CXX=
16578 ;;
16579
16580 linux*)
16581 case `$CC -V 2>&1 | sed 5q` in
16582 *Sun\ C*)
16583 # Sun C++ 5.9
16584
16585 # The more standards-conforming stlport4 library is
16586 # incompatible with the Cstd library. Avoid specifying
16587 # it if it's in CXXFLAGS. Ignore libCrun as
16588 # -library=stlport4 depends on it.
16589 case " $CXX $CXXFLAGS " in
16590 *" -library=stlport4 "*)
16591 solaris_use_stlport4=yes
16592 ;;
16593 esac
16594
16595 if test "$solaris_use_stlport4" != yes; then
16596 postdeps_CXX='-library=Cstd -library=Crun'
16597 fi
16598 ;;
16599 esac
16600 ;;
16601
16602 solaris*)
16603 case $cc_basename in
16604 CC*)
16605 # The more standards-conforming stlport4 library is
16606 # incompatible with the Cstd library. Avoid specifying
16607 # it if it's in CXXFLAGS. Ignore libCrun as
16608 # -library=stlport4 depends on it.
16609 case " $CXX $CXXFLAGS " in
16610 *" -library=stlport4 "*)
16611 solaris_use_stlport4=yes
16612 ;;
16613 esac
16614
16615 # Adding this requires a known-good setup of shared libraries for
16616 # Sun compiler versions before 5.6, else PIC objects from an old
16617 # archive will be linked into the output, leading to subtle bugs.
16618 if test "$solaris_use_stlport4" != yes; then
16619 postdeps_CXX='-library=Cstd -library=Crun'
16620 fi
16621 ;;
16622 esac
16623 ;;
16624 esac
16625
16626
16627 case " $postdeps_CXX " in
16628 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16629 esac
16630 compiler_lib_search_dirs_CXX=
16631 if test -n "${compiler_lib_search_path_CXX}"; then
16632 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16633 fi
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665 lt_prog_compiler_wl_CXX=
16666 lt_prog_compiler_pic_CXX=
16667 lt_prog_compiler_static_CXX=
16668
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16670 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16671
16672 # C++ specific cases for pic, static, wl, etc.
16673 if test "$GXX" = yes; then
16674 lt_prog_compiler_wl_CXX='-Wl,'
16675 lt_prog_compiler_static_CXX='-static'
16676
16677 case $host_os in
16678 aix*)
16679 # All AIX code is PIC.
16680 if test "$host_cpu" = ia64; then
16681 # AIX 5 now supports IA64 processor
16682 lt_prog_compiler_static_CXX='-Bstatic'
16683 fi
16684 ;;
16685
16686 amigaos*)
16687 case $host_cpu in
16688 powerpc)
16689 # see comment about AmigaOS4 .so support
16690 lt_prog_compiler_pic_CXX='-fPIC'
16691 ;;
16692 m68k)
16693 # FIXME: we need at least 68020 code to build shared libraries, but
16694 # adding the `-m68020' flag to GCC prevents building anything better,
16695 # like `-m68040'.
16696 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16697 ;;
16698 esac
16699 ;;
16700
16701 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16702 # PIC is the default for these OSes.
16703 ;;
16704 mingw* | cygwin* | os2* | pw32* | cegcc*)
16705 # This hack is so that the source file can tell whether it is being
16706 # built for inclusion in a dll (and should export symbols for example).
16707 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16708 # (--disable-auto-import) libraries
16709 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16710 ;;
16711 darwin* | rhapsody*)
16712 # PIC is the default on this platform
16713 # Common symbols not allowed in MH_DYLIB files
16714 lt_prog_compiler_pic_CXX='-fno-common'
16715 ;;
16716 *djgpp*)
16717 # DJGPP does not support shared libraries at all
16718 lt_prog_compiler_pic_CXX=
16719 ;;
16720 interix[3-9]*)
16721 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16722 # Instead, we relocate shared libraries at runtime.
16723 ;;
16724 sysv4*MP*)
16725 if test -d /usr/nec; then
16726 lt_prog_compiler_pic_CXX=-Kconform_pic
16727 fi
16728 ;;
16729 hpux*)
16730 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16731 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16732 # sets the default TLS model and affects inlining.
16733 case $host_cpu in
16734 hppa*64*)
16735 ;;
16736 *)
16737 lt_prog_compiler_pic_CXX='-fPIC'
16738 ;;
16739 esac
16740 ;;
16741 *qnx* | *nto*)
16742 # QNX uses GNU C++, but need to define -shared option too, otherwise
16743 # it will coredump.
16744 lt_prog_compiler_pic_CXX='-fPIC -shared'
16745 ;;
16746 *)
16747 lt_prog_compiler_pic_CXX='-fPIC'
16748 ;;
16749 esac
16750 else
16751 case $host_os in
16752 aix[4-9]*)
16753 # All AIX code is PIC.
16754 if test "$host_cpu" = ia64; then
16755 # AIX 5 now supports IA64 processor
16756 lt_prog_compiler_static_CXX='-Bstatic'
16757 else
16758 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16759 fi
16760 ;;
16761 chorus*)
16762 case $cc_basename in
16763 cxch68*)
16764 # Green Hills C++ Compiler
16765 # _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"
16766 ;;
16767 esac
16768 ;;
16769 dgux*)
16770 case $cc_basename in
16771 ec++*)
16772 lt_prog_compiler_pic_CXX='-KPIC'
16773 ;;
16774 ghcx*)
16775 # Green Hills C++ Compiler
16776 lt_prog_compiler_pic_CXX='-pic'
16777 ;;
16778 *)
16779 ;;
16780 esac
16781 ;;
16782 freebsd* | dragonfly*)
16783 # FreeBSD uses GNU C++
16784 ;;
16785 hpux9* | hpux10* | hpux11*)
16786 case $cc_basename in
16787 CC*)
16788 lt_prog_compiler_wl_CXX='-Wl,'
16789 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16790 if test "$host_cpu" != ia64; then
16791 lt_prog_compiler_pic_CXX='+Z'
16792 fi
16793 ;;
16794 aCC*)
16795 lt_prog_compiler_wl_CXX='-Wl,'
16796 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16797 case $host_cpu in
16798 hppa*64*|ia64*)
16799 # +Z the default
16800 ;;
16801 *)
16802 lt_prog_compiler_pic_CXX='+Z'
16803 ;;
16804 esac
16805 ;;
16806 *)
16807 ;;
16808 esac
16809 ;;
16810 interix*)
16811 # This is c89, which is MS Visual C++ (no shared libs)
16812 # Anyone wants to do a port?
16813 ;;
16814 irix5* | irix6* | nonstopux*)
16815 case $cc_basename in
16816 CC*)
16817 lt_prog_compiler_wl_CXX='-Wl,'
16818 lt_prog_compiler_static_CXX='-non_shared'
16819 # CC pic flag -KPIC is the default.
16820 ;;
16821 *)
16822 ;;
16823 esac
16824 ;;
16825 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16826 case $cc_basename in
16827 KCC*)
16828 # KAI C++ Compiler
16829 lt_prog_compiler_wl_CXX='--backend -Wl,'
16830 lt_prog_compiler_pic_CXX='-fPIC'
16831 ;;
16832 ecpc* )
16833 # old Intel C++ for x86_64 which still supported -KPIC.
16834 lt_prog_compiler_wl_CXX='-Wl,'
16835 lt_prog_compiler_pic_CXX='-KPIC'
16836 lt_prog_compiler_static_CXX='-static'
16837 ;;
16838 icpc* )
16839 # Intel C++, used to be incompatible with GCC.
16840 # ICC 10 doesn't accept -KPIC any more.
16841 lt_prog_compiler_wl_CXX='-Wl,'
16842 lt_prog_compiler_pic_CXX='-fPIC'
16843 lt_prog_compiler_static_CXX='-static'
16844 ;;
16845 pgCC* | pgcpp*)
16846 # Portland Group C++ compiler
16847 lt_prog_compiler_wl_CXX='-Wl,'
16848 lt_prog_compiler_pic_CXX='-fpic'
16849 lt_prog_compiler_static_CXX='-Bstatic'
16850 ;;
16851 cxx*)
16852 # Compaq C++
16853 # Make sure the PIC flag is empty. It appears that all Alpha
16854 # Linux and Compaq Tru64 Unix objects are PIC.
16855 lt_prog_compiler_pic_CXX=
16856 lt_prog_compiler_static_CXX='-non_shared'
16857 ;;
16858 xlc* | xlC*)
16859 # IBM XL 8.0 on PPC
16860 lt_prog_compiler_wl_CXX='-Wl,'
16861 lt_prog_compiler_pic_CXX='-qpic'
16862 lt_prog_compiler_static_CXX='-qstaticlink'
16863 ;;
16864 *)
16865 case `$CC -V 2>&1 | sed 5q` in
16866 *Sun\ C*)
16867 # Sun C++ 5.9
16868 lt_prog_compiler_pic_CXX='-KPIC'
16869 lt_prog_compiler_static_CXX='-Bstatic'
16870 lt_prog_compiler_wl_CXX='-Qoption ld '
16871 ;;
16872 esac
16873 ;;
16874 esac
16875 ;;
16876 lynxos*)
16877 ;;
16878 m88k*)
16879 ;;
16880 mvs*)
16881 case $cc_basename in
16882 cxx*)
16883 lt_prog_compiler_pic_CXX='-W c,exportall'
16884 ;;
16885 *)
16886 ;;
16887 esac
16888 ;;
16889 netbsd* | netbsdelf*-gnu)
16890 ;;
16891 *qnx* | *nto*)
16892 # QNX uses GNU C++, but need to define -shared option too, otherwise
16893 # it will coredump.
16894 lt_prog_compiler_pic_CXX='-fPIC -shared'
16895 ;;
16896 osf3* | osf4* | osf5*)
16897 case $cc_basename in
16898 KCC*)
16899 lt_prog_compiler_wl_CXX='--backend -Wl,'
16900 ;;
16901 RCC*)
16902 # Rational C++ 2.4.1
16903 lt_prog_compiler_pic_CXX='-pic'
16904 ;;
16905 cxx*)
16906 # Digital/Compaq C++
16907 lt_prog_compiler_wl_CXX='-Wl,'
16908 # Make sure the PIC flag is empty. It appears that all Alpha
16909 # Linux and Compaq Tru64 Unix objects are PIC.
16910 lt_prog_compiler_pic_CXX=
16911 lt_prog_compiler_static_CXX='-non_shared'
16912 ;;
16913 *)
16914 ;;
16915 esac
16916 ;;
16917 psos*)
16918 ;;
16919 solaris*)
16920 case $cc_basename in
16921 CC*)
16922 # Sun C++ 4.2, 5.x and Centerline C++
16923 lt_prog_compiler_pic_CXX='-KPIC'
16924 lt_prog_compiler_static_CXX='-Bstatic'
16925 lt_prog_compiler_wl_CXX='-Qoption ld '
16926 ;;
16927 gcx*)
16928 # Green Hills C++ Compiler
16929 lt_prog_compiler_pic_CXX='-PIC'
16930 ;;
16931 *)
16932 ;;
16933 esac
16934 ;;
16935 sunos4*)
16936 case $cc_basename in
16937 CC*)
16938 # Sun C++ 4.x
16939 lt_prog_compiler_pic_CXX='-pic'
16940 lt_prog_compiler_static_CXX='-Bstatic'
16941 ;;
16942 lcc*)
16943 # Lucid
16944 lt_prog_compiler_pic_CXX='-pic'
16945 ;;
16946 *)
16947 ;;
16948 esac
16949 ;;
16950 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16951 case $cc_basename in
16952 CC*)
16953 lt_prog_compiler_wl_CXX='-Wl,'
16954 lt_prog_compiler_pic_CXX='-KPIC'
16955 lt_prog_compiler_static_CXX='-Bstatic'
16956 ;;
16957 esac
16958 ;;
16959 tandem*)
16960 case $cc_basename in
16961 NCC*)
16962 # NonStop-UX NCC 3.20
16963 lt_prog_compiler_pic_CXX='-KPIC'
16964 ;;
16965 *)
16966 ;;
16967 esac
16968 ;;
16969 vxworks*)
16970 ;;
16971 *)
16972 lt_prog_compiler_can_build_shared_CXX=no
16973 ;;
16974 esac
16975 fi
16976
16977 case $host_os in
16978 # For platforms which do not support PIC, -DPIC is meaningless:
16979 *djgpp*)
16980 lt_prog_compiler_pic_CXX=
16981 ;;
16982 *)
16983 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16984 ;;
16985 esac
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
16987 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
16988
16989
16990
16991 #
16992 # Check to make sure the PIC flag actually works.
16993 #
16994 if test -n "$lt_prog_compiler_pic_CXX"; then
16995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16996 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16997 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
16998 $as_echo_n "(cached) " >&6
16999 else
17000 lt_cv_prog_compiler_pic_works_CXX=no
17001 ac_outfile=conftest.$ac_objext
17002 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17003 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17004 # Insert the option either (1) after the last *FLAGS variable, or
17005 # (2) before a word containing "conftest.", or (3) at the end.
17006 # Note that $ac_compile itself does not contain backslashes and begins
17007 # with a dollar sign (not a hyphen), so the echo should work correctly.
17008 # The option is referenced via a variable to avoid confusing sed.
17009 lt_compile=`echo "$ac_compile" | $SED \
17010 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17012 -e 's:$: $lt_compiler_flag:'`
17013 (eval echo "\"\$as_me:17013: $lt_compile\"" >&5)
17014 (eval "$lt_compile" 2>conftest.err)
17015 ac_status=$?
17016 cat conftest.err >&5
17017 echo "$as_me:17017: \$? = $ac_status" >&5
17018 if (exit $ac_status) && test -s "$ac_outfile"; then
17019 # The compiler can only warn and ignore the option if not recognized
17020 # So say no if there are warnings other than the usual output.
17021 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17022 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17023 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17024 lt_cv_prog_compiler_pic_works_CXX=yes
17025 fi
17026 fi
17027 $RM conftest*
17028
17029 fi
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17031 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17032
17033 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17034 case $lt_prog_compiler_pic_CXX in
17035 "" | " "*) ;;
17036 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17037 esac
17038 else
17039 lt_prog_compiler_pic_CXX=
17040 lt_prog_compiler_can_build_shared_CXX=no
17041 fi
17042
17043 fi
17044
17045
17046
17047 #
17048 # Check to make sure the static flag actually works.
17049 #
17050 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17052 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17053 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
17054 $as_echo_n "(cached) " >&6
17055 else
17056 lt_cv_prog_compiler_static_works_CXX=no
17057 save_LDFLAGS="$LDFLAGS"
17058 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17059 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17060 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17061 # The linker can only warn and ignore the option if not recognized
17062 # So say no if there are warnings
17063 if test -s conftest.err; then
17064 # Append any errors to the config.log.
17065 cat conftest.err 1>&5
17066 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17067 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17068 if diff conftest.exp conftest.er2 >/dev/null; then
17069 lt_cv_prog_compiler_static_works_CXX=yes
17070 fi
17071 else
17072 lt_cv_prog_compiler_static_works_CXX=yes
17073 fi
17074 fi
17075 $RM -r conftest*
17076 LDFLAGS="$save_LDFLAGS"
17077
17078 fi
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17080 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17081
17082 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17083 :
17084 else
17085 lt_prog_compiler_static_CXX=
17086 fi
17087
17088
17089
17090
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17092 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17093 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
17094 $as_echo_n "(cached) " >&6
17095 else
17096 lt_cv_prog_compiler_c_o_CXX=no
17097 $RM -r conftest 2>/dev/null
17098 mkdir conftest
17099 cd conftest
17100 mkdir out
17101 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17102
17103 lt_compiler_flag="-o out/conftest2.$ac_objext"
17104 # Insert the option either (1) after the last *FLAGS variable, or
17105 # (2) before a word containing "conftest.", or (3) at the end.
17106 # Note that $ac_compile itself does not contain backslashes and begins
17107 # with a dollar sign (not a hyphen), so the echo should work correctly.
17108 lt_compile=`echo "$ac_compile" | $SED \
17109 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17110 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17111 -e 's:$: $lt_compiler_flag:'`
17112 (eval echo "\"\$as_me:17112: $lt_compile\"" >&5)
17113 (eval "$lt_compile" 2>out/conftest.err)
17114 ac_status=$?
17115 cat out/conftest.err >&5
17116 echo "$as_me:17116: \$? = $ac_status" >&5
17117 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17118 then
17119 # The compiler can only warn and ignore the option if not recognized
17120 # So say no if there are warnings
17121 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17122 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17123 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17124 lt_cv_prog_compiler_c_o_CXX=yes
17125 fi
17126 fi
17127 chmod u+w . 2>&5
17128 $RM conftest*
17129 # SGI C++ compiler will create directory out/ii_files/ for
17130 # template instantiation
17131 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17132 $RM out/* && rmdir out
17133 cd ..
17134 $RM -r conftest
17135 $RM conftest*
17136
17137 fi
17138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17139 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17140
17141
17142
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17144 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17145 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
17146 $as_echo_n "(cached) " >&6
17147 else
17148 lt_cv_prog_compiler_c_o_CXX=no
17149 $RM -r conftest 2>/dev/null
17150 mkdir conftest
17151 cd conftest
17152 mkdir out
17153 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17154
17155 lt_compiler_flag="-o out/conftest2.$ac_objext"
17156 # Insert the option either (1) after the last *FLAGS variable, or
17157 # (2) before a word containing "conftest.", or (3) at the end.
17158 # Note that $ac_compile itself does not contain backslashes and begins
17159 # with a dollar sign (not a hyphen), so the echo should work correctly.
17160 lt_compile=`echo "$ac_compile" | $SED \
17161 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17162 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17163 -e 's:$: $lt_compiler_flag:'`
17164 (eval echo "\"\$as_me:17164: $lt_compile\"" >&5)
17165 (eval "$lt_compile" 2>out/conftest.err)
17166 ac_status=$?
17167 cat out/conftest.err >&5
17168 echo "$as_me:17168: \$? = $ac_status" >&5
17169 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17170 then
17171 # The compiler can only warn and ignore the option if not recognized
17172 # So say no if there are warnings
17173 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17174 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17175 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17176 lt_cv_prog_compiler_c_o_CXX=yes
17177 fi
17178 fi
17179 chmod u+w . 2>&5
17180 $RM conftest*
17181 # SGI C++ compiler will create directory out/ii_files/ for
17182 # template instantiation
17183 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17184 $RM out/* && rmdir out
17185 cd ..
17186 $RM -r conftest
17187 $RM conftest*
17188
17189 fi
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17191 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17192
17193
17194
17195
17196 hard_links="nottested"
17197 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17198 # do not overwrite the value of need_locks provided by the user
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17200 $as_echo_n "checking if we can lock with hard links... " >&6; }
17201 hard_links=yes
17202 $RM conftest*
17203 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17204 touch conftest.a
17205 ln conftest.a conftest.b 2>&5 || hard_links=no
17206 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17208 $as_echo "$hard_links" >&6; }
17209 if test "$hard_links" = no; then
17210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17211 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17212 need_locks=warn
17213 fi
17214 else
17215 need_locks=no
17216 fi
17217
17218
17219
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17221 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17222
17223 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17224 case $host_os in
17225 aix[4-9]*)
17226 # If we're using GNU nm, then we don't want the "-C" option.
17227 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17228 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17229 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'
17230 else
17231 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'
17232 fi
17233 ;;
17234 pw32*)
17235 export_symbols_cmds_CXX="$ltdll_cmds"
17236 ;;
17237 cygwin* | mingw* | cegcc*)
17238 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'
17239 ;;
17240 linux* | k*bsd*-gnu)
17241 link_all_deplibs_CXX=no
17242 ;;
17243 *)
17244 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17245 ;;
17246 esac
17247 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17248
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17250 $as_echo "$ld_shlibs_CXX" >&6; }
17251 test "$ld_shlibs_CXX" = no && can_build_shared=no
17252
17253 with_gnu_ld_CXX=$with_gnu_ld
17254
17255
17256
17257
17258
17259
17260 #
17261 # Do we need to explicitly link libc?
17262 #
17263 case "x$archive_cmds_need_lc_CXX" in
17264 x|xyes)
17265 # Assume -lc should be added
17266 archive_cmds_need_lc_CXX=yes
17267
17268 if test "$enable_shared" = yes && test "$GCC" = yes; then
17269 case $archive_cmds_CXX in
17270 *'~'*)
17271 # FIXME: we may have to deal with multi-command sequences.
17272 ;;
17273 '$CC '*)
17274 # Test whether the compiler implicitly links with -lc since on some
17275 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17276 # to ld, don't add -lc before -lgcc.
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17278 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17279 $RM conftest*
17280 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17281
17282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17283 (eval $ac_compile) 2>&5
17284 ac_status=$?
17285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17286 test $ac_status = 0; } 2>conftest.err; then
17287 soname=conftest
17288 lib=conftest
17289 libobjs=conftest.$ac_objext
17290 deplibs=
17291 wl=$lt_prog_compiler_wl_CXX
17292 pic_flag=$lt_prog_compiler_pic_CXX
17293 compiler_flags=-v
17294 linker_flags=-v
17295 verstring=
17296 output_objdir=.
17297 libname=conftest
17298 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17299 allow_undefined_flag_CXX=
17300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17301 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17302 ac_status=$?
17303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17304 test $ac_status = 0; }
17305 then
17306 archive_cmds_need_lc_CXX=no
17307 else
17308 archive_cmds_need_lc_CXX=yes
17309 fi
17310 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17311 else
17312 cat conftest.err 1>&5
17313 fi
17314 $RM conftest*
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
17316 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
17317 ;;
17318 esac
17319 fi
17320 ;;
17321 esac
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17387 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17388
17389 library_names_spec=
17390 libname_spec='lib$name'
17391 soname_spec=
17392 shrext_cmds=".so"
17393 postinstall_cmds=
17394 postuninstall_cmds=
17395 finish_cmds=
17396 finish_eval=
17397 shlibpath_var=
17398 shlibpath_overrides_runpath=unknown
17399 version_type=none
17400 dynamic_linker="$host_os ld.so"
17401 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17402 need_lib_prefix=unknown
17403 hardcode_into_libs=no
17404
17405 # when you set need_version to no, make sure it does not cause -set_version
17406 # flags to be left without arguments
17407 need_version=unknown
17408
17409 case $host_os in
17410 aix3*)
17411 version_type=linux
17412 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17413 shlibpath_var=LIBPATH
17414
17415 # AIX 3 has no versioning support, so we append a major version to the name.
17416 soname_spec='${libname}${release}${shared_ext}$major'
17417 ;;
17418
17419 aix[4-9]*)
17420 version_type=linux
17421 need_lib_prefix=no
17422 need_version=no
17423 hardcode_into_libs=yes
17424 if test "$host_cpu" = ia64; then
17425 # AIX 5 supports IA64
17426 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17427 shlibpath_var=LD_LIBRARY_PATH
17428 else
17429 # With GCC up to 2.95.x, collect2 would create an import file
17430 # for dependence libraries. The import file would start with
17431 # the line `#! .'. This would cause the generated library to
17432 # depend on `.', always an invalid library. This was fixed in
17433 # development snapshots of GCC prior to 3.0.
17434 case $host_os in
17435 aix4 | aix4.[01] | aix4.[01].*)
17436 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17437 echo ' yes '
17438 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17439 :
17440 else
17441 can_build_shared=no
17442 fi
17443 ;;
17444 esac
17445 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17446 # soname into executable. Probably we can add versioning support to
17447 # collect2, so additional links can be useful in future.
17448 if test "$aix_use_runtimelinking" = yes; then
17449 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17450 # instead of lib<name>.a to let people know that these are not
17451 # typical AIX shared libraries.
17452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17453 else
17454 # We preserve .a as extension for shared libraries through AIX4.2
17455 # and later when we are not doing run time linking.
17456 library_names_spec='${libname}${release}.a $libname.a'
17457 soname_spec='${libname}${release}${shared_ext}$major'
17458 fi
17459 shlibpath_var=LIBPATH
17460 fi
17461 ;;
17462
17463 amigaos*)
17464 case $host_cpu in
17465 powerpc)
17466 # Since July 2007 AmigaOS4 officially supports .so libraries.
17467 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17469 ;;
17470 m68k)
17471 library_names_spec='$libname.ixlibrary $libname.a'
17472 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17473 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'
17474 ;;
17475 esac
17476 ;;
17477
17478 beos*)
17479 library_names_spec='${libname}${shared_ext}'
17480 dynamic_linker="$host_os ld.so"
17481 shlibpath_var=LIBRARY_PATH
17482 ;;
17483
17484 bsdi[45]*)
17485 version_type=linux
17486 need_version=no
17487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17488 soname_spec='${libname}${release}${shared_ext}$major'
17489 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17490 shlibpath_var=LD_LIBRARY_PATH
17491 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17492 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17493 # the default ld.so.conf also contains /usr/contrib/lib and
17494 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17495 # libtool to hard-code these into programs
17496 ;;
17497
17498 cygwin* | mingw* | pw32* | cegcc*)
17499 version_type=windows
17500 shrext_cmds=".dll"
17501 need_version=no
17502 need_lib_prefix=no
17503
17504 case $GCC,$host_os in
17505 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17506 library_names_spec='$libname.dll.a'
17507 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17508 postinstall_cmds='base_file=`basename \${file}`~
17509 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17510 dldir=$destdir/`dirname \$dlpath`~
17511 test -d \$dldir || mkdir -p \$dldir~
17512 $install_prog $dir/$dlname \$dldir/$dlname~
17513 chmod a+x \$dldir/$dlname~
17514 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17515 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17516 fi'
17517 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17518 dlpath=$dir/\$dldll~
17519 $RM \$dlpath'
17520 shlibpath_overrides_runpath=yes
17521
17522 case $host_os in
17523 cygwin*)
17524 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17525 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17526 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17527 ;;
17528 mingw* | cegcc*)
17529 # MinGW DLLs use traditional 'lib' prefix
17530 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17531 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17532 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17533 # It is most probably a Windows format PATH printed by
17534 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17535 # path with ; separators, and with drive letters. We can handle the
17536 # drive letters (cygwin fileutils understands them), so leave them,
17537 # especially as we might pass files found there to a mingw objdump,
17538 # which wouldn't understand a cygwinified path. Ahh.
17539 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17540 else
17541 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17542 fi
17543 ;;
17544 pw32*)
17545 # pw32 DLLs use 'pw' prefix rather than 'lib'
17546 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17547 ;;
17548 esac
17549 ;;
17550
17551 *)
17552 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17553 ;;
17554 esac
17555 dynamic_linker='Win32 ld.exe'
17556 # FIXME: first we should search . and the directory the executable is in
17557 shlibpath_var=PATH
17558 ;;
17559
17560 darwin* | rhapsody*)
17561 dynamic_linker="$host_os dyld"
17562 version_type=darwin
17563 need_lib_prefix=no
17564 need_version=no
17565 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17566 soname_spec='${libname}${release}${major}$shared_ext'
17567 shlibpath_overrides_runpath=yes
17568 shlibpath_var=DYLD_LIBRARY_PATH
17569 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17570
17571 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17572 ;;
17573
17574 dgux*)
17575 version_type=linux
17576 need_lib_prefix=no
17577 need_version=no
17578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17579 soname_spec='${libname}${release}${shared_ext}$major'
17580 shlibpath_var=LD_LIBRARY_PATH
17581 ;;
17582
17583 freebsd1*)
17584 dynamic_linker=no
17585 ;;
17586
17587 freebsd* | dragonfly*)
17588 # DragonFly does not have aout. When/if they implement a new
17589 # versioning mechanism, adjust this.
17590 if test -x /usr/bin/objformat; then
17591 objformat=`/usr/bin/objformat`
17592 else
17593 case $host_os in
17594 freebsd[123]*) objformat=aout ;;
17595 *) objformat=elf ;;
17596 esac
17597 fi
17598 version_type=freebsd-$objformat
17599 case $version_type in
17600 freebsd-elf*)
17601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17602 need_version=no
17603 need_lib_prefix=no
17604 ;;
17605 freebsd-*)
17606 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17607 need_version=yes
17608 ;;
17609 esac
17610 shlibpath_var=LD_LIBRARY_PATH
17611 case $host_os in
17612 freebsd2*)
17613 shlibpath_overrides_runpath=yes
17614 ;;
17615 freebsd3.[01]* | freebsdelf3.[01]*)
17616 shlibpath_overrides_runpath=yes
17617 hardcode_into_libs=yes
17618 ;;
17619 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17620 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17621 shlibpath_overrides_runpath=no
17622 hardcode_into_libs=yes
17623 ;;
17624 *) # from 4.6 on, and DragonFly
17625 shlibpath_overrides_runpath=yes
17626 hardcode_into_libs=yes
17627 ;;
17628 esac
17629 ;;
17630
17631 gnu*)
17632 version_type=linux
17633 need_lib_prefix=no
17634 need_version=no
17635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17636 soname_spec='${libname}${release}${shared_ext}$major'
17637 shlibpath_var=LD_LIBRARY_PATH
17638 hardcode_into_libs=yes
17639 ;;
17640
17641 hpux9* | hpux10* | hpux11*)
17642 # Give a soname corresponding to the major version so that dld.sl refuses to
17643 # link against other versions.
17644 version_type=sunos
17645 need_lib_prefix=no
17646 need_version=no
17647 case $host_cpu in
17648 ia64*)
17649 shrext_cmds='.so'
17650 hardcode_into_libs=yes
17651 dynamic_linker="$host_os dld.so"
17652 shlibpath_var=LD_LIBRARY_PATH
17653 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17655 soname_spec='${libname}${release}${shared_ext}$major'
17656 if test "X$HPUX_IA64_MODE" = X32; then
17657 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17658 else
17659 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17660 fi
17661 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17662 ;;
17663 hppa*64*)
17664 shrext_cmds='.sl'
17665 hardcode_into_libs=yes
17666 dynamic_linker="$host_os dld.sl"
17667 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17668 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17670 soname_spec='${libname}${release}${shared_ext}$major'
17671 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17672 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17673 ;;
17674 *)
17675 shrext_cmds='.sl'
17676 dynamic_linker="$host_os dld.sl"
17677 shlibpath_var=SHLIB_PATH
17678 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17680 soname_spec='${libname}${release}${shared_ext}$major'
17681 ;;
17682 esac
17683 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17684 postinstall_cmds='chmod 555 $lib'
17685 ;;
17686
17687 interix[3-9]*)
17688 version_type=linux
17689 need_lib_prefix=no
17690 need_version=no
17691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17692 soname_spec='${libname}${release}${shared_ext}$major'
17693 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17694 shlibpath_var=LD_LIBRARY_PATH
17695 shlibpath_overrides_runpath=no
17696 hardcode_into_libs=yes
17697 ;;
17698
17699 irix5* | irix6* | nonstopux*)
17700 case $host_os in
17701 nonstopux*) version_type=nonstopux ;;
17702 *)
17703 if test "$lt_cv_prog_gnu_ld" = yes; then
17704 version_type=linux
17705 else
17706 version_type=irix
17707 fi ;;
17708 esac
17709 need_lib_prefix=no
17710 need_version=no
17711 soname_spec='${libname}${release}${shared_ext}$major'
17712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17713 case $host_os in
17714 irix5* | nonstopux*)
17715 libsuff= shlibsuff=
17716 ;;
17717 *)
17718 case $LD in # libtool.m4 will add one of these switches to LD
17719 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17720 libsuff= shlibsuff= libmagic=32-bit;;
17721 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17722 libsuff=32 shlibsuff=N32 libmagic=N32;;
17723 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17724 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17725 *) libsuff= shlibsuff= libmagic=never-match;;
17726 esac
17727 ;;
17728 esac
17729 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17730 shlibpath_overrides_runpath=no
17731 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17732 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17733 hardcode_into_libs=yes
17734 ;;
17735
17736 # No shared lib support for Linux oldld, aout, or coff.
17737 linux*oldld* | linux*aout* | linux*coff*)
17738 dynamic_linker=no
17739 ;;
17740
17741 # This must be Linux ELF.
17742 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17743 version_type=linux
17744 need_lib_prefix=no
17745 need_version=no
17746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17747 soname_spec='${libname}${release}${shared_ext}$major'
17748 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17749 shlibpath_var=LD_LIBRARY_PATH
17750 shlibpath_overrides_runpath=no
17751 # Some binutils ld are patched to set DT_RUNPATH
17752 save_LDFLAGS=$LDFLAGS
17753 save_libdir=$libdir
17754 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17755 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17757 /* end confdefs.h. */
17758
17759 int
17760 main ()
17761 {
17762
17763 ;
17764 return 0;
17765 }
17766 _ACEOF
17767 if ac_fn_cxx_try_link "$LINENO"; then :
17768 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17769 shlibpath_overrides_runpath=yes
17770 fi
17771 fi
17772 rm -f core conftest.err conftest.$ac_objext \
17773 conftest$ac_exeext conftest.$ac_ext
17774 LDFLAGS=$save_LDFLAGS
17775 libdir=$save_libdir
17776
17777 # This implies no fast_install, which is unacceptable.
17778 # Some rework will be needed to allow for fast_install
17779 # before this can be enabled.
17780 hardcode_into_libs=yes
17781
17782 # Append ld.so.conf contents to the search path
17783 if test -f /etc/ld.so.conf; then
17784 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' ' '`
17785 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17786 fi
17787
17788 # We used to test for /lib/ld.so.1 and disable shared libraries on
17789 # powerpc, because MkLinux only supported shared libraries with the
17790 # GNU dynamic linker. Since this was broken with cross compilers,
17791 # most powerpc-linux boxes support dynamic linking these days and
17792 # people can always --disable-shared, the test was removed, and we
17793 # assume the GNU/Linux dynamic linker is in use.
17794 dynamic_linker='GNU/Linux ld.so'
17795 ;;
17796
17797 netbsdelf*-gnu)
17798 version_type=linux
17799 need_lib_prefix=no
17800 need_version=no
17801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17802 soname_spec='${libname}${release}${shared_ext}$major'
17803 shlibpath_var=LD_LIBRARY_PATH
17804 shlibpath_overrides_runpath=no
17805 hardcode_into_libs=yes
17806 dynamic_linker='NetBSD ld.elf_so'
17807 ;;
17808
17809 netbsd*)
17810 version_type=sunos
17811 need_lib_prefix=no
17812 need_version=no
17813 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17815 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17816 dynamic_linker='NetBSD (a.out) ld.so'
17817 else
17818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17819 soname_spec='${libname}${release}${shared_ext}$major'
17820 dynamic_linker='NetBSD ld.elf_so'
17821 fi
17822 shlibpath_var=LD_LIBRARY_PATH
17823 shlibpath_overrides_runpath=yes
17824 hardcode_into_libs=yes
17825 ;;
17826
17827 newsos6)
17828 version_type=linux
17829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17830 shlibpath_var=LD_LIBRARY_PATH
17831 shlibpath_overrides_runpath=yes
17832 ;;
17833
17834 *nto* | *qnx*)
17835 version_type=qnx
17836 need_lib_prefix=no
17837 need_version=no
17838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17839 soname_spec='${libname}${release}${shared_ext}$major'
17840 shlibpath_var=LD_LIBRARY_PATH
17841 shlibpath_overrides_runpath=no
17842 hardcode_into_libs=yes
17843 dynamic_linker='ldqnx.so'
17844 ;;
17845
17846 openbsd*)
17847 version_type=sunos
17848 sys_lib_dlsearch_path_spec="/usr/lib"
17849 need_lib_prefix=no
17850 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17851 case $host_os in
17852 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17853 *) need_version=no ;;
17854 esac
17855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17856 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17857 shlibpath_var=LD_LIBRARY_PATH
17858 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17859 case $host_os in
17860 openbsd2.[89] | openbsd2.[89].*)
17861 shlibpath_overrides_runpath=no
17862 ;;
17863 *)
17864 shlibpath_overrides_runpath=yes
17865 ;;
17866 esac
17867 else
17868 shlibpath_overrides_runpath=yes
17869 fi
17870 ;;
17871
17872 os2*)
17873 libname_spec='$name'
17874 shrext_cmds=".dll"
17875 need_lib_prefix=no
17876 library_names_spec='$libname${shared_ext} $libname.a'
17877 dynamic_linker='OS/2 ld.exe'
17878 shlibpath_var=LIBPATH
17879 ;;
17880
17881 osf3* | osf4* | osf5*)
17882 version_type=osf
17883 need_lib_prefix=no
17884 need_version=no
17885 soname_spec='${libname}${release}${shared_ext}$major'
17886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17887 shlibpath_var=LD_LIBRARY_PATH
17888 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17889 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17890 ;;
17891
17892 rdos*)
17893 dynamic_linker=no
17894 ;;
17895
17896 solaris*)
17897 version_type=linux
17898 need_lib_prefix=no
17899 need_version=no
17900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17901 soname_spec='${libname}${release}${shared_ext}$major'
17902 shlibpath_var=LD_LIBRARY_PATH
17903 shlibpath_overrides_runpath=yes
17904 hardcode_into_libs=yes
17905 # ldd complains unless libraries are executable
17906 postinstall_cmds='chmod +x $lib'
17907 ;;
17908
17909 sunos4*)
17910 version_type=sunos
17911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17912 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17913 shlibpath_var=LD_LIBRARY_PATH
17914 shlibpath_overrides_runpath=yes
17915 if test "$with_gnu_ld" = yes; then
17916 need_lib_prefix=no
17917 fi
17918 need_version=yes
17919 ;;
17920
17921 sysv4 | sysv4.3*)
17922 version_type=linux
17923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17924 soname_spec='${libname}${release}${shared_ext}$major'
17925 shlibpath_var=LD_LIBRARY_PATH
17926 case $host_vendor in
17927 sni)
17928 shlibpath_overrides_runpath=no
17929 need_lib_prefix=no
17930 runpath_var=LD_RUN_PATH
17931 ;;
17932 siemens)
17933 need_lib_prefix=no
17934 ;;
17935 motorola)
17936 need_lib_prefix=no
17937 need_version=no
17938 shlibpath_overrides_runpath=no
17939 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17940 ;;
17941 esac
17942 ;;
17943
17944 sysv4*MP*)
17945 if test -d /usr/nec ;then
17946 version_type=linux
17947 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17948 soname_spec='$libname${shared_ext}.$major'
17949 shlibpath_var=LD_LIBRARY_PATH
17950 fi
17951 ;;
17952
17953 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17954 version_type=freebsd-elf
17955 need_lib_prefix=no
17956 need_version=no
17957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17958 soname_spec='${libname}${release}${shared_ext}$major'
17959 shlibpath_var=LD_LIBRARY_PATH
17960 shlibpath_overrides_runpath=yes
17961 hardcode_into_libs=yes
17962 if test "$with_gnu_ld" = yes; then
17963 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17964 else
17965 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17966 case $host_os in
17967 sco3.2v5*)
17968 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17969 ;;
17970 esac
17971 fi
17972 sys_lib_dlsearch_path_spec='/usr/lib'
17973 ;;
17974
17975 tpf*)
17976 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17977 version_type=linux
17978 need_lib_prefix=no
17979 need_version=no
17980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17981 shlibpath_var=LD_LIBRARY_PATH
17982 shlibpath_overrides_runpath=no
17983 hardcode_into_libs=yes
17984 ;;
17985
17986 uts4*)
17987 version_type=linux
17988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17989 soname_spec='${libname}${release}${shared_ext}$major'
17990 shlibpath_var=LD_LIBRARY_PATH
17991 ;;
17992
17993 *)
17994 dynamic_linker=no
17995 ;;
17996 esac
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17998 $as_echo "$dynamic_linker" >&6; }
17999 test "$dynamic_linker" = no && can_build_shared=no
18000
18001 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18002 if test "$GCC" = yes; then
18003 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18004 fi
18005
18006 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18007 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18008 fi
18009 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18010 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18011 fi
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18049 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18050 hardcode_action_CXX=
18051 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18052 test -n "$runpath_var_CXX" ||
18053 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18054
18055 # We can hardcode non-existent directories.
18056 if test "$hardcode_direct_CXX" != no &&
18057 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18058 # have to relink, otherwise we might link with an installed library
18059 # when we should be linking with a yet-to-be-installed one
18060 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18061 test "$hardcode_minus_L_CXX" != no; then
18062 # Linking always hardcodes the temporary library directory.
18063 hardcode_action_CXX=relink
18064 else
18065 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18066 hardcode_action_CXX=immediate
18067 fi
18068 else
18069 # We cannot hardcode anything, or else we can only hardcode existing
18070 # directories.
18071 hardcode_action_CXX=unsupported
18072 fi
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18074 $as_echo "$hardcode_action_CXX" >&6; }
18075
18076 if test "$hardcode_action_CXX" = relink ||
18077 test "$inherit_rpath_CXX" = yes; then
18078 # Fast installation is not supported
18079 enable_fast_install=no
18080 elif test "$shlibpath_overrides_runpath" = yes ||
18081 test "$enable_shared" = no; then
18082 # Fast installation is not necessary
18083 enable_fast_install=needless
18084 fi
18085
18086
18087
18088
18089
18090
18091
18092 fi # test -n "$compiler"
18093
18094 CC=$lt_save_CC
18095 LDCXX=$LD
18096 LD=$lt_save_LD
18097 GCC=$lt_save_GCC
18098 with_gnu_ld=$lt_save_with_gnu_ld
18099 lt_cv_path_LDCXX=$lt_cv_path_LD
18100 lt_cv_path_LD=$lt_save_path_LD
18101 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18102 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18103 fi # test "$_lt_caught_CXX_error" != yes
18104
18105 ac_ext=c
18106 ac_cpp='$CPP $CPPFLAGS'
18107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123 ac_config_commands="$ac_config_commands libtool"
18124
18125
18126
18127
18128 # Only expand once:
18129
18130
18131
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
18133 $as_echo_n "checking whether ln -s works... " >&6; }
18134 LN_S=$as_ln_s
18135 if test "$LN_S" = "ln -s"; then
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18137 $as_echo "yes" >&6; }
18138 else
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
18140 $as_echo "no, using $LN_S" >&6; }
18141 fi
18142
18143
18144
18145
18146
18147
18148
18149
18150 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18151 if test -n "$ac_tool_prefix"; then
18152 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18153 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18155 $as_echo_n "checking for $ac_word... " >&6; }
18156 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
18157 $as_echo_n "(cached) " >&6
18158 else
18159 case $PKG_CONFIG in
18160 [\\/]* | ?:[\\/]*)
18161 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18162 ;;
18163 *)
18164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18165 for as_dir in $PATH
18166 do
18167 IFS=$as_save_IFS
18168 test -z "$as_dir" && as_dir=.
18169 for ac_exec_ext in '' $ac_executable_extensions; do
18170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18171 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18173 break 2
18174 fi
18175 done
18176 done
18177 IFS=$as_save_IFS
18178
18179 ;;
18180 esac
18181 fi
18182 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18183 if test -n "$PKG_CONFIG"; then
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18185 $as_echo "$PKG_CONFIG" >&6; }
18186 else
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18188 $as_echo "no" >&6; }
18189 fi
18190
18191
18192 fi
18193 if test -z "$ac_cv_path_PKG_CONFIG"; then
18194 ac_pt_PKG_CONFIG=$PKG_CONFIG
18195 # Extract the first word of "pkg-config", so it can be a program name with args.
18196 set dummy pkg-config; ac_word=$2
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18198 $as_echo_n "checking for $ac_word... " >&6; }
18199 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
18200 $as_echo_n "(cached) " >&6
18201 else
18202 case $ac_pt_PKG_CONFIG in
18203 [\\/]* | ?:[\\/]*)
18204 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18205 ;;
18206 *)
18207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18208 for as_dir in $PATH
18209 do
18210 IFS=$as_save_IFS
18211 test -z "$as_dir" && as_dir=.
18212 for ac_exec_ext in '' $ac_executable_extensions; do
18213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18214 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18216 break 2
18217 fi
18218 done
18219 done
18220 IFS=$as_save_IFS
18221
18222 ;;
18223 esac
18224 fi
18225 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18226 if test -n "$ac_pt_PKG_CONFIG"; then
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18228 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18229 else
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18231 $as_echo "no" >&6; }
18232 fi
18233
18234 if test "x$ac_pt_PKG_CONFIG" = x; then
18235 PKG_CONFIG=""
18236 else
18237 case $cross_compiling:$ac_tool_warned in
18238 yes:)
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18241 ac_tool_warned=yes ;;
18242 esac
18243 PKG_CONFIG=$ac_pt_PKG_CONFIG
18244 fi
18245 else
18246 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18247 fi
18248
18249 fi
18250 if test -n "$PKG_CONFIG"; then
18251 _pkg_min_version=0.9.0
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18253 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18254 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18256 $as_echo "yes" >&6; }
18257 else
18258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18259 $as_echo "no" >&6; }
18260 PKG_CONFIG=""
18261 fi
18262 fi
18263
18264 pkg_failed=no
18265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DEP_ALL" >&5
18266 $as_echo_n "checking for DEP_ALL... " >&6; }
18267
18268 if test -n "$DEP_ALL_CFLAGS"; then
18269 pkg_cv_DEP_ALL_CFLAGS="$DEP_ALL_CFLAGS"
18270 elif test -n "$PKG_CONFIG"; then
18271 if test -n "$PKG_CONFIG" && \
18272 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdiscid\""; } >&5
18273 ($PKG_CONFIG --exists --print-errors "libdiscid") 2>&5
18274 ac_status=$?
18275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18276 test $ac_status = 0; }; then
18277 pkg_cv_DEP_ALL_CFLAGS=`$PKG_CONFIG --cflags "libdiscid" 2>/dev/null`
18278 else
18279 pkg_failed=yes
18280 fi
18281 else
18282 pkg_failed=untried
18283 fi
18284 if test -n "$DEP_ALL_LIBS"; then
18285 pkg_cv_DEP_ALL_LIBS="$DEP_ALL_LIBS"
18286 elif test -n "$PKG_CONFIG"; then
18287 if test -n "$PKG_CONFIG" && \
18288 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdiscid\""; } >&5
18289 ($PKG_CONFIG --exists --print-errors "libdiscid") 2>&5
18290 ac_status=$?
18291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18292 test $ac_status = 0; }; then
18293 pkg_cv_DEP_ALL_LIBS=`$PKG_CONFIG --libs "libdiscid" 2>/dev/null`
18294 else
18295 pkg_failed=yes
18296 fi
18297 else
18298 pkg_failed=untried
18299 fi
18300
18301
18302
18303 if test $pkg_failed = yes; then
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18305 $as_echo "no" >&6; }
18306
18307 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18308 _pkg_short_errors_supported=yes
18309 else
18310 _pkg_short_errors_supported=no
18311 fi
18312 if test $_pkg_short_errors_supported = yes; then
18313 DEP_ALL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdiscid" 2>&1`
18314 else
18315 DEP_ALL_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdiscid" 2>&1`
18316 fi
18317 # Put the nasty error message in config.log where it belongs
18318 echo "$DEP_ALL_PKG_ERRORS" >&5
18319
18320 as_fn_error $? "Package requirements (libdiscid) were not met:
18321
18322 $DEP_ALL_PKG_ERRORS
18323
18324 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18325 installed software in a non-standard prefix.
18326
18327 Alternatively, you may set the environment variables DEP_ALL_CFLAGS
18328 and DEP_ALL_LIBS to avoid the need to call pkg-config.
18329 See the pkg-config man page for more details." "$LINENO" 5
18330 elif test $pkg_failed = untried; then
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18332 $as_echo "no" >&6; }
18333 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18335 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18336 is in your PATH or set the PKG_CONFIG environment variable to the full
18337 path to pkg-config.
18338
18339 Alternatively, you may set the environment variables DEP_ALL_CFLAGS
18340 and DEP_ALL_LIBS to avoid the need to call pkg-config.
18341 See the pkg-config man page for more details.
18342
18343 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18344 See \`config.log' for more details" "$LINENO" 5 ; }
18345 else
18346 DEP_ALL_CFLAGS=$pkg_cv_DEP_ALL_CFLAGS
18347 DEP_ALL_LIBS=$pkg_cv_DEP_ALL_LIBS
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18349 $as_echo "yes" >&6; }
18350
18351 fi
18352
18353 pkg_failed=no
18354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DEP_FLACTAG" >&5
18355 $as_echo_n "checking for DEP_FLACTAG... " >&6; }
18356
18357 if test -n "$DEP_FLACTAG_CFLAGS"; then
18358 pkg_cv_DEP_FLACTAG_CFLAGS="$DEP_FLACTAG_CFLAGS"
18359 elif test -n "$PKG_CONFIG"; then
18360 if test -n "$PKG_CONFIG" && \
18361 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon slang libmusicbrainz5 flac++ unac\""; } >&5
18362 ($PKG_CONFIG --exists --print-errors "neon slang libmusicbrainz5 flac++ unac") 2>&5
18363 ac_status=$?
18364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18365 test $ac_status = 0; }; then
18366 pkg_cv_DEP_FLACTAG_CFLAGS=`$PKG_CONFIG --cflags "neon slang libmusicbrainz5 flac++ unac" 2>/dev/null`
18367 else
18368 pkg_failed=yes
18369 fi
18370 else
18371 pkg_failed=untried
18372 fi
18373 if test -n "$DEP_FLACTAG_LIBS"; then
18374 pkg_cv_DEP_FLACTAG_LIBS="$DEP_FLACTAG_LIBS"
18375 elif test -n "$PKG_CONFIG"; then
18376 if test -n "$PKG_CONFIG" && \
18377 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon slang libmusicbrainz5 flac++ unac\""; } >&5
18378 ($PKG_CONFIG --exists --print-errors "neon slang libmusicbrainz5 flac++ unac") 2>&5
18379 ac_status=$?
18380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18381 test $ac_status = 0; }; then
18382 pkg_cv_DEP_FLACTAG_LIBS=`$PKG_CONFIG --libs "neon slang libmusicbrainz5 flac++ unac" 2>/dev/null`
18383 else
18384 pkg_failed=yes
18385 fi
18386 else
18387 pkg_failed=untried
18388 fi
18389
18390
18391
18392 if test $pkg_failed = yes; then
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18394 $as_echo "no" >&6; }
18395
18396 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18397 _pkg_short_errors_supported=yes
18398 else
18399 _pkg_short_errors_supported=no
18400 fi
18401 if test $_pkg_short_errors_supported = yes; then
18402 DEP_FLACTAG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "neon slang libmusicbrainz5 flac++ unac" 2>&1`
18403 else
18404 DEP_FLACTAG_PKG_ERRORS=`$PKG_CONFIG --print-errors "neon slang libmusicbrainz5 flac++ unac" 2>&1`
18405 fi
18406 # Put the nasty error message in config.log where it belongs
18407 echo "$DEP_FLACTAG_PKG_ERRORS" >&5
18408
18409 as_fn_error $? "Package requirements (neon slang libmusicbrainz5 flac++ unac) were not met:
18410
18411 $DEP_FLACTAG_PKG_ERRORS
18412
18413 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18414 installed software in a non-standard prefix.
18415
18416 Alternatively, you may set the environment variables DEP_FLACTAG_CFLAGS
18417 and DEP_FLACTAG_LIBS to avoid the need to call pkg-config.
18418 See the pkg-config man page for more details." "$LINENO" 5
18419 elif test $pkg_failed = untried; then
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18421 $as_echo "no" >&6; }
18422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18424 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18425 is in your PATH or set the PKG_CONFIG environment variable to the full
18426 path to pkg-config.
18427
18428 Alternatively, you may set the environment variables DEP_FLACTAG_CFLAGS
18429 and DEP_FLACTAG_LIBS to avoid the need to call pkg-config.
18430 See the pkg-config man page for more details.
18431
18432 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18433 See \`config.log' for more details" "$LINENO" 5 ; }
18434 else
18435 DEP_FLACTAG_CFLAGS=$pkg_cv_DEP_FLACTAG_CFLAGS
18436 DEP_FLACTAG_LIBS=$pkg_cv_DEP_FLACTAG_LIBS
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18438 $as_echo "yes" >&6; }
18439
18440 fi
18441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing jpeg_read_header" >&5
18442 $as_echo_n "checking for library containing jpeg_read_header... " >&6; }
18443 if test "${ac_cv_search_jpeg_read_header+set}" = set; then :
18444 $as_echo_n "(cached) " >&6
18445 else
18446 ac_func_search_save_LIBS=$LIBS
18447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18448 /* end confdefs.h. */
18449
18450 /* Override any GCC internal prototype to avoid an error.
18451 Use char because int might match the return type of a GCC
18452 builtin and then its argument prototype would still apply. */
18453 #ifdef __cplusplus
18454 extern "C"
18455 #endif
18456 char jpeg_read_header ();
18457 int
18458 main ()
18459 {
18460 return jpeg_read_header ();
18461 ;
18462 return 0;
18463 }
18464 _ACEOF
18465 for ac_lib in '' jpeg; do
18466 if test -z "$ac_lib"; then
18467 ac_res="none required"
18468 else
18469 ac_res=-l$ac_lib
18470 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18471 fi
18472 if ac_fn_c_try_link "$LINENO"; then :
18473 ac_cv_search_jpeg_read_header=$ac_res
18474 fi
18475 rm -f core conftest.err conftest.$ac_objext \
18476 conftest$ac_exeext
18477 if test "${ac_cv_search_jpeg_read_header+set}" = set; then :
18478 break
18479 fi
18480 done
18481 if test "${ac_cv_search_jpeg_read_header+set}" = set; then :
18482
18483 else
18484 ac_cv_search_jpeg_read_header=no
18485 fi
18486 rm conftest.$ac_ext
18487 LIBS=$ac_func_search_save_LIBS
18488 fi
18489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_jpeg_read_header" >&5
18490 $as_echo "$ac_cv_search_jpeg_read_header" >&6; }
18491 ac_res=$ac_cv_search_jpeg_read_header
18492 if test "$ac_res" != no; then :
18493 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18494
18495 else
18496
18497 as_fn_error $? "unable to find jpeg_read_header, install libjpeg-dev and/or set CPPFLAGS/LDFLAGS" "$LINENO" 5
18498
18499 fi
18500
18501
18502 ac_config_files="$ac_config_files Makefile"
18503
18504 cat >confcache <<\_ACEOF
18505 # This file is a shell script that caches the results of configure
18506 # tests run on this system so they can be shared between configure
18507 # scripts and configure runs, see configure's option --config-cache.
18508 # It is not useful on other systems. If it contains results you don't
18509 # want to keep, you may remove or edit it.
18510 #
18511 # config.status only pays attention to the cache file if you give it
18512 # the --recheck option to rerun configure.
18513 #
18514 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18515 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18516 # following values.
18517
18518 _ACEOF
18519
18520 # The following way of writing the cache mishandles newlines in values,
18521 # but we know of no workaround that is simple, portable, and efficient.
18522 # So, we kill variables containing newlines.
18523 # Ultrix sh set writes to stderr and can't be redirected directly,
18524 # and sets the high bit in the cache file unless we assign to the vars.
18525 (
18526 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18527 eval ac_val=\$$ac_var
18528 case $ac_val in #(
18529 *${as_nl}*)
18530 case $ac_var in #(
18531 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18532 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18533 esac
18534 case $ac_var in #(
18535 _ | IFS | as_nl) ;; #(
18536 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18537 *) { eval $ac_var=; unset $ac_var;} ;;
18538 esac ;;
18539 esac
18540 done
18541
18542 (set) 2>&1 |
18543 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18544 *${as_nl}ac_space=\ *)
18545 # `set' does not quote correctly, so add quotes: double-quote
18546 # substitution turns \\\\ into \\, and sed turns \\ into \.
18547 sed -n \
18548 "s/'/'\\\\''/g;
18549 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18550 ;; #(
18551 *)
18552 # `set' quotes correctly as required by POSIX, so do not add quotes.
18553 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18554 ;;
18555 esac |
18556 sort
18557 ) |
18558 sed '
18559 /^ac_cv_env_/b end
18560 t clear
18561 :clear
18562 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18563 t end
18564 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18565 :end' >>confcache
18566 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18567 if test -w "$cache_file"; then
18568 test "x$cache_file" != "x/dev/null" &&
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18570 $as_echo "$as_me: updating cache $cache_file" >&6;}
18571 cat confcache >$cache_file
18572 else
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18574 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18575 fi
18576 fi
18577 rm -f confcache
18578
18579 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18580 # Let make expand exec_prefix.
18581 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18582
18583 DEFS=-DHAVE_CONFIG_H
18584
18585 ac_libobjs=
18586 ac_ltlibobjs=
18587 U=
18588 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18589 # 1. Remove the extension, and $U if already installed.
18590 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18591 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18592 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18593 # will be set to the directory where LIBOBJS objects are built.
18594 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18595 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18596 done
18597 LIBOBJS=$ac_libobjs
18598
18599 LTLIBOBJS=$ac_ltlibobjs
18600
18601
18602 if test -n "$EXEEXT"; then
18603 am__EXEEXT_TRUE=
18604 am__EXEEXT_FALSE='#'
18605 else
18606 am__EXEEXT_TRUE='#'
18607 am__EXEEXT_FALSE=
18608 fi
18609
18610 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18611 as_fn_error $? "conditional \"AMDEP\" was never defined.
18612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18613 fi
18614 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18615 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18617 fi
18618 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18619 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18621 fi
18622 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
18623 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
18624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18625 fi
18626
18627
18628 gl_libobjs=
18629 gl_ltlibobjs=
18630 if test -n "$gl_LIBOBJS"; then
18631 # Remove the extension.
18632 sed_drop_objext='s/\.o$//;s/\.obj$//'
18633 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
18634 gl_libobjs="$gl_libobjs $i.$ac_objext"
18635 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
18636 done
18637 fi
18638 gl_LIBOBJS=$gl_libobjs
18639
18640 gl_LTLIBOBJS=$gl_ltlibobjs
18641
18642
18643
18644 gltests_libobjs=
18645 gltests_ltlibobjs=
18646 if test -n "$gltests_LIBOBJS"; then
18647 # Remove the extension.
18648 sed_drop_objext='s/\.o$//;s/\.obj$//'
18649 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
18650 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
18651 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
18652 done
18653 fi
18654 gltests_LIBOBJS=$gltests_libobjs
18655
18656 gltests_LTLIBOBJS=$gltests_ltlibobjs
18657
18658
18659 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18660 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18662 fi
18663
18664 : ${CONFIG_STATUS=./config.status}
18665 ac_write_fail=0
18666 ac_clean_files_save=$ac_clean_files
18667 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18668 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18669 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18670 as_write_fail=0
18671 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18672 #! $SHELL
18673 # Generated by $as_me.
18674 # Run this file to recreate the current configuration.
18675 # Compiler output produced by configure, useful for debugging
18676 # configure, is in config.log if it exists.
18677
18678 debug=false
18679 ac_cs_recheck=false
18680 ac_cs_silent=false
18681
18682 SHELL=\${CONFIG_SHELL-$SHELL}
18683 export SHELL
18684 _ASEOF
18685 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18686 ## -------------------- ##
18687 ## M4sh Initialization. ##
18688 ## -------------------- ##
18689
18690 # Be more Bourne compatible
18691 DUALCASE=1; export DUALCASE # for MKS sh
18692 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18693 emulate sh
18694 NULLCMD=:
18695 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18696 # is contrary to our usage. Disable this feature.
18697 alias -g '${1+"$@"}'='"$@"'
18698 setopt NO_GLOB_SUBST
18699 else
18700 case `(set -o) 2>/dev/null` in #(
18701 *posix*) :
18702 set -o posix ;; #(
18703 *) :
18704 ;;
18705 esac
18706 fi
18707
18708
18709 as_nl='
18710 '
18711 export as_nl
18712 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18713 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18714 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18715 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18716 # Prefer a ksh shell builtin over an external printf program on Solaris,
18717 # but without wasting forks for bash or zsh.
18718 if test -z "$BASH_VERSION$ZSH_VERSION" \
18719 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18720 as_echo='print -r --'
18721 as_echo_n='print -rn --'
18722 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18723 as_echo='printf %s\n'
18724 as_echo_n='printf %s'
18725 else
18726 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18727 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18728 as_echo_n='/usr/ucb/echo -n'
18729 else
18730 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18731 as_echo_n_body='eval
18732 arg=$1;
18733 case $arg in #(
18734 *"$as_nl"*)
18735 expr "X$arg" : "X\\(.*\\)$as_nl";
18736 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18737 esac;
18738 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18739 '
18740 export as_echo_n_body
18741 as_echo_n='sh -c $as_echo_n_body as_echo'
18742 fi
18743 export as_echo_body
18744 as_echo='sh -c $as_echo_body as_echo'
18745 fi
18746
18747 # The user is always right.
18748 if test "${PATH_SEPARATOR+set}" != set; then
18749 PATH_SEPARATOR=:
18750 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18751 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18752 PATH_SEPARATOR=';'
18753 }
18754 fi
18755
18756
18757 # IFS
18758 # We need space, tab and new line, in precisely that order. Quoting is
18759 # there to prevent editors from complaining about space-tab.
18760 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18761 # splitting by setting IFS to empty value.)
18762 IFS=" "" $as_nl"
18763
18764 # Find who we are. Look in the path if we contain no directory separator.
18765 case $0 in #((
18766 *[\\/]* ) as_myself=$0 ;;
18767 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18768 for as_dir in $PATH
18769 do
18770 IFS=$as_save_IFS
18771 test -z "$as_dir" && as_dir=.
18772 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18773 done
18774 IFS=$as_save_IFS
18775
18776 ;;
18777 esac
18778 # We did not find ourselves, most probably we were run as `sh COMMAND'
18779 # in which case we are not to be found in the path.
18780 if test "x$as_myself" = x; then
18781 as_myself=$0
18782 fi
18783 if test ! -f "$as_myself"; then
18784 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18785 exit 1
18786 fi
18787
18788 # Unset variables that we do not need and which cause bugs (e.g. in
18789 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18790 # suppresses any "Segmentation fault" message there. '((' could
18791 # trigger a bug in pdksh 5.2.14.
18792 for as_var in BASH_ENV ENV MAIL MAILPATH
18793 do eval test x\${$as_var+set} = xset \
18794 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18795 done
18796 PS1='$ '
18797 PS2='> '
18798 PS4='+ '
18799
18800 # NLS nuisances.
18801 LC_ALL=C
18802 export LC_ALL
18803 LANGUAGE=C
18804 export LANGUAGE
18805
18806 # CDPATH.
18807 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18808
18809
18810 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18811 # ----------------------------------------
18812 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18813 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18814 # script with STATUS, using 1 if that was 0.
18815 as_fn_error ()
18816 {
18817 as_status=$1; test $as_status -eq 0 && as_status=1
18818 if test "$4"; then
18819 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18820 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18821 fi
18822 $as_echo "$as_me: error: $2" >&2
18823 as_fn_exit $as_status
18824 } # as_fn_error
18825
18826
18827 # as_fn_set_status STATUS
18828 # -----------------------
18829 # Set $? to STATUS, without forking.
18830 as_fn_set_status ()
18831 {
18832 return $1
18833 } # as_fn_set_status
18834
18835 # as_fn_exit STATUS
18836 # -----------------
18837 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18838 as_fn_exit ()
18839 {
18840 set +e
18841 as_fn_set_status $1
18842 exit $1
18843 } # as_fn_exit
18844
18845 # as_fn_unset VAR
18846 # ---------------
18847 # Portably unset VAR.
18848 as_fn_unset ()
18849 {
18850 { eval $1=; unset $1;}
18851 }
18852 as_unset=as_fn_unset
18853 # as_fn_append VAR VALUE
18854 # ----------------------
18855 # Append the text in VALUE to the end of the definition contained in VAR. Take
18856 # advantage of any shell optimizations that allow amortized linear growth over
18857 # repeated appends, instead of the typical quadratic growth present in naive
18858 # implementations.
18859 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18860 eval 'as_fn_append ()
18861 {
18862 eval $1+=\$2
18863 }'
18864 else
18865 as_fn_append ()
18866 {
18867 eval $1=\$$1\$2
18868 }
18869 fi # as_fn_append
18870
18871 # as_fn_arith ARG...
18872 # ------------------
18873 # Perform arithmetic evaluation on the ARGs, and store the result in the
18874 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18875 # must be portable across $(()) and expr.
18876 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18877 eval 'as_fn_arith ()
18878 {
18879 as_val=$(( $* ))
18880 }'
18881 else
18882 as_fn_arith ()
18883 {
18884 as_val=`expr "$@" || test $? -eq 1`
18885 }
18886 fi # as_fn_arith
18887
18888
18889 if expr a : '\(a\)' >/dev/null 2>&1 &&
18890 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18891 as_expr=expr
18892 else
18893 as_expr=false
18894 fi
18895
18896 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18897 as_basename=basename
18898 else
18899 as_basename=false
18900 fi
18901
18902 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18903 as_dirname=dirname
18904 else
18905 as_dirname=false
18906 fi
18907
18908 as_me=`$as_basename -- "$0" ||
18909 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18910 X"$0" : 'X\(//\)$' \| \
18911 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18912 $as_echo X/"$0" |
18913 sed '/^.*\/\([^/][^/]*\)\/*$/{
18914 s//\1/
18915 q
18916 }
18917 /^X\/\(\/\/\)$/{
18918 s//\1/
18919 q
18920 }
18921 /^X\/\(\/\).*/{
18922 s//\1/
18923 q
18924 }
18925 s/.*/./; q'`
18926
18927 # Avoid depending upon Character Ranges.
18928 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18929 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18930 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18931 as_cr_digits='0123456789'
18932 as_cr_alnum=$as_cr_Letters$as_cr_digits
18933
18934 ECHO_C= ECHO_N= ECHO_T=
18935 case `echo -n x` in #(((((
18936 -n*)
18937 case `echo 'xy\c'` in
18938 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18939 xy) ECHO_C='\c';;
18940 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18941 ECHO_T=' ';;
18942 esac;;
18943 *)
18944 ECHO_N='-n';;
18945 esac
18946
18947 rm -f conf$$ conf$$.exe conf$$.file
18948 if test -d conf$$.dir; then
18949 rm -f conf$$.dir/conf$$.file
18950 else
18951 rm -f conf$$.dir
18952 mkdir conf$$.dir 2>/dev/null
18953 fi
18954 if (echo >conf$$.file) 2>/dev/null; then
18955 if ln -s conf$$.file conf$$ 2>/dev/null; then
18956 as_ln_s='ln -s'
18957 # ... but there are two gotchas:
18958 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18959 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18960 # In both cases, we have to default to `cp -p'.
18961 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18962 as_ln_s='cp -p'
18963 elif ln conf$$.file conf$$ 2>/dev/null; then
18964 as_ln_s=ln
18965 else
18966 as_ln_s='cp -p'
18967 fi
18968 else
18969 as_ln_s='cp -p'
18970 fi
18971 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18972 rmdir conf$$.dir 2>/dev/null
18973
18974
18975 # as_fn_mkdir_p
18976 # -------------
18977 # Create "$as_dir" as a directory, including parents if necessary.
18978 as_fn_mkdir_p ()
18979 {
18980
18981 case $as_dir in #(
18982 -*) as_dir=./$as_dir;;
18983 esac
18984 test -d "$as_dir" || eval $as_mkdir_p || {
18985 as_dirs=
18986 while :; do
18987 case $as_dir in #(
18988 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18989 *) as_qdir=$as_dir;;
18990 esac
18991 as_dirs="'$as_qdir' $as_dirs"
18992 as_dir=`$as_dirname -- "$as_dir" ||
18993 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18994 X"$as_dir" : 'X\(//\)[^/]' \| \
18995 X"$as_dir" : 'X\(//\)$' \| \
18996 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18997 $as_echo X"$as_dir" |
18998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18999 s//\1/
19000 q
19001 }
19002 /^X\(\/\/\)[^/].*/{
19003 s//\1/
19004 q
19005 }
19006 /^X\(\/\/\)$/{
19007 s//\1/
19008 q
19009 }
19010 /^X\(\/\).*/{
19011 s//\1/
19012 q
19013 }
19014 s/.*/./; q'`
19015 test -d "$as_dir" && break
19016 done
19017 test -z "$as_dirs" || eval "mkdir $as_dirs"
19018 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19019
19020
19021 } # as_fn_mkdir_p
19022 if mkdir -p . 2>/dev/null; then
19023 as_mkdir_p='mkdir -p "$as_dir"'
19024 else
19025 test -d ./-p && rmdir ./-p
19026 as_mkdir_p=false
19027 fi
19028
19029 if test -x / >/dev/null 2>&1; then
19030 as_test_x='test -x'
19031 else
19032 if ls -dL / >/dev/null 2>&1; then
19033 as_ls_L_option=L
19034 else
19035 as_ls_L_option=
19036 fi
19037 as_test_x='
19038 eval sh -c '\''
19039 if test -d "$1"; then
19040 test -d "$1/.";
19041 else
19042 case $1 in #(
19043 -*)set "./$1";;
19044 esac;
19045 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19046 ???[sx]*):;;*)false;;esac;fi
19047 '\'' sh
19048 '
19049 fi
19050 as_executable_p=$as_test_x
19051
19052 # Sed expression to map a string onto a valid CPP name.
19053 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19054
19055 # Sed expression to map a string onto a valid variable name.
19056 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19057
19058
19059 exec 6>&1
19060 ## ----------------------------------- ##
19061 ## Main body of $CONFIG_STATUS script. ##
19062 ## ----------------------------------- ##
19063 _ASEOF
19064 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19065
19066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19067 # Save the log message, to keep $0 and so on meaningful, and to
19068 # report actual input values of CONFIG_FILES etc. instead of their
19069 # values after options handling.
19070 ac_log="
19071 This file was extended by flactag $as_me 2.0.4, which was
19072 generated by GNU Autoconf 2.67. Invocation command line was
19073
19074 CONFIG_FILES = $CONFIG_FILES
19075 CONFIG_HEADERS = $CONFIG_HEADERS
19076 CONFIG_LINKS = $CONFIG_LINKS
19077 CONFIG_COMMANDS = $CONFIG_COMMANDS
19078 $ $0 $@
19079
19080 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19081 "
19082
19083 _ACEOF
19084
19085 case $ac_config_files in *"
19086 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19087 esac
19088
19089 case $ac_config_headers in *"
19090 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19091 esac
19092
19093
19094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19095 # Files that config.status was made for.
19096 config_files="$ac_config_files"
19097 config_headers="$ac_config_headers"
19098 config_commands="$ac_config_commands"
19099
19100 _ACEOF
19101
19102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19103 ac_cs_usage="\
19104 \`$as_me' instantiates files and other configuration actions
19105 from templates according to the current configuration. Unless the files
19106 and actions are specified as TAGs, all are instantiated by default.
19107
19108 Usage: $0 [OPTION]... [TAG]...
19109
19110 -h, --help print this help, then exit
19111 -V, --version print version number and configuration settings, then exit
19112 --config print configuration, then exit
19113 -q, --quiet, --silent
19114 do not print progress messages
19115 -d, --debug don't remove temporary files
19116 --recheck update $as_me by reconfiguring in the same conditions
19117 --file=FILE[:TEMPLATE]
19118 instantiate the configuration file FILE
19119 --header=FILE[:TEMPLATE]
19120 instantiate the configuration header FILE
19121
19122 Configuration files:
19123 $config_files
19124
19125 Configuration headers:
19126 $config_headers
19127
19128 Configuration commands:
19129 $config_commands
19130
19131 Report bugs to the package provider."
19132
19133 _ACEOF
19134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19135 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19136 ac_cs_version="\\
19137 flactag config.status 2.0.4
19138 configured by $0, generated by GNU Autoconf 2.67,
19139 with options \\"\$ac_cs_config\\"
19140
19141 Copyright (C) 2010 Free Software Foundation, Inc.
19142 This config.status script is free software; the Free Software Foundation
19143 gives unlimited permission to copy, distribute and modify it."
19144
19145 ac_pwd='$ac_pwd'
19146 srcdir='$srcdir'
19147 INSTALL='$INSTALL'
19148 MKDIR_P='$MKDIR_P'
19149 AWK='$AWK'
19150 test -n "\$AWK" || AWK=awk
19151 _ACEOF
19152
19153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19154 # The default lists apply if the user does not specify any file.
19155 ac_need_defaults=:
19156 while test $# != 0
19157 do
19158 case $1 in
19159 --*=?*)
19160 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19161 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19162 ac_shift=:
19163 ;;
19164 --*=)
19165 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19166 ac_optarg=
19167 ac_shift=:
19168 ;;
19169 *)
19170 ac_option=$1
19171 ac_optarg=$2
19172 ac_shift=shift
19173 ;;
19174 esac
19175
19176 case $ac_option in
19177 # Handling of the options.
19178 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19179 ac_cs_recheck=: ;;
19180 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19181 $as_echo "$ac_cs_version"; exit ;;
19182 --config | --confi | --conf | --con | --co | --c )
19183 $as_echo "$ac_cs_config"; exit ;;
19184 --debug | --debu | --deb | --de | --d | -d )
19185 debug=: ;;
19186 --file | --fil | --fi | --f )
19187 $ac_shift
19188 case $ac_optarg in
19189 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19190 '') as_fn_error $? "missing file argument" ;;
19191 esac
19192 as_fn_append CONFIG_FILES " '$ac_optarg'"
19193 ac_need_defaults=false;;
19194 --header | --heade | --head | --hea )
19195 $ac_shift
19196 case $ac_optarg in
19197 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19198 esac
19199 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19200 ac_need_defaults=false;;
19201 --he | --h)
19202 # Conflict between --help and --header
19203 as_fn_error $? "ambiguous option: \`$1'
19204 Try \`$0 --help' for more information.";;
19205 --help | --hel | -h )
19206 $as_echo "$ac_cs_usage"; exit ;;
19207 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19208 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19209 ac_cs_silent=: ;;
19210
19211 # This is an error.
19212 -*) as_fn_error $? "unrecognized option: \`$1'
19213 Try \`$0 --help' for more information." ;;
19214
19215 *) as_fn_append ac_config_targets " $1"
19216 ac_need_defaults=false ;;
19217
19218 esac
19219 shift
19220 done
19221
19222 ac_configure_extra_args=
19223
19224 if $ac_cs_silent; then
19225 exec 6>/dev/null
19226 ac_configure_extra_args="$ac_configure_extra_args --silent"
19227 fi
19228
19229 _ACEOF
19230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19231 if \$ac_cs_recheck; then
19232 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19233 shift
19234 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19235 CONFIG_SHELL='$SHELL'
19236 export CONFIG_SHELL
19237 exec "\$@"
19238 fi
19239
19240 _ACEOF
19241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19242 exec 5>>config.log
19243 {
19244 echo
19245 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19246 ## Running $as_me. ##
19247 _ASBOX
19248 $as_echo "$ac_log"
19249 } >&5
19250
19251 _ACEOF
19252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19253 #
19254 # INIT-COMMANDS
19255 #
19256 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19257
19258
19259 # The HP-UX ksh and POSIX shell print the target directory to stdout
19260 # if CDPATH is set.
19261 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19262
19263 sed_quote_subst='$sed_quote_subst'
19264 double_quote_subst='$double_quote_subst'
19265 delay_variable_subst='$delay_variable_subst'
19266 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
19267 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19268 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
19269 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19270 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
19271 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
19272 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
19273 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19274 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19275 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19276 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
19277 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
19278 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
19279 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
19280 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
19281 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
19282 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
19283 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
19284 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
19285 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
19286 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
19287 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
19288 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
19289 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
19290 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
19291 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
19292 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
19293 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
19294 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
19295 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
19296 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19297 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
19298 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
19299 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
19300 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19301 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
19302 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
19303 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19304 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19305 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19306 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
19307 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19308 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
19309 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
19310 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
19311 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
19312 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"`'
19313 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"`'
19314 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
19315 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
19316 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
19317 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
19318 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
19319 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
19320 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
19321 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
19322 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
19323 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
19324 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
19325 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
19326 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
19327 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19328 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
19329 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
19330 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19331 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19332 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
19333 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
19334 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19335 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19336 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
19337 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19338 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19339 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19340 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19341 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19342 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19343 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
19344 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19345 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19346 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19347 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
19348 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
19349 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
19350 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
19351 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
19352 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19353 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
19354 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
19355 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
19356 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
19357 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
19358 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19359 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19360 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19361 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19362 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
19363 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
19364 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19365 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
19366 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
19367 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19368 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19369 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
19370 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19371 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
19372 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19373 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19374 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19375 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19376 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
19377 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
19378 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19379 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19380 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
19381 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
19382 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
19383 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
19384 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
19385 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
19386 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
19387 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
19388 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
19389 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
19390 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
19391 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
19392 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19393 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19394 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19395 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19396 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19397 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19398 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19399 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19400 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19401 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19402 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19403 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19404 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19405 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19406 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19407 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19408 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19409 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19410 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19411 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19412 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19413 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19414 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19415 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19416 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19417 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19418 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19419 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19420 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19421 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19422 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19423 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19424 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19425 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19426 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19427 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19428 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19429 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19430 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19431 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19432 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19433 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19434 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19435 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19436 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19437 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19438 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19439
19440 LTCC='$LTCC'
19441 LTCFLAGS='$LTCFLAGS'
19442 compiler='$compiler_DEFAULT'
19443
19444 # Quote evaled strings.
19445 for var in SED \
19446 GREP \
19447 EGREP \
19448 FGREP \
19449 LD \
19450 NM \
19451 LN_S \
19452 lt_SP2NL \
19453 lt_NL2SP \
19454 reload_flag \
19455 deplibs_check_method \
19456 file_magic_cmd \
19457 AR \
19458 AR_FLAGS \
19459 STRIP \
19460 RANLIB \
19461 CC \
19462 CFLAGS \
19463 compiler \
19464 lt_cv_sys_global_symbol_pipe \
19465 lt_cv_sys_global_symbol_to_cdecl \
19466 lt_cv_sys_global_symbol_to_c_name_address \
19467 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19468 SHELL \
19469 ECHO \
19470 lt_prog_compiler_no_builtin_flag \
19471 lt_prog_compiler_wl \
19472 lt_prog_compiler_pic \
19473 lt_prog_compiler_static \
19474 lt_cv_prog_compiler_c_o \
19475 need_locks \
19476 DSYMUTIL \
19477 NMEDIT \
19478 LIPO \
19479 OTOOL \
19480 OTOOL64 \
19481 shrext_cmds \
19482 export_dynamic_flag_spec \
19483 whole_archive_flag_spec \
19484 compiler_needs_object \
19485 with_gnu_ld \
19486 allow_undefined_flag \
19487 no_undefined_flag \
19488 hardcode_libdir_flag_spec \
19489 hardcode_libdir_flag_spec_ld \
19490 hardcode_libdir_separator \
19491 fix_srcfile_path \
19492 exclude_expsyms \
19493 include_expsyms \
19494 file_list_spec \
19495 variables_saved_for_relink \
19496 libname_spec \
19497 library_names_spec \
19498 soname_spec \
19499 finish_eval \
19500 old_striplib \
19501 striplib \
19502 compiler_lib_search_dirs \
19503 predep_objects \
19504 postdep_objects \
19505 predeps \
19506 postdeps \
19507 compiler_lib_search_path \
19508 LD_CXX \
19509 compiler_CXX \
19510 lt_prog_compiler_no_builtin_flag_CXX \
19511 lt_prog_compiler_wl_CXX \
19512 lt_prog_compiler_pic_CXX \
19513 lt_prog_compiler_static_CXX \
19514 lt_cv_prog_compiler_c_o_CXX \
19515 export_dynamic_flag_spec_CXX \
19516 whole_archive_flag_spec_CXX \
19517 compiler_needs_object_CXX \
19518 with_gnu_ld_CXX \
19519 allow_undefined_flag_CXX \
19520 no_undefined_flag_CXX \
19521 hardcode_libdir_flag_spec_CXX \
19522 hardcode_libdir_flag_spec_ld_CXX \
19523 hardcode_libdir_separator_CXX \
19524 fix_srcfile_path_CXX \
19525 exclude_expsyms_CXX \
19526 include_expsyms_CXX \
19527 file_list_spec_CXX \
19528 compiler_lib_search_dirs_CXX \
19529 predep_objects_CXX \
19530 postdep_objects_CXX \
19531 predeps_CXX \
19532 postdeps_CXX \
19533 compiler_lib_search_path_CXX; do
19534 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19535 *[\\\\\\\`\\"\\\$]*)
19536 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19537 ;;
19538 *)
19539 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19540 ;;
19541 esac
19542 done
19543
19544 # Double-quote double-evaled strings.
19545 for var in reload_cmds \
19546 old_postinstall_cmds \
19547 old_postuninstall_cmds \
19548 old_archive_cmds \
19549 extract_expsyms_cmds \
19550 old_archive_from_new_cmds \
19551 old_archive_from_expsyms_cmds \
19552 archive_cmds \
19553 archive_expsym_cmds \
19554 module_cmds \
19555 module_expsym_cmds \
19556 export_symbols_cmds \
19557 prelink_cmds \
19558 postinstall_cmds \
19559 postuninstall_cmds \
19560 finish_cmds \
19561 sys_lib_search_path_spec \
19562 sys_lib_dlsearch_path_spec \
19563 old_archive_cmds_CXX \
19564 old_archive_from_new_cmds_CXX \
19565 old_archive_from_expsyms_cmds_CXX \
19566 archive_cmds_CXX \
19567 archive_expsym_cmds_CXX \
19568 module_cmds_CXX \
19569 module_expsym_cmds_CXX \
19570 export_symbols_cmds_CXX \
19571 prelink_cmds_CXX; do
19572 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19573 *[\\\\\\\`\\"\\\$]*)
19574 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19575 ;;
19576 *)
19577 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19578 ;;
19579 esac
19580 done
19581
19582 # Fix-up fallback echo if it was mangled by the above quoting rules.
19583 case \$lt_ECHO in
19584 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
19585 ;;
19586 esac
19587
19588 ac_aux_dir='$ac_aux_dir'
19589 xsi_shell='$xsi_shell'
19590 lt_shell_append='$lt_shell_append'
19591
19592 # See if we are running on zsh, and set the options which allow our
19593 # commands through without removal of \ escapes INIT.
19594 if test -n "\${ZSH_VERSION+set}" ; then
19595 setopt NO_GLOB_SUBST
19596 fi
19597
19598
19599 PACKAGE='$PACKAGE'
19600 VERSION='$VERSION'
19601 TIMESTAMP='$TIMESTAMP'
19602 RM='$RM'
19603 ofile='$ofile'
19604
19605
19606
19607
19608
19609
19610 _ACEOF
19611
19612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19613
19614 # Handling of arguments.
19615 for ac_config_target in $ac_config_targets
19616 do
19617 case $ac_config_target in
19618 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19619 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19620 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19621 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19622
19623 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
19624 esac
19625 done
19626
19627
19628 # If the user did not use the arguments to specify the items to instantiate,
19629 # then the envvar interface is used. Set only those that are not.
19630 # We use the long form for the default assignment because of an extremely
19631 # bizarre bug on SunOS 4.1.3.
19632 if $ac_need_defaults; then
19633 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19634 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19635 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19636 fi
19637
19638 # Have a temporary directory for convenience. Make it in the build tree
19639 # simply because there is no reason against having it here, and in addition,
19640 # creating and moving files from /tmp can sometimes cause problems.
19641 # Hook for its removal unless debugging.
19642 # Note that there is a small window in which the directory will not be cleaned:
19643 # after its creation but before its name has been assigned to `$tmp'.
19644 $debug ||
19645 {
19646 tmp=
19647 trap 'exit_status=$?
19648 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19649 ' 0
19650 trap 'as_fn_exit 1' 1 2 13 15
19651 }
19652 # Create a (secure) tmp directory for tmp files.
19653
19654 {
19655 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19656 test -n "$tmp" && test -d "$tmp"
19657 } ||
19658 {
19659 tmp=./conf$$-$RANDOM
19660 (umask 077 && mkdir "$tmp")
19661 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19662
19663 # Set up the scripts for CONFIG_FILES section.
19664 # No need to generate them if there are no CONFIG_FILES.
19665 # This happens for instance with `./config.status config.h'.
19666 if test -n "$CONFIG_FILES"; then
19667
19668
19669 ac_cr=`echo X | tr X '\015'`
19670 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19671 # But we know of no other shell where ac_cr would be empty at this
19672 # point, so we can use a bashism as a fallback.
19673 if test "x$ac_cr" = x; then
19674 eval ac_cr=\$\'\\r\'
19675 fi
19676 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19677 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19678 ac_cs_awk_cr='\\r'
19679 else
19680 ac_cs_awk_cr=$ac_cr
19681 fi
19682
19683 echo 'BEGIN {' >"$tmp/subs1.awk" &&
19684 _ACEOF
19685
19686
19687 {
19688 echo "cat >conf$$subs.awk <<_ACEOF" &&
19689 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19690 echo "_ACEOF"
19691 } >conf$$subs.sh ||
19692 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19693 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19694 ac_delim='%!_!# '
19695 for ac_last_try in false false false false false :; do
19696 . ./conf$$subs.sh ||
19697 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19698
19699 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19700 if test $ac_delim_n = $ac_delim_num; then
19701 break
19702 elif $ac_last_try; then
19703 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19704 else
19705 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19706 fi
19707 done
19708 rm -f conf$$subs.sh
19709
19710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19711 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19712 _ACEOF
19713 sed -n '
19714 h
19715 s/^/S["/; s/!.*/"]=/
19716 p
19717 g
19718 s/^[^!]*!//
19719 :repl
19720 t repl
19721 s/'"$ac_delim"'$//
19722 t delim
19723 :nl
19724 h
19725 s/\(.\{148\}\)..*/\1/
19726 t more1
19727 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19728 p
19729 n
19730 b repl
19731 :more1
19732 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19733 p
19734 g
19735 s/.\{148\}//
19736 t nl
19737 :delim
19738 h
19739 s/\(.\{148\}\)..*/\1/
19740 t more2
19741 s/["\\]/\\&/g; s/^/"/; s/$/"/
19742 p
19743 b
19744 :more2
19745 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19746 p
19747 g
19748 s/.\{148\}//
19749 t delim
19750 ' <conf$$subs.awk | sed '
19751 /^[^""]/{
19752 N
19753 s/\n//
19754 }
19755 ' >>$CONFIG_STATUS || ac_write_fail=1
19756 rm -f conf$$subs.awk
19757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19758 _ACAWK
19759 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19760 for (key in S) S_is_set[key] = 1
19761 FS = ""
19762
19763 }
19764 {
19765 line = $ 0
19766 nfields = split(line, field, "@")
19767 substed = 0
19768 len = length(field[1])
19769 for (i = 2; i < nfields; i++) {
19770 key = field[i]
19771 keylen = length(key)
19772 if (S_is_set[key]) {
19773 value = S[key]
19774 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19775 len += length(value) + length(field[++i])
19776 substed = 1
19777 } else
19778 len += 1 + keylen
19779 }
19780
19781 print line
19782 }
19783
19784 _ACAWK
19785 _ACEOF
19786 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19787 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19788 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19789 else
19790 cat
19791 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19792 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19793 _ACEOF
19794
19795 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19796 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19797 # trailing colons and then remove the whole line if VPATH becomes empty
19798 # (actually we leave an empty line to preserve line numbers).
19799 if test "x$srcdir" = x.; then
19800 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19801 h
19802 s///
19803 s/^/:/
19804 s/[ ]*$/:/
19805 s/:\$(srcdir):/:/g
19806 s/:\${srcdir}:/:/g
19807 s/:@srcdir@:/:/g
19808 s/^:*//
19809 s/:*$//
19810 x
19811 s/\(=[ ]*\).*/\1/
19812 G
19813 s/\n//
19814 s/^[^=]*=[ ]*$//
19815 }'
19816 fi
19817
19818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19819 fi # test -n "$CONFIG_FILES"
19820
19821 # Set up the scripts for CONFIG_HEADERS section.
19822 # No need to generate them if there are no CONFIG_HEADERS.
19823 # This happens for instance with `./config.status Makefile'.
19824 if test -n "$CONFIG_HEADERS"; then
19825 cat >"$tmp/defines.awk" <<\_ACAWK ||
19826 BEGIN {
19827 _ACEOF
19828
19829 # Transform confdefs.h into an awk script `defines.awk', embedded as
19830 # here-document in config.status, that substitutes the proper values into
19831 # config.h.in to produce config.h.
19832
19833 # Create a delimiter string that does not exist in confdefs.h, to ease
19834 # handling of long lines.
19835 ac_delim='%!_!# '
19836 for ac_last_try in false false :; do
19837 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19838 if test -z "$ac_t"; then
19839 break
19840 elif $ac_last_try; then
19841 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19842 else
19843 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19844 fi
19845 done
19846
19847 # For the awk script, D is an array of macro values keyed by name,
19848 # likewise P contains macro parameters if any. Preserve backslash
19849 # newline sequences.
19850
19851 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19852 sed -n '
19853 s/.\{148\}/&'"$ac_delim"'/g
19854 t rset
19855 :rset
19856 s/^[ ]*#[ ]*define[ ][ ]*/ /
19857 t def
19858 d
19859 :def
19860 s/\\$//
19861 t bsnl
19862 s/["\\]/\\&/g
19863 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19864 D["\1"]=" \3"/p
19865 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19866 d
19867 :bsnl
19868 s/["\\]/\\&/g
19869 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19870 D["\1"]=" \3\\\\\\n"\\/p
19871 t cont
19872 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19873 t cont
19874 d
19875 :cont
19876 n
19877 s/.\{148\}/&'"$ac_delim"'/g
19878 t clear
19879 :clear
19880 s/\\$//
19881 t bsnlc
19882 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19883 d
19884 :bsnlc
19885 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19886 b cont
19887 ' <confdefs.h | sed '
19888 s/'"$ac_delim"'/"\\\
19889 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19890
19891 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19892 for (key in D) D_is_set[key] = 1
19893 FS = ""
19894 }
19895 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19896 line = \$ 0
19897 split(line, arg, " ")
19898 if (arg[1] == "#") {
19899 defundef = arg[2]
19900 mac1 = arg[3]
19901 } else {
19902 defundef = substr(arg[1], 2)
19903 mac1 = arg[2]
19904 }
19905 split(mac1, mac2, "(") #)
19906 macro = mac2[1]
19907 prefix = substr(line, 1, index(line, defundef) - 1)
19908 if (D_is_set[macro]) {
19909 # Preserve the white space surrounding the "#".
19910 print prefix "define", macro P[macro] D[macro]
19911 next
19912 } else {
19913 # Replace #undef with comments. This is necessary, for example,
19914 # in the case of _POSIX_SOURCE, which is predefined and required
19915 # on some systems where configure will not decide to define it.
19916 if (defundef == "undef") {
19917 print "/*", prefix defundef, macro, "*/"
19918 next
19919 }
19920 }
19921 }
19922 { print }
19923 _ACAWK
19924 _ACEOF
19925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19926 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19927 fi # test -n "$CONFIG_HEADERS"
19928
19929
19930 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19931 shift
19932 for ac_tag
19933 do
19934 case $ac_tag in
19935 :[FHLC]) ac_mode=$ac_tag; continue;;
19936 esac
19937 case $ac_mode$ac_tag in
19938 :[FHL]*:*);;
19939 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
19940 :[FH]-) ac_tag=-:-;;
19941 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19942 esac
19943 ac_save_IFS=$IFS
19944 IFS=:
19945 set x $ac_tag
19946 IFS=$ac_save_IFS
19947 shift
19948 ac_file=$1
19949 shift
19950
19951 case $ac_mode in
19952 :L) ac_source=$1;;
19953 :[FH])
19954 ac_file_inputs=
19955 for ac_f
19956 do
19957 case $ac_f in
19958 -) ac_f="$tmp/stdin";;
19959 *) # Look for the file first in the build tree, then in the source tree
19960 # (if the path is not absolute). The absolute path cannot be DOS-style,
19961 # because $ac_f cannot contain `:'.
19962 test -f "$ac_f" ||
19963 case $ac_f in
19964 [\\/$]*) false;;
19965 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19966 esac ||
19967 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
19968 esac
19969 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19970 as_fn_append ac_file_inputs " '$ac_f'"
19971 done
19972
19973 # Let's still pretend it is `configure' which instantiates (i.e., don't
19974 # use $as_me), people would be surprised to read:
19975 # /* config.h. Generated by config.status. */
19976 configure_input='Generated from '`
19977 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19978 `' by configure.'
19979 if test x"$ac_file" != x-; then
19980 configure_input="$ac_file. $configure_input"
19981 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19982 $as_echo "$as_me: creating $ac_file" >&6;}
19983 fi
19984 # Neutralize special characters interpreted by sed in replacement strings.
19985 case $configure_input in #(
19986 *\&* | *\|* | *\\* )
19987 ac_sed_conf_input=`$as_echo "$configure_input" |
19988 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19989 *) ac_sed_conf_input=$configure_input;;
19990 esac
19991
19992 case $ac_tag in
19993 *:-:* | *:-) cat >"$tmp/stdin" \
19994 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19995 esac
19996 ;;
19997 esac
19998
19999 ac_dir=`$as_dirname -- "$ac_file" ||
20000 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20001 X"$ac_file" : 'X\(//\)[^/]' \| \
20002 X"$ac_file" : 'X\(//\)$' \| \
20003 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20004 $as_echo X"$ac_file" |
20005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20006 s//\1/
20007 q
20008 }
20009 /^X\(\/\/\)[^/].*/{
20010 s//\1/
20011 q
20012 }
20013 /^X\(\/\/\)$/{
20014 s//\1/
20015 q
20016 }
20017 /^X\(\/\).*/{
20018 s//\1/
20019 q
20020 }
20021 s/.*/./; q'`
20022 as_dir="$ac_dir"; as_fn_mkdir_p
20023 ac_builddir=.
20024
20025 case "$ac_dir" in
20026 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20027 *)
20028 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20029 # A ".." for each directory in $ac_dir_suffix.
20030 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20031 case $ac_top_builddir_sub in
20032 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20033 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20034 esac ;;
20035 esac
20036 ac_abs_top_builddir=$ac_pwd
20037 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20038 # for backward compatibility:
20039 ac_top_builddir=$ac_top_build_prefix
20040
20041 case $srcdir in
20042 .) # We are building in place.
20043 ac_srcdir=.
20044 ac_top_srcdir=$ac_top_builddir_sub
20045 ac_abs_top_srcdir=$ac_pwd ;;
20046 [\\/]* | ?:[\\/]* ) # Absolute name.
20047 ac_srcdir=$srcdir$ac_dir_suffix;
20048 ac_top_srcdir=$srcdir
20049 ac_abs_top_srcdir=$srcdir ;;
20050 *) # Relative name.
20051 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20052 ac_top_srcdir=$ac_top_build_prefix$srcdir
20053 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20054 esac
20055 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20056
20057
20058 case $ac_mode in
20059 :F)
20060 #
20061 # CONFIG_FILE
20062 #
20063
20064 case $INSTALL in
20065 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20066 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20067 esac
20068 ac_MKDIR_P=$MKDIR_P
20069 case $MKDIR_P in
20070 [\\/$]* | ?:[\\/]* ) ;;
20071 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20072 esac
20073 _ACEOF
20074
20075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20076 # If the template does not know about datarootdir, expand it.
20077 # FIXME: This hack should be removed a few years after 2.60.
20078 ac_datarootdir_hack=; ac_datarootdir_seen=
20079 ac_sed_dataroot='
20080 /datarootdir/ {
20081 p
20082 q
20083 }
20084 /@datadir@/p
20085 /@docdir@/p
20086 /@infodir@/p
20087 /@localedir@/p
20088 /@mandir@/p'
20089 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20090 *datarootdir*) ac_datarootdir_seen=yes;;
20091 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20093 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20094 _ACEOF
20095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20096 ac_datarootdir_hack='
20097 s&@datadir@&$datadir&g
20098 s&@docdir@&$docdir&g
20099 s&@infodir@&$infodir&g
20100 s&@localedir@&$localedir&g
20101 s&@mandir@&$mandir&g
20102 s&\\\${datarootdir}&$datarootdir&g' ;;
20103 esac
20104 _ACEOF
20105
20106 # Neutralize VPATH when `$srcdir' = `.'.
20107 # Shell code in configure.ac might set extrasub.
20108 # FIXME: do we really want to maintain this feature?
20109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20110 ac_sed_extra="$ac_vpsub
20111 $extrasub
20112 _ACEOF
20113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20114 :t
20115 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20116 s|@configure_input@|$ac_sed_conf_input|;t t
20117 s&@top_builddir@&$ac_top_builddir_sub&;t t
20118 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20119 s&@srcdir@&$ac_srcdir&;t t
20120 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20121 s&@top_srcdir@&$ac_top_srcdir&;t t
20122 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20123 s&@builddir@&$ac_builddir&;t t
20124 s&@abs_builddir@&$ac_abs_builddir&;t t
20125 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20126 s&@INSTALL@&$ac_INSTALL&;t t
20127 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20128 $ac_datarootdir_hack
20129 "
20130 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20131 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20132
20133 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20134 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20135 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20137 which seems to be undefined. Please make sure it is defined" >&5
20138 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20139 which seems to be undefined. Please make sure it is defined" >&2;}
20140
20141 rm -f "$tmp/stdin"
20142 case $ac_file in
20143 -) cat "$tmp/out" && rm -f "$tmp/out";;
20144 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20145 esac \
20146 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20147 ;;
20148 :H)
20149 #
20150 # CONFIG_HEADER
20151 #
20152 if test x"$ac_file" != x-; then
20153 {
20154 $as_echo "/* $configure_input */" \
20155 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20156 } >"$tmp/config.h" \
20157 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20158 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20159 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20160 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20161 else
20162 rm -f "$ac_file"
20163 mv "$tmp/config.h" "$ac_file" \
20164 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20165 fi
20166 else
20167 $as_echo "/* $configure_input */" \
20168 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20169 || as_fn_error $? "could not create -" "$LINENO" 5
20170 fi
20171 # Compute "$ac_file"'s index in $config_headers.
20172 _am_arg="$ac_file"
20173 _am_stamp_count=1
20174 for _am_header in $config_headers :; do
20175 case $_am_header in
20176 $_am_arg | $_am_arg:* )
20177 break ;;
20178 * )
20179 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20180 esac
20181 done
20182 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20183 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20184 X"$_am_arg" : 'X\(//\)[^/]' \| \
20185 X"$_am_arg" : 'X\(//\)$' \| \
20186 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20187 $as_echo X"$_am_arg" |
20188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20189 s//\1/
20190 q
20191 }
20192 /^X\(\/\/\)[^/].*/{
20193 s//\1/
20194 q
20195 }
20196 /^X\(\/\/\)$/{
20197 s//\1/
20198 q
20199 }
20200 /^X\(\/\).*/{
20201 s//\1/
20202 q
20203 }
20204 s/.*/./; q'`/stamp-h$_am_stamp_count
20205 ;;
20206
20207 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20208 $as_echo "$as_me: executing $ac_file commands" >&6;}
20209 ;;
20210 esac
20211
20212
20213 case $ac_file$ac_mode in
20214 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20215 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20216 # are listed without --file. Let's play safe and only enable the eval
20217 # if we detect the quoting.
20218 case $CONFIG_FILES in
20219 *\'*) eval set x "$CONFIG_FILES" ;;
20220 *) set x $CONFIG_FILES ;;
20221 esac
20222 shift
20223 for mf
20224 do
20225 # Strip MF so we end up with the name of the file.
20226 mf=`echo "$mf" | sed -e 's/:.*$//'`
20227 # Check whether this is an Automake generated Makefile or not.
20228 # We used to match only the files named `Makefile.in', but
20229 # some people rename them; so instead we look at the file content.
20230 # Grep'ing the first line is not enough: some people post-process
20231 # each Makefile.in and add a new line on top of each file to say so.
20232 # Grep'ing the whole file is not good either: AIX grep has a line
20233 # limit of 2048, but all sed's we know have understand at least 4000.
20234 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20235 dirpart=`$as_dirname -- "$mf" ||
20236 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20237 X"$mf" : 'X\(//\)[^/]' \| \
20238 X"$mf" : 'X\(//\)$' \| \
20239 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20240 $as_echo X"$mf" |
20241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20242 s//\1/
20243 q
20244 }
20245 /^X\(\/\/\)[^/].*/{
20246 s//\1/
20247 q
20248 }
20249 /^X\(\/\/\)$/{
20250 s//\1/
20251 q
20252 }
20253 /^X\(\/\).*/{
20254 s//\1/
20255 q
20256 }
20257 s/.*/./; q'`
20258 else
20259 continue
20260 fi
20261 # Extract the definition of DEPDIR, am__include, and am__quote
20262 # from the Makefile without running `make'.
20263 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20264 test -z "$DEPDIR" && continue
20265 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20266 test -z "am__include" && continue
20267 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20268 # When using ansi2knr, U may be empty or an underscore; expand it
20269 U=`sed -n 's/^U = //p' < "$mf"`
20270 # Find all dependency output files, they are included files with
20271 # $(DEPDIR) in their names. We invoke sed twice because it is the
20272 # simplest approach to changing $(DEPDIR) to its actual value in the
20273 # expansion.
20274 for file in `sed -n "
20275 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20276 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20277 # Make sure the directory exists.
20278 test -f "$dirpart/$file" && continue
20279 fdir=`$as_dirname -- "$file" ||
20280 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20281 X"$file" : 'X\(//\)[^/]' \| \
20282 X"$file" : 'X\(//\)$' \| \
20283 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20284 $as_echo X"$file" |
20285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20286 s//\1/
20287 q
20288 }
20289 /^X\(\/\/\)[^/].*/{
20290 s//\1/
20291 q
20292 }
20293 /^X\(\/\/\)$/{
20294 s//\1/
20295 q
20296 }
20297 /^X\(\/\).*/{
20298 s//\1/
20299 q
20300 }
20301 s/.*/./; q'`
20302 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20303 # echo "creating $dirpart/$file"
20304 echo '# dummy' > "$dirpart/$file"
20305 done
20306 done
20307 }
20308 ;;
20309 "libtool":C)
20310
20311 # See if we are running on zsh, and set the options which allow our
20312 # commands through without removal of \ escapes.
20313 if test -n "${ZSH_VERSION+set}" ; then
20314 setopt NO_GLOB_SUBST
20315 fi
20316
20317 cfgfile="${ofile}T"
20318 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20319 $RM "$cfgfile"
20320
20321 cat <<_LT_EOF >> "$cfgfile"
20322 #! $SHELL
20323
20324 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20325 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20326 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20327 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20328 #
20329 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20330 # 2006, 2007, 2008 Free Software Foundation, Inc.
20331 # Written by Gordon Matzigkeit, 1996
20332 #
20333 # This file is part of GNU Libtool.
20334 #
20335 # GNU Libtool is free software; you can redistribute it and/or
20336 # modify it under the terms of the GNU General Public License as
20337 # published by the Free Software Foundation; either version 2 of
20338 # the License, or (at your option) any later version.
20339 #
20340 # As a special exception to the GNU General Public License,
20341 # if you distribute this file as part of a program or library that
20342 # is built using GNU Libtool, you may include this file under the
20343 # same distribution terms that you use for the rest of that program.
20344 #
20345 # GNU Libtool is distributed in the hope that it will be useful,
20346 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20347 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20348 # GNU General Public License for more details.
20349 #
20350 # You should have received a copy of the GNU General Public License
20351 # along with GNU Libtool; see the file COPYING. If not, a copy
20352 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20353 # obtained by writing to the Free Software Foundation, Inc.,
20354 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20355
20356
20357 # The names of the tagged configurations supported by this script.
20358 available_tags="CXX "
20359
20360 # ### BEGIN LIBTOOL CONFIG
20361
20362 # Assembler program.
20363 AS=$AS
20364
20365 # DLL creation program.
20366 DLLTOOL=$DLLTOOL
20367
20368 # Object dumper program.
20369 OBJDUMP=$OBJDUMP
20370
20371 # Which release of libtool.m4 was used?
20372 macro_version=$macro_version
20373 macro_revision=$macro_revision
20374
20375 # Whether or not to build shared libraries.
20376 build_libtool_libs=$enable_shared
20377
20378 # Whether or not to build static libraries.
20379 build_old_libs=$enable_static
20380
20381 # What type of objects to build.
20382 pic_mode=$pic_mode
20383
20384 # Whether or not to optimize for fast installation.
20385 fast_install=$enable_fast_install
20386
20387 # The host system.
20388 host_alias=$host_alias
20389 host=$host
20390 host_os=$host_os
20391
20392 # The build system.
20393 build_alias=$build_alias
20394 build=$build
20395 build_os=$build_os
20396
20397 # A sed program that does not truncate output.
20398 SED=$lt_SED
20399
20400 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20401 Xsed="\$SED -e 1s/^X//"
20402
20403 # A grep program that handles long lines.
20404 GREP=$lt_GREP
20405
20406 # An ERE matcher.
20407 EGREP=$lt_EGREP
20408
20409 # A literal string matcher.
20410 FGREP=$lt_FGREP
20411
20412 # A BSD- or MS-compatible name lister.
20413 NM=$lt_NM
20414
20415 # Whether we need soft or hard links.
20416 LN_S=$lt_LN_S
20417
20418 # What is the maximum length of a command?
20419 max_cmd_len=$max_cmd_len
20420
20421 # Object file suffix (normally "o").
20422 objext=$ac_objext
20423
20424 # Executable file suffix (normally "").
20425 exeext=$exeext
20426
20427 # whether the shell understands "unset".
20428 lt_unset=$lt_unset
20429
20430 # turn spaces into newlines.
20431 SP2NL=$lt_lt_SP2NL
20432
20433 # turn newlines into spaces.
20434 NL2SP=$lt_lt_NL2SP
20435
20436 # How to create reloadable object files.
20437 reload_flag=$lt_reload_flag
20438 reload_cmds=$lt_reload_cmds
20439
20440 # Method to check whether dependent libraries are shared objects.
20441 deplibs_check_method=$lt_deplibs_check_method
20442
20443 # Command to use when deplibs_check_method == "file_magic".
20444 file_magic_cmd=$lt_file_magic_cmd
20445
20446 # The archiver.
20447 AR=$lt_AR
20448 AR_FLAGS=$lt_AR_FLAGS
20449
20450 # A symbol stripping program.
20451 STRIP=$lt_STRIP
20452
20453 # Commands used to install an old-style archive.
20454 RANLIB=$lt_RANLIB
20455 old_postinstall_cmds=$lt_old_postinstall_cmds
20456 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20457
20458 # A C compiler.
20459 LTCC=$lt_CC
20460
20461 # LTCC compiler flags.
20462 LTCFLAGS=$lt_CFLAGS
20463
20464 # Take the output of nm and produce a listing of raw symbols and C names.
20465 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20466
20467 # Transform the output of nm in a proper C declaration.
20468 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20469
20470 # Transform the output of nm in a C name address pair.
20471 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20472
20473 # Transform the output of nm in a C name address pair when lib prefix is needed.
20474 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20475
20476 # The name of the directory that contains temporary libtool files.
20477 objdir=$objdir
20478
20479 # Shell to use when invoking shell scripts.
20480 SHELL=$lt_SHELL
20481
20482 # An echo program that does not interpret backslashes.
20483 ECHO=$lt_ECHO
20484
20485 # Used to examine libraries when file_magic_cmd begins with "file".
20486 MAGIC_CMD=$MAGIC_CMD
20487
20488 # Must we lock files when doing compilation?
20489 need_locks=$lt_need_locks
20490
20491 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20492 DSYMUTIL=$lt_DSYMUTIL
20493
20494 # Tool to change global to local symbols on Mac OS X.
20495 NMEDIT=$lt_NMEDIT
20496
20497 # Tool to manipulate fat objects and archives on Mac OS X.
20498 LIPO=$lt_LIPO
20499
20500 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20501 OTOOL=$lt_OTOOL
20502
20503 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20504 OTOOL64=$lt_OTOOL64
20505
20506 # Old archive suffix (normally "a").
20507 libext=$libext
20508
20509 # Shared library suffix (normally ".so").
20510 shrext_cmds=$lt_shrext_cmds
20511
20512 # The commands to extract the exported symbol list from a shared archive.
20513 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20514
20515 # Variables whose values should be saved in libtool wrapper scripts and
20516 # restored at link time.
20517 variables_saved_for_relink=$lt_variables_saved_for_relink
20518
20519 # Do we need the "lib" prefix for modules?
20520 need_lib_prefix=$need_lib_prefix
20521
20522 # Do we need a version for libraries?
20523 need_version=$need_version
20524
20525 # Library versioning type.
20526 version_type=$version_type
20527
20528 # Shared library runtime path variable.
20529 runpath_var=$runpath_var
20530
20531 # Shared library path variable.
20532 shlibpath_var=$shlibpath_var
20533
20534 # Is shlibpath searched before the hard-coded library search path?
20535 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20536
20537 # Format of library name prefix.
20538 libname_spec=$lt_libname_spec
20539
20540 # List of archive names. First name is the real one, the rest are links.
20541 # The last name is the one that the linker finds with -lNAME
20542 library_names_spec=$lt_library_names_spec
20543
20544 # The coded name of the library, if different from the real name.
20545 soname_spec=$lt_soname_spec
20546
20547 # Command to use after installation of a shared archive.
20548 postinstall_cmds=$lt_postinstall_cmds
20549
20550 # Command to use after uninstallation of a shared archive.
20551 postuninstall_cmds=$lt_postuninstall_cmds
20552
20553 # Commands used to finish a libtool library installation in a directory.
20554 finish_cmds=$lt_finish_cmds
20555
20556 # As "finish_cmds", except a single script fragment to be evaled but
20557 # not shown.
20558 finish_eval=$lt_finish_eval
20559
20560 # Whether we should hardcode library paths into libraries.
20561 hardcode_into_libs=$hardcode_into_libs
20562
20563 # Compile-time system search path for libraries.
20564 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20565
20566 # Run-time system search path for libraries.
20567 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20568
20569 # Whether dlopen is supported.
20570 dlopen_support=$enable_dlopen
20571
20572 # Whether dlopen of programs is supported.
20573 dlopen_self=$enable_dlopen_self
20574
20575 # Whether dlopen of statically linked programs is supported.
20576 dlopen_self_static=$enable_dlopen_self_static
20577
20578 # Commands to strip libraries.
20579 old_striplib=$lt_old_striplib
20580 striplib=$lt_striplib
20581
20582
20583 # The linker used to build libraries.
20584 LD=$lt_LD
20585
20586 # Commands used to build an old-style archive.
20587 old_archive_cmds=$lt_old_archive_cmds
20588
20589 # A language specific compiler.
20590 CC=$lt_compiler
20591
20592 # Is the compiler the GNU compiler?
20593 with_gcc=$GCC
20594
20595 # Compiler flag to turn off builtin functions.
20596 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20597
20598 # How to pass a linker flag through the compiler.
20599 wl=$lt_lt_prog_compiler_wl
20600
20601 # Additional compiler flags for building library objects.
20602 pic_flag=$lt_lt_prog_compiler_pic
20603
20604 # Compiler flag to prevent dynamic linking.
20605 link_static_flag=$lt_lt_prog_compiler_static
20606
20607 # Does compiler simultaneously support -c and -o options?
20608 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20609
20610 # Whether or not to add -lc for building shared libraries.
20611 build_libtool_need_lc=$archive_cmds_need_lc
20612
20613 # Whether or not to disallow shared libs when runtime libs are static.
20614 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20615
20616 # Compiler flag to allow reflexive dlopens.
20617 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20618
20619 # Compiler flag to generate shared objects directly from archives.
20620 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20621
20622 # Whether the compiler copes with passing no objects directly.
20623 compiler_needs_object=$lt_compiler_needs_object
20624
20625 # Create an old-style archive from a shared archive.
20626 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20627
20628 # Create a temporary old-style archive to link instead of a shared archive.
20629 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20630
20631 # Commands used to build a shared archive.
20632 archive_cmds=$lt_archive_cmds
20633 archive_expsym_cmds=$lt_archive_expsym_cmds
20634
20635 # Commands used to build a loadable module if different from building
20636 # a shared archive.
20637 module_cmds=$lt_module_cmds
20638 module_expsym_cmds=$lt_module_expsym_cmds
20639
20640 # Whether we are building with GNU ld or not.
20641 with_gnu_ld=$lt_with_gnu_ld
20642
20643 # Flag that allows shared libraries with undefined symbols to be built.
20644 allow_undefined_flag=$lt_allow_undefined_flag
20645
20646 # Flag that enforces no undefined symbols.
20647 no_undefined_flag=$lt_no_undefined_flag
20648
20649 # Flag to hardcode \$libdir into a binary during linking.
20650 # This must work even if \$libdir does not exist
20651 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20652
20653 # If ld is used when linking, flag to hardcode \$libdir into a binary
20654 # during linking. This must work even if \$libdir does not exist.
20655 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20656
20657 # Whether we need a single "-rpath" flag with a separated argument.
20658 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20659
20660 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20661 # DIR into the resulting binary.
20662 hardcode_direct=$hardcode_direct
20663
20664 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20665 # DIR into the resulting binary and the resulting library dependency is
20666 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20667 # library is relocated.
20668 hardcode_direct_absolute=$hardcode_direct_absolute
20669
20670 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20671 # into the resulting binary.
20672 hardcode_minus_L=$hardcode_minus_L
20673
20674 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20675 # into the resulting binary.
20676 hardcode_shlibpath_var=$hardcode_shlibpath_var
20677
20678 # Set to "yes" if building a shared library automatically hardcodes DIR
20679 # into the library and all subsequent libraries and executables linked
20680 # against it.
20681 hardcode_automatic=$hardcode_automatic
20682
20683 # Set to yes if linker adds runtime paths of dependent libraries
20684 # to runtime path list.
20685 inherit_rpath=$inherit_rpath
20686
20687 # Whether libtool must link a program against all its dependency libraries.
20688 link_all_deplibs=$link_all_deplibs
20689
20690 # Fix the shell variable \$srcfile for the compiler.
20691 fix_srcfile_path=$lt_fix_srcfile_path
20692
20693 # Set to "yes" if exported symbols are required.
20694 always_export_symbols=$always_export_symbols
20695
20696 # The commands to list exported symbols.
20697 export_symbols_cmds=$lt_export_symbols_cmds
20698
20699 # Symbols that should not be listed in the preloaded symbols.
20700 exclude_expsyms=$lt_exclude_expsyms
20701
20702 # Symbols that must always be exported.
20703 include_expsyms=$lt_include_expsyms
20704
20705 # Commands necessary for linking programs (against libraries) with templates.
20706 prelink_cmds=$lt_prelink_cmds
20707
20708 # Specify filename containing input files.
20709 file_list_spec=$lt_file_list_spec
20710
20711 # How to hardcode a shared library path into an executable.
20712 hardcode_action=$hardcode_action
20713
20714 # The directories searched by this compiler when creating a shared library.
20715 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20716
20717 # Dependencies to place before and after the objects being linked to
20718 # create a shared library.
20719 predep_objects=$lt_predep_objects
20720 postdep_objects=$lt_postdep_objects
20721 predeps=$lt_predeps
20722 postdeps=$lt_postdeps
20723
20724 # The library search path used internally by the compiler when linking
20725 # a shared library.
20726 compiler_lib_search_path=$lt_compiler_lib_search_path
20727
20728 # ### END LIBTOOL CONFIG
20729
20730 _LT_EOF
20731
20732 case $host_os in
20733 aix3*)
20734 cat <<\_LT_EOF >> "$cfgfile"
20735 # AIX sometimes has problems with the GCC collect2 program. For some
20736 # reason, if we set the COLLECT_NAMES environment variable, the problems
20737 # vanish in a puff of smoke.
20738 if test "X${COLLECT_NAMES+set}" != Xset; then
20739 COLLECT_NAMES=
20740 export COLLECT_NAMES
20741 fi
20742 _LT_EOF
20743 ;;
20744 esac
20745
20746
20747 ltmain="$ac_aux_dir/ltmain.sh"
20748
20749
20750 # We use sed instead of cat because bash on DJGPP gets confused if
20751 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20752 # text mode, it properly converts lines to CR/LF. This bash problem
20753 # is reportedly fixed, but why not run on old versions too?
20754 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20755 || (rm -f "$cfgfile"; exit 1)
20756
20757 case $xsi_shell in
20758 yes)
20759 cat << \_LT_EOF >> "$cfgfile"
20760
20761 # func_dirname file append nondir_replacement
20762 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20763 # otherwise set result to NONDIR_REPLACEMENT.
20764 func_dirname ()
20765 {
20766 case ${1} in
20767 */*) func_dirname_result="${1%/*}${2}" ;;
20768 * ) func_dirname_result="${3}" ;;
20769 esac
20770 }
20771
20772 # func_basename file
20773 func_basename ()
20774 {
20775 func_basename_result="${1##*/}"
20776 }
20777
20778 # func_dirname_and_basename file append nondir_replacement
20779 # perform func_basename and func_dirname in a single function
20780 # call:
20781 # dirname: Compute the dirname of FILE. If nonempty,
20782 # add APPEND to the result, otherwise set result
20783 # to NONDIR_REPLACEMENT.
20784 # value returned in "$func_dirname_result"
20785 # basename: Compute filename of FILE.
20786 # value retuned in "$func_basename_result"
20787 # Implementation must be kept synchronized with func_dirname
20788 # and func_basename. For efficiency, we do not delegate to
20789 # those functions but instead duplicate the functionality here.
20790 func_dirname_and_basename ()
20791 {
20792 case ${1} in
20793 */*) func_dirname_result="${1%/*}${2}" ;;
20794 * ) func_dirname_result="${3}" ;;
20795 esac
20796 func_basename_result="${1##*/}"
20797 }
20798
20799 # func_stripname prefix suffix name
20800 # strip PREFIX and SUFFIX off of NAME.
20801 # PREFIX and SUFFIX must not contain globbing or regex special
20802 # characters, hashes, percent signs, but SUFFIX may contain a leading
20803 # dot (in which case that matches only a dot).
20804 func_stripname ()
20805 {
20806 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20807 # positional parameters, so assign one to ordinary parameter first.
20808 func_stripname_result=${3}
20809 func_stripname_result=${func_stripname_result#"${1}"}
20810 func_stripname_result=${func_stripname_result%"${2}"}
20811 }
20812
20813 # func_opt_split
20814 func_opt_split ()
20815 {
20816 func_opt_split_opt=${1%%=*}
20817 func_opt_split_arg=${1#*=}
20818 }
20819
20820 # func_lo2o object
20821 func_lo2o ()
20822 {
20823 case ${1} in
20824 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20825 *) func_lo2o_result=${1} ;;
20826 esac
20827 }
20828
20829 # func_xform libobj-or-source
20830 func_xform ()
20831 {
20832 func_xform_result=${1%.*}.lo
20833 }
20834
20835 # func_arith arithmetic-term...
20836 func_arith ()
20837 {
20838 func_arith_result=$(( $* ))
20839 }
20840
20841 # func_len string
20842 # STRING may not start with a hyphen.
20843 func_len ()
20844 {
20845 func_len_result=${#1}
20846 }
20847
20848 _LT_EOF
20849 ;;
20850 *) # Bourne compatible functions.
20851 cat << \_LT_EOF >> "$cfgfile"
20852
20853 # func_dirname file append nondir_replacement
20854 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20855 # otherwise set result to NONDIR_REPLACEMENT.
20856 func_dirname ()
20857 {
20858 # Extract subdirectory from the argument.
20859 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20860 if test "X$func_dirname_result" = "X${1}"; then
20861 func_dirname_result="${3}"
20862 else
20863 func_dirname_result="$func_dirname_result${2}"
20864 fi
20865 }
20866
20867 # func_basename file
20868 func_basename ()
20869 {
20870 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
20871 }
20872
20873
20874 # func_stripname prefix suffix name
20875 # strip PREFIX and SUFFIX off of NAME.
20876 # PREFIX and SUFFIX must not contain globbing or regex special
20877 # characters, hashes, percent signs, but SUFFIX may contain a leading
20878 # dot (in which case that matches only a dot).
20879 # func_strip_suffix prefix name
20880 func_stripname ()
20881 {
20882 case ${2} in
20883 .*) func_stripname_result=`$ECHO "X${3}" \
20884 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20885 *) func_stripname_result=`$ECHO "X${3}" \
20886 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20887 esac
20888 }
20889
20890 # sed scripts:
20891 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20892 my_sed_long_arg='1s/^-[^=]*=//'
20893
20894 # func_opt_split
20895 func_opt_split ()
20896 {
20897 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20898 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20899 }
20900
20901 # func_lo2o object
20902 func_lo2o ()
20903 {
20904 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20905 }
20906
20907 # func_xform libobj-or-source
20908 func_xform ()
20909 {
20910 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20911 }
20912
20913 # func_arith arithmetic-term...
20914 func_arith ()
20915 {
20916 func_arith_result=`expr "$@"`
20917 }
20918
20919 # func_len string
20920 # STRING may not start with a hyphen.
20921 func_len ()
20922 {
20923 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20924 }
20925
20926 _LT_EOF
20927 esac
20928
20929 case $lt_shell_append in
20930 yes)
20931 cat << \_LT_EOF >> "$cfgfile"
20932
20933 # func_append var value
20934 # Append VALUE to the end of shell variable VAR.
20935 func_append ()
20936 {
20937 eval "$1+=\$2"
20938 }
20939 _LT_EOF
20940 ;;
20941 *)
20942 cat << \_LT_EOF >> "$cfgfile"
20943
20944 # func_append var value
20945 # Append VALUE to the end of shell variable VAR.
20946 func_append ()
20947 {
20948 eval "$1=\$$1\$2"
20949 }
20950
20951 _LT_EOF
20952 ;;
20953 esac
20954
20955
20956 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20957 || (rm -f "$cfgfile"; exit 1)
20958
20959 mv -f "$cfgfile" "$ofile" ||
20960 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20961 chmod +x "$ofile"
20962
20963
20964 cat <<_LT_EOF >> "$ofile"
20965
20966 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20967
20968 # The linker used to build libraries.
20969 LD=$lt_LD_CXX
20970
20971 # Commands used to build an old-style archive.
20972 old_archive_cmds=$lt_old_archive_cmds_CXX
20973
20974 # A language specific compiler.
20975 CC=$lt_compiler_CXX
20976
20977 # Is the compiler the GNU compiler?
20978 with_gcc=$GCC_CXX
20979
20980 # Compiler flag to turn off builtin functions.
20981 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20982
20983 # How to pass a linker flag through the compiler.
20984 wl=$lt_lt_prog_compiler_wl_CXX
20985
20986 # Additional compiler flags for building library objects.
20987 pic_flag=$lt_lt_prog_compiler_pic_CXX
20988
20989 # Compiler flag to prevent dynamic linking.
20990 link_static_flag=$lt_lt_prog_compiler_static_CXX
20991
20992 # Does compiler simultaneously support -c and -o options?
20993 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20994
20995 # Whether or not to add -lc for building shared libraries.
20996 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20997
20998 # Whether or not to disallow shared libs when runtime libs are static.
20999 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21000
21001 # Compiler flag to allow reflexive dlopens.
21002 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21003
21004 # Compiler flag to generate shared objects directly from archives.
21005 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21006
21007 # Whether the compiler copes with passing no objects directly.
21008 compiler_needs_object=$lt_compiler_needs_object_CXX
21009
21010 # Create an old-style archive from a shared archive.
21011 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21012
21013 # Create a temporary old-style archive to link instead of a shared archive.
21014 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21015
21016 # Commands used to build a shared archive.
21017 archive_cmds=$lt_archive_cmds_CXX
21018 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21019
21020 # Commands used to build a loadable module if different from building
21021 # a shared archive.
21022 module_cmds=$lt_module_cmds_CXX
21023 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21024
21025 # Whether we are building with GNU ld or not.
21026 with_gnu_ld=$lt_with_gnu_ld_CXX
21027
21028 # Flag that allows shared libraries with undefined symbols to be built.
21029 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21030
21031 # Flag that enforces no undefined symbols.
21032 no_undefined_flag=$lt_no_undefined_flag_CXX
21033
21034 # Flag to hardcode \$libdir into a binary during linking.
21035 # This must work even if \$libdir does not exist
21036 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21037
21038 # If ld is used when linking, flag to hardcode \$libdir into a binary
21039 # during linking. This must work even if \$libdir does not exist.
21040 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21041
21042 # Whether we need a single "-rpath" flag with a separated argument.
21043 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21044
21045 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21046 # DIR into the resulting binary.
21047 hardcode_direct=$hardcode_direct_CXX
21048
21049 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21050 # DIR into the resulting binary and the resulting library dependency is
21051 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21052 # library is relocated.
21053 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21054
21055 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21056 # into the resulting binary.
21057 hardcode_minus_L=$hardcode_minus_L_CXX
21058
21059 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21060 # into the resulting binary.
21061 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21062
21063 # Set to "yes" if building a shared library automatically hardcodes DIR
21064 # into the library and all subsequent libraries and executables linked
21065 # against it.
21066 hardcode_automatic=$hardcode_automatic_CXX
21067
21068 # Set to yes if linker adds runtime paths of dependent libraries
21069 # to runtime path list.
21070 inherit_rpath=$inherit_rpath_CXX
21071
21072 # Whether libtool must link a program against all its dependency libraries.
21073 link_all_deplibs=$link_all_deplibs_CXX
21074
21075 # Fix the shell variable \$srcfile for the compiler.
21076 fix_srcfile_path=$lt_fix_srcfile_path_CXX
21077
21078 # Set to "yes" if exported symbols are required.
21079 always_export_symbols=$always_export_symbols_CXX
21080
21081 # The commands to list exported symbols.
21082 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21083
21084 # Symbols that should not be listed in the preloaded symbols.
21085 exclude_expsyms=$lt_exclude_expsyms_CXX
21086
21087 # Symbols that must always be exported.
21088 include_expsyms=$lt_include_expsyms_CXX
21089
21090 # Commands necessary for linking programs (against libraries) with templates.
21091 prelink_cmds=$lt_prelink_cmds_CXX
21092
21093 # Specify filename containing input files.
21094 file_list_spec=$lt_file_list_spec_CXX
21095
21096 # How to hardcode a shared library path into an executable.
21097 hardcode_action=$hardcode_action_CXX
21098
21099 # The directories searched by this compiler when creating a shared library.
21100 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21101
21102 # Dependencies to place before and after the objects being linked to
21103 # create a shared library.
21104 predep_objects=$lt_predep_objects_CXX
21105 postdep_objects=$lt_postdep_objects_CXX
21106 predeps=$lt_predeps_CXX
21107 postdeps=$lt_postdeps_CXX
21108
21109 # The library search path used internally by the compiler when linking
21110 # a shared library.
21111 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21112
21113 # ### END LIBTOOL TAG CONFIG: CXX
21114 _LT_EOF
21115
21116 ;;
21117
21118 esac
21119 done # for ac_tag
21120
21121
21122 as_fn_exit 0
21123 _ACEOF
21124 ac_clean_files=$ac_clean_files_save
21125
21126 test $ac_write_fail = 0 ||
21127 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21128
21129
21130 # configure is writing to config.log, and then calls config.status.
21131 # config.status does its own redirection, appending to config.log.
21132 # Unfortunately, on DOS this fails, as config.log is still kept open
21133 # by configure, so config.status won't be able to write to it; its
21134 # output is simply discarded. So we exec the FD to /dev/null,
21135 # effectively closing config.log, so it can be properly (re)opened and
21136 # appended to by config.status. When coming back to configure, we
21137 # need to make the FD available again.
21138 if test "$no_create" != yes; then
21139 ac_cs_success=:
21140 ac_config_status_args=
21141 test "$silent" = yes &&
21142 ac_config_status_args="$ac_config_status_args --quiet"
21143 exec 5>/dev/null
21144 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21145 exec 5>>config.log
21146 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21147 # would make configure fail if this is the last instruction.
21148 $ac_cs_success || as_fn_exit 1
21149 fi
21150 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21152 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21153 fi
21154
21155