Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # 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 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=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370 fi
371 $as_echo "$as_me: error: $1" >&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, 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=
700 PACKAGE_TARNAME=
701 PACKAGE_VERSION=
702 PACKAGE_STRING=
703 PACKAGE_BUGREPORT=
704 PACKAGE_URL=
705
706 ac_unique_file="Makefile.am"
707 # Factoring default headers for most tests.
708 ac_includes_default="\
709 #include <stdio.h>
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
712 #endif
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
715 #endif
716 #ifdef STDC_HEADERS
717 # include <stdlib.h>
718 # include <stddef.h>
719 #else
720 # ifdef HAVE_STDLIB_H
721 # include <stdlib.h>
722 # endif
723 #endif
724 #ifdef HAVE_STRING_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726 # include <memory.h>
727 # endif
728 # include <string.h>
729 #endif
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
732 #endif
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
735 #endif
736 #ifdef HAVE_STDINT_H
737 # include <stdint.h>
738 #endif
739 #ifdef HAVE_UNISTD_H
740 # include <unistd.h>
741 #endif"
742
743 ac_subst_vars='am__EXEEXT_FALSE
744 am__EXEEXT_TRUE
745 LTLIBOBJS
746 LIBOBJS
747 lt_age
748 lt_revision
749 lt_major
750 LIBRAW1394_LIBS
751 LIBRAW1394_CFLAGS
752 PKG_CONFIG
753 CPP
754 OTOOL64
755 OTOOL
756 LIPO
757 NMEDIT
758 DSYMUTIL
759 lt_ECHO
760 RANLIB
761 AR
762 OBJDUMP
763 LN_S
764 NM
765 ac_ct_DUMPBIN
766 DUMPBIN
767 LD
768 FGREP
769 EGREP
770 GREP
771 SED
772 host_os
773 host_vendor
774 host_cpu
775 host
776 build_os
777 build_vendor
778 build_cpu
779 build
780 LIBTOOL
781 am__fastdepCC_FALSE
782 am__fastdepCC_TRUE
783 CCDEPMODE
784 AMDEPBACKSLASH
785 AMDEP_FALSE
786 AMDEP_TRUE
787 am__quote
788 am__include
789 DEPDIR
790 OBJEXT
791 EXEEXT
792 ac_ct_CC
793 CPPFLAGS
794 LDFLAGS
795 CFLAGS
796 CC
797 MAINT
798 MAINTAINER_MODE_FALSE
799 MAINTAINER_MODE_TRUE
800 am__untar
801 am__tar
802 AMTAR
803 am__leading_dot
804 SET_MAKE
805 AWK
806 mkdir_p
807 MKDIR_P
808 INSTALL_STRIP_PROGRAM
809 STRIP
810 install_sh
811 MAKEINFO
812 AUTOHEADER
813 AUTOMAKE
814 AUTOCONF
815 ACLOCAL
816 VERSION
817 PACKAGE
818 CYGPATH_W
819 am__isrc
820 INSTALL_DATA
821 INSTALL_SCRIPT
822 INSTALL_PROGRAM
823 target_alias
824 host_alias
825 build_alias
826 LIBS
827 ECHO_T
828 ECHO_N
829 ECHO_C
830 DEFS
831 mandir
832 localedir
833 libdir
834 psdir
835 pdfdir
836 dvidir
837 htmldir
838 infodir
839 docdir
840 oldincludedir
841 includedir
842 localstatedir
843 sharedstatedir
844 sysconfdir
845 datadir
846 datarootdir
847 libexecdir
848 sbindir
849 bindir
850 program_transform_name
851 prefix
852 exec_prefix
853 PACKAGE_URL
854 PACKAGE_BUGREPORT
855 PACKAGE_STRING
856 PACKAGE_VERSION
857 PACKAGE_TARNAME
858 PACKAGE_NAME
859 PATH_SEPARATOR
860 SHELL'
861 ac_subst_files=''
862 ac_user_opts='
863 enable_option_checking
864 enable_maintainer_mode
865 enable_dependency_tracking
866 enable_shared
867 enable_static
868 with_pic
869 enable_fast_install
870 with_gnu_ld
871 enable_libtool_lock
872 '
873 ac_precious_vars='build_alias
874 host_alias
875 target_alias
876 CC
877 CFLAGS
878 LDFLAGS
879 LIBS
880 CPPFLAGS
881 CPP
882 PKG_CONFIG
883 LIBRAW1394_CFLAGS
884 LIBRAW1394_LIBS'
885
886
887 # Initialize some variables set by options.
888 ac_init_help=
889 ac_init_version=false
890 ac_unrecognized_opts=
891 ac_unrecognized_sep=
892 # The variables have the same names as the options, with
893 # dashes changed to underlines.
894 cache_file=/dev/null
895 exec_prefix=NONE
896 no_create=
897 no_recursion=
898 prefix=NONE
899 program_prefix=NONE
900 program_suffix=NONE
901 program_transform_name=s,x,x,
902 silent=
903 site=
904 srcdir=
905 verbose=
906 x_includes=NONE
907 x_libraries=NONE
908
909 # Installation directory options.
910 # These are left unexpanded so users can "make install exec_prefix=/foo"
911 # and all the variables that are supposed to be based on exec_prefix
912 # by default will actually change.
913 # Use braces instead of parens because sh, perl, etc. also accept them.
914 # (The list follows the same order as the GNU Coding Standards.)
915 bindir='${exec_prefix}/bin'
916 sbindir='${exec_prefix}/sbin'
917 libexecdir='${exec_prefix}/libexec'
918 datarootdir='${prefix}/share'
919 datadir='${datarootdir}'
920 sysconfdir='${prefix}/etc'
921 sharedstatedir='${prefix}/com'
922 localstatedir='${prefix}/var'
923 includedir='${prefix}/include'
924 oldincludedir='/usr/include'
925 docdir='${datarootdir}/doc/${PACKAGE}'
926 infodir='${datarootdir}/info'
927 htmldir='${docdir}'
928 dvidir='${docdir}'
929 pdfdir='${docdir}'
930 psdir='${docdir}'
931 libdir='${exec_prefix}/lib'
932 localedir='${datarootdir}/locale'
933 mandir='${datarootdir}/man'
934
935 ac_prev=
936 ac_dashdash=
937 for ac_option
938 do
939 # If the previous option needs an argument, assign it.
940 if test -n "$ac_prev"; then
941 eval $ac_prev=\$ac_option
942 ac_prev=
943 continue
944 fi
945
946 case $ac_option in
947 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
948 *) ac_optarg=yes ;;
949 esac
950
951 # Accept the important Cygnus configure options, so we can diagnose typos.
952
953 case $ac_dashdash$ac_option in
954 --)
955 ac_dashdash=yes ;;
956
957 -bindir | --bindir | --bindi | --bind | --bin | --bi)
958 ac_prev=bindir ;;
959 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
960 bindir=$ac_optarg ;;
961
962 -build | --build | --buil | --bui | --bu)
963 ac_prev=build_alias ;;
964 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
965 build_alias=$ac_optarg ;;
966
967 -cache-file | --cache-file | --cache-fil | --cache-fi \
968 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
969 ac_prev=cache_file ;;
970 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
971 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
972 cache_file=$ac_optarg ;;
973
974 --config-cache | -C)
975 cache_file=config.cache ;;
976
977 -datadir | --datadir | --datadi | --datad)
978 ac_prev=datadir ;;
979 -datadir=* | --datadir=* | --datadi=* | --datad=*)
980 datadir=$ac_optarg ;;
981
982 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
983 | --dataroo | --dataro | --datar)
984 ac_prev=datarootdir ;;
985 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
986 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
987 datarootdir=$ac_optarg ;;
988
989 -disable-* | --disable-*)
990 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993 as_fn_error "invalid feature name: $ac_useropt"
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
997 *"
998 "enable_$ac_useropt"
999 "*) ;;
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1002 esac
1003 eval enable_$ac_useropt=no ;;
1004
1005 -docdir | --docdir | --docdi | --doc | --do)
1006 ac_prev=docdir ;;
1007 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1008 docdir=$ac_optarg ;;
1009
1010 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011 ac_prev=dvidir ;;
1012 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1013 dvidir=$ac_optarg ;;
1014
1015 -enable-* | --enable-*)
1016 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1019 as_fn_error "invalid feature name: $ac_useropt"
1020 ac_useropt_orig=$ac_useropt
1021 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022 case $ac_user_opts in
1023 *"
1024 "enable_$ac_useropt"
1025 "*) ;;
1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1027 ac_unrecognized_sep=', ';;
1028 esac
1029 eval enable_$ac_useropt=\$ac_optarg ;;
1030
1031 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1032 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1033 | --exec | --exe | --ex)
1034 ac_prev=exec_prefix ;;
1035 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1036 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1037 | --exec=* | --exe=* | --ex=*)
1038 exec_prefix=$ac_optarg ;;
1039
1040 -gas | --gas | --ga | --g)
1041 # Obsolete; use --with-gas.
1042 with_gas=yes ;;
1043
1044 -help | --help | --hel | --he | -h)
1045 ac_init_help=long ;;
1046 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1047 ac_init_help=recursive ;;
1048 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1049 ac_init_help=short ;;
1050
1051 -host | --host | --hos | --ho)
1052 ac_prev=host_alias ;;
1053 -host=* | --host=* | --hos=* | --ho=*)
1054 host_alias=$ac_optarg ;;
1055
1056 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1057 ac_prev=htmldir ;;
1058 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1059 | --ht=*)
1060 htmldir=$ac_optarg ;;
1061
1062 -includedir | --includedir | --includedi | --included | --include \
1063 | --includ | --inclu | --incl | --inc)
1064 ac_prev=includedir ;;
1065 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1066 | --includ=* | --inclu=* | --incl=* | --inc=*)
1067 includedir=$ac_optarg ;;
1068
1069 -infodir | --infodir | --infodi | --infod | --info | --inf)
1070 ac_prev=infodir ;;
1071 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1072 infodir=$ac_optarg ;;
1073
1074 -libdir | --libdir | --libdi | --libd)
1075 ac_prev=libdir ;;
1076 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1077 libdir=$ac_optarg ;;
1078
1079 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1080 | --libexe | --libex | --libe)
1081 ac_prev=libexecdir ;;
1082 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1083 | --libexe=* | --libex=* | --libe=*)
1084 libexecdir=$ac_optarg ;;
1085
1086 -localedir | --localedir | --localedi | --localed | --locale)
1087 ac_prev=localedir ;;
1088 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1089 localedir=$ac_optarg ;;
1090
1091 -localstatedir | --localstatedir | --localstatedi | --localstated \
1092 | --localstate | --localstat | --localsta | --localst | --locals)
1093 ac_prev=localstatedir ;;
1094 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1095 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1096 localstatedir=$ac_optarg ;;
1097
1098 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1099 ac_prev=mandir ;;
1100 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1101 mandir=$ac_optarg ;;
1102
1103 -nfp | --nfp | --nf)
1104 # Obsolete; use --without-fp.
1105 with_fp=no ;;
1106
1107 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1108 | --no-cr | --no-c | -n)
1109 no_create=yes ;;
1110
1111 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1112 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1113 no_recursion=yes ;;
1114
1115 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1116 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1117 | --oldin | --oldi | --old | --ol | --o)
1118 ac_prev=oldincludedir ;;
1119 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1120 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1121 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1122 oldincludedir=$ac_optarg ;;
1123
1124 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1125 ac_prev=prefix ;;
1126 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1127 prefix=$ac_optarg ;;
1128
1129 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1130 | --program-pre | --program-pr | --program-p)
1131 ac_prev=program_prefix ;;
1132 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1133 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1134 program_prefix=$ac_optarg ;;
1135
1136 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1137 | --program-suf | --program-su | --program-s)
1138 ac_prev=program_suffix ;;
1139 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1140 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1141 program_suffix=$ac_optarg ;;
1142
1143 -program-transform-name | --program-transform-name \
1144 | --program-transform-nam | --program-transform-na \
1145 | --program-transform-n | --program-transform- \
1146 | --program-transform | --program-transfor \
1147 | --program-transfo | --program-transf \
1148 | --program-trans | --program-tran \
1149 | --progr-tra | --program-tr | --program-t)
1150 ac_prev=program_transform_name ;;
1151 -program-transform-name=* | --program-transform-name=* \
1152 | --program-transform-nam=* | --program-transform-na=* \
1153 | --program-transform-n=* | --program-transform-=* \
1154 | --program-transform=* | --program-transfor=* \
1155 | --program-transfo=* | --program-transf=* \
1156 | --program-trans=* | --program-tran=* \
1157 | --progr-tra=* | --program-tr=* | --program-t=*)
1158 program_transform_name=$ac_optarg ;;
1159
1160 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1161 ac_prev=pdfdir ;;
1162 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1163 pdfdir=$ac_optarg ;;
1164
1165 -psdir | --psdir | --psdi | --psd | --ps)
1166 ac_prev=psdir ;;
1167 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1168 psdir=$ac_optarg ;;
1169
1170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1171 | -silent | --silent | --silen | --sile | --sil)
1172 silent=yes ;;
1173
1174 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1175 ac_prev=sbindir ;;
1176 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1177 | --sbi=* | --sb=*)
1178 sbindir=$ac_optarg ;;
1179
1180 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1181 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1182 | --sharedst | --shareds | --shared | --share | --shar \
1183 | --sha | --sh)
1184 ac_prev=sharedstatedir ;;
1185 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1186 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1187 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1188 | --sha=* | --sh=*)
1189 sharedstatedir=$ac_optarg ;;
1190
1191 -site | --site | --sit)
1192 ac_prev=site ;;
1193 -site=* | --site=* | --sit=*)
1194 site=$ac_optarg ;;
1195
1196 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1197 ac_prev=srcdir ;;
1198 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1199 srcdir=$ac_optarg ;;
1200
1201 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1202 | --syscon | --sysco | --sysc | --sys | --sy)
1203 ac_prev=sysconfdir ;;
1204 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1205 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1206 sysconfdir=$ac_optarg ;;
1207
1208 -target | --target | --targe | --targ | --tar | --ta | --t)
1209 ac_prev=target_alias ;;
1210 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1211 target_alias=$ac_optarg ;;
1212
1213 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1214 verbose=yes ;;
1215
1216 -version | --version | --versio | --versi | --vers | -V)
1217 ac_init_version=: ;;
1218
1219 -with-* | --with-*)
1220 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223 as_fn_error "invalid package name: $ac_useropt"
1224 ac_useropt_orig=$ac_useropt
1225 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226 case $ac_user_opts in
1227 *"
1228 "with_$ac_useropt"
1229 "*) ;;
1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1231 ac_unrecognized_sep=', ';;
1232 esac
1233 eval with_$ac_useropt=\$ac_optarg ;;
1234
1235 -without-* | --without-*)
1236 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1239 as_fn_error "invalid package name: $ac_useropt"
1240 ac_useropt_orig=$ac_useropt
1241 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1242 case $ac_user_opts in
1243 *"
1244 "with_$ac_useropt"
1245 "*) ;;
1246 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1247 ac_unrecognized_sep=', ';;
1248 esac
1249 eval with_$ac_useropt=no ;;
1250
1251 --x)
1252 # Obsolete; use --with-x.
1253 with_x=yes ;;
1254
1255 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1256 | --x-incl | --x-inc | --x-in | --x-i)
1257 ac_prev=x_includes ;;
1258 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1259 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1260 x_includes=$ac_optarg ;;
1261
1262 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1263 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1264 ac_prev=x_libraries ;;
1265 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1266 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1267 x_libraries=$ac_optarg ;;
1268
1269 -*) as_fn_error "unrecognized option: \`$ac_option'
1270 Try \`$0 --help' for more information."
1271 ;;
1272
1273 *=*)
1274 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1275 # Reject names that are not valid shell variable names.
1276 case $ac_envvar in #(
1277 '' | [0-9]* | *[!_$as_cr_alnum]* )
1278 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1279 esac
1280 eval $ac_envvar=\$ac_optarg
1281 export $ac_envvar ;;
1282
1283 *)
1284 # FIXME: should be removed in autoconf 3.0.
1285 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1286 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1287 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1288 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1289 ;;
1290
1291 esac
1292 done
1293
1294 if test -n "$ac_prev"; then
1295 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1296 as_fn_error "missing argument to $ac_option"
1297 fi
1298
1299 if test -n "$ac_unrecognized_opts"; then
1300 case $enable_option_checking in
1301 no) ;;
1302 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1303 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1304 esac
1305 fi
1306
1307 # Check all directory arguments for consistency.
1308 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1309 datadir sysconfdir sharedstatedir localstatedir includedir \
1310 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1311 libdir localedir mandir
1312 do
1313 eval ac_val=\$$ac_var
1314 # Remove trailing slashes.
1315 case $ac_val in
1316 */ )
1317 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1318 eval $ac_var=\$ac_val;;
1319 esac
1320 # Be sure to have absolute directory names.
1321 case $ac_val in
1322 [\\/$]* | ?:[\\/]* ) continue;;
1323 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1324 esac
1325 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1326 done
1327
1328 # There might be people who depend on the old broken behavior: `$host'
1329 # used to hold the argument of --host etc.
1330 # FIXME: To remove some day.
1331 build=$build_alias
1332 host=$host_alias
1333 target=$target_alias
1334
1335 # FIXME: To remove some day.
1336 if test "x$host_alias" != x; then
1337 if test "x$build_alias" = x; then
1338 cross_compiling=maybe
1339 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1340 If a cross compiler is detected then cross compile mode will be used." >&2
1341 elif test "x$build_alias" != "x$host_alias"; then
1342 cross_compiling=yes
1343 fi
1344 fi
1345
1346 ac_tool_prefix=
1347 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1348
1349 test "$silent" = yes && exec 6>/dev/null
1350
1351
1352 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1353 ac_ls_di=`ls -di .` &&
1354 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1355 as_fn_error "working directory cannot be determined"
1356 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1357 as_fn_error "pwd does not report name of working directory"
1358
1359
1360 # Find the source files, if location was not specified.
1361 if test -z "$srcdir"; then
1362 ac_srcdir_defaulted=yes
1363 # Try the directory containing this script, then the parent directory.
1364 ac_confdir=`$as_dirname -- "$as_myself" ||
1365 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1366 X"$as_myself" : 'X\(//\)[^/]' \| \
1367 X"$as_myself" : 'X\(//\)$' \| \
1368 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1369 $as_echo X"$as_myself" |
1370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1371 s//\1/
1372 q
1373 }
1374 /^X\(\/\/\)[^/].*/{
1375 s//\1/
1376 q
1377 }
1378 /^X\(\/\/\)$/{
1379 s//\1/
1380 q
1381 }
1382 /^X\(\/\).*/{
1383 s//\1/
1384 q
1385 }
1386 s/.*/./; q'`
1387 srcdir=$ac_confdir
1388 if test ! -r "$srcdir/$ac_unique_file"; then
1389 srcdir=..
1390 fi
1391 else
1392 ac_srcdir_defaulted=no
1393 fi
1394 if test ! -r "$srcdir/$ac_unique_file"; then
1395 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1396 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1397 fi
1398 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1399 ac_abs_confdir=`(
1400 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1401 pwd)`
1402 # When building in place, set srcdir=.
1403 if test "$ac_abs_confdir" = "$ac_pwd"; then
1404 srcdir=.
1405 fi
1406 # Remove unnecessary trailing slashes from srcdir.
1407 # Double slashes in file names in object file debugging info
1408 # mess up M-x gdb in Emacs.
1409 case $srcdir in
1410 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1411 esac
1412 for ac_var in $ac_precious_vars; do
1413 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1414 eval ac_env_${ac_var}_value=\$${ac_var}
1415 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1416 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1417 done
1418
1419 #
1420 # Report the --help message.
1421 #
1422 if test "$ac_init_help" = "long"; then
1423 # Omit some internal or obsolete options to make the list less imposing.
1424 # This message is too long to be a string in the A/UX 3.1 sh.
1425 cat <<_ACEOF
1426 \`configure' configures this package to adapt to many kinds of systems.
1427
1428 Usage: $0 [OPTION]... [VAR=VALUE]...
1429
1430 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1431 VAR=VALUE. See below for descriptions of some of the useful variables.
1432
1433 Defaults for the options are specified in brackets.
1434
1435 Configuration:
1436 -h, --help display this help and exit
1437 --help=short display options specific to this package
1438 --help=recursive display the short help of all the included packages
1439 -V, --version display version information and exit
1440 -q, --quiet, --silent do not print \`checking...' messages
1441 --cache-file=FILE cache test results in FILE [disabled]
1442 -C, --config-cache alias for \`--cache-file=config.cache'
1443 -n, --no-create do not create output files
1444 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1445
1446 Installation directories:
1447 --prefix=PREFIX install architecture-independent files in PREFIX
1448 [$ac_default_prefix]
1449 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1450 [PREFIX]
1451
1452 By default, \`make install' will install all the files in
1453 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1454 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1455 for instance \`--prefix=\$HOME'.
1456
1457 For better control, use the options below.
1458
1459 Fine tuning of the installation directories:
1460 --bindir=DIR user executables [EPREFIX/bin]
1461 --sbindir=DIR system admin executables [EPREFIX/sbin]
1462 --libexecdir=DIR program executables [EPREFIX/libexec]
1463 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1464 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1465 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1466 --libdir=DIR object code libraries [EPREFIX/lib]
1467 --includedir=DIR C header files [PREFIX/include]
1468 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1469 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1470 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1471 --infodir=DIR info documentation [DATAROOTDIR/info]
1472 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1473 --mandir=DIR man documentation [DATAROOTDIR/man]
1474 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1475 --htmldir=DIR html documentation [DOCDIR]
1476 --dvidir=DIR dvi documentation [DOCDIR]
1477 --pdfdir=DIR pdf documentation [DOCDIR]
1478 --psdir=DIR ps documentation [DOCDIR]
1479 _ACEOF
1480
1481 cat <<\_ACEOF
1482
1483 Program names:
1484 --program-prefix=PREFIX prepend PREFIX to installed program names
1485 --program-suffix=SUFFIX append SUFFIX to installed program names
1486 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1487
1488 System types:
1489 --build=BUILD configure for building on BUILD [guessed]
1490 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1491 _ACEOF
1492 fi
1493
1494 if test -n "$ac_init_help"; then
1495
1496 cat <<\_ACEOF
1497
1498 Optional Features:
1499 --disable-option-checking ignore unrecognized --enable/--with options
1500 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1501 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1502 --enable-maintainer-mode enable make rules and dependencies not useful
1503 (and sometimes confusing) to the casual installer
1504 --disable-dependency-tracking speeds up one-time build
1505 --enable-dependency-tracking do not reject slow dependency extractors
1506 --enable-shared[=PKGS] build shared libraries [default=yes]
1507 --enable-static[=PKGS] build static libraries [default=yes]
1508 --enable-fast-install[=PKGS]
1509 optimize for fast installation [default=yes]
1510 --disable-libtool-lock avoid locking (might break parallel builds)
1511
1512 Optional Packages:
1513 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1514 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1515 --with-pic try to use only PIC/non-PIC objects [default=use
1516 both]
1517 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1518
1519 Some influential environment variables:
1520 CC C compiler command
1521 CFLAGS C compiler flags
1522 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1523 nonstandard directory <lib dir>
1524 LIBS libraries to pass to the linker, e.g. -l<library>
1525 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1526 you have headers in a nonstandard directory <include dir>
1527 CPP C preprocessor
1528 PKG_CONFIG path to pkg-config utility
1529 LIBRAW1394_CFLAGS
1530 C compiler flags for LIBRAW1394, overriding pkg-config
1531 LIBRAW1394_LIBS
1532 linker flags for LIBRAW1394, overriding pkg-config
1533
1534 Use these variables to override the choices made by `configure' or to help
1535 it to find libraries and programs with nonstandard names/locations.
1536
1537 Report bugs to the package provider.
1538 _ACEOF
1539 ac_status=$?
1540 fi
1541
1542 if test "$ac_init_help" = "recursive"; then
1543 # If there are subdirs, report their specific --help.
1544 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1545 test -d "$ac_dir" ||
1546 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1547 continue
1548 ac_builddir=.
1549
1550 case "$ac_dir" in
1551 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552 *)
1553 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1554 # A ".." for each directory in $ac_dir_suffix.
1555 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1556 case $ac_top_builddir_sub in
1557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1559 esac ;;
1560 esac
1561 ac_abs_top_builddir=$ac_pwd
1562 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1563 # for backward compatibility:
1564 ac_top_builddir=$ac_top_build_prefix
1565
1566 case $srcdir in
1567 .) # We are building in place.
1568 ac_srcdir=.
1569 ac_top_srcdir=$ac_top_builddir_sub
1570 ac_abs_top_srcdir=$ac_pwd ;;
1571 [\\/]* | ?:[\\/]* ) # Absolute name.
1572 ac_srcdir=$srcdir$ac_dir_suffix;
1573 ac_top_srcdir=$srcdir
1574 ac_abs_top_srcdir=$srcdir ;;
1575 *) # Relative name.
1576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1577 ac_top_srcdir=$ac_top_build_prefix$srcdir
1578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1579 esac
1580 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1581
1582 cd "$ac_dir" || { ac_status=$?; continue; }
1583 # Check for guested configure.
1584 if test -f "$ac_srcdir/configure.gnu"; then
1585 echo &&
1586 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1587 elif test -f "$ac_srcdir/configure"; then
1588 echo &&
1589 $SHELL "$ac_srcdir/configure" --help=recursive
1590 else
1591 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1592 fi || ac_status=$?
1593 cd "$ac_pwd" || { ac_status=$?; break; }
1594 done
1595 fi
1596
1597 test -n "$ac_init_help" && exit $ac_status
1598 if $ac_init_version; then
1599 cat <<\_ACEOF
1600 configure
1601 generated by GNU Autoconf 2.65
1602
1603 Copyright (C) 2009 Free Software Foundation, Inc.
1604 This configure script is free software; the Free Software Foundation
1605 gives unlimited permission to copy, distribute and modify it.
1606 _ACEOF
1607 exit
1608 fi
1609
1610 ## ------------------------ ##
1611 ## Autoconf initialization. ##
1612 ## ------------------------ ##
1613
1614 # ac_fn_c_try_compile LINENO
1615 # --------------------------
1616 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1617 ac_fn_c_try_compile ()
1618 {
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 rm -f conftest.$ac_objext
1621 if { { ac_try="$ac_compile"
1622 case "(($ac_try" in
1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624 *) ac_try_echo=$ac_try;;
1625 esac
1626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627 $as_echo "$ac_try_echo"; } >&5
1628 (eval "$ac_compile") 2>conftest.err
1629 ac_status=$?
1630 if test -s conftest.err; then
1631 grep -v '^ *+' conftest.err >conftest.er1
1632 cat conftest.er1 >&5
1633 mv -f conftest.er1 conftest.err
1634 fi
1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636 test $ac_status = 0; } && {
1637 test -z "$ac_c_werror_flag" ||
1638 test ! -s conftest.err
1639 } && test -s conftest.$ac_objext; then :
1640 ac_retval=0
1641 else
1642 $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1644
1645 ac_retval=1
1646 fi
1647 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1648 as_fn_set_status $ac_retval
1649
1650 } # ac_fn_c_try_compile
1651
1652 # ac_fn_c_try_link LINENO
1653 # -----------------------
1654 # Try to link conftest.$ac_ext, and return whether this succeeded.
1655 ac_fn_c_try_link ()
1656 {
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 rm -f conftest.$ac_objext conftest$ac_exeext
1659 if { { ac_try="$ac_link"
1660 case "(($ac_try" in
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1663 esac
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_link") 2>conftest.err
1667 ac_status=$?
1668 if test -s conftest.err; then
1669 grep -v '^ *+' conftest.err >conftest.er1
1670 cat conftest.er1 >&5
1671 mv -f conftest.er1 conftest.err
1672 fi
1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; } && {
1675 test -z "$ac_c_werror_flag" ||
1676 test ! -s conftest.err
1677 } && test -s conftest$ac_exeext && {
1678 test "$cross_compiling" = yes ||
1679 $as_test_x conftest$ac_exeext
1680 }; then :
1681 ac_retval=0
1682 else
1683 $as_echo "$as_me: failed program was:" >&5
1684 sed 's/^/| /' conftest.$ac_ext >&5
1685
1686 ac_retval=1
1687 fi
1688 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1689 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1690 # interfere with the next link command; also delete a directory that is
1691 # left behind by Apple's compiler. We do this before executing the actions.
1692 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1693 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1694 as_fn_set_status $ac_retval
1695
1696 } # ac_fn_c_try_link
1697
1698 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1699 # -------------------------------------------------------
1700 # Tests whether HEADER exists and can be compiled using the include files in
1701 # INCLUDES, setting the cache variable VAR accordingly.
1702 ac_fn_c_check_header_compile ()
1703 {
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1706 $as_echo_n "checking for $2... " >&6; }
1707 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1708 $as_echo_n "(cached) " >&6
1709 else
1710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1711 /* end confdefs.h. */
1712 $4
1713 #include <$2>
1714 _ACEOF
1715 if ac_fn_c_try_compile "$LINENO"; then :
1716 eval "$3=yes"
1717 else
1718 eval "$3=no"
1719 fi
1720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1721 fi
1722 eval ac_res=\$$3
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1724 $as_echo "$ac_res" >&6; }
1725 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1726
1727 } # ac_fn_c_check_header_compile
1728
1729 # ac_fn_c_try_cpp LINENO
1730 # ----------------------
1731 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1732 ac_fn_c_try_cpp ()
1733 {
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 if { { ac_try="$ac_cpp conftest.$ac_ext"
1736 case "(($ac_try" in
1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738 *) ac_try_echo=$ac_try;;
1739 esac
1740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741 $as_echo "$ac_try_echo"; } >&5
1742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1743 ac_status=$?
1744 if test -s conftest.err; then
1745 grep -v '^ *+' conftest.err >conftest.er1
1746 cat conftest.er1 >&5
1747 mv -f conftest.er1 conftest.err
1748 fi
1749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750 test $ac_status = 0; } >/dev/null && {
1751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1752 test ! -s conftest.err
1753 }; then :
1754 ac_retval=0
1755 else
1756 $as_echo "$as_me: failed program was:" >&5
1757 sed 's/^/| /' conftest.$ac_ext >&5
1758
1759 ac_retval=1
1760 fi
1761 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1762 as_fn_set_status $ac_retval
1763
1764 } # ac_fn_c_try_cpp
1765
1766 # ac_fn_c_try_run LINENO
1767 # ----------------------
1768 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1769 # that executables *can* be run.
1770 ac_fn_c_try_run ()
1771 {
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 if { { ac_try="$ac_link"
1774 case "(($ac_try" in
1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776 *) ac_try_echo=$ac_try;;
1777 esac
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780 (eval "$ac_link") 2>&5
1781 ac_status=$?
1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1784 { { case "(($ac_try" in
1785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786 *) ac_try_echo=$ac_try;;
1787 esac
1788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789 $as_echo "$ac_try_echo"; } >&5
1790 (eval "$ac_try") 2>&5
1791 ac_status=$?
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; }; }; then :
1794 ac_retval=0
1795 else
1796 $as_echo "$as_me: program exited with status $ac_status" >&5
1797 $as_echo "$as_me: failed program was:" >&5
1798 sed 's/^/| /' conftest.$ac_ext >&5
1799
1800 ac_retval=$ac_status
1801 fi
1802 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1803 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1804 as_fn_set_status $ac_retval
1805
1806 } # ac_fn_c_try_run
1807
1808 # ac_fn_c_check_func LINENO FUNC VAR
1809 # ----------------------------------
1810 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1811 ac_fn_c_check_func ()
1812 {
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815 $as_echo_n "checking for $2... " >&6; }
1816 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1817 $as_echo_n "(cached) " >&6
1818 else
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1821 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1823 #define $2 innocuous_$2
1824
1825 /* System header to define __stub macros and hopefully few prototypes,
1826 which can conflict with char $2 (); below.
1827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1828 <limits.h> exists even on freestanding compilers. */
1829
1830 #ifdef __STDC__
1831 # include <limits.h>
1832 #else
1833 # include <assert.h>
1834 #endif
1835
1836 #undef $2
1837
1838 /* Override any GCC internal prototype to avoid an error.
1839 Use char because int might match the return type of a GCC
1840 builtin and then its argument prototype would still apply. */
1841 #ifdef __cplusplus
1842 extern "C"
1843 #endif
1844 char $2 ();
1845 /* The GNU C library defines this for functions which it implements
1846 to always fail with ENOSYS. Some functions are actually named
1847 something starting with __ and the normal name is an alias. */
1848 #if defined __stub_$2 || defined __stub___$2
1849 choke me
1850 #endif
1851
1852 int
1853 main ()
1854 {
1855 return $2 ();
1856 ;
1857 return 0;
1858 }
1859 _ACEOF
1860 if ac_fn_c_try_link "$LINENO"; then :
1861 eval "$3=yes"
1862 else
1863 eval "$3=no"
1864 fi
1865 rm -f core conftest.err conftest.$ac_objext \
1866 conftest$ac_exeext conftest.$ac_ext
1867 fi
1868 eval ac_res=\$$3
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870 $as_echo "$ac_res" >&6; }
1871 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1872
1873 } # ac_fn_c_check_func
1874
1875 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1876 # -------------------------------------------------------
1877 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1878 # the include files in INCLUDES and setting the cache variable VAR
1879 # accordingly.
1880 ac_fn_c_check_header_mongrel ()
1881 {
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885 $as_echo_n "checking for $2... " >&6; }
1886 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1887 $as_echo_n "(cached) " >&6
1888 fi
1889 eval ac_res=\$$3
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1892 else
1893 # Is the header compilable?
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1895 $as_echo_n "checking $2 usability... " >&6; }
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h. */
1898 $4
1899 #include <$2>
1900 _ACEOF
1901 if ac_fn_c_try_compile "$LINENO"; then :
1902 ac_header_compiler=yes
1903 else
1904 ac_header_compiler=no
1905 fi
1906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1908 $as_echo "$ac_header_compiler" >&6; }
1909
1910 # Is the header present?
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1912 $as_echo_n "checking $2 presence... " >&6; }
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h. */
1915 #include <$2>
1916 _ACEOF
1917 if ac_fn_c_try_cpp "$LINENO"; then :
1918 ac_header_preproc=yes
1919 else
1920 ac_header_preproc=no
1921 fi
1922 rm -f conftest.err conftest.$ac_ext
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1924 $as_echo "$ac_header_preproc" >&6; }
1925
1926 # So? What about this header?
1927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1928 yes:no: )
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1930 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1932 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1933 ;;
1934 no:yes:* )
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1936 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1938 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1940 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1942 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1944 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1945 ;;
1946 esac
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948 $as_echo_n "checking for $2... " >&6; }
1949 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1950 $as_echo_n "(cached) " >&6
1951 else
1952 eval "$3=\$ac_header_compiler"
1953 fi
1954 eval ac_res=\$$3
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957 fi
1958 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1959
1960 } # ac_fn_c_check_header_mongrel
1961 cat >config.log <<_ACEOF
1962 This file contains any messages produced by compilers while
1963 running configure, to aid debugging if configure makes a mistake.
1964
1965 It was created by $as_me, which was
1966 generated by GNU Autoconf 2.65. Invocation command line was
1967
1968 $ $0 $@
1969
1970 _ACEOF
1971 exec 5>>config.log
1972 {
1973 cat <<_ASUNAME
1974 ## --------- ##
1975 ## Platform. ##
1976 ## --------- ##
1977
1978 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1979 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1980 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1981 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1982 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1983
1984 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1985 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1986
1987 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1988 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1989 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1990 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1991 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1992 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1993 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1994
1995 _ASUNAME
1996
1997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998 for as_dir in $PATH
1999 do
2000 IFS=$as_save_IFS
2001 test -z "$as_dir" && as_dir=.
2002 $as_echo "PATH: $as_dir"
2003 done
2004 IFS=$as_save_IFS
2005
2006 } >&5
2007
2008 cat >&5 <<_ACEOF
2009
2010
2011 ## ----------- ##
2012 ## Core tests. ##
2013 ## ----------- ##
2014
2015 _ACEOF
2016
2017
2018 # Keep a trace of the command line.
2019 # Strip out --no-create and --no-recursion so they do not pile up.
2020 # Strip out --silent because we don't want to record it for future runs.
2021 # Also quote any args containing shell meta-characters.
2022 # Make two passes to allow for proper duplicate-argument suppression.
2023 ac_configure_args=
2024 ac_configure_args0=
2025 ac_configure_args1=
2026 ac_must_keep_next=false
2027 for ac_pass in 1 2
2028 do
2029 for ac_arg
2030 do
2031 case $ac_arg in
2032 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2033 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2034 | -silent | --silent | --silen | --sile | --sil)
2035 continue ;;
2036 *\'*)
2037 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2038 esac
2039 case $ac_pass in
2040 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2041 2)
2042 as_fn_append ac_configure_args1 " '$ac_arg'"
2043 if test $ac_must_keep_next = true; then
2044 ac_must_keep_next=false # Got value, back to normal.
2045 else
2046 case $ac_arg in
2047 *=* | --config-cache | -C | -disable-* | --disable-* \
2048 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2049 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2050 | -with-* | --with-* | -without-* | --without-* | --x)
2051 case "$ac_configure_args0 " in
2052 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2053 esac
2054 ;;
2055 -* ) ac_must_keep_next=true ;;
2056 esac
2057 fi
2058 as_fn_append ac_configure_args " '$ac_arg'"
2059 ;;
2060 esac
2061 done
2062 done
2063 { ac_configure_args0=; unset ac_configure_args0;}
2064 { ac_configure_args1=; unset ac_configure_args1;}
2065
2066 # When interrupted or exit'd, cleanup temporary files, and complete
2067 # config.log. We remove comments because anyway the quotes in there
2068 # would cause problems or look ugly.
2069 # WARNING: Use '\'' to represent an apostrophe within the trap.
2070 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2071 trap 'exit_status=$?
2072 # Save into config.log some information that might help in debugging.
2073 {
2074 echo
2075
2076 cat <<\_ASBOX
2077 ## ---------------- ##
2078 ## Cache variables. ##
2079 ## ---------------- ##
2080 _ASBOX
2081 echo
2082 # The following way of writing the cache mishandles newlines in values,
2083 (
2084 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2085 eval ac_val=\$$ac_var
2086 case $ac_val in #(
2087 *${as_nl}*)
2088 case $ac_var in #(
2089 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2090 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2091 esac
2092 case $ac_var in #(
2093 _ | IFS | as_nl) ;; #(
2094 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2095 *) { eval $ac_var=; unset $ac_var;} ;;
2096 esac ;;
2097 esac
2098 done
2099 (set) 2>&1 |
2100 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2101 *${as_nl}ac_space=\ *)
2102 sed -n \
2103 "s/'\''/'\''\\\\'\'''\''/g;
2104 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2105 ;; #(
2106 *)
2107 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2108 ;;
2109 esac |
2110 sort
2111 )
2112 echo
2113
2114 cat <<\_ASBOX
2115 ## ----------------- ##
2116 ## Output variables. ##
2117 ## ----------------- ##
2118 _ASBOX
2119 echo
2120 for ac_var in $ac_subst_vars
2121 do
2122 eval ac_val=\$$ac_var
2123 case $ac_val in
2124 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2125 esac
2126 $as_echo "$ac_var='\''$ac_val'\''"
2127 done | sort
2128 echo
2129
2130 if test -n "$ac_subst_files"; then
2131 cat <<\_ASBOX
2132 ## ------------------- ##
2133 ## File substitutions. ##
2134 ## ------------------- ##
2135 _ASBOX
2136 echo
2137 for ac_var in $ac_subst_files
2138 do
2139 eval ac_val=\$$ac_var
2140 case $ac_val in
2141 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2142 esac
2143 $as_echo "$ac_var='\''$ac_val'\''"
2144 done | sort
2145 echo
2146 fi
2147
2148 if test -s confdefs.h; then
2149 cat <<\_ASBOX
2150 ## ----------- ##
2151 ## confdefs.h. ##
2152 ## ----------- ##
2153 _ASBOX
2154 echo
2155 cat confdefs.h
2156 echo
2157 fi
2158 test "$ac_signal" != 0 &&
2159 $as_echo "$as_me: caught signal $ac_signal"
2160 $as_echo "$as_me: exit $exit_status"
2161 } >&5
2162 rm -f core *.core core.conftest.* &&
2163 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2164 exit $exit_status
2165 ' 0
2166 for ac_signal in 1 2 13 15; do
2167 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2168 done
2169 ac_signal=0
2170
2171 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2172 rm -f -r conftest* confdefs.h
2173
2174 $as_echo "/* confdefs.h */" > confdefs.h
2175
2176 # Predefined preprocessor variables.
2177
2178 cat >>confdefs.h <<_ACEOF
2179 #define PACKAGE_NAME "$PACKAGE_NAME"
2180 _ACEOF
2181
2182 cat >>confdefs.h <<_ACEOF
2183 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2184 _ACEOF
2185
2186 cat >>confdefs.h <<_ACEOF
2187 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2188 _ACEOF
2189
2190 cat >>confdefs.h <<_ACEOF
2191 #define PACKAGE_STRING "$PACKAGE_STRING"
2192 _ACEOF
2193
2194 cat >>confdefs.h <<_ACEOF
2195 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2196 _ACEOF
2197
2198 cat >>confdefs.h <<_ACEOF
2199 #define PACKAGE_URL "$PACKAGE_URL"
2200 _ACEOF
2201
2202
2203 # Let the site file select an alternate cache file if it wants to.
2204 # Prefer an explicitly selected file to automatically selected ones.
2205 ac_site_file1=NONE
2206 ac_site_file2=NONE
2207 if test -n "$CONFIG_SITE"; then
2208 ac_site_file1=$CONFIG_SITE
2209 elif test "x$prefix" != xNONE; then
2210 ac_site_file1=$prefix/share/config.site
2211 ac_site_file2=$prefix/etc/config.site
2212 else
2213 ac_site_file1=$ac_default_prefix/share/config.site
2214 ac_site_file2=$ac_default_prefix/etc/config.site
2215 fi
2216 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2217 do
2218 test "x$ac_site_file" = xNONE && continue
2219 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2221 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2222 sed 's/^/| /' "$ac_site_file" >&5
2223 . "$ac_site_file"
2224 fi
2225 done
2226
2227 if test -r "$cache_file"; then
2228 # Some versions of bash will fail to source /dev/null (special files
2229 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2230 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2232 $as_echo "$as_me: loading cache $cache_file" >&6;}
2233 case $cache_file in
2234 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2235 *) . "./$cache_file";;
2236 esac
2237 fi
2238 else
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2240 $as_echo "$as_me: creating cache $cache_file" >&6;}
2241 >$cache_file
2242 fi
2243
2244 # Check that the precious variables saved in the cache have kept the same
2245 # value.
2246 ac_cache_corrupted=false
2247 for ac_var in $ac_precious_vars; do
2248 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2249 eval ac_new_set=\$ac_env_${ac_var}_set
2250 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2251 eval ac_new_val=\$ac_env_${ac_var}_value
2252 case $ac_old_set,$ac_new_set in
2253 set,)
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2255 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2256 ac_cache_corrupted=: ;;
2257 ,set)
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2259 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2260 ac_cache_corrupted=: ;;
2261 ,);;
2262 *)
2263 if test "x$ac_old_val" != "x$ac_new_val"; then
2264 # differences in whitespace do not lead to failure.
2265 ac_old_val_w=`echo x $ac_old_val`
2266 ac_new_val_w=`echo x $ac_new_val`
2267 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2269 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2270 ac_cache_corrupted=:
2271 else
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2273 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2274 eval $ac_var=\$ac_old_val
2275 fi
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2277 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2279 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2280 fi;;
2281 esac
2282 # Pass precious variables to config.status.
2283 if test "$ac_new_set" = set; then
2284 case $ac_new_val in
2285 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2286 *) ac_arg=$ac_var=$ac_new_val ;;
2287 esac
2288 case " $ac_configure_args " in
2289 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2290 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2291 esac
2292 fi
2293 done
2294 if $ac_cache_corrupted; then
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2298 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2299 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2300 fi
2301 ## -------------------- ##
2302 ## Main body of script. ##
2303 ## -------------------- ##
2304
2305 ac_ext=c
2306 ac_cpp='$CPP $CPPFLAGS'
2307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2310
2311
2312 am__api_version='1.11'
2313
2314 ac_aux_dir=
2315 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2316 for ac_t in install-sh install.sh shtool; do
2317 if test -f "$ac_dir/$ac_t"; then
2318 ac_aux_dir=$ac_dir
2319 ac_install_sh="$ac_aux_dir/$ac_t -c"
2320 break 2
2321 fi
2322 done
2323 done
2324 if test -z "$ac_aux_dir"; then
2325 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2326 fi
2327
2328 # These three variables are undocumented and unsupported,
2329 # and are intended to be withdrawn in a future Autoconf release.
2330 # They can cause serious problems if a builder's source tree is in a directory
2331 # whose full name contains unusual characters.
2332 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2333 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2334 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2335
2336
2337 # Find a good install program. We prefer a C program (faster),
2338 # so one script is as good as another. But avoid the broken or
2339 # incompatible versions:
2340 # SysV /etc/install, /usr/sbin/install
2341 # SunOS /usr/etc/install
2342 # IRIX /sbin/install
2343 # AIX /bin/install
2344 # AmigaOS /C/install, which installs bootblocks on floppy discs
2345 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2346 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2347 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2348 # OS/2's system install, which has a completely different semantic
2349 # ./install, which can be erroneously created by make from ./install.sh.
2350 # Reject install programs that cannot install multiple files.
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2352 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2353 if test -z "$INSTALL"; then
2354 if test "${ac_cv_path_install+set}" = set; then :
2355 $as_echo_n "(cached) " >&6
2356 else
2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358 for as_dir in $PATH
2359 do
2360 IFS=$as_save_IFS
2361 test -z "$as_dir" && as_dir=.
2362 # Account for people who put trailing slashes in PATH elements.
2363 case $as_dir/ in #((
2364 ./ | .// | /[cC]/* | \
2365 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2366 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2367 /usr/ucb/* ) ;;
2368 *)
2369 # OSF1 and SCO ODT 3.0 have their own names for install.
2370 # Don't use installbsd from OSF since it installs stuff as root
2371 # by default.
2372 for ac_prog in ginstall scoinst install; do
2373 for ac_exec_ext in '' $ac_executable_extensions; do
2374 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2375 if test $ac_prog = install &&
2376 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2377 # AIX install. It has an incompatible calling convention.
2378 :
2379 elif test $ac_prog = install &&
2380 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2381 # program-specific install script used by HP pwplus--don't use.
2382 :
2383 else
2384 rm -rf conftest.one conftest.two conftest.dir
2385 echo one > conftest.one
2386 echo two > conftest.two
2387 mkdir conftest.dir
2388 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2389 test -s conftest.one && test -s conftest.two &&
2390 test -s conftest.dir/conftest.one &&
2391 test -s conftest.dir/conftest.two
2392 then
2393 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2394 break 3
2395 fi
2396 fi
2397 fi
2398 done
2399 done
2400 ;;
2401 esac
2402
2403 done
2404 IFS=$as_save_IFS
2405
2406 rm -rf conftest.one conftest.two conftest.dir
2407
2408 fi
2409 if test "${ac_cv_path_install+set}" = set; then
2410 INSTALL=$ac_cv_path_install
2411 else
2412 # As a last resort, use the slow shell script. Don't cache a
2413 # value for INSTALL within a source directory, because that will
2414 # break other packages using the cache if that directory is
2415 # removed, or if the value is a relative name.
2416 INSTALL=$ac_install_sh
2417 fi
2418 fi
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2420 $as_echo "$INSTALL" >&6; }
2421
2422 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2423 # It thinks the first close brace ends the variable substitution.
2424 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2425
2426 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2427
2428 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2429
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2431 $as_echo_n "checking whether build environment is sane... " >&6; }
2432 # Just in case
2433 sleep 1
2434 echo timestamp > conftest.file
2435 # Reject unsafe characters in $srcdir or the absolute working directory
2436 # name. Accept space and tab only in the latter.
2437 am_lf='
2438 '
2439 case `pwd` in
2440 *[\\\"\#\$\&\'\`$am_lf]*)
2441 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2442 esac
2443 case $srcdir in
2444 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2445 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2446 esac
2447
2448 # Do `set' in a subshell so we don't clobber the current shell's
2449 # arguments. Must try -L first in case configure is actually a
2450 # symlink; some systems play weird games with the mod time of symlinks
2451 # (eg FreeBSD returns the mod time of the symlink's containing
2452 # directory).
2453 if (
2454 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2455 if test "$*" = "X"; then
2456 # -L didn't work.
2457 set X `ls -t "$srcdir/configure" conftest.file`
2458 fi
2459 rm -f conftest.file
2460 if test "$*" != "X $srcdir/configure conftest.file" \
2461 && test "$*" != "X conftest.file $srcdir/configure"; then
2462
2463 # If neither matched, then we have a broken ls. This can happen
2464 # if, for instance, CONFIG_SHELL is bash and it inherits a
2465 # broken ls alias from the environment. This has actually
2466 # happened. Such a system could not be considered "sane".
2467 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2468 alias in your environment" "$LINENO" 5
2469 fi
2470
2471 test "$2" = conftest.file
2472 )
2473 then
2474 # Ok.
2475 :
2476 else
2477 as_fn_error "newly created file is older than distributed files!
2478 Check your system clock" "$LINENO" 5
2479 fi
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2481 $as_echo "yes" >&6; }
2482 test "$program_prefix" != NONE &&
2483 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2484 # Use a double $ so make ignores it.
2485 test "$program_suffix" != NONE &&
2486 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2487 # Double any \ or $.
2488 # By default was `s,x,x', remove it if useless.
2489 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2490 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2491
2492 # expand $ac_aux_dir to an absolute path
2493 am_aux_dir=`cd $ac_aux_dir && pwd`
2494
2495 if test x"${MISSING+set}" != xset; then
2496 case $am_aux_dir in
2497 *\ * | *\ *)
2498 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2499 *)
2500 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2501 esac
2502 fi
2503 # Use eval to expand $SHELL
2504 if eval "$MISSING --run true"; then
2505 am_missing_run="$MISSING --run "
2506 else
2507 am_missing_run=
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2509 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2510 fi
2511
2512 if test x"${install_sh}" != xset; then
2513 case $am_aux_dir in
2514 *\ * | *\ *)
2515 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2516 *)
2517 install_sh="\${SHELL} $am_aux_dir/install-sh"
2518 esac
2519 fi
2520
2521 # Installed binaries are usually stripped using `strip' when the user
2522 # run `make install-strip'. However `strip' might not be the right
2523 # tool to use in cross-compilation environments, therefore Automake
2524 # will honor the `STRIP' environment variable to overrule this program.
2525 if test "$cross_compiling" != no; then
2526 if test -n "$ac_tool_prefix"; then
2527 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2528 set dummy ${ac_tool_prefix}strip; ac_word=$2
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2530 $as_echo_n "checking for $ac_word... " >&6; }
2531 if test "${ac_cv_prog_STRIP+set}" = set; then :
2532 $as_echo_n "(cached) " >&6
2533 else
2534 if test -n "$STRIP"; then
2535 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2536 else
2537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538 for as_dir in $PATH
2539 do
2540 IFS=$as_save_IFS
2541 test -z "$as_dir" && as_dir=.
2542 for ac_exec_ext in '' $ac_executable_extensions; do
2543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2544 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2546 break 2
2547 fi
2548 done
2549 done
2550 IFS=$as_save_IFS
2551
2552 fi
2553 fi
2554 STRIP=$ac_cv_prog_STRIP
2555 if test -n "$STRIP"; then
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2557 $as_echo "$STRIP" >&6; }
2558 else
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2560 $as_echo "no" >&6; }
2561 fi
2562
2563
2564 fi
2565 if test -z "$ac_cv_prog_STRIP"; then
2566 ac_ct_STRIP=$STRIP
2567 # Extract the first word of "strip", so it can be a program name with args.
2568 set dummy strip; ac_word=$2
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2570 $as_echo_n "checking for $ac_word... " >&6; }
2571 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2572 $as_echo_n "(cached) " >&6
2573 else
2574 if test -n "$ac_ct_STRIP"; then
2575 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2576 else
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 for as_dir in $PATH
2579 do
2580 IFS=$as_save_IFS
2581 test -z "$as_dir" && as_dir=.
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2584 ac_cv_prog_ac_ct_STRIP="strip"
2585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2586 break 2
2587 fi
2588 done
2589 done
2590 IFS=$as_save_IFS
2591
2592 fi
2593 fi
2594 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2595 if test -n "$ac_ct_STRIP"; then
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2597 $as_echo "$ac_ct_STRIP" >&6; }
2598 else
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2600 $as_echo "no" >&6; }
2601 fi
2602
2603 if test "x$ac_ct_STRIP" = x; then
2604 STRIP=":"
2605 else
2606 case $cross_compiling:$ac_tool_warned in
2607 yes:)
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2610 ac_tool_warned=yes ;;
2611 esac
2612 STRIP=$ac_ct_STRIP
2613 fi
2614 else
2615 STRIP="$ac_cv_prog_STRIP"
2616 fi
2617
2618 fi
2619 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2620
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2622 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2623 if test -z "$MKDIR_P"; then
2624 if test "${ac_cv_path_mkdir+set}" = set; then :
2625 $as_echo_n "(cached) " >&6
2626 else
2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2629 do
2630 IFS=$as_save_IFS
2631 test -z "$as_dir" && as_dir=.
2632 for ac_prog in mkdir gmkdir; do
2633 for ac_exec_ext in '' $ac_executable_extensions; do
2634 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2635 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2636 'mkdir (GNU coreutils) '* | \
2637 'mkdir (coreutils) '* | \
2638 'mkdir (fileutils) '4.1*)
2639 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2640 break 3;;
2641 esac
2642 done
2643 done
2644 done
2645 IFS=$as_save_IFS
2646
2647 fi
2648
2649 test -d ./--version && rmdir ./--version
2650 if test "${ac_cv_path_mkdir+set}" = set; then
2651 MKDIR_P="$ac_cv_path_mkdir -p"
2652 else
2653 # As a last resort, use the slow shell script. Don't cache a
2654 # value for MKDIR_P within a source directory, because that will
2655 # break other packages using the cache if that directory is
2656 # removed, or if the value is a relative name.
2657 MKDIR_P="$ac_install_sh -d"
2658 fi
2659 fi
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2661 $as_echo "$MKDIR_P" >&6; }
2662
2663 mkdir_p="$MKDIR_P"
2664 case $mkdir_p in
2665 [\\/$]* | ?:[\\/]*) ;;
2666 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2667 esac
2668
2669 for ac_prog in gawk mawk nawk awk
2670 do
2671 # Extract the first word of "$ac_prog", so it can be a program name with args.
2672 set dummy $ac_prog; ac_word=$2
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674 $as_echo_n "checking for $ac_word... " >&6; }
2675 if test "${ac_cv_prog_AWK+set}" = set; then :
2676 $as_echo_n "(cached) " >&6
2677 else
2678 if test -n "$AWK"; then
2679 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2680 else
2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 for as_dir in $PATH
2683 do
2684 IFS=$as_save_IFS
2685 test -z "$as_dir" && as_dir=.
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2688 ac_cv_prog_AWK="$ac_prog"
2689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 break 2
2691 fi
2692 done
2693 done
2694 IFS=$as_save_IFS
2695
2696 fi
2697 fi
2698 AWK=$ac_cv_prog_AWK
2699 if test -n "$AWK"; then
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2701 $as_echo "$AWK" >&6; }
2702 else
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2704 $as_echo "no" >&6; }
2705 fi
2706
2707
2708 test -n "$AWK" && break
2709 done
2710
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2712 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2713 set x ${MAKE-make}
2714 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2715 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2716 $as_echo_n "(cached) " >&6
2717 else
2718 cat >conftest.make <<\_ACEOF
2719 SHELL = /bin/sh
2720 all:
2721 @echo '@@@%%%=$(MAKE)=@@@%%%'
2722 _ACEOF
2723 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2724 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2725 *@@@%%%=?*=@@@%%%*)
2726 eval ac_cv_prog_make_${ac_make}_set=yes;;
2727 *)
2728 eval ac_cv_prog_make_${ac_make}_set=no;;
2729 esac
2730 rm -f conftest.make
2731 fi
2732 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2734 $as_echo "yes" >&6; }
2735 SET_MAKE=
2736 else
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738 $as_echo "no" >&6; }
2739 SET_MAKE="MAKE=${MAKE-make}"
2740 fi
2741
2742 rm -rf .tst 2>/dev/null
2743 mkdir .tst 2>/dev/null
2744 if test -d .tst; then
2745 am__leading_dot=.
2746 else
2747 am__leading_dot=_
2748 fi
2749 rmdir .tst 2>/dev/null
2750
2751 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2752 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2753 # is not polluted with repeated "-I."
2754 am__isrc=' -I$(srcdir)'
2755 # test to see if srcdir already configured
2756 if test -f $srcdir/config.status; then
2757 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2758 fi
2759 fi
2760
2761 # test whether we have cygpath
2762 if test -z "$CYGPATH_W"; then
2763 if (cygpath --version) >/dev/null 2>/dev/null; then
2764 CYGPATH_W='cygpath -w'
2765 else
2766 CYGPATH_W=echo
2767 fi
2768 fi
2769
2770
2771 # Define the identity of the package.
2772 PACKAGE=libavc1394
2773 VERSION=0.5.4
2774
2775
2776 cat >>confdefs.h <<_ACEOF
2777 #define PACKAGE "$PACKAGE"
2778 _ACEOF
2779
2780
2781 cat >>confdefs.h <<_ACEOF
2782 #define VERSION "$VERSION"
2783 _ACEOF
2784
2785 # Some tools Automake needs.
2786
2787 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2788
2789
2790 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2791
2792
2793 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2794
2795
2796 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2797
2798
2799 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2800
2801 # We need awk for the "check" target. The system "awk" is bad on
2802 # some platforms.
2803 # Always define AMTAR for backward compatibility.
2804
2805 AMTAR=${AMTAR-"${am_missing_run}tar"}
2806
2807 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2808
2809
2810
2811
2812
2813 ac_config_headers="$ac_config_headers config.h"
2814
2815
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2817 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2818 # Check whether --enable-maintainer-mode was given.
2819 if test "${enable_maintainer_mode+set}" = set; then :
2820 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2821 else
2822 USE_MAINTAINER_MODE=no
2823 fi
2824
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2826 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2827 if test $USE_MAINTAINER_MODE = yes; then
2828 MAINTAINER_MODE_TRUE=
2829 MAINTAINER_MODE_FALSE='#'
2830 else
2831 MAINTAINER_MODE_TRUE='#'
2832 MAINTAINER_MODE_FALSE=
2833 fi
2834
2835 MAINT=$MAINTAINER_MODE_TRUE
2836
2837
2838
2839 ac_ext=c
2840 ac_cpp='$CPP $CPPFLAGS'
2841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2844 if test -n "$ac_tool_prefix"; then
2845 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2846 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2848 $as_echo_n "checking for $ac_word... " >&6; }
2849 if test "${ac_cv_prog_CC+set}" = set; then :
2850 $as_echo_n "(cached) " >&6
2851 else
2852 if test -n "$CC"; then
2853 ac_cv_prog_CC="$CC" # Let the user override the test.
2854 else
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 for as_dir in $PATH
2857 do
2858 IFS=$as_save_IFS
2859 test -z "$as_dir" && as_dir=.
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2862 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2864 break 2
2865 fi
2866 done
2867 done
2868 IFS=$as_save_IFS
2869
2870 fi
2871 fi
2872 CC=$ac_cv_prog_CC
2873 if test -n "$CC"; then
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2875 $as_echo "$CC" >&6; }
2876 else
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878 $as_echo "no" >&6; }
2879 fi
2880
2881
2882 fi
2883 if test -z "$ac_cv_prog_CC"; then
2884 ac_ct_CC=$CC
2885 # Extract the first word of "gcc", so it can be a program name with args.
2886 set dummy gcc; ac_word=$2
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888 $as_echo_n "checking for $ac_word... " >&6; }
2889 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2890 $as_echo_n "(cached) " >&6
2891 else
2892 if test -n "$ac_ct_CC"; then
2893 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2894 else
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 for as_dir in $PATH
2897 do
2898 IFS=$as_save_IFS
2899 test -z "$as_dir" && as_dir=.
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2902 ac_cv_prog_ac_ct_CC="gcc"
2903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2904 break 2
2905 fi
2906 done
2907 done
2908 IFS=$as_save_IFS
2909
2910 fi
2911 fi
2912 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2913 if test -n "$ac_ct_CC"; then
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2915 $as_echo "$ac_ct_CC" >&6; }
2916 else
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2918 $as_echo "no" >&6; }
2919 fi
2920
2921 if test "x$ac_ct_CC" = x; then
2922 CC=""
2923 else
2924 case $cross_compiling:$ac_tool_warned in
2925 yes:)
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2928 ac_tool_warned=yes ;;
2929 esac
2930 CC=$ac_ct_CC
2931 fi
2932 else
2933 CC="$ac_cv_prog_CC"
2934 fi
2935
2936 if test -z "$CC"; then
2937 if test -n "$ac_tool_prefix"; then
2938 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2939 set dummy ${ac_tool_prefix}cc; ac_word=$2
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941 $as_echo_n "checking for $ac_word... " >&6; }
2942 if test "${ac_cv_prog_CC+set}" = set; then :
2943 $as_echo_n "(cached) " >&6
2944 else
2945 if test -n "$CC"; then
2946 ac_cv_prog_CC="$CC" # Let the user override the test.
2947 else
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH
2950 do
2951 IFS=$as_save_IFS
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2955 ac_cv_prog_CC="${ac_tool_prefix}cc"
2956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 break 2
2958 fi
2959 done
2960 done
2961 IFS=$as_save_IFS
2962
2963 fi
2964 fi
2965 CC=$ac_cv_prog_CC
2966 if test -n "$CC"; then
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2968 $as_echo "$CC" >&6; }
2969 else
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971 $as_echo "no" >&6; }
2972 fi
2973
2974
2975 fi
2976 fi
2977 if test -z "$CC"; then
2978 # Extract the first word of "cc", so it can be a program name with args.
2979 set dummy cc; ac_word=$2
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2981 $as_echo_n "checking for $ac_word... " >&6; }
2982 if test "${ac_cv_prog_CC+set}" = set; then :
2983 $as_echo_n "(cached) " >&6
2984 else
2985 if test -n "$CC"; then
2986 ac_cv_prog_CC="$CC" # Let the user override the test.
2987 else
2988 ac_prog_rejected=no
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2991 do
2992 IFS=$as_save_IFS
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2997 ac_prog_rejected=yes
2998 continue
2999 fi
3000 ac_cv_prog_CC="cc"
3001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3002 break 2
3003 fi
3004 done
3005 done
3006 IFS=$as_save_IFS
3007
3008 if test $ac_prog_rejected = yes; then
3009 # We found a bogon in the path, so make sure we never use it.
3010 set dummy $ac_cv_prog_CC
3011 shift
3012 if test $# != 0; then
3013 # We chose a different compiler from the bogus one.
3014 # However, it has the same basename, so the bogon will be chosen
3015 # first if we set CC to just the basename; use the full file name.
3016 shift
3017 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3018 fi
3019 fi
3020 fi
3021 fi
3022 CC=$ac_cv_prog_CC
3023 if test -n "$CC"; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3025 $as_echo "$CC" >&6; }
3026 else
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3029 fi
3030
3031
3032 fi
3033 if test -z "$CC"; then
3034 if test -n "$ac_tool_prefix"; then
3035 for ac_prog in cl.exe
3036 do
3037 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3038 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3040 $as_echo_n "checking for $ac_word... " >&6; }
3041 if test "${ac_cv_prog_CC+set}" = set; then :
3042 $as_echo_n "(cached) " >&6
3043 else
3044 if test -n "$CC"; then
3045 ac_cv_prog_CC="$CC" # Let the user override the test.
3046 else
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 for as_dir in $PATH
3049 do
3050 IFS=$as_save_IFS
3051 test -z "$as_dir" && as_dir=.
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3054 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3056 break 2
3057 fi
3058 done
3059 done
3060 IFS=$as_save_IFS
3061
3062 fi
3063 fi
3064 CC=$ac_cv_prog_CC
3065 if test -n "$CC"; then
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3067 $as_echo "$CC" >&6; }
3068 else
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070 $as_echo "no" >&6; }
3071 fi
3072
3073
3074 test -n "$CC" && break
3075 done
3076 fi
3077 if test -z "$CC"; then
3078 ac_ct_CC=$CC
3079 for ac_prog in cl.exe
3080 do
3081 # Extract the first word of "$ac_prog", so it can be a program name with args.
3082 set dummy $ac_prog; ac_word=$2
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084 $as_echo_n "checking for $ac_word... " >&6; }
3085 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3086 $as_echo_n "(cached) " >&6
3087 else
3088 if test -n "$ac_ct_CC"; then
3089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3090 else
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 for as_dir in $PATH
3093 do
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3098 ac_cv_prog_ac_ct_CC="$ac_prog"
3099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 break 2
3101 fi
3102 done
3103 done
3104 IFS=$as_save_IFS
3105
3106 fi
3107 fi
3108 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3109 if test -n "$ac_ct_CC"; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3111 $as_echo "$ac_ct_CC" >&6; }
3112 else
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3115 fi
3116
3117
3118 test -n "$ac_ct_CC" && break
3119 done
3120
3121 if test "x$ac_ct_CC" = x; then
3122 CC=""
3123 else
3124 case $cross_compiling:$ac_tool_warned in
3125 yes:)
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3128 ac_tool_warned=yes ;;
3129 esac
3130 CC=$ac_ct_CC
3131 fi
3132 fi
3133
3134 fi
3135
3136
3137 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3139 as_fn_error "no acceptable C compiler found in \$PATH
3140 See \`config.log' for more details." "$LINENO" 5; }
3141
3142 # Provide some information about the compiler.
3143 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3144 set X $ac_compile
3145 ac_compiler=$2
3146 for ac_option in --version -v -V -qversion; do
3147 { { ac_try="$ac_compiler $ac_option >&5"
3148 case "(($ac_try" in
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3151 esac
3152 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3153 $as_echo "$ac_try_echo"; } >&5
3154 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3155 ac_status=$?
3156 if test -s conftest.err; then
3157 sed '10a\
3158 ... rest of stderr output deleted ...
3159 10q' conftest.err >conftest.er1
3160 cat conftest.er1 >&5
3161 fi
3162 rm -f conftest.er1 conftest.err
3163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3164 test $ac_status = 0; }
3165 done
3166
3167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3168 /* end confdefs.h. */
3169
3170 int
3171 main ()
3172 {
3173
3174 ;
3175 return 0;
3176 }
3177 _ACEOF
3178 ac_clean_files_save=$ac_clean_files
3179 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3180 # Try to create an executable without -o first, disregard a.out.
3181 # It will help us diagnose broken compilers, and finding out an intuition
3182 # of exeext.
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3184 $as_echo_n "checking whether the C compiler works... " >&6; }
3185 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3186
3187 # The possible output files:
3188 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3189
3190 ac_rmfiles=
3191 for ac_file in $ac_files
3192 do
3193 case $ac_file in
3194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3195 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3196 esac
3197 done
3198 rm -f $ac_rmfiles
3199
3200 if { { ac_try="$ac_link_default"
3201 case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3204 esac
3205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3206 $as_echo "$ac_try_echo"; } >&5
3207 (eval "$ac_link_default") 2>&5
3208 ac_status=$?
3209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3210 test $ac_status = 0; }; then :
3211 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3212 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3213 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3214 # so that the user can short-circuit this test for compilers unknown to
3215 # Autoconf.
3216 for ac_file in $ac_files ''
3217 do
3218 test -f "$ac_file" || continue
3219 case $ac_file in
3220 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3221 ;;
3222 [ab].out )
3223 # We found the default executable, but exeext='' is most
3224 # certainly right.
3225 break;;
3226 *.* )
3227 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3228 then :; else
3229 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3230 fi
3231 # We set ac_cv_exeext here because the later test for it is not
3232 # safe: cross compilers may not add the suffix if given an `-o'
3233 # argument, so we may need to know it at that point already.
3234 # Even if this section looks crufty: it has the advantage of
3235 # actually working.
3236 break;;
3237 * )
3238 break;;
3239 esac
3240 done
3241 test "$ac_cv_exeext" = no && ac_cv_exeext=
3242
3243 else
3244 ac_file=''
3245 fi
3246 if test -z "$ac_file"; then :
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 $as_echo "no" >&6; }
3249 $as_echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3251
3252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3254 { as_fn_set_status 77
3255 as_fn_error "C compiler cannot create executables
3256 See \`config.log' for more details." "$LINENO" 5; }; }
3257 else
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3259 $as_echo "yes" >&6; }
3260 fi
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3262 $as_echo_n "checking for C compiler default output file name... " >&6; }
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3264 $as_echo "$ac_file" >&6; }
3265 ac_exeext=$ac_cv_exeext
3266
3267 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3268 ac_clean_files=$ac_clean_files_save
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3270 $as_echo_n "checking for suffix of executables... " >&6; }
3271 if { { ac_try="$ac_link"
3272 case "(($ac_try" in
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3275 esac
3276 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3277 $as_echo "$ac_try_echo"; } >&5
3278 (eval "$ac_link") 2>&5
3279 ac_status=$?
3280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3281 test $ac_status = 0; }; then :
3282 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3283 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3284 # work properly (i.e., refer to `conftest.exe'), while it won't with
3285 # `rm'.
3286 for ac_file in conftest.exe conftest conftest.*; do
3287 test -f "$ac_file" || continue
3288 case $ac_file in
3289 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3290 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3291 break;;
3292 * ) break;;
3293 esac
3294 done
3295 else
3296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3298 as_fn_error "cannot compute suffix of executables: cannot compile and link
3299 See \`config.log' for more details." "$LINENO" 5; }
3300 fi
3301 rm -f conftest conftest$ac_cv_exeext
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3303 $as_echo "$ac_cv_exeext" >&6; }
3304
3305 rm -f conftest.$ac_ext
3306 EXEEXT=$ac_cv_exeext
3307 ac_exeext=$EXEEXT
3308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3309 /* end confdefs.h. */
3310 #include <stdio.h>
3311 int
3312 main ()
3313 {
3314 FILE *f = fopen ("conftest.out", "w");
3315 return ferror (f) || fclose (f) != 0;
3316
3317 ;
3318 return 0;
3319 }
3320 _ACEOF
3321 ac_clean_files="$ac_clean_files conftest.out"
3322 # Check that the compiler produces executables we can run. If not, either
3323 # the compiler is broken, or we cross compile.
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3325 $as_echo_n "checking whether we are cross compiling... " >&6; }
3326 if test "$cross_compiling" != yes; then
3327 { { ac_try="$ac_link"
3328 case "(($ac_try" in
3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330 *) ac_try_echo=$ac_try;;
3331 esac
3332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3333 $as_echo "$ac_try_echo"; } >&5
3334 (eval "$ac_link") 2>&5
3335 ac_status=$?
3336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3337 test $ac_status = 0; }
3338 if { ac_try='./conftest$ac_cv_exeext'
3339 { { case "(($ac_try" in
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3342 esac
3343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3344 $as_echo "$ac_try_echo"; } >&5
3345 (eval "$ac_try") 2>&5
3346 ac_status=$?
3347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3348 test $ac_status = 0; }; }; then
3349 cross_compiling=no
3350 else
3351 if test "$cross_compiling" = maybe; then
3352 cross_compiling=yes
3353 else
3354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3356 as_fn_error "cannot run C compiled programs.
3357 If you meant to cross compile, use \`--host'.
3358 See \`config.log' for more details." "$LINENO" 5; }
3359 fi
3360 fi
3361 fi
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3363 $as_echo "$cross_compiling" >&6; }
3364
3365 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3366 ac_clean_files=$ac_clean_files_save
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3368 $as_echo_n "checking for suffix of object files... " >&6; }
3369 if test "${ac_cv_objext+set}" = set; then :
3370 $as_echo_n "(cached) " >&6
3371 else
3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373 /* end confdefs.h. */
3374
3375 int
3376 main ()
3377 {
3378
3379 ;
3380 return 0;
3381 }
3382 _ACEOF
3383 rm -f conftest.o conftest.obj
3384 if { { ac_try="$ac_compile"
3385 case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388 esac
3389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3390 $as_echo "$ac_try_echo"; } >&5
3391 (eval "$ac_compile") 2>&5
3392 ac_status=$?
3393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3394 test $ac_status = 0; }; then :
3395 for ac_file in conftest.o conftest.obj conftest.*; do
3396 test -f "$ac_file" || continue;
3397 case $ac_file in
3398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3399 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3400 break;;
3401 esac
3402 done
3403 else
3404 $as_echo "$as_me: failed program was:" >&5
3405 sed 's/^/| /' conftest.$ac_ext >&5
3406
3407 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3408 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3409 as_fn_error "cannot compute suffix of object files: cannot compile
3410 See \`config.log' for more details." "$LINENO" 5; }
3411 fi
3412 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3413 fi
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3415 $as_echo "$ac_cv_objext" >&6; }
3416 OBJEXT=$ac_cv_objext
3417 ac_objext=$OBJEXT
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3419 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3420 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3421 $as_echo_n "(cached) " >&6
3422 else
3423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424 /* end confdefs.h. */
3425
3426 int
3427 main ()
3428 {
3429 #ifndef __GNUC__
3430 choke me
3431 #endif
3432
3433 ;
3434 return 0;
3435 }
3436 _ACEOF
3437 if ac_fn_c_try_compile "$LINENO"; then :
3438 ac_compiler_gnu=yes
3439 else
3440 ac_compiler_gnu=no
3441 fi
3442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3443 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3444
3445 fi
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3447 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3448 if test $ac_compiler_gnu = yes; then
3449 GCC=yes
3450 else
3451 GCC=
3452 fi
3453 ac_test_CFLAGS=${CFLAGS+set}
3454 ac_save_CFLAGS=$CFLAGS
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3456 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3457 if test "${ac_cv_prog_cc_g+set}" = set; then :
3458 $as_echo_n "(cached) " >&6
3459 else
3460 ac_save_c_werror_flag=$ac_c_werror_flag
3461 ac_c_werror_flag=yes
3462 ac_cv_prog_cc_g=no
3463 CFLAGS="-g"
3464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465 /* end confdefs.h. */
3466
3467 int
3468 main ()
3469 {
3470
3471 ;
3472 return 0;
3473 }
3474 _ACEOF
3475 if ac_fn_c_try_compile "$LINENO"; then :
3476 ac_cv_prog_cc_g=yes
3477 else
3478 CFLAGS=""
3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h. */
3481
3482 int
3483 main ()
3484 {
3485
3486 ;
3487 return 0;
3488 }
3489 _ACEOF
3490 if ac_fn_c_try_compile "$LINENO"; then :
3491
3492 else
3493 ac_c_werror_flag=$ac_save_c_werror_flag
3494 CFLAGS="-g"
3495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496 /* end confdefs.h. */
3497
3498 int
3499 main ()
3500 {
3501
3502 ;
3503 return 0;
3504 }
3505 _ACEOF
3506 if ac_fn_c_try_compile "$LINENO"; then :
3507 ac_cv_prog_cc_g=yes
3508 fi
3509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3510 fi
3511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3512 fi
3513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3514 ac_c_werror_flag=$ac_save_c_werror_flag
3515 fi
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3517 $as_echo "$ac_cv_prog_cc_g" >&6; }
3518 if test "$ac_test_CFLAGS" = set; then
3519 CFLAGS=$ac_save_CFLAGS
3520 elif test $ac_cv_prog_cc_g = yes; then
3521 if test "$GCC" = yes; then
3522 CFLAGS="-g -O2"
3523 else
3524 CFLAGS="-g"
3525 fi
3526 else
3527 if test "$GCC" = yes; then
3528 CFLAGS="-O2"
3529 else
3530 CFLAGS=
3531 fi
3532 fi
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3534 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3535 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3536 $as_echo_n "(cached) " >&6
3537 else
3538 ac_cv_prog_cc_c89=no
3539 ac_save_CC=$CC
3540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541 /* end confdefs.h. */
3542 #include <stdarg.h>
3543 #include <stdio.h>
3544 #include <sys/types.h>
3545 #include <sys/stat.h>
3546 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3547 struct buf { int x; };
3548 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3549 static char *e (p, i)
3550 char **p;
3551 int i;
3552 {
3553 return p[i];
3554 }
3555 static char *f (char * (*g) (char **, int), char **p, ...)
3556 {
3557 char *s;
3558 va_list v;
3559 va_start (v,p);
3560 s = g (p, va_arg (v,int));
3561 va_end (v);
3562 return s;
3563 }
3564
3565 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3566 function prototypes and stuff, but not '\xHH' hex character constants.
3567 These don't provoke an error unfortunately, instead are silently treated
3568 as 'x'. The following induces an error, until -std is added to get
3569 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3570 array size at least. It's necessary to write '\x00'==0 to get something
3571 that's true only with -std. */
3572 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3573
3574 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3575 inside strings and character constants. */
3576 #define FOO(x) 'x'
3577 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3578
3579 int test (int i, double x);
3580 struct s1 {int (*f) (int a);};
3581 struct s2 {int (*f) (double a);};
3582 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3583 int argc;
3584 char **argv;
3585 int
3586 main ()
3587 {
3588 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3589 ;
3590 return 0;
3591 }
3592 _ACEOF
3593 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3594 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3595 do
3596 CC="$ac_save_CC $ac_arg"
3597 if ac_fn_c_try_compile "$LINENO"; then :
3598 ac_cv_prog_cc_c89=$ac_arg
3599 fi
3600 rm -f core conftest.err conftest.$ac_objext
3601 test "x$ac_cv_prog_cc_c89" != "xno" && break
3602 done
3603 rm -f conftest.$ac_ext
3604 CC=$ac_save_CC
3605
3606 fi
3607 # AC_CACHE_VAL
3608 case "x$ac_cv_prog_cc_c89" in
3609 x)
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3611 $as_echo "none needed" >&6; } ;;
3612 xno)
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3614 $as_echo "unsupported" >&6; } ;;
3615 *)
3616 CC="$CC $ac_cv_prog_cc_c89"
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3618 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3619 esac
3620 if test "x$ac_cv_prog_cc_c89" != xno; then :
3621
3622 fi
3623
3624 ac_ext=c
3625 ac_cpp='$CPP $CPPFLAGS'
3626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3629 DEPDIR="${am__leading_dot}deps"
3630
3631 ac_config_commands="$ac_config_commands depfiles"
3632
3633
3634 am_make=${MAKE-make}
3635 cat > confinc << 'END'
3636 am__doit:
3637 @echo this is the am__doit target
3638 .PHONY: am__doit
3639 END
3640 # If we don't find an include directive, just comment out the code.
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3642 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3643 am__include="#"
3644 am__quote=
3645 _am_result=none
3646 # First try GNU make style include.
3647 echo "include confinc" > confmf
3648 # Ignore all kinds of additional output from `make'.
3649 case `$am_make -s -f confmf 2> /dev/null` in #(
3650 *the\ am__doit\ target*)
3651 am__include=include
3652 am__quote=
3653 _am_result=GNU
3654 ;;
3655 esac
3656 # Now try BSD make style include.
3657 if test "$am__include" = "#"; then
3658 echo '.include "confinc"' > confmf
3659 case `$am_make -s -f confmf 2> /dev/null` in #(
3660 *the\ am__doit\ target*)
3661 am__include=.include
3662 am__quote="\""
3663 _am_result=BSD
3664 ;;
3665 esac
3666 fi
3667
3668
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3670 $as_echo "$_am_result" >&6; }
3671 rm -f confinc confmf
3672
3673 # Check whether --enable-dependency-tracking was given.
3674 if test "${enable_dependency_tracking+set}" = set; then :
3675 enableval=$enable_dependency_tracking;
3676 fi
3677
3678 if test "x$enable_dependency_tracking" != xno; then
3679 am_depcomp="$ac_aux_dir/depcomp"
3680 AMDEPBACKSLASH='\'
3681 fi
3682 if test "x$enable_dependency_tracking" != xno; then
3683 AMDEP_TRUE=
3684 AMDEP_FALSE='#'
3685 else
3686 AMDEP_TRUE='#'
3687 AMDEP_FALSE=
3688 fi
3689
3690
3691
3692 depcc="$CC" am_compiler_list=
3693
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3695 $as_echo_n "checking dependency style of $depcc... " >&6; }
3696 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3697 $as_echo_n "(cached) " >&6
3698 else
3699 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3700 # We make a subdir and do the tests there. Otherwise we can end up
3701 # making bogus files that we don't know about and never remove. For
3702 # instance it was reported that on HP-UX the gcc test will end up
3703 # making a dummy file named `D' -- because `-MD' means `put the output
3704 # in D'.
3705 mkdir conftest.dir
3706 # Copy depcomp to subdir because otherwise we won't find it if we're
3707 # using a relative directory.
3708 cp "$am_depcomp" conftest.dir
3709 cd conftest.dir
3710 # We will build objects and dependencies in a subdirectory because
3711 # it helps to detect inapplicable dependency modes. For instance
3712 # both Tru64's cc and ICC support -MD to output dependencies as a
3713 # side effect of compilation, but ICC will put the dependencies in
3714 # the current directory while Tru64 will put them in the object
3715 # directory.
3716 mkdir sub
3717
3718 am_cv_CC_dependencies_compiler_type=none
3719 if test "$am_compiler_list" = ""; then
3720 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3721 fi
3722 am__universal=false
3723 case " $depcc " in #(
3724 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3725 esac
3726
3727 for depmode in $am_compiler_list; do
3728 # Setup a source with many dependencies, because some compilers
3729 # like to wrap large dependency lists on column 80 (with \), and
3730 # we should not choose a depcomp mode which is confused by this.
3731 #
3732 # We need to recreate these files for each test, as the compiler may
3733 # overwrite some of them when testing with obscure command lines.
3734 # This happens at least with the AIX C compiler.
3735 : > sub/conftest.c
3736 for i in 1 2 3 4 5 6; do
3737 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3738 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3739 # Solaris 8's {/usr,}/bin/sh.
3740 touch sub/conftst$i.h
3741 done
3742 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3743
3744 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3745 # mode. It turns out that the SunPro C++ compiler does not properly
3746 # handle `-M -o', and we need to detect this. Also, some Intel
3747 # versions had trouble with output in subdirs
3748 am__obj=sub/conftest.${OBJEXT-o}
3749 am__minus_obj="-o $am__obj"
3750 case $depmode in
3751 gcc)
3752 # This depmode causes a compiler race in universal mode.
3753 test "$am__universal" = false || continue
3754 ;;
3755 nosideeffect)
3756 # after this tag, mechanisms are not by side-effect, so they'll
3757 # only be used when explicitly requested
3758 if test "x$enable_dependency_tracking" = xyes; then
3759 continue
3760 else
3761 break
3762 fi
3763 ;;
3764 msvisualcpp | msvcmsys)
3765 # This compiler won't grok `-c -o', but also, the minuso test has
3766 # not run yet. These depmodes are late enough in the game, and
3767 # so weak that their functioning should not be impacted.
3768 am__obj=conftest.${OBJEXT-o}
3769 am__minus_obj=
3770 ;;
3771 none) break ;;
3772 esac
3773 if depmode=$depmode \
3774 source=sub/conftest.c object=$am__obj \
3775 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3776 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3777 >/dev/null 2>conftest.err &&
3778 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3779 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3780 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3781 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3782 # icc doesn't choke on unknown options, it will just issue warnings
3783 # or remarks (even with -Werror). So we grep stderr for any message
3784 # that says an option was ignored or not supported.
3785 # When given -MP, icc 7.0 and 7.1 complain thusly:
3786 # icc: Command line warning: ignoring option '-M'; no argument required
3787 # The diagnosis changed in icc 8.0:
3788 # icc: Command line remark: option '-MP' not supported
3789 if (grep 'ignoring option' conftest.err ||
3790 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3791 am_cv_CC_dependencies_compiler_type=$depmode
3792 break
3793 fi
3794 fi
3795 done
3796
3797 cd ..
3798 rm -rf conftest.dir
3799 else
3800 am_cv_CC_dependencies_compiler_type=none
3801 fi
3802
3803 fi
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3805 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3806 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3807
3808 if
3809 test "x$enable_dependency_tracking" != xno \
3810 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3811 am__fastdepCC_TRUE=
3812 am__fastdepCC_FALSE='#'
3813 else
3814 am__fastdepCC_TRUE='#'
3815 am__fastdepCC_FALSE=
3816 fi
3817
3818
3819
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3821 $as_echo_n "checking for library containing strerror... " >&6; }
3822 if test "${ac_cv_search_strerror+set}" = set; then :
3823 $as_echo_n "(cached) " >&6
3824 else
3825 ac_func_search_save_LIBS=$LIBS
3826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3827 /* end confdefs.h. */
3828
3829 /* Override any GCC internal prototype to avoid an error.
3830 Use char because int might match the return type of a GCC
3831 builtin and then its argument prototype would still apply. */
3832 #ifdef __cplusplus
3833 extern "C"
3834 #endif
3835 char strerror ();
3836 int
3837 main ()
3838 {
3839 return strerror ();
3840 ;
3841 return 0;
3842 }
3843 _ACEOF
3844 for ac_lib in '' cposix; do
3845 if test -z "$ac_lib"; then
3846 ac_res="none required"
3847 else
3848 ac_res=-l$ac_lib
3849 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3850 fi
3851 if ac_fn_c_try_link "$LINENO"; then :
3852 ac_cv_search_strerror=$ac_res
3853 fi
3854 rm -f core conftest.err conftest.$ac_objext \
3855 conftest$ac_exeext
3856 if test "${ac_cv_search_strerror+set}" = set; then :
3857 break
3858 fi
3859 done
3860 if test "${ac_cv_search_strerror+set}" = set; then :
3861
3862 else
3863 ac_cv_search_strerror=no
3864 fi
3865 rm conftest.$ac_ext
3866 LIBS=$ac_func_search_save_LIBS
3867 fi
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3869 $as_echo "$ac_cv_search_strerror" >&6; }
3870 ac_res=$ac_cv_search_strerror
3871 if test "$ac_res" != no; then :
3872 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3873
3874 fi
3875
3876 case `pwd` in
3877 *\ * | *\ *)
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3879 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3880 esac
3881
3882
3883
3884 macro_version='2.2.6b'
3885 macro_revision='1.3017'
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899 ltmain="$ac_aux_dir/ltmain.sh"
3900
3901 # Make sure we can run config.sub.
3902 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3903 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3904
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3906 $as_echo_n "checking build system type... " >&6; }
3907 if test "${ac_cv_build+set}" = set; then :
3908 $as_echo_n "(cached) " >&6
3909 else
3910 ac_build_alias=$build_alias
3911 test "x$ac_build_alias" = x &&
3912 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3913 test "x$ac_build_alias" = x &&
3914 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3915 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3916 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3917
3918 fi
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3920 $as_echo "$ac_cv_build" >&6; }
3921 case $ac_cv_build in
3922 *-*-*) ;;
3923 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3924 esac
3925 build=$ac_cv_build
3926 ac_save_IFS=$IFS; IFS='-'
3927 set x $ac_cv_build
3928 shift
3929 build_cpu=$1
3930 build_vendor=$2
3931 shift; shift
3932 # Remember, the first character of IFS is used to create $*,
3933 # except with old shells:
3934 build_os=$*
3935 IFS=$ac_save_IFS
3936 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3937
3938
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3940 $as_echo_n "checking host system type... " >&6; }
3941 if test "${ac_cv_host+set}" = set; then :
3942 $as_echo_n "(cached) " >&6
3943 else
3944 if test "x$host_alias" = x; then
3945 ac_cv_host=$ac_cv_build
3946 else
3947 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3948 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3949 fi
3950
3951 fi
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3953 $as_echo "$ac_cv_host" >&6; }
3954 case $ac_cv_host in
3955 *-*-*) ;;
3956 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3957 esac
3958 host=$ac_cv_host
3959 ac_save_IFS=$IFS; IFS='-'
3960 set x $ac_cv_host
3961 shift
3962 host_cpu=$1
3963 host_vendor=$2
3964 shift; shift
3965 # Remember, the first character of IFS is used to create $*,
3966 # except with old shells:
3967 host_os=$*
3968 IFS=$ac_save_IFS
3969 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3970
3971
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3973 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3974 if test "${ac_cv_path_SED+set}" = set; then :
3975 $as_echo_n "(cached) " >&6
3976 else
3977 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3978 for ac_i in 1 2 3 4 5 6 7; do
3979 ac_script="$ac_script$as_nl$ac_script"
3980 done
3981 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3982 { ac_script=; unset ac_script;}
3983 if test -z "$SED"; then
3984 ac_path_SED_found=false
3985 # Loop through the user's path and test for each of PROGNAME-LIST
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 for as_dir in $PATH
3988 do
3989 IFS=$as_save_IFS
3990 test -z "$as_dir" && as_dir=.
3991 for ac_prog in sed gsed; do
3992 for ac_exec_ext in '' $ac_executable_extensions; do
3993 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3994 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3995 # Check for GNU ac_path_SED and select it if it is found.
3996 # Check for GNU $ac_path_SED
3997 case `"$ac_path_SED" --version 2>&1` in
3998 *GNU*)
3999 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4000 *)
4001 ac_count=0
4002 $as_echo_n 0123456789 >"conftest.in"
4003 while :
4004 do
4005 cat "conftest.in" "conftest.in" >"conftest.tmp"
4006 mv "conftest.tmp" "conftest.in"
4007 cp "conftest.in" "conftest.nl"
4008 $as_echo '' >> "conftest.nl"
4009 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4010 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4011 as_fn_arith $ac_count + 1 && ac_count=$as_val
4012 if test $ac_count -gt ${ac_path_SED_max-0}; then
4013 # Best one so far, save it but keep looking for a better one
4014 ac_cv_path_SED="$ac_path_SED"
4015 ac_path_SED_max=$ac_count
4016 fi
4017 # 10*(2^10) chars as input seems more than enough
4018 test $ac_count -gt 10 && break
4019 done
4020 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4021 esac
4022
4023 $ac_path_SED_found && break 3
4024 done
4025 done
4026 done
4027 IFS=$as_save_IFS
4028 if test -z "$ac_cv_path_SED"; then
4029 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4030 fi
4031 else
4032 ac_cv_path_SED=$SED
4033 fi
4034
4035 fi
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4037 $as_echo "$ac_cv_path_SED" >&6; }
4038 SED="$ac_cv_path_SED"
4039 rm -f conftest.sed
4040
4041 test -z "$SED" && SED=sed
4042 Xsed="$SED -e 1s/^X//"
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4055 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4056 if test "${ac_cv_path_GREP+set}" = set; then :
4057 $as_echo_n "(cached) " >&6
4058 else
4059 if test -z "$GREP"; then
4060 ac_path_GREP_found=false
4061 # Loop through the user's path and test for each of PROGNAME-LIST
4062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4064 do
4065 IFS=$as_save_IFS
4066 test -z "$as_dir" && as_dir=.
4067 for ac_prog in grep ggrep; do
4068 for ac_exec_ext in '' $ac_executable_extensions; do
4069 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4070 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4071 # Check for GNU ac_path_GREP and select it if it is found.
4072 # Check for GNU $ac_path_GREP
4073 case `"$ac_path_GREP" --version 2>&1` in
4074 *GNU*)
4075 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4076 *)
4077 ac_count=0
4078 $as_echo_n 0123456789 >"conftest.in"
4079 while :
4080 do
4081 cat "conftest.in" "conftest.in" >"conftest.tmp"
4082 mv "conftest.tmp" "conftest.in"
4083 cp "conftest.in" "conftest.nl"
4084 $as_echo 'GREP' >> "conftest.nl"
4085 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4086 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4087 as_fn_arith $ac_count + 1 && ac_count=$as_val
4088 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4089 # Best one so far, save it but keep looking for a better one
4090 ac_cv_path_GREP="$ac_path_GREP"
4091 ac_path_GREP_max=$ac_count
4092 fi
4093 # 10*(2^10) chars as input seems more than enough
4094 test $ac_count -gt 10 && break
4095 done
4096 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4097 esac
4098
4099 $ac_path_GREP_found && break 3
4100 done
4101 done
4102 done
4103 IFS=$as_save_IFS
4104 if test -z "$ac_cv_path_GREP"; then
4105 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4106 fi
4107 else
4108 ac_cv_path_GREP=$GREP
4109 fi
4110
4111 fi
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4113 $as_echo "$ac_cv_path_GREP" >&6; }
4114 GREP="$ac_cv_path_GREP"
4115
4116
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4118 $as_echo_n "checking for egrep... " >&6; }
4119 if test "${ac_cv_path_EGREP+set}" = set; then :
4120 $as_echo_n "(cached) " >&6
4121 else
4122 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4123 then ac_cv_path_EGREP="$GREP -E"
4124 else
4125 if test -z "$EGREP"; then
4126 ac_path_EGREP_found=false
4127 # Loop through the user's path and test for each of PROGNAME-LIST
4128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4130 do
4131 IFS=$as_save_IFS
4132 test -z "$as_dir" && as_dir=.
4133 for ac_prog in egrep; do
4134 for ac_exec_ext in '' $ac_executable_extensions; do
4135 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4136 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4137 # Check for GNU ac_path_EGREP and select it if it is found.
4138 # Check for GNU $ac_path_EGREP
4139 case `"$ac_path_EGREP" --version 2>&1` in
4140 *GNU*)
4141 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4142 *)
4143 ac_count=0
4144 $as_echo_n 0123456789 >"conftest.in"
4145 while :
4146 do
4147 cat "conftest.in" "conftest.in" >"conftest.tmp"
4148 mv "conftest.tmp" "conftest.in"
4149 cp "conftest.in" "conftest.nl"
4150 $as_echo 'EGREP' >> "conftest.nl"
4151 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4152 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4153 as_fn_arith $ac_count + 1 && ac_count=$as_val
4154 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4155 # Best one so far, save it but keep looking for a better one
4156 ac_cv_path_EGREP="$ac_path_EGREP"
4157 ac_path_EGREP_max=$ac_count
4158 fi
4159 # 10*(2^10) chars as input seems more than enough
4160 test $ac_count -gt 10 && break
4161 done
4162 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4163 esac
4164
4165 $ac_path_EGREP_found && break 3
4166 done
4167 done
4168 done
4169 IFS=$as_save_IFS
4170 if test -z "$ac_cv_path_EGREP"; then
4171 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4172 fi
4173 else
4174 ac_cv_path_EGREP=$EGREP
4175 fi
4176
4177 fi
4178 fi
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4180 $as_echo "$ac_cv_path_EGREP" >&6; }
4181 EGREP="$ac_cv_path_EGREP"
4182
4183
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4185 $as_echo_n "checking for fgrep... " >&6; }
4186 if test "${ac_cv_path_FGREP+set}" = set; then :
4187 $as_echo_n "(cached) " >&6
4188 else
4189 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4190 then ac_cv_path_FGREP="$GREP -F"
4191 else
4192 if test -z "$FGREP"; then
4193 ac_path_FGREP_found=false
4194 # Loop through the user's path and test for each of PROGNAME-LIST
4195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4197 do
4198 IFS=$as_save_IFS
4199 test -z "$as_dir" && as_dir=.
4200 for ac_prog in fgrep; do
4201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4203 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4204 # Check for GNU ac_path_FGREP and select it if it is found.
4205 # Check for GNU $ac_path_FGREP
4206 case `"$ac_path_FGREP" --version 2>&1` in
4207 *GNU*)
4208 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4209 *)
4210 ac_count=0
4211 $as_echo_n 0123456789 >"conftest.in"
4212 while :
4213 do
4214 cat "conftest.in" "conftest.in" >"conftest.tmp"
4215 mv "conftest.tmp" "conftest.in"
4216 cp "conftest.in" "conftest.nl"
4217 $as_echo 'FGREP' >> "conftest.nl"
4218 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4219 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4220 as_fn_arith $ac_count + 1 && ac_count=$as_val
4221 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4222 # Best one so far, save it but keep looking for a better one
4223 ac_cv_path_FGREP="$ac_path_FGREP"
4224 ac_path_FGREP_max=$ac_count
4225 fi
4226 # 10*(2^10) chars as input seems more than enough
4227 test $ac_count -gt 10 && break
4228 done
4229 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4230 esac
4231
4232 $ac_path_FGREP_found && break 3
4233 done
4234 done
4235 done
4236 IFS=$as_save_IFS
4237 if test -z "$ac_cv_path_FGREP"; then
4238 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4239 fi
4240 else
4241 ac_cv_path_FGREP=$FGREP
4242 fi
4243
4244 fi
4245 fi
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4247 $as_echo "$ac_cv_path_FGREP" >&6; }
4248 FGREP="$ac_cv_path_FGREP"
4249
4250
4251 test -z "$GREP" && GREP=grep
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271 # Check whether --with-gnu-ld was given.
4272 if test "${with_gnu_ld+set}" = set; then :
4273 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4274 else
4275 with_gnu_ld=no
4276 fi
4277
4278 ac_prog=ld
4279 if test "$GCC" = yes; then
4280 # Check if gcc -print-prog-name=ld gives a path.
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4282 $as_echo_n "checking for ld used by $CC... " >&6; }
4283 case $host in
4284 *-*-mingw*)
4285 # gcc leaves a trailing carriage return which upsets mingw
4286 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4287 *)
4288 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4289 esac
4290 case $ac_prog in
4291 # Accept absolute paths.
4292 [\\/]* | ?:[\\/]*)
4293 re_direlt='/[^/][^/]*/\.\./'
4294 # Canonicalize the pathname of ld
4295 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4296 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4297 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4298 done
4299 test -z "$LD" && LD="$ac_prog"
4300 ;;
4301 "")
4302 # If it fails, then pretend we aren't using GCC.
4303 ac_prog=ld
4304 ;;
4305 *)
4306 # If it is relative, then search for the first ld in PATH.
4307 with_gnu_ld=unknown
4308 ;;
4309 esac
4310 elif test "$with_gnu_ld" = yes; then
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4312 $as_echo_n "checking for GNU ld... " >&6; }
4313 else
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4315 $as_echo_n "checking for non-GNU ld... " >&6; }
4316 fi
4317 if test "${lt_cv_path_LD+set}" = set; then :
4318 $as_echo_n "(cached) " >&6
4319 else
4320 if test -z "$LD"; then
4321 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4322 for ac_dir in $PATH; do
4323 IFS="$lt_save_ifs"
4324 test -z "$ac_dir" && ac_dir=.
4325 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4326 lt_cv_path_LD="$ac_dir/$ac_prog"
4327 # Check to see if the program is GNU ld. I'd rather use --version,
4328 # but apparently some variants of GNU ld only accept -v.
4329 # Break only if it was the GNU/non-GNU ld that we prefer.
4330 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4331 *GNU* | *'with BFD'*)
4332 test "$with_gnu_ld" != no && break
4333 ;;
4334 *)
4335 test "$with_gnu_ld" != yes && break
4336 ;;
4337 esac
4338 fi
4339 done
4340 IFS="$lt_save_ifs"
4341 else
4342 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4343 fi
4344 fi
4345
4346 LD="$lt_cv_path_LD"
4347 if test -n "$LD"; then
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4349 $as_echo "$LD" >&6; }
4350 else
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4352 $as_echo "no" >&6; }
4353 fi
4354 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4356 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4357 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4358 $as_echo_n "(cached) " >&6
4359 else
4360 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4361 case `$LD -v 2>&1 </dev/null` in
4362 *GNU* | *'with BFD'*)
4363 lt_cv_prog_gnu_ld=yes
4364 ;;
4365 *)
4366 lt_cv_prog_gnu_ld=no
4367 ;;
4368 esac
4369 fi
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4371 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4372 with_gnu_ld=$lt_cv_prog_gnu_ld
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4383 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4384 if test "${lt_cv_path_NM+set}" = set; then :
4385 $as_echo_n "(cached) " >&6
4386 else
4387 if test -n "$NM"; then
4388 # Let the user override the test.
4389 lt_cv_path_NM="$NM"
4390 else
4391 lt_nm_to_check="${ac_tool_prefix}nm"
4392 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4393 lt_nm_to_check="$lt_nm_to_check nm"
4394 fi
4395 for lt_tmp_nm in $lt_nm_to_check; do
4396 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4397 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4398 IFS="$lt_save_ifs"
4399 test -z "$ac_dir" && ac_dir=.
4400 tmp_nm="$ac_dir/$lt_tmp_nm"
4401 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4402 # Check to see if the nm accepts a BSD-compat flag.
4403 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4404 # nm: unknown option "B" ignored
4405 # Tru64's nm complains that /dev/null is an invalid object file
4406 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4407 */dev/null* | *'Invalid file or object type'*)
4408 lt_cv_path_NM="$tmp_nm -B"
4409 break
4410 ;;
4411 *)
4412 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4413 */dev/null*)
4414 lt_cv_path_NM="$tmp_nm -p"
4415 break
4416 ;;
4417 *)
4418 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4419 continue # so that we can try to find one that supports BSD flags
4420 ;;
4421 esac
4422 ;;
4423 esac
4424 fi
4425 done
4426 IFS="$lt_save_ifs"
4427 done
4428 : ${lt_cv_path_NM=no}
4429 fi
4430 fi
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4432 $as_echo "$lt_cv_path_NM" >&6; }
4433 if test "$lt_cv_path_NM" != "no"; then
4434 NM="$lt_cv_path_NM"
4435 else
4436 # Didn't find any BSD compatible name lister, look for dumpbin.
4437 if test -n "$ac_tool_prefix"; then
4438 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4439 do
4440 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4441 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4443 $as_echo_n "checking for $ac_word... " >&6; }
4444 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4445 $as_echo_n "(cached) " >&6
4446 else
4447 if test -n "$DUMPBIN"; then
4448 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4449 else
4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 for as_dir in $PATH
4452 do
4453 IFS=$as_save_IFS
4454 test -z "$as_dir" && as_dir=.
4455 for ac_exec_ext in '' $ac_executable_extensions; do
4456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4457 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4459 break 2
4460 fi
4461 done
4462 done
4463 IFS=$as_save_IFS
4464
4465 fi
4466 fi
4467 DUMPBIN=$ac_cv_prog_DUMPBIN
4468 if test -n "$DUMPBIN"; then
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4470 $as_echo "$DUMPBIN" >&6; }
4471 else
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4473 $as_echo "no" >&6; }
4474 fi
4475
4476
4477 test -n "$DUMPBIN" && break
4478 done
4479 fi
4480 if test -z "$DUMPBIN"; then
4481 ac_ct_DUMPBIN=$DUMPBIN
4482 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4483 do
4484 # Extract the first word of "$ac_prog", so it can be a program name with args.
4485 set dummy $ac_prog; ac_word=$2
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4487 $as_echo_n "checking for $ac_word... " >&6; }
4488 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4489 $as_echo_n "(cached) " >&6
4490 else
4491 if test -n "$ac_ct_DUMPBIN"; then
4492 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4493 else
4494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495 for as_dir in $PATH
4496 do
4497 IFS=$as_save_IFS
4498 test -z "$as_dir" && as_dir=.
4499 for ac_exec_ext in '' $ac_executable_extensions; do
4500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4501 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 break 2
4504 fi
4505 done
4506 done
4507 IFS=$as_save_IFS
4508
4509 fi
4510 fi
4511 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4512 if test -n "$ac_ct_DUMPBIN"; then
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4514 $as_echo "$ac_ct_DUMPBIN" >&6; }
4515 else
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4517 $as_echo "no" >&6; }
4518 fi
4519
4520
4521 test -n "$ac_ct_DUMPBIN" && break
4522 done
4523
4524 if test "x$ac_ct_DUMPBIN" = x; then
4525 DUMPBIN=":"
4526 else
4527 case $cross_compiling:$ac_tool_warned in
4528 yes:)
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4531 ac_tool_warned=yes ;;
4532 esac
4533 DUMPBIN=$ac_ct_DUMPBIN
4534 fi
4535 fi
4536
4537
4538 if test "$DUMPBIN" != ":"; then
4539 NM="$DUMPBIN"
4540 fi
4541 fi
4542 test -z "$NM" && NM=nm
4543
4544
4545
4546
4547
4548
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4550 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4551 if test "${lt_cv_nm_interface+set}" = set; then :
4552 $as_echo_n "(cached) " >&6
4553 else
4554 lt_cv_nm_interface="BSD nm"
4555 echo "int some_variable = 0;" > conftest.$ac_ext
4556 (eval echo "\"\$as_me:4556: $ac_compile\"" >&5)
4557 (eval "$ac_compile" 2>conftest.err)
4558 cat conftest.err >&5
4559 (eval echo "\"\$as_me:4559: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4560 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4561 cat conftest.err >&5
4562 (eval echo "\"\$as_me:4562: output\"" >&5)
4563 cat conftest.out >&5
4564 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4565 lt_cv_nm_interface="MS dumpbin"
4566 fi
4567 rm -f conftest*
4568 fi
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4570 $as_echo "$lt_cv_nm_interface" >&6; }
4571
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4573 $as_echo_n "checking whether ln -s works... " >&6; }
4574 LN_S=$as_ln_s
4575 if test "$LN_S" = "ln -s"; then
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4577 $as_echo "yes" >&6; }
4578 else
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4580 $as_echo "no, using $LN_S" >&6; }
4581 fi
4582
4583 # find the maximum length of command line arguments
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4585 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4586 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4587 $as_echo_n "(cached) " >&6
4588 else
4589 i=0
4590 teststring="ABCD"
4591
4592 case $build_os in
4593 msdosdjgpp*)
4594 # On DJGPP, this test can blow up pretty badly due to problems in libc
4595 # (any single argument exceeding 2000 bytes causes a buffer overrun
4596 # during glob expansion). Even if it were fixed, the result of this
4597 # check would be larger than it should be.
4598 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4599 ;;
4600
4601 gnu*)
4602 # Under GNU Hurd, this test is not required because there is
4603 # no limit to the length of command line arguments.
4604 # Libtool will interpret -1 as no limit whatsoever
4605 lt_cv_sys_max_cmd_len=-1;
4606 ;;
4607
4608 cygwin* | mingw* | cegcc*)
4609 # On Win9x/ME, this test blows up -- it succeeds, but takes
4610 # about 5 minutes as the teststring grows exponentially.
4611 # Worse, since 9x/ME are not pre-emptively multitasking,
4612 # you end up with a "frozen" computer, even though with patience
4613 # the test eventually succeeds (with a max line length of 256k).
4614 # Instead, let's just punt: use the minimum linelength reported by
4615 # all of the supported platforms: 8192 (on NT/2K/XP).
4616 lt_cv_sys_max_cmd_len=8192;
4617 ;;
4618
4619 amigaos*)
4620 # On AmigaOS with pdksh, this test takes hours, literally.
4621 # So we just punt and use a minimum line length of 8192.
4622 lt_cv_sys_max_cmd_len=8192;
4623 ;;
4624
4625 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4626 # This has been around since 386BSD, at least. Likely further.
4627 if test -x /sbin/sysctl; then
4628 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4629 elif test -x /usr/sbin/sysctl; then
4630 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4631 else
4632 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4633 fi
4634 # And add a safety zone
4635 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4636 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4637 ;;
4638
4639 interix*)
4640 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4641 lt_cv_sys_max_cmd_len=196608
4642 ;;
4643
4644 osf*)
4645 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4646 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4647 # nice to cause kernel panics so lets avoid the loop below.
4648 # First set a reasonable default.
4649 lt_cv_sys_max_cmd_len=16384
4650 #
4651 if test -x /sbin/sysconfig; then
4652 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4653 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4654 esac
4655 fi
4656 ;;
4657 sco3.2v5*)
4658 lt_cv_sys_max_cmd_len=102400
4659 ;;
4660 sysv5* | sco5v6* | sysv4.2uw2*)
4661 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4662 if test -n "$kargmax"; then
4663 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4664 else
4665 lt_cv_sys_max_cmd_len=32768
4666 fi
4667 ;;
4668 *)
4669 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4670 if test -n "$lt_cv_sys_max_cmd_len"; then
4671 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4672 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4673 else
4674 # Make teststring a little bigger before we do anything with it.
4675 # a 1K string should be a reasonable start.
4676 for i in 1 2 3 4 5 6 7 8 ; do
4677 teststring=$teststring$teststring
4678 done
4679 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4680 # If test is not a shell built-in, we'll probably end up computing a
4681 # maximum length that is only half of the actual maximum length, but
4682 # we can't tell.
4683 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4684 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4685 test $i != 17 # 1/2 MB should be enough
4686 do
4687 i=`expr $i + 1`
4688 teststring=$teststring$teststring
4689 done
4690 # Only check the string length outside the loop.
4691 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4692 teststring=
4693 # Add a significant safety factor because C++ compilers can tack on
4694 # massive amounts of additional arguments before passing them to the
4695 # linker. It appears as though 1/2 is a usable value.
4696 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4697 fi
4698 ;;
4699 esac
4700
4701 fi
4702
4703 if test -n $lt_cv_sys_max_cmd_len ; then
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4705 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4706 else
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4708 $as_echo "none" >&6; }
4709 fi
4710 max_cmd_len=$lt_cv_sys_max_cmd_len
4711
4712
4713
4714
4715
4716
4717 : ${CP="cp -f"}
4718 : ${MV="mv -f"}
4719 : ${RM="rm -f"}
4720
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4722 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4723 # Try some XSI features
4724 xsi_shell=no
4725 ( _lt_dummy="a/b/c"
4726 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4727 = c,a/b,, \
4728 && eval 'test $(( 1 + 1 )) -eq 2 \
4729 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4730 && xsi_shell=yes
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4732 $as_echo "$xsi_shell" >&6; }
4733
4734
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4736 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4737 lt_shell_append=no
4738 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4739 >/dev/null 2>&1 \
4740 && lt_shell_append=yes
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4742 $as_echo "$lt_shell_append" >&6; }
4743
4744
4745 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4746 lt_unset=unset
4747 else
4748 lt_unset=false
4749 fi
4750
4751
4752
4753
4754
4755 # test EBCDIC or ASCII
4756 case `echo X|tr X '\101'` in
4757 A) # ASCII based system
4758 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4759 lt_SP2NL='tr \040 \012'
4760 lt_NL2SP='tr \015\012 \040\040'
4761 ;;
4762 *) # EBCDIC based system
4763 lt_SP2NL='tr \100 \n'
4764 lt_NL2SP='tr \r\n \100\100'
4765 ;;
4766 esac
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4777 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4778 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4779 $as_echo_n "(cached) " >&6
4780 else
4781 lt_cv_ld_reload_flag='-r'
4782 fi
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4784 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4785 reload_flag=$lt_cv_ld_reload_flag
4786 case $reload_flag in
4787 "" | " "*) ;;
4788 *) reload_flag=" $reload_flag" ;;
4789 esac
4790 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4791 case $host_os in
4792 darwin*)
4793 if test "$GCC" = yes; then
4794 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4795 else
4796 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4797 fi
4798 ;;
4799 esac
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809 if test -n "$ac_tool_prefix"; then
4810 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4811 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4813 $as_echo_n "checking for $ac_word... " >&6; }
4814 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4815 $as_echo_n "(cached) " >&6
4816 else
4817 if test -n "$OBJDUMP"; then
4818 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4819 else
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH
4822 do
4823 IFS=$as_save_IFS
4824 test -z "$as_dir" && as_dir=.
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4827 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4829 break 2
4830 fi
4831 done
4832 done
4833 IFS=$as_save_IFS
4834
4835 fi
4836 fi
4837 OBJDUMP=$ac_cv_prog_OBJDUMP
4838 if test -n "$OBJDUMP"; then
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4840 $as_echo "$OBJDUMP" >&6; }
4841 else
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4843 $as_echo "no" >&6; }
4844 fi
4845
4846
4847 fi
4848 if test -z "$ac_cv_prog_OBJDUMP"; then
4849 ac_ct_OBJDUMP=$OBJDUMP
4850 # Extract the first word of "objdump", so it can be a program name with args.
4851 set dummy objdump; ac_word=$2
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4853 $as_echo_n "checking for $ac_word... " >&6; }
4854 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4855 $as_echo_n "(cached) " >&6
4856 else
4857 if test -n "$ac_ct_OBJDUMP"; then
4858 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4859 else
4860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861 for as_dir in $PATH
4862 do
4863 IFS=$as_save_IFS
4864 test -z "$as_dir" && as_dir=.
4865 for ac_exec_ext in '' $ac_executable_extensions; do
4866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4867 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4869 break 2
4870 fi
4871 done
4872 done
4873 IFS=$as_save_IFS
4874
4875 fi
4876 fi
4877 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4878 if test -n "$ac_ct_OBJDUMP"; then
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4880 $as_echo "$ac_ct_OBJDUMP" >&6; }
4881 else
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4883 $as_echo "no" >&6; }
4884 fi
4885
4886 if test "x$ac_ct_OBJDUMP" = x; then
4887 OBJDUMP="false"
4888 else
4889 case $cross_compiling:$ac_tool_warned in
4890 yes:)
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4893 ac_tool_warned=yes ;;
4894 esac
4895 OBJDUMP=$ac_ct_OBJDUMP
4896 fi
4897 else
4898 OBJDUMP="$ac_cv_prog_OBJDUMP"
4899 fi
4900
4901 test -z "$OBJDUMP" && OBJDUMP=objdump
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4912 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4913 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4914 $as_echo_n "(cached) " >&6
4915 else
4916 lt_cv_file_magic_cmd='$MAGIC_CMD'
4917 lt_cv_file_magic_test_file=
4918 lt_cv_deplibs_check_method='unknown'
4919 # Need to set the preceding variable on all platforms that support
4920 # interlibrary dependencies.
4921 # 'none' -- dependencies not supported.
4922 # `unknown' -- same as none, but documents that we really don't know.
4923 # 'pass_all' -- all dependencies passed with no checks.
4924 # 'test_compile' -- check by making test program.
4925 # 'file_magic [[regex]]' -- check by looking for files in library path
4926 # which responds to the $file_magic_cmd with a given extended regex.
4927 # If you have `file' or equivalent on your system and you're not sure
4928 # whether `pass_all' will *always* work, you probably want this one.
4929
4930 case $host_os in
4931 aix[4-9]*)
4932 lt_cv_deplibs_check_method=pass_all
4933 ;;
4934
4935 beos*)
4936 lt_cv_deplibs_check_method=pass_all
4937 ;;
4938
4939 bsdi[45]*)
4940 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4941 lt_cv_file_magic_cmd='/usr/bin/file -L'
4942 lt_cv_file_magic_test_file=/shlib/libc.so
4943 ;;
4944
4945 cygwin*)
4946 # func_win32_libid is a shell function defined in ltmain.sh
4947 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4948 lt_cv_file_magic_cmd='func_win32_libid'
4949 ;;
4950
4951 mingw* | pw32*)
4952 # Base MSYS/MinGW do not provide the 'file' command needed by
4953 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4954 # unless we find 'file', for example because we are cross-compiling.
4955 if ( file / ) >/dev/null 2>&1; then
4956 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4957 lt_cv_file_magic_cmd='func_win32_libid'
4958 else
4959 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4960 lt_cv_file_magic_cmd='$OBJDUMP -f'
4961 fi
4962 ;;
4963
4964 cegcc)
4965 # use the weaker test based on 'objdump'. See mingw*.
4966 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4967 lt_cv_file_magic_cmd='$OBJDUMP -f'
4968 ;;
4969
4970 darwin* | rhapsody*)
4971 lt_cv_deplibs_check_method=pass_all
4972 ;;
4973
4974 freebsd* | dragonfly*)
4975 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4976 case $host_cpu in
4977 i*86 )
4978 # Not sure whether the presence of OpenBSD here was a mistake.
4979 # Let's accept both of them until this is cleared up.
4980 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4981 lt_cv_file_magic_cmd=/usr/bin/file
4982 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4983 ;;
4984 esac
4985 else
4986 lt_cv_deplibs_check_method=pass_all
4987 fi
4988 ;;
4989
4990 gnu*)
4991 lt_cv_deplibs_check_method=pass_all
4992 ;;
4993
4994 hpux10.20* | hpux11*)
4995 lt_cv_file_magic_cmd=/usr/bin/file
4996 case $host_cpu in
4997 ia64*)
4998 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4999 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5000 ;;
5001 hppa*64*)
5002 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]'
5003 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5004 ;;
5005 *)
5006 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5007 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5008 ;;
5009 esac
5010 ;;
5011
5012 interix[3-9]*)
5013 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5014 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5015 ;;
5016
5017 irix5* | irix6* | nonstopux*)
5018 case $LD in
5019 *-32|*"-32 ") libmagic=32-bit;;
5020 *-n32|*"-n32 ") libmagic=N32;;
5021 *-64|*"-64 ") libmagic=64-bit;;
5022 *) libmagic=never-match;;
5023 esac
5024 lt_cv_deplibs_check_method=pass_all
5025 ;;
5026
5027 # This must be Linux ELF.
5028 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5029 lt_cv_deplibs_check_method=pass_all
5030 ;;
5031
5032 netbsd* | netbsdelf*-gnu)
5033 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5034 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5035 else
5036 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5037 fi
5038 ;;
5039
5040 newos6*)
5041 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5042 lt_cv_file_magic_cmd=/usr/bin/file
5043 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5044 ;;
5045
5046 *nto* | *qnx*)
5047 lt_cv_deplibs_check_method=pass_all
5048 ;;
5049
5050 openbsd*)
5051 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5052 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5053 else
5054 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5055 fi
5056 ;;
5057
5058 osf3* | osf4* | osf5*)
5059 lt_cv_deplibs_check_method=pass_all
5060 ;;
5061
5062 rdos*)
5063 lt_cv_deplibs_check_method=pass_all
5064 ;;
5065
5066 solaris*)
5067 lt_cv_deplibs_check_method=pass_all
5068 ;;
5069
5070 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5071 lt_cv_deplibs_check_method=pass_all
5072 ;;
5073
5074 sysv4 | sysv4.3*)
5075 case $host_vendor in
5076 motorola)
5077 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]'
5078 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5079 ;;
5080 ncr)
5081 lt_cv_deplibs_check_method=pass_all
5082 ;;
5083 sequent)
5084 lt_cv_file_magic_cmd='/bin/file'
5085 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5086 ;;
5087 sni)
5088 lt_cv_file_magic_cmd='/bin/file'
5089 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5090 lt_cv_file_magic_test_file=/lib/libc.so
5091 ;;
5092 siemens)
5093 lt_cv_deplibs_check_method=pass_all
5094 ;;
5095 pc)
5096 lt_cv_deplibs_check_method=pass_all
5097 ;;
5098 esac
5099 ;;
5100
5101 tpf*)
5102 lt_cv_deplibs_check_method=pass_all
5103 ;;
5104 esac
5105
5106 fi
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5108 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5109 file_magic_cmd=$lt_cv_file_magic_cmd
5110 deplibs_check_method=$lt_cv_deplibs_check_method
5111 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124 if test -n "$ac_tool_prefix"; then
5125 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5126 set dummy ${ac_tool_prefix}ar; ac_word=$2
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5128 $as_echo_n "checking for $ac_word... " >&6; }
5129 if test "${ac_cv_prog_AR+set}" = set; then :
5130 $as_echo_n "(cached) " >&6
5131 else
5132 if test -n "$AR"; then
5133 ac_cv_prog_AR="$AR" # Let the user override the test.
5134 else
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 for as_dir in $PATH
5137 do
5138 IFS=$as_save_IFS
5139 test -z "$as_dir" && as_dir=.
5140 for ac_exec_ext in '' $ac_executable_extensions; do
5141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5142 ac_cv_prog_AR="${ac_tool_prefix}ar"
5143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5144 break 2
5145 fi
5146 done
5147 done
5148 IFS=$as_save_IFS
5149
5150 fi
5151 fi
5152 AR=$ac_cv_prog_AR
5153 if test -n "$AR"; then
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5155 $as_echo "$AR" >&6; }
5156 else
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5158 $as_echo "no" >&6; }
5159 fi
5160
5161
5162 fi
5163 if test -z "$ac_cv_prog_AR"; then
5164 ac_ct_AR=$AR
5165 # Extract the first word of "ar", so it can be a program name with args.
5166 set dummy ar; ac_word=$2
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5168 $as_echo_n "checking for $ac_word... " >&6; }
5169 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5170 $as_echo_n "(cached) " >&6
5171 else
5172 if test -n "$ac_ct_AR"; then
5173 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5174 else
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH
5177 do
5178 IFS=$as_save_IFS
5179 test -z "$as_dir" && as_dir=.
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5182 ac_cv_prog_ac_ct_AR="ar"
5183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5184 break 2
5185 fi
5186 done
5187 done
5188 IFS=$as_save_IFS
5189
5190 fi
5191 fi
5192 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5193 if test -n "$ac_ct_AR"; then
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5195 $as_echo "$ac_ct_AR" >&6; }
5196 else
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5198 $as_echo "no" >&6; }
5199 fi
5200
5201 if test "x$ac_ct_AR" = x; then
5202 AR="false"
5203 else
5204 case $cross_compiling:$ac_tool_warned in
5205 yes:)
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5208 ac_tool_warned=yes ;;
5209 esac
5210 AR=$ac_ct_AR
5211 fi
5212 else
5213 AR="$ac_cv_prog_AR"
5214 fi
5215
5216 test -z "$AR" && AR=ar
5217 test -z "$AR_FLAGS" && AR_FLAGS=cru
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229 if test -n "$ac_tool_prefix"; then
5230 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5231 set dummy ${ac_tool_prefix}strip; ac_word=$2
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5233 $as_echo_n "checking for $ac_word... " >&6; }
5234 if test "${ac_cv_prog_STRIP+set}" = set; then :
5235 $as_echo_n "(cached) " >&6
5236 else
5237 if test -n "$STRIP"; then
5238 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5239 else
5240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 for as_dir in $PATH
5242 do
5243 IFS=$as_save_IFS
5244 test -z "$as_dir" && as_dir=.
5245 for ac_exec_ext in '' $ac_executable_extensions; do
5246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5247 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5249 break 2
5250 fi
5251 done
5252 done
5253 IFS=$as_save_IFS
5254
5255 fi
5256 fi
5257 STRIP=$ac_cv_prog_STRIP
5258 if test -n "$STRIP"; then
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5260 $as_echo "$STRIP" >&6; }
5261 else
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5263 $as_echo "no" >&6; }
5264 fi
5265
5266
5267 fi
5268 if test -z "$ac_cv_prog_STRIP"; then
5269 ac_ct_STRIP=$STRIP
5270 # Extract the first word of "strip", so it can be a program name with args.
5271 set dummy strip; ac_word=$2
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5273 $as_echo_n "checking for $ac_word... " >&6; }
5274 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5275 $as_echo_n "(cached) " >&6
5276 else
5277 if test -n "$ac_ct_STRIP"; then
5278 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5279 else
5280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281 for as_dir in $PATH
5282 do
5283 IFS=$as_save_IFS
5284 test -z "$as_dir" && as_dir=.
5285 for ac_exec_ext in '' $ac_executable_extensions; do
5286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5287 ac_cv_prog_ac_ct_STRIP="strip"
5288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5289 break 2
5290 fi
5291 done
5292 done
5293 IFS=$as_save_IFS
5294
5295 fi
5296 fi
5297 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5298 if test -n "$ac_ct_STRIP"; then
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5300 $as_echo "$ac_ct_STRIP" >&6; }
5301 else
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5303 $as_echo "no" >&6; }
5304 fi
5305
5306 if test "x$ac_ct_STRIP" = x; then
5307 STRIP=":"
5308 else
5309 case $cross_compiling:$ac_tool_warned in
5310 yes:)
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5313 ac_tool_warned=yes ;;
5314 esac
5315 STRIP=$ac_ct_STRIP
5316 fi
5317 else
5318 STRIP="$ac_cv_prog_STRIP"
5319 fi
5320
5321 test -z "$STRIP" && STRIP=:
5322
5323
5324
5325
5326
5327
5328 if test -n "$ac_tool_prefix"; then
5329 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5330 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5332 $as_echo_n "checking for $ac_word... " >&6; }
5333 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5334 $as_echo_n "(cached) " >&6
5335 else
5336 if test -n "$RANLIB"; then
5337 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5338 else
5339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340 for as_dir in $PATH
5341 do
5342 IFS=$as_save_IFS
5343 test -z "$as_dir" && as_dir=.
5344 for ac_exec_ext in '' $ac_executable_extensions; do
5345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5346 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5348 break 2
5349 fi
5350 done
5351 done
5352 IFS=$as_save_IFS
5353
5354 fi
5355 fi
5356 RANLIB=$ac_cv_prog_RANLIB
5357 if test -n "$RANLIB"; then
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5359 $as_echo "$RANLIB" >&6; }
5360 else
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5362 $as_echo "no" >&6; }
5363 fi
5364
5365
5366 fi
5367 if test -z "$ac_cv_prog_RANLIB"; then
5368 ac_ct_RANLIB=$RANLIB
5369 # Extract the first word of "ranlib", so it can be a program name with args.
5370 set dummy ranlib; ac_word=$2
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5372 $as_echo_n "checking for $ac_word... " >&6; }
5373 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5374 $as_echo_n "(cached) " >&6
5375 else
5376 if test -n "$ac_ct_RANLIB"; then
5377 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5378 else
5379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380 for as_dir in $PATH
5381 do
5382 IFS=$as_save_IFS
5383 test -z "$as_dir" && as_dir=.
5384 for ac_exec_ext in '' $ac_executable_extensions; do
5385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5386 ac_cv_prog_ac_ct_RANLIB="ranlib"
5387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5388 break 2
5389 fi
5390 done
5391 done
5392 IFS=$as_save_IFS
5393
5394 fi
5395 fi
5396 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5397 if test -n "$ac_ct_RANLIB"; then
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5399 $as_echo "$ac_ct_RANLIB" >&6; }
5400 else
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5402 $as_echo "no" >&6; }
5403 fi
5404
5405 if test "x$ac_ct_RANLIB" = x; then
5406 RANLIB=":"
5407 else
5408 case $cross_compiling:$ac_tool_warned in
5409 yes:)
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5411 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5412 ac_tool_warned=yes ;;
5413 esac
5414 RANLIB=$ac_ct_RANLIB
5415 fi
5416 else
5417 RANLIB="$ac_cv_prog_RANLIB"
5418 fi
5419
5420 test -z "$RANLIB" && RANLIB=:
5421
5422
5423
5424
5425
5426
5427 # Determine commands to create old-style static archives.
5428 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5429 old_postinstall_cmds='chmod 644 $oldlib'
5430 old_postuninstall_cmds=
5431
5432 if test -n "$RANLIB"; then
5433 case $host_os in
5434 openbsd*)
5435 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5436 ;;
5437 *)
5438 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5439 ;;
5440 esac
5441 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5442 fi
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477 # If no C compiler was specified, use CC.
5478 LTCC=${LTCC-"$CC"}
5479
5480 # If no C compiler flags were specified, use CFLAGS.
5481 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5482
5483 # Allow CC to be a program name with arguments.
5484 compiler=$CC
5485
5486
5487 # Check for command to grab the raw symbol name followed by C symbol from nm.
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5489 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5490 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5491 $as_echo_n "(cached) " >&6
5492 else
5493
5494 # These are sane defaults that work on at least a few old systems.
5495 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5496
5497 # Character class describing NM global symbol codes.
5498 symcode='[BCDEGRST]'
5499
5500 # Regexp to match symbols that can be accessed directly from C.
5501 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5502
5503 # Define system-specific variables.
5504 case $host_os in
5505 aix*)
5506 symcode='[BCDT]'
5507 ;;
5508 cygwin* | mingw* | pw32* | cegcc*)
5509 symcode='[ABCDGISTW]'
5510 ;;
5511 hpux*)
5512 if test "$host_cpu" = ia64; then
5513 symcode='[ABCDEGRST]'
5514 fi
5515 ;;
5516 irix* | nonstopux*)
5517 symcode='[BCDEGRST]'
5518 ;;
5519 osf*)
5520 symcode='[BCDEGQRST]'
5521 ;;
5522 solaris*)
5523 symcode='[BDRT]'
5524 ;;
5525 sco3.2v5*)
5526 symcode='[DT]'
5527 ;;
5528 sysv4.2uw2*)
5529 symcode='[DT]'
5530 ;;
5531 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5532 symcode='[ABDT]'
5533 ;;
5534 sysv4)
5535 symcode='[DFNSTU]'
5536 ;;
5537 esac
5538
5539 # If we're using GNU nm, then use its standard symbol codes.
5540 case `$NM -V 2>&1` in
5541 *GNU* | *'with BFD'*)
5542 symcode='[ABCDGIRSTW]' ;;
5543 esac
5544
5545 # Transform an extracted symbol line into a proper C declaration.
5546 # Some systems (esp. on ia64) link data and code symbols differently,
5547 # so use this general approach.
5548 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5549
5550 # Transform an extracted symbol line into symbol name and symbol address
5551 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5552 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'"
5553
5554 # Handle CRLF in mingw tool chain
5555 opt_cr=
5556 case $build_os in
5557 mingw*)
5558 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5559 ;;
5560 esac
5561
5562 # Try without a prefix underscore, then with it.
5563 for ac_symprfx in "" "_"; do
5564
5565 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5566 symxfrm="\\1 $ac_symprfx\\2 \\2"
5567
5568 # Write the raw and C identifiers.
5569 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5570 # Fake it for dumpbin and say T for any non-static function
5571 # and D for any global variable.
5572 # Also find C++ and __fastcall symbols from MSVC++,
5573 # which start with @ or ?.
5574 lt_cv_sys_global_symbol_pipe="$AWK '"\
5575 " {last_section=section; section=\$ 3};"\
5576 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5577 " \$ 0!~/External *\|/{next};"\
5578 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5579 " {if(hide[section]) next};"\
5580 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5581 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5582 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5583 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5584 " ' prfx=^$ac_symprfx"
5585 else
5586 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5587 fi
5588
5589 # Check to see that the pipe works correctly.
5590 pipe_works=no
5591
5592 rm -f conftest*
5593 cat > conftest.$ac_ext <<_LT_EOF
5594 #ifdef __cplusplus
5595 extern "C" {
5596 #endif
5597 char nm_test_var;
5598 void nm_test_func(void);
5599 void nm_test_func(void){}
5600 #ifdef __cplusplus
5601 }
5602 #endif
5603 int main(){nm_test_var='a';nm_test_func();return(0);}
5604 _LT_EOF
5605
5606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5607 (eval $ac_compile) 2>&5
5608 ac_status=$?
5609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5610 test $ac_status = 0; }; then
5611 # Now try to grab the symbols.
5612 nlist=conftest.nm
5613 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5614 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5615 ac_status=$?
5616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5617 test $ac_status = 0; } && test -s "$nlist"; then
5618 # Try sorting and uniquifying the output.
5619 if sort "$nlist" | uniq > "$nlist"T; then
5620 mv -f "$nlist"T "$nlist"
5621 else
5622 rm -f "$nlist"T
5623 fi
5624
5625 # Make sure that we snagged all the symbols we need.
5626 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5627 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5628 cat <<_LT_EOF > conftest.$ac_ext
5629 #ifdef __cplusplus
5630 extern "C" {
5631 #endif
5632
5633 _LT_EOF
5634 # Now generate the symbol file.
5635 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5636
5637 cat <<_LT_EOF >> conftest.$ac_ext
5638
5639 /* The mapping between symbol names and symbols. */
5640 const struct {
5641 const char *name;
5642 void *address;
5643 }
5644 lt__PROGRAM__LTX_preloaded_symbols[] =
5645 {
5646 { "@PROGRAM@", (void *) 0 },
5647 _LT_EOF
5648 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5649 cat <<\_LT_EOF >> conftest.$ac_ext
5650 {0, (void *) 0}
5651 };
5652
5653 /* This works around a problem in FreeBSD linker */
5654 #ifdef FREEBSD_WORKAROUND
5655 static const void *lt_preloaded_setup() {
5656 return lt__PROGRAM__LTX_preloaded_symbols;
5657 }
5658 #endif
5659
5660 #ifdef __cplusplus
5661 }
5662 #endif
5663 _LT_EOF
5664 # Now try linking the two files.
5665 mv conftest.$ac_objext conftstm.$ac_objext
5666 lt_save_LIBS="$LIBS"
5667 lt_save_CFLAGS="$CFLAGS"
5668 LIBS="conftstm.$ac_objext"
5669 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5670 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5671 (eval $ac_link) 2>&5
5672 ac_status=$?
5673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5674 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5675 pipe_works=yes
5676 fi
5677 LIBS="$lt_save_LIBS"
5678 CFLAGS="$lt_save_CFLAGS"
5679 else
5680 echo "cannot find nm_test_func in $nlist" >&5
5681 fi
5682 else
5683 echo "cannot find nm_test_var in $nlist" >&5
5684 fi
5685 else
5686 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5687 fi
5688 else
5689 echo "$progname: failed program was:" >&5
5690 cat conftest.$ac_ext >&5
5691 fi
5692 rm -rf conftest* conftst*
5693
5694 # Do not use the global_symbol_pipe unless it works.
5695 if test "$pipe_works" = yes; then
5696 break
5697 else
5698 lt_cv_sys_global_symbol_pipe=
5699 fi
5700 done
5701
5702 fi
5703
5704 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5705 lt_cv_sys_global_symbol_to_cdecl=
5706 fi
5707 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5709 $as_echo "failed" >&6; }
5710 else
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5712 $as_echo "ok" >&6; }
5713 fi
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736 # Check whether --enable-libtool-lock was given.
5737 if test "${enable_libtool_lock+set}" = set; then :
5738 enableval=$enable_libtool_lock;
5739 fi
5740
5741 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5742
5743 # Some flags need to be propagated to the compiler or linker for good
5744 # libtool support.
5745 case $host in
5746 ia64-*-hpux*)
5747 # Find out which ABI we are using.
5748 echo 'int i;' > conftest.$ac_ext
5749 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5750 (eval $ac_compile) 2>&5
5751 ac_status=$?
5752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5753 test $ac_status = 0; }; then
5754 case `/usr/bin/file conftest.$ac_objext` in
5755 *ELF-32*)
5756 HPUX_IA64_MODE="32"
5757 ;;
5758 *ELF-64*)
5759 HPUX_IA64_MODE="64"
5760 ;;
5761 esac
5762 fi
5763 rm -rf conftest*
5764 ;;
5765 *-*-irix6*)
5766 # Find out which ABI we are using.
5767 echo '#line 5767 "configure"' > conftest.$ac_ext
5768 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5769 (eval $ac_compile) 2>&5
5770 ac_status=$?
5771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5772 test $ac_status = 0; }; then
5773 if test "$lt_cv_prog_gnu_ld" = yes; then
5774 case `/usr/bin/file conftest.$ac_objext` in
5775 *32-bit*)
5776 LD="${LD-ld} -melf32bsmip"
5777 ;;
5778 *N32*)
5779 LD="${LD-ld} -melf32bmipn32"
5780 ;;
5781 *64-bit*)
5782 LD="${LD-ld} -melf64bmip"
5783 ;;
5784 esac
5785 else
5786 case `/usr/bin/file conftest.$ac_objext` in
5787 *32-bit*)
5788 LD="${LD-ld} -32"
5789 ;;
5790 *N32*)
5791 LD="${LD-ld} -n32"
5792 ;;
5793 *64-bit*)
5794 LD="${LD-ld} -64"
5795 ;;
5796 esac
5797 fi
5798 fi
5799 rm -rf conftest*
5800 ;;
5801
5802 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5803 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5804 # Find out which ABI we are using.
5805 echo 'int i;' > conftest.$ac_ext
5806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5807 (eval $ac_compile) 2>&5
5808 ac_status=$?
5809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5810 test $ac_status = 0; }; then
5811 case `/usr/bin/file conftest.o` in
5812 *32-bit*)
5813 case $host in
5814 x86_64-*kfreebsd*-gnu)
5815 LD="${LD-ld} -m elf_i386_fbsd"
5816 ;;
5817 x86_64-*linux*)
5818 LD="${LD-ld} -m elf_i386"
5819 ;;
5820 ppc64-*linux*|powerpc64-*linux*)
5821 LD="${LD-ld} -m elf32ppclinux"
5822 ;;
5823 s390x-*linux*)
5824 LD="${LD-ld} -m elf_s390"
5825 ;;
5826 sparc64-*linux*)
5827 LD="${LD-ld} -m elf32_sparc"
5828 ;;
5829 esac
5830 ;;
5831 *64-bit*)
5832 case $host in
5833 x86_64-*kfreebsd*-gnu)
5834 LD="${LD-ld} -m elf_x86_64_fbsd"
5835 ;;
5836 x86_64-*linux*)
5837 LD="${LD-ld} -m elf_x86_64"
5838 ;;
5839 ppc*-*linux*|powerpc*-*linux*)
5840 LD="${LD-ld} -m elf64ppc"
5841 ;;
5842 s390*-*linux*|s390*-*tpf*)
5843 LD="${LD-ld} -m elf64_s390"
5844 ;;
5845 sparc*-*linux*)
5846 LD="${LD-ld} -m elf64_sparc"
5847 ;;
5848 esac
5849 ;;
5850 esac
5851 fi
5852 rm -rf conftest*
5853 ;;
5854
5855 *-*-sco3.2v5*)
5856 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5857 SAVE_CFLAGS="$CFLAGS"
5858 CFLAGS="$CFLAGS -belf"
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5860 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5861 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5862 $as_echo_n "(cached) " >&6
5863 else
5864 ac_ext=c
5865 ac_cpp='$CPP $CPPFLAGS'
5866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5869
5870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5871 /* end confdefs.h. */
5872
5873 int
5874 main ()
5875 {
5876
5877 ;
5878 return 0;
5879 }
5880 _ACEOF
5881 if ac_fn_c_try_link "$LINENO"; then :
5882 lt_cv_cc_needs_belf=yes
5883 else
5884 lt_cv_cc_needs_belf=no
5885 fi
5886 rm -f core conftest.err conftest.$ac_objext \
5887 conftest$ac_exeext conftest.$ac_ext
5888 ac_ext=c
5889 ac_cpp='$CPP $CPPFLAGS'
5890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5893
5894 fi
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5896 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5897 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5898 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5899 CFLAGS="$SAVE_CFLAGS"
5900 fi
5901 ;;
5902 sparc*-*solaris*)
5903 # Find out which ABI we are using.
5904 echo 'int i;' > conftest.$ac_ext
5905 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5906 (eval $ac_compile) 2>&5
5907 ac_status=$?
5908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5909 test $ac_status = 0; }; then
5910 case `/usr/bin/file conftest.o` in
5911 *64-bit*)
5912 case $lt_cv_prog_gnu_ld in
5913 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5914 *)
5915 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5916 LD="${LD-ld} -64"
5917 fi
5918 ;;
5919 esac
5920 ;;
5921 esac
5922 fi
5923 rm -rf conftest*
5924 ;;
5925 esac
5926
5927 need_locks="$enable_libtool_lock"
5928
5929
5930 case $host_os in
5931 rhapsody* | darwin*)
5932 if test -n "$ac_tool_prefix"; then
5933 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5934 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5936 $as_echo_n "checking for $ac_word... " >&6; }
5937 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5938 $as_echo_n "(cached) " >&6
5939 else
5940 if test -n "$DSYMUTIL"; then
5941 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5942 else
5943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944 for as_dir in $PATH
5945 do
5946 IFS=$as_save_IFS
5947 test -z "$as_dir" && as_dir=.
5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5950 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5952 break 2
5953 fi
5954 done
5955 done
5956 IFS=$as_save_IFS
5957
5958 fi
5959 fi
5960 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5961 if test -n "$DSYMUTIL"; then
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5963 $as_echo "$DSYMUTIL" >&6; }
5964 else
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5966 $as_echo "no" >&6; }
5967 fi
5968
5969
5970 fi
5971 if test -z "$ac_cv_prog_DSYMUTIL"; then
5972 ac_ct_DSYMUTIL=$DSYMUTIL
5973 # Extract the first word of "dsymutil", so it can be a program name with args.
5974 set dummy dsymutil; ac_word=$2
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5976 $as_echo_n "checking for $ac_word... " >&6; }
5977 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5978 $as_echo_n "(cached) " >&6
5979 else
5980 if test -n "$ac_ct_DSYMUTIL"; then
5981 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5982 else
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984 for as_dir in $PATH
5985 do
5986 IFS=$as_save_IFS
5987 test -z "$as_dir" && as_dir=.
5988 for ac_exec_ext in '' $ac_executable_extensions; do
5989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5990 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5992 break 2
5993 fi
5994 done
5995 done
5996 IFS=$as_save_IFS
5997
5998 fi
5999 fi
6000 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6001 if test -n "$ac_ct_DSYMUTIL"; then
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6003 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6004 else
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6006 $as_echo "no" >&6; }
6007 fi
6008
6009 if test "x$ac_ct_DSYMUTIL" = x; then
6010 DSYMUTIL=":"
6011 else
6012 case $cross_compiling:$ac_tool_warned in
6013 yes:)
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6016 ac_tool_warned=yes ;;
6017 esac
6018 DSYMUTIL=$ac_ct_DSYMUTIL
6019 fi
6020 else
6021 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6022 fi
6023
6024 if test -n "$ac_tool_prefix"; then
6025 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6026 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6028 $as_echo_n "checking for $ac_word... " >&6; }
6029 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6030 $as_echo_n "(cached) " >&6
6031 else
6032 if test -n "$NMEDIT"; then
6033 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6034 else
6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036 for as_dir in $PATH
6037 do
6038 IFS=$as_save_IFS
6039 test -z "$as_dir" && as_dir=.
6040 for ac_exec_ext in '' $ac_executable_extensions; do
6041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6042 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6044 break 2
6045 fi
6046 done
6047 done
6048 IFS=$as_save_IFS
6049
6050 fi
6051 fi
6052 NMEDIT=$ac_cv_prog_NMEDIT
6053 if test -n "$NMEDIT"; then
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6055 $as_echo "$NMEDIT" >&6; }
6056 else
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6058 $as_echo "no" >&6; }
6059 fi
6060
6061
6062 fi
6063 if test -z "$ac_cv_prog_NMEDIT"; then
6064 ac_ct_NMEDIT=$NMEDIT
6065 # Extract the first word of "nmedit", so it can be a program name with args.
6066 set dummy nmedit; ac_word=$2
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6068 $as_echo_n "checking for $ac_word... " >&6; }
6069 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6070 $as_echo_n "(cached) " >&6
6071 else
6072 if test -n "$ac_ct_NMEDIT"; then
6073 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6074 else
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076 for as_dir in $PATH
6077 do
6078 IFS=$as_save_IFS
6079 test -z "$as_dir" && as_dir=.
6080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6082 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6084 break 2
6085 fi
6086 done
6087 done
6088 IFS=$as_save_IFS
6089
6090 fi
6091 fi
6092 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6093 if test -n "$ac_ct_NMEDIT"; then
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6095 $as_echo "$ac_ct_NMEDIT" >&6; }
6096 else
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6098 $as_echo "no" >&6; }
6099 fi
6100
6101 if test "x$ac_ct_NMEDIT" = x; then
6102 NMEDIT=":"
6103 else
6104 case $cross_compiling:$ac_tool_warned in
6105 yes:)
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6108 ac_tool_warned=yes ;;
6109 esac
6110 NMEDIT=$ac_ct_NMEDIT
6111 fi
6112 else
6113 NMEDIT="$ac_cv_prog_NMEDIT"
6114 fi
6115
6116 if test -n "$ac_tool_prefix"; then
6117 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6118 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6120 $as_echo_n "checking for $ac_word... " >&6; }
6121 if test "${ac_cv_prog_LIPO+set}" = set; then :
6122 $as_echo_n "(cached) " >&6
6123 else
6124 if test -n "$LIPO"; then
6125 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6126 else
6127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128 for as_dir in $PATH
6129 do
6130 IFS=$as_save_IFS
6131 test -z "$as_dir" && as_dir=.
6132 for ac_exec_ext in '' $ac_executable_extensions; do
6133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6134 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6136 break 2
6137 fi
6138 done
6139 done
6140 IFS=$as_save_IFS
6141
6142 fi
6143 fi
6144 LIPO=$ac_cv_prog_LIPO
6145 if test -n "$LIPO"; then
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6147 $as_echo "$LIPO" >&6; }
6148 else
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6150 $as_echo "no" >&6; }
6151 fi
6152
6153
6154 fi
6155 if test -z "$ac_cv_prog_LIPO"; then
6156 ac_ct_LIPO=$LIPO
6157 # Extract the first word of "lipo", so it can be a program name with args.
6158 set dummy lipo; ac_word=$2
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6160 $as_echo_n "checking for $ac_word... " >&6; }
6161 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6162 $as_echo_n "(cached) " >&6
6163 else
6164 if test -n "$ac_ct_LIPO"; then
6165 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6166 else
6167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168 for as_dir in $PATH
6169 do
6170 IFS=$as_save_IFS
6171 test -z "$as_dir" && as_dir=.
6172 for ac_exec_ext in '' $ac_executable_extensions; do
6173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6174 ac_cv_prog_ac_ct_LIPO="lipo"
6175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6176 break 2
6177 fi
6178 done
6179 done
6180 IFS=$as_save_IFS
6181
6182 fi
6183 fi
6184 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6185 if test -n "$ac_ct_LIPO"; then
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6187 $as_echo "$ac_ct_LIPO" >&6; }
6188 else
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6190 $as_echo "no" >&6; }
6191 fi
6192
6193 if test "x$ac_ct_LIPO" = x; then
6194 LIPO=":"
6195 else
6196 case $cross_compiling:$ac_tool_warned in
6197 yes:)
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6200 ac_tool_warned=yes ;;
6201 esac
6202 LIPO=$ac_ct_LIPO
6203 fi
6204 else
6205 LIPO="$ac_cv_prog_LIPO"
6206 fi
6207
6208 if test -n "$ac_tool_prefix"; then
6209 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6210 set dummy ${ac_tool_prefix}otool; ac_word=$2
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6212 $as_echo_n "checking for $ac_word... " >&6; }
6213 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6214 $as_echo_n "(cached) " >&6
6215 else
6216 if test -n "$OTOOL"; then
6217 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6218 else
6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 for as_dir in $PATH
6221 do
6222 IFS=$as_save_IFS
6223 test -z "$as_dir" && as_dir=.
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6226 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6228 break 2
6229 fi
6230 done
6231 done
6232 IFS=$as_save_IFS
6233
6234 fi
6235 fi
6236 OTOOL=$ac_cv_prog_OTOOL
6237 if test -n "$OTOOL"; then
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6239 $as_echo "$OTOOL" >&6; }
6240 else
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6242 $as_echo "no" >&6; }
6243 fi
6244
6245
6246 fi
6247 if test -z "$ac_cv_prog_OTOOL"; then
6248 ac_ct_OTOOL=$OTOOL
6249 # Extract the first word of "otool", so it can be a program name with args.
6250 set dummy otool; ac_word=$2
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6252 $as_echo_n "checking for $ac_word... " >&6; }
6253 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6254 $as_echo_n "(cached) " >&6
6255 else
6256 if test -n "$ac_ct_OTOOL"; then
6257 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6258 else
6259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260 for as_dir in $PATH
6261 do
6262 IFS=$as_save_IFS
6263 test -z "$as_dir" && as_dir=.
6264 for ac_exec_ext in '' $ac_executable_extensions; do
6265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6266 ac_cv_prog_ac_ct_OTOOL="otool"
6267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6268 break 2
6269 fi
6270 done
6271 done
6272 IFS=$as_save_IFS
6273
6274 fi
6275 fi
6276 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6277 if test -n "$ac_ct_OTOOL"; then
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6279 $as_echo "$ac_ct_OTOOL" >&6; }
6280 else
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6282 $as_echo "no" >&6; }
6283 fi
6284
6285 if test "x$ac_ct_OTOOL" = x; then
6286 OTOOL=":"
6287 else
6288 case $cross_compiling:$ac_tool_warned in
6289 yes:)
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6292 ac_tool_warned=yes ;;
6293 esac
6294 OTOOL=$ac_ct_OTOOL
6295 fi
6296 else
6297 OTOOL="$ac_cv_prog_OTOOL"
6298 fi
6299
6300 if test -n "$ac_tool_prefix"; then
6301 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6302 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6304 $as_echo_n "checking for $ac_word... " >&6; }
6305 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6306 $as_echo_n "(cached) " >&6
6307 else
6308 if test -n "$OTOOL64"; then
6309 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6310 else
6311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312 for as_dir in $PATH
6313 do
6314 IFS=$as_save_IFS
6315 test -z "$as_dir" && as_dir=.
6316 for ac_exec_ext in '' $ac_executable_extensions; do
6317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6318 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6320 break 2
6321 fi
6322 done
6323 done
6324 IFS=$as_save_IFS
6325
6326 fi
6327 fi
6328 OTOOL64=$ac_cv_prog_OTOOL64
6329 if test -n "$OTOOL64"; then
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6331 $as_echo "$OTOOL64" >&6; }
6332 else
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6334 $as_echo "no" >&6; }
6335 fi
6336
6337
6338 fi
6339 if test -z "$ac_cv_prog_OTOOL64"; then
6340 ac_ct_OTOOL64=$OTOOL64
6341 # Extract the first word of "otool64", so it can be a program name with args.
6342 set dummy otool64; ac_word=$2
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6344 $as_echo_n "checking for $ac_word... " >&6; }
6345 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6346 $as_echo_n "(cached) " >&6
6347 else
6348 if test -n "$ac_ct_OTOOL64"; then
6349 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6350 else
6351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352 for as_dir in $PATH
6353 do
6354 IFS=$as_save_IFS
6355 test -z "$as_dir" && as_dir=.
6356 for ac_exec_ext in '' $ac_executable_extensions; do
6357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6358 ac_cv_prog_ac_ct_OTOOL64="otool64"
6359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6360 break 2
6361 fi
6362 done
6363 done
6364 IFS=$as_save_IFS
6365
6366 fi
6367 fi
6368 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6369 if test -n "$ac_ct_OTOOL64"; then
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6371 $as_echo "$ac_ct_OTOOL64" >&6; }
6372 else
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6374 $as_echo "no" >&6; }
6375 fi
6376
6377 if test "x$ac_ct_OTOOL64" = x; then
6378 OTOOL64=":"
6379 else
6380 case $cross_compiling:$ac_tool_warned in
6381 yes:)
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6384 ac_tool_warned=yes ;;
6385 esac
6386 OTOOL64=$ac_ct_OTOOL64
6387 fi
6388 else
6389 OTOOL64="$ac_cv_prog_OTOOL64"
6390 fi
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6419 $as_echo_n "checking for -single_module linker flag... " >&6; }
6420 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6421 $as_echo_n "(cached) " >&6
6422 else
6423 lt_cv_apple_cc_single_mod=no
6424 if test -z "${LT_MULTI_MODULE}"; then
6425 # By default we will add the -single_module flag. You can override
6426 # by either setting the environment variable LT_MULTI_MODULE
6427 # non-empty at configure time, or by adding -multi_module to the
6428 # link flags.
6429 rm -rf libconftest.dylib*
6430 echo "int foo(void){return 1;}" > conftest.c
6431 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6432 -dynamiclib -Wl,-single_module conftest.c" >&5
6433 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6434 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6435 _lt_result=$?
6436 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6437 lt_cv_apple_cc_single_mod=yes
6438 else
6439 cat conftest.err >&5
6440 fi
6441 rm -rf libconftest.dylib*
6442 rm -f conftest.*
6443 fi
6444 fi
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6446 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6448 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6449 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6450 $as_echo_n "(cached) " >&6
6451 else
6452 lt_cv_ld_exported_symbols_list=no
6453 save_LDFLAGS=$LDFLAGS
6454 echo "_main" > conftest.sym
6455 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6457 /* end confdefs.h. */
6458
6459 int
6460 main ()
6461 {
6462
6463 ;
6464 return 0;
6465 }
6466 _ACEOF
6467 if ac_fn_c_try_link "$LINENO"; then :
6468 lt_cv_ld_exported_symbols_list=yes
6469 else
6470 lt_cv_ld_exported_symbols_list=no
6471 fi
6472 rm -f core conftest.err conftest.$ac_objext \
6473 conftest$ac_exeext conftest.$ac_ext
6474 LDFLAGS="$save_LDFLAGS"
6475
6476 fi
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6478 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6479 case $host_os in
6480 rhapsody* | darwin1.[012])
6481 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6482 darwin1.*)
6483 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6484 darwin*) # darwin 5.x on
6485 # if running on 10.5 or later, the deployment target defaults
6486 # to the OS version, if on x86, and 10.4, the deployment
6487 # target defaults to 10.4. Don't you love it?
6488 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6489 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6490 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6491 10.[012]*)
6492 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6493 10.*)
6494 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6495 esac
6496 ;;
6497 esac
6498 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6499 _lt_dar_single_mod='$single_module'
6500 fi
6501 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6502 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6503 else
6504 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6505 fi
6506 if test "$DSYMUTIL" != ":"; then
6507 _lt_dsymutil='~$DSYMUTIL $lib || :'
6508 else
6509 _lt_dsymutil=
6510 fi
6511 ;;
6512 esac
6513
6514 ac_ext=c
6515 ac_cpp='$CPP $CPPFLAGS'
6516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6520 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6521 # On Suns, sometimes $CPP names a directory.
6522 if test -n "$CPP" && test -d "$CPP"; then
6523 CPP=
6524 fi
6525 if test -z "$CPP"; then
6526 if test "${ac_cv_prog_CPP+set}" = set; then :
6527 $as_echo_n "(cached) " >&6
6528 else
6529 # Double quotes because CPP needs to be expanded
6530 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6531 do
6532 ac_preproc_ok=false
6533 for ac_c_preproc_warn_flag in '' yes
6534 do
6535 # Use a header file that comes with gcc, so configuring glibc
6536 # with a fresh cross-compiler works.
6537 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6538 # <limits.h> exists even on freestanding compilers.
6539 # On the NeXT, cc -E runs the code through the compiler's parser,
6540 # not just through cpp. "Syntax error" is here to catch this case.
6541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6542 /* end confdefs.h. */
6543 #ifdef __STDC__
6544 # include <limits.h>
6545 #else
6546 # include <assert.h>
6547 #endif
6548 Syntax error
6549 _ACEOF
6550 if ac_fn_c_try_cpp "$LINENO"; then :
6551
6552 else
6553 # Broken: fails on valid input.
6554 continue
6555 fi
6556 rm -f conftest.err conftest.$ac_ext
6557
6558 # OK, works on sane cases. Now check whether nonexistent headers
6559 # can be detected and how.
6560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6561 /* end confdefs.h. */
6562 #include <ac_nonexistent.h>
6563 _ACEOF
6564 if ac_fn_c_try_cpp "$LINENO"; then :
6565 # Broken: success on invalid input.
6566 continue
6567 else
6568 # Passes both tests.
6569 ac_preproc_ok=:
6570 break
6571 fi
6572 rm -f conftest.err conftest.$ac_ext
6573
6574 done
6575 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6576 rm -f conftest.err conftest.$ac_ext
6577 if $ac_preproc_ok; then :
6578 break
6579 fi
6580
6581 done
6582 ac_cv_prog_CPP=$CPP
6583
6584 fi
6585 CPP=$ac_cv_prog_CPP
6586 else
6587 ac_cv_prog_CPP=$CPP
6588 fi
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6590 $as_echo "$CPP" >&6; }
6591 ac_preproc_ok=false
6592 for ac_c_preproc_warn_flag in '' yes
6593 do
6594 # Use a header file that comes with gcc, so configuring glibc
6595 # with a fresh cross-compiler works.
6596 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6597 # <limits.h> exists even on freestanding compilers.
6598 # On the NeXT, cc -E runs the code through the compiler's parser,
6599 # not just through cpp. "Syntax error" is here to catch this case.
6600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6601 /* end confdefs.h. */
6602 #ifdef __STDC__
6603 # include <limits.h>
6604 #else
6605 # include <assert.h>
6606 #endif
6607 Syntax error
6608 _ACEOF
6609 if ac_fn_c_try_cpp "$LINENO"; then :
6610
6611 else
6612 # Broken: fails on valid input.
6613 continue
6614 fi
6615 rm -f conftest.err conftest.$ac_ext
6616
6617 # OK, works on sane cases. Now check whether nonexistent headers
6618 # can be detected and how.
6619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620 /* end confdefs.h. */
6621 #include <ac_nonexistent.h>
6622 _ACEOF
6623 if ac_fn_c_try_cpp "$LINENO"; then :
6624 # Broken: success on invalid input.
6625 continue
6626 else
6627 # Passes both tests.
6628 ac_preproc_ok=:
6629 break
6630 fi
6631 rm -f conftest.err conftest.$ac_ext
6632
6633 done
6634 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6635 rm -f conftest.err conftest.$ac_ext
6636 if $ac_preproc_ok; then :
6637
6638 else
6639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6641 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6642 See \`config.log' for more details." "$LINENO" 5; }
6643 fi
6644
6645 ac_ext=c
6646 ac_cpp='$CPP $CPPFLAGS'
6647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6650
6651
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6653 $as_echo_n "checking for ANSI C header files... " >&6; }
6654 if test "${ac_cv_header_stdc+set}" = set; then :
6655 $as_echo_n "(cached) " >&6
6656 else
6657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6658 /* end confdefs.h. */
6659 #include <stdlib.h>
6660 #include <stdarg.h>
6661 #include <string.h>
6662 #include <float.h>
6663
6664 int
6665 main ()
6666 {
6667
6668 ;
6669 return 0;
6670 }
6671 _ACEOF
6672 if ac_fn_c_try_compile "$LINENO"; then :
6673 ac_cv_header_stdc=yes
6674 else
6675 ac_cv_header_stdc=no
6676 fi
6677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6678
6679 if test $ac_cv_header_stdc = yes; then
6680 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682 /* end confdefs.h. */
6683 #include <string.h>
6684
6685 _ACEOF
6686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6687 $EGREP "memchr" >/dev/null 2>&1; then :
6688
6689 else
6690 ac_cv_header_stdc=no
6691 fi
6692 rm -f conftest*
6693
6694 fi
6695
6696 if test $ac_cv_header_stdc = yes; then
6697 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6699 /* end confdefs.h. */
6700 #include <stdlib.h>
6701
6702 _ACEOF
6703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6704 $EGREP "free" >/dev/null 2>&1; then :
6705
6706 else
6707 ac_cv_header_stdc=no
6708 fi
6709 rm -f conftest*
6710
6711 fi
6712
6713 if test $ac_cv_header_stdc = yes; then
6714 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6715 if test "$cross_compiling" = yes; then :
6716 :
6717 else
6718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6719 /* end confdefs.h. */
6720 #include <ctype.h>
6721 #include <stdlib.h>
6722 #if ((' ' & 0x0FF) == 0x020)
6723 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6724 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6725 #else
6726 # define ISLOWER(c) \
6727 (('a' <= (c) && (c) <= 'i') \
6728 || ('j' <= (c) && (c) <= 'r') \
6729 || ('s' <= (c) && (c) <= 'z'))
6730 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6731 #endif
6732
6733 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6734 int
6735 main ()
6736 {
6737 int i;
6738 for (i = 0; i < 256; i++)
6739 if (XOR (islower (i), ISLOWER (i))
6740 || toupper (i) != TOUPPER (i))
6741 return 2;
6742 return 0;
6743 }
6744 _ACEOF
6745 if ac_fn_c_try_run "$LINENO"; then :
6746
6747 else
6748 ac_cv_header_stdc=no
6749 fi
6750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6751 conftest.$ac_objext conftest.beam conftest.$ac_ext
6752 fi
6753
6754 fi
6755 fi
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6757 $as_echo "$ac_cv_header_stdc" >&6; }
6758 if test $ac_cv_header_stdc = yes; then
6759
6760 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6761
6762 fi
6763
6764 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6765 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6766 inttypes.h stdint.h unistd.h
6767 do :
6768 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6769 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6770 "
6771 eval as_val=\$$as_ac_Header
6772 if test "x$as_val" = x""yes; then :
6773 cat >>confdefs.h <<_ACEOF
6774 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6775 _ACEOF
6776
6777 fi
6778
6779 done
6780
6781
6782 for ac_header in dlfcn.h
6783 do :
6784 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6785 "
6786 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6787 cat >>confdefs.h <<_ACEOF
6788 #define HAVE_DLFCN_H 1
6789 _ACEOF
6790
6791 fi
6792
6793 done
6794
6795
6796
6797 # Set options
6798
6799
6800
6801 enable_dlopen=no
6802
6803
6804 enable_win32_dll=no
6805
6806
6807 # Check whether --enable-shared was given.
6808 if test "${enable_shared+set}" = set; then :
6809 enableval=$enable_shared; p=${PACKAGE-default}
6810 case $enableval in
6811 yes) enable_shared=yes ;;
6812 no) enable_shared=no ;;
6813 *)
6814 enable_shared=no
6815 # Look at the argument we got. We use all the common list separators.
6816 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6817 for pkg in $enableval; do
6818 IFS="$lt_save_ifs"
6819 if test "X$pkg" = "X$p"; then
6820 enable_shared=yes
6821 fi
6822 done
6823 IFS="$lt_save_ifs"
6824 ;;
6825 esac
6826 else
6827 enable_shared=yes
6828 fi
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838 # Check whether --enable-static was given.
6839 if test "${enable_static+set}" = set; then :
6840 enableval=$enable_static; p=${PACKAGE-default}
6841 case $enableval in
6842 yes) enable_static=yes ;;
6843 no) enable_static=no ;;
6844 *)
6845 enable_static=no
6846 # Look at the argument we got. We use all the common list separators.
6847 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6848 for pkg in $enableval; do
6849 IFS="$lt_save_ifs"
6850 if test "X$pkg" = "X$p"; then
6851 enable_static=yes
6852 fi
6853 done
6854 IFS="$lt_save_ifs"
6855 ;;
6856 esac
6857 else
6858 enable_static=yes
6859 fi
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870 # Check whether --with-pic was given.
6871 if test "${with_pic+set}" = set; then :
6872 withval=$with_pic; pic_mode="$withval"
6873 else
6874 pic_mode=default
6875 fi
6876
6877
6878 test -z "$pic_mode" && pic_mode=default
6879
6880
6881
6882
6883
6884
6885
6886 # Check whether --enable-fast-install was given.
6887 if test "${enable_fast_install+set}" = set; then :
6888 enableval=$enable_fast_install; p=${PACKAGE-default}
6889 case $enableval in
6890 yes) enable_fast_install=yes ;;
6891 no) enable_fast_install=no ;;
6892 *)
6893 enable_fast_install=no
6894 # Look at the argument we got. We use all the common list separators.
6895 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6896 for pkg in $enableval; do
6897 IFS="$lt_save_ifs"
6898 if test "X$pkg" = "X$p"; then
6899 enable_fast_install=yes
6900 fi
6901 done
6902 IFS="$lt_save_ifs"
6903 ;;
6904 esac
6905 else
6906 enable_fast_install=yes
6907 fi
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919 # This can be used to rebuild libtool when needed
6920 LIBTOOL_DEPS="$ltmain"
6921
6922 # Always use our own libtool.
6923 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949 test -z "$LN_S" && LN_S="ln -s"
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964 if test -n "${ZSH_VERSION+set}" ; then
6965 setopt NO_GLOB_SUBST
6966 fi
6967
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6969 $as_echo_n "checking for objdir... " >&6; }
6970 if test "${lt_cv_objdir+set}" = set; then :
6971 $as_echo_n "(cached) " >&6
6972 else
6973 rm -f .libs 2>/dev/null
6974 mkdir .libs 2>/dev/null
6975 if test -d .libs; then
6976 lt_cv_objdir=.libs
6977 else
6978 # MS-DOS does not allow filenames that begin with a dot.
6979 lt_cv_objdir=_libs
6980 fi
6981 rmdir .libs 2>/dev/null
6982 fi
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6984 $as_echo "$lt_cv_objdir" >&6; }
6985 objdir=$lt_cv_objdir
6986
6987
6988
6989
6990
6991 cat >>confdefs.h <<_ACEOF
6992 #define LT_OBJDIR "$lt_cv_objdir/"
6993 _ACEOF
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011 case $host_os in
7012 aix3*)
7013 # AIX sometimes has problems with the GCC collect2 program. For some
7014 # reason, if we set the COLLECT_NAMES environment variable, the problems
7015 # vanish in a puff of smoke.
7016 if test "X${COLLECT_NAMES+set}" != Xset; then
7017 COLLECT_NAMES=
7018 export COLLECT_NAMES
7019 fi
7020 ;;
7021 esac
7022
7023 # Sed substitution that helps us do robust quoting. It backslashifies
7024 # metacharacters that are still active within double-quoted strings.
7025 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7026
7027 # Same as above, but do not quote variable references.
7028 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7029
7030 # Sed substitution to delay expansion of an escaped shell variable in a
7031 # double_quote_subst'ed string.
7032 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7033
7034 # Sed substitution to delay expansion of an escaped single quote.
7035 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7036
7037 # Sed substitution to avoid accidental globbing in evaled expressions
7038 no_glob_subst='s/\*/\\\*/g'
7039
7040 # Global variables:
7041 ofile=libtool
7042 can_build_shared=yes
7043
7044 # All known linkers require a `.a' archive for static linking (except MSVC,
7045 # which needs '.lib').
7046 libext=a
7047
7048 with_gnu_ld="$lt_cv_prog_gnu_ld"
7049
7050 old_CC="$CC"
7051 old_CFLAGS="$CFLAGS"
7052
7053 # Set sane defaults for various variables
7054 test -z "$CC" && CC=cc
7055 test -z "$LTCC" && LTCC=$CC
7056 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7057 test -z "$LD" && LD=ld
7058 test -z "$ac_objext" && ac_objext=o
7059
7060 for cc_temp in $compiler""; do
7061 case $cc_temp in
7062 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7063 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7064 \-*) ;;
7065 *) break;;
7066 esac
7067 done
7068 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7069
7070
7071 # Only perform the check for file, if the check method requires it
7072 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7073 case $deplibs_check_method in
7074 file_magic*)
7075 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7077 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7078 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7079 $as_echo_n "(cached) " >&6
7080 else
7081 case $MAGIC_CMD in
7082 [\\/*] | ?:[\\/]*)
7083 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7084 ;;
7085 *)
7086 lt_save_MAGIC_CMD="$MAGIC_CMD"
7087 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7088 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7089 for ac_dir in $ac_dummy; do
7090 IFS="$lt_save_ifs"
7091 test -z "$ac_dir" && ac_dir=.
7092 if test -f $ac_dir/${ac_tool_prefix}file; then
7093 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7094 if test -n "$file_magic_test_file"; then
7095 case $deplibs_check_method in
7096 "file_magic "*)
7097 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7098 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7099 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7100 $EGREP "$file_magic_regex" > /dev/null; then
7101 :
7102 else
7103 cat <<_LT_EOF 1>&2
7104
7105 *** Warning: the command libtool uses to detect shared libraries,
7106 *** $file_magic_cmd, produces output that libtool cannot recognize.
7107 *** The result is that libtool may fail to recognize shared libraries
7108 *** as such. This will affect the creation of libtool libraries that
7109 *** depend on shared libraries, but programs linked with such libtool
7110 *** libraries will work regardless of this problem. Nevertheless, you
7111 *** may want to report the problem to your system manager and/or to
7112 *** [email protected]
7113
7114 _LT_EOF
7115 fi ;;
7116 esac
7117 fi
7118 break
7119 fi
7120 done
7121 IFS="$lt_save_ifs"
7122 MAGIC_CMD="$lt_save_MAGIC_CMD"
7123 ;;
7124 esac
7125 fi
7126
7127 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7128 if test -n "$MAGIC_CMD"; then
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7130 $as_echo "$MAGIC_CMD" >&6; }
7131 else
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7133 $as_echo "no" >&6; }
7134 fi
7135
7136
7137
7138
7139
7140 if test -z "$lt_cv_path_MAGIC_CMD"; then
7141 if test -n "$ac_tool_prefix"; then
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7143 $as_echo_n "checking for file... " >&6; }
7144 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7145 $as_echo_n "(cached) " >&6
7146 else
7147 case $MAGIC_CMD in
7148 [\\/*] | ?:[\\/]*)
7149 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7150 ;;
7151 *)
7152 lt_save_MAGIC_CMD="$MAGIC_CMD"
7153 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7154 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7155 for ac_dir in $ac_dummy; do
7156 IFS="$lt_save_ifs"
7157 test -z "$ac_dir" && ac_dir=.
7158 if test -f $ac_dir/file; then
7159 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7160 if test -n "$file_magic_test_file"; then
7161 case $deplibs_check_method in
7162 "file_magic "*)
7163 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7164 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7165 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7166 $EGREP "$file_magic_regex" > /dev/null; then
7167 :
7168 else
7169 cat <<_LT_EOF 1>&2
7170
7171 *** Warning: the command libtool uses to detect shared libraries,
7172 *** $file_magic_cmd, produces output that libtool cannot recognize.
7173 *** The result is that libtool may fail to recognize shared libraries
7174 *** as such. This will affect the creation of libtool libraries that
7175 *** depend on shared libraries, but programs linked with such libtool
7176 *** libraries will work regardless of this problem. Nevertheless, you
7177 *** may want to report the problem to your system manager and/or to
7178 *** [email protected]
7179
7180 _LT_EOF
7181 fi ;;
7182 esac
7183 fi
7184 break
7185 fi
7186 done
7187 IFS="$lt_save_ifs"
7188 MAGIC_CMD="$lt_save_MAGIC_CMD"
7189 ;;
7190 esac
7191 fi
7192
7193 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7194 if test -n "$MAGIC_CMD"; then
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7196 $as_echo "$MAGIC_CMD" >&6; }
7197 else
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199 $as_echo "no" >&6; }
7200 fi
7201
7202
7203 else
7204 MAGIC_CMD=:
7205 fi
7206 fi
7207
7208 fi
7209 ;;
7210 esac
7211
7212 # Use C for the default configuration in the libtool script
7213
7214 lt_save_CC="$CC"
7215 ac_ext=c
7216 ac_cpp='$CPP $CPPFLAGS'
7217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7220
7221
7222 # Source file extension for C test sources.
7223 ac_ext=c
7224
7225 # Object file extension for compiled C test sources.
7226 objext=o
7227 objext=$objext
7228
7229 # Code to be used in simple compile tests
7230 lt_simple_compile_test_code="int some_variable = 0;"
7231
7232 # Code to be used in simple link tests
7233 lt_simple_link_test_code='int main(){return(0);}'
7234
7235
7236
7237
7238
7239
7240
7241 # If no C compiler was specified, use CC.
7242 LTCC=${LTCC-"$CC"}
7243
7244 # If no C compiler flags were specified, use CFLAGS.
7245 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7246
7247 # Allow CC to be a program name with arguments.
7248 compiler=$CC
7249
7250 # Save the default compiler, since it gets overwritten when the other
7251 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7252 compiler_DEFAULT=$CC
7253
7254 # save warnings/boilerplate of simple test code
7255 ac_outfile=conftest.$ac_objext
7256 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7257 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7258 _lt_compiler_boilerplate=`cat conftest.err`
7259 $RM conftest*
7260
7261 ac_outfile=conftest.$ac_objext
7262 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7263 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7264 _lt_linker_boilerplate=`cat conftest.err`
7265 $RM -r conftest*
7266
7267
7268 if test -n "$compiler"; then
7269
7270 lt_prog_compiler_no_builtin_flag=
7271
7272 if test "$GCC" = yes; then
7273 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7274
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7276 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7277 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7278 $as_echo_n "(cached) " >&6
7279 else
7280 lt_cv_prog_compiler_rtti_exceptions=no
7281 ac_outfile=conftest.$ac_objext
7282 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7283 lt_compiler_flag="-fno-rtti -fno-exceptions"
7284 # Insert the option either (1) after the last *FLAGS variable, or
7285 # (2) before a word containing "conftest.", or (3) at the end.
7286 # Note that $ac_compile itself does not contain backslashes and begins
7287 # with a dollar sign (not a hyphen), so the echo should work correctly.
7288 # The option is referenced via a variable to avoid confusing sed.
7289 lt_compile=`echo "$ac_compile" | $SED \
7290 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7291 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7292 -e 's:$: $lt_compiler_flag:'`
7293 (eval echo "\"\$as_me:7293: $lt_compile\"" >&5)
7294 (eval "$lt_compile" 2>conftest.err)
7295 ac_status=$?
7296 cat conftest.err >&5
7297 echo "$as_me:7297: \$? = $ac_status" >&5
7298 if (exit $ac_status) && test -s "$ac_outfile"; then
7299 # The compiler can only warn and ignore the option if not recognized
7300 # So say no if there are warnings other than the usual output.
7301 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7302 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7303 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7304 lt_cv_prog_compiler_rtti_exceptions=yes
7305 fi
7306 fi
7307 $RM conftest*
7308
7309 fi
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7311 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7312
7313 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7314 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7315 else
7316 :
7317 fi
7318
7319 fi
7320
7321
7322
7323
7324
7325
7326 lt_prog_compiler_wl=
7327 lt_prog_compiler_pic=
7328 lt_prog_compiler_static=
7329
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7331 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7332
7333 if test "$GCC" = yes; then
7334 lt_prog_compiler_wl='-Wl,'
7335 lt_prog_compiler_static='-static'
7336
7337 case $host_os in
7338 aix*)
7339 # All AIX code is PIC.
7340 if test "$host_cpu" = ia64; then
7341 # AIX 5 now supports IA64 processor
7342 lt_prog_compiler_static='-Bstatic'
7343 fi
7344 ;;
7345
7346 amigaos*)
7347 case $host_cpu in
7348 powerpc)
7349 # see comment about AmigaOS4 .so support
7350 lt_prog_compiler_pic='-fPIC'
7351 ;;
7352 m68k)
7353 # FIXME: we need at least 68020 code to build shared libraries, but
7354 # adding the `-m68020' flag to GCC prevents building anything better,
7355 # like `-m68040'.
7356 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7357 ;;
7358 esac
7359 ;;
7360
7361 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7362 # PIC is the default for these OSes.
7363 ;;
7364
7365 mingw* | cygwin* | pw32* | os2* | cegcc*)
7366 # This hack is so that the source file can tell whether it is being
7367 # built for inclusion in a dll (and should export symbols for example).
7368 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7369 # (--disable-auto-import) libraries
7370 lt_prog_compiler_pic='-DDLL_EXPORT'
7371 ;;
7372
7373 darwin* | rhapsody*)
7374 # PIC is the default on this platform
7375 # Common symbols not allowed in MH_DYLIB files
7376 lt_prog_compiler_pic='-fno-common'
7377 ;;
7378
7379 hpux*)
7380 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7381 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7382 # sets the default TLS model and affects inlining.
7383 case $host_cpu in
7384 hppa*64*)
7385 # +Z the default
7386 ;;
7387 *)
7388 lt_prog_compiler_pic='-fPIC'
7389 ;;
7390 esac
7391 ;;
7392
7393 interix[3-9]*)
7394 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7395 # Instead, we relocate shared libraries at runtime.
7396 ;;
7397
7398 msdosdjgpp*)
7399 # Just because we use GCC doesn't mean we suddenly get shared libraries
7400 # on systems that don't support them.
7401 lt_prog_compiler_can_build_shared=no
7402 enable_shared=no
7403 ;;
7404
7405 *nto* | *qnx*)
7406 # QNX uses GNU C++, but need to define -shared option too, otherwise
7407 # it will coredump.
7408 lt_prog_compiler_pic='-fPIC -shared'
7409 ;;
7410
7411 sysv4*MP*)
7412 if test -d /usr/nec; then
7413 lt_prog_compiler_pic=-Kconform_pic
7414 fi
7415 ;;
7416
7417 *)
7418 lt_prog_compiler_pic='-fPIC'
7419 ;;
7420 esac
7421 else
7422 # PORTME Check for flag to pass linker flags through the system compiler.
7423 case $host_os in
7424 aix*)
7425 lt_prog_compiler_wl='-Wl,'
7426 if test "$host_cpu" = ia64; then
7427 # AIX 5 now supports IA64 processor
7428 lt_prog_compiler_static='-Bstatic'
7429 else
7430 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7431 fi
7432 ;;
7433
7434 mingw* | cygwin* | pw32* | os2* | cegcc*)
7435 # This hack is so that the source file can tell whether it is being
7436 # built for inclusion in a dll (and should export symbols for example).
7437 lt_prog_compiler_pic='-DDLL_EXPORT'
7438 ;;
7439
7440 hpux9* | hpux10* | hpux11*)
7441 lt_prog_compiler_wl='-Wl,'
7442 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7443 # not for PA HP-UX.
7444 case $host_cpu in
7445 hppa*64*|ia64*)
7446 # +Z the default
7447 ;;
7448 *)
7449 lt_prog_compiler_pic='+Z'
7450 ;;
7451 esac
7452 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7453 lt_prog_compiler_static='${wl}-a ${wl}archive'
7454 ;;
7455
7456 irix5* | irix6* | nonstopux*)
7457 lt_prog_compiler_wl='-Wl,'
7458 # PIC (with -KPIC) is the default.
7459 lt_prog_compiler_static='-non_shared'
7460 ;;
7461
7462 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7463 case $cc_basename in
7464 # old Intel for x86_64 which still supported -KPIC.
7465 ecc*)
7466 lt_prog_compiler_wl='-Wl,'
7467 lt_prog_compiler_pic='-KPIC'
7468 lt_prog_compiler_static='-static'
7469 ;;
7470 # icc used to be incompatible with GCC.
7471 # ICC 10 doesn't accept -KPIC any more.
7472 icc* | ifort*)
7473 lt_prog_compiler_wl='-Wl,'
7474 lt_prog_compiler_pic='-fPIC'
7475 lt_prog_compiler_static='-static'
7476 ;;
7477 # Lahey Fortran 8.1.
7478 lf95*)
7479 lt_prog_compiler_wl='-Wl,'
7480 lt_prog_compiler_pic='--shared'
7481 lt_prog_compiler_static='--static'
7482 ;;
7483 pgcc* | pgf77* | pgf90* | pgf95*)
7484 # Portland Group compilers (*not* the Pentium gcc compiler,
7485 # which looks to be a dead project)
7486 lt_prog_compiler_wl='-Wl,'
7487 lt_prog_compiler_pic='-fpic'
7488 lt_prog_compiler_static='-Bstatic'
7489 ;;
7490 ccc*)
7491 lt_prog_compiler_wl='-Wl,'
7492 # All Alpha code is PIC.
7493 lt_prog_compiler_static='-non_shared'
7494 ;;
7495 xl*)
7496 # IBM XL C 8.0/Fortran 10.1 on PPC
7497 lt_prog_compiler_wl='-Wl,'
7498 lt_prog_compiler_pic='-qpic'
7499 lt_prog_compiler_static='-qstaticlink'
7500 ;;
7501 *)
7502 case `$CC -V 2>&1 | sed 5q` in
7503 *Sun\ C*)
7504 # Sun C 5.9
7505 lt_prog_compiler_pic='-KPIC'
7506 lt_prog_compiler_static='-Bstatic'
7507 lt_prog_compiler_wl='-Wl,'
7508 ;;
7509 *Sun\ F*)
7510 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7511 lt_prog_compiler_pic='-KPIC'
7512 lt_prog_compiler_static='-Bstatic'
7513 lt_prog_compiler_wl=''
7514 ;;
7515 esac
7516 ;;
7517 esac
7518 ;;
7519
7520 newsos6)
7521 lt_prog_compiler_pic='-KPIC'
7522 lt_prog_compiler_static='-Bstatic'
7523 ;;
7524
7525 *nto* | *qnx*)
7526 # QNX uses GNU C++, but need to define -shared option too, otherwise
7527 # it will coredump.
7528 lt_prog_compiler_pic='-fPIC -shared'
7529 ;;
7530
7531 osf3* | osf4* | osf5*)
7532 lt_prog_compiler_wl='-Wl,'
7533 # All OSF/1 code is PIC.
7534 lt_prog_compiler_static='-non_shared'
7535 ;;
7536
7537 rdos*)
7538 lt_prog_compiler_static='-non_shared'
7539 ;;
7540
7541 solaris*)
7542 lt_prog_compiler_pic='-KPIC'
7543 lt_prog_compiler_static='-Bstatic'
7544 case $cc_basename in
7545 f77* | f90* | f95*)
7546 lt_prog_compiler_wl='-Qoption ld ';;
7547 *)
7548 lt_prog_compiler_wl='-Wl,';;
7549 esac
7550 ;;
7551
7552 sunos4*)
7553 lt_prog_compiler_wl='-Qoption ld '
7554 lt_prog_compiler_pic='-PIC'
7555 lt_prog_compiler_static='-Bstatic'
7556 ;;
7557
7558 sysv4 | sysv4.2uw2* | sysv4.3*)
7559 lt_prog_compiler_wl='-Wl,'
7560 lt_prog_compiler_pic='-KPIC'
7561 lt_prog_compiler_static='-Bstatic'
7562 ;;
7563
7564 sysv4*MP*)
7565 if test -d /usr/nec ;then
7566 lt_prog_compiler_pic='-Kconform_pic'
7567 lt_prog_compiler_static='-Bstatic'
7568 fi
7569 ;;
7570
7571 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7572 lt_prog_compiler_wl='-Wl,'
7573 lt_prog_compiler_pic='-KPIC'
7574 lt_prog_compiler_static='-Bstatic'
7575 ;;
7576
7577 unicos*)
7578 lt_prog_compiler_wl='-Wl,'
7579 lt_prog_compiler_can_build_shared=no
7580 ;;
7581
7582 uts4*)
7583 lt_prog_compiler_pic='-pic'
7584 lt_prog_compiler_static='-Bstatic'
7585 ;;
7586
7587 *)
7588 lt_prog_compiler_can_build_shared=no
7589 ;;
7590 esac
7591 fi
7592
7593 case $host_os in
7594 # For platforms which do not support PIC, -DPIC is meaningless:
7595 *djgpp*)
7596 lt_prog_compiler_pic=
7597 ;;
7598 *)
7599 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7600 ;;
7601 esac
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7603 $as_echo "$lt_prog_compiler_pic" >&6; }
7604
7605
7606
7607
7608
7609
7610 #
7611 # Check to make sure the PIC flag actually works.
7612 #
7613 if test -n "$lt_prog_compiler_pic"; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7615 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7616 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7617 $as_echo_n "(cached) " >&6
7618 else
7619 lt_cv_prog_compiler_pic_works=no
7620 ac_outfile=conftest.$ac_objext
7621 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7622 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7623 # Insert the option either (1) after the last *FLAGS variable, or
7624 # (2) before a word containing "conftest.", or (3) at the end.
7625 # Note that $ac_compile itself does not contain backslashes and begins
7626 # with a dollar sign (not a hyphen), so the echo should work correctly.
7627 # The option is referenced via a variable to avoid confusing sed.
7628 lt_compile=`echo "$ac_compile" | $SED \
7629 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7631 -e 's:$: $lt_compiler_flag:'`
7632 (eval echo "\"\$as_me:7632: $lt_compile\"" >&5)
7633 (eval "$lt_compile" 2>conftest.err)
7634 ac_status=$?
7635 cat conftest.err >&5
7636 echo "$as_me:7636: \$? = $ac_status" >&5
7637 if (exit $ac_status) && test -s "$ac_outfile"; then
7638 # The compiler can only warn and ignore the option if not recognized
7639 # So say no if there are warnings other than the usual output.
7640 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7641 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7642 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7643 lt_cv_prog_compiler_pic_works=yes
7644 fi
7645 fi
7646 $RM conftest*
7647
7648 fi
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7650 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7651
7652 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7653 case $lt_prog_compiler_pic in
7654 "" | " "*) ;;
7655 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7656 esac
7657 else
7658 lt_prog_compiler_pic=
7659 lt_prog_compiler_can_build_shared=no
7660 fi
7661
7662 fi
7663
7664
7665
7666
7667
7668
7669 #
7670 # Check to make sure the static flag actually works.
7671 #
7672 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7674 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7675 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7676 $as_echo_n "(cached) " >&6
7677 else
7678 lt_cv_prog_compiler_static_works=no
7679 save_LDFLAGS="$LDFLAGS"
7680 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7681 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7682 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7683 # The linker can only warn and ignore the option if not recognized
7684 # So say no if there are warnings
7685 if test -s conftest.err; then
7686 # Append any errors to the config.log.
7687 cat conftest.err 1>&5
7688 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7689 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7690 if diff conftest.exp conftest.er2 >/dev/null; then
7691 lt_cv_prog_compiler_static_works=yes
7692 fi
7693 else
7694 lt_cv_prog_compiler_static_works=yes
7695 fi
7696 fi
7697 $RM -r conftest*
7698 LDFLAGS="$save_LDFLAGS"
7699
7700 fi
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7702 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7703
7704 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7705 :
7706 else
7707 lt_prog_compiler_static=
7708 fi
7709
7710
7711
7712
7713
7714
7715
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7717 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7718 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7719 $as_echo_n "(cached) " >&6
7720 else
7721 lt_cv_prog_compiler_c_o=no
7722 $RM -r conftest 2>/dev/null
7723 mkdir conftest
7724 cd conftest
7725 mkdir out
7726 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7727
7728 lt_compiler_flag="-o out/conftest2.$ac_objext"
7729 # Insert the option either (1) after the last *FLAGS variable, or
7730 # (2) before a word containing "conftest.", or (3) at the end.
7731 # Note that $ac_compile itself does not contain backslashes and begins
7732 # with a dollar sign (not a hyphen), so the echo should work correctly.
7733 lt_compile=`echo "$ac_compile" | $SED \
7734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7736 -e 's:$: $lt_compiler_flag:'`
7737 (eval echo "\"\$as_me:7737: $lt_compile\"" >&5)
7738 (eval "$lt_compile" 2>out/conftest.err)
7739 ac_status=$?
7740 cat out/conftest.err >&5
7741 echo "$as_me:7741: \$? = $ac_status" >&5
7742 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7743 then
7744 # The compiler can only warn and ignore the option if not recognized
7745 # So say no if there are warnings
7746 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7747 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7748 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7749 lt_cv_prog_compiler_c_o=yes
7750 fi
7751 fi
7752 chmod u+w . 2>&5
7753 $RM conftest*
7754 # SGI C++ compiler will create directory out/ii_files/ for
7755 # template instantiation
7756 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7757 $RM out/* && rmdir out
7758 cd ..
7759 $RM -r conftest
7760 $RM conftest*
7761
7762 fi
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7764 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7765
7766
7767
7768
7769
7770
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7772 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7773 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7774 $as_echo_n "(cached) " >&6
7775 else
7776 lt_cv_prog_compiler_c_o=no
7777 $RM -r conftest 2>/dev/null
7778 mkdir conftest
7779 cd conftest
7780 mkdir out
7781 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7782
7783 lt_compiler_flag="-o out/conftest2.$ac_objext"
7784 # Insert the option either (1) after the last *FLAGS variable, or
7785 # (2) before a word containing "conftest.", or (3) at the end.
7786 # Note that $ac_compile itself does not contain backslashes and begins
7787 # with a dollar sign (not a hyphen), so the echo should work correctly.
7788 lt_compile=`echo "$ac_compile" | $SED \
7789 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7790 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7791 -e 's:$: $lt_compiler_flag:'`
7792 (eval echo "\"\$as_me:7792: $lt_compile\"" >&5)
7793 (eval "$lt_compile" 2>out/conftest.err)
7794 ac_status=$?
7795 cat out/conftest.err >&5
7796 echo "$as_me:7796: \$? = $ac_status" >&5
7797 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7798 then
7799 # The compiler can only warn and ignore the option if not recognized
7800 # So say no if there are warnings
7801 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7802 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7803 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7804 lt_cv_prog_compiler_c_o=yes
7805 fi
7806 fi
7807 chmod u+w . 2>&5
7808 $RM conftest*
7809 # SGI C++ compiler will create directory out/ii_files/ for
7810 # template instantiation
7811 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7812 $RM out/* && rmdir out
7813 cd ..
7814 $RM -r conftest
7815 $RM conftest*
7816
7817 fi
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7819 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7820
7821
7822
7823
7824 hard_links="nottested"
7825 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7826 # do not overwrite the value of need_locks provided by the user
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7828 $as_echo_n "checking if we can lock with hard links... " >&6; }
7829 hard_links=yes
7830 $RM conftest*
7831 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7832 touch conftest.a
7833 ln conftest.a conftest.b 2>&5 || hard_links=no
7834 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7836 $as_echo "$hard_links" >&6; }
7837 if test "$hard_links" = no; then
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7839 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7840 need_locks=warn
7841 fi
7842 else
7843 need_locks=no
7844 fi
7845
7846
7847
7848
7849
7850
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7852 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7853
7854 runpath_var=
7855 allow_undefined_flag=
7856 always_export_symbols=no
7857 archive_cmds=
7858 archive_expsym_cmds=
7859 compiler_needs_object=no
7860 enable_shared_with_static_runtimes=no
7861 export_dynamic_flag_spec=
7862 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7863 hardcode_automatic=no
7864 hardcode_direct=no
7865 hardcode_direct_absolute=no
7866 hardcode_libdir_flag_spec=
7867 hardcode_libdir_flag_spec_ld=
7868 hardcode_libdir_separator=
7869 hardcode_minus_L=no
7870 hardcode_shlibpath_var=unsupported
7871 inherit_rpath=no
7872 link_all_deplibs=unknown
7873 module_cmds=
7874 module_expsym_cmds=
7875 old_archive_from_new_cmds=
7876 old_archive_from_expsyms_cmds=
7877 thread_safe_flag_spec=
7878 whole_archive_flag_spec=
7879 # include_expsyms should be a list of space-separated symbols to be *always*
7880 # included in the symbol list
7881 include_expsyms=
7882 # exclude_expsyms can be an extended regexp of symbols to exclude
7883 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7884 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7885 # as well as any symbol that contains `d'.
7886 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7887 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7888 # platforms (ab)use it in PIC code, but their linkers get confused if
7889 # the symbol is explicitly referenced. Since portable code cannot
7890 # rely on this symbol name, it's probably fine to never include it in
7891 # preloaded symbol tables.
7892 # Exclude shared library initialization/finalization symbols.
7893 extract_expsyms_cmds=
7894
7895 case $host_os in
7896 cygwin* | mingw* | pw32* | cegcc*)
7897 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7898 # When not using gcc, we currently assume that we are using
7899 # Microsoft Visual C++.
7900 if test "$GCC" != yes; then
7901 with_gnu_ld=no
7902 fi
7903 ;;
7904 interix*)
7905 # we just hope/assume this is gcc and not c89 (= MSVC++)
7906 with_gnu_ld=yes
7907 ;;
7908 openbsd*)
7909 with_gnu_ld=no
7910 ;;
7911 linux* | k*bsd*-gnu)
7912 link_all_deplibs=no
7913 ;;
7914 esac
7915
7916 ld_shlibs=yes
7917 if test "$with_gnu_ld" = yes; then
7918 # If archive_cmds runs LD, not CC, wlarc should be empty
7919 wlarc='${wl}'
7920
7921 # Set some defaults for GNU ld with shared library support. These
7922 # are reset later if shared libraries are not supported. Putting them
7923 # here allows them to be overridden if necessary.
7924 runpath_var=LD_RUN_PATH
7925 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7926 export_dynamic_flag_spec='${wl}--export-dynamic'
7927 # ancient GNU ld didn't support --whole-archive et. al.
7928 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7929 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7930 else
7931 whole_archive_flag_spec=
7932 fi
7933 supports_anon_versioning=no
7934 case `$LD -v 2>&1` in
7935 *GNU\ gold*) supports_anon_versioning=yes ;;
7936 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7937 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7938 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7939 *\ 2.11.*) ;; # other 2.11 versions
7940 *) supports_anon_versioning=yes ;;
7941 esac
7942
7943 # See if GNU ld supports shared libraries.
7944 case $host_os in
7945 aix[3-9]*)
7946 # On AIX/PPC, the GNU linker is very broken
7947 if test "$host_cpu" != ia64; then
7948 ld_shlibs=no
7949 cat <<_LT_EOF 1>&2
7950
7951 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7952 *** to be unable to reliably create shared libraries on AIX.
7953 *** Therefore, libtool is disabling shared libraries support. If you
7954 *** really care for shared libraries, you may want to modify your PATH
7955 *** so that a non-GNU linker is found, and then restart.
7956
7957 _LT_EOF
7958 fi
7959 ;;
7960
7961 amigaos*)
7962 case $host_cpu in
7963 powerpc)
7964 # see comment about AmigaOS4 .so support
7965 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7966 archive_expsym_cmds=''
7967 ;;
7968 m68k)
7969 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)'
7970 hardcode_libdir_flag_spec='-L$libdir'
7971 hardcode_minus_L=yes
7972 ;;
7973 esac
7974 ;;
7975
7976 beos*)
7977 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7978 allow_undefined_flag=unsupported
7979 # Joseph Beckenbach <[email protected]> says some releases of gcc
7980 # support --undefined. This deserves some investigation. FIXME
7981 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7982 else
7983 ld_shlibs=no
7984 fi
7985 ;;
7986
7987 cygwin* | mingw* | pw32* | cegcc*)
7988 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7989 # as there is no search path for DLLs.
7990 hardcode_libdir_flag_spec='-L$libdir'
7991 allow_undefined_flag=unsupported
7992 always_export_symbols=no
7993 enable_shared_with_static_runtimes=yes
7994 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7995
7996 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7997 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7998 # If the export-symbols file already is a .def file (1st line
7999 # is EXPORTS), use it as is; otherwise, prepend...
8000 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8001 cp $export_symbols $output_objdir/$soname.def;
8002 else
8003 echo EXPORTS > $output_objdir/$soname.def;
8004 cat $export_symbols >> $output_objdir/$soname.def;
8005 fi~
8006 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8007 else
8008 ld_shlibs=no
8009 fi
8010 ;;
8011
8012 interix[3-9]*)
8013 hardcode_direct=no
8014 hardcode_shlibpath_var=no
8015 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8016 export_dynamic_flag_spec='${wl}-E'
8017 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8018 # Instead, shared libraries are loaded at an image base (0x10000000 by
8019 # default) and relocated if they conflict, which is a slow very memory
8020 # consuming and fragmenting process. To avoid this, we pick a random,
8021 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8022 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8023 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8024 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'
8025 ;;
8026
8027 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8028 tmp_diet=no
8029 if test "$host_os" = linux-dietlibc; then
8030 case $cc_basename in
8031 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8032 esac
8033 fi
8034 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8035 && test "$tmp_diet" = no
8036 then
8037 tmp_addflag=
8038 tmp_sharedflag='-shared'
8039 case $cc_basename,$host_cpu in
8040 pgcc*) # Portland Group C compiler
8041 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'
8042 tmp_addflag=' $pic_flag'
8043 ;;
8044 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8045 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'
8046 tmp_addflag=' $pic_flag -Mnomain' ;;
8047 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8048 tmp_addflag=' -i_dynamic' ;;
8049 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8050 tmp_addflag=' -i_dynamic -nofor_main' ;;
8051 ifc* | ifort*) # Intel Fortran compiler
8052 tmp_addflag=' -nofor_main' ;;
8053 lf95*) # Lahey Fortran 8.1
8054 whole_archive_flag_spec=
8055 tmp_sharedflag='--shared' ;;
8056 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8057 tmp_sharedflag='-qmkshrobj'
8058 tmp_addflag= ;;
8059 esac
8060 case `$CC -V 2>&1 | sed 5q` in
8061 *Sun\ C*) # Sun C 5.9
8062 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'
8063 compiler_needs_object=yes
8064 tmp_sharedflag='-G' ;;
8065 *Sun\ F*) # Sun Fortran 8.3
8066 tmp_sharedflag='-G' ;;
8067 esac
8068 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8069
8070 if test "x$supports_anon_versioning" = xyes; then
8071 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8072 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8073 echo "local: *; };" >> $output_objdir/$libname.ver~
8074 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8075 fi
8076
8077 case $cc_basename in
8078 xlf*)
8079 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8080 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8081 hardcode_libdir_flag_spec=
8082 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8083 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8084 if test "x$supports_anon_versioning" = xyes; then
8085 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8086 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8087 echo "local: *; };" >> $output_objdir/$libname.ver~
8088 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8089 fi
8090 ;;
8091 esac
8092 else
8093 ld_shlibs=no
8094 fi
8095 ;;
8096
8097 netbsd* | netbsdelf*-gnu)
8098 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8099 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8100 wlarc=
8101 else
8102 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8103 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8104 fi
8105 ;;
8106
8107 solaris*)
8108 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8109 ld_shlibs=no
8110 cat <<_LT_EOF 1>&2
8111
8112 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8113 *** create shared libraries on Solaris systems. Therefore, libtool
8114 *** is disabling shared libraries support. We urge you to upgrade GNU
8115 *** binutils to release 2.9.1 or newer. Another option is to modify
8116 *** your PATH or compiler configuration so that the native linker is
8117 *** used, and then restart.
8118
8119 _LT_EOF
8120 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8121 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8122 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8123 else
8124 ld_shlibs=no
8125 fi
8126 ;;
8127
8128 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8129 case `$LD -v 2>&1` in
8130 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8131 ld_shlibs=no
8132 cat <<_LT_EOF 1>&2
8133
8134 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8135 *** reliably create shared libraries on SCO systems. Therefore, libtool
8136 *** is disabling shared libraries support. We urge you to upgrade GNU
8137 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8138 *** your PATH or compiler configuration so that the native linker is
8139 *** used, and then restart.
8140
8141 _LT_EOF
8142 ;;
8143 *)
8144 # For security reasons, it is highly recommended that you always
8145 # use absolute paths for naming shared libraries, and exclude the
8146 # DT_RUNPATH tag from executables and libraries. But doing so
8147 # requires that you compile everything twice, which is a pain.
8148 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8149 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8150 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8151 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8152 else
8153 ld_shlibs=no
8154 fi
8155 ;;
8156 esac
8157 ;;
8158
8159 sunos4*)
8160 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8161 wlarc=
8162 hardcode_direct=yes
8163 hardcode_shlibpath_var=no
8164 ;;
8165
8166 *)
8167 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8168 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8169 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8170 else
8171 ld_shlibs=no
8172 fi
8173 ;;
8174 esac
8175
8176 if test "$ld_shlibs" = no; then
8177 runpath_var=
8178 hardcode_libdir_flag_spec=
8179 export_dynamic_flag_spec=
8180 whole_archive_flag_spec=
8181 fi
8182 else
8183 # PORTME fill in a description of your system's linker (not GNU ld)
8184 case $host_os in
8185 aix3*)
8186 allow_undefined_flag=unsupported
8187 always_export_symbols=yes
8188 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'
8189 # Note: this linker hardcodes the directories in LIBPATH if there
8190 # are no directories specified by -L.
8191 hardcode_minus_L=yes
8192 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8193 # Neither direct hardcoding nor static linking is supported with a
8194 # broken collect2.
8195 hardcode_direct=unsupported
8196 fi
8197 ;;
8198
8199 aix[4-9]*)
8200 if test "$host_cpu" = ia64; then
8201 # On IA64, the linker does run time linking by default, so we don't
8202 # have to do anything special.
8203 aix_use_runtimelinking=no
8204 exp_sym_flag='-Bexport'
8205 no_entry_flag=""
8206 else
8207 # If we're using GNU nm, then we don't want the "-C" option.
8208 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8209 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8210 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'
8211 else
8212 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'
8213 fi
8214 aix_use_runtimelinking=no
8215
8216 # Test if we are trying to use run time linking or normal
8217 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8218 # need to do runtime linking.
8219 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8220 for ld_flag in $LDFLAGS; do
8221 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8222 aix_use_runtimelinking=yes
8223 break
8224 fi
8225 done
8226 ;;
8227 esac
8228
8229 exp_sym_flag='-bexport'
8230 no_entry_flag='-bnoentry'
8231 fi
8232
8233 # When large executables or shared objects are built, AIX ld can
8234 # have problems creating the table of contents. If linking a library
8235 # or program results in "error TOC overflow" add -mminimal-toc to
8236 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8237 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8238
8239 archive_cmds=''
8240 hardcode_direct=yes
8241 hardcode_direct_absolute=yes
8242 hardcode_libdir_separator=':'
8243 link_all_deplibs=yes
8244 file_list_spec='${wl}-f,'
8245
8246 if test "$GCC" = yes; then
8247 case $host_os in aix4.[012]|aix4.[012].*)
8248 # We only want to do this on AIX 4.2 and lower, the check
8249 # below for broken collect2 doesn't work under 4.3+
8250 collect2name=`${CC} -print-prog-name=collect2`
8251 if test -f "$collect2name" &&
8252 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8253 then
8254 # We have reworked collect2
8255 :
8256 else
8257 # We have old collect2
8258 hardcode_direct=unsupported
8259 # It fails to find uninstalled libraries when the uninstalled
8260 # path is not listed in the libpath. Setting hardcode_minus_L
8261 # to unsupported forces relinking
8262 hardcode_minus_L=yes
8263 hardcode_libdir_flag_spec='-L$libdir'
8264 hardcode_libdir_separator=
8265 fi
8266 ;;
8267 esac
8268 shared_flag='-shared'
8269 if test "$aix_use_runtimelinking" = yes; then
8270 shared_flag="$shared_flag "'${wl}-G'
8271 fi
8272 link_all_deplibs=no
8273 else
8274 # not using gcc
8275 if test "$host_cpu" = ia64; then
8276 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8277 # chokes on -Wl,-G. The following line is correct:
8278 shared_flag='-G'
8279 else
8280 if test "$aix_use_runtimelinking" = yes; then
8281 shared_flag='${wl}-G'
8282 else
8283 shared_flag='${wl}-bM:SRE'
8284 fi
8285 fi
8286 fi
8287
8288 export_dynamic_flag_spec='${wl}-bexpall'
8289 # It seems that -bexpall does not export symbols beginning with
8290 # underscore (_), so it is better to generate a list of symbols to export.
8291 always_export_symbols=yes
8292 if test "$aix_use_runtimelinking" = yes; then
8293 # Warning - without using the other runtime loading flags (-brtl),
8294 # -berok will link without error, but may produce a broken library.
8295 allow_undefined_flag='-berok'
8296 # Determine the default libpath from the value encoded in an
8297 # empty executable.
8298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8299 /* end confdefs.h. */
8300
8301 int
8302 main ()
8303 {
8304
8305 ;
8306 return 0;
8307 }
8308 _ACEOF
8309 if ac_fn_c_try_link "$LINENO"; then :
8310
8311 lt_aix_libpath_sed='
8312 /Import File Strings/,/^$/ {
8313 /^0/ {
8314 s/^0 *\(.*\)$/\1/
8315 p
8316 }
8317 }'
8318 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8319 # Check for a 64-bit object if we didn't find anything.
8320 if test -z "$aix_libpath"; then
8321 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8322 fi
8323 fi
8324 rm -f core conftest.err conftest.$ac_objext \
8325 conftest$ac_exeext conftest.$ac_ext
8326 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8327
8328 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8329 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"
8330 else
8331 if test "$host_cpu" = ia64; then
8332 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8333 allow_undefined_flag="-z nodefs"
8334 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"
8335 else
8336 # Determine the default libpath from the value encoded in an
8337 # empty executable.
8338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8339 /* end confdefs.h. */
8340
8341 int
8342 main ()
8343 {
8344
8345 ;
8346 return 0;
8347 }
8348 _ACEOF
8349 if ac_fn_c_try_link "$LINENO"; then :
8350
8351 lt_aix_libpath_sed='
8352 /Import File Strings/,/^$/ {
8353 /^0/ {
8354 s/^0 *\(.*\)$/\1/
8355 p
8356 }
8357 }'
8358 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8359 # Check for a 64-bit object if we didn't find anything.
8360 if test -z "$aix_libpath"; then
8361 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8362 fi
8363 fi
8364 rm -f core conftest.err conftest.$ac_objext \
8365 conftest$ac_exeext conftest.$ac_ext
8366 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8367
8368 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8369 # Warning - without using the other run time loading flags,
8370 # -berok will link without error, but may produce a broken library.
8371 no_undefined_flag=' ${wl}-bernotok'
8372 allow_undefined_flag=' ${wl}-berok'
8373 # Exported symbols can be pulled into shared objects from archives
8374 whole_archive_flag_spec='$convenience'
8375 archive_cmds_need_lc=yes
8376 # This is similar to how AIX traditionally builds its shared libraries.
8377 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'
8378 fi
8379 fi
8380 ;;
8381
8382 amigaos*)
8383 case $host_cpu in
8384 powerpc)
8385 # see comment about AmigaOS4 .so support
8386 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8387 archive_expsym_cmds=''
8388 ;;
8389 m68k)
8390 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)'
8391 hardcode_libdir_flag_spec='-L$libdir'
8392 hardcode_minus_L=yes
8393 ;;
8394 esac
8395 ;;
8396
8397 bsdi[45]*)
8398 export_dynamic_flag_spec=-rdynamic
8399 ;;
8400
8401 cygwin* | mingw* | pw32* | cegcc*)
8402 # When not using gcc, we currently assume that we are using
8403 # Microsoft Visual C++.
8404 # hardcode_libdir_flag_spec is actually meaningless, as there is
8405 # no search path for DLLs.
8406 hardcode_libdir_flag_spec=' '
8407 allow_undefined_flag=unsupported
8408 # Tell ltmain to make .lib files, not .a files.
8409 libext=lib
8410 # Tell ltmain to make .dll files, not .so files.
8411 shrext_cmds=".dll"
8412 # FIXME: Setting linknames here is a bad hack.
8413 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8414 # The linker will automatically build a .lib file if we build a DLL.
8415 old_archive_from_new_cmds='true'
8416 # FIXME: Should let the user specify the lib program.
8417 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8418 fix_srcfile_path='`cygpath -w "$srcfile"`'
8419 enable_shared_with_static_runtimes=yes
8420 ;;
8421
8422 darwin* | rhapsody*)
8423
8424
8425 archive_cmds_need_lc=no
8426 hardcode_direct=no
8427 hardcode_automatic=yes
8428 hardcode_shlibpath_var=unsupported
8429 whole_archive_flag_spec=''
8430 link_all_deplibs=yes
8431 allow_undefined_flag="$_lt_dar_allow_undefined"
8432 case $cc_basename in
8433 ifort*) _lt_dar_can_shared=yes ;;
8434 *) _lt_dar_can_shared=$GCC ;;
8435 esac
8436 if test "$_lt_dar_can_shared" = "yes"; then
8437 output_verbose_link_cmd=echo
8438 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8439 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8440 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}"
8441 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}"
8442
8443 else
8444 ld_shlibs=no
8445 fi
8446
8447 ;;
8448
8449 dgux*)
8450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8451 hardcode_libdir_flag_spec='-L$libdir'
8452 hardcode_shlibpath_var=no
8453 ;;
8454
8455 freebsd1*)
8456 ld_shlibs=no
8457 ;;
8458
8459 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8460 # support. Future versions do this automatically, but an explicit c++rt0.o
8461 # does not break anything, and helps significantly (at the cost of a little
8462 # extra space).
8463 freebsd2.2*)
8464 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8465 hardcode_libdir_flag_spec='-R$libdir'
8466 hardcode_direct=yes
8467 hardcode_shlibpath_var=no
8468 ;;
8469
8470 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8471 freebsd2*)
8472 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8473 hardcode_direct=yes
8474 hardcode_minus_L=yes
8475 hardcode_shlibpath_var=no
8476 ;;
8477
8478 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8479 freebsd* | dragonfly*)
8480 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8481 hardcode_libdir_flag_spec='-R$libdir'
8482 hardcode_direct=yes
8483 hardcode_shlibpath_var=no
8484 ;;
8485
8486 hpux9*)
8487 if test "$GCC" = yes; then
8488 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'
8489 else
8490 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'
8491 fi
8492 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8493 hardcode_libdir_separator=:
8494 hardcode_direct=yes
8495
8496 # hardcode_minus_L: Not really in the search PATH,
8497 # but as the default location of the library.
8498 hardcode_minus_L=yes
8499 export_dynamic_flag_spec='${wl}-E'
8500 ;;
8501
8502 hpux10*)
8503 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8504 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8505 else
8506 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8507 fi
8508 if test "$with_gnu_ld" = no; then
8509 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8510 hardcode_libdir_flag_spec_ld='+b $libdir'
8511 hardcode_libdir_separator=:
8512 hardcode_direct=yes
8513 hardcode_direct_absolute=yes
8514 export_dynamic_flag_spec='${wl}-E'
8515 # hardcode_minus_L: Not really in the search PATH,
8516 # but as the default location of the library.
8517 hardcode_minus_L=yes
8518 fi
8519 ;;
8520
8521 hpux11*)
8522 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8523 case $host_cpu in
8524 hppa*64*)
8525 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8526 ;;
8527 ia64*)
8528 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8529 ;;
8530 *)
8531 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8532 ;;
8533 esac
8534 else
8535 case $host_cpu in
8536 hppa*64*)
8537 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8538 ;;
8539 ia64*)
8540 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8541 ;;
8542 *)
8543 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8544 ;;
8545 esac
8546 fi
8547 if test "$with_gnu_ld" = no; then
8548 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8549 hardcode_libdir_separator=:
8550
8551 case $host_cpu in
8552 hppa*64*|ia64*)
8553 hardcode_direct=no
8554 hardcode_shlibpath_var=no
8555 ;;
8556 *)
8557 hardcode_direct=yes
8558 hardcode_direct_absolute=yes
8559 export_dynamic_flag_spec='${wl}-E'
8560
8561 # hardcode_minus_L: Not really in the search PATH,
8562 # but as the default location of the library.
8563 hardcode_minus_L=yes
8564 ;;
8565 esac
8566 fi
8567 ;;
8568
8569 irix5* | irix6* | nonstopux*)
8570 if test "$GCC" = yes; then
8571 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'
8572 # Try to use the -exported_symbol ld option, if it does not
8573 # work, assume that -exports_file does not work either and
8574 # implicitly export all symbols.
8575 save_LDFLAGS="$LDFLAGS"
8576 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8578 /* end confdefs.h. */
8579 int foo(void) {}
8580 _ACEOF
8581 if ac_fn_c_try_link "$LINENO"; then :
8582 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'
8583
8584 fi
8585 rm -f core conftest.err conftest.$ac_objext \
8586 conftest$ac_exeext conftest.$ac_ext
8587 LDFLAGS="$save_LDFLAGS"
8588 else
8589 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'
8590 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'
8591 fi
8592 archive_cmds_need_lc='no'
8593 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8594 hardcode_libdir_separator=:
8595 inherit_rpath=yes
8596 link_all_deplibs=yes
8597 ;;
8598
8599 netbsd* | netbsdelf*-gnu)
8600 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8601 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8602 else
8603 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8604 fi
8605 hardcode_libdir_flag_spec='-R$libdir'
8606 hardcode_direct=yes
8607 hardcode_shlibpath_var=no
8608 ;;
8609
8610 newsos6)
8611 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8612 hardcode_direct=yes
8613 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8614 hardcode_libdir_separator=:
8615 hardcode_shlibpath_var=no
8616 ;;
8617
8618 *nto* | *qnx*)
8619 ;;
8620
8621 openbsd*)
8622 if test -f /usr/libexec/ld.so; then
8623 hardcode_direct=yes
8624 hardcode_shlibpath_var=no
8625 hardcode_direct_absolute=yes
8626 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8627 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8628 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8629 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8630 export_dynamic_flag_spec='${wl}-E'
8631 else
8632 case $host_os in
8633 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8634 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8635 hardcode_libdir_flag_spec='-R$libdir'
8636 ;;
8637 *)
8638 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8639 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8640 ;;
8641 esac
8642 fi
8643 else
8644 ld_shlibs=no
8645 fi
8646 ;;
8647
8648 os2*)
8649 hardcode_libdir_flag_spec='-L$libdir'
8650 hardcode_minus_L=yes
8651 allow_undefined_flag=unsupported
8652 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'
8653 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8654 ;;
8655
8656 osf3*)
8657 if test "$GCC" = yes; then
8658 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8659 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'
8660 else
8661 allow_undefined_flag=' -expect_unresolved \*'
8662 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'
8663 fi
8664 archive_cmds_need_lc='no'
8665 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8666 hardcode_libdir_separator=:
8667 ;;
8668
8669 osf4* | osf5*) # as osf3* with the addition of -msym flag
8670 if test "$GCC" = yes; then
8671 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8672 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'
8673 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8674 else
8675 allow_undefined_flag=' -expect_unresolved \*'
8676 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'
8677 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~
8678 $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'
8679
8680 # Both c and cxx compiler support -rpath directly
8681 hardcode_libdir_flag_spec='-rpath $libdir'
8682 fi
8683 archive_cmds_need_lc='no'
8684 hardcode_libdir_separator=:
8685 ;;
8686
8687 solaris*)
8688 no_undefined_flag=' -z defs'
8689 if test "$GCC" = yes; then
8690 wlarc='${wl}'
8691 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8692 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8693 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8694 else
8695 case `$CC -V 2>&1` in
8696 *"Compilers 5.0"*)
8697 wlarc=''
8698 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8699 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8700 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8701 ;;
8702 *)
8703 wlarc='${wl}'
8704 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8705 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8706 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8707 ;;
8708 esac
8709 fi
8710 hardcode_libdir_flag_spec='-R$libdir'
8711 hardcode_shlibpath_var=no
8712 case $host_os in
8713 solaris2.[0-5] | solaris2.[0-5].*) ;;
8714 *)
8715 # The compiler driver will combine and reorder linker options,
8716 # but understands `-z linker_flag'. GCC discards it without `$wl',
8717 # but is careful enough not to reorder.
8718 # Supported since Solaris 2.6 (maybe 2.5.1?)
8719 if test "$GCC" = yes; then
8720 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8721 else
8722 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8723 fi
8724 ;;
8725 esac
8726 link_all_deplibs=yes
8727 ;;
8728
8729 sunos4*)
8730 if test "x$host_vendor" = xsequent; then
8731 # Use $CC to link under sequent, because it throws in some extra .o
8732 # files that make .init and .fini sections work.
8733 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8734 else
8735 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8736 fi
8737 hardcode_libdir_flag_spec='-L$libdir'
8738 hardcode_direct=yes
8739 hardcode_minus_L=yes
8740 hardcode_shlibpath_var=no
8741 ;;
8742
8743 sysv4)
8744 case $host_vendor in
8745 sni)
8746 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8747 hardcode_direct=yes # is this really true???
8748 ;;
8749 siemens)
8750 ## LD is ld it makes a PLAMLIB
8751 ## CC just makes a GrossModule.
8752 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8753 reload_cmds='$CC -r -o $output$reload_objs'
8754 hardcode_direct=no
8755 ;;
8756 motorola)
8757 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8758 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8759 ;;
8760 esac
8761 runpath_var='LD_RUN_PATH'
8762 hardcode_shlibpath_var=no
8763 ;;
8764
8765 sysv4.3*)
8766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8767 hardcode_shlibpath_var=no
8768 export_dynamic_flag_spec='-Bexport'
8769 ;;
8770
8771 sysv4*MP*)
8772 if test -d /usr/nec; then
8773 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8774 hardcode_shlibpath_var=no
8775 runpath_var=LD_RUN_PATH
8776 hardcode_runpath_var=yes
8777 ld_shlibs=yes
8778 fi
8779 ;;
8780
8781 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8782 no_undefined_flag='${wl}-z,text'
8783 archive_cmds_need_lc=no
8784 hardcode_shlibpath_var=no
8785 runpath_var='LD_RUN_PATH'
8786
8787 if test "$GCC" = yes; then
8788 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8789 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8790 else
8791 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8792 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8793 fi
8794 ;;
8795
8796 sysv5* | sco3.2v5* | sco5v6*)
8797 # Note: We can NOT use -z defs as we might desire, because we do not
8798 # link with -lc, and that would cause any symbols used from libc to
8799 # always be unresolved, which means just about no library would
8800 # ever link correctly. If we're not using GNU ld we use -z text
8801 # though, which does catch some bad symbols but isn't as heavy-handed
8802 # as -z defs.
8803 no_undefined_flag='${wl}-z,text'
8804 allow_undefined_flag='${wl}-z,nodefs'
8805 archive_cmds_need_lc=no
8806 hardcode_shlibpath_var=no
8807 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8808 hardcode_libdir_separator=':'
8809 link_all_deplibs=yes
8810 export_dynamic_flag_spec='${wl}-Bexport'
8811 runpath_var='LD_RUN_PATH'
8812
8813 if test "$GCC" = yes; then
8814 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8815 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8816 else
8817 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8818 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8819 fi
8820 ;;
8821
8822 uts4*)
8823 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8824 hardcode_libdir_flag_spec='-L$libdir'
8825 hardcode_shlibpath_var=no
8826 ;;
8827
8828 *)
8829 ld_shlibs=no
8830 ;;
8831 esac
8832
8833 if test x$host_vendor = xsni; then
8834 case $host in
8835 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8836 export_dynamic_flag_spec='${wl}-Blargedynsym'
8837 ;;
8838 esac
8839 fi
8840 fi
8841
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8843 $as_echo "$ld_shlibs" >&6; }
8844 test "$ld_shlibs" = no && can_build_shared=no
8845
8846 with_gnu_ld=$with_gnu_ld
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862 #
8863 # Do we need to explicitly link libc?
8864 #
8865 case "x$archive_cmds_need_lc" in
8866 x|xyes)
8867 # Assume -lc should be added
8868 archive_cmds_need_lc=yes
8869
8870 if test "$enable_shared" = yes && test "$GCC" = yes; then
8871 case $archive_cmds in
8872 *'~'*)
8873 # FIXME: we may have to deal with multi-command sequences.
8874 ;;
8875 '$CC '*)
8876 # Test whether the compiler implicitly links with -lc since on some
8877 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8878 # to ld, don't add -lc before -lgcc.
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8880 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8881 $RM conftest*
8882 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8883
8884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8885 (eval $ac_compile) 2>&5
8886 ac_status=$?
8887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8888 test $ac_status = 0; } 2>conftest.err; then
8889 soname=conftest
8890 lib=conftest
8891 libobjs=conftest.$ac_objext
8892 deplibs=
8893 wl=$lt_prog_compiler_wl
8894 pic_flag=$lt_prog_compiler_pic
8895 compiler_flags=-v
8896 linker_flags=-v
8897 verstring=
8898 output_objdir=.
8899 libname=conftest
8900 lt_save_allow_undefined_flag=$allow_undefined_flag
8901 allow_undefined_flag=
8902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8903 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8904 ac_status=$?
8905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8906 test $ac_status = 0; }
8907 then
8908 archive_cmds_need_lc=no
8909 else
8910 archive_cmds_need_lc=yes
8911 fi
8912 allow_undefined_flag=$lt_save_allow_undefined_flag
8913 else
8914 cat conftest.err 1>&5
8915 fi
8916 $RM conftest*
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8918 $as_echo "$archive_cmds_need_lc" >&6; }
8919 ;;
8920 esac
8921 fi
8922 ;;
8923 esac
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9082 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9083
9084 if test "$GCC" = yes; then
9085 case $host_os in
9086 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9087 *) lt_awk_arg="/^libraries:/" ;;
9088 esac
9089 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9090 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9091 # if the path contains ";" then we assume it to be the separator
9092 # otherwise default to the standard path separator (i.e. ":") - it is
9093 # assumed that no part of a normal pathname contains ";" but that should
9094 # okay in the real world where ";" in dirpaths is itself problematic.
9095 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9096 else
9097 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9098 fi
9099 # Ok, now we have the path, separated by spaces, we can step through it
9100 # and add multilib dir if necessary.
9101 lt_tmp_lt_search_path_spec=
9102 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9103 for lt_sys_path in $lt_search_path_spec; do
9104 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9105 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9106 else
9107 test -d "$lt_sys_path" && \
9108 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9109 fi
9110 done
9111 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9112 BEGIN {RS=" "; FS="/|\n";} {
9113 lt_foo="";
9114 lt_count=0;
9115 for (lt_i = NF; lt_i > 0; lt_i--) {
9116 if ($lt_i != "" && $lt_i != ".") {
9117 if ($lt_i == "..") {
9118 lt_count++;
9119 } else {
9120 if (lt_count == 0) {
9121 lt_foo="/" $lt_i lt_foo;
9122 } else {
9123 lt_count--;
9124 }
9125 }
9126 }
9127 }
9128 if (lt_foo != "") { lt_freq[lt_foo]++; }
9129 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9130 }'`
9131 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9132 else
9133 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9134 fi
9135 library_names_spec=
9136 libname_spec='lib$name'
9137 soname_spec=
9138 shrext_cmds=".so"
9139 postinstall_cmds=
9140 postuninstall_cmds=
9141 finish_cmds=
9142 finish_eval=
9143 shlibpath_var=
9144 shlibpath_overrides_runpath=unknown
9145 version_type=none
9146 dynamic_linker="$host_os ld.so"
9147 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9148 need_lib_prefix=unknown
9149 hardcode_into_libs=no
9150
9151 # when you set need_version to no, make sure it does not cause -set_version
9152 # flags to be left without arguments
9153 need_version=unknown
9154
9155 case $host_os in
9156 aix3*)
9157 version_type=linux
9158 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9159 shlibpath_var=LIBPATH
9160
9161 # AIX 3 has no versioning support, so we append a major version to the name.
9162 soname_spec='${libname}${release}${shared_ext}$major'
9163 ;;
9164
9165 aix[4-9]*)
9166 version_type=linux
9167 need_lib_prefix=no
9168 need_version=no
9169 hardcode_into_libs=yes
9170 if test "$host_cpu" = ia64; then
9171 # AIX 5 supports IA64
9172 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9173 shlibpath_var=LD_LIBRARY_PATH
9174 else
9175 # With GCC up to 2.95.x, collect2 would create an import file
9176 # for dependence libraries. The import file would start with
9177 # the line `#! .'. This would cause the generated library to
9178 # depend on `.', always an invalid library. This was fixed in
9179 # development snapshots of GCC prior to 3.0.
9180 case $host_os in
9181 aix4 | aix4.[01] | aix4.[01].*)
9182 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9183 echo ' yes '
9184 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9185 :
9186 else
9187 can_build_shared=no
9188 fi
9189 ;;
9190 esac
9191 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9192 # soname into executable. Probably we can add versioning support to
9193 # collect2, so additional links can be useful in future.
9194 if test "$aix_use_runtimelinking" = yes; then
9195 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9196 # instead of lib<name>.a to let people know that these are not
9197 # typical AIX shared libraries.
9198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9199 else
9200 # We preserve .a as extension for shared libraries through AIX4.2
9201 # and later when we are not doing run time linking.
9202 library_names_spec='${libname}${release}.a $libname.a'
9203 soname_spec='${libname}${release}${shared_ext}$major'
9204 fi
9205 shlibpath_var=LIBPATH
9206 fi
9207 ;;
9208
9209 amigaos*)
9210 case $host_cpu in
9211 powerpc)
9212 # Since July 2007 AmigaOS4 officially supports .so libraries.
9213 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9215 ;;
9216 m68k)
9217 library_names_spec='$libname.ixlibrary $libname.a'
9218 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9219 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'
9220 ;;
9221 esac
9222 ;;
9223
9224 beos*)
9225 library_names_spec='${libname}${shared_ext}'
9226 dynamic_linker="$host_os ld.so"
9227 shlibpath_var=LIBRARY_PATH
9228 ;;
9229
9230 bsdi[45]*)
9231 version_type=linux
9232 need_version=no
9233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9234 soname_spec='${libname}${release}${shared_ext}$major'
9235 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9236 shlibpath_var=LD_LIBRARY_PATH
9237 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9238 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9239 # the default ld.so.conf also contains /usr/contrib/lib and
9240 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9241 # libtool to hard-code these into programs
9242 ;;
9243
9244 cygwin* | mingw* | pw32* | cegcc*)
9245 version_type=windows
9246 shrext_cmds=".dll"
9247 need_version=no
9248 need_lib_prefix=no
9249
9250 case $GCC,$host_os in
9251 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9252 library_names_spec='$libname.dll.a'
9253 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9254 postinstall_cmds='base_file=`basename \${file}`~
9255 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9256 dldir=$destdir/`dirname \$dlpath`~
9257 test -d \$dldir || mkdir -p \$dldir~
9258 $install_prog $dir/$dlname \$dldir/$dlname~
9259 chmod a+x \$dldir/$dlname~
9260 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9261 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9262 fi'
9263 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9264 dlpath=$dir/\$dldll~
9265 $RM \$dlpath'
9266 shlibpath_overrides_runpath=yes
9267
9268 case $host_os in
9269 cygwin*)
9270 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9271 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9272 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9273 ;;
9274 mingw* | cegcc*)
9275 # MinGW DLLs use traditional 'lib' prefix
9276 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9277 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9278 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9279 # It is most probably a Windows format PATH printed by
9280 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9281 # path with ; separators, and with drive letters. We can handle the
9282 # drive letters (cygwin fileutils understands them), so leave them,
9283 # especially as we might pass files found there to a mingw objdump,
9284 # which wouldn't understand a cygwinified path. Ahh.
9285 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9286 else
9287 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9288 fi
9289 ;;
9290 pw32*)
9291 # pw32 DLLs use 'pw' prefix rather than 'lib'
9292 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9293 ;;
9294 esac
9295 ;;
9296
9297 *)
9298 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9299 ;;
9300 esac
9301 dynamic_linker='Win32 ld.exe'
9302 # FIXME: first we should search . and the directory the executable is in
9303 shlibpath_var=PATH
9304 ;;
9305
9306 darwin* | rhapsody*)
9307 dynamic_linker="$host_os dyld"
9308 version_type=darwin
9309 need_lib_prefix=no
9310 need_version=no
9311 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9312 soname_spec='${libname}${release}${major}$shared_ext'
9313 shlibpath_overrides_runpath=yes
9314 shlibpath_var=DYLD_LIBRARY_PATH
9315 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9316
9317 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9318 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9319 ;;
9320
9321 dgux*)
9322 version_type=linux
9323 need_lib_prefix=no
9324 need_version=no
9325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9326 soname_spec='${libname}${release}${shared_ext}$major'
9327 shlibpath_var=LD_LIBRARY_PATH
9328 ;;
9329
9330 freebsd1*)
9331 dynamic_linker=no
9332 ;;
9333
9334 freebsd* | dragonfly*)
9335 # DragonFly does not have aout. When/if they implement a new
9336 # versioning mechanism, adjust this.
9337 if test -x /usr/bin/objformat; then
9338 objformat=`/usr/bin/objformat`
9339 else
9340 case $host_os in
9341 freebsd[123]*) objformat=aout ;;
9342 *) objformat=elf ;;
9343 esac
9344 fi
9345 version_type=freebsd-$objformat
9346 case $version_type in
9347 freebsd-elf*)
9348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9349 need_version=no
9350 need_lib_prefix=no
9351 ;;
9352 freebsd-*)
9353 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9354 need_version=yes
9355 ;;
9356 esac
9357 shlibpath_var=LD_LIBRARY_PATH
9358 case $host_os in
9359 freebsd2*)
9360 shlibpath_overrides_runpath=yes
9361 ;;
9362 freebsd3.[01]* | freebsdelf3.[01]*)
9363 shlibpath_overrides_runpath=yes
9364 hardcode_into_libs=yes
9365 ;;
9366 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9367 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9368 shlibpath_overrides_runpath=no
9369 hardcode_into_libs=yes
9370 ;;
9371 *) # from 4.6 on, and DragonFly
9372 shlibpath_overrides_runpath=yes
9373 hardcode_into_libs=yes
9374 ;;
9375 esac
9376 ;;
9377
9378 gnu*)
9379 version_type=linux
9380 need_lib_prefix=no
9381 need_version=no
9382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9383 soname_spec='${libname}${release}${shared_ext}$major'
9384 shlibpath_var=LD_LIBRARY_PATH
9385 hardcode_into_libs=yes
9386 ;;
9387
9388 hpux9* | hpux10* | hpux11*)
9389 # Give a soname corresponding to the major version so that dld.sl refuses to
9390 # link against other versions.
9391 version_type=sunos
9392 need_lib_prefix=no
9393 need_version=no
9394 case $host_cpu in
9395 ia64*)
9396 shrext_cmds='.so'
9397 hardcode_into_libs=yes
9398 dynamic_linker="$host_os dld.so"
9399 shlibpath_var=LD_LIBRARY_PATH
9400 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9402 soname_spec='${libname}${release}${shared_ext}$major'
9403 if test "X$HPUX_IA64_MODE" = X32; then
9404 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9405 else
9406 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9407 fi
9408 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9409 ;;
9410 hppa*64*)
9411 shrext_cmds='.sl'
9412 hardcode_into_libs=yes
9413 dynamic_linker="$host_os dld.sl"
9414 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9415 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9417 soname_spec='${libname}${release}${shared_ext}$major'
9418 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9419 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9420 ;;
9421 *)
9422 shrext_cmds='.sl'
9423 dynamic_linker="$host_os dld.sl"
9424 shlibpath_var=SHLIB_PATH
9425 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9427 soname_spec='${libname}${release}${shared_ext}$major'
9428 ;;
9429 esac
9430 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9431 postinstall_cmds='chmod 555 $lib'
9432 ;;
9433
9434 interix[3-9]*)
9435 version_type=linux
9436 need_lib_prefix=no
9437 need_version=no
9438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9439 soname_spec='${libname}${release}${shared_ext}$major'
9440 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9441 shlibpath_var=LD_LIBRARY_PATH
9442 shlibpath_overrides_runpath=no
9443 hardcode_into_libs=yes
9444 ;;
9445
9446 irix5* | irix6* | nonstopux*)
9447 case $host_os in
9448 nonstopux*) version_type=nonstopux ;;
9449 *)
9450 if test "$lt_cv_prog_gnu_ld" = yes; then
9451 version_type=linux
9452 else
9453 version_type=irix
9454 fi ;;
9455 esac
9456 need_lib_prefix=no
9457 need_version=no
9458 soname_spec='${libname}${release}${shared_ext}$major'
9459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9460 case $host_os in
9461 irix5* | nonstopux*)
9462 libsuff= shlibsuff=
9463 ;;
9464 *)
9465 case $LD in # libtool.m4 will add one of these switches to LD
9466 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9467 libsuff= shlibsuff= libmagic=32-bit;;
9468 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9469 libsuff=32 shlibsuff=N32 libmagic=N32;;
9470 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9471 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9472 *) libsuff= shlibsuff= libmagic=never-match;;
9473 esac
9474 ;;
9475 esac
9476 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9477 shlibpath_overrides_runpath=no
9478 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9479 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9480 hardcode_into_libs=yes
9481 ;;
9482
9483 # No shared lib support for Linux oldld, aout, or coff.
9484 linux*oldld* | linux*aout* | linux*coff*)
9485 dynamic_linker=no
9486 ;;
9487
9488 # This must be Linux ELF.
9489 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9490 version_type=linux
9491 need_lib_prefix=no
9492 need_version=no
9493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9494 soname_spec='${libname}${release}${shared_ext}$major'
9495 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9496 shlibpath_var=LD_LIBRARY_PATH
9497 shlibpath_overrides_runpath=no
9498 # Some binutils ld are patched to set DT_RUNPATH
9499 save_LDFLAGS=$LDFLAGS
9500 save_libdir=$libdir
9501 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9502 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9504 /* end confdefs.h. */
9505
9506 int
9507 main ()
9508 {
9509
9510 ;
9511 return 0;
9512 }
9513 _ACEOF
9514 if ac_fn_c_try_link "$LINENO"; then :
9515 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9516 shlibpath_overrides_runpath=yes
9517 fi
9518 fi
9519 rm -f core conftest.err conftest.$ac_objext \
9520 conftest$ac_exeext conftest.$ac_ext
9521 LDFLAGS=$save_LDFLAGS
9522 libdir=$save_libdir
9523
9524 # This implies no fast_install, which is unacceptable.
9525 # Some rework will be needed to allow for fast_install
9526 # before this can be enabled.
9527 hardcode_into_libs=yes
9528
9529 # Append ld.so.conf contents to the search path
9530 if test -f /etc/ld.so.conf; then
9531 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' ' '`
9532 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9533 fi
9534
9535 # We used to test for /lib/ld.so.1 and disable shared libraries on
9536 # powerpc, because MkLinux only supported shared libraries with the
9537 # GNU dynamic linker. Since this was broken with cross compilers,
9538 # most powerpc-linux boxes support dynamic linking these days and
9539 # people can always --disable-shared, the test was removed, and we
9540 # assume the GNU/Linux dynamic linker is in use.
9541 dynamic_linker='GNU/Linux ld.so'
9542 ;;
9543
9544 netbsdelf*-gnu)
9545 version_type=linux
9546 need_lib_prefix=no
9547 need_version=no
9548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9549 soname_spec='${libname}${release}${shared_ext}$major'
9550 shlibpath_var=LD_LIBRARY_PATH
9551 shlibpath_overrides_runpath=no
9552 hardcode_into_libs=yes
9553 dynamic_linker='NetBSD ld.elf_so'
9554 ;;
9555
9556 netbsd*)
9557 version_type=sunos
9558 need_lib_prefix=no
9559 need_version=no
9560 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9562 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9563 dynamic_linker='NetBSD (a.out) ld.so'
9564 else
9565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9566 soname_spec='${libname}${release}${shared_ext}$major'
9567 dynamic_linker='NetBSD ld.elf_so'
9568 fi
9569 shlibpath_var=LD_LIBRARY_PATH
9570 shlibpath_overrides_runpath=yes
9571 hardcode_into_libs=yes
9572 ;;
9573
9574 newsos6)
9575 version_type=linux
9576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9577 shlibpath_var=LD_LIBRARY_PATH
9578 shlibpath_overrides_runpath=yes
9579 ;;
9580
9581 *nto* | *qnx*)
9582 version_type=qnx
9583 need_lib_prefix=no
9584 need_version=no
9585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9586 soname_spec='${libname}${release}${shared_ext}$major'
9587 shlibpath_var=LD_LIBRARY_PATH
9588 shlibpath_overrides_runpath=no
9589 hardcode_into_libs=yes
9590 dynamic_linker='ldqnx.so'
9591 ;;
9592
9593 openbsd*)
9594 version_type=sunos
9595 sys_lib_dlsearch_path_spec="/usr/lib"
9596 need_lib_prefix=no
9597 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9598 case $host_os in
9599 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9600 *) need_version=no ;;
9601 esac
9602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9603 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9604 shlibpath_var=LD_LIBRARY_PATH
9605 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9606 case $host_os in
9607 openbsd2.[89] | openbsd2.[89].*)
9608 shlibpath_overrides_runpath=no
9609 ;;
9610 *)
9611 shlibpath_overrides_runpath=yes
9612 ;;
9613 esac
9614 else
9615 shlibpath_overrides_runpath=yes
9616 fi
9617 ;;
9618
9619 os2*)
9620 libname_spec='$name'
9621 shrext_cmds=".dll"
9622 need_lib_prefix=no
9623 library_names_spec='$libname${shared_ext} $libname.a'
9624 dynamic_linker='OS/2 ld.exe'
9625 shlibpath_var=LIBPATH
9626 ;;
9627
9628 osf3* | osf4* | osf5*)
9629 version_type=osf
9630 need_lib_prefix=no
9631 need_version=no
9632 soname_spec='${libname}${release}${shared_ext}$major'
9633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9634 shlibpath_var=LD_LIBRARY_PATH
9635 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9636 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9637 ;;
9638
9639 rdos*)
9640 dynamic_linker=no
9641 ;;
9642
9643 solaris*)
9644 version_type=linux
9645 need_lib_prefix=no
9646 need_version=no
9647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9648 soname_spec='${libname}${release}${shared_ext}$major'
9649 shlibpath_var=LD_LIBRARY_PATH
9650 shlibpath_overrides_runpath=yes
9651 hardcode_into_libs=yes
9652 # ldd complains unless libraries are executable
9653 postinstall_cmds='chmod +x $lib'
9654 ;;
9655
9656 sunos4*)
9657 version_type=sunos
9658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9659 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9660 shlibpath_var=LD_LIBRARY_PATH
9661 shlibpath_overrides_runpath=yes
9662 if test "$with_gnu_ld" = yes; then
9663 need_lib_prefix=no
9664 fi
9665 need_version=yes
9666 ;;
9667
9668 sysv4 | sysv4.3*)
9669 version_type=linux
9670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9671 soname_spec='${libname}${release}${shared_ext}$major'
9672 shlibpath_var=LD_LIBRARY_PATH
9673 case $host_vendor in
9674 sni)
9675 shlibpath_overrides_runpath=no
9676 need_lib_prefix=no
9677 runpath_var=LD_RUN_PATH
9678 ;;
9679 siemens)
9680 need_lib_prefix=no
9681 ;;
9682 motorola)
9683 need_lib_prefix=no
9684 need_version=no
9685 shlibpath_overrides_runpath=no
9686 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9687 ;;
9688 esac
9689 ;;
9690
9691 sysv4*MP*)
9692 if test -d /usr/nec ;then
9693 version_type=linux
9694 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9695 soname_spec='$libname${shared_ext}.$major'
9696 shlibpath_var=LD_LIBRARY_PATH
9697 fi
9698 ;;
9699
9700 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9701 version_type=freebsd-elf
9702 need_lib_prefix=no
9703 need_version=no
9704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9705 soname_spec='${libname}${release}${shared_ext}$major'
9706 shlibpath_var=LD_LIBRARY_PATH
9707 shlibpath_overrides_runpath=yes
9708 hardcode_into_libs=yes
9709 if test "$with_gnu_ld" = yes; then
9710 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9711 else
9712 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9713 case $host_os in
9714 sco3.2v5*)
9715 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9716 ;;
9717 esac
9718 fi
9719 sys_lib_dlsearch_path_spec='/usr/lib'
9720 ;;
9721
9722 tpf*)
9723 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9724 version_type=linux
9725 need_lib_prefix=no
9726 need_version=no
9727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9728 shlibpath_var=LD_LIBRARY_PATH
9729 shlibpath_overrides_runpath=no
9730 hardcode_into_libs=yes
9731 ;;
9732
9733 uts4*)
9734 version_type=linux
9735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9736 soname_spec='${libname}${release}${shared_ext}$major'
9737 shlibpath_var=LD_LIBRARY_PATH
9738 ;;
9739
9740 *)
9741 dynamic_linker=no
9742 ;;
9743 esac
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9745 $as_echo "$dynamic_linker" >&6; }
9746 test "$dynamic_linker" = no && can_build_shared=no
9747
9748 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9749 if test "$GCC" = yes; then
9750 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9751 fi
9752
9753 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9754 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9755 fi
9756 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9757 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9758 fi
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9847 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9848 hardcode_action=
9849 if test -n "$hardcode_libdir_flag_spec" ||
9850 test -n "$runpath_var" ||
9851 test "X$hardcode_automatic" = "Xyes" ; then
9852
9853 # We can hardcode non-existent directories.
9854 if test "$hardcode_direct" != no &&
9855 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9856 # have to relink, otherwise we might link with an installed library
9857 # when we should be linking with a yet-to-be-installed one
9858 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9859 test "$hardcode_minus_L" != no; then
9860 # Linking always hardcodes the temporary library directory.
9861 hardcode_action=relink
9862 else
9863 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9864 hardcode_action=immediate
9865 fi
9866 else
9867 # We cannot hardcode anything, or else we can only hardcode existing
9868 # directories.
9869 hardcode_action=unsupported
9870 fi
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9872 $as_echo "$hardcode_action" >&6; }
9873
9874 if test "$hardcode_action" = relink ||
9875 test "$inherit_rpath" = yes; then
9876 # Fast installation is not supported
9877 enable_fast_install=no
9878 elif test "$shlibpath_overrides_runpath" = yes ||
9879 test "$enable_shared" = no; then
9880 # Fast installation is not necessary
9881 enable_fast_install=needless
9882 fi
9883
9884
9885
9886
9887
9888
9889 if test "x$enable_dlopen" != xyes; then
9890 enable_dlopen=unknown
9891 enable_dlopen_self=unknown
9892 enable_dlopen_self_static=unknown
9893 else
9894 lt_cv_dlopen=no
9895 lt_cv_dlopen_libs=
9896
9897 case $host_os in
9898 beos*)
9899 lt_cv_dlopen="load_add_on"
9900 lt_cv_dlopen_libs=
9901 lt_cv_dlopen_self=yes
9902 ;;
9903
9904 mingw* | pw32* | cegcc*)
9905 lt_cv_dlopen="LoadLibrary"
9906 lt_cv_dlopen_libs=
9907 ;;
9908
9909 cygwin*)
9910 lt_cv_dlopen="dlopen"
9911 lt_cv_dlopen_libs=
9912 ;;
9913
9914 darwin*)
9915 # if libdl is installed we need to link against it
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9917 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9918 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9919 $as_echo_n "(cached) " >&6
9920 else
9921 ac_check_lib_save_LIBS=$LIBS
9922 LIBS="-ldl $LIBS"
9923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9924 /* end confdefs.h. */
9925
9926 /* Override any GCC internal prototype to avoid an error.
9927 Use char because int might match the return type of a GCC
9928 builtin and then its argument prototype would still apply. */
9929 #ifdef __cplusplus
9930 extern "C"
9931 #endif
9932 char dlopen ();
9933 int
9934 main ()
9935 {
9936 return dlopen ();
9937 ;
9938 return 0;
9939 }
9940 _ACEOF
9941 if ac_fn_c_try_link "$LINENO"; then :
9942 ac_cv_lib_dl_dlopen=yes
9943 else
9944 ac_cv_lib_dl_dlopen=no
9945 fi
9946 rm -f core conftest.err conftest.$ac_objext \
9947 conftest$ac_exeext conftest.$ac_ext
9948 LIBS=$ac_check_lib_save_LIBS
9949 fi
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9951 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9952 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9953 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9954 else
9955
9956 lt_cv_dlopen="dyld"
9957 lt_cv_dlopen_libs=
9958 lt_cv_dlopen_self=yes
9959
9960 fi
9961
9962 ;;
9963
9964 *)
9965 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9966 if test "x$ac_cv_func_shl_load" = x""yes; then :
9967 lt_cv_dlopen="shl_load"
9968 else
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9970 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9971 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9972 $as_echo_n "(cached) " >&6
9973 else
9974 ac_check_lib_save_LIBS=$LIBS
9975 LIBS="-ldld $LIBS"
9976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9977 /* end confdefs.h. */
9978
9979 /* Override any GCC internal prototype to avoid an error.
9980 Use char because int might match the return type of a GCC
9981 builtin and then its argument prototype would still apply. */
9982 #ifdef __cplusplus
9983 extern "C"
9984 #endif
9985 char shl_load ();
9986 int
9987 main ()
9988 {
9989 return shl_load ();
9990 ;
9991 return 0;
9992 }
9993 _ACEOF
9994 if ac_fn_c_try_link "$LINENO"; then :
9995 ac_cv_lib_dld_shl_load=yes
9996 else
9997 ac_cv_lib_dld_shl_load=no
9998 fi
9999 rm -f core conftest.err conftest.$ac_objext \
10000 conftest$ac_exeext conftest.$ac_ext
10001 LIBS=$ac_check_lib_save_LIBS
10002 fi
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10004 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10005 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10006 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10007 else
10008 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10009 if test "x$ac_cv_func_dlopen" = x""yes; then :
10010 lt_cv_dlopen="dlopen"
10011 else
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10013 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10014 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10015 $as_echo_n "(cached) " >&6
10016 else
10017 ac_check_lib_save_LIBS=$LIBS
10018 LIBS="-ldl $LIBS"
10019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10020 /* end confdefs.h. */
10021
10022 /* Override any GCC internal prototype to avoid an error.
10023 Use char because int might match the return type of a GCC
10024 builtin and then its argument prototype would still apply. */
10025 #ifdef __cplusplus
10026 extern "C"
10027 #endif
10028 char dlopen ();
10029 int
10030 main ()
10031 {
10032 return dlopen ();
10033 ;
10034 return 0;
10035 }
10036 _ACEOF
10037 if ac_fn_c_try_link "$LINENO"; then :
10038 ac_cv_lib_dl_dlopen=yes
10039 else
10040 ac_cv_lib_dl_dlopen=no
10041 fi
10042 rm -f core conftest.err conftest.$ac_objext \
10043 conftest$ac_exeext conftest.$ac_ext
10044 LIBS=$ac_check_lib_save_LIBS
10045 fi
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10047 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10048 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10049 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10050 else
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10052 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10053 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10054 $as_echo_n "(cached) " >&6
10055 else
10056 ac_check_lib_save_LIBS=$LIBS
10057 LIBS="-lsvld $LIBS"
10058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10059 /* end confdefs.h. */
10060
10061 /* Override any GCC internal prototype to avoid an error.
10062 Use char because int might match the return type of a GCC
10063 builtin and then its argument prototype would still apply. */
10064 #ifdef __cplusplus
10065 extern "C"
10066 #endif
10067 char dlopen ();
10068 int
10069 main ()
10070 {
10071 return dlopen ();
10072 ;
10073 return 0;
10074 }
10075 _ACEOF
10076 if ac_fn_c_try_link "$LINENO"; then :
10077 ac_cv_lib_svld_dlopen=yes
10078 else
10079 ac_cv_lib_svld_dlopen=no
10080 fi
10081 rm -f core conftest.err conftest.$ac_objext \
10082 conftest$ac_exeext conftest.$ac_ext
10083 LIBS=$ac_check_lib_save_LIBS
10084 fi
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10086 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10087 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10088 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10089 else
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10091 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10092 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10093 $as_echo_n "(cached) " >&6
10094 else
10095 ac_check_lib_save_LIBS=$LIBS
10096 LIBS="-ldld $LIBS"
10097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10098 /* end confdefs.h. */
10099
10100 /* Override any GCC internal prototype to avoid an error.
10101 Use char because int might match the return type of a GCC
10102 builtin and then its argument prototype would still apply. */
10103 #ifdef __cplusplus
10104 extern "C"
10105 #endif
10106 char dld_link ();
10107 int
10108 main ()
10109 {
10110 return dld_link ();
10111 ;
10112 return 0;
10113 }
10114 _ACEOF
10115 if ac_fn_c_try_link "$LINENO"; then :
10116 ac_cv_lib_dld_dld_link=yes
10117 else
10118 ac_cv_lib_dld_dld_link=no
10119 fi
10120 rm -f core conftest.err conftest.$ac_objext \
10121 conftest$ac_exeext conftest.$ac_ext
10122 LIBS=$ac_check_lib_save_LIBS
10123 fi
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10125 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10126 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10127 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10128 fi
10129
10130
10131 fi
10132
10133
10134 fi
10135
10136
10137 fi
10138
10139
10140 fi
10141
10142
10143 fi
10144
10145 ;;
10146 esac
10147
10148 if test "x$lt_cv_dlopen" != xno; then
10149 enable_dlopen=yes
10150 else
10151 enable_dlopen=no
10152 fi
10153
10154 case $lt_cv_dlopen in
10155 dlopen)
10156 save_CPPFLAGS="$CPPFLAGS"
10157 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10158
10159 save_LDFLAGS="$LDFLAGS"
10160 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10161
10162 save_LIBS="$LIBS"
10163 LIBS="$lt_cv_dlopen_libs $LIBS"
10164
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10166 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10167 if test "${lt_cv_dlopen_self+set}" = set; then :
10168 $as_echo_n "(cached) " >&6
10169 else
10170 if test "$cross_compiling" = yes; then :
10171 lt_cv_dlopen_self=cross
10172 else
10173 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10174 lt_status=$lt_dlunknown
10175 cat > conftest.$ac_ext <<_LT_EOF
10176 #line 10176 "configure"
10177 #include "confdefs.h"
10178
10179 #if HAVE_DLFCN_H
10180 #include <dlfcn.h>
10181 #endif
10182
10183 #include <stdio.h>
10184
10185 #ifdef RTLD_GLOBAL
10186 # define LT_DLGLOBAL RTLD_GLOBAL
10187 #else
10188 # ifdef DL_GLOBAL
10189 # define LT_DLGLOBAL DL_GLOBAL
10190 # else
10191 # define LT_DLGLOBAL 0
10192 # endif
10193 #endif
10194
10195 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10196 find out it does not work in some platform. */
10197 #ifndef LT_DLLAZY_OR_NOW
10198 # ifdef RTLD_LAZY
10199 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10200 # else
10201 # ifdef DL_LAZY
10202 # define LT_DLLAZY_OR_NOW DL_LAZY
10203 # else
10204 # ifdef RTLD_NOW
10205 # define LT_DLLAZY_OR_NOW RTLD_NOW
10206 # else
10207 # ifdef DL_NOW
10208 # define LT_DLLAZY_OR_NOW DL_NOW
10209 # else
10210 # define LT_DLLAZY_OR_NOW 0
10211 # endif
10212 # endif
10213 # endif
10214 # endif
10215 #endif
10216
10217 void fnord() { int i=42;}
10218 int main ()
10219 {
10220 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10221 int status = $lt_dlunknown;
10222
10223 if (self)
10224 {
10225 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10226 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10227 /* dlclose (self); */
10228 }
10229 else
10230 puts (dlerror ());
10231
10232 return status;
10233 }
10234 _LT_EOF
10235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10236 (eval $ac_link) 2>&5
10237 ac_status=$?
10238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10239 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10240 (./conftest; exit; ) >&5 2>/dev/null
10241 lt_status=$?
10242 case x$lt_status in
10243 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10244 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10245 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10246 esac
10247 else :
10248 # compilation failed
10249 lt_cv_dlopen_self=no
10250 fi
10251 fi
10252 rm -fr conftest*
10253
10254
10255 fi
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10257 $as_echo "$lt_cv_dlopen_self" >&6; }
10258
10259 if test "x$lt_cv_dlopen_self" = xyes; then
10260 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10262 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10263 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10264 $as_echo_n "(cached) " >&6
10265 else
10266 if test "$cross_compiling" = yes; then :
10267 lt_cv_dlopen_self_static=cross
10268 else
10269 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10270 lt_status=$lt_dlunknown
10271 cat > conftest.$ac_ext <<_LT_EOF
10272 #line 10272 "configure"
10273 #include "confdefs.h"
10274
10275 #if HAVE_DLFCN_H
10276 #include <dlfcn.h>
10277 #endif
10278
10279 #include <stdio.h>
10280
10281 #ifdef RTLD_GLOBAL
10282 # define LT_DLGLOBAL RTLD_GLOBAL
10283 #else
10284 # ifdef DL_GLOBAL
10285 # define LT_DLGLOBAL DL_GLOBAL
10286 # else
10287 # define LT_DLGLOBAL 0
10288 # endif
10289 #endif
10290
10291 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10292 find out it does not work in some platform. */
10293 #ifndef LT_DLLAZY_OR_NOW
10294 # ifdef RTLD_LAZY
10295 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10296 # else
10297 # ifdef DL_LAZY
10298 # define LT_DLLAZY_OR_NOW DL_LAZY
10299 # else
10300 # ifdef RTLD_NOW
10301 # define LT_DLLAZY_OR_NOW RTLD_NOW
10302 # else
10303 # ifdef DL_NOW
10304 # define LT_DLLAZY_OR_NOW DL_NOW
10305 # else
10306 # define LT_DLLAZY_OR_NOW 0
10307 # endif
10308 # endif
10309 # endif
10310 # endif
10311 #endif
10312
10313 void fnord() { int i=42;}
10314 int main ()
10315 {
10316 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10317 int status = $lt_dlunknown;
10318
10319 if (self)
10320 {
10321 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10322 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10323 /* dlclose (self); */
10324 }
10325 else
10326 puts (dlerror ());
10327
10328 return status;
10329 }
10330 _LT_EOF
10331 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10332 (eval $ac_link) 2>&5
10333 ac_status=$?
10334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10335 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10336 (./conftest; exit; ) >&5 2>/dev/null
10337 lt_status=$?
10338 case x$lt_status in
10339 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10340 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10341 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10342 esac
10343 else :
10344 # compilation failed
10345 lt_cv_dlopen_self_static=no
10346 fi
10347 fi
10348 rm -fr conftest*
10349
10350
10351 fi
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10353 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10354 fi
10355
10356 CPPFLAGS="$save_CPPFLAGS"
10357 LDFLAGS="$save_LDFLAGS"
10358 LIBS="$save_LIBS"
10359 ;;
10360 esac
10361
10362 case $lt_cv_dlopen_self in
10363 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10364 *) enable_dlopen_self=unknown ;;
10365 esac
10366
10367 case $lt_cv_dlopen_self_static in
10368 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10369 *) enable_dlopen_self_static=unknown ;;
10370 esac
10371 fi
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389 striplib=
10390 old_striplib=
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10392 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10393 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10394 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10395 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10397 $as_echo "yes" >&6; }
10398 else
10399 # FIXME - insert some real tests, host_os isn't really good enough
10400 case $host_os in
10401 darwin*)
10402 if test -n "$STRIP" ; then
10403 striplib="$STRIP -x"
10404 old_striplib="$STRIP -S"
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10406 $as_echo "yes" >&6; }
10407 else
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10409 $as_echo "no" >&6; }
10410 fi
10411 ;;
10412 *)
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10414 $as_echo "no" >&6; }
10415 ;;
10416 esac
10417 fi
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430 # Report which library types will actually be built
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10432 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10434 $as_echo "$can_build_shared" >&6; }
10435
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10437 $as_echo_n "checking whether to build shared libraries... " >&6; }
10438 test "$can_build_shared" = "no" && enable_shared=no
10439
10440 # On AIX, shared libraries and static libraries use the same namespace, and
10441 # are all built from PIC.
10442 case $host_os in
10443 aix3*)
10444 test "$enable_shared" = yes && enable_static=no
10445 if test -n "$RANLIB"; then
10446 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10447 postinstall_cmds='$RANLIB $lib'
10448 fi
10449 ;;
10450
10451 aix[4-9]*)
10452 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10453 test "$enable_shared" = yes && enable_static=no
10454 fi
10455 ;;
10456 esac
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10458 $as_echo "$enable_shared" >&6; }
10459
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10461 $as_echo_n "checking whether to build static libraries... " >&6; }
10462 # Make sure either enable_shared or enable_static is yes.
10463 test "$enable_shared" = yes || enable_static=yes
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10465 $as_echo "$enable_static" >&6; }
10466
10467
10468
10469
10470 fi
10471 ac_ext=c
10472 ac_cpp='$CPP $CPPFLAGS'
10473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10476
10477 CC="$lt_save_CC"
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491 ac_config_commands="$ac_config_commands libtool"
10492
10493
10494
10495
10496 # Only expand once:
10497
10498
10499
10500
10501
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10503 $as_echo_n "checking for ANSI C header files... " >&6; }
10504 if test "${ac_cv_header_stdc+set}" = set; then :
10505 $as_echo_n "(cached) " >&6
10506 else
10507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10508 /* end confdefs.h. */
10509 #include <stdlib.h>
10510 #include <stdarg.h>
10511 #include <string.h>
10512 #include <float.h>
10513
10514 int
10515 main ()
10516 {
10517
10518 ;
10519 return 0;
10520 }
10521 _ACEOF
10522 if ac_fn_c_try_compile "$LINENO"; then :
10523 ac_cv_header_stdc=yes
10524 else
10525 ac_cv_header_stdc=no
10526 fi
10527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10528
10529 if test $ac_cv_header_stdc = yes; then
10530 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10532 /* end confdefs.h. */
10533 #include <string.h>
10534
10535 _ACEOF
10536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10537 $EGREP "memchr" >/dev/null 2>&1; then :
10538
10539 else
10540 ac_cv_header_stdc=no
10541 fi
10542 rm -f conftest*
10543
10544 fi
10545
10546 if test $ac_cv_header_stdc = yes; then
10547 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10549 /* end confdefs.h. */
10550 #include <stdlib.h>
10551
10552 _ACEOF
10553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10554 $EGREP "free" >/dev/null 2>&1; then :
10555
10556 else
10557 ac_cv_header_stdc=no
10558 fi
10559 rm -f conftest*
10560
10561 fi
10562
10563 if test $ac_cv_header_stdc = yes; then
10564 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10565 if test "$cross_compiling" = yes; then :
10566 :
10567 else
10568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10569 /* end confdefs.h. */
10570 #include <ctype.h>
10571 #include <stdlib.h>
10572 #if ((' ' & 0x0FF) == 0x020)
10573 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10574 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10575 #else
10576 # define ISLOWER(c) \
10577 (('a' <= (c) && (c) <= 'i') \
10578 || ('j' <= (c) && (c) <= 'r') \
10579 || ('s' <= (c) && (c) <= 'z'))
10580 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10581 #endif
10582
10583 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10584 int
10585 main ()
10586 {
10587 int i;
10588 for (i = 0; i < 256; i++)
10589 if (XOR (islower (i), ISLOWER (i))
10590 || toupper (i) != TOUPPER (i))
10591 return 2;
10592 return 0;
10593 }
10594 _ACEOF
10595 if ac_fn_c_try_run "$LINENO"; then :
10596
10597 else
10598 ac_cv_header_stdc=no
10599 fi
10600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10601 conftest.$ac_objext conftest.beam conftest.$ac_ext
10602 fi
10603
10604 fi
10605 fi
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10607 $as_echo "$ac_cv_header_stdc" >&6; }
10608 if test $ac_cv_header_stdc = yes; then
10609
10610 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10611
10612 fi
10613
10614 for ac_header in sys/time.h sys/types.h unistd.h string.h netinet/in.h stdio.h
10615 do :
10616 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10617 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10618 eval as_val=\$$as_ac_Header
10619 if test "x$as_val" = x""yes; then :
10620 cat >>confdefs.h <<_ACEOF
10621 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10622 _ACEOF
10623
10624 fi
10625
10626 done
10627
10628
10629
10630 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10631 if test -n "$ac_tool_prefix"; then
10632 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10633 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10635 $as_echo_n "checking for $ac_word... " >&6; }
10636 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10637 $as_echo_n "(cached) " >&6
10638 else
10639 case $PKG_CONFIG in
10640 [\\/]* | ?:[\\/]*)
10641 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10642 ;;
10643 *)
10644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10645 for as_dir in $PATH
10646 do
10647 IFS=$as_save_IFS
10648 test -z "$as_dir" && as_dir=.
10649 for ac_exec_ext in '' $ac_executable_extensions; do
10650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10651 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10653 break 2
10654 fi
10655 done
10656 done
10657 IFS=$as_save_IFS
10658
10659 ;;
10660 esac
10661 fi
10662 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10663 if test -n "$PKG_CONFIG"; then
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10665 $as_echo "$PKG_CONFIG" >&6; }
10666 else
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10668 $as_echo "no" >&6; }
10669 fi
10670
10671
10672 fi
10673 if test -z "$ac_cv_path_PKG_CONFIG"; then
10674 ac_pt_PKG_CONFIG=$PKG_CONFIG
10675 # Extract the first word of "pkg-config", so it can be a program name with args.
10676 set dummy pkg-config; ac_word=$2
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10678 $as_echo_n "checking for $ac_word... " >&6; }
10679 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
10680 $as_echo_n "(cached) " >&6
10681 else
10682 case $ac_pt_PKG_CONFIG in
10683 [\\/]* | ?:[\\/]*)
10684 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10685 ;;
10686 *)
10687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10688 for as_dir in $PATH
10689 do
10690 IFS=$as_save_IFS
10691 test -z "$as_dir" && as_dir=.
10692 for ac_exec_ext in '' $ac_executable_extensions; do
10693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10694 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10696 break 2
10697 fi
10698 done
10699 done
10700 IFS=$as_save_IFS
10701
10702 ;;
10703 esac
10704 fi
10705 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10706 if test -n "$ac_pt_PKG_CONFIG"; then
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10708 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
10709 else
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10711 $as_echo "no" >&6; }
10712 fi
10713
10714 if test "x$ac_pt_PKG_CONFIG" = x; then
10715 PKG_CONFIG=""
10716 else
10717 case $cross_compiling:$ac_tool_warned in
10718 yes:)
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10721 ac_tool_warned=yes ;;
10722 esac
10723 PKG_CONFIG=$ac_pt_PKG_CONFIG
10724 fi
10725 else
10726 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10727 fi
10728
10729 fi
10730 if test -n "$PKG_CONFIG"; then
10731 _pkg_min_version=0.9.0
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10733 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10734 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10736 $as_echo "yes" >&6; }
10737 else
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10739 $as_echo "no" >&6; }
10740 PKG_CONFIG=""
10741 fi
10742
10743 fi
10744
10745 pkg_failed=no
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBRAW1394" >&5
10747 $as_echo_n "checking for LIBRAW1394... " >&6; }
10748
10749 if test -n "$PKG_CONFIG"; then
10750 if test -n "$LIBRAW1394_CFLAGS"; then
10751 pkg_cv_LIBRAW1394_CFLAGS="$LIBRAW1394_CFLAGS"
10752 else
10753 if test -n "$PKG_CONFIG" && \
10754 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libraw1394 >= 1.0.0\""; } >&5
10755 ($PKG_CONFIG --exists --print-errors "libraw1394 >= 1.0.0") 2>&5
10756 ac_status=$?
10757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10758 test $ac_status = 0; }; then
10759 pkg_cv_LIBRAW1394_CFLAGS=`$PKG_CONFIG --cflags "libraw1394 >= 1.0.0" 2>/dev/null`
10760 else
10761 pkg_failed=yes
10762 fi
10763 fi
10764 else
10765 pkg_failed=untried
10766 fi
10767 if test -n "$PKG_CONFIG"; then
10768 if test -n "$LIBRAW1394_LIBS"; then
10769 pkg_cv_LIBRAW1394_LIBS="$LIBRAW1394_LIBS"
10770 else
10771 if test -n "$PKG_CONFIG" && \
10772 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libraw1394 >= 1.0.0\""; } >&5
10773 ($PKG_CONFIG --exists --print-errors "libraw1394 >= 1.0.0") 2>&5
10774 ac_status=$?
10775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10776 test $ac_status = 0; }; then
10777 pkg_cv_LIBRAW1394_LIBS=`$PKG_CONFIG --libs "libraw1394 >= 1.0.0" 2>/dev/null`
10778 else
10779 pkg_failed=yes
10780 fi
10781 fi
10782 else
10783 pkg_failed=untried
10784 fi
10785
10786
10787
10788 if test $pkg_failed = yes; then
10789
10790 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10791 _pkg_short_errors_supported=yes
10792 else
10793 _pkg_short_errors_supported=no
10794 fi
10795 if test $_pkg_short_errors_supported = yes; then
10796 LIBRAW1394_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libraw1394 >= 1.0.0"`
10797 else
10798 LIBRAW1394_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libraw1394 >= 1.0.0"`
10799 fi
10800 # Put the nasty error message in config.log where it belongs
10801 echo "$LIBRAW1394_PKG_ERRORS" >&5
10802
10803 as_fn_error "Package requirements (libraw1394 >= 1.0.0) were not met:
10804
10805 $LIBRAW1394_PKG_ERRORS
10806
10807 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10808 installed software in a non-standard prefix.
10809
10810 Alternatively, you may set the environment variables LIBRAW1394_CFLAGS
10811 and LIBRAW1394_LIBS to avoid the need to call pkg-config.
10812 See the pkg-config man page for more details.
10813 " "$LINENO" 5
10814 elif test $pkg_failed = untried; then
10815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10817 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
10818 is in your PATH or set the PKG_CONFIG environment variable to the full
10819 path to pkg-config.
10820
10821 Alternatively, you may set the environment variables LIBRAW1394_CFLAGS
10822 and LIBRAW1394_LIBS to avoid the need to call pkg-config.
10823 See the pkg-config man page for more details.
10824
10825 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10826 See \`config.log' for more details." "$LINENO" 5; }
10827 else
10828 LIBRAW1394_CFLAGS=$pkg_cv_LIBRAW1394_CFLAGS
10829 LIBRAW1394_LIBS=$pkg_cv_LIBRAW1394_LIBS
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10831 $as_echo "yes" >&6; }
10832 :
10833 fi
10834
10835 #set the libtool shared library version numbers
10836 lt_major=3
10837 lt_revision=0
10838 lt_age=3
10839
10840
10841
10842
10843
10844 CFLAGS="$CFLAGS -Wall -Wunused"
10845
10846 ac_config_files="$ac_config_files Makefile common/Makefile libavc1394/Makefile librom1394/Makefile test/Makefile libavc1394.spec libavc1394.pc"
10847
10848 cat >confcache <<\_ACEOF
10849 # This file is a shell script that caches the results of configure
10850 # tests run on this system so they can be shared between configure
10851 # scripts and configure runs, see configure's option --config-cache.
10852 # It is not useful on other systems. If it contains results you don't
10853 # want to keep, you may remove or edit it.
10854 #
10855 # config.status only pays attention to the cache file if you give it
10856 # the --recheck option to rerun configure.
10857 #
10858 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10859 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10860 # following values.
10861
10862 _ACEOF
10863
10864 # The following way of writing the cache mishandles newlines in values,
10865 # but we know of no workaround that is simple, portable, and efficient.
10866 # So, we kill variables containing newlines.
10867 # Ultrix sh set writes to stderr and can't be redirected directly,
10868 # and sets the high bit in the cache file unless we assign to the vars.
10869 (
10870 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10871 eval ac_val=\$$ac_var
10872 case $ac_val in #(
10873 *${as_nl}*)
10874 case $ac_var in #(
10875 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10876 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10877 esac
10878 case $ac_var in #(
10879 _ | IFS | as_nl) ;; #(
10880 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10881 *) { eval $ac_var=; unset $ac_var;} ;;
10882 esac ;;
10883 esac
10884 done
10885
10886 (set) 2>&1 |
10887 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10888 *${as_nl}ac_space=\ *)
10889 # `set' does not quote correctly, so add quotes: double-quote
10890 # substitution turns \\\\ into \\, and sed turns \\ into \.
10891 sed -n \
10892 "s/'/'\\\\''/g;
10893 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10894 ;; #(
10895 *)
10896 # `set' quotes correctly as required by POSIX, so do not add quotes.
10897 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10898 ;;
10899 esac |
10900 sort
10901 ) |
10902 sed '
10903 /^ac_cv_env_/b end
10904 t clear
10905 :clear
10906 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10907 t end
10908 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10909 :end' >>confcache
10910 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10911 if test -w "$cache_file"; then
10912 test "x$cache_file" != "x/dev/null" &&
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10914 $as_echo "$as_me: updating cache $cache_file" >&6;}
10915 cat confcache >$cache_file
10916 else
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10918 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10919 fi
10920 fi
10921 rm -f confcache
10922
10923 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10924 # Let make expand exec_prefix.
10925 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10926
10927 DEFS=-DHAVE_CONFIG_H
10928
10929 ac_libobjs=
10930 ac_ltlibobjs=
10931 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10932 # 1. Remove the extension, and $U if already installed.
10933 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10934 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10935 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10936 # will be set to the directory where LIBOBJS objects are built.
10937 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10938 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10939 done
10940 LIBOBJS=$ac_libobjs
10941
10942 LTLIBOBJS=$ac_ltlibobjs
10943
10944
10945 if test -n "$EXEEXT"; then
10946 am__EXEEXT_TRUE=
10947 am__EXEEXT_FALSE='#'
10948 else
10949 am__EXEEXT_TRUE='#'
10950 am__EXEEXT_FALSE=
10951 fi
10952
10953 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10954 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
10955 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10956 fi
10957 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10958 as_fn_error "conditional \"AMDEP\" was never defined.
10959 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10960 fi
10961 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10962 as_fn_error "conditional \"am__fastdepCC\" was never defined.
10963 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10964 fi
10965
10966 : ${CONFIG_STATUS=./config.status}
10967 ac_write_fail=0
10968 ac_clean_files_save=$ac_clean_files
10969 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10971 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10972 as_write_fail=0
10973 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10974 #! $SHELL
10975 # Generated by $as_me.
10976 # Run this file to recreate the current configuration.
10977 # Compiler output produced by configure, useful for debugging
10978 # configure, is in config.log if it exists.
10979
10980 debug=false
10981 ac_cs_recheck=false
10982 ac_cs_silent=false
10983
10984 SHELL=\${CONFIG_SHELL-$SHELL}
10985 export SHELL
10986 _ASEOF
10987 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10988 ## -------------------- ##
10989 ## M4sh Initialization. ##
10990 ## -------------------- ##
10991
10992 # Be more Bourne compatible
10993 DUALCASE=1; export DUALCASE # for MKS sh
10994 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10995 emulate sh
10996 NULLCMD=:
10997 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10998 # is contrary to our usage. Disable this feature.
10999 alias -g '${1+"$@"}'='"$@"'
11000 setopt NO_GLOB_SUBST
11001 else
11002 case `(set -o) 2>/dev/null` in #(
11003 *posix*) :
11004 set -o posix ;; #(
11005 *) :
11006 ;;
11007 esac
11008 fi
11009
11010
11011 as_nl='
11012 '
11013 export as_nl
11014 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11015 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11016 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11017 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11018 # Prefer a ksh shell builtin over an external printf program on Solaris,
11019 # but without wasting forks for bash or zsh.
11020 if test -z "$BASH_VERSION$ZSH_VERSION" \
11021 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11022 as_echo='print -r --'
11023 as_echo_n='print -rn --'
11024 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11025 as_echo='printf %s\n'
11026 as_echo_n='printf %s'
11027 else
11028 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11029 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11030 as_echo_n='/usr/ucb/echo -n'
11031 else
11032 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11033 as_echo_n_body='eval
11034 arg=$1;
11035 case $arg in #(
11036 *"$as_nl"*)
11037 expr "X$arg" : "X\\(.*\\)$as_nl";
11038 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11039 esac;
11040 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11041 '
11042 export as_echo_n_body
11043 as_echo_n='sh -c $as_echo_n_body as_echo'
11044 fi
11045 export as_echo_body
11046 as_echo='sh -c $as_echo_body as_echo'
11047 fi
11048
11049 # The user is always right.
11050 if test "${PATH_SEPARATOR+set}" != set; then
11051 PATH_SEPARATOR=:
11052 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11053 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11054 PATH_SEPARATOR=';'
11055 }
11056 fi
11057
11058
11059 # IFS
11060 # We need space, tab and new line, in precisely that order. Quoting is
11061 # there to prevent editors from complaining about space-tab.
11062 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11063 # splitting by setting IFS to empty value.)
11064 IFS=" "" $as_nl"
11065
11066 # Find who we are. Look in the path if we contain no directory separator.
11067 case $0 in #((
11068 *[\\/]* ) as_myself=$0 ;;
11069 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11070 for as_dir in $PATH
11071 do
11072 IFS=$as_save_IFS
11073 test -z "$as_dir" && as_dir=.
11074 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11075 done
11076 IFS=$as_save_IFS
11077
11078 ;;
11079 esac
11080 # We did not find ourselves, most probably we were run as `sh COMMAND'
11081 # in which case we are not to be found in the path.
11082 if test "x$as_myself" = x; then
11083 as_myself=$0
11084 fi
11085 if test ! -f "$as_myself"; then
11086 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11087 exit 1
11088 fi
11089
11090 # Unset variables that we do not need and which cause bugs (e.g. in
11091 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11092 # suppresses any "Segmentation fault" message there. '((' could
11093 # trigger a bug in pdksh 5.2.14.
11094 for as_var in BASH_ENV ENV MAIL MAILPATH
11095 do eval test x\${$as_var+set} = xset \
11096 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11097 done
11098 PS1='$ '
11099 PS2='> '
11100 PS4='+ '
11101
11102 # NLS nuisances.
11103 LC_ALL=C
11104 export LC_ALL
11105 LANGUAGE=C
11106 export LANGUAGE
11107
11108 # CDPATH.
11109 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11110
11111
11112 # as_fn_error ERROR [LINENO LOG_FD]
11113 # ---------------------------------
11114 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11115 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11116 # script with status $?, using 1 if that was 0.
11117 as_fn_error ()
11118 {
11119 as_status=$?; test $as_status -eq 0 && as_status=1
11120 if test "$3"; then
11121 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11122 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11123 fi
11124 $as_echo "$as_me: error: $1" >&2
11125 as_fn_exit $as_status
11126 } # as_fn_error
11127
11128
11129 # as_fn_set_status STATUS
11130 # -----------------------
11131 # Set $? to STATUS, without forking.
11132 as_fn_set_status ()
11133 {
11134 return $1
11135 } # as_fn_set_status
11136
11137 # as_fn_exit STATUS
11138 # -----------------
11139 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11140 as_fn_exit ()
11141 {
11142 set +e
11143 as_fn_set_status $1
11144 exit $1
11145 } # as_fn_exit
11146
11147 # as_fn_unset VAR
11148 # ---------------
11149 # Portably unset VAR.
11150 as_fn_unset ()
11151 {
11152 { eval $1=; unset $1;}
11153 }
11154 as_unset=as_fn_unset
11155 # as_fn_append VAR VALUE
11156 # ----------------------
11157 # Append the text in VALUE to the end of the definition contained in VAR. Take
11158 # advantage of any shell optimizations that allow amortized linear growth over
11159 # repeated appends, instead of the typical quadratic growth present in naive
11160 # implementations.
11161 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11162 eval 'as_fn_append ()
11163 {
11164 eval $1+=\$2
11165 }'
11166 else
11167 as_fn_append ()
11168 {
11169 eval $1=\$$1\$2
11170 }
11171 fi # as_fn_append
11172
11173 # as_fn_arith ARG...
11174 # ------------------
11175 # Perform arithmetic evaluation on the ARGs, and store the result in the
11176 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11177 # must be portable across $(()) and expr.
11178 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11179 eval 'as_fn_arith ()
11180 {
11181 as_val=$(( $* ))
11182 }'
11183 else
11184 as_fn_arith ()
11185 {
11186 as_val=`expr "$@" || test $? -eq 1`
11187 }
11188 fi # as_fn_arith
11189
11190
11191 if expr a : '\(a\)' >/dev/null 2>&1 &&
11192 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11193 as_expr=expr
11194 else
11195 as_expr=false
11196 fi
11197
11198 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11199 as_basename=basename
11200 else
11201 as_basename=false
11202 fi
11203
11204 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11205 as_dirname=dirname
11206 else
11207 as_dirname=false
11208 fi
11209
11210 as_me=`$as_basename -- "$0" ||
11211 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11212 X"$0" : 'X\(//\)$' \| \
11213 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11214 $as_echo X/"$0" |
11215 sed '/^.*\/\([^/][^/]*\)\/*$/{
11216 s//\1/
11217 q
11218 }
11219 /^X\/\(\/\/\)$/{
11220 s//\1/
11221 q
11222 }
11223 /^X\/\(\/\).*/{
11224 s//\1/
11225 q
11226 }
11227 s/.*/./; q'`
11228
11229 # Avoid depending upon Character Ranges.
11230 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11231 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11232 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11233 as_cr_digits='0123456789'
11234 as_cr_alnum=$as_cr_Letters$as_cr_digits
11235
11236 ECHO_C= ECHO_N= ECHO_T=
11237 case `echo -n x` in #(((((
11238 -n*)
11239 case `echo 'xy\c'` in
11240 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11241 xy) ECHO_C='\c';;
11242 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11243 ECHO_T=' ';;
11244 esac;;
11245 *)
11246 ECHO_N='-n';;
11247 esac
11248
11249 rm -f conf$$ conf$$.exe conf$$.file
11250 if test -d conf$$.dir; then
11251 rm -f conf$$.dir/conf$$.file
11252 else
11253 rm -f conf$$.dir
11254 mkdir conf$$.dir 2>/dev/null
11255 fi
11256 if (echo >conf$$.file) 2>/dev/null; then
11257 if ln -s conf$$.file conf$$ 2>/dev/null; then
11258 as_ln_s='ln -s'
11259 # ... but there are two gotchas:
11260 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11261 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11262 # In both cases, we have to default to `cp -p'.
11263 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11264 as_ln_s='cp -p'
11265 elif ln conf$$.file conf$$ 2>/dev/null; then
11266 as_ln_s=ln
11267 else
11268 as_ln_s='cp -p'
11269 fi
11270 else
11271 as_ln_s='cp -p'
11272 fi
11273 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11274 rmdir conf$$.dir 2>/dev/null
11275
11276
11277 # as_fn_mkdir_p
11278 # -------------
11279 # Create "$as_dir" as a directory, including parents if necessary.
11280 as_fn_mkdir_p ()
11281 {
11282
11283 case $as_dir in #(
11284 -*) as_dir=./$as_dir;;
11285 esac
11286 test -d "$as_dir" || eval $as_mkdir_p || {
11287 as_dirs=
11288 while :; do
11289 case $as_dir in #(
11290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11291 *) as_qdir=$as_dir;;
11292 esac
11293 as_dirs="'$as_qdir' $as_dirs"
11294 as_dir=`$as_dirname -- "$as_dir" ||
11295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11296 X"$as_dir" : 'X\(//\)[^/]' \| \
11297 X"$as_dir" : 'X\(//\)$' \| \
11298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11299 $as_echo X"$as_dir" |
11300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11301 s//\1/
11302 q
11303 }
11304 /^X\(\/\/\)[^/].*/{
11305 s//\1/
11306 q
11307 }
11308 /^X\(\/\/\)$/{
11309 s//\1/
11310 q
11311 }
11312 /^X\(\/\).*/{
11313 s//\1/
11314 q
11315 }
11316 s/.*/./; q'`
11317 test -d "$as_dir" && break
11318 done
11319 test -z "$as_dirs" || eval "mkdir $as_dirs"
11320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11321
11322
11323 } # as_fn_mkdir_p
11324 if mkdir -p . 2>/dev/null; then
11325 as_mkdir_p='mkdir -p "$as_dir"'
11326 else
11327 test -d ./-p && rmdir ./-p
11328 as_mkdir_p=false
11329 fi
11330
11331 if test -x / >/dev/null 2>&1; then
11332 as_test_x='test -x'
11333 else
11334 if ls -dL / >/dev/null 2>&1; then
11335 as_ls_L_option=L
11336 else
11337 as_ls_L_option=
11338 fi
11339 as_test_x='
11340 eval sh -c '\''
11341 if test -d "$1"; then
11342 test -d "$1/.";
11343 else
11344 case $1 in #(
11345 -*)set "./$1";;
11346 esac;
11347 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11348 ???[sx]*):;;*)false;;esac;fi
11349 '\'' sh
11350 '
11351 fi
11352 as_executable_p=$as_test_x
11353
11354 # Sed expression to map a string onto a valid CPP name.
11355 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11356
11357 # Sed expression to map a string onto a valid variable name.
11358 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11359
11360
11361 exec 6>&1
11362 ## ----------------------------------- ##
11363 ## Main body of $CONFIG_STATUS script. ##
11364 ## ----------------------------------- ##
11365 _ASEOF
11366 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11367
11368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11369 # Save the log message, to keep $0 and so on meaningful, and to
11370 # report actual input values of CONFIG_FILES etc. instead of their
11371 # values after options handling.
11372 ac_log="
11373 This file was extended by $as_me, which was
11374 generated by GNU Autoconf 2.65. Invocation command line was
11375
11376 CONFIG_FILES = $CONFIG_FILES
11377 CONFIG_HEADERS = $CONFIG_HEADERS
11378 CONFIG_LINKS = $CONFIG_LINKS
11379 CONFIG_COMMANDS = $CONFIG_COMMANDS
11380 $ $0 $@
11381
11382 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11383 "
11384
11385 _ACEOF
11386
11387 case $ac_config_files in *"
11388 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11389 esac
11390
11391 case $ac_config_headers in *"
11392 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11393 esac
11394
11395
11396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11397 # Files that config.status was made for.
11398 config_files="$ac_config_files"
11399 config_headers="$ac_config_headers"
11400 config_commands="$ac_config_commands"
11401
11402 _ACEOF
11403
11404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11405 ac_cs_usage="\
11406 \`$as_me' instantiates files and other configuration actions
11407 from templates according to the current configuration. Unless the files
11408 and actions are specified as TAGs, all are instantiated by default.
11409
11410 Usage: $0 [OPTION]... [TAG]...
11411
11412 -h, --help print this help, then exit
11413 -V, --version print version number and configuration settings, then exit
11414 --config print configuration, then exit
11415 -q, --quiet, --silent
11416 do not print progress messages
11417 -d, --debug don't remove temporary files
11418 --recheck update $as_me by reconfiguring in the same conditions
11419 --file=FILE[:TEMPLATE]
11420 instantiate the configuration file FILE
11421 --header=FILE[:TEMPLATE]
11422 instantiate the configuration header FILE
11423
11424 Configuration files:
11425 $config_files
11426
11427 Configuration headers:
11428 $config_headers
11429
11430 Configuration commands:
11431 $config_commands
11432
11433 Report bugs to the package provider."
11434
11435 _ACEOF
11436 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11437 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11438 ac_cs_version="\\
11439 config.status
11440 configured by $0, generated by GNU Autoconf 2.65,
11441 with options \\"\$ac_cs_config\\"
11442
11443 Copyright (C) 2009 Free Software Foundation, Inc.
11444 This config.status script is free software; the Free Software Foundation
11445 gives unlimited permission to copy, distribute and modify it."
11446
11447 ac_pwd='$ac_pwd'
11448 srcdir='$srcdir'
11449 INSTALL='$INSTALL'
11450 MKDIR_P='$MKDIR_P'
11451 AWK='$AWK'
11452 test -n "\$AWK" || AWK=awk
11453 _ACEOF
11454
11455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11456 # The default lists apply if the user does not specify any file.
11457 ac_need_defaults=:
11458 while test $# != 0
11459 do
11460 case $1 in
11461 --*=*)
11462 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11463 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11464 ac_shift=:
11465 ;;
11466 *)
11467 ac_option=$1
11468 ac_optarg=$2
11469 ac_shift=shift
11470 ;;
11471 esac
11472
11473 case $ac_option in
11474 # Handling of the options.
11475 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11476 ac_cs_recheck=: ;;
11477 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11478 $as_echo "$ac_cs_version"; exit ;;
11479 --config | --confi | --conf | --con | --co | --c )
11480 $as_echo "$ac_cs_config"; exit ;;
11481 --debug | --debu | --deb | --de | --d | -d )
11482 debug=: ;;
11483 --file | --fil | --fi | --f )
11484 $ac_shift
11485 case $ac_optarg in
11486 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11487 esac
11488 as_fn_append CONFIG_FILES " '$ac_optarg'"
11489 ac_need_defaults=false;;
11490 --header | --heade | --head | --hea )
11491 $ac_shift
11492 case $ac_optarg in
11493 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11494 esac
11495 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11496 ac_need_defaults=false;;
11497 --he | --h)
11498 # Conflict between --help and --header
11499 as_fn_error "ambiguous option: \`$1'
11500 Try \`$0 --help' for more information.";;
11501 --help | --hel | -h )
11502 $as_echo "$ac_cs_usage"; exit ;;
11503 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11504 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11505 ac_cs_silent=: ;;
11506
11507 # This is an error.
11508 -*) as_fn_error "unrecognized option: \`$1'
11509 Try \`$0 --help' for more information." ;;
11510
11511 *) as_fn_append ac_config_targets " $1"
11512 ac_need_defaults=false ;;
11513
11514 esac
11515 shift
11516 done
11517
11518 ac_configure_extra_args=
11519
11520 if $ac_cs_silent; then
11521 exec 6>/dev/null
11522 ac_configure_extra_args="$ac_configure_extra_args --silent"
11523 fi
11524
11525 _ACEOF
11526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11527 if \$ac_cs_recheck; then
11528 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11529 shift
11530 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11531 CONFIG_SHELL='$SHELL'
11532 export CONFIG_SHELL
11533 exec "\$@"
11534 fi
11535
11536 _ACEOF
11537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11538 exec 5>>config.log
11539 {
11540 echo
11541 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11542 ## Running $as_me. ##
11543 _ASBOX
11544 $as_echo "$ac_log"
11545 } >&5
11546
11547 _ACEOF
11548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11549 #
11550 # INIT-COMMANDS
11551 #
11552 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11553
11554
11555 # The HP-UX ksh and POSIX shell print the target directory to stdout
11556 # if CDPATH is set.
11557 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11558
11559 sed_quote_subst='$sed_quote_subst'
11560 double_quote_subst='$double_quote_subst'
11561 delay_variable_subst='$delay_variable_subst'
11562 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11563 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11564 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11565 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11566 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11567 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11568 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11569 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11570 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11571 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11572 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11573 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11574 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11575 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11576 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11577 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11578 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11579 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11580 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11581 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11582 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11583 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11584 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11585 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11586 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11587 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11588 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11589 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11590 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11591 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11592 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11593 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11594 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11595 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11596 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11597 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11598 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11599 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11600 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11601 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11602 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11603 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11604 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11605 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11606 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"`'
11607 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"`'
11608 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11609 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11610 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11611 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11612 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11613 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11614 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11615 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11616 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11617 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11618 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
11619 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
11620 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
11621 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11622 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
11623 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11624 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11625 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11626 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11627 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11628 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11629 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11630 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11631 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11632 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11633 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11634 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11635 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11636 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11637 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11638 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11639 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11640 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11641 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11642 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11643 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11644 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11645 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11646 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11647 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11648 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11649 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11650 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11651 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11652 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11653 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11654 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11655 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11656 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11657 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11658 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11659 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11660 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11661 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11662 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11663 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11664 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11665 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11666 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11667 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11668 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11669 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11670 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11671 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11672 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11673 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11674 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11675 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11676 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11677 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11678 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11679 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11680
11681 LTCC='$LTCC'
11682 LTCFLAGS='$LTCFLAGS'
11683 compiler='$compiler_DEFAULT'
11684
11685 # Quote evaled strings.
11686 for var in SED \
11687 GREP \
11688 EGREP \
11689 FGREP \
11690 LD \
11691 NM \
11692 LN_S \
11693 lt_SP2NL \
11694 lt_NL2SP \
11695 reload_flag \
11696 OBJDUMP \
11697 deplibs_check_method \
11698 file_magic_cmd \
11699 AR \
11700 AR_FLAGS \
11701 STRIP \
11702 RANLIB \
11703 CC \
11704 CFLAGS \
11705 compiler \
11706 lt_cv_sys_global_symbol_pipe \
11707 lt_cv_sys_global_symbol_to_cdecl \
11708 lt_cv_sys_global_symbol_to_c_name_address \
11709 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11710 SHELL \
11711 ECHO \
11712 lt_prog_compiler_no_builtin_flag \
11713 lt_prog_compiler_wl \
11714 lt_prog_compiler_pic \
11715 lt_prog_compiler_static \
11716 lt_cv_prog_compiler_c_o \
11717 need_locks \
11718 DSYMUTIL \
11719 NMEDIT \
11720 LIPO \
11721 OTOOL \
11722 OTOOL64 \
11723 shrext_cmds \
11724 export_dynamic_flag_spec \
11725 whole_archive_flag_spec \
11726 compiler_needs_object \
11727 with_gnu_ld \
11728 allow_undefined_flag \
11729 no_undefined_flag \
11730 hardcode_libdir_flag_spec \
11731 hardcode_libdir_flag_spec_ld \
11732 hardcode_libdir_separator \
11733 fix_srcfile_path \
11734 exclude_expsyms \
11735 include_expsyms \
11736 file_list_spec \
11737 variables_saved_for_relink \
11738 libname_spec \
11739 library_names_spec \
11740 soname_spec \
11741 finish_eval \
11742 old_striplib \
11743 striplib; do
11744 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11745 *[\\\\\\\`\\"\\\$]*)
11746 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11747 ;;
11748 *)
11749 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11750 ;;
11751 esac
11752 done
11753
11754 # Double-quote double-evaled strings.
11755 for var in reload_cmds \
11756 old_postinstall_cmds \
11757 old_postuninstall_cmds \
11758 old_archive_cmds \
11759 extract_expsyms_cmds \
11760 old_archive_from_new_cmds \
11761 old_archive_from_expsyms_cmds \
11762 archive_cmds \
11763 archive_expsym_cmds \
11764 module_cmds \
11765 module_expsym_cmds \
11766 export_symbols_cmds \
11767 prelink_cmds \
11768 postinstall_cmds \
11769 postuninstall_cmds \
11770 finish_cmds \
11771 sys_lib_search_path_spec \
11772 sys_lib_dlsearch_path_spec; do
11773 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11774 *[\\\\\\\`\\"\\\$]*)
11775 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11776 ;;
11777 *)
11778 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11779 ;;
11780 esac
11781 done
11782
11783 # Fix-up fallback echo if it was mangled by the above quoting rules.
11784 case \$lt_ECHO in
11785 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11786 ;;
11787 esac
11788
11789 ac_aux_dir='$ac_aux_dir'
11790 xsi_shell='$xsi_shell'
11791 lt_shell_append='$lt_shell_append'
11792
11793 # See if we are running on zsh, and set the options which allow our
11794 # commands through without removal of \ escapes INIT.
11795 if test -n "\${ZSH_VERSION+set}" ; then
11796 setopt NO_GLOB_SUBST
11797 fi
11798
11799
11800 PACKAGE='$PACKAGE'
11801 VERSION='$VERSION'
11802 TIMESTAMP='$TIMESTAMP'
11803 RM='$RM'
11804 ofile='$ofile'
11805
11806
11807
11808
11809 _ACEOF
11810
11811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11812
11813 # Handling of arguments.
11814 for ac_config_target in $ac_config_targets
11815 do
11816 case $ac_config_target in
11817 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11818 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11819 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11820 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11821 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
11822 "libavc1394/Makefile") CONFIG_FILES="$CONFIG_FILES libavc1394/Makefile" ;;
11823 "librom1394/Makefile") CONFIG_FILES="$CONFIG_FILES librom1394/Makefile" ;;
11824 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
11825 "libavc1394.spec") CONFIG_FILES="$CONFIG_FILES libavc1394.spec" ;;
11826 "libavc1394.pc") CONFIG_FILES="$CONFIG_FILES libavc1394.pc" ;;
11827
11828 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11829 esac
11830 done
11831
11832
11833 # If the user did not use the arguments to specify the items to instantiate,
11834 # then the envvar interface is used. Set only those that are not.
11835 # We use the long form for the default assignment because of an extremely
11836 # bizarre bug on SunOS 4.1.3.
11837 if $ac_need_defaults; then
11838 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11839 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11840 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11841 fi
11842
11843 # Have a temporary directory for convenience. Make it in the build tree
11844 # simply because there is no reason against having it here, and in addition,
11845 # creating and moving files from /tmp can sometimes cause problems.
11846 # Hook for its removal unless debugging.
11847 # Note that there is a small window in which the directory will not be cleaned:
11848 # after its creation but before its name has been assigned to `$tmp'.
11849 $debug ||
11850 {
11851 tmp=
11852 trap 'exit_status=$?
11853 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11854 ' 0
11855 trap 'as_fn_exit 1' 1 2 13 15
11856 }
11857 # Create a (secure) tmp directory for tmp files.
11858
11859 {
11860 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11861 test -n "$tmp" && test -d "$tmp"
11862 } ||
11863 {
11864 tmp=./conf$$-$RANDOM
11865 (umask 077 && mkdir "$tmp")
11866 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11867
11868 # Set up the scripts for CONFIG_FILES section.
11869 # No need to generate them if there are no CONFIG_FILES.
11870 # This happens for instance with `./config.status config.h'.
11871 if test -n "$CONFIG_FILES"; then
11872
11873
11874 ac_cr=`echo X | tr X '\015'`
11875 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11876 # But we know of no other shell where ac_cr would be empty at this
11877 # point, so we can use a bashism as a fallback.
11878 if test "x$ac_cr" = x; then
11879 eval ac_cr=\$\'\\r\'
11880 fi
11881 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11882 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11883 ac_cs_awk_cr='\r'
11884 else
11885 ac_cs_awk_cr=$ac_cr
11886 fi
11887
11888 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11889 _ACEOF
11890
11891
11892 {
11893 echo "cat >conf$$subs.awk <<_ACEOF" &&
11894 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11895 echo "_ACEOF"
11896 } >conf$$subs.sh ||
11897 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11898 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11899 ac_delim='%!_!# '
11900 for ac_last_try in false false false false false :; do
11901 . ./conf$$subs.sh ||
11902 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11903
11904 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11905 if test $ac_delim_n = $ac_delim_num; then
11906 break
11907 elif $ac_last_try; then
11908 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11909 else
11910 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11911 fi
11912 done
11913 rm -f conf$$subs.sh
11914
11915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11916 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11917 _ACEOF
11918 sed -n '
11919 h
11920 s/^/S["/; s/!.*/"]=/
11921 p
11922 g
11923 s/^[^!]*!//
11924 :repl
11925 t repl
11926 s/'"$ac_delim"'$//
11927 t delim
11928 :nl
11929 h
11930 s/\(.\{148\}\)..*/\1/
11931 t more1
11932 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11933 p
11934 n
11935 b repl
11936 :more1
11937 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11938 p
11939 g
11940 s/.\{148\}//
11941 t nl
11942 :delim
11943 h
11944 s/\(.\{148\}\)..*/\1/
11945 t more2
11946 s/["\\]/\\&/g; s/^/"/; s/$/"/
11947 p
11948 b
11949 :more2
11950 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11951 p
11952 g
11953 s/.\{148\}//
11954 t delim
11955 ' <conf$$subs.awk | sed '
11956 /^[^""]/{
11957 N
11958 s/\n//
11959 }
11960 ' >>$CONFIG_STATUS || ac_write_fail=1
11961 rm -f conf$$subs.awk
11962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11963 _ACAWK
11964 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11965 for (key in S) S_is_set[key] = 1
11966 FS = ""
11967
11968 }
11969 {
11970 line = $ 0
11971 nfields = split(line, field, "@")
11972 substed = 0
11973 len = length(field[1])
11974 for (i = 2; i < nfields; i++) {
11975 key = field[i]
11976 keylen = length(key)
11977 if (S_is_set[key]) {
11978 value = S[key]
11979 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11980 len += length(value) + length(field[++i])
11981 substed = 1
11982 } else
11983 len += 1 + keylen
11984 }
11985
11986 print line
11987 }
11988
11989 _ACAWK
11990 _ACEOF
11991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11992 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11993 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11994 else
11995 cat
11996 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11997 || as_fn_error "could not setup config files machinery" "$LINENO" 5
11998 _ACEOF
11999
12000 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12001 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12002 # trailing colons and then remove the whole line if VPATH becomes empty
12003 # (actually we leave an empty line to preserve line numbers).
12004 if test "x$srcdir" = x.; then
12005 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12006 s/:*\$(srcdir):*/:/
12007 s/:*\${srcdir}:*/:/
12008 s/:*@srcdir@:*/:/
12009 s/^\([^=]*=[ ]*\):*/\1/
12010 s/:*$//
12011 s/^[^=]*=[ ]*$//
12012 }'
12013 fi
12014
12015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12016 fi # test -n "$CONFIG_FILES"
12017
12018 # Set up the scripts for CONFIG_HEADERS section.
12019 # No need to generate them if there are no CONFIG_HEADERS.
12020 # This happens for instance with `./config.status Makefile'.
12021 if test -n "$CONFIG_HEADERS"; then
12022 cat >"$tmp/defines.awk" <<\_ACAWK ||
12023 BEGIN {
12024 _ACEOF
12025
12026 # Transform confdefs.h into an awk script `defines.awk', embedded as
12027 # here-document in config.status, that substitutes the proper values into
12028 # config.h.in to produce config.h.
12029
12030 # Create a delimiter string that does not exist in confdefs.h, to ease
12031 # handling of long lines.
12032 ac_delim='%!_!# '
12033 for ac_last_try in false false :; do
12034 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12035 if test -z "$ac_t"; then
12036 break
12037 elif $ac_last_try; then
12038 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12039 else
12040 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12041 fi
12042 done
12043
12044 # For the awk script, D is an array of macro values keyed by name,
12045 # likewise P contains macro parameters if any. Preserve backslash
12046 # newline sequences.
12047
12048 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12049 sed -n '
12050 s/.\{148\}/&'"$ac_delim"'/g
12051 t rset
12052 :rset
12053 s/^[ ]*#[ ]*define[ ][ ]*/ /
12054 t def
12055 d
12056 :def
12057 s/\\$//
12058 t bsnl
12059 s/["\\]/\\&/g
12060 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12061 D["\1"]=" \3"/p
12062 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12063 d
12064 :bsnl
12065 s/["\\]/\\&/g
12066 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12067 D["\1"]=" \3\\\\\\n"\\/p
12068 t cont
12069 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12070 t cont
12071 d
12072 :cont
12073 n
12074 s/.\{148\}/&'"$ac_delim"'/g
12075 t clear
12076 :clear
12077 s/\\$//
12078 t bsnlc
12079 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12080 d
12081 :bsnlc
12082 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12083 b cont
12084 ' <confdefs.h | sed '
12085 s/'"$ac_delim"'/"\\\
12086 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12087
12088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12089 for (key in D) D_is_set[key] = 1
12090 FS = ""
12091 }
12092 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12093 line = \$ 0
12094 split(line, arg, " ")
12095 if (arg[1] == "#") {
12096 defundef = arg[2]
12097 mac1 = arg[3]
12098 } else {
12099 defundef = substr(arg[1], 2)
12100 mac1 = arg[2]
12101 }
12102 split(mac1, mac2, "(") #)
12103 macro = mac2[1]
12104 prefix = substr(line, 1, index(line, defundef) - 1)
12105 if (D_is_set[macro]) {
12106 # Preserve the white space surrounding the "#".
12107 print prefix "define", macro P[macro] D[macro]
12108 next
12109 } else {
12110 # Replace #undef with comments. This is necessary, for example,
12111 # in the case of _POSIX_SOURCE, which is predefined and required
12112 # on some systems where configure will not decide to define it.
12113 if (defundef == "undef") {
12114 print "/*", prefix defundef, macro, "*/"
12115 next
12116 }
12117 }
12118 }
12119 { print }
12120 _ACAWK
12121 _ACEOF
12122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12123 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12124 fi # test -n "$CONFIG_HEADERS"
12125
12126
12127 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12128 shift
12129 for ac_tag
12130 do
12131 case $ac_tag in
12132 :[FHLC]) ac_mode=$ac_tag; continue;;
12133 esac
12134 case $ac_mode$ac_tag in
12135 :[FHL]*:*);;
12136 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12137 :[FH]-) ac_tag=-:-;;
12138 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12139 esac
12140 ac_save_IFS=$IFS
12141 IFS=:
12142 set x $ac_tag
12143 IFS=$ac_save_IFS
12144 shift
12145 ac_file=$1
12146 shift
12147
12148 case $ac_mode in
12149 :L) ac_source=$1;;
12150 :[FH])
12151 ac_file_inputs=
12152 for ac_f
12153 do
12154 case $ac_f in
12155 -) ac_f="$tmp/stdin";;
12156 *) # Look for the file first in the build tree, then in the source tree
12157 # (if the path is not absolute). The absolute path cannot be DOS-style,
12158 # because $ac_f cannot contain `:'.
12159 test -f "$ac_f" ||
12160 case $ac_f in
12161 [\\/$]*) false;;
12162 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12163 esac ||
12164 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12165 esac
12166 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12167 as_fn_append ac_file_inputs " '$ac_f'"
12168 done
12169
12170 # Let's still pretend it is `configure' which instantiates (i.e., don't
12171 # use $as_me), people would be surprised to read:
12172 # /* config.h. Generated by config.status. */
12173 configure_input='Generated from '`
12174 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12175 `' by configure.'
12176 if test x"$ac_file" != x-; then
12177 configure_input="$ac_file. $configure_input"
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12179 $as_echo "$as_me: creating $ac_file" >&6;}
12180 fi
12181 # Neutralize special characters interpreted by sed in replacement strings.
12182 case $configure_input in #(
12183 *\&* | *\|* | *\\* )
12184 ac_sed_conf_input=`$as_echo "$configure_input" |
12185 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12186 *) ac_sed_conf_input=$configure_input;;
12187 esac
12188
12189 case $ac_tag in
12190 *:-:* | *:-) cat >"$tmp/stdin" \
12191 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12192 esac
12193 ;;
12194 esac
12195
12196 ac_dir=`$as_dirname -- "$ac_file" ||
12197 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12198 X"$ac_file" : 'X\(//\)[^/]' \| \
12199 X"$ac_file" : 'X\(//\)$' \| \
12200 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12201 $as_echo X"$ac_file" |
12202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12203 s//\1/
12204 q
12205 }
12206 /^X\(\/\/\)[^/].*/{
12207 s//\1/
12208 q
12209 }
12210 /^X\(\/\/\)$/{
12211 s//\1/
12212 q
12213 }
12214 /^X\(\/\).*/{
12215 s//\1/
12216 q
12217 }
12218 s/.*/./; q'`
12219 as_dir="$ac_dir"; as_fn_mkdir_p
12220 ac_builddir=.
12221
12222 case "$ac_dir" in
12223 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12224 *)
12225 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12226 # A ".." for each directory in $ac_dir_suffix.
12227 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12228 case $ac_top_builddir_sub in
12229 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12230 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12231 esac ;;
12232 esac
12233 ac_abs_top_builddir=$ac_pwd
12234 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12235 # for backward compatibility:
12236 ac_top_builddir=$ac_top_build_prefix
12237
12238 case $srcdir in
12239 .) # We are building in place.
12240 ac_srcdir=.
12241 ac_top_srcdir=$ac_top_builddir_sub
12242 ac_abs_top_srcdir=$ac_pwd ;;
12243 [\\/]* | ?:[\\/]* ) # Absolute name.
12244 ac_srcdir=$srcdir$ac_dir_suffix;
12245 ac_top_srcdir=$srcdir
12246 ac_abs_top_srcdir=$srcdir ;;
12247 *) # Relative name.
12248 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12249 ac_top_srcdir=$ac_top_build_prefix$srcdir
12250 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12251 esac
12252 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12253
12254
12255 case $ac_mode in
12256 :F)
12257 #
12258 # CONFIG_FILE
12259 #
12260
12261 case $INSTALL in
12262 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12263 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12264 esac
12265 ac_MKDIR_P=$MKDIR_P
12266 case $MKDIR_P in
12267 [\\/$]* | ?:[\\/]* ) ;;
12268 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12269 esac
12270 _ACEOF
12271
12272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12273 # If the template does not know about datarootdir, expand it.
12274 # FIXME: This hack should be removed a few years after 2.60.
12275 ac_datarootdir_hack=; ac_datarootdir_seen=
12276 ac_sed_dataroot='
12277 /datarootdir/ {
12278 p
12279 q
12280 }
12281 /@datadir@/p
12282 /@docdir@/p
12283 /@infodir@/p
12284 /@localedir@/p
12285 /@mandir@/p'
12286 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12287 *datarootdir*) ac_datarootdir_seen=yes;;
12288 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12290 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12291 _ACEOF
12292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12293 ac_datarootdir_hack='
12294 s&@datadir@&$datadir&g
12295 s&@docdir@&$docdir&g
12296 s&@infodir@&$infodir&g
12297 s&@localedir@&$localedir&g
12298 s&@mandir@&$mandir&g
12299 s&\\\${datarootdir}&$datarootdir&g' ;;
12300 esac
12301 _ACEOF
12302
12303 # Neutralize VPATH when `$srcdir' = `.'.
12304 # Shell code in configure.ac might set extrasub.
12305 # FIXME: do we really want to maintain this feature?
12306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12307 ac_sed_extra="$ac_vpsub
12308 $extrasub
12309 _ACEOF
12310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12311 :t
12312 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12313 s|@configure_input@|$ac_sed_conf_input|;t t
12314 s&@top_builddir@&$ac_top_builddir_sub&;t t
12315 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12316 s&@srcdir@&$ac_srcdir&;t t
12317 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12318 s&@top_srcdir@&$ac_top_srcdir&;t t
12319 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12320 s&@builddir@&$ac_builddir&;t t
12321 s&@abs_builddir@&$ac_abs_builddir&;t t
12322 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12323 s&@INSTALL@&$ac_INSTALL&;t t
12324 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12325 $ac_datarootdir_hack
12326 "
12327 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12328 || as_fn_error "could not create $ac_file" "$LINENO" 5
12329
12330 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12331 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12332 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12334 which seems to be undefined. Please make sure it is defined." >&5
12335 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12336 which seems to be undefined. Please make sure it is defined." >&2;}
12337
12338 rm -f "$tmp/stdin"
12339 case $ac_file in
12340 -) cat "$tmp/out" && rm -f "$tmp/out";;
12341 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12342 esac \
12343 || as_fn_error "could not create $ac_file" "$LINENO" 5
12344 ;;
12345 :H)
12346 #
12347 # CONFIG_HEADER
12348 #
12349 if test x"$ac_file" != x-; then
12350 {
12351 $as_echo "/* $configure_input */" \
12352 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12353 } >"$tmp/config.h" \
12354 || as_fn_error "could not create $ac_file" "$LINENO" 5
12355 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12357 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12358 else
12359 rm -f "$ac_file"
12360 mv "$tmp/config.h" "$ac_file" \
12361 || as_fn_error "could not create $ac_file" "$LINENO" 5
12362 fi
12363 else
12364 $as_echo "/* $configure_input */" \
12365 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12366 || as_fn_error "could not create -" "$LINENO" 5
12367 fi
12368 # Compute "$ac_file"'s index in $config_headers.
12369 _am_arg="$ac_file"
12370 _am_stamp_count=1
12371 for _am_header in $config_headers :; do
12372 case $_am_header in
12373 $_am_arg | $_am_arg:* )
12374 break ;;
12375 * )
12376 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12377 esac
12378 done
12379 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12380 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12381 X"$_am_arg" : 'X\(//\)[^/]' \| \
12382 X"$_am_arg" : 'X\(//\)$' \| \
12383 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12384 $as_echo X"$_am_arg" |
12385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12386 s//\1/
12387 q
12388 }
12389 /^X\(\/\/\)[^/].*/{
12390 s//\1/
12391 q
12392 }
12393 /^X\(\/\/\)$/{
12394 s//\1/
12395 q
12396 }
12397 /^X\(\/\).*/{
12398 s//\1/
12399 q
12400 }
12401 s/.*/./; q'`/stamp-h$_am_stamp_count
12402 ;;
12403
12404 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12405 $as_echo "$as_me: executing $ac_file commands" >&6;}
12406 ;;
12407 esac
12408
12409
12410 case $ac_file$ac_mode in
12411 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12412 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12413 # are listed without --file. Let's play safe and only enable the eval
12414 # if we detect the quoting.
12415 case $CONFIG_FILES in
12416 *\'*) eval set x "$CONFIG_FILES" ;;
12417 *) set x $CONFIG_FILES ;;
12418 esac
12419 shift
12420 for mf
12421 do
12422 # Strip MF so we end up with the name of the file.
12423 mf=`echo "$mf" | sed -e 's/:.*$//'`
12424 # Check whether this is an Automake generated Makefile or not.
12425 # We used to match only the files named `Makefile.in', but
12426 # some people rename them; so instead we look at the file content.
12427 # Grep'ing the first line is not enough: some people post-process
12428 # each Makefile.in and add a new line on top of each file to say so.
12429 # Grep'ing the whole file is not good either: AIX grep has a line
12430 # limit of 2048, but all sed's we know have understand at least 4000.
12431 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12432 dirpart=`$as_dirname -- "$mf" ||
12433 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12434 X"$mf" : 'X\(//\)[^/]' \| \
12435 X"$mf" : 'X\(//\)$' \| \
12436 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12437 $as_echo X"$mf" |
12438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12439 s//\1/
12440 q
12441 }
12442 /^X\(\/\/\)[^/].*/{
12443 s//\1/
12444 q
12445 }
12446 /^X\(\/\/\)$/{
12447 s//\1/
12448 q
12449 }
12450 /^X\(\/\).*/{
12451 s//\1/
12452 q
12453 }
12454 s/.*/./; q'`
12455 else
12456 continue
12457 fi
12458 # Extract the definition of DEPDIR, am__include, and am__quote
12459 # from the Makefile without running `make'.
12460 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12461 test -z "$DEPDIR" && continue
12462 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12463 test -z "am__include" && continue
12464 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12465 # When using ansi2knr, U may be empty or an underscore; expand it
12466 U=`sed -n 's/^U = //p' < "$mf"`
12467 # Find all dependency output files, they are included files with
12468 # $(DEPDIR) in their names. We invoke sed twice because it is the
12469 # simplest approach to changing $(DEPDIR) to its actual value in the
12470 # expansion.
12471 for file in `sed -n "
12472 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12473 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12474 # Make sure the directory exists.
12475 test -f "$dirpart/$file" && continue
12476 fdir=`$as_dirname -- "$file" ||
12477 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12478 X"$file" : 'X\(//\)[^/]' \| \
12479 X"$file" : 'X\(//\)$' \| \
12480 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12481 $as_echo X"$file" |
12482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12483 s//\1/
12484 q
12485 }
12486 /^X\(\/\/\)[^/].*/{
12487 s//\1/
12488 q
12489 }
12490 /^X\(\/\/\)$/{
12491 s//\1/
12492 q
12493 }
12494 /^X\(\/\).*/{
12495 s//\1/
12496 q
12497 }
12498 s/.*/./; q'`
12499 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12500 # echo "creating $dirpart/$file"
12501 echo '# dummy' > "$dirpart/$file"
12502 done
12503 done
12504 }
12505 ;;
12506 "libtool":C)
12507
12508 # See if we are running on zsh, and set the options which allow our
12509 # commands through without removal of \ escapes.
12510 if test -n "${ZSH_VERSION+set}" ; then
12511 setopt NO_GLOB_SUBST
12512 fi
12513
12514 cfgfile="${ofile}T"
12515 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12516 $RM "$cfgfile"
12517
12518 cat <<_LT_EOF >> "$cfgfile"
12519 #! $SHELL
12520
12521 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12522 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12523 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12524 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12525 #
12526 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12527 # 2006, 2007, 2008 Free Software Foundation, Inc.
12528 # Written by Gordon Matzigkeit, 1996
12529 #
12530 # This file is part of GNU Libtool.
12531 #
12532 # GNU Libtool is free software; you can redistribute it and/or
12533 # modify it under the terms of the GNU General Public License as
12534 # published by the Free Software Foundation; either version 2 of
12535 # the License, or (at your option) any later version.
12536 #
12537 # As a special exception to the GNU General Public License,
12538 # if you distribute this file as part of a program or library that
12539 # is built using GNU Libtool, you may include this file under the
12540 # same distribution terms that you use for the rest of that program.
12541 #
12542 # GNU Libtool is distributed in the hope that it will be useful,
12543 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12544 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12545 # GNU General Public License for more details.
12546 #
12547 # You should have received a copy of the GNU General Public License
12548 # along with GNU Libtool; see the file COPYING. If not, a copy
12549 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12550 # obtained by writing to the Free Software Foundation, Inc.,
12551 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12552
12553
12554 # The names of the tagged configurations supported by this script.
12555 available_tags=""
12556
12557 # ### BEGIN LIBTOOL CONFIG
12558
12559 # Which release of libtool.m4 was used?
12560 macro_version=$macro_version
12561 macro_revision=$macro_revision
12562
12563 # Whether or not to build shared libraries.
12564 build_libtool_libs=$enable_shared
12565
12566 # Whether or not to build static libraries.
12567 build_old_libs=$enable_static
12568
12569 # What type of objects to build.
12570 pic_mode=$pic_mode
12571
12572 # Whether or not to optimize for fast installation.
12573 fast_install=$enable_fast_install
12574
12575 # The host system.
12576 host_alias=$host_alias
12577 host=$host
12578 host_os=$host_os
12579
12580 # The build system.
12581 build_alias=$build_alias
12582 build=$build
12583 build_os=$build_os
12584
12585 # A sed program that does not truncate output.
12586 SED=$lt_SED
12587
12588 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12589 Xsed="\$SED -e 1s/^X//"
12590
12591 # A grep program that handles long lines.
12592 GREP=$lt_GREP
12593
12594 # An ERE matcher.
12595 EGREP=$lt_EGREP
12596
12597 # A literal string matcher.
12598 FGREP=$lt_FGREP
12599
12600 # A BSD- or MS-compatible name lister.
12601 NM=$lt_NM
12602
12603 # Whether we need soft or hard links.
12604 LN_S=$lt_LN_S
12605
12606 # What is the maximum length of a command?
12607 max_cmd_len=$max_cmd_len
12608
12609 # Object file suffix (normally "o").
12610 objext=$ac_objext
12611
12612 # Executable file suffix (normally "").
12613 exeext=$exeext
12614
12615 # whether the shell understands "unset".
12616 lt_unset=$lt_unset
12617
12618 # turn spaces into newlines.
12619 SP2NL=$lt_lt_SP2NL
12620
12621 # turn newlines into spaces.
12622 NL2SP=$lt_lt_NL2SP
12623
12624 # How to create reloadable object files.
12625 reload_flag=$lt_reload_flag
12626 reload_cmds=$lt_reload_cmds
12627
12628 # An object symbol dumper.
12629 OBJDUMP=$lt_OBJDUMP
12630
12631 # Method to check whether dependent libraries are shared objects.
12632 deplibs_check_method=$lt_deplibs_check_method
12633
12634 # Command to use when deplibs_check_method == "file_magic".
12635 file_magic_cmd=$lt_file_magic_cmd
12636
12637 # The archiver.
12638 AR=$lt_AR
12639 AR_FLAGS=$lt_AR_FLAGS
12640
12641 # A symbol stripping program.
12642 STRIP=$lt_STRIP
12643
12644 # Commands used to install an old-style archive.
12645 RANLIB=$lt_RANLIB
12646 old_postinstall_cmds=$lt_old_postinstall_cmds
12647 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12648
12649 # A C compiler.
12650 LTCC=$lt_CC
12651
12652 # LTCC compiler flags.
12653 LTCFLAGS=$lt_CFLAGS
12654
12655 # Take the output of nm and produce a listing of raw symbols and C names.
12656 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12657
12658 # Transform the output of nm in a proper C declaration.
12659 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12660
12661 # Transform the output of nm in a C name address pair.
12662 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12663
12664 # Transform the output of nm in a C name address pair when lib prefix is needed.
12665 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12666
12667 # The name of the directory that contains temporary libtool files.
12668 objdir=$objdir
12669
12670 # Shell to use when invoking shell scripts.
12671 SHELL=$lt_SHELL
12672
12673 # An echo program that does not interpret backslashes.
12674 ECHO=$lt_ECHO
12675
12676 # Used to examine libraries when file_magic_cmd begins with "file".
12677 MAGIC_CMD=$MAGIC_CMD
12678
12679 # Must we lock files when doing compilation?
12680 need_locks=$lt_need_locks
12681
12682 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12683 DSYMUTIL=$lt_DSYMUTIL
12684
12685 # Tool to change global to local symbols on Mac OS X.
12686 NMEDIT=$lt_NMEDIT
12687
12688 # Tool to manipulate fat objects and archives on Mac OS X.
12689 LIPO=$lt_LIPO
12690
12691 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
12692 OTOOL=$lt_OTOOL
12693
12694 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12695 OTOOL64=$lt_OTOOL64
12696
12697 # Old archive suffix (normally "a").
12698 libext=$libext
12699
12700 # Shared library suffix (normally ".so").
12701 shrext_cmds=$lt_shrext_cmds
12702
12703 # The commands to extract the exported symbol list from a shared archive.
12704 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12705
12706 # Variables whose values should be saved in libtool wrapper scripts and
12707 # restored at link time.
12708 variables_saved_for_relink=$lt_variables_saved_for_relink
12709
12710 # Do we need the "lib" prefix for modules?
12711 need_lib_prefix=$need_lib_prefix
12712
12713 # Do we need a version for libraries?
12714 need_version=$need_version
12715
12716 # Library versioning type.
12717 version_type=$version_type
12718
12719 # Shared library runtime path variable.
12720 runpath_var=$runpath_var
12721
12722 # Shared library path variable.
12723 shlibpath_var=$shlibpath_var
12724
12725 # Is shlibpath searched before the hard-coded library search path?
12726 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12727
12728 # Format of library name prefix.
12729 libname_spec=$lt_libname_spec
12730
12731 # List of archive names. First name is the real one, the rest are links.
12732 # The last name is the one that the linker finds with -lNAME
12733 library_names_spec=$lt_library_names_spec
12734
12735 # The coded name of the library, if different from the real name.
12736 soname_spec=$lt_soname_spec
12737
12738 # Command to use after installation of a shared archive.
12739 postinstall_cmds=$lt_postinstall_cmds
12740
12741 # Command to use after uninstallation of a shared archive.
12742 postuninstall_cmds=$lt_postuninstall_cmds
12743
12744 # Commands used to finish a libtool library installation in a directory.
12745 finish_cmds=$lt_finish_cmds
12746
12747 # As "finish_cmds", except a single script fragment to be evaled but
12748 # not shown.
12749 finish_eval=$lt_finish_eval
12750
12751 # Whether we should hardcode library paths into libraries.
12752 hardcode_into_libs=$hardcode_into_libs
12753
12754 # Compile-time system search path for libraries.
12755 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12756
12757 # Run-time system search path for libraries.
12758 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12759
12760 # Whether dlopen is supported.
12761 dlopen_support=$enable_dlopen
12762
12763 # Whether dlopen of programs is supported.
12764 dlopen_self=$enable_dlopen_self
12765
12766 # Whether dlopen of statically linked programs is supported.
12767 dlopen_self_static=$enable_dlopen_self_static
12768
12769 # Commands to strip libraries.
12770 old_striplib=$lt_old_striplib
12771 striplib=$lt_striplib
12772
12773
12774 # The linker used to build libraries.
12775 LD=$lt_LD
12776
12777 # Commands used to build an old-style archive.
12778 old_archive_cmds=$lt_old_archive_cmds
12779
12780 # A language specific compiler.
12781 CC=$lt_compiler
12782
12783 # Is the compiler the GNU compiler?
12784 with_gcc=$GCC
12785
12786 # Compiler flag to turn off builtin functions.
12787 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12788
12789 # How to pass a linker flag through the compiler.
12790 wl=$lt_lt_prog_compiler_wl
12791
12792 # Additional compiler flags for building library objects.
12793 pic_flag=$lt_lt_prog_compiler_pic
12794
12795 # Compiler flag to prevent dynamic linking.
12796 link_static_flag=$lt_lt_prog_compiler_static
12797
12798 # Does compiler simultaneously support -c and -o options?
12799 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12800
12801 # Whether or not to add -lc for building shared libraries.
12802 build_libtool_need_lc=$archive_cmds_need_lc
12803
12804 # Whether or not to disallow shared libs when runtime libs are static.
12805 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12806
12807 # Compiler flag to allow reflexive dlopens.
12808 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12809
12810 # Compiler flag to generate shared objects directly from archives.
12811 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12812
12813 # Whether the compiler copes with passing no objects directly.
12814 compiler_needs_object=$lt_compiler_needs_object
12815
12816 # Create an old-style archive from a shared archive.
12817 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12818
12819 # Create a temporary old-style archive to link instead of a shared archive.
12820 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12821
12822 # Commands used to build a shared archive.
12823 archive_cmds=$lt_archive_cmds
12824 archive_expsym_cmds=$lt_archive_expsym_cmds
12825
12826 # Commands used to build a loadable module if different from building
12827 # a shared archive.
12828 module_cmds=$lt_module_cmds
12829 module_expsym_cmds=$lt_module_expsym_cmds
12830
12831 # Whether we are building with GNU ld or not.
12832 with_gnu_ld=$lt_with_gnu_ld
12833
12834 # Flag that allows shared libraries with undefined symbols to be built.
12835 allow_undefined_flag=$lt_allow_undefined_flag
12836
12837 # Flag that enforces no undefined symbols.
12838 no_undefined_flag=$lt_no_undefined_flag
12839
12840 # Flag to hardcode \$libdir into a binary during linking.
12841 # This must work even if \$libdir does not exist
12842 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12843
12844 # If ld is used when linking, flag to hardcode \$libdir into a binary
12845 # during linking. This must work even if \$libdir does not exist.
12846 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12847
12848 # Whether we need a single "-rpath" flag with a separated argument.
12849 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12850
12851 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12852 # DIR into the resulting binary.
12853 hardcode_direct=$hardcode_direct
12854
12855 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12856 # DIR into the resulting binary and the resulting library dependency is
12857 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12858 # library is relocated.
12859 hardcode_direct_absolute=$hardcode_direct_absolute
12860
12861 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12862 # into the resulting binary.
12863 hardcode_minus_L=$hardcode_minus_L
12864
12865 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12866 # into the resulting binary.
12867 hardcode_shlibpath_var=$hardcode_shlibpath_var
12868
12869 # Set to "yes" if building a shared library automatically hardcodes DIR
12870 # into the library and all subsequent libraries and executables linked
12871 # against it.
12872 hardcode_automatic=$hardcode_automatic
12873
12874 # Set to yes if linker adds runtime paths of dependent libraries
12875 # to runtime path list.
12876 inherit_rpath=$inherit_rpath
12877
12878 # Whether libtool must link a program against all its dependency libraries.
12879 link_all_deplibs=$link_all_deplibs
12880
12881 # Fix the shell variable \$srcfile for the compiler.
12882 fix_srcfile_path=$lt_fix_srcfile_path
12883
12884 # Set to "yes" if exported symbols are required.
12885 always_export_symbols=$always_export_symbols
12886
12887 # The commands to list exported symbols.
12888 export_symbols_cmds=$lt_export_symbols_cmds
12889
12890 # Symbols that should not be listed in the preloaded symbols.
12891 exclude_expsyms=$lt_exclude_expsyms
12892
12893 # Symbols that must always be exported.
12894 include_expsyms=$lt_include_expsyms
12895
12896 # Commands necessary for linking programs (against libraries) with templates.
12897 prelink_cmds=$lt_prelink_cmds
12898
12899 # Specify filename containing input files.
12900 file_list_spec=$lt_file_list_spec
12901
12902 # How to hardcode a shared library path into an executable.
12903 hardcode_action=$hardcode_action
12904
12905 # ### END LIBTOOL CONFIG
12906
12907 _LT_EOF
12908
12909 case $host_os in
12910 aix3*)
12911 cat <<\_LT_EOF >> "$cfgfile"
12912 # AIX sometimes has problems with the GCC collect2 program. For some
12913 # reason, if we set the COLLECT_NAMES environment variable, the problems
12914 # vanish in a puff of smoke.
12915 if test "X${COLLECT_NAMES+set}" != Xset; then
12916 COLLECT_NAMES=
12917 export COLLECT_NAMES
12918 fi
12919 _LT_EOF
12920 ;;
12921 esac
12922
12923
12924 ltmain="$ac_aux_dir/ltmain.sh"
12925
12926
12927 # We use sed instead of cat because bash on DJGPP gets confused if
12928 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12929 # text mode, it properly converts lines to CR/LF. This bash problem
12930 # is reportedly fixed, but why not run on old versions too?
12931 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12932 || (rm -f "$cfgfile"; exit 1)
12933
12934 case $xsi_shell in
12935 yes)
12936 cat << \_LT_EOF >> "$cfgfile"
12937
12938 # func_dirname file append nondir_replacement
12939 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
12940 # otherwise set result to NONDIR_REPLACEMENT.
12941 func_dirname ()
12942 {
12943 case ${1} in
12944 */*) func_dirname_result="${1%/*}${2}" ;;
12945 * ) func_dirname_result="${3}" ;;
12946 esac
12947 }
12948
12949 # func_basename file
12950 func_basename ()
12951 {
12952 func_basename_result="${1##*/}"
12953 }
12954
12955 # func_dirname_and_basename file append nondir_replacement
12956 # perform func_basename and func_dirname in a single function
12957 # call:
12958 # dirname: Compute the dirname of FILE. If nonempty,
12959 # add APPEND to the result, otherwise set result
12960 # to NONDIR_REPLACEMENT.
12961 # value returned in "$func_dirname_result"
12962 # basename: Compute filename of FILE.
12963 # value retuned in "$func_basename_result"
12964 # Implementation must be kept synchronized with func_dirname
12965 # and func_basename. For efficiency, we do not delegate to
12966 # those functions but instead duplicate the functionality here.
12967 func_dirname_and_basename ()
12968 {
12969 case ${1} in
12970 */*) func_dirname_result="${1%/*}${2}" ;;
12971 * ) func_dirname_result="${3}" ;;
12972 esac
12973 func_basename_result="${1##*/}"
12974 }
12975
12976 # func_stripname prefix suffix name
12977 # strip PREFIX and SUFFIX off of NAME.
12978 # PREFIX and SUFFIX must not contain globbing or regex special
12979 # characters, hashes, percent signs, but SUFFIX may contain a leading
12980 # dot (in which case that matches only a dot).
12981 func_stripname ()
12982 {
12983 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12984 # positional parameters, so assign one to ordinary parameter first.
12985 func_stripname_result=${3}
12986 func_stripname_result=${func_stripname_result#"${1}"}
12987 func_stripname_result=${func_stripname_result%"${2}"}
12988 }
12989
12990 # func_opt_split
12991 func_opt_split ()
12992 {
12993 func_opt_split_opt=${1%%=*}
12994 func_opt_split_arg=${1#*=}
12995 }
12996
12997 # func_lo2o object
12998 func_lo2o ()
12999 {
13000 case ${1} in
13001 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13002 *) func_lo2o_result=${1} ;;
13003 esac
13004 }
13005
13006 # func_xform libobj-or-source
13007 func_xform ()
13008 {
13009 func_xform_result=${1%.*}.lo
13010 }
13011
13012 # func_arith arithmetic-term...
13013 func_arith ()
13014 {
13015 func_arith_result=$(( $* ))
13016 }
13017
13018 # func_len string
13019 # STRING may not start with a hyphen.
13020 func_len ()
13021 {
13022 func_len_result=${#1}
13023 }
13024
13025 _LT_EOF
13026 ;;
13027 *) # Bourne compatible functions.
13028 cat << \_LT_EOF >> "$cfgfile"
13029
13030 # func_dirname file append nondir_replacement
13031 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13032 # otherwise set result to NONDIR_REPLACEMENT.
13033 func_dirname ()
13034 {
13035 # Extract subdirectory from the argument.
13036 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13037 if test "X$func_dirname_result" = "X${1}"; then
13038 func_dirname_result="${3}"
13039 else
13040 func_dirname_result="$func_dirname_result${2}"
13041 fi
13042 }
13043
13044 # func_basename file
13045 func_basename ()
13046 {
13047 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13048 }
13049
13050
13051 # func_stripname prefix suffix name
13052 # strip PREFIX and SUFFIX off of NAME.
13053 # PREFIX and SUFFIX must not contain globbing or regex special
13054 # characters, hashes, percent signs, but SUFFIX may contain a leading
13055 # dot (in which case that matches only a dot).
13056 # func_strip_suffix prefix name
13057 func_stripname ()
13058 {
13059 case ${2} in
13060 .*) func_stripname_result=`$ECHO "X${3}" \
13061 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13062 *) func_stripname_result=`$ECHO "X${3}" \
13063 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13064 esac
13065 }
13066
13067 # sed scripts:
13068 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13069 my_sed_long_arg='1s/^-[^=]*=//'
13070
13071 # func_opt_split
13072 func_opt_split ()
13073 {
13074 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13075 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13076 }
13077
13078 # func_lo2o object
13079 func_lo2o ()
13080 {
13081 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13082 }
13083
13084 # func_xform libobj-or-source
13085 func_xform ()
13086 {
13087 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13088 }
13089
13090 # func_arith arithmetic-term...
13091 func_arith ()
13092 {
13093 func_arith_result=`expr "$@"`
13094 }
13095
13096 # func_len string
13097 # STRING may not start with a hyphen.
13098 func_len ()
13099 {
13100 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13101 }
13102
13103 _LT_EOF
13104 esac
13105
13106 case $lt_shell_append in
13107 yes)
13108 cat << \_LT_EOF >> "$cfgfile"
13109
13110 # func_append var value
13111 # Append VALUE to the end of shell variable VAR.
13112 func_append ()
13113 {
13114 eval "$1+=\$2"
13115 }
13116 _LT_EOF
13117 ;;
13118 *)
13119 cat << \_LT_EOF >> "$cfgfile"
13120
13121 # func_append var value
13122 # Append VALUE to the end of shell variable VAR.
13123 func_append ()
13124 {
13125 eval "$1=\$$1\$2"
13126 }
13127
13128 _LT_EOF
13129 ;;
13130 esac
13131
13132
13133 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13134 || (rm -f "$cfgfile"; exit 1)
13135
13136 mv -f "$cfgfile" "$ofile" ||
13137 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13138 chmod +x "$ofile"
13139
13140 ;;
13141
13142 esac
13143 done # for ac_tag
13144
13145
13146 as_fn_exit 0
13147 _ACEOF
13148 ac_clean_files=$ac_clean_files_save
13149
13150 test $ac_write_fail = 0 ||
13151 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13152
13153
13154 # configure is writing to config.log, and then calls config.status.
13155 # config.status does its own redirection, appending to config.log.
13156 # Unfortunately, on DOS this fails, as config.log is still kept open
13157 # by configure, so config.status won't be able to write to it; its
13158 # output is simply discarded. So we exec the FD to /dev/null,
13159 # effectively closing config.log, so it can be properly (re)opened and
13160 # appended to by config.status. When coming back to configure, we
13161 # need to make the FD available again.
13162 if test "$no_create" != yes; then
13163 ac_cs_success=:
13164 ac_config_status_args=
13165 test "$silent" = yes &&
13166 ac_config_status_args="$ac_config_status_args --quiet"
13167 exec 5>/dev/null
13168 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13169 exec 5>>config.log
13170 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13171 # would make configure fail if this is the last instruction.
13172 $ac_cs_success || as_fn_exit $?
13173 fi
13174 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13176 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13177 fi
13178